update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
4         instead of HAVE_CHISE to specify using with libchise.
5
6         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
7
8         * chartab.h: Don't use HAVE_CHISE_CLIENT.
9
10         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
11         defined or HAVE_LIBCHISE_LIBCHISE is defined.
12         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
13         is defined.
14         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
15         HAVE_CHISE to specify using with libchise.
16         (syms_of_chartab): Don't define symbol `system-char-id' when
17         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
18
19 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
22         specify CHISE DB support.
23         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
24         of `char_attribute_system_db_file' to check feature DB file.
25
26         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
27         HAVE_CHISE_CLIENT to specify CHISE DB support.
28
29         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
30         specify CHISE DB support.
31         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
32         not defined.
33         (Freset_char_attribute_table): Use `chise_feature_setup_db'
34         instead of `char_attribute_system_db_file' to check feature DB
35         file.
36
37 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
40         `HAVE_CHISE_CLIENT'.
41
42 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
45         (Fsave_charset_mapping_table): Don't use
46         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
47
48         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
49         (HAVE_LIBCHISE): New macro.
50
51         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
52
53         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
54         (Fsave_char_attribute_table): Don't use
55         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
56
57 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
58
59         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
60         defined.
61         (save_uint16_byte_table): Likewise.
62         (save_byte_table): Likewise.
63         (char_table_get_db): Use `chise_ds_load_char_feature_value'
64         instead of `chise_char_load_feature_value'.
65         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
66
67 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
68
69         * chartab.h (struct Lisp_Char_Table): Delete member
70         `feature_table' if CHISE is defined.
71
72         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
73         (Fcopy_char_table): Likewise.
74         (char_table_open_db_maybe): Likewise.
75         (char_table_close_db_maybe): Likewise.
76         (char_table_get_db): Likewise.
77         (Fmount_char_attribute_table): Likewise.
78         (Fload_char_attribute_table): Likewise.
79
80 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
81
82         * mule-charset.c (load_char_decoding_entry_maybe): Use
83         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
84         `chise_ccs_decode'.
85
86 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
87
88         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
89         instead of `chise_open_data_source'.
90         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
91         `chise_ds_close'.
92
93 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
94
95         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
96         instead of `chise_ds_open_feature_table'.
97         (char_table_close_db_maybe): Don't use `chise_ft_close'.
98
99 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * mule-charset.c (Fsave_charset_mapping_table): Use
102         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
103         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
104         `chise_ccs_sync' instead of `chise_ccst_close'.
105         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
106
107         * chartab.c (open_chise_data_source_maybe): Modify for
108         `chise_open_data_source'.
109         (char_table_open_db_maybe): Modify for
110         `chise_ds_open_feature_table'.
111
112 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
113
114         * mule-charset.c (load_char_decoding_entry_maybe): Use
115         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
116         `chise_ccst_close'.
117
118 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
119
120         * mule-charset.c (Fsave_charset_mapping_table): Use
121         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
122         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
123         `chise_dt_put_char' and `chise_dt_close'.
124         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
125         `chise_ccs_decode' and `chise_ccst_close' instead of
126         `chise_ds_open_decoding_table', `chise_dt_get_char' and
127         `chise_dt_close'.
128
129         * chartab.c (char_table_get_db): Use
130         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
131         (load_char_attribute_table_map_func): Modify for
132         `chise_char_feature_value_iterate'.
133         (Fload_char_attribute_table): Use
134         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
135
136 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
137
138         * chartab.c (put_char_table): Modify for inherited coded-charsets
139         in XEmacs CHISE.
140
141 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
142
143         * chartab.c (Fput_char_table_map_function): Fixed.
144         (word_boundary_p): Don't check charset in XEmacs CHISE.
145
146 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
147
148         * mule-charset.c (Fsave_charset_mapping_table): Use
149         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
150         instead of `chise_open_decoding_table'; refer
151         `default_chise_data_source'; use `chise_dt_close' instead of
152         `chise_close_decoding_table'.
153         (load_char_decoding_entry_maybe): Likewise.
154
155         * chartab.c (default_chise_data_source): New variable when `CHISE'
156         is defined.
157         (Fcopy_char_table): `ct->ds' is deleted.
158         (open_chise_data_source_maybe): New function.
159         (Fclose_char_data_source): New function.
160         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
161         use `chise_ds_open_feature_table' instead of
162         `chise_open_feature_table'.
163         (char_table_close_db_maybe): Use `chise_ft_close' instead of
164         `chise_close_feature_table'; `cit->ds' is deleted.
165         (syms_of_chartab): Add new builtin function
166         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
167
168         * chartab.h (default_chise_data_source): New extern variable.
169         (open_chise_data_source_maybe): New prototype.
170         (struct Lisp_Char_Table): Delete `ds'.
171
172 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
173
174         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
175         `CHISE' is defined.
176
177 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
178
179         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
180         not defined; add code for non-libchise setting.
181         (char_table_close_db_maybe): Likewise.
182         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
183         defined.
184         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
185         even if `CHISE' is not defined.
186         (Freset_char_attribute_table): Likewise.
187         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
188         `char_table_close_db_maybe' even if `CHISE' is not defined; use
189         `char_table_get_db'.
190         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
191         `char_table_close_db_maybe' even if `CHISE' is not defined.
192
193 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
194
195         * chartab.c (char_table_open_db_maybe): New function.
196         (char_table_close_db_maybe): New function.
197         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
198         (Freset_char_attribute_table): Likewise.
199         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
200         `char_table_close_db_maybe'.
201         (Fload_char_attribute_table): Likewise.
202
203 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
204
205         * chartab.c: Don't include <chise.h> because it is included in
206         chartab.h.
207         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
208         defined.
209         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
210         `CHISE' is defined.
211         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
212         `CHISE' is defined.
213         (Fclose_char_attribute_table): Close `ct->feature_table' and
214         `ct->ds' when `CHISE' is defined.
215         (Freset_char_attribute_table): Likewise.
216         (load_char_attribute_maybe): Use `cit->ds' and
217         `cit->feature_table' when `CHISE' is defined.
218         (Fload_char_attribute_table): Likewise.
219
220         * chartab.h: Include <chise.h> when `CHISE' is defined.
221         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
222         when `CHISE' is defined.
223
224 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
225
226         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
227         is defined.
228         (char_table_description): Likewise.
229         (Fmake_char_table): Likewise.
230         (Fcopy_char_table): Likewise.
231         (Fmount_char_attribute_table): Likewise.
232         (Fclose_char_attribute_table): Likewise.
233         (Freset_char_attribute_table): Likewise.
234         (load_char_attribute_maybe): Likewise.
235         (Fload_char_attribute_table): Likewise.
236
237         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
238         defined.
239
240 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
241
242         * chartab.c (load_char_attribute_table_map_func): New function
243         when CHISE is defined.
244         (Qload_char_attribute_table_map_function): Don't define when CHISE
245         is defined.
246         (Fload_char_attribute_table_map_function): Likewise.
247         (Fload_char_attribute_table): Use libchise when `CHISE' is
248         defined.
249         (syms_of_chartab): Don't define
250         `load-char-attribute-table-map-function' when CHISE is defined.
251
252 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
253
254         * chartab.c: Include <chise.h> when `CHISE' is defined.
255         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
256
257 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * mule-charset.c (charset_code_point): Fix problem when searching
260         in mother CCS fails with `defined_only' mode.
261
262 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
263
264         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
265         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
266         (put_char_composition): Likewise.
267         (Fput_char_attribute): Likewise.
268         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
269
270 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
271
272         * chartab.c (Q_ucs): Deleted.
273         (Fput_char_attribute): Don't refer `->ucs'.
274         (Fdefine_char): Likewise.
275         (Ffind_char): Likewise.
276         (syms_of_chartab): Delete `->ucs'.
277
278 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
279
280         * mule-charset.c (Qmap_cns11643_2): Renamed from
281         `Qchinese_cns11643_2'.
282         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
283         `chinese-cns11643-2'.
284         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
285         `=cns11643-2'.
286
287 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
288
289         * mule-charset.c (Qmap_cns11643_1): Renamed from
290         `Qchinese_cns11643_1'.
291         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
292         `chinese-cns11643-1'.
293         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
294         `=cns11643-1'.
295
296 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
297
298         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
299         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
300         `chinese-gb12345'.
301         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
302         `=gb12345'.
303
304 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
305
306         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
307         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
308         `chinese-gb2312'.
309         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
310         `=gb2312'.
311
312 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
313
314         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
315         (syms_of_mule_charset): Add new symbol `=big5' instead of
316         `chinese-big5'.
317         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
318
319 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
320
321         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
322         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
323         `korean-ksc5601'.
324         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
325         `=ks-x1001'.
326
327 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
328
329         * mule-charset.c (Qmap_jis_x0212): Renamed from
330         `Qjapanese_jisx0212'.
331         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
332         `japanese-jisx0212'.
333         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
334         `=jis-x0212'.
335
336 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
337
338         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
339         `Qjapanese_jisx0208'.
340         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
341         of `japanese-jisx0208'.
342         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
343         `=jis-x0208-1983'.
344
345 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
346
347         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
348         `Qjapanese_jisx0208_1978'.
349         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
350         of `japanese-jisx0208-1978'.
351         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
352         `=jis-x0208-1978'.
353
354 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
355
356         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
357         only for XEmacs CHISE.
358
359 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
360
361         * char-ucs.h: Compact non-ISO-IR charset-ids.
362         (LEADING_BYTE_UCS): Changed to -177.
363         (LEADING_BYTE_CONTROL_1): Changed to -77.
364         (LEADING_BYTE_UCS_BMP): Changed to -176.
365         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
366
367 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
368
369         * mule-charset.c (Qiso_ir): New variable.
370         (Fmake_charset): Recognise new property `iso-ir'.
371         (syms_of_mule_charset): Add new symbol `iso-ir'.
372
373 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
374
375         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
376         n to -n; charset-id of non ISO-IR sets are changed to positive
377         numbers.
378
379 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
380
381         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
382         for &MCS-XXXXXXXX; values.
383
384 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
385
386         * mule.c (Vxemacs_chise_version): Renamed from
387         `Vutf_2000_version'.
388         (vars_of_mule): Add new variable `xemacs-chise-version'; define
389         `utf-2000-version' as an alias for `xemacs-chise-version'.
390
391 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
392
393         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
394         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
395         defined.
396
397         * config.h.in (CHISE): New macro.
398
399 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
400
401         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
402         of `ucs'.
403         (Qmap_ucs): New variable.
404         (syms_of_mule_charset): Add new symbol `=ucs'.
405         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
406
407         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
408         (simplify_char_spec): Likewise.
409
410         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
411
412         * char-ucs.h (Qmap_ucs): New extern variable.
413
414 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
415
416         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
417         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
418         don't define it when UTF2000 is not defined.
419         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
420         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
421         when UTF2000 is not defined.
422         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
423         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
424
425 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
426
427         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
428
429         * mule-charset.c (Vcharset_ucs_gb): Deleted.
430         (Qucs_gb): Deleted.
431         (syms_of_mule_charset): Delete `ucs-gb'.
432         (complex_vars_of_mule_charset): Likewise.
433
434 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
435
436         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
437
438         * mule-charset.c (Vcharset_ucs_cns): Deleted.
439         (Qucs_cns): Deleted.
440         (syms_of_mule_charset): Delete `ucs-cns'.
441         (complex_vars_of_mule_charset): Likewise.
442
443 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
444
445         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
446
447         * mule-charset.c (Vcharset_ucs_jis): Deleted.
448         (Qucs_jis): Deleted.
449         (syms_of_mule_charset): Delete `ucs-jis'.
450         (complex_vars_of_mule_charset): Likewise.
451
452 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
453
454         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
455
456         * mule-charset.c (Vcharset_ucs_ks): Deleted.
457         (Qucs_ks): Deleted.
458         (syms_of_mule_charset): Delete `ucs-ks'.
459         (complex_vars_of_mule_charset): Likewise.
460
461 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
462
463         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
464         (Qideograph_daikanwa_2): Deleted.
465         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
466         (complex_vars_of_mule_charset): Likewise.
467
468         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
469         (LEADING_BYTE_DAIKANWA_1): Deleted.
470         (LEADING_BYTE_DAIKANWA_2): Deleted.
471         (MIN_CHAR_DAIKANWA): Deleted.
472         (MAX_CHAR_DAIKANWA): Deleted.
473
474 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
475
476         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
477         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
478         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
479
480         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
481         (Vcharset_ideograph_daikanwa): Deleted.
482         (Qideograph_hanziku_{1..12}): Deleted.
483         (Qideograph_daikanwa): Deleted.
484         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
485         Vcharset_ideograph_daikanwa.
486         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
487         `ideograph-hanziku-{1..12}'.
488         (complex_vars_of_mule_charset): Likewise.
489
490 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
491
492         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
493
494         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
495         (Qideograph_gt_pj_{1..11}): Deleted.
496         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
497         (complex_vars_of_mule_charset): Likewise.
498
499 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * mule-charset.c (Vcharset_ucs_big5): Deleted.
502         (Vcharset_ideograph_gt): Deleted.
503         (Qucs_big5): Deleted.
504         (Qideograph_gt): Deleted.
505         (syms_of_mule_charset): Delete symbol `ucs-big5' and
506         `ideograph-gt'.
507         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
508         and `ideograph-gt'.
509
510         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
511         (LEADING_BYTE_GT): Deleted.
512         (MIN_CHAR_GT): Deleted.
513         (MAX_CHAR_GT): Deleted.
514
515 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
518
519 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
520
521         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
522         (save_uint16_byte_table): Likewise.
523         (save_byte_table): Likewise; convert values by it.
524         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
525         for `ideographic-structure'.
526         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
527         as the filter for `ideographic-structure'.
528
529 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
530
531         * chartab.c (put_char_composition): New function.
532         (Fput_char_attribute): Use `put_char_composition'; use
533         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
534
535         * fns.c (simplify_char_spec): New function.
536         (char_ref_simplify_spec): New function.
537         (Fchar_refs_simplify_char_specs): New function.
538         (syms_of_fns): Add new builtin function
539         `char-refs-simplify-char-specs'.
540
541 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
542
543         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
544         (Qideograph_cbeta): Deleted.
545         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
546         (complex_vars_of_mule_charset): Likewise.
547
548         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
549         (MIN_CHAR_CBETA): Comment out.
550         (MAX_CHAR_CBETA): Likewise.
551
552 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
553
554         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
555         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
556         CHISE client feature.
557
558 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
559
560         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
561
562 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
563
564         * mule-charset.c (charset_lookup_description_1): Use
565         `NUM_LEADING_BYTES' in UTF-2000.
566
567 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
568
569         * char-ucs.h (GC_CHARSETP): Deleted.
570
571 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
572
573         * char-ucs.h (MAX_CHAR_GT): Updated.
574
575 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
576
577         * text-coding.c: Sync with XEmacs 21.4.10.
578
579 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
580
581         * mule-charset.c (Vcharset_china3_jef): Deleted.
582         (Qchina3_jef): Deleted.
583         (syms_of_mule_charset): Don't define `china3-jef'.
584         (complex_vars_of_mule_charset): Likewise.
585
586         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
587         (MIN_CHAR_CHINA3_JEF): Comment out.
588         (MAX_CHAR_CHINA3_JEF): Comment out.
589
590 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * mule-charset.c (Vcharset_ucs_gb): New variable.
593         (Qucs_gb): New variable.
594         (syms_of_mule_charset): Add new symbol `ucs-gb'.
595         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
596
597         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
598
599 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
600
601         * mule-charset.c (charset_code_point): if a coded-charset has a
602         final-byte, don't inherit the builtin range of the mother CCS.
603
604 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
605
606         * mule-charset.c (charset_code_point): Fix problem about
607         inheritance.
608
609 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
610
611         * mule-charset.c (decode_builtin_char): Reorganized.
612
613 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
614
615         * text-coding.c (char_encode_as_entity_reference): Modify for
616         `charset_code_point'.
617         (char_encode_shift_jis): Likewise.
618         (char_encode_big5): Likewise.
619         (char_encode_utf8): Likewise.
620         (char_encode_iso2022): Likewise.
621
622         * mule-charset.c (charset_code_point): Add new argument
623         `defined_only'.
624         (Fencode_char): Add new optional argument `defined_only'.
625
626         * chartab.c (put_char_table): Modify for `charset_code_point'.
627
628         * char-ucs.h (charset_code_point): Add new argument
629         `defined_only'.
630         (encode_char_1): Modify for `charset_code_point'.
631
632 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
633
634         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
635         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
636
637 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
638
639         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
640         (Qjis_x0208): Likewise.
641         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
642         XCHARSET_FINAL(charset).
643         (charset_code_point): Modify condition for final-byte based
644         builtin-chars.
645         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
646         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
647         in UTF-2000; specify `=jis-x0208' as the mother of
648         `japanese-jisx0208-1978', `japanese-jisx0208' and
649         `japanese-jisx0208-1990' in UTF-2000.
650
651 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
652
653         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
654
655 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * text-coding.c (decode_coding_utf16): Support UTF-16.
658         (char_encode_utf16): Fixed.
659
660 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
661
662         * text-coding.c (Qutf16): New variable in MULE.
663         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
664         (Fcoding_system_type): Add `utf-16' in MULE.
665         (struct detection_state): Add a structure for utf16 in MULE.
666         (detect_coding_type): Setup st->utf16.mask in MULE.
667         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
668         MULE.
669         (reset_encoding_stream): Use `char_encode_utf16' and
670         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
671         (detect_coding_utf16): New function [incomplete].
672         (decode_coding_utf16): New function [support only UCS-2].
673         (char_encode_utf16): New function.
674         (char_finish_utf16): New function.
675         (syms_of_file_coding): Add new symbol `utf-16'; setup
676         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
677
678         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
679         UTF-2000.
680         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
681         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
682
683 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
684
685         * chartab.c (put_char_table): When a charset is specified as a
686         range in UTF-2000, don't support builtin characters.
687
688 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
689
690         * mule-charset.c (decode_defined_char): Don't refer external
691         database if Qunbound or Qnil are found.
692         (Fsave_charset_mapping_table): Don't define it if
693         HAVE_CHISE_CLIENT is not defined.
694         (Freset_charset_mapping_table): New function.
695         (load_char_decoding_entry_maybe): Store Qnil if a character is not
696         found in external database.
697         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
698         if HAVE_CHISE_CLIENT is not defined; add new builtin function
699         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
700
701 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
702
703         * text-coding.c (decode_coding_utf8): Check CCS is specified or
704         not.
705
706 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
707
708         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
709         Q_lowercase, Q_uppercase in UTF-2000.
710
711         * chartab.c (get_char_table): Add special code for the standard
712         case table to use character attribute `->downcase' and
713         `->uppercase' for case operations in UTF-2000.
714
715         * casetab.c (Qflippedcase): New variable in UTF-2000.
716         (Q_lowercase): Likewise.
717         (Q_uppercase): Likewise.
718         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
719         and `->uppercase' in UTF-2000.
720         (complex_vars_of_casetab): Assign attribute name `downcase' to
721         downcase and CANON table of Vstandard_case_table in UTF-2000;
722         assign attribute name `flippedcase' to upcase and EQV table of
723         Vstandard_case_table in UTF-2000.
724
725 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
726
727         * text-coding.c (decode_add_er_char): Support isolated-chars.
728         (char_encode_as_entity_reference): Likewise.
729
730 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
731
732         * emacs.c (Vutf_2000_lisp_directory): New variable.
733         (Vconfigure_utf_2000_lisp_directory): Likewise.
734         (complex_vars_of_emacs): Add new variable
735         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
736
737 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
738
739         * char-ucs.h (DECODE_CHAR): Delete special code for
740         `chinese-big5-1' and `chinese-big5-2'.
741
742         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
743         (Qbig5_2): Likewise.
744         (decode_defined_char): Support CONVERSION_BIG5_1 and
745         CONVERSION_BIG5_2.
746         (decode_builtin_char): Likewise.
747         (charset_code_point): Likewise.
748         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
749         'conversion in UTF-2000.
750         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
751         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
752         `chinese-big5-2' as children of `chinese-big5'.
753
754         * char-ucs.h (CONVERSION_BIG5_1): New macro.
755         (CONVERSION_BIG5_2): New macro.
756
757 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
758
759         * text-coding.c (char_encode_big5): Support entity-reference.
760
761 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
762
763         * text-coding.c (char_encode_as_entity_reference): New function.
764         (char_encode_utf8): Use `char_encode_as_entity_reference'.
765
766 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
767
768         * text-coding.c (decode_coding_big5): Support entity-reference
769         decoding feature.
770
771 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * text-coding.c (allocate_coding_system): Initialize initial
774         charsets for CODESYS_UTF8.
775         (Fmake_coding_system): Accept charset-g0, charset-g1 and
776         charset-g2 for CODESYS_UTF8.
777         (decode_coding_utf8): Use charset-g0.
778         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
779         to force variants to map to UCS.
780
781 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
782
783         * text-coding.c (Qutf_8_mcs): New variable.
784         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
785         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
786         instead of `utf-8' in UTF-2000.
787
788 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
789
790         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
791         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
792         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
793         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
794         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
795         CONVERSION_96x96x96x96 are introduced.
796         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
797         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
798         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
799
800         * char-ucs.h (CONVERSION_94): New macro.
801         (CONVERSION_96): New macro.
802         (CONVERSION_94x94): New macro.
803         (CONVERSION_96x96): New macro.
804         (CONVERSION_94x94x94): New macro.
805         (CONVERSION_96x96x96): New macro.
806         (CONVERSION_94x94x94x60): New macro.
807         (CONVERSION_94x94x94x94): New macro.
808         (CONVERSION_96x96x96x96): New macro.
809
810 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
811
812         * chartab.c (Vcharacter_variant_table): Deleted.
813         (Fchar_variants): Use character-attribute `->ucs-variants' instead
814         of `Vcharacter_variant_table'.
815         (Fput_char_attribute): Likewise.
816         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
817         (complex_vars_of_chartab): Likewise.
818
819 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
820
821         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
822
823         * fns.c (Qideographic_structure): New variable.
824         (Qkeyword_char): New variable.
825         (ids_format_unit): New function.
826         (Fideographic_structure_to_ids): New function.
827         (syms_of_fns): Add new symbols `ideographic-structure' and
828         `:char'; add new builtin function `ideographic-structure-to-ids'.
829
830         * data.c (Fchar_ref_p): New function.
831         (syms_of_data): Add new builtin function `char-ref-p'.
832
833         * chartab.h: Add an EXFUN for `Ffind_char'.
834
835 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
836
837         * text-coding.c (Vcharacter_composition_table): Deleted.
838         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
839         in every UTF-2000.
840
841         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
842         UTF-2000.
843         (Vcharacter_composition_table): Deleted.
844         (Fget_composite_char): Use the implementation for external-DB
845         support in every UTF-2000.
846         (Fput_char_attribute): Likewise.
847         (char_attribute_system_db_file): Don't define if external-DB
848         feature is not available.
849         (Fsave_char_attribute_table): Likewise.
850         (Fmount_char_attribute_table): Likewise.
851         (Fclose_char_attribute_table): Likewise.
852         (Freset_char_attribute_table): Likewise.
853         (Fload_char_attribute_table): Likewise.
854         (syms_of_chartab): Don't define `save-char-attribute-table',
855         `mount-char-attribute-table', `reset-char-attribute-table',
856         `close-char-attribute-table' and `load-char-attribute-table' if
857         external-DB feature is not available.
858         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
859
860 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
861
862         * text-coding.c (Qcomposition): Add extern if external-DB feature
863         is supported.
864         (Vcharacter_composition_table): Don't add extern if external-DB
865         feature is supported.
866         (COMPOSE_ADD_CHAR): Modify for new data-representation of
867         character composition rule if external-DB feature is supported.
868
869         * chartab.c (Vcharacter_composition_table): Don't define if
870         external-DB feature is supported.
871         (Qcomposition): New variable.
872         (Fget_composite_char): New implementation for external-DB support.
873         (Fput_char_attribute): Use `composition' property of each
874         character instead of `Vcharacter_composition_table' to store
875         character-composition rules if external-DB feature is supported.
876         (syms_of_chartab): Add new symbol `composition'.
877         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
878         external-DB feature is supported.
879
880 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
881
882         * chartab.c (Vchar_db_stingy_mode): New variable.
883         (load_char_attribute_maybe): Close database if
884         Vchar_db_stingy_mode is not NIL.
885         (Fload_char_attribute_table_map_function): Use
886         `get_char_id_table_0' instead of `get_char_id_table'.
887         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
888
889         * chartab.h (get_char_id_table_0): New inline function.
890         (get_char_id_table): Use `get_char_id_table_0'.
891
892 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
893
894         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
895         and `COMPOSE_ADD_CHAR'.
896         (decode_coding_iso2022): Use `decode_flush_er_chars'.
897
898 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
899
900         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
901         instead of `DECODE_ADD_UCS_CHAR'.
902         (COMPOSE_ADD_CHAR): Likewise.
903
904 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
905
906         * text-coding.c (decode_flush_er_chars): New inline function.
907         (decode_add_er_char): New function.
908         (decode_coding_utf8): Use `decode_flush_er_chars' and
909         `decode_add_er_char'.
910
911 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
912
913         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
914         done before `decode_output_utf8_partial_char'.
915
916         * mule-charset.c (complex_vars_of_mule_charset): Specify
917         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
918         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
919
920 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
921
922         * mule-charset.c (decode_defined_char): New function; search
923         mother.
924         (decode_builtin_char): Don't search mother if
925         XCHARSET_MAX_CODE(charset) == 0.
926         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
927         == 0 even if code >= XCHARSET_MAX_CODE(charset).
928         (Fdecode_char): Use `decode_defined_char' instead of
929         `DECODE_DEFINED_CHAR'.
930         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
931         mother of `Vcharset_ucs_jis'.
932
933         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
934         instead of `DECODE_DEFINED_CHAR'.
935
936         * char-ucs.h (decode_defined_char): Renamed from
937         `DECODE_DEFINED_CHAR'; changed to normal function.
938         (DECODE_CHAR): Use `decode_defined_char' instead of
939         `DECODE_DEFINED_CHAR'.
940
941         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
942
943 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
944
945         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
946
947         * text-coding.c (Vcoded_charset_entity_reference_alist): New
948         variable.
949         (Quse_entity_reference): New variable.
950         (Qd): New variable.
951         (Qx): New variable.
952         (QX): New variable.
953         (coding_system_description): Add description for
954         `ccs_priority_list'.
955         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
956         (allocate_coding_system): Initialize `ccs_priority_list' in
957         UTF-2000.
958         (Fmake_coding_system): Add description about
959         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
960         (codesys).
961         (Fcoding_system_property): Accept `disable-composition' and
962         `use-entity-reference' in UTF-2000.
963         (struct decoding_stream): Add new member `er_counter' and `er_buf'
964         in UTF-2000.
965         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
966         (decode_coding_utf8): Decode entity-reference if
967         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
968         (char_encode_utf8): Encode non-Unicode characters as
969         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
970         (str->codesys).
971         (syms_of_file_coding): Add new symbols `use-entity-reference',
972         `d', `x', `X'.
973         (vars_of_file_coding): Add new variable
974         `coded-charset-entity-reference-alist'.
975         (complex_vars_of_file_coding): Declare `disable-composition' and
976         `use-entity-reference' to be coding-system-properties in UTF-2000.
977
978         * file-coding.h (struct Lisp_Coding_System): Add new member
979         `use_entity_reference' and `ccs_priority_list'.
980         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
981         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
982         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
983
984 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
985
986         * chartab.c (save_uint8_byte_table): Don't clear the table.
987         (save_uint16_byte_table): Likewise.
988         (save_byte_table): Likewise.
989         (Fmount_char_attribute_table): New function.
990         (syms_of_chartab): Add new builtin function
991         `mount-char-attribute-table'.
992
993 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
994
995         * mule-charset.c (Fsave_charset_mapping_table): Open database as
996         "w+" mode.
997         (load_char_decoding_entry_maybe): Open database as read-only mode.
998
999         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1000         open database as "w+" mode.
1001         (load_char_attribute_maybe): Open database as read-only mode.
1002         (Fload_char_attribute_table): Likewise.
1003
1004 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1005
1006         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1007         (char_table_description): Delete member `db_file'.
1008         (Fmake_char_table): Don't refer `ct->db_file'.
1009         (Fcopy_char_table): Likewise.
1010         (Fsave_char_attribute_table): Likewise.
1011         (Fclose_char_attribute_table): Likewise.
1012         (Freset_char_attribute_table): Likewise.
1013         (load_char_attribute_maybe): Likewise.
1014         (Fload_char_attribute_table): Likewise.
1015
1016         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1017
1018 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1019
1020         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1021         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1022         `ct->db' is living.
1023         (load_char_attribute_maybe): Likewise.
1024         (Fload_char_attribute_table): Likewise.
1025
1026 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1027
1028         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1029         `ct->db_file' unconditionally.
1030
1031 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1032
1033         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1034         UTF-2000.
1035         (char_table_description): Add description for `db_file' and `db'
1036         in UTF-2000.
1037         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1038         UTF-2000.
1039         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1040         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1041         (Fclose_char_attribute_table): New function.
1042         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1043         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1044         and `cit->db'.
1045         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1046         (syms_of_chartab): Add new builtin function
1047         `Fclose_char_attribute_table'.
1048
1049 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1050
1051         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1052         `db' in UTF-2000.
1053         (load_char_attribute_maybe): Change interface.
1054         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1055
1056 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1057
1058         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1059
1060 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1061
1062         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1063         instead of `DECODE_CHAR' for mother; don't use special code for
1064         chinese-big5 to use code space of chinese-big5-1 and
1065         chinese-big5-2.
1066         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1067         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1068
1069         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1070         (MAX_CHAR_BIG5_CDP): Revival.
1071
1072 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1073
1074         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1075         the XLFD registry-encoding name of `chinese-big5'.
1076
1077 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1078
1079         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1080         (Qchinese_big5_cdp): Deleted.
1081         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1082         (complex_vars_of_mule_charset): Delete coded-charset
1083         `chinese-big5-cdp'.
1084
1085         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1086         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1087         `CHARSET_ID_OFFSET - n' for private CCS.
1088         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1089         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1090         of `MIN_LEADING_BYTE'.
1091         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1092         `(CHARSET_ID_OFFSET - 97)'.
1093         (MIN_CHAR_BIG5_CDP): Deleted.
1094         (MAX_CHAR_BIG5_CDP): Deleted.
1095
1096 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097
1098         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1099
1100 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1101
1102         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1103         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1104         chartab.c].
1105
1106         * chartab.c (Vutf_2000_version): Moved to mule.c.
1107         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1108
1109 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1110
1111         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1112         when HAVE_CHISE_CLIENT is not defined.
1113
1114         * mule.c (vars_of_mule): Provide feature `chise' when
1115         HAVE_CHISE_CLIENT is defined.
1116
1117 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1118
1119         * config.h.in (UTF2000): Add comment.
1120         (HAVE_CHISE_CLIENT): New macro.
1121
1122 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1123
1124         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1125         CONSP.
1126         (Fput_char_attribute): Likewise.
1127         (char_attribute_system_db_file): Encode file-name of attribute.
1128         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1129         the initial value.
1130
1131 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1132
1133         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1134         (Fsave_charset_mapping_table): Use
1135         `char_attribute_system_db_file'.
1136         (load_char_decoding_entry_maybe): Likewise.
1137
1138         * chartab.h (Qsystem_char_id): New external variable.
1139         (char_attribute_system_db_file): New prototype.
1140
1141         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1142         (char_attribute_system_db_file): New function.
1143         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1144         (Freset_char_attribute_table): Likewise.
1145         (load_char_attribute_maybe): Likewise.
1146         (Fload_char_attribute_table): Likewise.
1147         (syms_of_chartab): Add new symbol `system-char-id'.
1148
1149 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1150
1151         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1152         `XCHARSET_GRAPHIC(ccs)'.
1153
1154 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1155
1156         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1157
1158 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1159
1160         * chartab.c (Q_ucs_variants): New variable.
1161         (syms_of_chartab): Add new symbol `->ucs-variants'.
1162         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1163         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1164         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1165
1166         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1167
1168         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1169         `HAVE_DATABASE' is defined.
1170         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1171         `HAVE_DATABASE' is defined.
1172
1173 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1174
1175         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1176         attribute-table.
1177         (Freset_char_attribute_table): New function.
1178         (syms_of_chartab): Add new builtin function
1179         `reset-char-attribute-table'.
1180
1181 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1182
1183         * chartab.c (load_char_attribute_maybe): Don't make directories.
1184
1185 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1186
1187         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1188
1189         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1190         for decoding-table.
1191
1192 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1193
1194         * mule-charset.c (Fsave_charset_mapping_table): Use
1195         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1196
1197         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1198         instead of `XCHARSET_CHARS'.
1199
1200 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1201
1202         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1203         (XCHARSET_BYTE_SIZE): Likewise.
1204
1205         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1206         mule-charset.c].
1207         (XCHARSET_BYTE_SIZE): Likewise.
1208
1209 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1210
1211         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1212         data-directory to store database.
1213         (Fsave_char_attribute_table): Likewise.
1214         (load_char_attribute_maybe): Likewise.
1215         (Fload_char_attribute_table): Likewise.
1216
1217 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1218
1219         * mule-charset.c (Fsave_charset_mapping_table): New function.
1220         (syms_of_mule_charset): Add new builtin function
1221         `save-charset-mapping-table'.
1222
1223 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1224
1225         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1226         (get_ccs_octet_table): New inline function.
1227         (put_ccs_octet_table): Likewise.
1228         (decoding_table_put_char): Use `get_ccs_octet_table' and
1229         `put_ccs_octet_table'.
1230         (decoding_table_remove_char): Use `decoding_table_put_char'.
1231         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1232
1233         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1234         into encoding_table.
1235         (make_charset): Use Qunbound instead Qnil as initial value of
1236         decoding_table.
1237
1238 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1239
1240         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1241         element is Qunloaded.
1242         (map_over_uint16_byte_table): Likewise.
1243         (map_over_byte_table): Likewise.
1244         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1245         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1246         database support, load encoding-table of the specified
1247         coded-charset if it is not loaded yet.
1248         (save_uint8_byte_table): New function of UTF-2000 with external
1249         database support.
1250         (save_uint16_byte_table): Likewise.
1251         (save_byte_table): Likewise.
1252         (Fput_char_attribute): Don't store value into external database
1253         even if the external database feature is supported in UTF-2000;
1254         set `attribute' as name of char-table if the external database
1255         feature is supported.
1256         (Fsave_char_attribute_table): New function in UTF-2000.
1257         (syms_of_chartab): Add new builtin function
1258         `save-char-attribute-table' in UTF-2000.
1259
1260 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1261
1262         * chartab.c (char_attribute_table_to_put): New variable in
1263         UTF-2000.
1264         (Qput_char_table_map_function): Likewise.
1265         (value_to_put): Likewise.
1266         (Fput_char_table_map_function): New function in UTF-2000.
1267         (put_char_table): Use `Fmap_char_attribute' for
1268         CHARTAB_RANGE_CHARSET in UTF-2000.
1269         (Fput_char_attribute): Store symbol instead of string in
1270         `XCHAR_TABLE_NAME (table)'.
1271         (load_char_attribute_maybe): Likewise.
1272         (syms_of_chartab): Add new symbol/function
1273         `put-char-table-map-function'.
1274
1275 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1276
1277         * database.h: Add new EXFUN for `Fmap_database'.
1278
1279         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1280         (syms_of_database): Likewise.
1281
1282         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1283         UTF-2000.
1284         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1285         (XCHAR_TABLE_UNLOADED): Likewise.
1286
1287         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1288         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1289         HAVE_DATABASE is defined.
1290         (char_attribute_table_to_load): New variable of UTF-2000 with
1291         external database support.
1292         (Qload_char_attribute_table_map_function): Likewise.
1293         (Fload_char_attribute_table_map_function): New function of
1294         UTF-2000 with external database support.
1295         (Fload_char_attribute_table): New function of UTF-2000.
1296         (Fmap_char_attribute): Call Fload_char_attribute_table if
1297         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1298         (syms_of_chartab): Add new symbol and function
1299         `load-char-attribute-table-map-function' in UTF-2000 with external
1300         database support; add new function `load-char-attribute-table' in
1301         UTF-2000.
1302
1303 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304
1305         * chartab.h (load_char_attribute_maybe): New prototype for
1306         UTF-2000 with DATABASE support.
1307         (get_char_id_table): Use `load_char_attribute_maybe' if
1308         HAVE_DATABASE is defined.
1309
1310         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1311         with DATABASE support.
1312
1313 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1314
1315         * chartab.c (Fput_char_attribute): Use S-expression as key of
1316         external database.
1317
1318         * chartab.h (get_char_id_table): Use S-expression as key of
1319         external database.
1320
1321 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1322
1323         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1324         if an element is not loaded, load the corresponding attributes
1325         from an external database.
1326         (map_over_uint16_byte_table): Likewise.
1327         (map_over_byte_table): Likewise.
1328         (map_char_table): Modify for `map_over_uint8_byte_table',
1329         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1330         element is not loaded, load the corresponding attributes from an
1331         external database.
1332         (Fput_char_attribute): Change initial values to Qunloaded.
1333
1334         * chartab.h (get_char_id_table): If a character attribute is not
1335         loaded and the attribute value is not found in an external
1336         database, store Qunbound as the attribute value.
1337
1338 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1339
1340         * chartab.c (BT_UINT8_unloaded): New macro.
1341         (UINT8_VALUE_P): Accept Qunloaded.
1342         (UINT8_ENCODE): Likewise.
1343         (UINT8_DECODE): Likewise.
1344         (BT_UINT16_unloaded): New macro.
1345         (UINT16_VALUE_P): Accept Qunloaded.
1346         (UINT16_ENCODE): Likewise.
1347         (UINT16_DECODE): Likewise.
1348         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1349         BT_UINT16_unloaded.
1350         (mark_char_table): Mark `ct->name' in UTF-2000.
1351         (char_table_description): Add `name' in UTF-2000.
1352         (Fmake_char_table): Initialize `ct->name'.
1353         (Fcopy_char_table): Copy `ct->name'.
1354         (Fput_char_attribute): Store value into an external database if
1355         HAVE_DATABASE is defined.
1356
1357         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1358         UTF-2000.
1359         (CHAR_TABLE_NAME): New macro in UTF-2000.
1360         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1361         (get_char_id_table): Try to read an external database if Qunloaded
1362         is stored in a table.
1363
1364         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1365         Qunloaded.
1366
1367 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1368
1369         * database.h: Add EXFUN definitions for Fopen_database,
1370         Fput_database, Fget_database and Fclose_database.
1371
1372         * data.c (Qunloaded): New variable in UTF-2000.
1373
1374         * lisp.h (Qunloaded): New variable in UTF-2000.
1375
1376 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1377
1378         * mule-charset.c (put_char_ccs_code_point): Modify for
1379         `decoding_table_remove_char' and `decoding_table_put_char'.
1380         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1381
1382         * char-ucs.h (decoding_table_remove_char): Change arguments to
1383         hide decoding_table vector.
1384         (decoding_table_put_char): Likewise.
1385
1386 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1387
1388         * mule-charset.c (decoding_table_remove_char): Moved to
1389         char-ucs.h.
1390         (decoding_table_put_char): Likewise.
1391
1392         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1393         from mule-charset.c].
1394         (decoding_table_remove_char): New inline function [moved from
1395         mule-charset.c].
1396         (decoding_table_put_char): Likewise.
1397
1398 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1399
1400         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1401         extension.
1402
1403 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1404
1405         * mule-charset.c (decode_builtin_char): Support mother charsets.
1406
1407 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1408
1409         * mule-charset.c (Q94x94x60): New variable.
1410         (charset_code_point): Support conversion `94x94x60'.
1411         (Fmake_charset): Likewise.
1412         (syms_of_mule_charset): Add new symbol `94x94x60'.
1413
1414         * char-ucs.h (CONVERSION_94x94x60): New macro.
1415
1416 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1417
1418         * mule-charset.c (charset_code_point): Unify code about
1419         `code-offset'.
1420
1421 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1422
1423         * mule-charset.c (charset_code_point): Merge code about builtin
1424         characters into code about mother charsets; don't use
1425         `range_charset_code_point'.
1426         (range_charset_code_point): Deleted.
1427
1428 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1429
1430         * mule-charset.c (Qcode_offset): New variable.
1431         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1432         `max-code'; accept new property `code-offset'.
1433         (syms_of_mule_charset): Add new symbol `code-offset'.
1434
1435 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1436
1437         * mule-charset.c (range_charset_code_point): Fixed.
1438
1439 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1440
1441         * mule-charset.c (decode_builtin_char): Change semantics of
1442         code-offset of coded-charset.
1443         (charset_code_point): Likewise.
1444         (range_charset_code_point): Likewise.
1445         (complex_vars_of_mule_charset): Modify for the change.
1446
1447 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1448
1449         * mule-charset.c (Fencode_char): Reverse arguments.
1450
1451         * mule-charset.c (charset_code_point): Fixed.
1452
1453 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1454
1455         * mule-charset.c (Vcharset_mojikyo): Deleted.
1456         (Vcharset_mojikyo_2022_1): Deleted.
1457         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1458         (Qmin_code): New variable in UTF-2000.
1459         (Qmax_code): Likewise.
1460         (Qmother): Likewise.
1461         (Qconversion): Likewise.
1462         (Q94x60): Likewise.
1463         (Qmojikyo): Deleted.
1464         (Qmojikyo_2022_1): Deleted.
1465         (Qmojikyo_pj_{1..22}): Deleted.
1466         (mark_charset): Mark `cs->mother'.
1467         (charset_description): Add description for `mother'.
1468         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1469         new arguments `mother' and `conversion'; use
1470         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1471         (charset_code_point): Moved from char-ucs.h; support `mother'
1472         charset feature.
1473         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1474         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1475         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1476         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1477         allow 2 as the value of `graphic' in UTF-2000; add new properties
1478         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1479         require `final' in UTF-2000; modify for `make_charset'.
1480         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1481         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1482         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1483         (Fencode_char): New function.
1484         (syms_of_mule_charset): Add new builtin function `encode-char' in
1485         UTF-2000; add new symbols `min-code', `max-code', `mother',
1486         `conversion' and `94x60'; delete symbols `mojikyo',
1487         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1488         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1489         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1490         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1491
1492         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1493         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1494
1495         * char-ucs.h (Vcharset_mojikyo): Deleted.
1496         (Vcharset_mojikyo_2022_1): Deleted.
1497         (LEADING_BYTE_MOJIKYO): Deleted.
1498         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1499         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1500         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1501         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1502         add new member `mother'; add new member `conversion'.
1503         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1504         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1505         (CHARSET_MOTHER): New macro.
1506         (CHARSET_CONVERSION): New macro.
1507         (CONVERSION_IDENTICAL): New macro.
1508         (CONVERSION_94x60): New macro.
1509         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1510         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1511         (XCHARSET_MOTHER): New macro.
1512         (XCHARSET_CONVERSION): New macro.
1513         (MIN_CHAR_MOJIKYO): Deleted.
1514         (MAX_CHAR_MOJIKYO): Deleted.
1515         (DECODE_MOJIKYO_2022): Deleted.
1516         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1517         (charset_code_point): Changed to non-inline function.
1518         (encode_char_1): Use `charset_code_point'.
1519         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1520
1521 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1522
1523         * lread.c (read_compiled_function): Fix prototype.
1524         (read_vector): Likewise.
1525
1526 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1527
1528         * lrecord.h (struct lrecord_header): Delete `older'.
1529         (set_lheader_implementation): Delete code for `older'.
1530         (set_lheader_older_implementation): Deleted.
1531         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1532         (OLDER_RECORD_P): Deleted.
1533         (OLDER_RECORD_HEADER_P): Deleted.
1534         (alloc_older_lcrecord): Deleted.
1535         (alloc_older_lcrecord_type): Deleted.
1536
1537         * alloc.c (all_older_lcrecords): Deleted.
1538         (alloc_older_lcrecord): Deleted.
1539         (disksave_object_finalization_1): Delete code for older objects.
1540         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1541         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1542
1543 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544
1545         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1546         instead of `make_older_vector'.
1547         (put_char_ccs_code_point): Likewise.
1548         (mark_charset): Mark `cs->decoding_table'.
1549         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1550
1551         * lisp.h (make_older_vector): Deleted.
1552         (make_vector_newer): Deleted.
1553
1554         * config.h.in (HAVE_GGC): Deleted.
1555
1556         * alloc.c (make_older_vector): Deleted.
1557         (make_vector_newer_1): Deleted.
1558         (make_vector_newer): Deleted.
1559
1560 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1561
1562         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1563         (Qideograph_daikanwa_2): New variable.
1564         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1565         (complex_vars_of_mule_charset): Add new coded-charset
1566         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1567         `LEADING_BYTE_DAIKANWA'.
1568
1569         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1570         (LEADING_BYTE_DAIKANWA_1): New macro.
1571         (LEADING_BYTE_DAIKANWA_2): New macro.
1572         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1573
1574 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1575
1576         * mule-charset.c (complex_vars_of_mule_charset): Change
1577         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1578         the second revised version.
1579
1580 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1581
1582         * mule-charset.c (Vcharset_ucs_smp): New variable.
1583         (Vcharset_ucs_sip): New variable.
1584         (Qucs_smp): New variable.
1585         (Qucs_sip): New variable.
1586         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1587         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1588         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1589         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1590         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1591         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1592
1593         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1594         (LEADING_BYTE_UCS_SIP): New macro.
1595         (MIN_CHAR_SMP): New macro.
1596         (MAX_CHAR_SMP): New macro.
1597         (MIN_CHAR_SIP): New macro.
1598         (MAX_CHAR_SIP): New macro.
1599
1600 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1601
1602         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1603         utf-2000.
1604
1605 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606
1607         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1608         value; don't store value into `encoding_table' of `Lisp_Charset'.
1609         (mark_charset): `encoding_table' was deleted.
1610         (charset_description): Likewise.
1611         (make_charset): Likewise.
1612         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1613         `put_char_ccs_code_point'.
1614
1615         * chartab.h (Fput_char_attribute): New EXFUN.
1616
1617         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1618         is unified with normal symbol space.
1619         (Fget_char_attribute): Likewise.
1620         (Fput_char_attribute): Likewise; behavior of
1621         `put_char_ccs_code_point' is changed.
1622
1623         * char-ucs.h: Include "elhash.h".
1624         (Vchar_attribute_hash_table): New external variable.
1625         (struct Lisp_Charset): Delete `encoding_table'.
1626         (CHARSET_ENCODING_TABLE): New implementation; refer
1627         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1628         `Lisp_Charset'.
1629
1630 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1631
1632         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1633         (cs) == 0.
1634
1635 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1636
1637         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1638         `chinese-big5'.
1639
1640 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1641
1642         * chartab.c (uint8_byte_table_description): New constant.
1643         (uint8-byte-table): Use `uint8_byte_table_description'.
1644         (uint16_byte_table_description): New constant.
1645         (uint16-byte-table): Use `uint16_byte_table_description'.
1646
1647 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1648
1649         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1650         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1651
1652 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1653
1654         * mule-charset.c (Vcharset_ucs_ks): New variable.
1655         (Qucs_ks): New variable.
1656         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1657         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1658
1659         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1660
1661 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1662
1663         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1664         (Fdecode_char): Likewise.
1665
1666         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1667         chartab.h.
1668         (Fdefine_char): Modify for Fdecode_char.
1669         (Ffind_char): Likewise.
1670
1671         * mule-charset.c (Fdecode_char): Add new optional argument
1672         `defined-only'.
1673         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1674
1675 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1676
1677         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1678         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1679         (allocate_coding_system): Initialize initial-charsets of
1680         CODESYS_BIG5 in XEmacs UTF-2000.
1681         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1682         CODESYS_BIG5 in XEmacs UTF-2000.
1683         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1684         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1685
1686         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1687         variables.
1688         (Qideograph_hanziku_{1 .. 12}): Likewise.
1689         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1690         .. 12}'.
1691         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1692         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1693         `ideograph-hanziku-{1 .. 12}'.
1694
1695         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1696         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1697         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1698         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1699         (DECODE_DEFINED_CHAR): New inline function.
1700         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1701
1702 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1703
1704         * mule-charset.c (Vcharset_china3_jef): Renamed from
1705         `Vcharset_japanese_jef_china3'.
1706         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1707         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1708         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1709         (syms_of_mule_charset): Rename `china3-jef' from
1710         `japanese-jef-china3'.
1711         (complex_vars_of_mule_charset): Likewise; rename
1712         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1713
1714         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1715         `LEADING_BYTE_JEF_CHINA3'.
1716         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1717         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1718
1719 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1720
1721         * mule-charset.c (encode_builtin_char_1): Comment out special code
1722         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1723
1724         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1725         (MAX_CHAR_MOJIKYO_0): Comment out.
1726         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1727         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1728         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1729         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1730
1731 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1732
1733         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1734         (Qideograph_cbeta): New variable.
1735         (encode_builtin_char_1): Comment out special code for
1736         coded-charset `mojikyo' and `japanese-jef-china3'.
1737         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1738         (complex_vars_of_mule_charset): Add new coded-charset
1739         `ideograph-cbeta'.
1740
1741         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1742         (MIN_CHAR_CBETA): New macro.
1743         (MAX_CHAR_CBETA): New macro.
1744
1745 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1746
1747         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1748         (LEADING_BYTE_JEF_CHINA3): New macro.
1749         (MIN_CHAR_JEF_CHINA3): New macro.
1750         (MAX_CHAR_JEF_CHINA3): Likewise.
1751         (DECODE_CHAR): Fixed.
1752
1753 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754
1755         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1756         (Qjapanese_jef_china3): New variable.
1757         (encode_builtin_char_1): Support `japanese-jef-china3'.
1758         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1759         (complex_vars_of_mule_charset): Add new coded-charset
1760         `japanese-jef-china3'.
1761
1762 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1763
1764         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1765         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1766         94^4, 96^3, 96^4, 128^n and 256^n set.
1767         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1768         (map_char_table): Likewise.
1769
1770 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1771
1772         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1773         UTF-2000.
1774
1775 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1776
1777         * chartab.h (get_char_id_table): New inline function.
1778
1779         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1780         function.
1781
1782 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1783
1784         * chartab.h (decode_char_table_range): New prototype in XEmacs
1785         UTF-2000.
1786         (put_char_id_table): New inline function in XEmacs UTF-2000.
1787
1788         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1789         function.
1790         (decode_char_table_range): Delete static declaration in XEmacs
1791         UTF-2000.
1792
1793 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1794
1795         * chartab.c (put_char_id_table): Use `put_char_table'.
1796
1797 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1798
1799         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1800         (map_over_uint16_byte_table): Likewise.
1801         (map_over_byte_table): Likewise.
1802         (map_char_table): Modify for `map_over_uint8_byte_table',
1803         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1804         UTF-2000.
1805
1806 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807
1808         * chartab.c (struct map_char_table_for_charset_arg): New
1809         structure.
1810         (map_char_table_for_charset_fun): New function.
1811         (map_char_table): Use `map_char_table' for encoding_table of
1812         `range->charset'.
1813
1814 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815
1816         * chartab.c (map_char_table): Check a character is found in
1817         range->charset instead of non default value is defined in
1818         char-table when range is CHARTAB_RANGE_ROW.
1819
1820 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1821
1822         * chartab.c (map_char_id_table): Deleted.
1823         (Fmap_char_attribute): Use `map_char_table' instead of
1824         `map_char_id_table'.
1825
1826 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1827
1828         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1829         UTF-2000.
1830         (update_syntax_table): Deleted in XEmacs UTF-2000.
1831
1832         * syntax.c (find_defun_start): Use `syntax_table' instead of
1833         `mirror_syntax_table' in XEmacs UTF-2000.
1834         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1835         UTF-2000.
1836         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1837         XEmacs UTF-2000.
1838         (Fmatching_paren): Likewise.
1839         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1840         in XEmacs UTF-2000.
1841         (find_start_of_comment): Likewise.
1842         (find_end_of_comment): Likewise.
1843         (Fforward_comment): Likewise.
1844         (scan_lists): Likewise.
1845         (char_quoted): Likewise.
1846         (Fbackward_prefix_chars): Likewise.
1847         (scan_sexps_forward): Likewise.
1848         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1849         (update_syntax_table): Likewise.
1850
1851         * search.c (skip_chars): Use `syntax_table' instead of
1852         `mirror_syntax_table' in XEmacs UTF-2000.
1853         (wordify): Likewise.
1854         (Freplace_match): Likewise.
1855
1856         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1857         `mirror_syntax_table' in XEmacs UTF-2000.
1858         (WORDCHAR_P_UNSAFE): Likewise.
1859         (re_match_2_internal): Likewise.
1860
1861         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1862         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1863
1864         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1865         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1866
1867         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1868         XEmacs UTF-2000.
1869
1870         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1871         UTF-2000.
1872         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1873         (char_table_description): Delete `mirror_table' in XEmacs
1874         UTF-2000.
1875         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1876         UTF-2000.
1877         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1878         (Fcopy_char_table): Likewise.
1879         (put_char_table): Don't call `update_syntax_table' in XEmacs
1880         UTF-2000.
1881
1882         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1883         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1884         (casify_region_internal): Likewise.
1885
1886         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1887
1888         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1889         `mirror_syntax_table' in XEmacs UTF-2000.
1890
1891         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1892         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1893         (Fexpand_abbrev): Likewise.
1894
1895 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1896
1897         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1898
1899 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1900
1901         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1902         (map_over_uint16_byte_table): Likewise.
1903         (map_over_byte_table): Likewise.
1904         (get_char_id_table): Refer `cit->default_value'.
1905         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1906         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1907         of character-id ranges.
1908         (mark_char_table): Mark `ct->default_value'.
1909         (char_table_description): Add `default_value'.
1910         (fill_char_table): Use `default_value'.
1911         (decode_char_table_range): Decode `nil' as
1912         `CHARTAB_RANGE_DEFAULT'.
1913         (get_char_id_table): Refer `cit->default_value'.
1914         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1915         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1916         temporary hack; check value of char-table is bound or not.
1917         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1918
1919         * chartab.h (struct Lisp_Char_Table): Add new member
1920         `default_value' in XEmacs UTF-2000.
1921         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1922         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1923         UTF-2000.
1924
1925 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1926
1927         * chartab.h (Lisp_Char_ID_Table): Deleted.
1928
1929         * chartab.c (char_table_description): Fix typo.
1930         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1931         `Lisp_Char_ID_Table'.
1932
1933 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1934
1935         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1936         `CHAR_ID_TABLE_P'.
1937
1938         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1939         `CHAR_ID_TABLE_P'.
1940
1941         * chartab.h (XCHAR_ID_TABLE): Deleted.
1942         (XSETCHAR_ID_TABLE): Deleted.
1943         (CHAR_ID_TABLE_P): Deleted.
1944
1945         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1946         `CHAR_ID_TABLE_P'.
1947         (Fget_composite_char): Likewise.
1948         (put_char_table): Likewise.
1949         (add_char_attribute_alist_mapper): Fixed.
1950         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1951         `CHAR_ID_TABLE_P'.
1952         (Fget_char_attribute): Likewise.
1953         (Fget_char_attribute): Likewise.
1954         (Fmap_char_attribute): Likewise.
1955
1956         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1957         `CHAR_ID_TABLE_P'.
1958         (encode_char_1): Likewise.
1959
1960 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1961
1962         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1963         `XCHAR_ID_TABLE'.
1964
1965         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1966         instead of `XCHAR_ID_TABLE'.
1967         (remove_char_ccs): Likewise.
1968
1969         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1970         `XCHAR_ID_TABLE'.
1971         (Fget_composite_char): Likewise.
1972         (Fchar_variants): Likewise.
1973         (put_char_table): Likewise.
1974         (add_char_attribute_alist_mapper): Likewise.
1975         (Fchar_attribute_alist): Likewise.
1976         (Fget_char_attribute): Likewise.
1977         (Fput_char_attribute): Likewise.
1978         (Fmap_char_attribute): Likewise.
1979         (Fmap_char_attribute): Likewise.
1980
1981         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1982         `XCHAR_ID_TABLE'.
1983         (encode_char_1): Likewise.
1984
1985 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1986
1987         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1988         `Lisp_Char_ID_Table'.
1989         (mark_char_id_table): Deleted.
1990         (print_char_id_table): Likewise.
1991         (char_id_table_equal): Likewise.
1992         (char_id_table_hash): Likewise.
1993         (char_id_table_description): Likewise.
1994         (char_id_table): Likewise.
1995         (make_char_id_table): Use `Fmake_char_table' and
1996         `fill_char_table'.
1997         (get_char_id_table): Use `Lisp_Char_Table' instead of
1998         `Lisp_Char_ID_Table'.
1999         (put_char_id_table): Likewise.
2000         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2001         `XCHAR_ID_TABLE'.
2002         (Fremove_char_attribute): Likewise.
2003         (syms_of_chartab): Don't define type `char-id-table'.
2004
2005         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2006         (char_id_table): Likewise.
2007         (GC_CHAR_ID_TABLE_P): Likewise.
2008         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2009         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2010         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2011         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2012         (get_char_id_table): Use `Lisp_Char_Table' instead of
2013         `Lisp_Char_ID_Table'.
2014         (put_char_id_table_0): Likewise.
2015         (put_char_id_table): Likewise.
2016
2017 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2018
2019         * chartab.h: Lisp_Byte_Table related codes are moved from
2020         chartab.h.
2021
2022         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2023
2024 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2025
2026         * chartab.h: Don't include "chartab.h".
2027         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2028         (Lisp_Char_ID_Table): Likewise.
2029         (char_id_table): Likewise.
2030         (XCHAR_ID_TABLE): Likewise.
2031         (XSETCHAR_ID_TABLE): Likewise.
2032         (CHAR_ID_TABLE_P): Likewise.
2033         (GC_CHAR_ID_TABLE_P): Likewise.
2034         (get_char_id_table): Likewise.
2035
2036         * char-ucs.h: Include "chartab.h".
2037         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2038         (Lisp_Char_ID_Table): Likewise.
2039         (char_id_table): Likewise.
2040         (XCHAR_ID_TABLE): Likewise.
2041         (XSETCHAR_ID_TABLE): Likewise.
2042         (CHAR_ID_TABLE_P): Likewise.
2043         (GC_CHAR_ID_TABLE_P): Likewise.
2044         (get_char_id_table): Likewise.
2045
2046 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2047
2048         * chartab.c (copy_uint8_byte_table): New function.
2049         (copy_uint16_byte_table): New function.
2050         (copy_byte_table): New function.
2051         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2052         characters to call.
2053         (map_over_uint16_byte_table): Likewise.
2054         (map_over_byte_table): Likewise.
2055         (get_byte_table): Move prototype to chartab.h.
2056         (put_byte_table): Likewise.
2057         (put_char_id_table_0): Moved to chartab.h.
2058         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2059         (char_table_entry_equal): Likewise.
2060         (char_table_entry_hash): Likewise.
2061         (char_table_entry_description): Likewise.
2062         (char_table_entry): Likewise.
2063         (make_char_table_entry): Likewise.
2064         (copy_char_table_entry): Likewise.
2065         (get_non_ascii_char_table_value): Likewise.
2066         (map_over_charset_ascii): Likewise.
2067         (map_over_charset_control_1): Likewise.
2068         (map_over_charset_row): Likewise.
2069         (map_over_other_charset): Likewise.
2070         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2071         (print_char_table): Likewise.
2072         (char_table_equal): Likewise.
2073         (char_table_hash): Likewise.
2074         (char_table_description): Likewise.
2075         (fill_char_table): Likewise.
2076         (Fcopy_char_table): Likewise.
2077         (get_char_table): Likewise.
2078         (Fget_range_char_table): Likewise.
2079         (put_char_table): Likewise.
2080         (map_char_table): Likewise.
2081         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2082         UTF-2000.
2083
2084 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2085
2086         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2087         `Vauto_fill_chars' in XEmacs UTF-2000.
2088
2089         * chartab.h (get_byte_table): New prototype [moved from
2090         chartab.c].
2091         (put_byte_table): Likewise [moved from chartab.c].
2092         (put_char_id_table_0): New inline function [moved from chartab.c].
2093         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2094         (Lisp_Char_Table_Entry): Likewise.
2095         (char_table_entry): Likewise.
2096         (XCHAR_TABLE_ENTRY): Likewise.
2097         (XSETCHAR_TABLE_ENTRY): Likewise.
2098         (CHAR_TABLE_ENTRYP): Likewise.
2099         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2100         (NUM_ASCII_CHARS): Likewise.
2101         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2102         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2103
2104 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2105
2106         * chartab.c (get_char_id_table): Change interface.
2107         (put_char_id_table_0): New function.
2108         (put_char_id_table): Change interface; new implementation.
2109         (Fget_composite_char): Modify for interface change of
2110         `get_char_id_table'.
2111         (Fchar_variants): Likewise.
2112         (add_char_attribute_alist_mapper): Likewise.
2113         (Fchar_attribute_alist): Likewise.
2114         (Fget_char_attribute): Likewise.
2115         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2116         as same as character as the first argument like `put-char-table';
2117         modify for interface change of `put_char_id_table'.
2118         (Fremove_char_attribute): Modify for interface change of
2119         `put_char_id_table'.
2120
2121 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2122
2123         * text-coding.c: Sync up with XEmacs 21.2.41.
2124         (COMPOSE_ADD_CHAR): Modify for interface change of
2125         `get_char_id_table'.
2126
2127         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2128         change of `put_char_id_table'.
2129         (remove_char_ccs): Likewise.
2130
2131         * chartab.h (put_char_id_table): Change interface.
2132
2133         * char-ucs.h (get_char_id_table): Change interface.
2134         (charset_code_point): Modify for interface change of
2135         `get_char_id_table'.
2136         (encode_char_1): Likewise.
2137
2138 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2139
2140         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2141         argument `ccs'.
2142         (map_over_uint16_byte_table): Likewise.
2143         (map_over_byte_table): Likewise.
2144         (map_char_id_table): Add new argument `range' like
2145         `map_char_table'.
2146         (Fmap_char_attribute): Add new argument `range' like
2147         `Fmap_char_table'.
2148
2149 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2150
2151         * chartab.c (map_over_uint8_byte_table): Change interface of
2152         mapping function to use struct chartab_range instead of Emchar.
2153         (map_over_uint16_byte_table): Likewise.
2154         (map_over_byte_table): Likewise.
2155         (map_char_id_table): Likewise.
2156         (struct slow_map_char_id_table_arg): Deleted.
2157         (slow_map_char_id_table_fun): Deleted.
2158         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2159         function `slow_map_char_table_fun' instead of struct
2160         `slow_map_char_id_table_arg' and function
2161         `slow_map_char_id_table_fun'.
2162
2163 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2164
2165         * mule-charset.c: Move char-it-table related codes to chartab.c.
2166         (Vutf_2000_version): Moved to chartab.c.
2167         (Fdefine_char): Likewise.
2168         (Ffind_char): Likewise.
2169         (syms_of_mule_charset): Move types `uint8-byte-table',
2170         `uint16-byte-table', `byte-table' and `char-id-table' to
2171         chartab.c; move functions `char_attribute_list,
2172         `find_char_attribute_table, `char_attribute_alist,
2173         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2174         `map_char_attribute, `define_char, `find_char, `char_variants and
2175         `get_composite_char to chartab.c; move symbols `=>ucs',
2176         `->decomposition', `compat', `isolated', `initial', `medial',
2177         `final', `vertical', `noBreak', `fraction', `super', `sub',
2178         `circle', `square', `wide', `narrow', `small' and `font' to
2179         chartab.c.
2180         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2181         setting codes for `Vcharacter_composition_table' and
2182         `Vcharacter_variant_table' to chartab.c.
2183         (complex_vars_of_mule_charset): Move setting code for
2184         `Vchar_attribute_hash_table' to chartab.c.
2185
2186         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2187         (make_char_id_table): New prototype.
2188         (put_char_id_table): Likewise.
2189         (Fget_char_attribute): Likewise.
2190
2191         * chartab.c: Move char-id-table related code from mule-charset.c.
2192         (Vutf_2000_version): Moved from mule-charset.c.
2193
2194         * char-ucs.h (Qucs): New external variable.
2195         (put_char_ccs_code_point): New prototype.
2196         (remove_char_ccs): Likewise.
2197
2198 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2199
2200         * mule-charset.c (Vcharset_ucs_jis): New variable.
2201         (Qucs_jis): Likewise.
2202         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2203         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2204
2205         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2206
2207 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2208
2209         * mule-charset.c (map_over_uint8_byte_table): New function.
2210         (map_over_uint16_byte_table): Likewise.
2211         (map_over_byte_table): Likewise.
2212         (map_char_id_table): Likewise.
2213         (slow_map_char_id_table_fun): Likewise.
2214         (Fmap_char_attribute): Likewise.
2215         (syms_of_mule_charset): Add new function `map-char-attribute'.
2216
2217 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2218
2219         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2220         (syms_of_mule_charset): Add new function `find-char'.
2221
2222 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2223
2224         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2225         XEmacs UTF-2000.
2226         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2227         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2228         XEmacs UTF-2000.
2229         (complex_vars_of_mule_charset): Add new coded-charset
2230         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2231         `ideograph-gt-pj-*'.
2232
2233         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2234
2235 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2236
2237         * mule-charset.c (encode_builtin_char_1): Purge codes about
2238         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2239         {MIN|MAX}_CHAR_HEBREW.
2240         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2241         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2242
2243         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2244         (MAX_CHAR_GREEK): Purged.
2245         (MIN_CHAR_CYRILLIC): Purged.
2246         (MAX_CHAR_CYRILLIC): Purged.
2247         (MIN_CHAR_HEBREW): Commented out.
2248         (MAX_CHAR_HEBREW): Likewise.
2249
2250 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2251
2252         * mule-charset.c (Qto_ucs): New variable.
2253         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2254         (Fdefine_char): Likewise.
2255         (syms_of_mule_charset): Add new symbol `=>ucs'.
2256
2257 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2258
2259         * mule-charset.c (Fdecode_char): Fixed.
2260
2261 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2262
2263         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2264         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2265         "tcvn5712-1".
2266
2267 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2268
2269         * mule-charset.c (Vcharset_ucs_big5): New variable.
2270         (Qucs_big5): Likewise.
2271         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2272         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2273
2274         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2275
2276 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2277
2278         * mule-charset.c (decode_builtin_char): Check Big5 code range
2279         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2280
2281 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2282
2283         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2284         (Qchinese_gb12345): Likewise.
2285         (Fdecode_builtin_char): Fixed.
2286         (syms_of_mule_charset): Add `chinese-gb12345'.
2287         (complex_vars_of_mule_charset): Add coded-charset
2288         `chinese-gb12345'.
2289
2290         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2291         (LEADING_BYTE_CHINESE_GB12345): New macro.
2292
2293 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2294
2295         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2296         and `latin-viscii-upper' for `latin-viscii'.
2297
2298 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2299
2300         * mule-charset.c (Fdecode_builtin_char): Comment out
2301         regularization code for ISO-IR GR representation.
2302
2303 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2304
2305         * mule-charset.c (decode_builtin_char): New function; renamed from
2306         `make_builtin_char'; return -1 instead of signal.
2307         (Fdecode_builtin_char): Use `decode_builtin_char'.
2308
2309         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2310         `make_builtin_char'.
2311         (DECODE_CHAR): Use `decode_builtin_char' instead of
2312         `make_builtin_char'; use mapping table of `chinese-big5' for
2313         `chinese-big5-{1,2}'.
2314
2315 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2316
2317         * text-coding.c (char_encode_big5): New function.
2318         (char_finish_big5): Likewise.
2319         (reset_encoding_stream): Use `char_encode_big5' and
2320         `char_finish_big5' for CODESYS_BIG5.
2321         (mule_encode): Don't use `encode_coding_big5'.
2322         (encode_coding_big5): Deleted.
2323
2324 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2325
2326         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2327         0x81- in XEmacs UTF-2000.
2328         (detect_coding_big5): Likewise.
2329
2330 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2331
2332         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2333         generate character-id if the CCS property does not have
2334         corresponding predefined character.
2335         (make_builtin_char): Return -1 if corresponding predefined
2336         character is not found.
2337         (Fdecode_char): Return nil if corresponding character is not
2338         found.
2339         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2340         don't map to builtin ucs space.
2341
2342 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2343
2344         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2345         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2346
2347 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2348
2349         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2350         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2351         (Qideograph_gt): Likewise.
2352         (Qideograph_gt_pj_{1..11}): Likewise.
2353         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2354         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2355         `ideograph-gt-pj-11'.
2356         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2357         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2358         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2359
2360         * char-ucs.h (LEADING_BYTE_GT): New macro.
2361         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2362         (MIN_CHAR_GT): Likewise.
2363         (MAX_CHAR_GT): Likewise.
2364
2365 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2366
2367         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2368         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2369
2370         * doprnt.c (unsigned_int_converters): Add `c'.
2371         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2372
2373         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2374         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2375         `MIN_CHAR_MOJIKYO'.
2376         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2377         (MAX_CHAR_MOJIKYO_0): New macro.
2378         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2379
2380 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2381
2382         * mule-charset.c (Fdefine_char): Delete cemented out code.
2383         (encode_builtin_char_1): Modify for new allocation of builtin
2384         Mojikyo characters.
2385
2386         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2387
2388 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2389
2390         * mule-charset.c (Vcharset_ucs_cns): New variable.
2391         (Qucs_cns): New variable.
2392         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2393         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2394
2395 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2396
2397         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2398
2399 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2400
2401         * search.c (search_buffer): Make `charset_base_code' as
2402         character-id >> 6 to eliminate the corresponding last byte in
2403         UTF-8 representation [I'm not sure it is right thing].
2404         (boyer_moore): Likewise.
2405
2406 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2407
2408         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2409         representation in MULE.
2410
2411 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2412
2413         * text-coding.c (Fmake_coding_system): Use
2414         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2415         `EXTERNAL_PROPERTY_LIST_LOOP'.
2416
2417 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2418
2419         * text-coding.c (decode_output_utf8_partial_char): New function.
2420         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2421
2422 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2423
2424         * text-coding.c (decode_coding_utf8): Output original byte
2425         sequence if it is broken; change order of conditions.
2426
2427         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2428         of conditions.
2429
2430         * mb-multibyte.h (BYTE_ASCII_P):
2431         Use bit ops for char-signedness safety.
2432         (BYTE_C0_P): Use bit ops for char-signedness safety.
2433         (BYTE_C1_P): Use bit ops for char-signedness safety.
2434
2435         * character.h: (XCHAR_OR_CHAR_INT):
2436         Always use inline function.
2437         Remove redundant type checking assert() - XINT will abort quite
2438         nicely.
2439
2440 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2441
2442         * text-coding.c: (Fencode_shift_jis_char):
2443         (Fencode_big5_char):
2444         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2445         Replace 0 with '\0' when working with bytes.
2446         Replace initial "(" with "\(" in docstrings.
2447
2448         (Fmake_coding_system):
2449         When type is ccl and value is vector, register it with a proper
2450         symbol.  And checks whether the given ccl program is valid.
2451         (mule_decode): When calling ccl_driver, if src indicates
2452         NULL pointer, set an empty string instead.
2453         (mule_encode): Likewise.
2454
2455         (detect_eol_type):
2456         (detect_coding_sjis):
2457         (decode_coding_sjis):
2458         (detect_coding_big5):
2459         (decode_coding_big5):
2460         (detect_coding_ucs4):
2461         (decode_coding_ucs4):
2462         (detect_coding_utf8):
2463         (decode_coding_utf8):
2464         (detect_coding_iso2022):
2465         (decode_coding_iso2022):
2466         (decode_coding_no_conversion):
2467         (mule_decode):
2468         Make all detecting and decoding functions take an Extbyte * arg.
2469         (text_encode_generic):
2470         (encode_coding_big5):
2471         (encode_coding_no_conversion):
2472         (mule_encode):
2473         Make all encoding functions take a Bufbyte * arg.
2474         Use size_t instead of unsigned int for memory sizes.
2475         Only cast to unsigned char whenever dereferencing Extbyte *.
2476
2477         (struct lrecord_description fcd_description_1): Use countof.
2478         (complex_vars_of_file_coding):
2479         Use countof instead of sizeof.
2480         Use CHECK_NATNUM instead of CHECK_INT.
2481
2482 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2483
2484         * mule-charset.c (Fget_char_attribute): Add new optional argument
2485         `default-value'.
2486         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2487         (remove_char_ccs): Likewise.
2488
2489 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2490
2491         * text-coding.c (char_encode_shift_jis): New implementation in
2492         UTF-2000.
2493         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2494         ...)'.
2495
2496         * mule-charset.c (Vcharset_chinese_big5): New variable in
2497         UTF-2000.
2498         (Qchinese_big5): New variable in UTF-2000.
2499         (BIG5_SAME_ROW): New macro in UTF-2000.
2500         (make_builtin_char): Use builtin characters of
2501         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2502         characters of `Vcharset_chinese_big5'.
2503         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2504         (complex_vars_of_mule_charset): Add new coded-charset
2505         `chinese-big5' in UTF-2000.
2506
2507         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2508         (Vcharset_chinese_big5): New external variable declaration.
2509         (Vcharset_japanese_jisx0208_1990): Likewise.
2510
2511 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2512
2513         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2514         function.
2515         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2516
2517 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2518
2519         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2520         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2521         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2522         `mojikyo-pj-*'.
2523
2524 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2525
2526         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2527
2528 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2529
2530         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2531         to 0.17.
2532
2533 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2534
2535         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2536         for `CHARSET_BY_ATTRIBUTES'.
2537         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2538         `CHARSET_BY_ATTRIBUTES'.
2539
2540         * text-coding.c (struct decoding_stream): Rename member `CH' to
2541         `CPOS'.
2542         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2543         (decode_coding_sjis): Likewise.
2544         (decode_coding_big5): Likewise.
2545         (decode_coding_ucs4): Likewise.
2546         (decode_coding_utf8): Likewise.
2547         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2548         `CHARSET_BY_ATTRIBUTES'.
2549         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2550         `str->counter'; decode 3, 4 bytes sets.
2551         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2552         sets.
2553         (decode_coding_no_conversion): Use `str->cpos' instead of
2554         `str->ch'.
2555
2556         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2557         (Qmojikyo_2022_1): New variable.
2558         (make_charset): Don't use `CHARSET_TYPE_*'.
2559         (range_charset_code_point): Support coded-charset
2560         `mojikyo-2022-1'.
2561         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2562         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2563         `CHARSET_BY_ATTRIBUTES'.
2564         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2565         `CHARSET_BY_ATTRIBUTES'.
2566         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2567         (complex_vars_of_mule_charset): Add new coded-charset
2568         `mojikyo-2022-1'.
2569
2570         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2571         interface; changed to inline function.
2572
2573         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2574         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2575         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2576         (CHARSET_TYPE_94): Deleted.
2577         (CHARSET_TYPE_94X94): Deleted.
2578         (CHARSET_TYPE_96): Deleted.
2579         (CHARSET_TYPE_96X96): Deleted.
2580         (CHARSET_TYPE_128): Deleted.
2581         (CHARSET_TYPE_128X128): Deleted.
2582         (CHARSET_TYPE_256): Deleted.
2583         (CHARSET_TYPE_256X256): Deleted.
2584         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2585         to inline function.
2586         (DECODE_MOJIKYO_2022): New inline function.
2587         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2588         `Vcharset_mojikyo_2022_1'.
2589
2590 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2591
2592         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2593         instead of `EQ'.
2594         (put_byte_table): Likewise.
2595         (char_id_table_equal): Use `get_byte_table' [new implementation].
2596
2597 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2598
2599         * mule-charset.c: Include <limits.h> in UTF-2000.
2600         (BT_UINT8_MIN): New macro in UTF-2000.
2601         (BT_UINT8_MAX): New macro in UTF-2000.
2602         (BT_UINT8_t): New macro in UTF-2000.
2603         (BT_UINT8_nil): New macro in UTF-2000.
2604         (BT_UINT8_unbound): New macro in UTF-2000.
2605         (INT_UINT8_P): New inline function in UTF-2000.
2606         (UINT8_VALUE_P): New inline function in UTF-2000.
2607         (UINT8_ENCODE): New inline function in UTF-2000.
2608         (UINT8_DECODE): New inline function in UTF-2000.
2609         (mark_uint8_byte_table): New function in UTF-2000.
2610         (print_uint8_byte_table): New function in UTF-2000.
2611         (uint8_byte_table_equal): New function in UTF-2000.
2612         (uint8_byte_table_hash): New function in UTF-2000.
2613         (make_uint8_byte_table): New function in UTF-2000.
2614         (uint8_byte_table_same_value_p): New function in UTF-2000.
2615         (BT_UINT16_MIN): New macro in UTF-2000.
2616         (BT_UINT16_MAX): New macro in UTF-2000.
2617         (BT_UINT16_t): New macro in UTF-2000.
2618         (BT_UINT16_nil): New macro in UTF-2000.
2619         (BT_UINT16_unbound): New macro in UTF-2000.
2620         (INT_UINT16_P): New inline function in UTF-2000.
2621         (UINT16_VALUE_P): New inline function in UTF-2000.
2622         (UINT16_ENCODE): New inline function in UTF-2000.
2623         (UINT16_DECODE): New inline function in UTF-2000.
2624         (UINT8_TO_UINT16): New inline function in UTF-2000.
2625         (mark_uint16_byte_table): New function in UTF-2000.
2626         (print_uint16_byte_table): New function in UTF-2000.
2627         (uint16_byte_table_equal): New function in UTF-2000.
2628         (uint16_byte_table_hash): New function in UTF-2000.
2629         (make_uint16_byte_table): New function in UTF-2000.
2630         (uint16_byte_table_same_value_p): New function in UTF-2000.
2631         (print_byte_table): New function in UTF-2000.
2632         (byte-table): Use `print_byte_table' as printer.
2633         (make_byte_table): Delete second argument `older'.
2634         (byte_table_same_value_p): New function in UTF-2000.
2635         (copy_byte_table): Deleted.
2636         (get_byte_table): New function in UTF-2000.
2637         (put_byte_table): New function in UTF-2000.
2638         (print_char_id_table): New function in UTF-2000.
2639         (char-id-table): Use `print_char_id_table' as printer.
2640         (make_char_id_table): Delete second argument `older'.
2641         (get_char_id_table): Use `get_byte_table [new implementation].
2642         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2643         implementation].
2644         (Ffind_char_attribute_table): New function in UTF-2000.
2645         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2646         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2647         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2648         (syms_of_mule_charset): Add new function
2649         `find-char-attribute-table' in UTF-2000.
2650
2651         * lrecord.h (enum lrecord_type): Add
2652         `lrecord_type_uint16_byte_table' and
2653         `lrecord_type_uint8_byte_table'.
2654
2655         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2656         (Lisp_Uint8_Byte_Table): New type.
2657         (XUINT8_BYTE_TABLE): New macro.
2658         (XSETUINT8_BYTE_TABLE): New macro.
2659         (UINT8_BYTE_TABLE_P): New macro.
2660         (GC_UINT8_BYTE_TABLE_P): New macro.
2661         (struct Lisp_Uint16_Byte_Table): New structure.
2662         (Lisp_Uint16_Byte_Table): New type.
2663         (XUINT16_BYTE_TABLE): New macro.
2664         (XSETUINT16_BYTE_TABLE): New macro.
2665         (UINT16_BYTE_TABLE_P): New macro.
2666         (GC_UINT16_BYTE_TABLE_P): New macro.
2667
2668 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2669
2670         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2671         (Vcharacter_ideographic_strokes_table): Deleted.
2672         (Vcharacter_total_strokes_table): Deleted.
2673         (Vcharacter_morohashi_daikanwa_table): Deleted.
2674         (Vcharacter_decomposition_table): Deleted.
2675         (Qname): Deleted because it is duplicated.
2676         (Qideographic_radical): Deleted.
2677         (Qideographic_strokes): Deleted.
2678         (Qtotal_strokes): Deleted.
2679         (Qmorohashi_daikanwa): Deleted.
2680         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2681         `ideographic-radical', `ideographic-strokes', `total-strokes',
2682         `morohashi-daikanwa' and `->decomposition'.
2683         (Fget_char_attribute): Likewise.
2684         (Fput_char_attribute): Likewise; use `make-vector' instead of
2685         `make_older_vector' for `->decomposition' value.
2686         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2687         `ideograph-daikanwa'.
2688         (syms_of_mule_charset): Delete builtin symbols `name',
2689         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2690         `morohashi-daikanwa'.
2691         (vars_of_mule_charset): Don't setup
2692         `Vcharacter_ideographic_radical_table',
2693         `Vcharacter_ideographic_strokes_table',
2694         `Vcharacter_total_strokes_table',
2695         `Vcharacter_morohashi_daikanwa_table' and
2696         `Vcharacter_decomposition_table'.
2697
2698 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2699
2700         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2701         `make_older_vector', `make_vector_newer_1' and
2702         `make_vector_newer'.
2703
2704         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2705         `make_older_vector' and `make_vector_newer'.
2706
2707         * config.h.in (HAVE_GGC): New macro.
2708
2709 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2710
2711         * mule-charset.c (struct char_attribute_list_closure): New
2712         structure in UTF-2000.
2713         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2714         (Fchar_attribute_list): Likewise.
2715         (Fset_charset_mapping_table): Use `make_vector_newer'.
2716         (Fdecode_builtin_char): New function in UTF-2000.
2717         (syms_of_mule_charset): Add new function `char-attribute-list' and
2718         `decode-builtin-char' in UTF-2000.
2719
2720         * lisp.h (make_vector_newer): New prototype.
2721
2722         * alloc.c (make_vector_newer_1): New function.
2723         (make_vector_newer): New function.
2724
2725 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2726
2727         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2728         50100)'.
2729
2730 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2731
2732         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2733         (Vcharacter_attribute_table): Deleted.
2734         (Vcharacter_name_table): Deleted.
2735         (put_char_attribute): Deleted.
2736         (remove_char_attribute): Deleted.
2737         (struct char_attribute_alist_closure): New structure.
2738         (add_char_attribute_alist_mapper): New function.
2739         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2740         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2741         (Fget_char_attribute): Likewise.
2742         (Fput_char_attribute): Likewise.
2743         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2744         of `remove_char_attribute'.
2745         (Fdefine_char): Return character.
2746         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2747         and `Vcharacter_name_table'.
2748         (complex_vars_of_mule_charset): Likewise
2749         `Vchar_attribute_hash_table'.
2750
2751 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2752
2753         * character.h (CHARC_CHARSET): New macro.
2754         (CHARC_CHARSET_ID): New macro.
2755         (CHARC_CODE_POINT): New macro.
2756         (CHARC_COLUMNS): New macro.
2757         (CHARC_TO_CHAR): New inline function.
2758         (CHARC_EQ): New inline function.
2759         (CHARC_ASCII_EQ): New inline function.
2760         (CHARC_IS_SPACE): New inline function.
2761         (ASCII_TO_CHARC): New inline function.
2762
2763         * char-ucs.h (encode_char_2): Deleted.
2764         (ENCODE_CHAR): Use `encode_char_1' again.
2765         (breakup_char_1): Likewise.
2766         (CHAR_TO_CHARC): New inline function.
2767
2768         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2769
2770 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2771
2772         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2773         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2774         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2775         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2776         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2777         `CHARC_IS_SPACE'.
2778         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2779
2780         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2781         `CHARC_CODE_POINT'.
2782         (x_output_display_block): Use `CHARC_CHARSET' and
2783         `CHARC_ASCII_EQ'.
2784
2785         * redisplay-tty.c (tty_output_display_block): Use
2786         `CHARC_ASCII_EQ'.
2787         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2788
2789         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2790
2791         * insdel.c (find_charsets_in_charc_string): Use
2792         `CHARC_CHARSET_ID'.
2793         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2794         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2795         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2796         (convert_charc_string_into_malloced_string): Likewise.
2797
2798 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2799
2800         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2801         instead of <Emchar_dynarr *> for buf; use
2802         `convert_bufbyte_string_into_charc_dynarr' instead of
2803         `convert_bufbyte_string_into_emchar_dynarr'; use
2804         `find_charsets_in_charc_string' instead of
2805         `find_charsets_in_emchar_string'.
2806
2807         * redisplay.h:
2808         - Include "character.h".
2809         (struct rune): New member `cglyph'; delete member `chr'.
2810
2811         * redisplay.c (redisplay_text_width_charc_string): New function;
2812         delete `redisplay_text_width_emchar_string'.
2813         (rtw_charc_dynarr): New variable; renamed from
2814         `rtw_emchar_dynarr'.
2815         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2816         `rtw_emchar_dynarr'; use
2817         `convert_bufbyte_string_into_charc_dynarr' instead of
2818         `convert_bufbyte_string_into_emchar_dynarr'; use
2819         `redisplay_text_width_charc_string' instead of
2820         `redisplay_text_width_emchar_string'.
2821         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2822         instead of `rtw_emchar_dynarr'; use
2823         `convert_bufbyte_string_into_charc_dynarr' instead of
2824         `convert_bufbyte_string_into_emchar_dynarr'.
2825         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2826         `redisplay_text_width_charc_string' instead of
2827         `redisplay_text_width_emchar_string'.
2828         (create_text_block): Modify for <struct rune> change.
2829         (generate_formatted_string_db): Likewise.
2830         (create_string_text_block): Likewise.
2831         (pixel_to_glyph_translation): Likewise.
2832
2833         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2834         instead of <const Emchar *>.
2835         (x_text_width): Likewise.
2836         (x_output_display_block): Use <Charc_dynarr *> instead
2837         <Emchar_dynarr *>; modify for <structure rune> change.
2838         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2839         *>.
2840
2841         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2842         <const Emchar *>; use `charc_string_displayed_columns' instead of
2843         `emchar_string_displayed_columns'.
2844         (tty_output_display_block): Use <Charc_dynarr *> instead of
2845         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2846         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2847         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2848         `tty_output_emchar_dynarr_dynarr'.
2849         (tty_output_charc_dynarr): New function; delete
2850         `tty_output_charc_dynarr'.
2851
2852         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2853         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2854         <Emchar_dynarr *> for buf; use
2855         `convert_bufbyte_string_into_charc_dynarr' instead of
2856         `convert_bufbyte_string_into_emchar_dynarr'.
2857
2858         * frame.c (title_string_charc_dynarr): New variable; renamed from
2859         `title_string_emchar_dynarr'.
2860         (generate_title_string): Use `title_string_charc_dynarr' instead
2861         of `title_string_emchar_dynarr'; use
2862         `convert_charc_string_into_malloced_string' instead of
2863         `convert_emchar_string_into_malloced_string'.
2864         (init_frame): Use `title_string_charc_dynarr' instead of
2865         `title_string_emchar_dynarr'.
2866
2867         * console.h:
2868         - Include "character.h".
2869         (struct console_methods): Use <const Charc *> instead of <const
2870         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2871         <Emchar_dynarr *> in output_string_method.
2872
2873         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2874         <Emchar_dynarr *>.
2875
2876         * console-stream.c (stream_text_width): Use <const Charc *>
2877         instead of <const Emchar *>.
2878
2879         * character.h (Charc_dynarr): New type.
2880
2881         * char-ucs.h (structure Charc): New structure; define new type
2882         `Charc'.
2883
2884         * char-lb.h (DECODE_CHAR): New inline function.
2885         (encode_char_1): New inline function.
2886         (ENCODE_CHAR): New macro.
2887         (structure Charc): New structure; define new type `Charc'.
2888
2889         * char-1byte.h (Vcharset_control_1): New macro.
2890         (Vcharset_latin_iso8859_1): New macro.
2891         (DECODE_CHAR): New inline function.
2892         (encode_char_1): New inline function.
2893         (ENCODE_CHAR): New macro.
2894         (structure Charc): New structure; define new type `Charc'.
2895
2896         * insdel.c (find_charsets_in_charc_string): New function; delete
2897         `find_charsets_in_emchar_string'.
2898         (charc_string_displayed_columns): New function; delete
2899         `emchar_string_displayed_columns'.
2900         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2901         `convert_bufbyte_string_into_emchar_dynarr'.
2902         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2903         `convert_charc_string_into_bufbyte_dynarr'.
2904         (convert_charc_string_into_malloced_string): New function; delete
2905         `convert_charc_string_into_malloced_string'.
2906
2907         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2908         `find_charsets_in_emchar_string'.
2909         (charc_string_displayed_columns): New prototype; delete
2910         `emchar_string_displayed_columns'.
2911         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2912         `convert_charc_string_into_bufbyte_dynarr'.
2913         (convert_charc_string_into_malloced_string): New prototype; delete
2914         `convert_charc_string_into_malloced_string'.
2915
2916 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2917
2918         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2919
2920 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2921
2922         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2923
2924         * char-ucs.h: Use <short> for <Charset_ID>.
2925
2926         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2927         <Charset_ID>.
2928
2929 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2930
2931         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2932         to 0.16.
2933
2934 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2935
2936         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2937         variable.
2938         (Qmorohashi_daikanwa): New variable.
2939         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2940         for `morohashi-daikanwa' attribute.
2941         (Fget_char_attribute): Likewise.
2942         (Fput_char_attribute): Likewise.
2943         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2944         has the same value of `ideograph-daikanwa'.
2945         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2946         (vars_of_mule_charset): Setup
2947         `Vcharacter_morohashi_daikanwa_table'.
2948
2949 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2950
2951         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2952         attributes.
2953         (add_charset_to_list_mapper): Add `key' instead of
2954         `XCHARSET_NAME (value)' to return aliases.
2955
2956 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2957
2958         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2959         variable.
2960         (Vcharacter_ideographic_strokes_table): New variable.
2961         (Qideographic_radical): New variable.
2962         (Qideographic_strokes): New variable.
2963         (Fchar_attribute_alist): Use
2964         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2965         attribute; use `Vcharacter_ideographic_strokes_table' for
2966         `ideographic-strokes' attribute.
2967         (Fget_char_attribute): Likewise.
2968         (Fput_char_attribute): Likewise.
2969         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2970         `ideographic-strokes'.
2971         (vars_of_mule_charset): Setup
2972         `Vcharacter_ideographic_radical_table' and
2973         `Vcharacter_ideographic_strokes_table'.
2974
2975 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2976
2977         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2978         (Qtotal_strokes): New variable.
2979         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2980         `total-strokes' attribute.
2981         (Fget_char_attribute): Likewise.
2982         (Fput_char_attribute): Likewise.
2983         (syms_of_mule_charset): Add new symbol `total-strokes'.
2984         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2985
2986 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2987
2988         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2989         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2990         are found.
2991         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2992         `->decomposition' attribute.
2993         (Fput_char_attribute): Likewise.
2994         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2995
2996 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2997
2998         * mule-charset.c (decoding_table_check_elements): New function.
2999         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3000
3001 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3002
3003         * mule-charset.c (Fset_charset_mapping_table): Use
3004         `put_char_ccs_code_point'.
3005
3006 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3007
3008         * mule-charset.c (decoding_table_put_char): New inline function.
3009         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3010
3011 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3012
3013         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3014         (XCHARSET_BYTE_SIZE): New macro.
3015         (decoding_table_remove_char): New inline function.
3016         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3017         `decoding_table_remove_char'.
3018         (remove_char_ccs): Use `decoding_table_remove_char'.
3019         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3020
3021 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3022
3023         * mule-charset.c (Vcharacter_name_table): New variable.
3024         (Qname): New variable.
3025         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3026         attribute.
3027         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3028         `Vcharacter_name_table' for `name' attribute.
3029         (Fremove_char_attribute): Use function `remove_char_ccs'.
3030         (put_char_ccs_code_point): New function.
3031         (remove_char_ccs): New function.
3032         (syms_of_mule_charset): Add new symbol `name'.
3033         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3034
3035 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3036
3037         * mule-charset.c (make_byte_table): Add new argument `older'.
3038         (make_char_id_table): Likewise.
3039         (copy_char_id_table): Comment out because it is not used.
3040         (put_char_id_table): Modify for `make_byte_table'.
3041         (Fput_char_attribute): Make encoding_table as older object;
3042         inherit older bit of `Vcharacter_composition_table'.
3043         (mark_charset): Don't mark `cs->encoding_table'.
3044         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3045         normal object; make `Vcharacter_composition_table' as an older
3046         object; delete staticpro for `Vcharacter_composition_table'; make
3047         `Vcharacter_variant_table' as a normal object.
3048
3049         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3050         (mark_object): Don't check older object in UTF-2000.
3051
3052         * lrecord.h (struct lrecord_header): Add new member `older' in
3053         UTF-2000.
3054         (set_lheader_implementation): Setup `SLI_header->older' in
3055         UTF-2000.
3056         (set_lheader_older_implementation): New macro in UTF-2000.
3057         (OLDER_RECORD_P): New macro in UTF-2000.
3058         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3059         (alloc_older_lcrecord): New prototype in UTF-2000.
3060         (alloc_older_lcrecord_type): New macro in UTF-2000.
3061
3062 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3063
3064         * mule-charset.c (byte_table_description): Use
3065         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3066         (char_id_table_description): Delete bogus `, 1'.
3067         (Fget_char_attribute): Refer encoding_table of each coded-charset
3068         to get value of coded-charset attribute of a character.
3069         (Fput_char_attribute): Use `make_older_vector' instead of
3070         `make_vector'; use encoding_table of each coded-charset to store
3071         value of coded-charset attribute of a character.
3072         (Fremove_char_attribute): Use encoding_table of each coded-charset
3073         to store value of coded-charset attribute of a character.
3074         (mark_charset): Mark `cs->encoding_table'; don't mark
3075         `cs->decoding_table'.
3076         (charset_description): Add description of new member
3077         `encoding_table'.
3078         (make_charset): Initialize `encoding_table'.
3079
3080         * char-ucs.h (struct Lisp_Charset): Add new member
3081         `encoding_table'.
3082         (CHARSET_ENCODING_TABLE): New macro.
3083         (XCHARSET_ENCODING_TABLE): New macro.
3084         (charset_code_point): New implementation.
3085         (encode_char_1): Likewise.
3086
3087         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3088         (disksave_object_finalization_1): Call finalizers of
3089         `all_older_lcrecords' in UTF-2000.
3090         (make_older_vector): New function in UTF-2000.
3091         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3092         UTF-2000.
3093
3094         * lisp.h (make_older_vector): New prototype in UTF-2000.
3095
3096 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3097
3098         * lrecord.h (enum lrecord_type): Rename
3099         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3100
3101         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3102         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3103         `get_char_code_table'.
3104
3105         * mule-charset.c (mark_char_id_table): Renamed from
3106         `mark_char_code_table'.
3107         (char_id_table_equal): Renamed from `char_code_table_equal'.
3108         (char_id_table_hash): Renamed from `char_code_table_hash'.
3109         (make_char_id_table): Renamed from `make_char_code_table'.
3110         (copy_char_id_table): Renamed from `copy_char_code_table'.
3111         (get_char_id_table): Renamed from `get_char_code_table'.
3112         (put_char_id_table): Renamed from `put_char_code_table'.
3113         (to_char_id): Renamed from `to_char_code'.
3114
3115         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3116         `Lisp_Char_Code_Table'.
3117         (char_id_table): Renamed from `char_code_table'.
3118         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3119         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3120         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3121         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3122         (get_char_id_table): Renamed from `get_char_code_table'.
3123
3124 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3125
3126         * lrecord.h (enum lrecord_type): Rename
3127         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3128
3129         * mule-charset.c (mark_byte_table): Renamed from
3130         `mark_char_byte_table'.
3131         (byte_table_equal): Renamed from `char_byte_table_equal'.
3132         (byte_table_hash): Renamed from `byte_table_hash'.
3133         (make_byte_table): Renamed from `make_byte_table'.
3134         (copy_byte_table): Renamed from `copy_char_byte_table'.
3135
3136         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3137         `Lisp_Char_Byte_Table'.
3138         (byte_table): Renamed from `char_byte_table'.
3139         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3140         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3141         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3142         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3143
3144 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3145
3146         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3147         (dfc_convert_to_internal_format): Likewise.
3148         
3149         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3150         * text-coding.c (Fcoding_system_alias_p): New function.
3151         * text-coding.c (Fcoding_system_aliasee): New function.
3152         * text-coding.c (append_suffix_to_symbol): New function.
3153         * text-coding.c (dangling_coding_system_alias_p): New function.
3154         * text-coding.c (Ffind_coding_system):
3155         * text-coding.c (Fcopy_coding_system):
3156         * text-coding.c (encode_coding_no_conversion):
3157         * text-coding.c (syms_of_file_coding):
3158         * text-coding.c (vars_of_file_coding):
3159         Rewrite coding system alias code.
3160         Allow nested aliases, like symbolic links.
3161         Allow redefinition of coding system aliases.
3162         Prevent existence of dangling coding system aliases.
3163         Eliminate convert_to_external_format.
3164         Eliminate convert_to_internal_format.
3165         
3166         * text-coding.c: Change enum eol_type to eol_type_t.
3167
3168 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3169
3170         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3171         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3172
3173         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3174         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3175
3176 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3177
3178         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3179         `ideograph-daikanwa'.
3180
3181         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3182         (Vcharset_ucs_bmp): Likewise.
3183         (Vcharset_mojikyo): Add new extern variable definition.
3184         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3185         (Vcharset_latin_iso8859_3): Likewise.
3186         (Vcharset_latin_iso8859_4): Likewise.
3187         (Vcharset_latin_iso8859_9): Likewise.
3188         (Vcharset_latin_viscii_lower): Likewise.
3189         (Vcharset_latin_viscii_upper): Likewise.
3190         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3191         `mojikyo' code-point is used to decode.
3192         (encode_char_2): New function [to convert `mojikyo' code-point to
3193         Mojikyo font encoding].
3194         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3195         (breakup_char_1): Likewise.
3196         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3197
3198 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3199
3200         * text-coding.c (Fmake_coding_system): Add document about
3201         `disable-composition' property.
3202
3203 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3204
3205         * text-coding.c (Qdisable_composition): New variable; delete
3206         `Qcomposite'.
3207         (Fmake_coding_system): Add new property `disable-composite';
3208         delete property `composite'.
3209         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3210         instead of `!CODING_SYSTEM_COMPOSITE'.
3211         (syms_of_file_coding): Add new symbol `disable-composition';
3212         delete symbol `composite'.
3213
3214         * file-coding.h (struct Lisp_Coding_System): Add
3215         `disable_composition'; delete `enable_composition'.
3216         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3217         `CODING_SYSTEM_COMPOSITE'.
3218         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3219         `XCODING_SYSTEM_COMPOSITE'.
3220
3221 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3222
3223         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3224         to 0.15.
3225
3226 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3227
3228         * text-coding.c (Qcomposite): New variable.
3229         (Fmake_coding_system): Add new property `composite'.
3230         (struct decoding_stream): Add `combined_char_count',
3231         `combined_chars' and `combining_table' in UTF-2000.
3232         (COMPOSE_FLUSH_CHARS): New macro.
3233         (COMPOSE_ADD_CHAR): New macro.
3234         (reset_decoding_stream): Reset `str->combined_char_count' and
3235         `str->combining_table' in UTF-2000.
3236         (decode_coding_iso2022): Modify for character-decomposition.
3237         (syms_of_file_coding): Add new symbol `composite'.
3238
3239 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3240
3241         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3242         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3243         of `Vcharacter_composition_table' if `->decomposition' property
3244         has only 1 element.
3245         (Qlatin_tcvn5712): New variable.
3246         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3247         (complex_vars_of_mule_charset): Add new coded-charset
3248         `latin-tcvn5712'.
3249
3250         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3251
3252 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3253
3254         * file-coding.h (struct Lisp_Coding_System): Add
3255         `enable_composition'.
3256         (CODING_SYSTEM_COMPOSITE): New macro.
3257         (XCODING_SYSTEM_COMPOSITE): New macro.
3258
3259 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3260
3261         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3262
3263 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3264
3265         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3266         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3267
3268 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3269
3270         * mule-charset.c (Vcharset_mojikyo): New variable.
3271         (Fdefine_char): Don't use coded-charset which does not have
3272         non-builtin character range to allocate character-id.
3273         (Qmojikyo): New variable.
3274         (syms_of_mule_charset): Add new symbol `mojikyo'.
3275         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3276
3277         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3278         (LEADING_BYTE_MOJIKYO): New macro.
3279         (MIN_CHAR_MOJIKYO): New macro.
3280         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3281         (MAX_CHAR_MOJIKYO): New macro.
3282
3283 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3284
3285         * mule-charset.c (remove_char_attribute): Fixed.
3286
3287 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3288
3289         * mule-charset.c (remove_char_attribute): New function.
3290         (Fremove_char_attribute): New function.
3291         (encode_builtin_char_1): Comment out builtin-support for
3292         greek-iso8859-7 and cyrillic-iso8859-5.
3293         (Fdecode_char): Check `code' is an integer.
3294         (syms_of_mule_charset): Add `remove-char-attribute'.
3295         (MIN_CHAR_GREEK): Deleted.
3296         (MAX_CHAR_GREEK): Likewise.
3297         (MIN_CHAR_CYRILLIC): Likewise.
3298         (MAX_CHAR_CYRILLIC): Likewise.
3299         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3300         MAX_CHAR_GREEK for `greek-iso8859-7'.
3301
3302         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3303         (MAX_CHAR_GREEK): Likewise.
3304         (MIN_CHAR_CYRILLIC): Likewise.
3305         (MAX_CHAR_CYRILLIC): Likewise.
3306
3307 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3308
3309         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3310         format is used without `ucs' property.
3311         (Fdecode_char): Fix problem with GR representation.
3312         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3313         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3314
3315 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3316
3317         * mule-charset.c (make_builtin_char): New function.
3318         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3319         (Fset_charset_mapping_table): Modify for new representation of
3320         code-point.
3321         (Fdecode_char): New function.
3322         (syms_of_mule_charset): Add new builtin function `decode-char' in
3323         UTF-2000.
3324
3325         * char-ucs.h (make_builtin_char): New prototype.
3326         (DECODE_CHAR): New inline function.
3327         (MAKE_CHAR): Use `DECODE_CHAR'.
3328
3329 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3330
3331         * text-coding.c (parse_charset_conversion_specs): Use
3332         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3333         `XCHARSET_TYPE'.
3334         (iso2022_designate): Likewise.
3335
3336         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3337         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3338
3339         * mule-charset.c (Vcharset_ucs): New variable.
3340         (print_charset): Change design; use `CHARSET_CHARS' and
3341         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3342         (make_charset): Change signature to specify `chars' and
3343         `dimension' instead of `type'.
3344         (range_charset_code_point): Modify for 256^n-set.
3345         (encode_builtin_char_1): Encode as `ucs' in default.
3346         (Fmake_charset): Modify for `make_charset'.
3347         (Fmake_reverse_direction_charset): Likewise.
3348         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3349         UTF-2000.
3350         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3351         for `make_charset'.
3352
3353         * char-ucs.h (Vcharset_ucs): New variable.
3354         (LEADING_BYTE_UCS): New macro.
3355         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3356         and `chars' to `unsigned short' from `unsigned int'.
3357         (CHARSET_TYPE): Deleted.
3358         (XCHARSET_TYPE): Deleted.
3359
3360 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3361
3362         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3363
3364         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3365         (ENCODE_CHAR): New macro.
3366
3367 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3368
3369         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3370         to 0.14 (Kawachi-Katakami).
3371
3372 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3373
3374         * text-coding.c (char_encode_shift_jis): Modify for
3375         `charset_code_point'.
3376         (char_encode_iso2022): Likewise.
3377
3378         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3379         (integer) instead of list of <Lisp_Object>s (integers) as the
3380         format of code-point of a coded-charset.
3381         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3382         (encode_builtin_char_1): New function; delete
3383         `split_builtin_char'.
3384         (charset_code_point): Return <int> instead of <Lisp_Object>.
3385         (Fsplit_char): Don't use `SPLIT_CHAR'.
3386
3387         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3388         prototype for `split_builtin_char'.
3389         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3390         (charset_code_point): Likewise.
3391         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3392         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3393
3394 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3395
3396         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3397         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3398
3399 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3400
3401         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3402
3403         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3404         (MAX_CHAR_OBS_94x94): Deleted.
3405
3406 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3407
3408         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3409
3410         * char-ucs.h (MAX_CHAR_BMP): New macro.
3411
3412 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3413
3414         * text-coding.c: Sync with r21-2-24.
3415
3416 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3417
3418         * file-coding.c: Modify for UTF-2000.
3419
3420 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3421
3422         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3423         to 0.13 (Takaida).
3424
3425 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3426
3427         * mule-charset.c (split_builtin_char): Delete builtin support for
3428         `katakana-jisx0201'.
3429         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3430         BMP area in builtin representation.
3431
3432         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3433         `Vcharset_katakana_jisx0201'.
3434
3435 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3436
3437         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3438         (Qisolated): New variable.
3439         (Qinitial): New variable.
3440         (Qmedial): New variable.
3441         (Qfinal): New variable.
3442         (Qvertical): New variable.
3443         (Qsmall): New variable.
3444         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3445         `Qvertical' and `Qsmall'.
3446         (Qmojikyo_pj_[1 .. 21]): New variable.
3447         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3448         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3449         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3450         .. 21]'.
3451
3452 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3453
3454         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3455         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3456         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3457
3458 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3459
3460         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3461         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3462         BMP.
3463         (Qjapanese_jisx0208_1990): New variable.
3464         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3465         (complex_vars_of_mule_charset): Add new coded-charset
3466         `japanese-jisx0208-1990'.
3467
3468         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3469         (MIN_CHAR_JIS_X0208_1990): New macro.
3470         (MAX_CHAR_JIS_X0208_1990): New macro.
3471
3472 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3473
3474         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3475         coded-charset is not found.
3476
3477 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3478
3479         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3480         (Fdefine_char): Use `Fmake_char'.
3481
3482 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3483
3484         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3485         (Vcharset_hiragana_jisx0208): Deleted.
3486         (Vcharset_katakana_jisx0208): Deleted.
3487         (Qideograph_daikanwa): New variable.
3488         (Qhiragana_jisx0208): Deleted.
3489         (Qkatakana_jisx0208): Deleted.
3490         (split_builtin_char): Split `ideograph-daikanwa'.
3491         (Fsplit_char): New implementation for UTF-2000.
3492         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3493         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3494         (complex_vars_of_mule_charset): Add new coded-charset
3495         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3496         `katakana-jisx0208'.
3497
3498         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3499         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3500         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3501         (MIN_CHAR_DAIKANWA): New macro.
3502         (MAX_CHAR_DAIKANWA): New macro.
3503
3504 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3505
3506         * data.c (Fstring_to_number): Don't recognize floating point if
3507         base is not 10.
3508
3509 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3510
3511         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3512
3513 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3514
3515         * mule-charset.c (Qsquare): New variable.
3516         (to_char_code): Add `Qsquare'.
3517         (syms_of_mule_charset): Add new symbol `square'.
3518
3519 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3520
3521         * mule-charset.c (Qcircle): New variable.
3522         (to_char_code): Add `Qcircle'.
3523         (syms_of_mule_charset): Add new symbol `circle'.
3524
3525 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3526
3527         * mule-charset.c (Qfont): New variable.
3528         (to_char_code): Add `Qfont'.
3529         (syms_of_mule_charset): Add new symbol `font'.
3530
3531 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3532
3533         * mule-charset.c (Qsub): New variable.
3534         (to_char_code): Add `Qsub'.
3535         (syms_of_mule_charset): Add new symbol `sub'.
3536
3537 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3538
3539         * mule-charset.c (Fput_char_attribute): Convert each element of
3540         VALUE to GL position if ATTRIBUTE is a GR-set,
3541
3542 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3543
3544         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3545         coded-charset is a GR-set.
3546
3547 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3548
3549         * mule-charset.c (Fput_char_attribute): Check each element of
3550         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3551
3552 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3553
3554         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3555         UTF-2000.
3556         (Qethiopic_ucs): New variable in UTF-2000.
3557         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3558         (complex_vars_of_mule_charset): Add new coded-charset
3559         `ethiopic-ucs' in UTF-2000.
3560
3561         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3562         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3563         9)'.
3564         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3565         10)'.
3566         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3567
3568 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3569
3570         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3571         `ascii'.
3572
3573 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3574
3575         * mule-charset.c (Vcharacter_variant_table): New variable.
3576         (Q_ucs): New variable.
3577         (Fchar_variants): New function.
3578         (Fput_char_attribute): Register `->ucs' value to
3579         `Vcharacter_variant_table'.
3580         (syms_of_mule_charset): Add new function `char-variants' and new
3581         symbol `->ucs'.
3582         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3583
3584 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3585
3586         * mule-charset.c (get_char_code_table): Allow negative character
3587         code.
3588         (put_char_code_table): Likewise.
3589         (Vcharacter_composition_table): New variable.
3590         (Q_decomposition): New variable.
3591         (Qwide): New variable.
3592         (Qnarrow): New variable.
3593         (Qcompat): New variable.
3594         (QnoBreak): New variable.
3595         (Qsuper): New variable.
3596         (Qfraction): New variable.
3597         (to_char_code): New function.
3598         (Fget_composite_char): New function.
3599         (Fput_char_attribute): Register `->decomposition' value to
3600         `Vcharacter_composition_table'.
3601         (syms_of_mule_charset): Add new function `get-composite-char', new
3602         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3603         `super' and `fraction'.
3604         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3605
3606 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3607
3608         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3609         character; copy the return value.
3610
3611 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3612
3613         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3614
3615         * mule-charset.c (range_charset_code_point): Must use make_int.
3616         (split_builtin_char): New function.
3617
3618 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3619
3620         * mule-charset.c (char_byte_table): Change name from
3621         "char-code-table" to "char-byte-table".
3622         (mark_char_code_table): New function.
3623         (char_code_table_equal): New function.
3624         (char_code_table_hash): New function.
3625         (char_code_table_description): New constant.
3626         (char_code_table): New type.
3627         (make_char_code_table): New function.
3628         (copy_char_code_table): New function.
3629         (get_char_code_table): Modify for `char_code_table' type.
3630         (put_char_code_table): Likewise.
3631         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3632         (Kashiwara).
3633
3634         * char-ucs.h (char_code_table): New type.
3635         (XCHAR_CODE_TABLE): New macro.
3636         (XSETCHAR_CODE_TABLE): New macro.
3637         (CHAR_CODE_TABLE_P): New macro.
3638         (GC_CHAR_CODE_TABLE_P): New macro.
3639         (struct Lisp_Char_Code_Table): New structure.
3640
3641 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3642
3643         * mule-charset.c (Fmake_charset): Setup byte_offset for
3644         {94|96}^n-set.
3645
3646 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3647
3648         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3649         character.
3650
3651 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3652
3653         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3654         is found.
3655
3656 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3657
3658         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3659         charset, it is regarded as a charset.
3660         (put_char_attribute): New function in UTF-2000.
3661         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3662         charset, mapping-table of the charset is modified.
3663         (Fdefine_char): New function in UTF-2000.
3664         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3665         `Fput_char_attribute'.
3666         (syms_of_mule_charset): Add new function `define-char' and new
3667         symbol `ucs' in UTF-2000.
3668         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3669
3670 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3671
3672         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3673         non-UTF-2000 configuration.
3674
3675 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3676
3677         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3678         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3679
3680         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3681         deleted.
3682         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3683         (Fset_charset_mapping_table): Likewise.
3684
3685         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3686         (CHARSET_ENCODING_TABLE): Delete.
3687         (XCHARSET_ENCODING_TABLE): Delete.
3688         (charset_code_point): New interface.
3689
3690 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3691
3692         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3693         instead of `charset_get_byte1' and `charset_get_byte2'.
3694
3695         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3696         (charset_get_byte2): Deleted.
3697
3698 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3699
3700         * char-ucs.h (SPLIT_CHAR): New inline function.
3701         (breakup_char_1): Use `SPLIT_CHAR'.
3702
3703         * mule-charset.c (range_charset_code_point): New function.
3704         (charset_code_point): New function.
3705
3706         * char-ucs.h (range_charset_code_point): New interface.
3707         (breakup_char_1): Use `range_charset_code_point'.
3708
3709 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3710
3711         * mule-charset.c (Fmake_charset): Delete unused local variable
3712         `code_offset'.
3713
3714         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3715         (breakup_char_1): Find a charset and code-point in
3716         `Vcharacter_attribute_table'.
3717
3718 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3719
3720         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3721         to 0.10 (Yao).
3722
3723 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3724
3725         * mule-charset.c (Vcharacter_attribute_table): New variable.
3726         (Fchar_attribute_alist): New function.
3727         (Fget_char_attribute): New function.
3728         (Fput_char_attribute): New function.
3729         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3730         too.
3731         (syms_of_mule_charset): Add new function `char-attribute-alist',
3732         `get-char-attribute' and `put-char-attribute'.
3733         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3734
3735 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3736
3737         * mule-charset.c (Fmake_charset): Just use
3738         `get_unallocated_leading_byte'.
3739
3740         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3741         sets; don't use final-byte based number for private sets.
3742
3743 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3744
3745         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3746         integer.
3747
3748 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3749
3750         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3751         to 0.9.
3752
3753 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3754
3755         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3756         of `CHAR_LEADING_BYTE' in UTF-2000.
3757
3758         * insdel.c (find_charsets_in_bufbyte_string): Use
3759         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3760         (find_charsets_in_emchar_string): Likewise.
3761
3762         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3763         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3764
3765         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3766         (CHAR_CHARSET_ID): New macro.
3767
3768 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3769
3770         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3771         charset-id - MIN_LEADING_BYTE.
3772         (put_char_table): Likewise.
3773
3774 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3775
3776         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3777         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3778         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3779         (CHARSET_ID_OFFSET): New macro.
3780         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3781         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3782         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3783         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3784         4).
3785         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3786         5).
3787         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3788         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3789         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3790         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3791         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3792
3793 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3794
3795         * mule-charset.c (next_allocated_leading_byte): New variable in
3796         UTF-2000.
3797         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3798         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3799         (get_unallocated_leading_byte): Simply use
3800         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3801         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3802         UTF-2000.
3803
3804         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3805         (MAX_LEADING_BYTE_PRIVATE): New macro.
3806         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3807         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3808
3809 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3810
3811         * mule-charset.c (Fmake_charset): Allocate final-byte based
3812         charset-id for 94-set, 96-set and 94x94-set.
3813
3814 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3815
3816         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3817         ambiguous `else'.
3818         (Fmake_charset): Likewise.
3819         (complex_vars_of_mule_charset): Modify the font registry of
3820         `ucs-bmp' not to match `Ethiopic-Unicode'.
3821
3822 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3823
3824         * mule-charset.c (complex_vars_of_mule_charset): Add font
3825         registory of `ucs-bmp'.
3826
3827 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3828
3829         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3830         coded-charsets in `default-coded-charset-priority-list' when
3831         breaking up a character.
3832
3833         * mule-charset.c (Vcharset_latin_viscii): New variable.
3834         (Qlatin_viscii): New variable.
3835         (make_charset): Don't use `decoding_table'.
3836         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3837         byte_offset.
3838         (Fset_charset_mapping_table): New implementation.
3839         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3840         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3841         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3842         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3843         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3844         charset `latin_viscii'.
3845
3846         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3847         (CHARSET_TYPE_94X94): Change to 1 from 2.
3848         (CHARSET_TYPE_96): Change to 2 from 1.
3849         (CHARSET_TYPE_128): New macro.
3850         (CHARSET_TYPE_128X128): Change to 5 from 4.
3851         (CHARSET_TYPE_256): New macro.
3852         (CHARSET_TYPE_256X256): Change to 7 from 5.
3853         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3854
3855 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3856
3857         * text-coding.c (char_encode_shift_jis): Refer
3858         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3859         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3860
3861         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3862         (char_byte_table_equal): New function in UTF-2000.
3863         (char_byte_table_hash): New function in UTF-2000.
3864         (char_byte_table_description): New constant in UTF-2000.
3865         (char_byte_table): New type in UTF-2000.
3866         (make_char_byte_table): New function in UTF-2000.
3867         (copy_char_byte_table): New function in UTF-2000.
3868         (make_char_code_table): New macro in UTF-2000.
3869         (get_char_code_table): New function in UTF-2000.
3870         (put_char_code_table): New function in UTF-2000.
3871         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3872         (charset_description): Add setting in UTF-2000.
3873         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3874         `CHARSET_TO_BYTE1_TABLE(cs)'.
3875         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3876         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3877         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3878         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3879         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3880         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3881         `CHARSET_TO_BYTE2_TABLE(cs)'.
3882
3883         * char-ucs.h (char_byte_table): New type.
3884         (XCHAR_BYTE_TABLE): New macro.
3885         (XSETCHAR_BYTE_TABLE): New macro.
3886         (CHAR_BYTE_TABLE_P): New macro.
3887         (GC_CHAR_BYTE_TABLE_P): New macro.
3888         (struct Lisp_Char_Byte_Table): New structure.
3889         (get_char_code_table): New interface.
3890         (Emchar_to_byte_table): Deleted.
3891         (get_byte_from_character_table): Deleted.
3892         (struct Lisp_Charset): Add `encoding_table'; delete
3893         `to_byte1_table' and `to_byte2_table'.
3894         (CHARSET_ENCODING_TABLE): New macro.
3895         (CHARSET_TO_BYTE1_TABLE): Deleted.
3896         (CHARSET_TO_BYTE2_TABLE): Deleted.
3897         (XCHARSET_ENCODING_TABLE): New macro.
3898         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3899         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3900
3901 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3902
3903         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3904         `vietnamese-viscii-*'.
3905
3906 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3907
3908         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3909         (Qvietnamese_viscii_upper): New variable.
3910         (Fdefine_charset_alias): New function.
3911         (syms_of_mule_charset): Add new function `define-charset-alias'.
3912         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3913         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3914         `latin-viscii-*'.
3915
3916 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3917
3918         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3919         (MAX_CHAR_OBS_94x94): New macro.
3920         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3921         for 94x94 sets.
3922
3923         * mule-charset.c (put_byte_from_character_table): Change unit size
3924         from 128 to 256.
3925         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3926         not defined.
3927         (Fmake_reverse_direction_charset): Modify dummy argument of
3928         `make_charset' for non-UTF-2000 environment.
3929
3930 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3931
3932         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3933
3934         * mule-charset.c (destroy_byte_from_character_table): New macro.
3935         (latin_jisx0201_to_ucs): Deleted.
3936         (latin_iso8859_2_to_ucs): Deleted.
3937         (latin_iso8859_3_to_ucs): Deleted.
3938         (latin_iso8859_4_to_ucs): Deleted.
3939         (latin_iso8859_9_to_ucs): Deleted.
3940         (latin_viscii_lower_to_ucs): Deleted.
3941         (latin_viscii_upper_to_ucs): Deleted.
3942         (mark_charset): Mark `cs->decoding_table'.
3943         (Fcharset_mapping_table): Fix DOC-string.
3944         (Fset_charset_mapping_table): New function.
3945         (syms_of_mule_charset): Add nwe function
3946         `set-charset-mapping-table'.
3947         (complex_vars_of_mule_charset): Don't setup and use
3948         `latin_*_to_ucs'.
3949
3950 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3951
3952         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3953         charset.
3954
3955 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3956
3957         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3958         (Vcharset_katakana_jisx0208): New variable.
3959         (Qhiragana_jisx0208): New variable.
3960         (Qkatakana_jisx0208): New variable.
3961         (make_charset): Add new argument `byte_offset'.
3962         (charset_get_byte1): Modify for new coded-charset definition; use
3963         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3964         `XCHARSET_BYTE_OFFSET'.
3965         (Fmake_charset): Modify for `make_charset'.
3966         (Fmake_reverse_direction_charset): Likewise.
3967         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3968         `katakana-jisx0208'.
3969         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3970         `.'  in font registry of charset `katakana-jisx0201',
3971         `latin-jisx0201', `vietnamese-viscii-lower' and
3972         `vietnamese-viscii-upper'; modify DOC-string of charset
3973         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3974         registry of charset `japanese-jisx0208' not to use font for JIS
3975         X0208:1990; add new charset `hiragana-jisx0208' and
3976         `katakana-jisx0208'.
3977
3978         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3979         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3980         (struct Lisp_Charset): Add `byte_offset'.
3981         (CHARSET_BYTE_OFFSET): New macro.
3982         (XCHARSET_UCS_MIN): New macro.
3983         (XCHARSET_UCS_MAX): New macro.
3984         (XCHARSET_CODE_OFFSET): New macro.
3985         (XCHARSET_BYTE_OFFSET): New macro.
3986         (MIN_CHAR_HIRAGANA): New macro.
3987         (MAX_CHAR_HIRAGANA): New macro.
3988         (MIN_CHAR_KATAKANA): New macro.
3989         (MAX_CHAR_KATAKANA): New macro.
3990         (MAKE_CHAR): Modify for new coded-charset definition; use
3991         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3992         `XCHARSET_BYTE_OFFSET'.
3993
3994 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3995
3996         * mule-charset.c (CHAR96): Deleted.
3997         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3998         <Lisp_Object>.
3999         (latin_iso8859_2_to_ucs): Likewise.
4000         (latin_iso8859_3_to_ucs): Likewise.
4001         (latin_iso8859_4_to_ucs): Likewise.
4002         (latin_iso8859_9_to_ucs): Likewise.
4003         (latin_viscii_lower_to_ucs): Likewise.
4004         (latin_viscii_upper_to_ucs): Likewise.
4005         (latin_tcvn5712_to_ucs): Commented out.
4006         (make_charset): Change type of argument `decoding_table' from
4007         <Emchar*> to <Lisp_Object> [vector of characters].
4008         (Fmake_charset): Modify for `make_charset'.
4009         (Fmake_reverse_direction_charset): Likewise.
4010         (Fcharset_mapping_table): New function in UTF-2000.
4011         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4012         UTF-2000.
4013         (complex_vars_of_mule_charset): Modify for type change of
4014         `*_to_ucs'; modify for `make_charset'.
4015
4016         * char-ucs.h (struct Lisp_Charset): Change type of
4017         `decoding_table' from <Emchar*> to <Lisp_Object>.
4018         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4019
4020 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4021
4022         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4023         error with non-UTF-2000-Mule.
4024
4025 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4026
4027         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4028         in lisp again].
4029         (Vcharset_chinese_cns11643_4): Likewise.
4030         (Vcharset_chinese_cns11643_5): Likewise.
4031         (Vcharset_chinese_cns11643_6): Likewise.
4032         (Vcharset_chinese_cns11643_7): Likewise.
4033         (Qchinese_cns11643_3): Likewise.
4034         (Qchinese_cns11643_4): Likewise.
4035         (Qchinese_cns11643_5): Likewise.
4036         (Qchinese_cns11643_6): Likewise.
4037         (Qchinese_cns11643_7): Likewise.
4038         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4039         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4040         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4041         (complex_vars_of_mule_charset): Likewise.
4042
4043 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4044
4045         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4046         96-set.
4047         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4048         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4049
4050 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4051
4052         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4053         0xFF60.
4054         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4055         (breakup_char_1): Likewise.
4056
4057         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4058         one of them includes the specified character.
4059
4060 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4061
4062         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4063
4064 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4065
4066         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4067
4068 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4069
4070         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4071         definition for non-UTF-2000 Mule.
4072         (latin_iso8859_3_to_ucs): Likewise.
4073         (latin_iso8859_4_to_ucs): Likewise.
4074         (latin_iso8859_9_to_ucs): Likewise.
4075         (latin_jisx0201_to_ucs): Likewise.
4076         (MIN_CHAR_THAI): Likewise.
4077         (MAX_CHAR_THAI): Likewise.
4078         (MIN_CHAR_GREEK): Likewise.
4079         (MAX_CHAR_GREEK): Likewise.
4080         (MIN_CHAR_HEBREW): Likewise.
4081         (MAX_CHAR_HEBREW): Likewise.
4082         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4083         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4084         (MIN_CHAR_CYRILLIC): Likewise.
4085         (MAX_CHAR_CYRILLIC): Likewise.
4086
4087 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4088
4089         * char-ucs.h (breakup_char_1): Use
4090         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4091         thai-tis620 and katakana-jisx0201 area.
4092
4093 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4094
4095         * char-ucs.h (breakup_char_1): Use
4096         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4097         area.
4098
4099         * text-coding.c (reset_encoding_stream): Fixed.
4100         (char_encode_ucs4): Delete `& 255'.
4101
4102         * char-ucs.h (breakup_char_1): Use
4103         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4104
4105 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4106
4107         * file-coding.c (Fmake_coding_system): Don't set up
4108         `codesys->fixed.size'.
4109         (encode_coding_no_conversion): Don't refer
4110         `str->codesys->fixed.size'.
4111
4112 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4113
4114         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4115         (latin_a_char_to_byte1): Deleted.
4116         (latin_a_char_to_byte2): Deleted.
4117
4118 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4119
4120         * mule-charset.c (make_charset): Add new argument `ucs_min',
4121         `ucs_max' and `code_offset'.
4122         (charset_get_byte1): New implementation [delete specific charset
4123         depended implementations].
4124         (Fmake_charset): Modify for `make_charset'.
4125         (Fmake_reverse_direction_charset): Likewise.
4126         (complex_vars_of_mule_charset): Likewise.
4127
4128         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4129         `code_offset'.
4130         (CHARSET_UCS_MIN): New macro.
4131         (CHARSET_UCS_MAX): New macro.
4132         (CHARSET_CODE_OFFSET): New macro.
4133         (MAKE_CHAR): Delete charset depended definitions [except
4134         katakana-jisx0201].
4135
4136 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4137
4138         * char-ucs.h (breakup_char_1): Use
4139         `Vdefault_coded_charset_priority_list' for C0-Controls,
4140         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4141
4142 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4143
4144         * char-ucs.h (charset_get_byte1): New function.
4145         (XCHARSET_GET_BYTE1): Deleted.
4146         (charset_get_byte2): New function.
4147         (XCHARSET_GET_BYTE2): Deleted.
4148         (Vdefault_coded_charset_priority_list): New external variable.
4149         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4150         `Vdefault_preferred_coded_charset_list'.
4151
4152         * mule-charset.c (charset_get_byte1): New function.
4153         (charset_get_byte2): New function.
4154         (Vdefault_coded_charset_priority_list): New variable.
4155         (vars_of_mule_charset): Add new variable
4156         `default-coded-charset-priority-list'.
4157
4158 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4159
4160         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4161         (XCHARSET_GET_BYTE2): New inline function.
4162         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4163         `XCHARSET_GET_BYTE2'.
4164
4165 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4166
4167         * mule-charset.c (make_charset): Initialize
4168         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4169         NULL if table is not defined.
4170
4171 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4172
4173         * text-coding.c (char_encode_shift_jis): Use
4174         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4175         `ucs_to_latin_jisx0201'.
4176
4177         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4178         (ucs_to_latin_iso8859_2): Deleted.
4179         (ucs_to_latin_iso8859_3): Deleted.
4180         (ucs_to_latin_iso8859_4): Deleted.
4181         (ucs_to_latin_iso8859_9): Deleted.
4182         (ucs_to_latin_viscii_lower): Deleted.
4183         (ucs_to_latin_viscii_upper): Deleted.
4184         (ucs_to_latin_tcvn5712): Deleted.
4185         (make_charset): Add new argument `decoding_table'; set up
4186         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4187         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4188         `decoding_table' is defined in UTF-2000.
4189         (Fmake_charset): Modify for `make_charset'.
4190         (Fmake_reverse_direction_charset): Likewise.
4191         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4192         and `GENERATE_96_SET'.
4193
4194         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4195         (ucs_to_latin_jisx0201): Deleted.
4196         (latin_iso8859_2_to_ucs): Deleted.
4197         (ucs_to_latin_iso8859_2): Deleted.
4198         (latin_iso8859_3_to_ucs): Deleted.
4199         (ucs_to_latin_iso8859_3): Deleted.
4200         (latin_iso8859_4_to_ucs): Deleted.
4201         (ucs_to_latin_iso8859_4): Deleted.
4202         (latin_iso8859_9_to_ucs): Deleted.
4203         (ucs_to_latin_iso8859_9): Deleted.
4204         (latin_viscii_lower_to_ucs): Deleted.
4205         (ucs_to_latin_viscii_lower): Deleted.
4206         (latin_viscii_upper_to_ucs): Deleted.
4207         (ucs_to_latin_viscii_upper): Deleted.
4208         (struct Lisp_Charset): Renamed `encoding_table' to
4209         `to_byte1_table'; add `to_byte2_table'.
4210         (CHARSET_DECODING_TABLE): New macro.
4211         (CHARSET_TO_BYTE1_TABLE): New macro.
4212         (CHARSET_TO_BYTE2_TABLE): New macro.
4213         (XCHARSET_DECODING_TABLE): New macro.
4214         (XCHARSET_TO_BYTE1_TABLE): New macro.
4215         (XCHARSET_TO_BYTE2_TABLE): New macro.
4216         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4217         tables.
4218         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4219         don't use `ucs_to_*' tables.
4220
4221 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4222
4223         * text-coding.c (Fmake_coding_system): Don't set up
4224         `codesys->fixed.size'.
4225         (encode_coding_no_conversion): Use `if' instead of `switch'.
4226
4227         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4228
4229 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4230
4231         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4232         (Fmake_charset): Modify for `make_charset'.
4233         (Fmake_reverse_direction_charset): Likewise.
4234         (complex_vars_of_mule_charset): Likewise.
4235
4236 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4237
4238         * text-coding.c (char_encode_shift_jis): Use table
4239         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4240
4241 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4242
4243         * text-coding.c (text_encode_generic): Use `if' instead of
4244         `switch'.
4245         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4246         decode JIS-Latin.
4247
4248 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4249
4250         * text-coding.c (encode_coding_sjis): Deleted.
4251         (char_encode_shift_jis): New function.
4252         (char_finish_shift_jis): New function.
4253         (reset_encoding_stream): Set up `encode_char' and `finish' for
4254         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4255         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4256         (char_encode_utf8): Treat `eol_type'.
4257
4258 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4259
4260         * file-coding.c (decode_coding_iso2022): Use
4261         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4262
4263 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4264
4265         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4266         to 0.7 (Hirano).
4267
4268 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4269
4270         * char-lb.h (CHAR_COLUMNS): New macro.
4271
4272 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4273
4274         * text-coding.c (char_encode_ucs4): New function.
4275         (char_finish_ucs4): New function.
4276         (encode_coding_ucs4): Deleted.
4277         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4278         (text_encode_generic): Delete local variable `charset' and `half'.
4279         (ucs_to_mule_table): Deleted.
4280         (mule_to_ucs_table): Deleted.
4281         (Fset_ucs_char): Deleted.
4282         (ucs_to_char): Deleted.
4283         (Fucs_char): Deleted.
4284         (Fset_char_ucs): Deleted.
4285         (Fchar_ucs): Deleted.
4286         (decode_ucs4): Deleted.
4287         (mule_char_to_ucs4): Deleted.
4288         (encode_ucs4): Deleted.
4289         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4290         (decode_coding_utf8): Likewise.
4291         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4292         (char_encode_iso2022): Fixed.
4293         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4294         `Fset_char_ucs' and `Fchar_ucs'.
4295         (complex_vars_of_file_coding): Don't initialize
4296         `ucs_to_mule_table'.
4297
4298         * objects-tty.c (tty_initialize_font_instance): Don't use
4299         `XCHARSET_COLUMNS'.
4300
4301         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4302         UTF-2000.
4303
4304         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4305         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4306
4307         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4308         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4309         (emchar_string_displayed_columns): Likewise.
4310
4311         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4312         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4313         (string_column_at_point): Likewise.
4314         (Fmove_to_column): Likewise.
4315
4316         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4317         `encoding_table' and `decoding_table'.
4318         (CHARSET_REP_BYTES): Deleted.
4319         (XCHARSET_REP_BYTES): Deleted.
4320         (XCHARSET_COLUMNS): Deleted.
4321         (CHAR_COLUMNS): New macro.
4322         (lookup_composite_char): Deleted unconditionally.
4323         (composite_char_string): Likewise.
4324
4325 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4326
4327         * char-ucs.h (Emchar_to_byte_table): New type.
4328         (get_byte_from_character_table): New function interface.
4329         (Vcharset_latin_jisx0201): New variable.
4330         (latin_jisx0201_to_ucs): New variable.
4331         (ucs_to_latin_jisx0201): New variable.
4332         (Vcharset_latin_iso8859_2): New variable.
4333         (latin_iso8859_2_to_ucs): New variable.
4334         (ucs_to_latin_iso8859_2): New variable.
4335         (Vcharset_latin_iso8859_3): New variable.
4336         (latin_iso8859_3_to_ucs): New variable.
4337         (ucs_to_latin_iso8859_3): New variable.
4338         (Vcharset_latin_iso8859_4): New variable.
4339         (latin_iso8859_4_to_ucs): New variable.
4340         (ucs_to_latin_iso8859_4): New variable.
4341         (Vcharset_latin_iso8859_9): New variable.
4342         (latin_iso8859_9_to_ucs): New variable.
4343         (ucs_to_latin_iso8859_9): New variable.
4344         (Vcharset_latin_viscii_lower): New variable.
4345         (latin_viscii_lower_to_ucs): New variable.
4346         (ucs_to_latin_viscii_lower): New variable.
4347         (Vcharset_latin_viscii_upper): New variable.
4348         (latin_viscii_upper_to_ucs): New variable.
4349         (ucs_to_latin_viscii_upper): New variable.
4350         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4351         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4352         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4353         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4354         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4355         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4356         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4357         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4358         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4359         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4360
4361         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4362         (Vcharset_latin_viscii_upper): New variable.
4363         (make_byte_from_character_table): New function.
4364         (put_byte_from_character_table): New function.
4365         (get_byte_from_character_table): New function.
4366         (CHAR96): New macro.
4367         (ucs_to_latin_jisx0201): New variable.
4368         (latin_jisx0201_to_ucs): New variable.
4369         (ucs_to_latin_iso8859_2): New variable.
4370         (latin_iso8859_2_to_ucs): New variable.
4371         (ucs_to_latin_iso8859_3): New variable.
4372         (latin_iso8859_3_to_ucs): New variable.
4373         (ucs_to_latin_iso8859_4): New variable.
4374         (latin_iso8859_4_to_ucs): New variable.
4375         (ucs_to_latin_iso8859_9): New variable.
4376         (latin_iso8859_9_to_ucs): New variable.
4377         (ucs_to_latin_viscii_lower): New variable.
4378         (latin_viscii_lower_to_ucs): New variable.
4379         (ucs_to_latin_viscii_upper): New variable.
4380         (latin_viscii_upper_to_ucs): New variable.
4381         (ucs_to_latin_tcvn5712): New variable.
4382         (latin_tcvn5712_to_ucs): New variable.
4383         (Qlatin_viscii_lower): New variable.
4384         (Qlatin_viscii_upper): New variable.
4385         (syms_of_mule_charset): Set up new symbol
4386         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4387         (complex_vars_of_mule_charset): Set up new charset
4388         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4389         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4390         `ucs_to_<CHARSET>' tables.
4391
4392 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4393
4394         * text-coding.c: New file.
4395
4396 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4397
4398         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4399
4400         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4401         (MAKE_CHAR): Modify for `ucs-bmp'.
4402         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4403         non-MULE characters of BMP.
4404
4405 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4406
4407         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4408         to 0.6.
4409
4410 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4411
4412         * lstream.h:
4413         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4414         - Include character.h for `CHAR_ASCII_P'.
4415
4416         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4417
4418         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4419         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4420
4421         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4422         (BYTE_C0_P): Likewise.
4423         (BYTE_C1_P): Likewise.
4424         (Lstream_get_emchar_1): Likewise.
4425         (Lstream_fput_emchar): Likewise.
4426         (Lstream_funget_emchar): Likewise.
4427         (copy_internal_to_external): Likewise.
4428         (copy_external_to_internal): Likewise.
4429
4430         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4431         (BYTE_C0_P): Likewise.
4432         (BYTE_C1_P): Likewise.
4433         (Lstream_get_emchar_1): Likewise.
4434         (Lstream_fput_emchar): Likewise.
4435         (Lstream_funget_emchar): Likewise.
4436         (copy_internal_to_external): Likewise.
4437         (copy_external_to_internal): Likewise.
4438
4439         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4440         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4441
4442         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4443         (BYTE_ASCII_P): Moved to mb-1byte.h.
4444
4445 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4446
4447         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4448
4449         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4450         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4451         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4452         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4453         (VALIDATE_CHARPTR_FORWARD): Likewise.
4454         (simple_charptr_emchar): Moved to mb-multibyte.h.
4455         (simple_set_charptr_emchar): Likewise.
4456         (simple_charptr_copy_char): Likewise.
4457         (non_ascii_charptr_emchar): Likewise.
4458         (non_ascii_set_charptr_emchar): Likewise.
4459         (non_ascii_charptr_copy_char): Likewise.
4460         (charptr_emchar): Moved to mb-*byte.h.
4461         (set_charptr_emchar): Likewise.
4462         (charptr_copy_char): Likewise.
4463
4464         * mb-1byte.h, mb-multibyte.h: New files.
4465
4466 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4467
4468         * mb-utf-8.h (MULTIBYTE): New macro.
4469         (MAX_EMCHAR_LEN): Moved from buffer.h.
4470         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4471
4472         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4473
4474         * mb-lb.h, multibyte.h: New files.
4475
4476         * char-1byte.h (Charset_ID): Moved from buffer.h.
4477         (MIN_LEADING_BYTE): Likewise.
4478         (LEADING_BYTE_ASCII): Likewise.
4479         (NUM_LEADING_BYTES): Likewise.
4480         (CHARSETP): Likewise.
4481         (CHARSET_BY_LEADING_BYTE): Likewise.
4482         (XCHARSET_LEADING_BYTE): Likewise.
4483         (XCHARSET_GRAPHIC): Likewise.
4484         (XCHARSET_COLUMNS): Likewise.
4485         (XCHARSET_DIMENSION): Likewise.
4486         (CHAR_CHARSET): Likewise.
4487         (CHAR_LEADING_BYTE): Likewise.
4488         (BREAKUP_CHAR): Likewise.
4489         (Vcharset_ascii): Likewise.
4490
4491         * buffer.h: Include multibyte.h unconditionally.
4492         (VALID_CHARPTR_P): Moved to multibyte.h.
4493         (ASSERT_VALID_CHARPTR): Likewise.
4494         (REAL_INC_CHARPTR): Likewise.
4495         (REAL_INC_CHARBYTIND): Likewise.
4496         (REAL_DEC_CHARPTR): Likewise.
4497         (INC_CHARPTR): Likewise.
4498         (INC_CHARBYTIND): Likewise.
4499         (DEC_CHARPTR): Likewise.
4500         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4501         (VALIDATE_CHARPTR_FORWARD): Likewise.
4502         (charptr_n_addr): Likewise.
4503         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4504         (simple_charptr_emchar): Moved to multibyte.h.
4505         (simple_set_charptr_emchar): Likewise.
4506         (simple_charptr_copy_char): Likewise.
4507         (non_ascii_charptr_emchar): Likewise.
4508         (non_ascii_set_charptr_emchar): Likewise.
4509         (non_ascii_charptr_copy_char): Likewise.
4510         (charptr_emchar): Likewise.
4511         (set_charptr_emchar): Likewise.
4512         (charptr_copy_char): Likewise.
4513         (charptr_emchar_n): Likewise.
4514         (Charset_ID): Moved to char-1byte.h.
4515         (Vcharset_ascii): Likewise.
4516         (CHAR_CHARSET): Likewise.
4517         (CHAR_LEADING_BYTE): Likewise.
4518         (LEADING_BYTE_ASCII): Likewise.
4519         (NUM_LEADING_BYTES): Likewise.
4520         (MIN_LEADING_BYTE): Likewise.
4521         (CHARSETP): Likewise.
4522         (CHARSET_BY_LEADING_BYTE): Likewise.
4523         (XCHARSET_LEADING_BYTE): Likewise.
4524         (XCHARSET_GRAPHIC): Likewise.
4525         (XCHARSET_COLUMNS): Likewise.
4526         (XCHARSET_DIMENSION): Likewise.
4527         (BREAKUP_CHAR): Likewise.
4528
4529 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4530
4531         * character.h: Add document about interface for characters.
4532
4533         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4534         (MAKE_CHAR): Delete comment about
4535         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4536         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4537         (BREAKUP_CHAR): Modify name of arguments.
4538         (CHAR_CHARSET): Modify name of argument.
4539
4540         * buffer.h: Delete document about Emchar accessors.
4541
4542 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4543
4544         * character.h (CHAR_INTP): Moved from buffer.h
4545         (CHAR_OR_CHAR_INTP): Likewise.
4546         (XCHAR_OR_CHAR_INT): Likewise.
4547         (CHECK_CHAR_COERCE_INT): Likewise.
4548
4549         * buffer.h (CHAR_INTP): Moved to character.h
4550         (CHAR_OR_CHAR_INTP): Likewise.
4551         (XCHAR_OR_CHAR_INT): Likewise.
4552         (CHECK_CHAR_COERCE_INT): Likewise.
4553
4554 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4555
4556         * character.h:
4557         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4558         - Include char-1byte.h, char-lb.h or char-ucs.h.
4559
4560         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4561
4562         * buffer.h: Include character unconditionally.
4563         (valid_char_p): Moved to char-*.h.
4564         (non_ascii_valid_char_p): Moved to char-lb.h.
4565
4566         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4567
4568 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4569
4570         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4571         in UTF-2000 because it is not ported yet and not to use
4572         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4573         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4574         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4575
4576         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4577         (CHAR_ASCII_P): Moved from character.h.
4578
4579         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4580         (CHAR_ASCII_P): Likewise.
4581         (CHAR_FIELD1_MASK): Deleted.
4582         (CHAR_FIELD2_MASK): Deleted.
4583         (CHAR_FIELD3_MASK): Deleted.
4584         (MAX_CHAR_BASIC_LATIN): New macro.
4585         (CHAR_FIELD1): Deleted.
4586         (CHAR_FIELD2_INTERNAL): Deleted.
4587         (CHAR_FIELD3_INTERNAL): Deleted.
4588         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4589         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4590         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4591         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4592         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4593         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4594         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4595         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4596         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4597         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4598         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4599         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4600         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4601         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4602         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4603         (MIN_CHAR_COMPOSITION): Deleted.
4604         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4605         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4606
4607 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4608
4609         * buffer.h: Include mb-utf-8.h in UTF-2000.
4610
4611         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4612
4613         * mb-utf-8.h: New file.
4614
4615 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4616
4617         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4618         instead of `int'.
4619
4620         * mule-charset.h, buffer.h (Charset_ID): New type.
4621
4622 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4623
4624         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4625         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4626         instead of `MULE_CHAR_PRIVATE_OFFSET',
4627         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4628         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4629         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4630
4631         * character.h (Vcharset_japanese_jisx0212): New variable
4632         definition.
4633
4634 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4635
4636         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4637         (charset_by_attributes): Delete array about direction.
4638         (latin_a_char_to_charset): New variable in UTF-2000.
4639         (latin_a_char_to_byte1): New variable in UTF-2000.
4640         (latin_a_char_to_byte2): New variable in UTF-2000.
4641         (Qucs_bmp): New variable.
4642         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4643         `Bufbyte'.
4644         (next_allocated_2_byte_leading_byte): Likewise.
4645         (non_ascii_set_charptr_emchar): Likewise.
4646         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4647         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4648         `charset_by_attributes'.
4649         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4650         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4651         and `CHARSET_BY_LEADING_BYTE'.
4652         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4653         `utf-2000-version' to `vars_of_mule_charset'.
4654         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4655         define `leading-code-private-11' in UTF-2000; move setting of
4656         `utf-2000-version' from `syms_of_mule_charset'.
4657         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4658         UTF-2000.
4659
4660         * character.h (Charset_ID): New type.
4661         (LEADING_BYTE_UCS_BMP): New macro.
4662         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4663         (CHARSET_ID_OFFSET_94): New macro.
4664         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4665         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4666         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4667         final-byte.
4668         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4669         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4670         (CHARSET_ID_OFFSET_96): New macro.
4671         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4672         CHARSET_ID_OFFSET_96 and final-byte.
4673         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4674         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4675         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4676         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4677         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4678         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4679         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4680         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4681         (LEADING_BYTE_THAI_TIS620): Likewise.
4682         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4683         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4684         (CHARSET_ID_OFFSET_94x94): New macro.
4685         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4686         CHARSET_ID_OFFSET_94x94 and final-byte.
4687         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4688         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4689         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4690         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4691         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4692         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4693         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4694         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4695         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4696         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4697         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4698         (CHARSET_TYPE_128X128): New macro.
4699         (CHARSET_TYPE_256X256): New macro.
4700         (XCHARSET_PRIVATE_P): Delete unconditionally.
4701         (charset_by_attributes): Delete array about direction.
4702         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4703         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4704         (MIN_CHAR_94): New macro.
4705         (MAX_CHAR_94): New macro.
4706         (MIN_CHAR_96): New macro.
4707         (MAX_CHAR_96): New macro.
4708         (MIN_CHAR_94x94): New macro.
4709         (MAX_CHAR_94x94): New macro.
4710         (MIN_CHAR_96x96): New macro.
4711         (MAX_CHAR_96x96): New macro.
4712         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4713         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4714         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4715         - 32)'.
4716         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4717         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4718         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4719         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4720         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4721         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4722         `XCHARSET_LEADING_BYTE' to make code-point.
4723         (latin_a_char_to_charset): New variable.
4724         (latin_a_char_to_byte1): New variable.
4725         (latin_a_char_to_byte2): New variable.
4726         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4727         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4728         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4729
4730         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4731         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4732         (find_charsets_in_emchar_string): Likewise.
4733         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4734
4735         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4736         `int'.
4737         (decode_coding_iso2022): Likewise.
4738
4739         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4740         of `unsigned char'.
4741
4742         * redisplay.c (redisplay_text_width_emchar_string): Use
4743         `Charset_ID' instead of `unsigned char'.
4744         (redisplay_frame_text_width_string): Likewise.
4745
4746         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4747         `unsigned char'.
4748
4749         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4750         instead of `unsigned char'.
4751         (face_cachel_charset_font_metric_info): Likewise.
4752
4753         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4754         (get_non_ascii_char_table_value): Likewise.
4755         (get_char_table): Likewise.
4756         (put_char_table): Likewise.
4757         (map_over_other_charset): Likewise.
4758         (map_char_table): Likewise.
4759
4760         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4761         instead of `unsigned char'.
4762
4763 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4764
4765         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4766         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4767
4768         * mule-charset.c (leading_code_private_11): Don't define in
4769         UTF-2000.
4770
4771         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4772         in UTF-2000 because it is not ported yet and not to use
4773         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4774
4775 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4776
4777         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4778
4779 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4780
4781         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4782         in UTF-2000.
4783
4784         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4785         of unsigned char to store leading-byte.
4786
4787         * chartab.c (get_non_ascii_char_table_value): Don't use
4788         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4789
4790         * file-coding.c (encode_coding_big5): Delete bogus implementation
4791         in UTF2000.
4792
4793         * character.h (LEADING_BYTE_*): Delete definition for
4794         non-UTF-2000.
4795         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4796         (LEADING_BYTE_PREFIX_P): Deleted.
4797         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4798         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4799         (BUFBYTE_LEADING_BYTE_P): Deleted.
4800         (CHARSET_PRIVATE_P): Deleted unconditionally.
4801         (rep_bytes_by_first_byte): Deleted unconditionally.
4802         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4803         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4804         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4805         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4806         (CHAR_FIELD2): Deleted.
4807         (CHAR_FIELD3): Deleted.
4808         (MAKE_CHAR): Delete definition for non-UTF-2000.
4809         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4810         (breakup_char_1): New implementation.
4811         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4812         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4813
4814 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4815
4816         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4817         condition.
4818
4819 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4820
4821         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4822         (CHARSET_PRIVATE_P): Likewise.
4823         (XCHARSET_PRIVATE_P): Likewise.
4824         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4825
4826         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4827         UTF2000.
4828         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4829
4830 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4831
4832         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4833         (NUM_LEADING_BYTES): Changed from 128 to 256.
4834         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4835         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4836         UTF2000.
4837         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4838
4839         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4840         UTF2000.
4841         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4842         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4843         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4844         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4845         (Qchinese_cns11643_3): New variable in UTF2000.
4846         (Qchinese_cns11643_4): New variable in UTF2000.
4847         (Qchinese_cns11643_5): New variable in UTF2000.
4848         (Qchinese_cns11643_6): New variable in UTF2000.
4849         (Qchinese_cns11643_7): New variable in UTF2000.
4850         (syms_of_mule_charset): Define `chinese-cns11643-3',
4851         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4852         and `chinese-cns11643-7' in UTF2000.
4853         (vars_of_mule_charset): Initialize
4854         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4855         + 1 in UTF2000.
4856         (complex_vars_of_mule_charset): Setup charset
4857         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4858         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4859
4860 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4861
4862         * mule-charset.c: Move setting for `leading-code-private-11' from
4863         `syms_of_mule_charset' to `vars_of_mule_charset'.
4864
4865 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4866
4867         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4868         and `NUM_LEADING_BYTES' in assert.
4869
4870 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4871
4872         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4873         instead of 128.
4874         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4875         `NUM_LEADING_BYTES' instead of 128.
4876
4877 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4878
4879         * mule-charset.h (charset_by_leading_byte): Use
4880         `NUM_LEADING_BYTES' instead of 128.
4881         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4882
4883         * mule-charset.c (charset_by_leading_byte): Use
4884         `NUM_LEADING_BYTES' instead of 128.
4885         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4886
4887         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4888         128.
4889
4890 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4891
4892         * mule-charset.c (syms_of_mule_charset): Update to
4893         0.4 (Shin-Imamiya).
4894
4895 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4896
4897         * file-coding.c (encode_coding_sjis): New implementation for
4898         UTF2000.  (decode_coding_sjis): Ditto.
4899
4900 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4901
4902         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4903         Don't define in UTF2000.
4904
4905         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4906         defined.
4907
4908         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4909         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4910         MULE.
4911
4912 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4913
4914         * config.h.in (CHAR_IS_UCS4): New macro.
4915
4916         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4917         conventional MULE representation.
4918         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4919
4920         * mule-charset.h: Reverted to original.
4921
4922         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4923         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4924         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4925
4926         * character.h: New file.
4927
4928         * file-coding.c (Fmake_coding_system): Set 1 to
4929         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4930         defined.
4931         (encode_coding_no_conversion): New implementation for UTF2000.
4932
4933         * file-coding.h (struct Lisp_Coding_System): Add new member
4934         `fixed.size'.
4935
4936 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4937
4938         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4939         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4940         (encode_coding_iso2022): New implementation for UTF2000.
4941
4942 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4943
4944         * mule-canna.c (c2mu): New implementation for UTF2000.
4945         (m2c): Likewise.
4946
4947 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4948
4949         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4950
4951 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4952
4953         * file-coding.c (reset_encoding_stream): Set 0 to
4954         `str->iso2022.current_char_boundary' in UTF2000.
4955         (encode_utf8): Don't define in UTF2000.
4956         (encode_coding_utf8): New implementation for UTF-8 representation
4957         of UTF2000.
4958         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4959
4960 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4961
4962         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4963
4964         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4965         UTF2000.
4966         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4967
4968         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4969
4970         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4971         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4972         as UTF-8 in UTF2000.
4973         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4974         (non_ascii_valid_char_p): Don't define in UTF2000.
4975         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4976         (Lstream_get_emchar_1): Likewise.
4977         (utf-2000-version): New variable in UTF2000.
4978
4979         * lread.c (read_escape): Add new reader `u'.
4980
4981         * insdel.c (three_to_one_table): Don't define in UTF2000.
4982         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4983         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4984         UTF2000.
4985         (bytind_to_bufpos_func): Likewise.
4986         (buffer_mule_signal_inserted_region): Likewise.
4987         (vars_of_insdel): Don't initialize `three_to_one_table'.
4988         (init_buffer_text): Use `buf->text->mule_size' instead of
4989         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4990         UTF2000.
4991
4992         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4993         UTF-8 representation in UTF2000.
4994         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4995         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4996         (decode_coding_iso2022): Don't define local variable `lb' in
4997         UTF2000; don't use LEADING_BYTE in UTF2000; use
4998         `DECODE_ADD_UCS_CHAR' in UTF2000.
4999         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5000
5001         * config.h.in (UTF2000): New macro.
5002
5003         * buffer.h (struct buffer_text): Add new member `mule_size' and
5004         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5005         (valid_char_p): Return always 1 in UTF2000.
5006         (MAX_EMCHAR_LEN): 6 in UTF2000.
5007         (three_to_one_table): Don't define in UTF2000.
5008         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5009         UTF2000.
5010         (real_bytind_to_bufpos): Likewise.
5011
5012         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5013
5014 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5015
5016         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5017         representation change.
5018         (Vutf_2000_version): New variable.
5019         (leading_code_private_11): New variable.
5020         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5021         `leading-code-private-11'.
5022
5023         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5024         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5025         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5026         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5027         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5028         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5029         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5030         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5031         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5032         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5033         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5034         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5035         (MIN_CHAR_GREEK): New macro.
5036         (MAX_CHAR_GREEK): New macro.
5037         (MIN_CHAR_CYRILLIC): New macro.
5038         (MAX_CHAR_CYRILLIC): New macro.
5039         (MIN_CHAR_HEBREW): New macro.
5040         (MAX_CHAR_HEBREW): New macro.
5041         (MIN_CHAR_THAI): New macro.
5042         (MAX_CHAR_THAI): New macro.
5043         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5044         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5045         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5046         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5047         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5048         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5049         (CHAR_FIELD2): New inline function.
5050         (CHAR_FIELD3): New inline function.
5051         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5052         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5053         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5054         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5055         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5056         (MIN_CHAR_COMPOSITION): Likewise.
5057         (CHAR_LEADING_BYTE): Modified for character representation change.
5058         (MAKE_CHAR): Likewise.
5059
5060         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5061         (Vcharset_greek_iso8859_7): Likewise.
5062         (Vcharset_cyrillic_iso8859_5): Likewise.
5063         (Vcharset_hebrew_iso8859_8): Likewise.
5064         (Vcharset_thai_tis620): Likewise.
5065         (Vcharset_katakana_jisx0201): Likewise.
5066
5067 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5068
5069         * XEmacs 21.4.12 "Portable Code" is released.
5070
5071 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5072
5073         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5074         * s/cygwin.sc: new linker file.
5075
5076 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5077
5078         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5079
5080         * redisplay-x.c (x_output_string): Use X11-specified types.
5081         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5082         * emacs.c (__free_hook): Use typeof with Intel compiler.
5083         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5084
5085 2003-01-08  Andy Piper  <andy@xemacs.org>
5086
5087         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5088         reserve size during unexec().
5089
5090 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5091
5092         * process-unix.c (unix_create_process): Don't let outchannel block.
5093
5094 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5095
5096         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5097         Needed for IsBadReadPtr().
5098
5099 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5100
5101         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5102
5103 2002-12-14  Ben Wing  <ben@xemacs.org>
5104
5105         * callint.c: Declaration error.
5106         * dumper.c (pdump):
5107         * dumper.c (pdump_load): Warning fix.
5108         * process.c: GCPRO error.
5109         * glyphs.c (unmap_subwindow):
5110         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5111         * event-stream.c (maybe_kbd_translate): Wrong argument to
5112         character_to_event().
5113
5114         * alloc.c (garbage_collect_1):
5115         * emacs.c:
5116         * emacs.c (debug_can_access_memory):
5117         * emacs.c (fatal_error_signal):
5118         * emacs.c (mswindows_handle_hardware_exceptions):
5119         * emacs.c (main_1):
5120         * emacs.c (main):
5121         * emacs.c (assert_failed):
5122         * emacs.c (syms_of_emacs):
5123         * lisp.h:
5124         * print.c:
5125         * print.c (std_handle_out_va):
5126         * print.c (write_string_to_stdio_stream):
5127         * print.c (write_fmt_string):
5128         * print.c (printing_badness):
5129         * print.c (printing_major_badness):
5130         * print.c (print_internal):
5131         * print.c (debug_print_no_newline):
5132         * print.c (debug_backtrace):
5133         Be more defensive in handling bad values when printing.  Add code
5134         from trunk involving inhibit_non_essential_printing_operations.
5135         When going down or in debug_print(), don't do external conversion
5136         and such and try really, really hard when printing to avoid core
5137         dumping.  Add force-debugging-signal, debug_break().
5138
5139 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5140
5141         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5142         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5143
5144 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5145
5146         * database.c: Fix open_database. Berkeley DB API has changed in
5147         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5148
5149 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5150
5151         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5152
5153 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5154
5155         * event-Xt.c (Xt_timeout):
5156         (Xt_timeout_callback):
5157         (emacs_Xt_add_timeout):
5158         (emacs_Xt_remove_timeout):
5159         (Xt_timeout_to_emacs_event):
5160         Turn completed_timeouts from a stack into a queue.  Fixes
5161         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5162
5163 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5164
5165         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5166         * emacs.c (main): Assert that mmap'd allocation is disabled.
5167
5168 2002-10-14  Andy Piper  <andy@xemacs.org>
5169
5170         * glyphs-widget.c (layout_query_geometry): add in fiddle
5171         factor. Include border text in width layout calculation.
5172         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5173
5174 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5175
5176         * XEmacs 21.4.10 "Military Intelligence" is released.
5177
5178 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5179
5180         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5181         using the NAS private array SoundFileInfo that no longer exists in
5182         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5183         and earlier.  This is broken for some versions between 1.5a and
5184         1.5f.
5185
5186 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5187
5188         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5189
5190         * emacs.c (shut_down_emacs): Improve crash message.
5191
5192 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5193
5194         * file-coding.c (determine_real_coding_system): Check for coding
5195         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5196         shebangs and Python PEP 263.
5197
5198 2002-10-08  Andy Piper  <andy@xemacs.org>
5199
5200         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5201         if static sizes haven't been set.
5202
5203 2002-08-30  Mike Alexander  <mta@arbortext.com>
5204
5205         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5206         to close a socket.
5207
5208 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5209
5210         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5211
5212 2002-09-20  Mike Sperber <mike@xemacs.org>
5213
5214         (This partially gets back my patch from 2002-07-20 without the
5215         bug.)
5216         * callproc.c (child_setup): Remove Ben's comment noting confusion
5217         over the file descriptors >= 3: close_process_descs() doesn't
5218         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5219         * process-unix.c (unix_create_process): Call
5220         begin_dont_check_for_quit to inhibit unwanted interaction (and
5221         thus breaking of X event synchronicity) in the child.
5222
5223 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5224
5225         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5226         widget.
5227
5228 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5229
5230         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5231         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5232         the xemacs process did not exit, but looped infinitely here.  This
5233         fixes that problem.
5234
5235 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5236
5237         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5238         (find_context): Improve comments.
5239
5240         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5241         (re_match_2): An XCHAR_TABLE operation was missing.
5242
5243         Many of the following changes were inspired by Andy Piper's (now
5244         obsolete) patch to make syntax-table text property lookup optional.
5245
5246         [Documentation]
5247
5248         * syntax.h (top level): Document semantics of syntax flags.
5249         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5250         * syntax.c, syntax.h (top level): Document syntax cache better in
5251         comments.
5252
5253         [Instrument syntax caching (temporary change)]
5254
5255         * syntax.h (enum syntax_cache_statistics_functions, struct
5256         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5257         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5258         * syntax.c (scan_words, Fforward_comment, scan_lists,
5259         Fbackward_prefix_characters):
5260         * font-lock.c (find_context):
5261         Use them to instrument syntax caching. 
5262         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5263         syntax_cache_statistics_function_names): New type and variables.
5264         * syntax.c (update_syntax_cache): Update and report statistics.
5265
5266         [Major syntax cache optimizations]
5267
5268         syntax.c (lookup_syntax_properties): Default off.
5269
5270         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5271         * syntax.c (update_syntax_cache):
5272         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5273
5274         [Minor syntax cache optimizations and code clarifications]
5275
5276         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5277         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5278         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5279         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5280         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5281         (Code clarification.)
5282
5283         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5284         scan_lists): Compute code from syncode, use Boolean macros instead
5285         of redundant masking operations.  (Code clarification; any decent
5286         compiler can do this optimization.)
5287
5288         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5289         for clarity.
5290
5291         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5292         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5293         use F*_single_property_change instead of F*_extent_change.
5294         Currently F*_single_property_change is _much_ less efficient.
5295
5296         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5297         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5298         syntax_cache.object properly, don't leave Qt or Qnil.
5299         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5300         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5301         tests for Qt or Qnil.
5302
5303 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5304
5305         * redisplay.c (point_in_line_start_cache): 
5306         * extents.c (print_extent_1):
5307         Fix warnings.
5308
5309         * extents.c (Fset_extent_property): Document `syntax-table' property.
5310
5311         * extents.h (Fnext_single_property_change): EXFUN it.
5312
5313 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5314
5315         * search.c (clear_unused_search_regs): New static function.
5316         (search_buffer): 
5317         (simple_search): 
5318         (boyer_moore):
5319         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5320         Minor clarifications in comments.
5321
5322         * regex.c (re_match_2_internal): Ensure no stale submatches.
5323
5324 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5325
5326         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5327
5328 2002-08-29  Jerry James  <james@xemacs.org>
5329
5330         * lisp.h: structrures -> structures.
5331
5332 2002-06-03  Andy Piper  <andy@xemacs.org>
5333
5334         * frame.c (frame_conversion_internal): add conversion appropriate
5335         for setting frame dimensions in pixels.
5336
5337         * console.h (struct console_methods): add device-specific widget
5338         layout functions.
5339
5340         * emacs.c (main_1): initialize glyph vars.
5341
5342         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5343         (handle_focus_event_2): new function. Allow focus to
5344         be set to a particular window and widget.
5345         (enqueue_focus_event): new function. Create a
5346         synthetic focus event.
5347         (emacs_Xt_handle_magic_event): call
5348         handle_focus_event_2.
5349
5350         * frame.c (Fset_frame_pixel_height): new function. Allow
5351         pixel-based sizing. Does the right thing on character-oriented
5352         displays.
5353         (Fset_frame_pixel_width): ditto.
5354         (Fset_frame_pixel_size): ditto.
5355         (syms_of_frame): declare.
5356
5357         * general-slots.h: add :vertically-justify and
5358         :horizontally-justify.
5359
5360         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5361         (mswindows_widget_border_width): new function.
5362         (mswindows_combo_box_instantiate): set border widths.
5363         (console_type_create_glyphs_mswindows): declare.
5364
5365         * glyphs-widget.c:
5366         (check_valid_justification): allow vertical and horizontal
5367         justification.
5368         (widget_border_width): new function. Call device methods.
5369         (widget_instance_border_width): ditto.
5370         (logical_unit_height): new function. Determine the height of a
5371         logical-unit. Logical units are intended to provide grid-like
5372         layout for subcontrols in a layout. If the layout is
5373         :vertically-justify top then subcontrols will be positioned on
5374         logical-unit boundaries, thus allowing adjacent subcontrols to
5375         line up.
5376         (widget_logical_unit_height): ditto for widgets.
5377         (redisplay_widget): misc cleanup.
5378         (widget_spacing): new function. Call device specific
5379         methods. Intended to be the default gap between adjacent widgets.
5380         (widget_query_geometry): use new spacing functions to determine
5381         appropriate geometry.
5382         (initialize_widget_image_instance): initialize horizontal and
5383         vertical justification.
5384         (widget_instantiate): use logica-units where appropriate for
5385         sizing large widgets.
5386         (button_query_geometry): use widget_instance_border_width.
5387         (tree_view_query_geometry): ditto.
5388         (tab_control_query_geometry): ditto.
5389         (edit_field_query_geometry): new function.
5390         (layout_update): pick up :justify, :horizontally-justify and
5391         :vertically-justify none of which worked previously. :justify is
5392         used as a fallback for both horizontal and vertical justification.
5393         (layout_query_geometry): use logical units to size appropriately.
5394         (layout_layout): ditto.
5395         (Fwidget_logical_to_character_width): new function. Allow users to
5396         convert from logical units to characters so that frame sizes can
5397         be set appropriately.
5398         (Fwidget_logical_to_character_height): ditto.
5399         (syms_of_glyphs_widget): declare.
5400         (image_instantiator_edit_fields): add edit_field_query_geometry.
5401         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5402         :horizontally-justify.
5403         (specifier_vars_of_glyphs_widget): new function. Declare
5404         Vwidget_border_width which is not yet used.
5405
5406         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5407         (x_widget_border_width): new function.
5408         (x_widget_instantiate): create a sensible name for widgets.
5409         (console_type_create_glyphs_x): declare x_widget_border_width.
5410
5411         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5412         (struct Lisp_Image_Instance): add :vertically-justify and
5413         :horizontally-justify.
5414         (LAYOUT_JUSTIFY_TOP): new.
5415         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5416         (ROUND_UP): new macro. Round argument up to next integral
5417         interval.
5418
5419         * redisplay-output.c (redisplay_output_layout): misc formatting.
5420
5421         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5422
5423 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5424
5425         * XEmacs 21.4.9 "Informed Management" is released.
5426
5427 2002-08-19  Andy Piper  <andy@xemacs.org>
5428
5429         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5430         win32 format.
5431
5432         * realpath.c (xrealpath): normalize drive spec also so that dir
5433         sep chars are not mixed on cygwin.
5434
5435 2002-08-06  Jerry James  <james@xemacs.org>
5436
5437         * window.c (Fsplit_window): Count only half of the divider width
5438         against the left window when splitting horizontally. 
5439
5440 2002-06-24  Andy Piper  <andy@xemacs.org>
5441
5442         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5443         toolbar was cleared.
5444
5445         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5446         function. Split out from mswindows_output_frame_toolbars.
5447         (mswindows_output_frame_toolbars): move clear pieces to
5448         mswindows_output_frame_toolbars.
5449
5450         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5451         out from gtk_output_frame_toolbars.
5452         (gtk_output_frame_toolbars): move clear pieces to
5453         gtk_clear_frame_toolbars.
5454
5455         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5456         the frame is cleared. How this ever worked before is a mystery.
5457         (x_output_frame_toolbars): Only output toolbars.
5458         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5459
5460         * gutter.c (update_gutter_geometry):
5461         Mark frame layout changed.
5462         (update_frame_gutter_geometry, update_frame_gutters):
5463         Respect frame_layout_changed.
5464
5465         * console.h (struct console_methods): add
5466         clear_frame_toolbars_method.
5467
5468         * redisplay.c (redisplay_frame): call
5469         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5470
5471         * toolbar.h: declare update_frame_toolbars_geometry.
5472
5473         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5474         out from update_frame_toolbars.  Call clear_frame_toolbars.
5475         (update_frame_toolbars): only output, do not change geometry.
5476
5477         * redisplay.c: add frame_layout_changed.
5478
5479         * redisplay.h: add frame_layout_changed.
5480         (CLASS_RESET_CHANGED_FLAGS): set it.
5481         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5482         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5483         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5484
5485         * device.h (struct device): add frame_layout_changed.
5486         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5487
5488         * frame.h (struct frame): add frame_layout_changed.
5489         (MARK_FRAME_LAYOUT_CHANGED): new.
5490
5491 2002-06-30  Mike Alexander  <mta@arbortext.com>
5492
5493         * event-msw.c (mswindows_need_event): Don't wait for a new message
5494         if the queue is not empty.  Suggested by Paul Moore.
5495
5496 2002-06-12  Andy Piper  <andy@xemacs.org>
5497
5498         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5499         for printing on accurately.
5500
5501 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5502
5503         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5504         WM_ACTIVATE message. Make sure that the frame is visible if the
5505         window is visible. This seemss to fix the problem where XEmacs
5506         appears to freeze after switching desktops with certain virtual
5507         window managers.
5508         (debug_output_mswin_message): Added code to output message
5509         parameters for WM_WINDOWPOSCHANGED, 
5510         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5511
5512 2002-05-25  Andy Piper  <andy@xemacs.org>
5513
5514         * select-x.c (vars_of_select_x): Fix docstring of
5515         x-selection-strict-motif-ownership
5516
5517 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5518
5519         * keymap.c (get_keymap):
5520         Add comment about do_autoload GCPROs own args.
5521
5522 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5523
5524         * bytecode.c (execute_optimized_program): check_opcode ifdef
5525         ERROR_CHECK_BYTE_CODE.
5526
5527 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5528
5529         Thanks to Ben Wing and Michael Sperber.
5530
5531         * eval.c (Fcommand_execute):
5532         (Feval):
5533         (Ffuncall):
5534         (Fmacroexpand_internal):
5535         (function_argcount):
5536         callint.c (Fcall_interactively):
5537         Add comment about do_autoload GCPROs own args.
5538
5539         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5540
5541         * eval.c (Ffuncall): Extra braces to placate GCC.
5542
5543 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5544
5545         * backtrace.h (grow_specpdl):
5546         (SPECPDL_RESERVE):
5547         * EmacsFrame.c (EmacsFrameSetValues):
5548         * eval.c (grow_specpdl):
5549         * ExternalShell.c (hack_event_masks_1):
5550         * glyphs-x.c (convert_EImage_to_XImage): 
5551         (x_finalize_image_instance):
5552         * ralloc.c (page_size):
5553         (r_alloc_sbrk):
5554         * xgccache.c (gc_cache_hash):
5555         Fix unsigned comparison warnings.
5556
5557 2002-07-29  Jerry James  <james@xemacs.org>
5558
5559         * lread.c (locate_file): Any nonnegative return value indicates
5560         success if MODE is nonnegative.
5561
5562 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5563
5564         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5565         argument. 
5566
5567 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5568
5569         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5570
5571         * dumper.c (pdump_get_indirect_count):
5572         (pdump_scan_by_alignment):
5573         (pdump_dump_root_struct_ptrs):
5574         (pdump_dump_rtables):
5575         (pdump_dump_root_objects):
5576         (pdump):
5577         * nas.c (WaveOpenDataForReading):
5578         * fns.c (print_bit_vector):
5579         * font-lock.c (SINGLE_SYNTAX_STYLE):
5580         * glyphs.c (check_for_ignored_expose):
5581         (find_matching_subwindow):
5582         * glyphs-eimage.c:
5583         * imgproc.c (get_histogram):
5584         * redisplay.c (point_in_line_start_cache):
5585         * redisplay-output.c (redisplay_unmap_subwindows):
5586         * symbols.c (defsymbol_massage_name_1):
5587         (defkeyword_massage_name):
5588         (deferror_massage_name_and_message):
5589         * redisplay-x.c (x_output_string): 
5590         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5591         * frame.h (struct frame):
5592         * filelock.c (current_lock_owner):
5593         * doprnt.c (emacs_doprnt_1):
5594         * lisp.h (struct Lisp_Bit_Vector):
5595         (DO_REALLOC):
5596         Fix warnings.
5597
5598 2002-02-13  Ben Wing  <ben@xemacs.org>
5599
5600         * event-stream.c (reset_key_echo):
5601         * event-stream.c (reset_this_command_keys):
5602         * event-stream.c (execute_command_event):
5603         If console is dead as a result of C-x 5 0, then post-command stuff
5604         needs to be careful and do only non-console-specific stuff.
5605
5606 2002-07-01  Mike Sperber <mike@xemacs.org>
5607
5608         * process-unix.c (unix_send_process): Mark coding_outstream as
5609         non-open upon SIGPIPE.
5610
5611         * event-stream.c (Fnext_event): Reorder switch cases to something
5612         that makes sense.
5613
5614 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5615
5616         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5617         Don't bogusly reinitialize ascii_character property.
5618
5619 2002-07-08  Mike Sperber <mike@xemacs.org>
5620
5621         * process.c (Fstart_process_internal): Do error checking before we
5622         fork off the child, so the child can't muck with the state of the
5623         parent.
5624
5625 2002-07-08  Mike Sperber <mike@xemacs.org>
5626
5627         * ralloc.c (init_ralloc): Allocate properly for pdump.
5628
5629 2002-06-12  Andy Piper  <andy@xemacs.org>
5630
5631         * glyphs.c (query_string_geometry): check the string.
5632
5633         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5634         widget names.
5635
5636 2002-06-17  Jerry James  <james@xemacs.org>
5637
5638         * sysdll.c: Remove RTLD_GLOBAL initialization.
5639         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5640
5641 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5642
5643         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5644
5645 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5646
5647         * sysdep.c (sys_rename): Make sys_rename work for the case where
5648         Windows rename sets errno to EACCES if target file exists.
5649
5650 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5651
5652         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5653         Fix detection of metric units to work on Win95
5654
5655 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5656
5657         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5658
5659 2002-04-25  Andy Piper  <andy@xemacs.org>
5660
5661         * redisplay.c (create_text_block): Remove extra comment trailer.
5662
5663 2002-04-24  Andy Piper  <andy@xemacs.org>
5664
5665         * redisplay.c (create_text_block): Don't actually add propagation
5666         data if the line ends after we have added a glyph.
5667
5668 2002-04-22  Andy Piper  <andy@xemacs.org>
5669
5670         * extents.c (extent_fragment_update): check for glyphs we have
5671         previously displayed.
5672         * extents.c (print_extent_1): warning removal.
5673         * extents.h: change prototype.
5674         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5675         widths correctly for wide glyphs.
5676         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5677         * redisplay.c (prop_type): add PROP_GLYPH.
5678         * redisplay.c (struct prop_block): add glyph type
5679         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5680         to the propagation data.
5681         * redisplay.c (create_text_block): if there is a glyph in the
5682         propagation data use it to salt extent_fragment_update.
5683         * redisplay.c (create_string_text_block): ditto.
5684
5685 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5686
5687         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5688         * redisplay-output.c (compare_runes): Compare them.
5689         * redisplay.c: Update copyright date.
5690         * redisplay.c (pos_data): Add need_baseline_computation field.
5691         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5692         need_baseline_computation; zero yoffset. Set max_pixmap_height
5693         for all pixmaps, not just automatically positioned ones.
5694         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5695         * redisplay.c (calculate_baseline): New, compute textual baseline.
5696         * redisplay.c (add_glyph_rune): Call them.
5697         * redisplay.c (create_text_block): Likewise.
5698         * redisplay.c (create_overlay_glyph_block): Likewise.
5699         * redisplay.c (add_margin_runes): Likewise.
5700         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5701
5702         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5703         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5704         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5705         * redisplay-msw.c (mswindows_output_string): Likewise.
5706         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5707         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5708         * redisplay-x.c (x_output_display_block): Likewise.
5709
5710 2002-03-28  Ben Wing  <ben@xemacs.org>
5711
5712         * redisplay.c: Fixed bug in redisplay
5713         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5714         and down of the lines, since they're bigger than the line
5715         size. (It was seen most obviously when there's a horizontal scroll
5716         bar, e.g. do C-h a glyph or something like that.) The problem was
5717         that the glyph-contrib-p setting on glyphs was ignored even if it
5718         was set properly, which it wasn't until now.
5719
5720 2002-04-24  Andy Piper  <andy@xemacs.org>
5721
5722         * lisp.h (Dynarr_end): Fix definition.
5723
5724 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5725
5726         * redisplay.c (mark_redisplay): Remove call to
5727         update_frame_window_mirror.
5728
5729 2001-11-15  Andy Piper  <andy@xemacs.org>
5730
5731         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5732         cygwin (again).
5733
5734 2002-02-13  Andy Piper  <andy@xemacs.org>
5735
5736         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5737         we did in fact enqueue the XM_MAPFRAME event.
5738
5739 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5740
5741         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5742         to fix problem switching between virtual desktops under virtuawin
5743         virtual window manager.
5744
5745 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5746
5747         * event-msw.c: Typo fix.
5748         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5749         magic XM_MAPFRAME event has been sent.
5750
5751 2001-11-23  Andy Piper  <andy@xemacs.org>
5752
5753         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5754
5755 2001-11-21  Andy Piper  <andy@xemacs.org>
5756
5757         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5758         mouse events outside the frame.
5759
5760 2002-03-20  Andy Piper  <andy@xemacs.org>
5761
5762         * menubar-msw.c (mswindows_popup_menu): warning removal.
5763         * dialog-msw.c (dialog_popped_down): ditto.
5764
5765 2001-12-11  Andy Piper  <andy@xemacs.org>
5766
5767         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5768         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5769         popup_up_p.
5770         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5771         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5772         * menubar-msw.c (mswindows_popup_menu): ditto.
5773
5774 2001-10-29  Andy Piper  <andy@xemacs.org>
5775
5776         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5777         cancels.
5778
5779 2002-01-03  Andy Piper  <andy@xemacs.org>
5780
5781         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5782         letters.
5783         (xrealpath): ditto.
5784
5785 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5786
5787         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5788         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5789         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5790         Detect and handle case where machine is set up for metric units
5791
5792 2002-04-02  Andy Piper  <andy@xemacs.org>
5793
5794         * dired-msw.c (mswindows_get_files): 
5795         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5796         completely handled by XEmacs. Suggested by Thomas Vogler
5797         <mail@thomas-vogler.de>.
5798
5799 2001-11-14  Andy Piper  <andy@xemacs.org>
5800
5801         * nt.c (REG_ROOT): change registry key to XEmacs.
5802
5803 2002-04-27  Andy Piper  <andy@xemacs.org>
5804
5805         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5806
5807 2002-04-26  Andy Piper  <andy@xemacs.org>
5808
5809         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5810         behavior.
5811
5812 2002-03-14  Mike Alexander  <mta@arbortext.com>
5813
5814         * event-msw.c (mswindows_unwait_process): New, remove process from
5815         wait list
5816         * process-nt.c (nt_finalize_process_data): Call
5817         mswindows_unwait_process
5818         * console-msw.h: Declare mswindows_unwait_process
5819
5820 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5821
5822         * editfns.c (Fdecode_time):
5823         (Fformat_time_string):
5824         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5825         (make_time): Warning elimination (change arg name).
5826
5827 2001-11-24  Andy Piper  <andy@xemacs.org>
5828
5829         * window.c (Fsplit_window): Doc return type.
5830
5831 2002-04-01  Andy Piper  <andy@xemacs.org>
5832
5833         * emacs.c (Fkill_emacs): Only output message box in interactive
5834         mode.
5835
5836 2002-04-26  Andy Piper  <andy@xemacs.org>
5837  
5838         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5839         cygwin.
5840
5841 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5842
5843         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5844         bit platform.
5845
5846 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5847
5848         * XEmacs 21.4.8 "Honest Recruiter" is released.
5849
5850 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5851
5852         Supersedes 2002-04-17 patch.
5853
5854         * process.h (PROCESS_LIVE_P): Use the process status as
5855         evidence of health, not the state of the input stream.
5856         (PROCESS_READABLE_P): Say if the process is readable
5857         from. (It may be dead nonetheless.)
5858         (CHECK_READABLE_PROCESS): Test for that condition.
5859
5860         * process.c (create_process): Use PROCESS_READABLE_P.
5861         (read_process_output, set_process_filter): Likewise.
5862
5863         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5864         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5865
5866         This code is #if 0'd, this is not the time to add new functions:
5867
5868         * process.c (Fprocess_readable_p): Report readability status.
5869         * process.c (Qprocess_readable_p): New, associated symbol...
5870         * process.c (syms_of_process): ... initialize it.
5871
5872 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5873
5874         * XEmacs 21.4.7 "Economic Science" is released.
5875
5876 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5877
5878         * process.h (PROCESS_LIVE_P): Use the process status as
5879         evidence of health, not the state of the input stream.
5880
5881 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5882
5883         * sysdep.c (sys_siglist): change "signum" to "signal"
5884
5885 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5886
5887         * s/darwin.h: New file.
5888         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5889         
5890 2002-04-23  Andreas Jaeger  <aj@suse.de>
5891
5892         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5893         which use lib64 for 64-bit libs.
5894         (START_FILES): Likewise.
5895
5896 2002-02-11  Mike Sperber  <mike@xemacs.org>
5897
5898         * device-x.c: 
5899         (x_IO_error_handler):
5900         (x_init_device): Temporarily keep device in static variable
5901         `device_being_initialized' so we can recover gracefully from
5902         internal XOpenDevice failure.  (XOpenDevice is documented to
5903         return NULL on failure, but sometimes calls the IO error handler
5904         instead.)
5905
5906 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5907
5908         * dired.c (Ffile_name_all_completions): Change documentation --
5909         remove reference to completion-ignored-extensions.
5910         * dired.c (vars_of_dired): Change documentation for
5911         completion-ignored-extensions -- remove reference to
5912         file-name-all-completions.
5913
5914 2002-03-06  Jerry James  <james@xemacs.org>
5915
5916         * emodules.c (emodules_load): Fix multiple loading of same module.
5917
5918 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5919         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5920         RTLD_LAZY to avoid incorrect symbol binding when using nested
5921         shared libraries on Solaris.
5922
5923 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5924
5925         * fileio.c (Ffind_file_name_handler): Improve docstring.
5926
5927 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5928
5929         * fns.c (Fmapconcat): Improve docstring.
5930
5931 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5932
5933         * device-gtk.c: Add prototype for
5934         emacs_gtk_selection_clear_event_handle.
5935         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5936         selection.  Setup signal handler for "selection_clear_event"
5937         (emacs_gtk_selection_clear_event_handle).
5938
5939         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5940         other applications owning the clipboard (based on
5941         x_handle_selection_clear).
5942
5943 2001-12-23  William M. Perry  <wmperry@gnu.org>
5944
5945         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5946         
5947 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5948
5949         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5950
5951 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5952
5953         * XEmacs 21.4.6 "Common Lisp" is released.
5954
5955 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5956
5957         * search.c (Freplace_match): Add missing sub-expression functionality.
5958
5959         * buffer.c (decode_buffer): Add a check for pointer type to
5960         decode_buffer, before gcc's CSE optimization reorders a
5961         dereference in front of the allow_string test.
5962
5963 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5964
5965         * window.c (window_loop): Fix bug that sometimes prevented
5966         window_loop() from iterating across multiple devices.  Also, at
5967         Ben's request, changed infloop-detecting code to abort() instead
5968         of silently terminating window_loop().
5969
5970 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5971
5972         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5973         * editfns.c (make_time): New function.
5974         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5975         * lisp.h (make_time): Prototype and comment it.
5976         * dired.c (wasteful_word_to_lisp): Deprecate.
5977         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5978
5979 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5980
5981         * fileio.c (auto_save_1): Use current coding system, not
5982         escape-quoted.
5983
5984 2001-11-13  Ben Wing  <ben@xemacs.org>
5985
5986         * window.c:
5987         * window.c (window_truncation_on):
5988         * window.c (syms_of_window):
5989         truncate-partial-width-windows should respect the buffer being
5990         displayed, like other redisplay vars.
5991
5992 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5993
5994         * event-stream.c (Fread_key_sequence): save current buffer.
5995
5996 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5997
5998         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5999
6000 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6001
6002         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6003
6004 2001-10-26  Mike Alexander  <mta@arbortext.com>
6005
6006         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6007
6008 2001-10-25  Andy Piper  <andy@xemacs.org>
6009
6010         * ChangeLog:
6011         * dialog-msw.c (handle_directory_proc): new function.
6012          (handle_directory_dialog_box): new fucntion.
6013          (handle_file_dialog_box): use new directory dialog support.
6014          (mswindows_make_dialog_box_internal): ditto.
6015         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6016         handling.
6017         (mswindows_find_frame): make global.
6018         * fileio.c (Fexpand_file_name): build fix.
6019         * general-slots.h: add Qdirectory.
6020         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6021         handling.
6022         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6023         cygwin not leaving win32 paths unchanged.
6024         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6025         cygwin runtime to do path conversion.
6026         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6027         (syms_of_win32): add new function.
6028         * window.c (window_loop): build fix.
6029
6030 2001-10-15  Andy Piper  <andy@xemacs.org>
6031
6032         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6033
6034 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6035
6036         * XEmacs 21.4.5 "Civil Service" is released.
6037
6038 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6039
6040         * glyphs-x.c: Force buffer-tab highlight update when moving the
6041         buffer, avoiding an ugly black border, used for keyboard focus
6042         indication, on a widget that can never have keyboard focus, the
6043         buffer tab.
6044
6045 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6046
6047         * process-unix.c (unix_open_multicast_group): Remove too much
6048         conversion between host and network byte order.
6049
6050 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6051
6052         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6053         before replacing them.
6054
6055         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6056         operation.
6057
6058         * src/window.c (undedicate_windows): Use it.
6059         * src/window.h: Add prototype.
6060
6061 2001-09-17  Ben Wing  <ben@xemacs.org>
6062
6063         * fileio.c (normalize_filename):
6064         * fileio.c (Fexpand_file_name):
6065         Fix various C++ compile errors in Andy's recent code.
6066         
6067         * callint.c (Fcall_interactively):
6068         * editfns.c (Ftemp_directory):
6069         * editfns.c (Fuser_full_name):
6070         * emacs.c (argmatch):
6071         * lread.c (locate_file_map_suffixes):
6072         * redisplay-x.c (x_ring_bell):
6073         Fix sign-compare warnings.
6074         
6075 2001-09-08  Andy Piper  <andy@xemacs.org>
6076
6077         * fileio.c (normalize_filename): copied from nt.c
6078         * (Ffile_name_directory): enable win32 paths under cygwin.
6079         * (Ffile_name_nondirectory): ditto.
6080         * (directory_file_name): ditto.
6081         * (Fexpand_file_name): ditto.
6082         * (Ffile_truename): ditto.
6083         * (Fsubstitute_in_file_name): ditto.
6084         * (Ffile_name_absolute_p): ditto.
6085         * (Ffile_readable_p): ditto.
6086
6087 2001-09-08  Andy Piper  <andy@xemacs.org>
6088
6089         * device-msw.c (mswindows_finish_init_device): remove dde
6090         initialization.
6091         * device-msw.c (mswindows_init_dde): factor out from
6092         mswindows_finish_init_device()
6093         * device-msw.c (init_mswindows_very_early): new function
6094         initialize but don't enable dde.
6095         * emacs.c (main_1): call init_mswindows_very_early.
6096         * event-msw.c:
6097         * event-msw.c (mswindows_dde_callback): only execute when we are
6098         ready.
6099         * symsinit.h: declare init_mswindows_very_early.
6100
6101 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6102
6103         [sjt: This has been in 21.5 for months with no complaints.]
6104
6105         * console.h (struct console_methods): Added flags member.
6106         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6107         (CONMETH_IMPL_FLAG):
6108         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6109         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6110
6111         * device.c (window_system_pixelated_geometry): Use the above macros.
6112
6113         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6114         implememntation flag.
6115         * device.h (DEVICE_DISPLAY_P): Use it.
6116
6117         * frame.c (delete_frame_internal): Use the above macro.
6118
6119         * redisplay.c (redisplay_device): Use it.
6120         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6121         (redisplay_frame): Ditto.
6122
6123         * device-msw.c (mswindows_device_implementation_flags): Removed.
6124         (msprinter_device_implementation_flags): Removed.
6125         (console_type_create_device_mswindows): Removed references to
6126         implementation_flags methods, set implementation flags here.
6127         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6128
6129         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6130         (console_type_create_device_gtk): Removed method declaration.
6131         Added commented out statement which semantically matches the
6132         commented out statement in the above removed method.
6133
6134 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6135
6136         The attached patch fixes a few warnings. 
6137
6138         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6139         * src/frame-gtk.c: guard against GNOME calls in GTK only
6140         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6141         * src/select-gtk.c: prototype lisp_to_time
6142
6143 2001-06-08  Ben Wing  <ben@xemacs.org>
6144
6145         ------ gc-in-window-procedure fixes ------
6146         
6147         * alloc.c:
6148         * alloc.c (struct post_gc_action):
6149         * alloc.c (register_post_gc_action):
6150         * alloc.c (run_post_gc_actions):
6151         * alloc.c (garbage_collect_1):
6152         Create "post-gc actions", to avoid those dreaded "GC during window
6153         procedure" problems.
6154
6155         * event-msw.c:
6156         Abort, clean and simple, when GC in window procedure.  We want
6157         to flush these puppies out.
6158
6159         * glyphs-msw.c:
6160         * glyphs-msw.c (finalize_destroy_window):
6161         * glyphs-msw.c (mswindows_finalize_image_instance):
6162         Use a post-gc action when destroying subwindows.
6163
6164         * lisp.h:
6165         Declare register_post_gc_action().
6166
6167         * scrollbar-msw.c:
6168         * scrollbar-msw.c (unshow_that_mofo):
6169         Use a post-gc action when unshowing scrollbar windows, if in gc.
6170
6171         * redisplay.c (mark_redisplay):
6172         Add comment about the utter evilness of what's going down here.
6173
6174         ------ cygwin setitimer fixes ------
6175         
6176         * Makefile.in.in (sheap_objs):
6177         * Makefile.in.in (profile_objs):
6178         * Makefile.in.in (objs):
6179         Compile profile.c only when HAVE_SETITIMER.
6180         
6181         * nt.c (mswindows_sigset):
6182         * nt.c (mswindows_sighold):
6183         * nt.c (mswindows_sigrelse):
6184         * nt.c (mswindows_sigpause):
6185         * nt.c (mswindows_raise):
6186         * nt.c (close_file_data):
6187         Style fixes.
6188         
6189         * nt.c:
6190         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6191         
6192         * profile.c:
6193         * profile.c (Fstart_profiling):
6194         * profile.c (Fstop_profiling):
6195         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6196         instead of just plain setitimer().
6197         
6198         * signal.c:
6199         * signal.c (set_one_shot_timer):
6200         * signal.c (alarm):
6201         Define qxe_setitimer() as an encapsulation around setitimer() --
6202         call setitimer() directly unless Cygwin or MS Win, in which case
6203         we use our simulated version in win32.c.
6204         
6205         * systime.h:
6206         * systime.h (struct itimerval):
6207         * systime.h (ITIMER_REAL):
6208         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6209         comment about "qxe" and the policy regarding encapsulation.
6210
6211         * win32.c:
6212         * win32.c (setitimer_helper_proc):
6213         * win32.c (setitimer_helper_period):
6214         * win32.c (setitimer_helper):
6215         * win32.c (mswindows_setitimer):
6216         Move setitimer() emulation here, so Cygwin can use it.
6217         Rename a couple of functions and variables to be longer and more
6218         descriptive.  In setitimer_helper_proc(), send the signal
6219         using either mswindows_raise() or (on Cygwin) kill().  If for
6220         some reason we are still getting lockups, we'll change the kill()
6221         to directly invoke the signal handlers.
6222
6223         ------ windows shell fixes ------
6224         
6225         * callproc.c:
6226         * ntproc.c:
6227         Comments about how these two files must die.
6228
6229         * callproc.c (init_callproc):
6230         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6231         not just COMSPEC. (more correct and closer to FSF.) Don't
6232         force a value for SHELL into the environment. (Comments added
6233         to explain why not.)
6234         
6235         * nt.c (init_user_info):
6236         Don't shove a fabricated SHELL into the environment.  See above.
6237
6238 2001-06-01  Ben Wing  <ben@xemacs.org>
6239
6240         * Makefile.in.in (ldflags):
6241         eliminate that pesky "defaulting to 00401000" warning.
6242         * nt.h:
6243         eliminate warnings.
6244
6245 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6246
6247         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6248         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6249
6250 2001-04-24  Jerry James <james@xemacs.org>
6251
6252         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6253         correct order.
6254
6255 2001-06-01  Ben Wing  <ben@xemacs.org>
6256
6257         * event-msw.c (debug_mswin_messages):
6258         conditionalize the messages that were causing compile errors.
6259         (if only macros could generate #ifdef statements ...)
6260
6261 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6262
6263         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6264
6265 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6266
6267         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6268
6269 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6270
6271         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6272         * process-unix.c (unix_canonicalize_host_name):
6273         sysdep.c (init_system_name):
6274         Use it to conditionally support IPv6 canonicalization.
6275
6276 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6277
6278         * event-msw.c:
6279         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6280
6281 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6282
6283         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6284         attempt is made to scroll when no scroll bar is available.
6285
6286 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6287
6288         * input-method-motif.c (XIM_delete_frame): New callback.
6289         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6290         got deleted from 21.4.3.)
6291
6292 2001-06-01  Ben Wing  <ben@xemacs.org>
6293
6294         * nt.c (mswindows_utime):
6295         * nt.c (close_file_data):
6296         fix off-by-one-indirection error.
6297
6298 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6299
6300         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6301         because set_file_times() now takes Lisp_Object path, instead of
6302         char*.
6303         * nt.c: Include buffer.h.
6304         * nt.c (convert_from_time_t): New.
6305         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6306         not set mtime correctly.
6307         * nt.h: Declare mswindows_utime().
6308         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6309         path, instead of char*.
6310         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6311
6312 2001-05-30  Ben Wing  <ben@xemacs.org>
6313
6314         For 21.4:
6315
6316         (Stephen, just take all event-msw.c patches.  This includes
6317         the "iconify" fix below.)
6318
6319         * event-msw.c:
6320         * event-msw.c (mswindows_dequeue_dispatch_event):
6321         * event-msw.c (assert):
6322         * event-msw.c (emacs_mswindows_quit_p):
6323         * event-msw.c (debug_mswin_messages):
6324         * event-msw.c (debug_output_mswin_message):
6325         * event-msw.c (vars_of_event_mswindows):
6326         Fix yet more problems with C-g handling.
6327         Implement debug-mswindows-events.
6328         
6329 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6330
6331         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6332         
6333 2001-05-23  Ben Wing  <ben@xemacs.org>
6334
6335         * event-msw.c (winsock_writer):
6336         * event-msw.c (winsock_closer):
6337         prior kludgy code was clobbering the buffer, thinking it was
6338         "unused" space to store an unneeded return value; instead, use
6339         the variable we've already got staring us in the face.
6340
6341 2001-05-17  Andy Piper  <andy@xemacs.org>
6342
6343         * sysfile.h: don't assume that file attributes are boolean
6344
6345 2001-05-23  Ben Wing  <ben@xemacs.org>
6346
6347         * device-msw.c (msprinter_init_device):
6348         signal an error rather than crash with an unavailable network
6349         printer (from Mike Alexander).
6350         
6351         * event-msw.c:
6352         * event-msw.c (struct winsock_stream):
6353         * event-msw.c (winsock_writer):
6354         * event-msw.c (winsock_closer):
6355         * event-msw.c (make_winsock_stream_1):
6356         cleanup headers.  fix (hopefully) an error with data corruption
6357         when sending to a network connection.
6358
6359         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6360         to handle the ~user prefix by (a) always assuming we're referencing
6361         ourselves and not even verifying the user -- hence any file with
6362         a tilde as its first char is invalid! (b) if there wasn't a slash
6363         following the filename, the pointer was set *past* the end of
6364         file and we started reading from uninitialized memory.  Now we
6365         simply treat these as files, always.
6366
6367         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6368         
6369 2001-05-19  Ben Wing  <ben@xemacs.org>
6370
6371         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6372
6373         * process-nt.c:
6374         * process-nt.c (vars_of_process_nt):
6375         remove unused mswindows-quote-process-args.  rec for 21.4.
6376         
6377 2001-05-12  Ben Wing  <ben@xemacs.org>
6378
6379         * event-msw.c (mswindows_dde_callback):
6380         * event-msw.c (mswindows_wnd_proc):
6381         eliminate cygwin warnings.
6382
6383 2001-05-06  Ben Wing  <ben@xemacs.org>
6384
6385         * console-msw.h:
6386         * device-msw.c:
6387         * device-msw.c (print_dialog_worker):
6388         * device-msw.c (mswindows_handle_print_dialog_box):
6389         * device-msw.c (syms_of_device_mswindows):
6390         * dialog-msw.c (mswindows_make_dialog_box_internal):
6391         * general-slots.h:
6392         implement printing the selection when it's selected.
6393
6394 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6395
6396         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6397
6398 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6399
6400         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6401         EMACS_INT is signed.
6402
6403 2001-04-15  Michael Lausch  <mla@1012surf.net>
6404
6405         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6406         gtk_widget_request_size() to give scrollbar >0 width for
6407         GTK >1.2.8.
6408
6409 2001-05-30  William M. Perry  <wmperry@gnu.org>
6410
6411         * event-gtk.c: Check for buttons as modifier keys.
6412
6413 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6414
6415         * s\mingw32.h:
6416         Properly find MinGW's <process.h> inside Cygwin's restructured
6417         include directories.  Don't try to include <cygwin/version.h>
6418         since we are dropping support for MinGW in versions of Cygwin
6419         earlier than b21.
6420         * nt.c:
6421         Drop support for MinGW in versions of Cygwin before b21.
6422         * sysdep.c:
6423         Properly find MinGW's <process.h> inside Cygwin's restructured
6424         include directories.
6425         * syswindows.h:
6426         Drop support for MinGW in versions of Cygwin before b21.
6427         * unexcw.c:
6428         Even though a.out.h is no longer detected by configure, allow
6429         MinGW to use it until we figure out how to do the job with Win32.
6430
6431 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6432
6433         * syntax.c (find_start_of_comment):
6434         Fix `unbalanced parentheses' bug when dealing with mixed comment
6435         styles in c++/java/etc. mode
6436
6437 2001-05-29  Mike Alexander  <mta@arbortext.com>
6438
6439         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6440         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6441
6442 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6443
6444         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6445
6446 2001-03-31  Mike Sperber <mike@xemacs.org>
6447
6448         * search.c (Freplace_match): Support FSF-style specification of
6449         match subexpression when applied to a buffer.
6450
6451 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6452
6453         * event-stream.c (is_scrollbar_event): add missing semicolon
6454
6455 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6456
6457         * Makefile.in.in: Use TAR macro instead of hardcoding
6458           tar.  Allows use of GNU tar instead of system tar
6459
6460 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6461
6462         * event-stream.c (is_scrollbar_event): add missing semicolon
6463
6464 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6465
6466         * XEmacs 21.4.3 "Academic Rigor" is released.
6467
6468 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6469
6470         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6471
6472 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6473
6474         * buffer.c (Vcase_fold_search): Remove obsolete
6475           comment about non ASCII case-fold-search.  This
6476           bug has been fixed by case-table changes.
6477
6478 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6479
6480         * event-msw.c: Restore include of events-mod.h.
6481
6482 2001-04-22   zhaoway  <zw@debian.org>
6483
6484         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6485         !HAVE_SCROLLBARS.
6486
6487 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6488
6489         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6490
6491 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6492
6493         * mule-charset.c (Fmake_charset): Add missing else.
6494
6495 2001-04-23  Ben Wing  <ben@xemacs.org>
6496
6497         * event-msw.c (FAKE_MOD_QUIT):
6498         * event-msw.c (mswindows_dequeue_dispatch_event):
6499         * event-msw.c (mswindows_wnd_proc):
6500         * event-msw.c (emacs_mswindows_quit_p):
6501         Get critical quit working.
6502
6503 2001-05-05  Ben Wing  <ben@xemacs.org>
6504
6505         * console-msw.h:
6506         * device-msw.c:
6507         * device-msw.c (mswindows_get_default_margin):
6508         * frame-msw.c (mswindows_size_frame_internal):
6509         * frame-msw.c (msprinter_init_frame_1):
6510         * frame-msw.c (vars_of_frame_mswindows):
6511         Change top/bottom margin defaults to 0.5 inches.
6512
6513 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6514
6515         Fix link error with gcc 3.0 on Linux.
6516         * terminfo.c (UP): Remove.
6517         * terminfo.c (BC): Remove.
6518         * terminfo.c (PC): Remove.
6519         They weren't used, and in any case, these symbols should be
6520         defined in the *library*.
6521
6522 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6523
6524         * s/aix4.h: Fix crash with xlc -O3.
6525         Improve comment explaining how -O3 works.
6526
6527 2001-04-15  Ben Wing  <ben@xemacs.org>
6528
6529         * event-stream.c:
6530         * event-stream.c (Fnext_event):
6531         * event-stream.c (is_scrollbar_event):
6532         * event-stream.c (execute_command_event):
6533         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6534         crash' problem.  His fix introduces other problems.  We filter
6535         out scrollbar events specifically, making them somewhat invisible
6536         to command-building, and not appearing in `this-command-keys'.
6537         More work is still needed (see comments in event-stream.c), but
6538         this fixes all the major problems.
6539
6540 2001-04-20  Ben Wing  <ben@xemacs.org>
6541
6542         * .cvsignore: Added stuff for Windows.
6543
6544 2001-04-28  Ben Wing  <ben@xemacs.org>
6545
6546         * buffer.c (Ferase_buffer):
6547         * editfns.c (buffer_insert1):
6548         * editfns.c (Finsert_before_markers):
6549         * editfns.c (Finsert_string):
6550         * editfns.c (Finsert_char):
6551         * editfns.c (Fdelete_region):
6552         * editfns.c (Fwiden):
6553         * editfns.c (Fnarrow_to_region):
6554         remove bogus lines setting zmacs_region_stays to 0.
6555         
6556 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6557
6558         * process-unix.c (unix_open_network_stream): If connect() fails
6559         invalidate file descriptor after closing it.
6560
6561 2001-03-08  Mike Alexander  <mta@arbortext.com>
6562
6563         * event-msw.c (mswindows_need_event_in_modal_loop):
6564         Don't dispatch a message if we didn't get one.
6565         (mswindows_need_event):
6566         Terminate the correct process when one exits instead of the first
6567         one on Vprocess_list and look for process termination when in
6568         mswindows_protect_modal_loop.
6569
6570 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6571
6572         * XEmacs 21.4.1 "Copyleft" is released.
6573
6574 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6575
6576         * input-method-motif.c (XIM_delete_frame): New callback.
6577         (XIM_init_frame): Register it.
6578
6579 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6580
6581         * XEmacs 21.4.0 "Solid Vapor" is released.
6582
6583 2001-04-15  Ben Wing  <ben@xemacs.org>
6584
6585         * cmdloop.c (call_command_loop):
6586         Fix braino in bit-rotting code.
6587         
6588 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6589
6590         * extents.c (Fset_extent_endpoints): Force creation of extent info
6591         in buffer_or_string.
6592
6593         * extents.c (process_extents_for_insertion_mapper): Correctly
6594         check for open-open zero-length extents.
6595
6596 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6597
6598         * lisp.h: New typedefs Memory_count, Element_count.
6599         * regex.c:
6600         * regex.h:
6601         Sign-compare warning elimination: several unsigned -> signed.
6602         Based on work by Ben Wing <ben@xemacs.org>.
6603
6604 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6605
6606         * XEmacs 21.2.47 "Zephir" is released.
6607
6608 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6609
6610         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6611
6612 2001-04-03  Mike Sperber <mike@xemacs.org>
6613
6614         * search.c: Revert previous patch due because of release.
6615
6616 2001-03-30  Ben Wing  <ben@xemacs.org>
6617
6618         * s\cygwin32.h:
6619         Add missing killpg prototype.
6620
6621         * elhash.c:
6622         Add a comment about fixing problems when a new entry is added
6623         while mapping.
6624
6625         * frame-msw.c (mswindows_init_frame_1):
6626         Fix compile warnings.
6627
6628         * menubar.c (vars_of_menubar):
6629         Provide `menu-accelerator-support' to indicate that we properly
6630         support %_ in menu specifications, so that package code can
6631         conditionalize on this (and remove %_ from menu specifications
6632         on older versions).
6633
6634         * event-msw.c:
6635         * scrollbar-msw.c:
6636         * scrollbar-msw.c (can_scroll):
6637         * scrollbar-msw.h:
6638         Fix handling of mouse wheel under Windows to follow standards --
6639         now scrolls window under pointer, not selected window.
6640
6641 2001-03-31  Mike Sperber <mike@xemacs.org>
6642
6643         * search.c (Freplace_match): Support FSF-style specification of
6644         match subexpression when applied to a buffer.
6645
6646 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6647
6648         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6649         function to modify KEYMAP, so map over a copy of the hash table.
6650
6651 2001-03-21  Martin Buchholz <martin@xemacs.org>
6652
6653         * XEmacs 21.2.46 "Urania" is released.
6654
6655 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6656
6657         * realpath.c (xrealpath): Make file-truename work with symlinks to
6658         /cygdrive paths on cygwin. Always lowercase drive-letters on
6659         native windows.
6660         (cygwin_readlink): Don't try to find canonical filename unless
6661         file exists.
6662
6663 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6664
6665         * ChangeLog: Log GTK merge.
6666
6667         * dumper.c:
6668         * select-x.c:
6669         * specifier.c:
6670         * symeval.h:
6671         Revert gratuitous whitespace changes from GTK merge.
6672
6673         * emacs.c: Document end of complex #ifdef @ l. 1495.
6674
6675
6676 2001-03-12  Andy Piper  <andy@xemacs.org>
6677
6678         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6679         have to do likewise.
6680
6681 2001-03-12  Andy Piper  <andy@xemacs.org>
6682
6683         * sysdep.c: we only support mingw now.
6684
6685 2001-03-09  Andy Piper  <andy@xemacs.org>
6686
6687         * unexcw.c (copy_executable_and_dump_data_section): making approx
6688         overrun a warning only.
6689
6690 2001-03-10  William M. Perry  <wmperry@aventail.com>
6691
6692         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6693         satisfy Stephen's identical-after-cpp plea.
6694
6695 2001-03-02  Ben Wing  <ben@xemacs.org>
6696
6697         * cmds.c:
6698         * cmds.c (Fforward_char):
6699         * syntax.c:
6700         * window.c:
6701
6702         Augment documentation of the most common motion commands to make
6703         note of the shifted-motion support.
6704         
6705 2001-03-02  Ben Wing  <ben@xemacs.org>
6706
6707         * nt.c (mswindows_fstat):
6708         * nt.c (mswindows_stat):
6709         * search.c (boyer_moore):
6710         Fix compile warnings under Windows.
6711         
6712         * sysdep.c (sys_readdir):
6713         Fix buggy filename-conversion code under Mule.
6714
6715 2001-03-09  William M. Perry  <wmperry@aventail.com>
6716
6717         * Makefile.in.in:
6718         * config.h.in:
6719         * console.c:
6720         * console.h:
6721         * device.c:
6722         * device.h:
6723         * dragdrop.c:
6724         * emacs.c:
6725         * event-stream.c:
6726         * events.c:
6727         * events.h:
6728         * faces.c:
6729         * frame.h:
6730         * general-slots.h:
6731         * glyphs.c:
6732         * gutter.c:
6733         * inline.c:
6734         * lisp.h:
6735         * lrecord.h:
6736         * make-src-depend:
6737         * redisplay-output.c:
6738         * redisplay.c:
6739         * symsinit.h:
6740         * sysfile.h:
6741         * toolbar.c:
6742         * window.c:
6743         The Great GTK Merge.
6744
6745         * ChangeLog.GTK:
6746         * console-gtk.c:
6747         * console-gtk.h:
6748         * device-gtk.c:
6749         * emacs-marshals.c:
6750         * emacs-widget-accessors.c:
6751         * event-gtk.c:
6752         * frame-gtk.c:
6753         * gccache-gtk.c:
6754         * gccache-gtk.h:
6755         * glade.c:
6756         * glyphs-gtk.c:
6757         * glyphs-gtk.h:
6758         * gtk-glue.c:
6759         * gtk-xemacs.c:
6760         * gtk-xemacs.h:
6761         * gui-gtk.c:
6762         * gui-gtk.h:
6763         * menubar-gtk.c:
6764         * native-gtk-toolbar.c:
6765         * objects-gtk.c:
6766         * objects-gtk.h:
6767         * redisplay-gtk.c:
6768         * scrollbar-gtk.c:
6769         * scrollbar-gtk.h:
6770         * select-gtk.c:
6771         * toolbar-gtk.c:
6772         * ui-byhand.c:
6773         * ui-gtk.c:
6774         * ui-gtk.h:
6775         The Great GTK Merge: new files.
6776
6777 2001-02-26  Ben Wing  <ben@xemacs.org>
6778
6779         Reapplied Lstream change.
6780
6781 2001-02-26  Ben Wing  <ben@xemacs.org>
6782
6783         Undid the last change, since it is more controversial than I
6784         thought.  It should be back in at some point soon.
6785         
6786 2001-02-25  Ben Wing  <ben@xemacs.org>
6787
6788         * buffer.c:
6789         * callproc.c (Fold_call_process_internal):
6790         * event-msw.c (ntpipe_slurp_reader):
6791         * event-msw.c (ntpipe_shove_writer):
6792         * event-msw.c (winsock_reader):
6793         * event-msw.c (winsock_writer):
6794         * file-coding.c:
6795         * file-coding.c (detect_eol_type):
6796         * file-coding.c (detect_coding_type):
6797         * file-coding.c (determine_real_coding_system):
6798         * file-coding.c (Fdetect_coding_region):
6799         * file-coding.c (decoding_reader):
6800         * file-coding.c (decoding_writer):
6801         * file-coding.c (mule_decode):
6802         * file-coding.c (Fdecode_coding_region):
6803         * file-coding.c (encoding_reader):
6804         * file-coding.c (encoding_writer):
6805         * file-coding.c (mule_encode):
6806         * file-coding.c (Fencode_coding_region):
6807         * file-coding.c (detect_coding_sjis):
6808         * file-coding.c (decode_coding_sjis):
6809         * file-coding.c (encode_coding_sjis):
6810         * file-coding.c (detect_coding_big5):
6811         * file-coding.c (decode_coding_big5):
6812         * file-coding.c (encode_coding_big5):
6813         * file-coding.c (detect_coding_ucs4):
6814         * file-coding.c (decode_coding_ucs4):
6815         * file-coding.c (encode_coding_ucs4):
6816         * file-coding.c (detect_coding_utf8):
6817         * file-coding.c (decode_coding_utf8):
6818         * file-coding.c (encode_coding_utf8):
6819         * file-coding.c (detect_coding_iso2022):
6820         * file-coding.c (decode_coding_iso2022):
6821         * file-coding.c (encode_coding_iso2022):
6822         * file-coding.c (decode_coding_no_conversion):
6823         * file-coding.c (encode_coding_no_conversion):
6824         * glyphs-x.c (write_lisp_string_to_temp_file):
6825         * gpmevent.c (tty_get_foreign_selection):
6826         * lisp.h:
6827         * lstream.c:
6828         * lstream.c (Lstream_flush_out):
6829         * lstream.c (Lstream_adding):
6830         * lstream.c (Lstream_write_1):
6831         * lstream.c (Lstream_write):
6832         * lstream.c (Lstream_raw_read):
6833         * lstream.c (Lstream_read_more):
6834         * lstream.c (Lstream_read):
6835         * lstream.c (Lstream_unread):
6836         * lstream.c (Lstream_fputc):
6837         * lstream.c (stdio_reader):
6838         * lstream.c (stdio_writer):
6839         * lstream.c (filedesc_reader):
6840         * lstream.c (filedesc_writer):
6841         * lstream.c (lisp_string_reader):
6842         * lstream.c (struct fixed_buffer_stream):
6843         * lstream.c (make_fixed_buffer_input_stream):
6844         * lstream.c (make_fixed_buffer_output_stream):
6845         * lstream.c (fixed_buffer_reader):
6846         * lstream.c (fixed_buffer_writer):
6847         * lstream.c (struct resizing_buffer_stream):
6848         * lstream.c (resizing_buffer_writer):
6849         * lstream.c (dynarr_writer):
6850         * lstream.c (lisp_buffer_reader):
6851         * lstream.c (lisp_buffer_writer):
6852         * lstream.h:
6853         * lstream.h (lstream_implementation):
6854         * lstream.h (struct lstream):
6855         * md5.c (Fmd5):
6856         * process-nt.c (nt_send_process):
6857         * process-unix.c (unix_send_process):
6858         
6859         Correct Lstream lossage due to mixing of signed and unsigned
6860         quantities.  All Lstream uses of size_t and ssize_t are now a
6861         single signed data type Lstream_data_count.  This fixes problems
6862         under Windows with sending large quantities of data to a process,
6863         and may well fix other subtle bugs.
6864
6865 2001-02-23  Martin Buchholz <martin@xemacs.org>
6866
6867         * XEmacs 21.2.45 "Thelxepeia" is released.
6868
6869 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6870
6871         * lisp-union.h (XSETINT): 
6872         (XSETCHAR):
6873         (XSETOBJ): 
6874         Reverse previous change of 2001-02-06.
6875
6876 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6877
6878         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6879         buffers.
6880         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6881         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6882         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6883         * regex.c (POS_AS_IN_BUFFER): removed
6884         * regex.c (re_search_2):
6885         * regex.c (re_match_2):
6886         Don't use an offset of 1 when calculating buffer positions, since
6887         `BI_BUF_BEGV' does it already.
6888
6889 2001-02-18  Wim Dumon  <wim@easics.be>
6890
6891         * insdel.c (prepare_to_modify_buffer): Also check for
6892         supersession when clash-detection is enabled. 
6893
6894 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6895
6896         * regex.c (re_match_2_internal):
6897         Convert temp characters from 'const unsigned char' to 're_char'.
6898         Fix crashing bug with extended characters under mule.
6899         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6900         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6901         font-lock, pdump, and new syntax-table code.
6902         * syntax.c (find_start_of_comment):
6903         (find_end_of_comment):
6904         (forward-comment):
6905         Fix crashing bugs involving moving beyond end of buffer.
6906         * syntax.c (find_start_of_comment):
6907         Fixed logic to allow proper detection of cases where the same
6908         character is used to end both a two-char comment start and a
6909         two-char comment end sequence. Fixes `(forward-comment -1)'.
6910         * syntax.c (find_start_of_comment):
6911         Return position just past last comment-end character for all cases
6912         (previously was only done for two-char comment-end sequences).
6913         * syntax.c (forward-comment):
6914         Take value returned from `find_end_of_comment', rather than
6915         incrementing it.
6916         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6917         Properly deal with BUFFERP (syntax_cache.object)
6918
6919 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6920
6921         * alloc.c (Fgarbage_collect): 
6922         * alloc.c (make_bit_vector_from_byte_vector):
6923         -Wsign-compare-correctness.
6924
6925 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6926
6927         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6928         (XSETCHAR): Likewise.
6929         (XSETOBJ): Likewise.
6930
6931 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6932
6933         * mule-canna.c (canna-func-delete_previous): 
6934         Rename to canna-func-delete-previous.
6935
6936 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6937
6938         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6939
6940 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6941
6942         * font-lock.c (find_context): Fix C++ compile errors introduced by
6943         recent patch
6944
6945 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6946
6947         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6948         pragma, but earlier ones barf on the same pragma.
6949
6950 2001-02-06  Mike Sperber <mike@xemacs.org>
6951
6952         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6953         `configure-mule-lisp-directory'.
6954
6955 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6956
6957         Make sure dump-id.c is compiled in the same way as other .c's.
6958         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6959         * dump-id.h: Remove.
6960         * emacs.c: Move dump-id.h into dumper.h.
6961         * dumper.h: Move dump-id.h into dumper.h.
6962         * Makefile.in.in:
6963         Use standard .c.o rule for building dump-id.o.
6964         Remove preprocessor flags from link command.
6965         Add dump-id.o to ${otherobjs} if PDUMP.
6966
6967 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6968
6969         Port FSF 20.7 syntax table improvements.
6970         * syntax.c.
6971         * syntax.h.
6972
6973         Fixups for new syntax table stuff.
6974         * dired.c: Include syntax.c.
6975         (Fdirectory_files): Initialize regex_match_object and
6976         regex_emacs_buffer.
6977         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6978         and Fget_char_property.
6979
6980         Use ported FSF 20.7 syntax table improvements.
6981         * font-lock.c.
6982         * regex.c.
6983         * search.c.
6984         
6985 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6986
6987         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6988         Unixware's enum boolean from sys/types.h.
6989
6990 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6991
6992         Fix support for building with latest Purify.
6993         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6994         (PURIFY_FLAGS): Likewise.
6995
6996 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6997
6998         * fileio.c (lisp_string_set_file_times): New.
6999         * fileio.c (Fcopy_file): Use it.
7000         Fixes bug:
7001         (copy-file filename non-ascii-filename t t)
7002         ==> No such file or directory, non-ascii-filename
7003
7004 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7005
7006         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7007         USHRT_MAX seems clearer than ~0 anyways.
7008
7009 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7010
7011         dumper improvements.  Inspired by Olivier.
7012         * dumper.c (pdump_max_align): New.
7013         * dumper.c (pdump_add_entry): Use pdump_max_align.
7014         * dumper.c (pdump_get_entry_list): Likewise.
7015         * dumper.c (pdump_scan_by_alignment): Likewise.
7016         Don't iterate through unnecessary alignments.
7017         * dumper.c (pdump_file_get): No need to align result of malloc().
7018         * dumper.c (pdump_mallocadr): Remove.  
7019         The result of malloc() is guaranteed to be maximally aligned.
7020         * dumper.c: s/elmt/elt/g;
7021         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7022         * dumper.c (pdump_alert_undump_object): Likewise.
7023         * dumper.c (pdump_align_table): 
7024         Don't support alignments > 64.
7025         Store ALIGNOF's, not shift counts, in table.
7026
7027 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7028
7029         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7030         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7031         * systime.h: Use HAVE_UTIME.
7032         * sysdep.c (struct utimbuf): Remove.
7033         * sysdep.c (set_file_times): Prefer utime() to utimes().
7034         * config.h.in (HAVE_UTIME): New.
7035         * config.h.in (HAVE_UTIME_H): Remove.
7036         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7037
7038 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7039
7040         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7041
7042 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7043
7044         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7045
7046 2001-02-08  Martin Buchholz <martin@xemacs.org>
7047
7048         * XEmacs 21.2.44 "Thalia" is released.
7049
7050 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7051
7052         Fixes crashes in kill-emacs on some systems.
7053         * process-unix.c (unix_kill_child_process):
7054         It's OK for kill() to fail with ESRCH.
7055
7056 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7057
7058         Contortions to make .gdbinit tricks work on most systems.
7059         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7060         * alloc.c (dbg_valmask): Make non-const.
7061         * alloc.c (dbg_typemask): Make non-const.
7062         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7063         * alloc.c (dbg_valbits): Make non-const.
7064         * alloc.c (dbg_gctypebits): Make non-const.
7065         * .gdbinit (decode_object): Make it work with AIX cc.
7066
7067 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7068
7069         * elhash.c (make_general_lisp_hash_table):
7070         Use simpler and more efficient calloc to clear entries.
7071
7072 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7073
7074         * window.c (window_scroll): Work around an AIX C compiler bug.
7075         Fixes 'scroll-up' does nothing problem with xlC.
7076
7077 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7078
7079         * .gdbinit: Remove obsolete comment.
7080
7081 2001-01-31  Mike Alexander  <mta@arbortext.com>
7082
7083         * select.c (Fown_selection_internal): Set owned_p for device
7084         method correctly.
7085
7086 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7087
7088         Port to g++ 2.97.
7089         "not" cannot be used as a macro name as it is an operator in C++
7090         * config.h.in: Stop #defining `not'.
7091         * chartab.c (check_category_char): not ==> not_p
7092         * chartab.h: Likewise.
7093         * regex.c (re_match_2_internal): Likewise.
7094
7095 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7096
7097         * lisp-disunion.h: Fix up comments.
7098
7099 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7100
7101         * keymap.c (define_key_check_and_coerce_keysym):
7102         (syms_of_keymap):
7103         Support mouse-6 and mouse-7 bindings in the obvious way.
7104
7105 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7106
7107         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7108
7109 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7110
7111         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7112         Previous patch missed DEFVAR_INT_MAGIC.
7113         Make sure future DEFVAR_foo use correct types.
7114         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7115         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7116         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7117         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7118         * (DEFVAR_INT): Likewise.
7119         * redisplay.c (vertical_clip): Should be of type Fixnum.
7120         * redisplay.c (horizontal_clip): Likewise.
7121         * lisp.h (dump_add_opaque_int): New.
7122         (dump_add_opaque_fixnum): New.
7123
7124 2001-01-29  Andy Piper  <andy@xemacs.org>
7125
7126         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7127         since they can be eval'ed
7128
7129 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7130
7131         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7132         Oops, XEmacs redefines `class'.  Use `typename' instead.
7133
7134 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7135
7136         * dumper.c: Fix C++ compile errors.
7137
7138 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7139
7140         * tparam.c: Use correct prototypes.
7141
7142 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7143
7144         * sysproc.h: #include util.h for NetBSD's openpty.
7145
7146 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7147
7148         More 64-bit correctness.
7149         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7150         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7151         Fix up comments.
7152         This finally finishes the 64-bit SGI port.
7153         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7154         * symbols.c: Fix up comments and type casts.
7155         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7156         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7157         * symeval.h (Fixnum): New type.
7158         * symeval.h (symbol_value_type): Fix up comment.
7159
7160         * commands.h:
7161         * nt.c:
7162         * emacs.c:
7163         * data.c:
7164         * redisplay.c:
7165         * abbrev.c:
7166         * dired-msw.c:
7167         * event-Xt.c:
7168         * eldap.c:
7169         * window.c:
7170         * sound.c:
7171         * event-stream.c:
7172         * eval.c:
7173         * buffer.c:
7174         * mule-canna.c: A million DEFVAR_INTs here...
7175         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7176         * extents.c:
7177         * cmdloop.c:
7178         * lisp.h:
7179         * select-x.c:
7180         * console-x.h:
7181         * event-msw.c:
7182         * mule-wnnfns.c:
7183         * hpplay.c:
7184         * ralloc.c:
7185         * alloc.c:
7186         * keymap.c:
7187         * profile.c:
7188         s/int/Fixnum/g in DEFVAR_INT declarations.
7189
7190 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7191
7192         Port pdump to SGI alignment-sensitive environment.
7193         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7194         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7195         properly aligned.
7196         Define and use aligned reading and writing macros.
7197         Use buffered stdio instead of posix i/o for faster dumping.
7198         Eliminate kludgy 256 byte space for header.
7199         Read and write from dump file using structs for alignment safety.
7200         * dumper.c (pdump_align_stream): New.
7201         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7202         * dumper.c (PDUMP_READ_ALIGNED): New.
7203         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7204         * dumper.c (pdump_static_Lisp_Object): New struct.
7205         * dumper.c (pdump_static_pointer): New struct.
7206         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7207         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7208         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7209         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7210
7211         * dumper.c (pdump_backtrace):
7212         * dumper.c (pdump_get_indirect_count):
7213         * dumper.c (pdump_register_object):
7214         * dumper.c (pdump_register_struct):
7215         * dumper.c (pdump_reloc_one):
7216         * dumper.c (pdump_scan_by_alignment):
7217         * dumper.c (pdump_dump_from_root_struct_ptrs):
7218         * dumper.c (pdump_dump_opaques):
7219         * dumper.c (pdump_dump_rtables):
7220         * dumper.c (pdump_dump_from_root_objects):
7221         * dumper.c (pdump):
7222         * dumper.c (pdump_load_finish):
7223         Use aligned reading and writing.
7224
7225         * dumper.c (pdump_free): Make static.
7226         * dumper.c (pdump_hFile): Likewise.
7227         * dumper.c (pdump_hMap): Likewise.
7228
7229 2001-01-26  Martin Buchholz <martin@xemacs.org>
7230
7231         * XEmacs 21.2.43 "Terspichore" is released.
7232
7233 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7234
7235         Type fiddling for window_config.saved_windows_count
7236         * window.c (struct window_config): 
7237         Make saved_windows_count member unsigned.
7238         * window.c (sizeof_window_config_for_n_windows): 
7239         Make parameter unsigned.
7240         * window.c (mark_window_config):
7241         * window.c (window_config_equal):
7242         * window.c (free_window_configuration):
7243         * window.c (Fset_window_configuration):
7244         * window.c (count_windows):
7245         * window.c (Fcurrent_window_configuration):
7246         * window.c (reinit_vars_of_window):
7247         Update all callers and users.
7248
7249 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7250
7251         Alignment correctness for flexible arrays.
7252         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7253         Make alignment-correct. Add interesting comments.
7254         * alloc.c (size_vector):
7255         * alloc.c (make_vector_internal):
7256         * alloc.c (make_bit_vector_internal):
7257         * alloc.c (sweep_bit_vectors_1):
7258         * fns.c (size_bit_vector):
7259         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7260         * window.c (sizeof_window_config_for_n_windows): 
7261         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7262
7263 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7264
7265         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7266
7267 2001-01-23  Andy Piper  <andy@xemacs.org>
7268
7269         * select.c (Fown_selection_internal): pass owned_p
7270
7271         * select-msw.c (mswindows_own_selection): New Signature.
7272
7273         * console.h (struct console_methods): add owned_p to
7274         _own_selection.
7275
7276         * select-x.c (x_own_selection): pass owned_p
7277         (hack_motif_clipboard_selection): use owned_p
7278         (vars_of_select_x): new variable -
7279         x_selection_strict_motif_ownership.
7280
7281 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7282
7283         * specifier.h (specifier_data_offset): Remove pointless parens.
7284         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7285
7286 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7287
7288         Make Lisp_Object sizeof methods be alignment-correct.
7289         pdump must restore objects to the same alignment as the C compiler
7290         assumes.  It really matters on SGIs.
7291         * lstream.c (aligned_sizeof_lstream): New.
7292         (sizeof_lstream): Use aligned_sizeof_lstream.
7293         (Lstream_new): Likewise.
7294         * opaque.c (aligned_sizeof_opaque): New.
7295         (sizeof_opaque): Use aligned_sizeof_opaque.
7296         (make_opaque): Likewise.
7297         * specifier.c (aligned_sizeof_specifier): New.
7298         (sizeof_specifier): Use aligned_sizeof_specifier.
7299         (make_specifier_internal): Likewise.
7300
7301 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7302
7303         * lstream.h (struct lstream): Use max_align_t for trailing data.
7304         * specifier.h (struct Lisp_Specifier): Likewise.
7305
7306 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7307
7308         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7309         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7310         (CCL_SUSPEND): Likewise.
7311         (CCL_INVALID_CMD): Likewise.
7312         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7313         (ccl_driver): Likewise.
7314         (CCL_WRITE_CHAR): Macro hygiene.
7315         (CCL_WRITE_STRING): Macro hygiene.
7316
7317 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7318
7319         Port "portable" dumper to SunOS 4 and HP-UX.
7320         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7321         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7322         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7323
7324 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7325
7326         * lisp.h (ALIGNOF): A better definition for C++.
7327
7328 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7329
7330         Macro hygiene.
7331         Fix printf warnings: int format, long int arg.
7332         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7333         (PUSH_FAILURE_POINT): Use correct printf formats.
7334         (POP_FAILURE_POINT): Use correct printf formats.  
7335         Use do {...} while (0)
7336
7337 2001-01-20  Martin Buchholz <martin@xemacs.org>
7338
7339         * XEmacs 21.2.42 "Poseidon" is released.
7340
7341 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7342
7343         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7344
7345 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7346
7347         De-kludgify FIXED_TYPE free list frobbing.
7348         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7349         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7350         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7351         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7352         * alloc.c (LRECORD_FREE_P): New.
7353         * alloc.c (MARK_LRECORD_AS_FREE): New.
7354         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7355         * alloc.c (STRUCT_FREE_P): Deleted.
7356         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7357         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7358         * alloc.c (STRING_CHARS_FREE_P): New.
7359         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7360         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7361         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7362         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7363         * alloc.c (resize_string): Use new definitions.
7364         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7365         * alloc.c (verify_string_chars_integrity): Use new definitions.
7366         * alloc.c (compact_string_chars): Use new definitions.
7367         * alloc.c: Update monster comments.
7368         * lrecord.h (lrecord_type): Add some new lrecord types for
7369         alloc.c's use.
7370
7371 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7372
7373         Improve alignment hackery.
7374         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7375         (max_align_t): Moved from opaque.h - general purpose.
7376         (ALIGN_PTR): Use size_t, not long.
7377         * opaque.h (max_align_t): Move to lisp.h.
7378
7379 2001-01-18  Norbert Koch  <nk@LF.net>
7380
7381         * gui.h: Fix and add prototypes to fix build problems.
7382
7383 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7384
7385         temacs is going away, so `dump-temacs' is now a bad name.
7386         * .dbxrc (dump-temacs): Rename to `dmp'.
7387         * .gdbinit (dump-temacs): Rename to `dmp'.
7388
7389 2001-01-17  Andy Piper  <andy@xemacs.org>
7390
7391         * glyphs.c (print_image_instance): comment to make martin happy.
7392
7393         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7394         change.
7395
7396         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7397         activation.
7398         (mswindows_tab_control_redisplay): warning suppression.
7399
7400         * glyphs-widget.c (widget_update): re-write to cope with updated
7401         items.
7402         (widget_instantiate): use new gui_item functions.
7403         (tab_control_update): deleted.
7404         (progress_gauge_update): deleted.
7405         (image_instantiator_progress_guage): take out update reference.
7406         (image_instantiator_tree_view): ditto.
7407         (image_instantiator_tab_control): ditto.
7408
7409         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7410         Right the new way.
7411         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7412         return whether anything was changed.
7413         (update_gui_item_keywords): as it sounds.
7414
7415         * gui.h: declare widget_gui_parse_item_keywords.
7416
7417         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7418         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7419
7420 2001-01-17  Martin Buchholz <martin@xemacs.org>
7421
7422         * XEmacs 21.2.41 "Polyhymnia" is released.
7423
7424 2001-01-16  Didier Verna  <didier@xemacs.org>
7425
7426         * glyphs.c (image_instantiate): don't use fallbacks when
7427         instantiating a face's background pixmap by inheritance.
7428
7429 2001-01-14  Mike Sperber <mike@xemacs.org>
7430
7431         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7432         Conditionalize accordingly.
7433
7434 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7435
7436         * dumper.c (pdump_file_get): Fix a compiler warning.
7437
7438 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7439
7440         Make Purify happy when pdumping.
7441         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7442         iniitalizing all bits of new lisp object memory.
7443         * symbols.c (Fmake_local_variable): Likewise.
7444         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7445         * symbols.c (Fdefvaralias): Likewise.
7446         * mule-charset.c (vars_of_mule_charset): Likewise.
7447
7448 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7449         Add the `-nd' flag when running pre-dump operations under the debugger.
7450         * .dbxrc (run-temacs): Add `-nd'.
7451         * .dbxrc (update-elc): Likewise.
7452         * .dbxrc (dump-temacs): Likewise.
7453         * .gdbinit (run-temacs): Likewise.
7454         * .gdbinit (check-temacs): Likewise.
7455         * .gdbinit (update-elc): Likewise.
7456         * .gdbinit (dump-temacs): Likewise.
7457
7458 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7459
7460         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7461         export OBJECT_MODE=64
7462         configure --pdump --use-union-type=no
7463         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7464         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7465
7466         * miscplay.c (sndcnv8U_2mono):
7467         Avoid two uses of `++' in the same expression.
7468         Suppresses a GCC warning.
7469
7470 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7471
7472         Make sure future compilers don't miscompile alloc.c.
7473         * alloc.c:
7474         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7475         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7476
7477 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7478
7479         * dumper.c: A little post-pdump-rename comment fixup.
7480
7481 2001-01-09  Jerry James  <james@eecs.ku.edu>
7482
7483         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7484
7485 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7486
7487         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7488         script:
7489         #!/bin/sh
7490         replace_symbol () {
7491           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7492         }
7493
7494         replace_symbol pdump_wire_lists pdump_weak_object_chains
7495         replace_symbol pdump_wire_list dump_add_weak_object_chain
7496
7497         replace_symbol pdump_wires pdump_root_objects
7498         replace_symbol pdump_wire dump_add_root_object
7499
7500         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7501         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7502
7503         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7504         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7505         replace_symbol dumpstructinfo pdump_root_struct_ptr
7506         replace_symbol dumpstruct dump_add_root_struct_ptr
7507
7508         replace_symbol dumpopaque dump_add_opaque
7509         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7510         replace_symbol dumpopaqueinfos pdump_opaques
7511         replace_symbol dumpopaqueinfo pdump_opaque
7512
7513         replace_symbol nb_structdump nb_root_struct_ptrs
7514         replace_symbol nb_opaquedump nb_opaques
7515
7516         replace_symbol align_table pdump_align_table
7517         replace_symbol dump_header pdump_header
7518
7519         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7520         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7521
7522
7523 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7524
7525         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7526         optimizing bytecount_to_charcount().
7527
7528 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7529
7530         * config.h.in:
7531         (HAVE_DLFCN_H): Removed.
7532         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7533
7534 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7535
7536         Portable dumper maintainability improvements.
7537         * alloc.c (staticpro):
7538         * alloc.c (staticpro_nodump):
7539         * alloc.c (garbage_collect_1):
7540         * alloc.c (reinit_alloc_once_early):
7541         * alloc.c (init_alloc_once_early):
7542         * alloc.c: Move dumper functions to alloc.c.
7543         * dumper.c (pdump_backtrace):
7544         * dumper.c (pdump_dump_structs):
7545         * dumper.c (pdump_dump_opaques):
7546         * dumper.c (pdump_dump_rtables):
7547         * dumper.c (pdump_dump_wired):
7548         * dumper.c (pdump):
7549         * dumper.c (pdump_load_check):
7550         * dumper.c (pdump_load_finish):
7551         * dumper.c (pdump_file_unmap):
7552         * dumper.c (pdump_file_get):
7553         * dumper.c (pdump_resource_free):
7554         * dumper.c (pdump_resource_get):
7555         * dumper.c (pdump_file_free):
7556         * dumper.c (pdump_file_try):
7557         * dumper.c (pdump_load):
7558         Remove fixed size limits on staticpro(), staticpro_nodump(),
7559         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7560         Remove custom code for dumping lrecord_implementations_table - use
7561         dumpopaque instead.
7562         Remove (most of the) custom code for dumping staticpros - dump it
7563         like any other dynarr.
7564
7565         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7566         * dumper.c: Moved functions from alloc.c.
7567         * alloc.c (dumpstruct): Moved to dumper.c.
7568         * alloc.c (dumpopaque): Likewise.
7569         * alloc.c (pdump_wire): Likewise.
7570         * alloc.c (pdump_wire_list): Likewise.
7571
7572         * lisp.h (Dynarr_sizeof): New.
7573         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7574         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7575         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7576
7577         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7578         * lisp.h (dumpopaque): ditto.
7579         * lisp.h (pdump_wire): ditto.
7580         * lisp.h (pdump_wire_list): ditto.
7581
7582 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7583
7584         * make-src-depend (PrintPatternDeps):
7585         Use `sort' to make output independent of perl version.
7586
7587 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7588
7589         Port to Netbsd 1.5.
7590         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7591         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7592
7593 2001-01-03  Didier Verna  <didier@xemacs.org>
7594
7595         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7596         that `focus_frame' is alive before thinking of calling
7597         `redisplay_redraw_cursor' on it.
7598
7599 2001-01-08  Martin Buchholz <martin@xemacs.org>
7600
7601         * XEmacs 21.2.40 is released.
7602
7603 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7604
7605         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7606
7607 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7608
7609         * alloc.c (dbg_valmask): Make const.
7610         * alloc.c (dbg_typemask): Make const.
7611         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7612         * alloc.c (dbg_valbits): Make const.
7613         * alloc.c (dbg_gctypebits): Make const.
7614
7615 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7616
7617         * redisplay-x.c (x_bevel_area):
7618         redisplay.h (struct rune):
7619         Typo fixes in comments.
7620
7621 2001-01-05  Andy Piper  <andy@xemacs.org>
7622
7623         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7624         adjustment.
7625
7626         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7627
7628 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7629
7630         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7631
7632         * mule-ccl.c (stack_idx_of_map_multiple):
7633         Non const global data must not be initialized!
7634         Found by MIYASHITA Hisashi.
7635
7636 2001-01-02  Andy Piper  <andy@xemacs.org>
7637
7638         * frame.c (change_frame_size): make sure frame size is always
7639         marked as changed.
7640
7641         * glyphs.c (image_instance_layout): minor code reuse.
7642
7643         * window.c (Fcurrent_window_configuration): revert previous
7644         change.
7645
7646 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7647
7648         * glyphs.h:
7649         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7650
7651 2000-12-31  Andy Piper  <andy@xemacs.org>
7652
7653         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7654         when widget gets unmapped.
7655
7656         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7657         function. Make sure widgets losing focus don't just drop it.
7658         (handle_focus_event_1): record the widget with focus.
7659
7660 2000-12-31  Andy Piper  <andy@xemacs.org>
7661
7662         * window.c (allocate_window): use
7663         make_image_instance_cache_hash_table.
7664         (make_dummy_parent): ditto.
7665         (Fset_window_configuration): ditto.
7666
7667         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7668
7669         * glyphs.c (process_image_string_instantiator): use
7670         INSTANTIATOR_TYPE.
7671         (get_image_instantiator_governing_domain): ditto.
7672         (normalize_image_instantiator): ditto.
7673         (instantiate_image_instantiator): ditto.
7674         (make_image_instance_1): ditto.
7675         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7676         (instantiator_eq_equal): new function for use with instance hash
7677         tables.
7678         (instantiator_eq_hash): ditto.
7679         (make_image_instance_cache_hash_table): create a suitable hash
7680         table for storing image instances.
7681
7682         * elhash.h (hash_table_weakness): new internal weakness type
7683         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7684         declare new functions.
7685
7686         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7687         another weakness type for glyphs.
7688         (make_standard_lisp_hash_table): new function split out from
7689         make_general_lisp_hash_table.
7690         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7691         (hash_table_instantiate): ditto.
7692         (Fmake_hash_table): ditto.
7693
7694 2000-12-31  Martin Buchholz <martin@xemacs.org>
7695
7696         * XEmacs 21.2.39 is released.
7697
7698 2000-12-29  Andy Piper  <andy@xemacs.org>
7699
7700         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7701
7702         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7703         the frame has changed so that we pick up geometry changes such as
7704         menubar visibility.
7705
7706 2000-12-28  Andy Piper  <andy@xemacs.org>
7707
7708         * lastfile.c (my_ebss): make a char array so we can pad the
7709         bss. Fixes cygwin unexec.
7710
7711         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7712
7713 2000-12-26  Andy Piper  <andy@xemacs.org>
7714
7715         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7716         comments and try and be more precise about a non-/SIGIO world.
7717         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7718         SIGIO.
7719
7720         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7721         we don't normalize to zero width or height.
7722
7723 2000-12-24  Andy Piper  <andy@xemacs.org>
7724
7725         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7726
7727 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7728
7729         * s/sco5.h: SCO 5 has pty support.
7730
7731 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7732
7733         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7734         input-method-xlib.c contains whole contents of input-method-xfs.c,
7735         so we can use input-method-xlib.c's code for USE_XFONTSET
7736         using #ifdefs.
7737         * input-method-xfs.c: removed.
7738
7739 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7740
7741         * file-coding.h (enum coding_category_type): reorder enumerators to
7742         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7743         (now one greater than largest real coding_category_type enumerator).
7744         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7745         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7746         Fcoding_category_list, Fset_coding_priority_list,
7747         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7748         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7749
7750 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7751
7752         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7753         * redisplay-output.c (redisplay_output_window): Clear top of window
7754         when face is changed.
7755         * redisplay-x.c (x_redraw_exposed_window): Call
7756         redisplay_clear_top_of_window.
7757         * redisplay.h: Publish redisplay_clear_top_of_window.
7758
7759 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7760
7761         * buffer.c (Fkill_buffer): Map over all devices.
7762         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7763         (list_windows): New function.
7764         (list_all_windows): Ditto.
7765         (Freplace_buffer_in_windows): Use them.
7766
7767 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7768
7769         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7770         (Fopen_database): Use `db_create' instead of `db_open'.
7771         (syms_of_database): Initialize Qqueue.
7772
7773 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7774
7775         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7776         buffer_local_face_property.
7777         * buffer.h (struct buffer): New member buffer_local_face_property.
7778         * window.c (Fset_window_buffer):  Mark window's face as changed
7779         when buffer has buffer local face.
7780         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7781         * objects.c (color_after_change): Set buffer_local_face_property
7782         when locale of face specifier is buffer.
7783         * objects.c (font_after_change): Ditto.
7784         * objects.c (face_boolean_after_change): Ditto.
7785         * glyphs.c (image_after_change): Ditto.
7786
7787 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7788
7789         * nt.c (mswindows_fstat): Report file permissions, volume serial
7790         number, etc. Code adapted from FSF Emacs 20.7.
7791
7792 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7793
7794         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7795         of stat when we don't have symbolic links, to make sure
7796         mswindows_stat is called on mswindows.
7797
7798 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7799
7800         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7801
7802 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7803
7804         * doprnt.c (emacs_doprnt_1): More printing fixes.
7805         Make printing of numbers compatible with libc and FSF Emacs.
7806         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7807         Use the system printf to do most of the hard work of formatting,
7808         instead of doprnt_1().
7809         Calculate memory to allocate for format string.
7810         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7811         (doprnt_1): Cleaner code and documentation.
7812
7813 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7814
7815         * Makefile.in.in: Use the loop variable to install headers.
7816
7817 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7818
7819         * window.c (Fsplit_window): Don't invalidate face cache.
7820
7821 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7822
7823         * minibuf.c (Fall_completions): Undo the previous change
7824         which removed checking elements start with space.
7825
7826 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7827
7828         * mule-canna.c: Didier suppression.
7829
7830 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7831
7832         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7833         (warning suppression).  Add English comment translations.
7834
7835 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7836
7837         * unexelfsgi.c (unexec): Better test for mmap failure.
7838
7839 2000-12-05  Martin Buchholz <martin@xemacs.org>
7840
7841         * XEmacs 21.2.38 is released.
7842
7843 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7844
7845         * redisplay.c (bar-cursor): Make a user variable.
7846
7847         * symsinit.h: Add init_postgresql_from_environment.
7848
7849 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7850
7851         * regex.c: Convert to clean C.
7852
7853 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7854
7855         * realpath.c:
7856         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7857         initialization.
7858         (sys_readlink): renamed to system_readlink to avoid conflict with
7859         the other sys_readlink.
7860
7861 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7862
7863         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7864
7865 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7866
7867         * postgresql.c (init_postgresql_from_environment): new function.
7868         (vars_of_postgresql): Move code initializing Lisp variables out and
7869         into init_postgresql_from_environment.
7870         emacs.c (main_1): Call init_postgresql_from_environment if and only
7871         if running a dumped XEmacs.
7872
7873 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7874
7875         * buffer.c: Make find-file-compare-truenames default to true on
7876         windows.
7877
7878         * realpath.c (win32_abs_start):
7879         (cygwin_readlink):
7880         (win32_readlink): New functions.
7881         (xrealpath): Return really real filenames on windows.
7882
7883         * fileio.c (Ffile_truename): Make file-truename work on windows.
7884
7885 2000-11-29  Didier Verna  <didier@xemacs.org>
7886
7887         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7888         * faces.c (update_face_cachel_data): use it.
7889         * faces.c (add_face_cachel): use it. Complete background pixmap
7890         frobbing in face cache if `update_face_cachel_data' has not done so.
7891
7892 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7893
7894         * search.c (string_match_1): Don't set last_thing_searched
7895         when search failed.
7896
7897 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7898
7899         * buffer.c: Include casetab.h
7900         (common_init_complex_vars_of_buffer): Use new case-table object.
7901         * buffer.h: Include casetab.h
7902         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7903         (DOWNCASE_TABLE_OF): Ditto.
7904         * bufslots.h: Remove char-tables and add case-table.
7905         * casetab.c: Include casetab.h
7906         (CASE_TABLE_P): Removed.
7907         (mark_case_table): New function.
7908         (allocate_case_table): New function.
7909         (Fcase_table_p): Use new case-table.
7910         (case_table_char): New function.
7911         (Fget_case_table): Ditto.
7912         (Fput_case_table): Ditto.
7913         (Fput_case_table_pair): Ditto.
7914         (Fcopy_case_table): Ditto.
7915         (Fcurrent_case_table): Return case-table.
7916         (Fstandard_case_table): Return case-table.
7917         (Fset_case_table): Fix doc-string.
7918         (set_case_table): Use case-table
7919         (syms_of_casetab): DEFSUBR new functions.
7920         (complex_vars_of_casetab): Set up standard case-table.
7921         * casetab.h: New file.
7922         * editfns.c: Include casetab.h
7923         (Fcompare_buffer_substrings): Use case-table.
7924         * inline.c: Include casetab.h
7925         * lisp.h: Remove bogus extern.
7926         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7927         * search.c: Include casetab.h
7928         (TRANSLATE_ASCII): Removed.
7929         (TRANSLATE): Unconditionally translate character.
7930         (looking_at_1): Use case-table.
7931         (string_match_1): Ditto.
7932         (fast_string_match): Ditto.
7933         (search_command): Ditto.
7934         (search_buffer): Separate boyer_moore.  Check whether
7935         boyer_moore is possible.
7936         (simple_search): New function.
7937         (boyer_moore): Separated from search_buffer. Translate char.
7938
7939 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7940
7941         * regex.c (RE_TR_ASCII): Removed.
7942         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7943         (PATFETCH): Call PATFETCH_RAW.
7944         (PATFETCH_RAW): Fetch Emchar.
7945         (PATUNFETCH): Decrement charptr.
7946         (GET_BUFFER_SPACE): Rename b to buf_end.
7947         (BUF_PUSH): Ditto.
7948         (BUF_PUSH_2): Ditto.
7949         (BUF_PUSH_3): Ditto.
7950         (EXTEND_BUFFER): Ditto.
7951         (SET_LIST_BIT): Ditto.
7952         (regex_compile): Ditto.  Translate non ASCII char.
7953         (compile_range): Ditto.
7954         (re_search_2): Ditto.
7955         (re_match_2_internal): Compare Emchar.
7956         (bcmp_translate): Ditto.
7957
7958 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7959
7960         * lisp.h (basic char/int typedefs):  comment improvement.
7961
7962 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7963
7964         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7965         unstomp inhibit_site_lisp.  Improve comments.
7966
7967 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7968
7969         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7970
7971 2000-11-28  Andy Piper  <andy@xemacs.org>
7972
7973         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7974         clipped display for windows in the gutter also.
7975         (redisplay_display_boxes_in_window_p): change semantics of return
7976         codes to be more intuitive.
7977
7978         * gutter.h: declare display_boxes_in_gutter_p.
7979
7980         * gutter.c (display_boxes_in_gutter_p): new function for
7981         redisplay.
7982
7983 2000-11-22  Andy Piper  <andy@xemacs.org>
7984
7985         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7986         autodetect domain.
7987
7988 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7989
7990         * callproc.c (Fold_call_process_internal):
7991         * gpm.c (Freceive_gpm_event):
7992         (tty_get_foreign_selection): Might be just warning supression.
7993         * fileio.c (Fwrite_region_internal):
7994         (Fset_visited_file_modtime):
7995         * keymap.c (event_matches_key_specifier_p):
7996         Initialize GCPROed variable.
7997
7998         * menubar-x.c (command_builder_find_menu_accelerator):
7999         Initialize before use.
8000
8001 2000-11-23  Andy Piper  <andy@xemacs.org>
8002
8003         * unexcw.c (unexec): make the resulting executable executable.
8004
8005 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8006
8007         * doc.c (get_doc_string):
8008         Use size_t, not int, for result of XSTRING_LENGTH.
8009
8010         * cmds.c (Fdelete_char):
8011         * cmds.c (Fpoint_at_eol):
8012         * cmds.c (Fself_insert_command):
8013         Use EMACS_INT, not int, for result of XINT.
8014         Someday, someone will want to insert more than 2**31 identical characters.
8015
8016         * cmds.c (Fdelete_char):
8017         * cmds.c (Fdelete_backward_char):
8018         * syntax.c (Fforward_word):
8019         * syntax.c (Fforward_comment):
8020         Make COUNT argument optional, for consistency with forward-char et al.
8021
8022 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8023
8024         * lisp.h:
8025         * print.c (long_to_string):
8026         Return a useful value: the pointer at end of data written.
8027
8028         * doprnt.c:
8029         Use `static const char * const' for constant strings.
8030         (union printf_arg): Delete `i', `ui' members.
8031         (get_doprnt_args):
8032         (emacs_doprnt_1):
8033         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8034         Do all printf-ing via the `l' specifier.
8035         Use EMACS_INT instead of int.
8036         Optimize.
8037
8038 2000-11-20  Didier Verna  <didier@xemacs.org>
8039
8040         * faces.c (update_face_cachel_data): don't frob the background
8041         pixmap when the window is being created. The face is needed but
8042         does not exist yet.
8043
8044 2000-11-20  Andy Piper  <andy@xemacs.org>
8045
8046         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8047         messing with a debug environment.
8048
8049 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8050
8051         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8052
8053 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8054
8055         * casetab.c (Fcase_table_p): Fix compile error and crash.
8056
8057 2000-11-18  Philip Aston  <philipa@mail.com>
8058
8059         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8060
8061 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8062
8063         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8064         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8065
8066 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8067
8068         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8069         * unexelf.c: Use HAVE_ELF_H.
8070         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8071         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8072         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8073         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8074         for testing.
8075         So this is an unexelfsgi.c from a different line of development.
8076
8077 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8078
8079         * regex.c (RE_TR_ASCII): New function.
8080         (RE_TRANSLATE): Call it.
8081
8082 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8083
8084         * buffer.h (TRT_TABLE_OF): Remove assert.
8085         (IN_TRT_TABLE_DOMAIN): Removed.
8086
8087 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8088
8089         * free-hook.c (log_gcpro):
8090         (show_gcprohist): Add support for GCPRO5.
8091
8092 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8093
8094         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8095
8096 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8097
8098         * symeval.h: Declare flush_all_buffer_local_cache.
8099
8100         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8101         (flush_buffer_local_cache): Added.
8102         (flush_all_buffer_local_cache): Added.
8103
8104         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8105
8106         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8107         (pdump_dump_data): Ditto.
8108         (pdump_reloc_one): Ditto.
8109         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8110         before dumping.
8111
8112
8113 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8114
8115         * buffer.c: Remove if 0'ed entry.
8116         * buffer.h: Rewrite TRT to use char-table.
8117         * bufslots.h: Remove mirror tables.
8118         * casetab.c: Remove mirror tables.
8119         (CASE_TABLE_P): New macro.
8120         (Fcase_table_p): Element of a case table is string or char-table.
8121         (make_mirror_trt_table): Removed.
8122         (set_case_table): Setup char-table from strings for backward
8123         compatibility.
8124         * dired.c (Fdirectory_files):
8125         * dired-msw.c: (mswindows_get_files):
8126         * lisp.h: Change prototype of re_pattern_buffer.
8127         * regex.c: (RE_TRANSLATE): New macro.
8128         (TRANSLATE_P): Ditto.
8129         Change translate to type RE_TRANSLATE_TYPE.
8130         * regex.h: Define RE_TRANSLATE_TYPE
8131         * search.c (TRANSLATE): New macro.
8132         (TRANSLATE_ASCII): New macro.
8133         Translate table is changed to Lisp_Object.
8134         (signal_failure): Inhibit return.
8135
8136 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8137
8138         * device-msw.c:
8139         * eldap.c:
8140         * event-Xt.c:
8141         * event-stream.c:
8142         * print.c:
8143         Do UNGCPRO before return.
8144
8145 2000-11-14  Martin Buchholz <martin@xemacs.org>
8146
8147         * XEmacs 21.2.37 is released.
8148
8149 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8150
8151         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8152         Add comments about discarded return value.
8153
8154 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8155
8156         * callint.c:
8157         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8158
8159 2000-10-27  Andy Piper  <andy@xemacs.org>
8160
8161         * gutter.c (Fset_default_gutter_position): default left and right
8162         gutters to visible.
8163         (calculate_gutter_size): calculate resonable heuristic for left
8164         and right gutter sizes.
8165         (specifier_vars_of_gutter): change left and right gutter sizes to
8166         autodetect.
8167         (calculate_gutter_size_from_display_lines): new function.
8168         (output_gutter): check for resizing on left and right gutters.
8169         (clear_gutter): don't special case top and left gutters.
8170         (specifier_vars_of_gutter): use new signature for
8171         set_specifier_caching.
8172
8173         * glyphs-x.c (x_redisplay_widget): spelling fix.
8174         * glyphs.c (specifier_vars_of_glyphs):
8175         * menubar.c (specifier_vars_of_menubar):
8176         * redisplay.c (specifier_vars_of_redisplay):
8177         * toolbar.c (specifier_vars_of_toolbar):
8178         * window.c (specifier_vars_of_window):
8179         * scrollbar.c (specifier_vars_of_scrollbar):
8180         (complex_vars_of_scrollbar): use new signature for
8181         set_specifier_caching.
8182
8183         * specifier.c (set_specifier_caching): include recompute flag.
8184         (recompute_one_cached_specifier_in_window): always recompute if
8185         flag set.
8186         (recompute_one_cached_specifier_in_frame): ditto.
8187
8188         * specifier.h (struct specifier_caching): add recompute flag.
8189
8190 2000-10-24  Andy Piper  <andy@xemacs.org>
8191
8192         * unexcw.c (copy_executable_and_dump_data_section): add new
8193         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8194         5.0 happy.
8195
8196 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8197
8198         * console-x.h (x_device): New member modifier_release_time.
8199         * event-Xt.c (x_handle_sticky_modifiers):
8200         Bound interval modifier keys are sticky.
8201         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8202         * events.h: extern it.
8203
8204 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8205
8206         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8207
8208 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8209
8210         * event-stream.c (execute_command_event): Preserve current_events
8211         and the like when event is misc-user-event.
8212         Inhibit quit during the call to maybe_echo_keys.
8213
8214 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8215
8216         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8217         symlink when buffer is killed.
8218         (inhibit_clash_detection): New variable.
8219
8220 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8221
8222         * console.c (Fset_input_method): Trigger redisplay on tty.
8223
8224 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8225
8226         * process.c (Fprocess_status): Revert to previous behavior:
8227         (process-status "nosuchprocess") ==> nil
8228
8229 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8230
8231         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8232         Work around another GCC 2.95.2 optimizer bug.
8233
8234 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8235
8236         * process.c (Fget_process): Use LIST_LOOP_2.
8237         (kill_buffer_processes): Use LIST_LOOP_2.
8238
8239         * minibuf.c (Fall_completions):
8240         Delete old non-functional code for FSF fourth argument.
8241
8242         * frame.c (frame_matches_frame_spec):
8243         Renamed from `frame_matches_frametype'.  Update all callers.
8244         (device_matches_device_spec):
8245         Renamed from 'device_matches_console_spec'.  Update all callers.
8246
8247         * doc.c (Fsubstitute_command_keys):
8248         Remove buffer overflow crash.  Small code cleanups.
8249
8250         * casetab.c (check_case_table): Simpler code.
8251
8252         * window.c (Freplace_buffer_in_windows):
8253         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8254         (and similar implementation) as Fdelete_windows_on.
8255         Update all callers.
8256
8257         * alloc.c (Fmake_list):
8258         * alloc.c (make_vector):
8259         * alloc.c (Fmake_vector):
8260         * alloc.c (make_bit_vector):
8261         * alloc.c (Fmake_bit_vector):
8262         * alloc.c (Fbit_vector):
8263         * alloc.c (Fmake_string):
8264         * alloc.c (Fpurecopy):
8265         * alloc.c (Fmemory_limit):
8266         * buffer.c:
8267         * buffer.c (Fget_buffer):
8268         * buffer.c (Fkill_buffer):
8269         * buffer.c (complex_vars_of_buffer):
8270         * bytecode.c (Fcompiled_function_stack_depth):
8271         * callint.c (Fprefix_numeric_value):
8272         * event-stream.c:
8273         * event-stream.c (Fread_key_sequence):
8274         * casetab.c:
8275         * casetab.c (Fcase_table_p):
8276         * casetab.c (check_case_table):
8277         * casetab.c (Fset_case_table):
8278         * casetab.c (Fset_standard_case_table):
8279         * chartab.c:
8280         * chartab.c (Fchar_table_type):
8281         * chartab.c (Freset_char_table):
8282         * chartab.c (Fget_char_table):
8283         * chartab.c (Fget_range_char_table):
8284         * chartab.c (Fput_char_table):
8285         * chartab.c (Fmap_char_table):
8286         * chartab.c (Fcategory_table_p):
8287         * chartab.c (Fcheck_category_at):
8288         * chartab.c (Fchar_in_category_p):
8289         * chartab.c (Fcategory_table):
8290         * chartab.c (Fcopy_category_table):
8291         * chartab.c (Fset_category_table):
8292         * chartab.c (Fcategory_designator_p):
8293         * chartab.c (Fcategory_table_value_p):
8294         * cmds.c (Fdelete_char):
8295         * cmds.c (Fdelete_backward_char):
8296         * cmds.c (Fself_insert_command):
8297         * cmds.c (Fself_insert_internal):
8298         * console.c (Fvalid_console_type_p):
8299         * console.c (Fcdfw_console):
8300         * console.c (Fconsole_type):
8301         * console.c (Fconsole_name):
8302         * console.c (Fconsole_device_list):
8303         * console.c (Fconsole_on_window_system_p):
8304         * data.c:
8305         * data.c (Feq):
8306         * data.c (Fold_eq):
8307         * data.c (Fsubr_interactive):
8308         * data.c (Fchar_to_int):
8309         * data.c (Fint_to_char):
8310         * data.c (Fsetcar):
8311         * data.c (Fsetcdr):
8312         * data.c (Fnumber_to_string):
8313         * data.c (Fstring_to_number):
8314         * data.c (Frem):
8315         * database.c (mark_database):
8316         * database.c (finalize_database):
8317         * database.c (Fdatabase_live_p):
8318         * database.c (Fdatabasep):
8319         * device-x.c (Fx_get_resource):
8320         * device.c (Fdfw_device):
8321         * dired.c:
8322         * dired.c (Ffile_name_completion):
8323         * dired.c (Ffile_name_all_completions):
8324         * dired.c (Fuser_name_completion):
8325         * dired.c (Fuser_name_completion_1):
8326         * dired.c (Fuser_name_all_completions):
8327         * doc.c (Fdocumentation):
8328         * doc.c (Fdocumentation_property):
8329         * doc.c (Fsubstitute_command_keys):
8330         * editfns.c:
8331         * editfns.c (Fchar_to_string):
8332         * editfns.c (Fstring_to_char):
8333         * editfns.c (Ftemp_directory):
8334         * editfns.c (Finsert_char):
8335         * editfns.c (Fbuffer_substring_no_properties):
8336         * editfns.c (Fnarrow_to_region):
8337         * editfns.c (Fchar_equal):
8338         * editfns.c (Fchar_Equal):
8339         * editfns.c (Ftranspose_regions):
8340         * emacs.c (Fdump_emacs):
8341         * eval.c (Fthrow):
8342         * eval.c (Fcommand_execute):
8343         * eval.c (Fautoload):
8344         * eval.c (Fbacktrace):
8345         * eval.c (Fbacktrace_frame):
8346         * events.c:
8347         * events.c (Fcopy_event):
8348         * events.c (Fcharacter_to_event):
8349         * events.c (Fevent_button):
8350         * events.c (Fevent_process):
8351         * extents.c:
8352         * extents.c (Fnext_extent_change):
8353         * extents.c (Fextent_property):
8354         * faces.c (Ffacep):
8355         * faces.c (Fmake_face):
8356         * file-coding.c:
8357         * file-coding.c (Fencode_shift_jis_char):
8358         * file-coding.c (Fencode_big5_char):
8359         * fileio.c (Ffile_name_directory):
8360         * fileio.c (Ffile_name_nondirectory):
8361         * fileio.c (Ffile_name_as_directory):
8362         * fileio.c (Fdirectory_file_name):
8363         * fileio.c (Ffile_truename):
8364         * fileio.c (Fsubstitute_in_file_name):
8365         * fileio.c (Ffile_modes):
8366         * fileio.c (Fset_file_modes):
8367         * fileio.c (Fset_default_file_modes):
8368         * fileio.c (Fverify_visited_file_modtime):
8369         * floatfns.c (Facos):
8370         * floatfns.c (Fasin):
8371         * floatfns.c (Fatan):
8372         * floatfns.c (Fcos):
8373         * floatfns.c (Fsin):
8374         * floatfns.c (Ftan):
8375         * floatfns.c (Fbessel_j0):
8376         * floatfns.c (Fbessel_j1):
8377         * floatfns.c (Fbessel_jn):
8378         * floatfns.c (Fbessel_y0):
8379         * floatfns.c (Fbessel_y1):
8380         * floatfns.c (Fbessel_yn):
8381         * floatfns.c (Ferf):
8382         * floatfns.c (Ferfc):
8383         * floatfns.c (Flog_gamma):
8384         * floatfns.c (Fexp):
8385         * floatfns.c (Fexpt):
8386         * floatfns.c (Flog):
8387         * floatfns.c (Flog10):
8388         * floatfns.c (Fsqrt):
8389         * floatfns.c (Fcube_root):
8390         * floatfns.c (Facosh):
8391         * floatfns.c (Fasinh):
8392         * floatfns.c (Fatanh):
8393         * floatfns.c (Fcosh):
8394         * floatfns.c (Fsinh):
8395         * floatfns.c (Ftanh):
8396         * floatfns.c (Fabs):
8397         * floatfns.c (Ffloat):
8398         * floatfns.c (Flogb):
8399         * floatfns.c (Fceiling):
8400         * floatfns.c (Ffloor):
8401         * floatfns.c (Fround):
8402         * floatfns.c (Ftruncate):
8403         * floatfns.c (Ffceiling):
8404         * floatfns.c (Fffloor):
8405         * floatfns.c (Ffround):
8406         * floatfns.c (Fftruncate):
8407         * fns.c (Fstring_equal):
8408         * fns.c (Fstring_lessp):
8409         * fns.c (concat2):
8410         * fns.c (concat3):
8411         * fns.c (vconcat2):
8412         * fns.c (vconcat3):
8413         * fns.c (Fsubstring):
8414         * fns.c (Fassoc):
8415         * fns.c (Fold_assoc):
8416         * fns.c (assoc_no_quit):
8417         * fns.c (Fassq):
8418         * fns.c (Fold_assq):
8419         * fns.c (assq_no_quit):
8420         * fns.c (Frassoc):
8421         * fns.c (Fold_rassoc):
8422         * fns.c (Frassq):
8423         * fns.c (Fold_rassq):
8424         * fns.c (rassq_no_quit):
8425         * fns.c (Fremassoc):
8426         * fns.c (remassoc_no_quit):
8427         * fns.c (Fremassq):
8428         * fns.c (remassq_no_quit):
8429         * fns.c (Fremrassoc):
8430         * fns.c (Fremrassq):
8431         * fns.c (remrassq_no_quit):
8432         * fns.c (Fsort):
8433         * fns.c (Fplist_get):
8434         * fns.c (Fplist_put):
8435         * fns.c (Fplist_remprop):
8436         * fns.c (Fplist_member):
8437         * fns.c (Flax_plist_get):
8438         * fns.c (Flax_plist_put):
8439         * fns.c (Flax_plist_remprop):
8440         * fns.c (Flax_plist_member):
8441         * fns.c (Fequal):
8442         * fns.c (Fold_equal):
8443         * fns.c (Frequire):
8444         * fns.c (Fbase64_encode_region):
8445         * fns.c (Fbase64_encode_string):
8446         * fns.c (Fbase64_decode_region):
8447         * frame.c:
8448         * frame.c (frame_matches_frame_spec):
8449         * frame.c (device_matches_device_spec):
8450         * frame.c (next_frame):
8451         * frame.c (previous_frame):
8452         * frame.c (Fnext_frame):
8453         * frame.c (Fprevious_frame):
8454         * frame.c (Fframe_property):
8455         * frame.c (Fset_frame_height):
8456         * frame.c (Fset_frame_size):
8457         * frame.h:
8458         * glyphs.c:
8459         * glyphs.c (if):
8460         * glyphs.c (decode_error_behavior_flag):
8461         * glyphs.c (Fmake_image_instance):
8462         * indent.c (Findent_to):
8463         * intl.c (Fignore_defer_gettext):
8464         * keymap.c (Fkeymapp):
8465         * keymap.c (Flookup_key):
8466         * lread.c:
8467         * lread.c (Fload_internal):
8468         * lread.c (Feval_buffer):
8469         * lread.c (Feval_region):
8470         * macros.c (Fexecute_kbd_macro):
8471         * marker.c (set_marker_internal):
8472         * marker.c (Fset_marker):
8473         * marker.c (set_marker_restricted):
8474         * marker.c (Fcopy_marker):
8475         * marker.c (noseeum_copy_marker):
8476         * menubar.c:
8477         * menubar.c (Fpopup_menu):
8478         * minibuf.c:
8479         * mule-charset.c (Fcharset_name):
8480         * mule-charset.c (Fchar_charset):
8481         * mule-charset.c (Fchar_octet):
8482         * mule-charset.c (Fsplit_char):
8483         * mule-wnnfns.c (Fwnn_open):
8484         * mule-wnnfns.c (Fwnn_dict_comment):
8485         * mule-wnnfns.c (Fwnn_quit_henkan):
8486         * mule-wnnfns.c (Fwnn_word_toroku):
8487         * mule-wnnfns.c (Fwnn_word_sakujo):
8488         * mule-wnnfns.c (Fwnn_word_use):
8489         * mule-wnnfns.c (Fwnn_hindo_set):
8490         * objects.c:
8491         * objects.c (Fmake_color_instance):
8492         * objects.c (Fmake_font_instance):
8493         * print.c (Fwrite_char):
8494         * process.c:
8495         * process.c (mark_process):
8496         * process.c (print_process):
8497         * process.c (get_process_from_usid):
8498         * process.c (Fprocessp):
8499         * process.c (Fprocess_live_p):
8500         * process.c (Fget_process):
8501         * process.c (Fget_buffer_process):
8502         * process.c (get_process):
8503         * process.c (Fprocess_id):
8504         * process.c (Fprocess_name):
8505         * process.c (Fprocess_command):
8506         * process.c (init_process_io_handles):
8507         * process.c (start_process_unwind):
8508         * process.c (Fstart_process_internal):
8509         * process.c (Fopen_multicast_group_internal):
8510         * process.c (Fset_process_window_size):
8511         * process.c (read_process_output):
8512         * process.c (send_process):
8513         * process.c (Fprocess_tty_name):
8514         * process.c (Fset_process_buffer):
8515         * process.c (Fprocess_buffer):
8516         * process.c (Fprocess_mark):
8517         * process.c (set_process_filter):
8518         * process.c (Fset_process_filter):
8519         * process.c (Fprocess_filter):
8520         * process.c (Fprocess_send_region):
8521         * process.c (Fprocess_send_string):
8522         * process.c (exec_sentinel):
8523         * process.c (Fset_process_sentinel):
8524         * process.c (Fprocess_sentinel):
8525         * process.c (status_notify):
8526         * process.c (Fprocess_status):
8527         * process.c (Fprocess_exit_status):
8528         * process.c (process_send_signal):
8529         * process.c (Fprocess_send_eof):
8530         * process.c (deactivate_process):
8531         * process.c (remove_process):
8532         * process.c (Fdelete_process):
8533         * process.c (kill_buffer_processes):
8534         * process.c (Fprocess_kill_without_query):
8535         * process.c (Fprocess_kill_without_query_p):
8536         * rangetab.c:
8537         * rangetab.c (Fget_range_table):
8538         * rangetab.c (Fput_range_table):
8539         * rangetab.c (Fremove_range_table):
8540         * rangetab.c (Fclear_range_table):
8541         * search.c:
8542         * search.c (Fskip_chars_forward):
8543         * search.c (Fskip_chars_backward):
8544         * search.c (Fskip_syntax_forward):
8545         * search.c (Fskip_syntax_backward):
8546         * search.c (search_command):
8547         * search.c (Freplace_match):
8548         * search.c (Fregexp_quote):
8549         * select.c (Fown_selection_internal):
8550         * select.c (Fselection_owner_p):
8551         * select.c (Fselection_exists_p):
8552         * select.c (Fget_selection_internal):
8553         * specifier.c:
8554         * symbols.c:
8555         * symbols.c (Fintern):
8556         * symbols.c (Fintern_soft):
8557         * symbols.c (Funintern):
8558         * symbols.c (Fapropos_internal):
8559         * symbols.c (Fset_default):
8560         * syntax.c:
8561         * syntax.c (Fsyntax_table_p):
8562         * syntax.c (Fcopy_syntax_table):
8563         * syntax.c (Fset_syntax_table):
8564         * syntax.c (Fchar_syntax):
8565         * syntax.c (syntax_match):
8566         * syntax.c (Fmatching_paren):
8567         * syntax.c (Fforward_word):
8568         * syntax.c (scan_lists):
8569         * syntax.c (Fscan_lists):
8570         * syntax.c (Fscan_sexps):
8571         * syntax.c (Fparse_partial_sexp):
8572         * toolbar.c (Fcheck_toolbar_button_syntax):
8573         * tooltalk.doc:
8574         * window.c:
8575         * window.c (Fwindowp):
8576         * window.c (Fwindow_live_p):
8577         * window.c (Fwindow_point):
8578         * window.c (Fdelete_window):
8579         * window.c (Fnext_window):
8580         * window.c (Fprevious_window):
8581         * window.c (Fother_window):
8582         * window.c (window_loop):
8583         * window.c (Fget_lru_window):
8584         * window.c (Fsplit_window):
8585         * window.c (Fenlarge_window):
8586         * window.c (Fenlarge_window_pixels):
8587         * window.c (Fshrink_window):
8588         * window.c (Fshrink_window_pixels):
8589         * window.c (change_window_height):
8590         * window.c (Fwindow_configuration_p):
8591         * window.c (Fcurrent_window_configuration):
8592         * window.h:
8593         * casefiddle.c (casify_object):
8594         * casefiddle.c (Fupcase):
8595         * casefiddle.c (Fdowncase):
8596         * casefiddle.c (Fcapitalize):
8597         * casefiddle.c (Fupcase_initials):
8598         * casefiddle.c (casify_region_internal):
8599         * casefiddle.c (casify_region):
8600         * casefiddle.c (Fupcase_region):
8601         * casefiddle.c (Fdowncase_region):
8602         * casefiddle.c (Fcapitalize_region):
8603         * casefiddle.c (Fupcase_initials_region):
8604         * casefiddle.c (Fupcase_word):
8605         * casefiddle.c (Fdowncase_word):
8606         * casefiddle.c (Fcapitalize_word):
8607         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8608         Replace 0 with '\0' when working with bytes.
8609         Replace initial "(" with "\(" in docstrings.
8610
8611 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8612
8613         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8614
8615         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8616
8617 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8618
8619         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8620
8621 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8622
8623         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8624         correctly.
8625
8626 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8627
8628         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8629         (inhibit_auto_save_session): New variable.
8630         (vars_of_fileio): Declare and initialize them.
8631         * fileio.c (Fdo_auto_save): Don't create session file if
8632         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8633
8634 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8635
8636         * sgiplay.c (play_internal): C++ compilability.
8637         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8638         * callproc.c (Fold_call_process_internal):
8639         Remove unused vars `env', `first'.
8640         * scrollbar.c (update_scrollbar_instance):
8641         #### unused var `current_window'.
8642         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8643         etc. within #ifdef NOT_YET.
8644         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8645         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8646         * specifier.c (specifier_instance):
8647         #### unused var `tag'.
8648         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8649
8650 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8651
8652         * fns.c (Fbutlast):
8653         * fns.c (list_sort):
8654         * fns.c (Ffillarray):
8655         * fns.c (bytecode_nconc2):
8656         * fns.c (Fnconc):
8657         * fns.c (mapcar1):
8658         * fns.c (Fmapconcat):
8659         Be pedantically 64-bit correct.  For the time when someone will
8660         want to have a list with length > 2**32.
8661
8662         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8663         Work around MIPSpro compiler bug.
8664
8665         * process-unix.c (unix_kill_child_process): Add snarky comment.
8666         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8667
8668         * config.h.in: Oops, _getpt ==> _getpty
8669
8670 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8671
8672         * config.h.in:
8673         * regex.c:
8674         Use void*, not char*, as return type of alloca().
8675
8676         * alloc.c (free_marker): Side effect inside assert expression!
8677
8678 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8679
8680         * mule-charset.c (Fset_charset_ccl_program): To check
8681         if the given ccl program is valid, use setup_ccl_program()
8682         instead of CHECK_VECTOR().
8683         (Fmake_charset): Likewise.
8684
8685 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8686
8687         * faces.c (get_extent_fragment_face_cache_index):
8688         Fix cachel.merged_faces memory leak.
8689
8690 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8691
8692         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8693         Reset MSB of octets obtained by DECODE_SJIS
8694         because of the incompatibility with Emacs.
8695         (ccl_driver)<CCL_ENCODE_SJIS>:
8696         Set MSB of octets before passing them to
8697         ENCODE_SJIS because of the incompatibility
8698         with Emacs.
8699
8700 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8701
8702         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8703         (DECLARE_LRECORD): Undo the last change.
8704         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8705
8706 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8707
8708         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8709         the implementation to lrecord_implementations_table.
8710
8711 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8712
8713         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8714         initial value of `lrecord_type_##c_name' and
8715         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8716         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8717         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8718         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8719         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8720
8721 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8722
8723         * miscplay.c (sndcnv8S_2mono):
8724         (sndcnv2monounsigned):
8725         (sndcnvULaw_2linear):
8726         (sndcnv16swap):
8727         Remove implementation-defined behavior.
8728
8729 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8730
8731         * input-method-xlib.c: Warning suppression.
8732
8733 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8734
8735         * mule-ccl.c: Sync up with Emacs 21.0.90.
8736         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8737         Do nothing.
8738         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8739         Likewise.
8740         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8741         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8742         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8743         leading char belongs to official 2-dimensional charset.
8744         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8745         write the given character as is.  Otherwise,
8746         if it is a multibyte char, convert it by
8747         non_ascii_set_charptr_emchar, then write it.
8748         (CCL_WRITE_STRING): Likewise.
8749         (ccl_get_compiled_code): New function.
8750         (setup_ccl_program): When ccl_prog is invalid,
8751         return -1.
8752         (Fregister_code_conversion_map): New function.
8753         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8754
8755         * mule-ccl.h: Sync up with Emacs 21.0.90.
8756         (Fregister_ccl_program): export it.
8757
8758         * redisplay-msw.c (separate_textual_runs):
8759         If ccl program is not valid, don't do ccl conversion.
8760
8761         * redisplay-x.c (separate_textual_runs): Ditto.
8762
8763         * file-coding.c (Fmake_coding_system):
8764         When type is ccl and value is vector, register it
8765         with a proper symbol.  And checks whether the
8766         given ccl program is valid.
8767         (mule_decode): When calling ccl_driver, if src indicates
8768         NULL pointer, set an empty string instead.
8769         (mule_encode): Likewise.
8770
8771 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8772
8773         The following large batch of changes gets us back to a state of
8774         C++ compilability.  Extbyte is now a char, which means that
8775         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8776
8777         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8778
8779         * sound.c (Fplay_sound): Type correctness.
8780
8781         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8782         (x_get_window_property): Type correctness.
8783         (receive_incremental_selection): unsigned char ==> Extbyte
8784         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8785         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8786         (Fx_store_cutbuffer_internal): Type correctness.
8787
8788         * process-unix.c (try_to_initialize_subtty): Type correctness.
8789
8790         * objects-x.c (x_print_color_instance): Type correctness.
8791         (x_print_font_instance): Type correctness.
8792         (x_list_fonts): SExtbyte ==> Extbyte.
8793         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8794         (x_find_charset_font): SExtbyte ==> Extbyte.
8795         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8796         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8797         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8798         Use bufbyte_strcmp.
8799
8800         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8801         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8802         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8803         (BYTE_C0_P): Use bit ops for char-signedness safety.
8804         (BYTE_C1_P): Use bit ops for char-signedness safety.
8805         (CHARSET_BY_LEADING_BYTE):
8806         (CHARSET_BY_ATTRIBUTES):
8807         Always use inline function.
8808         Use type_checking_assert.
8809         Hide chlook.
8810
8811         * mule-charset.c (non_ascii_charptr_copy_char):
8812         Modify to work with both ASCII and non-ASCII characters.
8813         Improve docs and variable names.
8814         Replace over-clever fall-through switch with a simple loop.
8815         (Lstream_get_emchar_1):
8816         Replace over-clever fall-through switch with a simple loop.
8817
8818         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8819         Warning suppression.
8820
8821         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8822         the return value of Lstream_getc, which could be EOF as well.
8823
8824         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8825
8826         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8827         APIs can be used on Extbytes without casts.  Risky!
8828         (SExtbyte): Remove.
8829         (UExtbyte): Remove.
8830
8831         * input-method-xlib.c (XIM_init_device):
8832         Use Xlib.h instead of IntrinsicP.h.
8833         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8834         which will break in X11R7.
8835         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8836         to call XRegisterIMInstantiateCallback with correct types.
8837
8838         * gui-x.c (button_item_to_widget_value): Type correctness.
8839
8840         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8841
8842         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8843         (xbm_instantiate_1): Type correctness.
8844         (BUILD_GLYPH_INST):  Type correctness.
8845
8846         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8847
8848         * file-coding.c:
8849         (decode_coding_sjis):
8850         (decode_coding_big5):
8851         (decode_coding_ucs4):
8852         (decode_coding_utf8):
8853         (decode_coding_iso2022):
8854         (decode_coding_no_conversion):
8855         Make all decoding functions take an Extbyte * arg.
8856         (encode_coding_sjis):
8857         (encode_coding_big5):
8858         (encode_coding_ucs4):
8859         (encode_coding_utf8):
8860         (encode_coding_iso2022):
8861         (encode_coding_no_conversion):
8862         Make all encoding functions take a Bufbyte * arg.
8863         Use size_t instead of unsigned int for memory sizes.
8864         Only cast to unsigned char whenever dereferencing Extbyte *.
8865
8866         * doc.c (unparesseuxify_doc_string): Type correctness.
8867
8868         * console-x.c (split_up_display_spec):
8869         Rewrite without using details of internal string representation.
8870         (x_semi_canonicalize_device_connection): Type correctness.
8871
8872         * config.h.in:
8873         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8874         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8875         (HAVE_XFREE386): Removed.
8876
8877         * buffer.h (DEC_CHARPTR): `const' correctness.
8878         (bufbyte_strcmp): New.
8879         (bufbyte_memcmp): New.
8880
8881         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8882
8883         * buffer.h (XCHAR_OR_CHAR_INT):
8884         Always use inline function.
8885         Remove redundant type checking assert() - XINT will abort quite nicely.
8886
8887 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8888
8889         * search.c (Freplace_match): Set newtext to an empty string.
8890
8891 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8892
8893         * s/decosf1-3.h: Remove #include of stropts.h
8894         * s/ptx.h: Remove #include of stropts.h
8895         * s/usg5-4.h: Remove #include of stropts.h
8896         * sysproc.h:
8897         * config.h.in:
8898         Use stropts.h, not sys/stropts.h.
8899         Use strtio.h, not sys/strtio.h.
8900
8901 2000-10-04  Martin Buchholz <martin@xemacs.org>
8902
8903         * XEmacs 21.2.36 is released.
8904
8905 2000-09-21  Andy Piper  <andy@xemacs.org>
8906
8907         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8908         changes still involve copying the widget tree.
8909         (update_widget_face): make sure a change is register in the widget
8910         tree. Call update_tab_widget_face appropriately.
8911         (update_tab_widget_face): ditto.
8912         (x_tab_control_redisplay): make sure non-structural changes still
8913         involve copying the widget tree.
8914
8915 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8916
8917         * lread.c (locate_file): Check the path element is non-nil.
8918
8919 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8920
8921         * lisp.h: Warning suppression for SCO compilers.
8922
8923         * redisplay-tty.c (reset_tty_modes): Fix crash.
8924         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8925
8926 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8927
8928         Big signal/process handling overhaul.  Bugs fixed:
8929         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8930         M-x comint-kill-subjob should work for both values nil and t of
8931         process-connection-type. It was broken on most platforms.
8932         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8933         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8934         * process-unix.c: Signal/Process handling overhaul.
8935         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8936         (allocate_pty): Use all available modern methods of allocating
8937         ptys, falling back to old style BSD allocation as a last resort.
8938         Use allegedly more secure Unix98 pty allocation by default.
8939         (allocate_pty_the_old_fashioned_way): New. the last resort.
8940         (unix_create_process): Push ptem, ldterm, ttcompat where
8941         available.  Autoconfiscate.
8942         (try_to_initialize_subtty): New.
8943         (unix_kill_child_process): Proper signal handling for ptys on most
8944         platforms, using special knowledge of AIX, BSD, etc...
8945         (unix_create_process): Always disconnect_controlling_terminal() for
8946         subprocesses, whether using ptys or not.
8947         * process.h: Remove old getpt-dependent PTY code.
8948         * process.c (Fprocess_send_signal): New, obvious generic function.
8949         (decode_signal): New.
8950         (Finterrupt_process):
8951         (Fkill_process):
8952         (Fquit_process):
8953         (Fstop_process):
8954         (Fcontinue_process):
8955         (Fsignal_process): Use decode_signal.
8956         (process_send_signal):
8957         Many docstring corrections.
8958         Allow any signal to be sent to a process object.
8959         * config.h.in: Add symbols for big signal/process overhaul.
8960         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8961         * sysproc.h: Include process-related headers, where available:
8962         sys/stropts.h sys/strtio.h pty.h libutil.h
8963         * s/irix4-0.h:
8964         * s/irix5-0.h:
8965         * s/cygwin32.h:
8966         * s/gnu.h:
8967         * s/linux.h:
8968         * s/hpux.h:
8969         * s/aix3-1.h:
8970         Remove old S&M pty stuff.
8971         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8972         * systty.h: Simplify cpp hackery, improve comments.
8973         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8974
8975         * editfns.c (Fformat_time_string):
8976         Be a little more paranoid with the return value of ctime.
8977
8978         * fileio.c (check_executable):
8979         (check_writable):
8980         Use symbolic constants X_OK, W_OK.
8981
8982         * console-x.c (split_up_display_spec): Fix a warning.
8983
8984 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8985
8986         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8987         * ntproc.c (sys_spawnve): make_string ==> build_string
8988         Small clarity improvements.
8989
8990 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8991
8992         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8993
8994         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8995
8996         * config.h.in (HAVE_STRCASECMP): Remove.
8997
8998 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8999
9000         * redisplay-output.c (redisplay_output_pixmap):
9001         Cleaner and possibly more 64-bit correct code.
9002
9003 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9004
9005         * dumper.c (pdump_load_finish): move restoration of
9006         `noninteractive1' to emacs.c (main_1).
9007         * emacs.c (main_1): protect LISP-visible command-line flags
9008         from pdump_load().
9009
9010 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9011
9012         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9013         DUMP_TARGET instead of literal program names.
9014
9015 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9016
9017         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9018
9019 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9020
9021         * *: Spelling mega-patch
9022
9023 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9024
9025         * fns.c (bad_bad_turtle):
9026         Delete "Eek!" comment, since we fixed the bug to which it refers.
9027
9028 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9029
9030         * alloca.c: Replace REGISTER with register.
9031
9032 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9033
9034         * file-coding.c (ucs_to_char): Use countof.
9035
9036 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9037
9038         * file-coding.c: (ucs_to_char):
9039         (complex_vars_of_file_coding):
9040         Use countof instead of sizeof.
9041         Use CHECK_NATNUM instead of CHECK_INT.
9042
9043         * sysdep.c (strcasecmp): Remove.
9044         * device-x.c (ascii_strcasecmp): New.
9045         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9046         Avoid using non-standard non-portable strcasecmp.
9047
9048 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9049
9050         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9051         * font-lock.c: remove reference to emacsfns.h.
9052         * search.c: small doc improvement.
9053         * event-Xt.c: correct file names in comments.
9054         * console-x.h Correct file names in comments.
9055         * frame.c: Correct file names in comments.
9056         * event-stream.c: remove Energize from comments.
9057
9058 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9059
9060         * symeval.h (DEFERROR_STANDARD):
9061         (DEFERROR):
9062         (DEFSYMBOL):
9063         (DEFSYMBOL_NO_DUMP):
9064         (DEFSYMBOL_MULTIWORD_PREDICATE):
9065         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9066         (DEFKEYWORD):
9067         The construct &##name is not sensible C.
9068         Fixes compilation errors with Unixware native compiler.
9069
9070 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9071
9072         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9073         (next_frame_internal): Removed.  We now just have next_frame.
9074         (next_frame):
9075         Write a simpler and cleaner one-pass algorithm.
9076         Remove called_from_delete_device arg and #ifdefed-out code.
9077         (previous_frame):
9078         Renamed from prev_frame.  Update callers.
9079         Cleaned up to have an analogous implementation to next_frame.
9080         (other_visible_frames_internal): Remove the
9081         called_from_delete_device bogus arg, and hence, remove this
9082         function.  Just use other_visible_frames().
9083
9084         * window.c (Fnext_window):
9085         Prettify docstring.
9086         Since next_frame() is guaranteed to return a frame, remove check
9087         for nil inserted in previous patch.
9088         (Fprevious_window):
9089         Prettify docstring.
9090         Make code look more like Fnext_window.
9091         (window_loop):
9092         Respect the `console' arg when iterating through windows.
9093         Fixes bug: (get-buffer-window buffer t device) not respecting
9094         the `device' arg.
9095         This function needs more work, as others have pointed out.
9096
9097         * frame.h: Rename prev_frame to previous_frame.
9098         device_matches_console_spec no longer takes a `frame' arg.
9099
9100         * s/gnu.h:
9101         * s/linux.h:
9102         * s/hpux.h:
9103         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9104         From "Golubev I. N." <gin@mo.msk.ru>.
9105
9106         * make-src-depend: Fix typo.
9107
9108 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9109
9110         * window.c (Fnext_window):
9111         next_frame() might return nil, not a frame.
9112         Fixes this crash:
9113         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9114
9115         * frame.c (next_frame_internal):
9116         We've passed a frame if we've passed its device.
9117         Fixes this crash:
9118         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9119 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9120
9121 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9122
9123         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9124         Allow option to suppress accelerators in menu/dialog items.
9125         (populate_or_checksum_helper): Pass dialog title through above.
9126
9127 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9128
9129         * event-msw.c (mswindows_key_to_emacs_keysym):
9130         Add "pause" key, fix "menu" key.
9131
9132 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9133
9134         * eval.c (reinit_vars_of_eval):
9135         Increase max_lisp_eval_depth to 1000,
9136         required for thai-xtis.el to byte-compile under some circumstances.
9137
9138 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9139
9140         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9141         From Kenichi Handa.
9142
9143 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9144
9145         * make-src-depend: Make the generated Makefiles smaller.
9146
9147         * s/hpux.h (SETUP_SLAVE_PTY):
9148         Provide a %d in the format string for the errno argument.
9149
9150         * editfns.c (Ftemp_directory):
9151         Warning fix.
9152         Avoid buffer overrun on very long file name.
9153
9154         * input-method-xlib.c (XIM_init_device):
9155         6th parameter of XRegisterIMInstantiateCallback has different
9156         pointer types on different OSes, so simply cast to (void *).
9157
9158         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9159
9160         * sysdll.c (dll_open):
9161         shl_load will hang hard if passed a NULL filename.
9162         Simply return NULL for compatibility with dlopen.
9163         * sysdll.c: Conform to XEmacs coding standards.
9164
9165         * sysdep.c (get_pty_max_bytes):
9166         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9167
9168 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9169
9170         * tooltalk.c: Add #include <syssignal.h>
9171
9172 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9173
9174         * s/hpux.h: Don't use undefined function sigunblock().
9175
9176 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9177
9178         * config.h.in: Add HAVE_BALLOON_HELP.
9179         * emacs.c: Use HAVE_BALLOON_HELP.
9180         * Makefile.in.in (x_objs):
9181         Make Balloon Help conditional on finding shape.h.
9182
9183 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9184
9185         * syntax.c (regex_emacs_buffer_p): New variable.
9186         * syntax.h (regex_emacs_buffer_p): extern.
9187         * search.c (looking_at_1):
9188         (string_match_1):
9189         (fast_string_match):
9190         (search_buffer): Set regex_emacs_buffer_p.
9191         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9192         when before_dot, at_dot, after_dot.
9193
9194 2000-08-23  Andy Piper  <andy@xemacs.org>
9195
9196         * gui-x.c (popup_selection_callback): Only set action_occurred
9197         when we really have an image instance.
9198         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9199
9200 2000-08-23  Andy Piper  <andy@xemacs.org>
9201
9202         * gui-msw.c (mswindows_handle_gui_wm_command): set
9203         action_occurred.
9204         * gui-x.c (popup_selection_callback): ditto.
9205
9206         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9207         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9208         (struct Lisp_Image_Instance): add action_occurred flag.
9209
9210         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9211         (image_instance_changed): ditto.
9212         (reset_frame_subwindow_instance_cache): only unmap windows - do
9213         not remove them from the cache also.
9214
9215         * glyphs-widget.c (tab_control_update): better debug.
9216         (progress_gauge_update): ditto.
9217         (layout_update): ditto.
9218         (layout_instantiate): ditto.
9219         (tab_control_order_only_changed): cope with null pending items.
9220
9221         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9222         debug. Force selection of an item when an action occurred. Cope
9223         with null pending_items.
9224         (mswindows_progress_gauge_redisplay): better debug.
9225         * glyphs-x.c (x_tab_control_redisplay): ditto.
9226
9227         * redisplay.c (redisplay_frame): reset the frame cache if the
9228         frame is garbaged.
9229
9230         * window.c (Fset_window_configuration): potentially re-enable
9231         frame cache reset.
9232         (window_unmap_subwindows): need to finalize instances here since
9233         it is only used in mark_window_as_deleted.
9234
9235 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9236
9237         * nas.c (SndOpenDataForReading):
9238         nas.c (WaveOpenDataForReading):
9239         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9240         Somehow escaped from the 2000-08-14 patch.
9241
9242 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9243
9244         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9245         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9246
9247 2000-08-21  Andy Piper  <andy@xemacs.org>
9248
9249         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9250         window if it is not already displayed.
9251
9252         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9253         it is not already displayed.
9254
9255         * window.c (Fset_window_configuration): don't reset the frame
9256         cache.
9257
9258         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9259         instances from the frame cache if we are actually finalizing them.
9260         (reset_frame_subwindow_instance_cache): reset frame cache only
9261         after unmapping everything.
9262         (map_subwindow): set displayed flag after mapping.
9263
9264 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9265
9266         * data.c (indirect_function):
9267         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9268
9269         * eval.c (function_argcount):
9270         Use original function when signaling errors.
9271
9272 2000-08-18  Andy Piper  <andy@xemacs.org>
9273
9274         * frame.c (delete_frame_internal): use new
9275         free_frame_subwindow_instances name.
9276
9277         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9278         (add_tab_item): make return type correct.
9279         (mswindows_tab_control_instantiate): assert index of tab.
9280         (mswindows_tab_control_redisplay): Re-code to use
9281         gui_item_equal_sans_selected and gui_item_list_find_selected.
9282
9283         * glyphs-widget.c (tab_control_update): Correct comment.
9284
9285         * window.c (window_unmap_subwindows): use new
9286         unmap_subwindow_instance_cache_mapper.
9287         (window_unmap_subwindows_cache_mapper): deleted.
9288         (Fset_window_configuration): comparisons should now be with
9289         EQ. Preserve the subwindow instance cache across configuration
9290         changes.
9291         (allocate_window): ditto.
9292         (make_dummy_parent): ditto.
9293
9294         * glyphs.c (free_frame_subwindow_instances): rename from
9295         free_frame_subwindow_instance_cache. finalize all instances rather
9296         than just those in the display cache.
9297         (finalize_all_subwindow_instances): walk windows unmapping and
9298         finalizing subwindows.
9299         (unmap_subwindow_instance_cache_mapper): moved from
9300         window.c. Allow finalization as well as unmapping.
9301
9302         * gui.c (gui_item_list_find_selected): new function.
9303
9304         * gui.h (gui_item_list_find_selected): declare.
9305
9306         * glyphs-x.c (x_tab_control_redisplay): pick tab
9307         explicitly. Re-code to use gui_item_equal_sans_selected and
9308         gui_item_list_find_selected.
9309
9310         * glyphs-x.h: add lwlib-utils.h
9311
9312         * buffer.c (Frecord_buffer): undo previous change.
9313
9314 2000-08-09  Vin Shelton  <acs@xemacs.org>
9315
9316         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9317         possible.  Create temporary files more securely.  The patch was
9318         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9319         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9320         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9321         for details.
9322
9323 2000-08-07  Ben Wing  <ben@xemacs.org>
9324
9325         * getloadavg.c: remove duplicate (and windows-breaking)
9326         includes of fcntl.h and sys/file.h.
9327
9328         * nt.c: remove duplicate getloadavg() definition.
9329
9330         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9331         encodings.
9332
9333 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9334
9335         * eval.c (function_argcount): If function needs to be autoloaded
9336         actually use the loaded definition.
9337         GCPRO function.
9338
9339 2000-08-05  Ben Wing  <ben@xemacs.org>
9340
9341         * getloadavg.c: add prototype for getloadavg().  remove
9342         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9343         of the code).  remove duplicate header includes.
9344
9345         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9346
9347         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9348         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9349         useful load average.
9350
9351         * alloc.c (reinit_alloc_once_early): removed references to
9352         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9353         the lisp vars are the only things referencing the malloc_sbrk_*
9354         vars, and they were already if 0'd out.  these vars only exist
9355         in the older malloc.c, which is basically unused, and they're
9356         only for informational purposes.
9357
9358         * m\*.h: removed useless VIRT_ADDR_VARIES.
9359
9360         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9361
9362 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9363
9364         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9365         color if the image is a mono pixmap.
9366
9367 2000-07-30  Ben Wing  <ben@xemacs.org>
9368
9369         * Makefile.in.in (release):
9370         Remove stray @.
9371
9372         * buffer.c (directory_is_current_directory):
9373         * dired-msw.c (mswindows_get_files):
9374         * dired.c:
9375         * dired.c (Fdirectory_files):
9376         * dired.c (file_name_completion_stat):
9377         * dired.c (Ffile_attributes):
9378         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9379         preprocessor tricks, to avoid problems on some machines
9380         (e.g. SCO).
9381
9382         * callproc.c (egetenv): GC docs.
9383
9384         * console-msw.h:
9385         * console-msw.h (struct mswindows_dialog_id):
9386         * lrecord.h (lrecord_type):
9387         New object for use with MSW dialogs.
9388
9389         * console.h (struct console_methods):
9390         New enable/disable frame methods, for proper modal dialogs.
9391
9392         * device-msw.c (msprinter_default_printer): Fix to follow
9393         proper Mule conventions.
9394
9395         * device-msw.c:
9396         * device-msw.c (signal_open_printer_error):
9397         * device-msw.c (msprinter_init_device):
9398         * device-msw.c (ensure_not_printing):
9399         * device-msw.c (plist_get_margin):
9400         * device-msw.c (Fmsprinter_select_settings):
9401         * device-msw.c (finalize_devmode):
9402         * device-msw.c (Fmsprinter_settings_despecialize):
9403         * device-msw.c (signal_enum_priner_error):
9404         * extents.c (decode_extent):
9405         * extents.c (decode_map_extents_flags):
9406         * extents.c (decode_extent_at_flag):
9407         * extents.c (Fextent_at):
9408         * extents.c (Fextents_at):
9409         * extents.c (symbol_to_glyph_layout):
9410         [[[[2]]]] Use structured errors.
9411
9412         * dialog-msw.c:
9413         * dialog-msw.c (mswindows_is_dialog_msg):
9414         * dialog-msw.c (mark_mswindows_dialog_id):
9415         * dialog-msw.c (dialog_proc):
9416         * dialog-msw.c (handle_question_dialog_box):
9417         * dialog-msw.c (syms_of_dialog_mswindows):
9418         Define new object to clean up marking; use it as a dialog identifier.
9419         Call new delete-dialog-box-hook.
9420
9421         * dialog-x.c (dbox_selection_callback):
9422         * dialog-x.c (dbox_descriptor_to_widget_value):
9423         * dialog-x.c (x_make_dialog_box_internal):
9424         Call new delete-dialog-box-hook.
9425         Return an id.
9426
9427         * dialog.c:
9428         * dialog.c (syms_of_dialog):
9429         * dialog.c (vars_of_dialog):
9430         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9431
9432         * eval.c:
9433         * eval.c (signal_call_debugger):
9434         when noninteractive, output stack traces on the console instead
9435         of in a (never-seen) buffer.
9436
9437         * eval.c (signal_type_error):
9438         * eval.c (invalid_argument_2):
9439         * lisp.h:
9440         new funs for use w/structured errors.
9441
9442         * event-Xt.c:
9443         * event-Xt.c (x_to_emacs_keysym):
9444         * event-Xt.c (describe_event):
9445         * event-Xt.c (emacs_Xt_event_handler):
9446         * event-Xt.c (vars_of_event_Xt):
9447         * event-msw.c:
9448         * event-msw.c (mswindows_wnd_proc):
9449         * event-msw.c (vars_of_event_mswindows):
9450         rename {x,mswindows}-debug-events to debug-{}-events for
9451         consistency with other debug-foo variables.
9452
9453         * event-stream.c:
9454         document next-event more clearly.
9455
9456         * fileio.c (Ffile_name_directory):
9457         * fileio.c (Ffile_name_nondirectory):
9458         * fileio.c (Funhandled_file_name_directory):
9459         * fileio.c (file_name_as_directory):
9460         * fileio.c (Ffile_name_as_directory):
9461         * fileio.c (directory_file_name):
9462         * fileio.c (Fdirectory_file_name):
9463         * fileio.c (Fmake_temp_name):
9464         * fileio.c (Ffile_truename):
9465         * fileio.c (Fsubstitute_in_file_name):
9466         * fileio.c (expand_and_dir_to_file):
9467         * fileio.c (barf_or_query_if_file_exists):
9468         * fileio.c (check_executable):
9469         * fileio.c (Ffile_exists_p):
9470         * fileio.c (Ffile_writable_p):
9471         * fileio.c (Ffile_directory_p):
9472         * fileio.c (Ffile_regular_p):
9473         * fileio.c (Ffile_modes):
9474         * fileio.c (Ffile_newer_than_file_p):
9475         * fileio.c (Fverify_visited_file_modtime):
9476         * fileio.c (Fset_visited_file_modtime):
9477         * fileio.c (auto_save_1):
9478         (1). (2).
9479         fix up gcpro's.
9480
9481         * frame-msw.c:
9482         * frame-msw.c (mswindows_init_frame_1):
9483         * frame-msw.c (mswindows_enable_frame):
9484         * frame-msw.c (error_frame_unsizable):
9485         * frame-msw.c (msprinter_init_frame_1):
9486         * frame-msw.c (msprinter_init_frame_3):
9487         * frame-msw.c (console_type_create_frame_mswindows):
9488         (2).
9489         implement new enable/disable frame methods.
9490
9491         * frame-x.c:
9492         * frame-x.c (x_enable_frame):
9493         * frame-x.c (console_type_create_frame_x):
9494         implement new enable/disable frame methods.
9495
9496         * frame.c:
9497         * frame.c (Fdisable_frame):
9498         * frame.c (syms_of_frame):
9499         * frame.h (struct frame):
9500         implement new enable/disable frame methods/functions.
9501
9502         * general-slots.h:
9503         add initial-focus.
9504
9505         * glyphs-msw.c (mswindows_widget_instantiate):
9506         comment that initial-focus should be implemented.
9507
9508         * glyphs-widget.c:
9509         * glyphs-widget.c (check_valid_instantiator):
9510         * glyphs-widget.c (check_valid_orientation):
9511         * glyphs-widget.c (check_valid_tab_orientation):
9512         * glyphs-widget.c (check_valid_justification):
9513         * glyphs-widget.c (check_valid_border):
9514         * glyphs-widget.c (check_valid_callback):
9515         * glyphs-widget.c (check_valid_int_or_function):
9516         * glyphs-widget.c (check_valid_string_or_vector):
9517         * glyphs-widget.c (check_valid_item_list_1):
9518         * glyphs-widget.c (widget_validate):
9519         * glyphs-widget.c (combo_box_validate):
9520         * glyphs-widget.c (widget_instantiate):
9521         * glyphs-widget.c (syms_of_glyphs_widget):
9522         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9523         * glyphs-widget.c (image_instantiator_combo_box):
9524         * glyphs-widget.c (image_instantiator_scrollbar):
9525         * glyphs-widget.c (image_instantiator_tab_control):
9526         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9527         (2).
9528         support (unimplemented) keyword initial-focus.
9529         reindent long macros.
9530
9531         * glyphs-x.c (x_redisplay_widget):
9532         * glyphs-x.c (x_button_instantiate):
9533         * glyphs-x.c (x_button_redisplay):
9534         * glyphs-x.c (x_progress_gauge_instantiate):
9535         * glyphs-x.c (x_edit_field_instantiate):
9536         * glyphs-x.c (x_combo_box_instantiate):
9537         * glyphs-x.c (x_tab_control_instantiate):
9538         * glyphs-x.c (x_label_instantiate):
9539         * gui-x.c:
9540         * gui-x.c (button_item_to_widget_value):
9541         * gui-x.c (gui_items_to_widget_values_1):
9542         * gui-x.c (gui_item_children_to_widget_values):
9543         * gui-x.c (gui_items_to_widget_values):
9544         * gui-x.h:
9545         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9546         add new flag to gui-parsing routines to indicate whether
9547         accelerator specs should be supported.
9548
9549         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9550
9551         * glyphs.h (struct Lisp_Image_Instance):
9552         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9553         add initial-focus flag.
9554
9555         * gui.c:
9556         * gui.c (syms_of_gui):
9557         * gui.c (vars_of_gui):
9558         clean up menu-no-selection-hook.
9559
9560         * gui.h:
9561         support delete-dialog-box-hook.
9562
9563         * lread.c (Fload_internal):
9564         * lread.c (locate_file_in_directory_mapper):
9565         (1).
9566
9567         * lrecord.h:
9568         * lrecord.h (struct toolbar_button):
9569         * lrecord.h (syms_of_toolbar):
9570         document how to create a new object.
9571
9572         * menubar-msw.c (mswindows_char_is_accelerator):
9573         may be called on frames w/o menus.
9574
9575         * menubar.c (vars_of_menubar):
9576         clean up :filter docs.
9577
9578         * nt.c (readdir):
9579         * ntproc.c:
9580         (1).
9581
9582         * process-nt.c:
9583         * process-nt.c (validate_signal_number):
9584         * process-nt.c (signal_cannot_launch):
9585         * process-nt.c (nt_create_process):
9586         * process-nt.c (nt_send_process):
9587         * process-nt.c (nt_kill_child_process):
9588         * process-nt.c (nt_open_network_stream):
9589         * process-nt.c (syms_of_process_nt):
9590         (2).
9591         delete quote-handling.  call new lisp code that does it better.
9592
9593         * process-unix.c (connect_to_file_descriptor):
9594         * process-unix.c (allocate_pty):
9595         * process-unix.c (unix_send_process):
9596         * process-unix.c (unix_kill_child_process):
9597         * process-unix.c (unix_open_network_stream):
9598         * process-unix.c (unix_open_multicast_group):
9599         (1). (2).
9600
9601         * process.c:
9602         * process.c (Fstart_process_internal):
9603         (2).  need to canonicalize process path even if absolute.
9604
9605         * select-msw.c (symbol_to_ms_cf):
9606         * select-msw.c (ms_cf_to_symbol):
9607         * select-msw.c (cf_is_autofreed):
9608         * select-msw.c (mswindows_destroy_selection):
9609         * select.c:
9610         * select.c (syms_of_select):
9611         * select.h:
9612         support dibv5, fix bugs. (from Mike Alexander)
9613
9614         * select.c (Fget_selection_internal):
9615         * select.c (select_convert_out):
9616
9617         * sysdep.c:
9618         * sysdep.c (xemacs_stat):
9619         renamed.
9620
9621         * sysdep.c (mkdir):
9622         * sysdep.c (rmdir):
9623         but keep original stat() here because we provide encapsulation
9624         around these funs.
9625
9626         * sysfile.h:
9627         * sysfile.h (fstat):
9628         remove stat garbage.
9629
9630         * syswindows.h:
9631         fix X/MSW conflict.
9632         don't include tchar.h.  it's inappropriate because it makes
9633         compile-time distinctions when we want runtime distinctions.
9634         (we provide our own tchar replacements)
9635
9636         * toolbar.c:
9637         use default object printer for toolbar-button.
9638
9639         * unexcw.c:
9640         make sure we don't encapsulate.
9641
9642         * window.c (vars_of_window):
9643         emphasize that temp-buffer-show-hook is obsolete.
9644
9645 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9646
9647         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9648         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9649
9650         * events.c (Fevent_timestamp_lessp):
9651         Not 64-bit clean.  Use EMACS_INT, not int.
9652
9653 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9654
9655         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9656         unsigned int and changed the last enum to
9657         lrecord_type_last_built_in_type.
9658         (lrecord_implementations_table): changed prototype to know how
9659         long the array is supposed to be.
9660         (lrecord_type_count): new unsigned int to keep track of the
9661         current number of lisp lrecord types.
9662         (DEFINE_EXTERNAL_LRECORD):
9663         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9664         dynamic-modules to declare new lisp types. They are the same
9665         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9666         int for each new type, and increment lrecord_type_count by 1.
9667
9668         * alloc.c (lrecord_implementations_table): Changed to reference
9669         lrecord_type_last_built_in_type for the size of the array.
9670         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9671
9672 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9673
9674         * glyphs.h (check_valid_item_list): Renamed from
9675         check_valid_item_list_1.
9676
9677 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9678
9679         * select.c (Qselect_coerce): New.
9680         * select.c (Vselection_coercion_alist): New.
9681         * select.c (syms_of_select): Declare.
9682         * select.c (get-selection-internal): Use it.
9683         Use the new select-coerce functionality.
9684
9685         * select.c (select_coerce): New.
9686         * select.h (select_coerce): Declare.
9687         New function to coerce one type of data into another.
9688
9689 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9690
9691         * callproc.c (Fcall_process_internal):
9692         (Fcall_process_internal):
9693         * process-unix.c (unix_create_process):
9694         Save and restore the value of errno, so that error messages are accurate.
9695
9696 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9697
9698         * elhash.c (print_hash_table):
9699         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9700         Prettify docstrings and indentation.
9701
9702 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9703
9704         * window.c (Fwindow_pixel_edges): Subtract frame border and
9705         gutter size.
9706
9707 2000-07-31  Andy Piper  <andy@xemacs.org>
9708
9709         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9710         will acknowledge the change.
9711
9712         * glyphs.h: declare tab_control_order_only_changed.
9713
9714         * glyphs-x.c (x_tab_control_redisplay): use
9715         tab_control_order_only_changed.
9716
9717         * glyphs-widget.c (tab_control_order_only_changed): new function.
9718
9719         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9720         tab_control_order_only_changed.
9721
9722         * gui.c (gui_item_equal_sans_selected): new function.
9723         (gui_item_equal): use it.
9724
9725         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9726         :properties in favor of :items..
9727
9728         * glyphs-widget.c (check_valid_item_list): rename from
9729         check_valid_item_list_1.
9730         (check_valid_item_list_1): renamed.
9731         (combo_box_validate): deprecate :properties in favor of :items.
9732         (widget_instantiate): ditto.
9733         (tab_control_update): ditto.
9734         (image_instantiator_combo_box): ditto.
9735         (image_instantiator_tree_view): ditto.
9736         (image_instantiator_tab_control): ditto.
9737         (layout_post_instantiate): remove dead code.
9738
9739         * print.c (debug_print_no_newline): only write to debugger if in
9740         WIN32_NATIVE.
9741
9742         * elhash.c (Fmake_hash_table): update doc string.
9743
9744         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9745         messages whilst in GC. This at least stops XEmacs crashing but has
9746         the potential for wierd behaviour.
9747
9748 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9749
9750         * config.h.in:
9751         Make existence of s&m files optional.
9752
9753         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9754         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9755         * s/gnu.h: Remove HAVE_GETLOADAVG.
9756         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9757         * s/sol2.h: Remove HAVE_GETLOADAVG.
9758         * lisp.h: Remove getloadavg() declaration.
9759         * fns.c:
9760         Include <sys/loadavg.h> if available.
9761         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9762         * config.h.in:  Group together getloadavg()-related macros.
9763         Use only configure-time tests to detect getloadavg().
9764
9765 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9766
9767         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9768
9769 2000-07-25  Andy Piper  <andy@xemacs.org>
9770
9771         * syswindows.h: add tchar.h for native builds.
9772
9773         * frame.c (syms_of_frame): remove set-glyph-image.
9774
9775         * general-slots.h: add Qset_glyph_image.
9776
9777         * glyphs-widget.c (layout_update): add domain arg to
9778         set-glyph-image.
9779         (syms_of_glyphs_widget): remove set-glyph-image.
9780
9781 2000-07-23  Ben Wing  <ben@xemacs.org>
9782
9783         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9784         Vpopup_frame_list.
9785
9786 2000-07-22  Andy Piper  <andy@xemacs.org>
9787
9788         * symsinit.h: add syms_of_win32().
9789
9790         * gui-msw.c (syms_of_gui_mswindows): remove
9791         Fmswindows_shell_execute.
9792         (Fmswindows_shell_execute): moved to win32.c.
9793
9794         * emacs.c (main_1): add syms_of_win32 ().
9795
9796         * win32.c (init_potentially_nonexistent_functions): rewrite in
9797         compiler-friendly terms.
9798         (Fmswindows_shell_execute): move here from gui-msw.c.
9799         (syms_of_win32): new.
9800
9801         * device-msw.c (Fmswindows_printer_list): clean up args to
9802         EnumPrinters.
9803         Don't include tchar under cygwin or mingw.
9804         (msprinter_default_printer): make cygwin-friendly.
9805
9806 2000-07-21  Andy Piper  <andy@xemacs.org>
9807
9808         * glyphs-widget.c (image_instantiator_tree_view): use tab
9809         control's update function.
9810         (layout_property): new function. Retrieve items.
9811
9812         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9813         function. Re-populate the tree view from the pending items.
9814
9815         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9816         is designated the parent if the domain is an image instance. This
9817         is needed so that dirtiness can be cascade up the hierarchy and
9818         thus for layout children to be redisplayed correctly.
9819         (allocate_image_instance): rename glyph -> parent.
9820
9821         * redisplay.h: change redisplay_output_layout signature.
9822
9823         * redisplay-msw.c (mswindows_output_display_block): use domain
9824         arg.
9825
9826         * redisplay-x.c (x_output_display_block): use domain arg.
9827
9828 2000-07-10  Andy Piper  <andy@xemacs.org>
9829
9830         * window.c (Fset_window_configuration): add comment.
9831
9832         * redisplay-output.c (compare_runes):
9833         (redisplay_output_subwindow): redisplay rather than update subwindow.
9834         (redisplay_output_layout): ditto.
9835
9836         * redisplay-msw.c (mswindows_frame_output_end):
9837         (mswindows_frame_output_end): make defer window pos optional.
9838
9839         * lisp.h: add Flast.
9840
9841         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9842         normalize method. Change update method to be for changed
9843         instantiators. Add redisplay method. Change signature of layout
9844         method.
9845         (struct Lisp_Image_Instance): add instantiator.
9846         (IMAGE_INSTANCE_INSTANTIATOR): new.
9847         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9848         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9849         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9850
9851         * glyphs.c:
9852         (find_instantiator_differences): new function.
9853         (Fset_instantiator_property): new convenience function.
9854         (check_image_instance_structure): strictly check for vector
9855         instantiators.
9856         (normalize_image_instantiator): make non-static.
9857         (instantiate_image_instantiator): pass on dest_mask and use new
9858         signatures for image_instance_layout and friends.
9859         (mark_image_instance): mark the instantiator. Mark the subwindow
9860         face not the widget face.
9861         (image_instance_equal): add instantiator.
9862         (image_instance_hash): ditto.
9863         (allocate_image_instance): ditto.
9864         (Fset_image_instance_property): removed.
9865         (Fimage_instance_file_name): ditto.
9866         (Fcolorize_image_instance): ditto.
9867         (image_instance_layout): add offsets to be set.
9868         (update_image_instance): new function. update an image instance
9869         from its changed instantiator.
9870         (inherit_normalize): add dest_mask.
9871         (xbm_normalize): ditto.
9872         (xface_normalize): ditto.
9873         (xpm_normalize): ditto.
9874         (text_update): set_property -> update.
9875         (image_instantiate): use the glyph identity as a hash key, not the
9876         instantiator.
9877         (glyph_width): use new image_instance_layout signature.
9878         (glyph_ascent): ditto.
9879         (glyph_descent): ditto.
9880         (glyph_height): ditto.
9881         (glyph_query_geometry): ressurrect.
9882         (glyph_layout): ditto.
9883         (redisplay_subwindow): update -> redisplay.
9884         (syms_of_glyphs): add Fset_instantiator_property.
9885         (image_instantiator_format_create): set_property -> update.
9886
9887         * glyphs-x.c:
9888         (autodetect_normalize): add dest_maks to signature.
9889         (x_redisplay_subwindow): update -> redisplay.
9890         (x_redisplay_widget): ditto.
9891         (x_button_redisplay): ditto.
9892         (x_progress_gauge_redisplay): ditto.
9893         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9894         stacking order.
9895         (console_type_create_glyphs_x): update -> redisplay.
9896         (image_instantiator_format_create_glyphs_x): ditto.
9897
9898         * glyphs-widget.c:
9899         (check_valid_instantiator): disallow glyphs in the instantiator,
9900         they must now be vectors.
9901         (check_valid_instantiator_list): ditto.
9902         (glyph_instantiator_to_glyph): use internal symbol rather than
9903         intern.
9904         (widget_update): renamed from widget_set_property. Call cascaded
9905         update methods.
9906         (redisplay_widget): renamed from update_widget.
9907         (widget_layout): image_instance_layout now takes position as well
9908         as size.
9909         (widget_normalize): ditto.
9910         (widget_instantiate): ditto.
9911         (tab_control_query_geometry) ditto.:
9912         (tab_control_update): renamed from tab_control_set_property.
9913         (progress_gauge_update): set_property -> update.
9914         (layout_normalize): rewrite so that child instantiators are
9915         normalized also.
9916         (layout_update): new function. Create glyphs from the normalized
9917         children and cope with any other layout keywords. We do not
9918         instantiate children here that will be take care of by
9919         redisplay_output_layout.
9920         (layout_instantiate): call layout_update and not much else.
9921         (layout_post_instantiate): not sure whether this is needed
9922         anymore.
9923         (layout_query_geometry): query glyph geometry rather than
9924         image_instance geometry.
9925         (layout_layout): set offsets from pass in parameters. Use glyph
9926         geometry and layout functions rather than image instance ones.
9927         (native_layout_layout): ditto.
9928         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9929         (image_instantiator_widget): set_property -> update.
9930         (image_instantiator_buttons): ditto.
9931         (image_instantiator_progress_guage): ditto.
9932         (image_instantiator_tab_control): ditto.
9933         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9934         (image_instantiator_layout): add update method.
9935
9936         * glyphs-msw.c (bmp_normalize):
9937         (mswindows_resource_normalize): add dest_mask so that it can be
9938         proprogated by layout_normalize.
9939         (begin_defer_window_pos): make optional because it may not be the
9940         right thing to do and it introduces differences with X.
9941         (mswindows_unmap_subwindow): ditto.
9942         (mswindows_map_subwindow): ditto.
9943         (mswindows_redisplay_subwindow): renamed from
9944         mswindows_update_subwindow.
9945         (mswindows_redisplay_widget): ditto.
9946         (mswindows_button_redisplay): renamed from
9947         mswindows_button_update. Update is now what the instantiation
9948         function does for a changed instantiator.
9949         (mswindows_progress_gauge_instantiate): set the progress value
9950         here if appropriate.
9951         (mswindows_tab_control_redisplay): cope with re-ordering of the
9952         members of the tab widget by simply selecting the new top
9953         widget. This makes things appear ok if you click on a tab.
9954         (mswindows_combo_box_instantiate): image_instance_layout now takes
9955         position as well as size.
9956         (mswindows_progress_gauge_redisplay): renamed from
9957         mswindows_progress_gauge_update.
9958         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9959         (image_instantiator_format_create_glyphs_mswindows): ditto.
9960
9961         * glyphs-eimage.c (jpeg_normalize):
9962         (gif_normalize):
9963         (png_normalize):
9964         (tiff_normalize): add dest_mask so that it can be proprogated by
9965         layout_normalize.
9966
9967         * elhash.c:
9968         (print_hash_table):
9969         (hash_table_weakness_validate):
9970         (decode_hash_table_weakness):
9971         (Fhash_table_weakness):
9972         (Fhash_table_type):
9973         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9974
9975         * console.h (struct console_methods): move update_* to
9976         redisplay_*.
9977
9978 2000-07-20  Ben Wing  <ben@xemacs.org>
9979
9980         * *.[ch] (XSETOBJ): remove unused middle argument.
9981         lisp-disunion.h: correct wrap_object() to one argument.
9982
9983 2000-07-15  Ben Wing  <ben@xemacs.org>
9984
9985         * s/cygwin32.h:
9986         * s/cygwin32.h (CYGWIN_CONV_PATH):
9987         Add missing logb prototype for v1.1.
9988         Use post-b20 names and alias to pre-b20 names when pre-b20.
9989
9990         * s/windowsnt.h: [5].
9991
9992 2000-07-15  Ben Wing  <ben@xemacs.org>
9993
9994         * Makefile.in.in (x_objs):
9995         * Makefile.in.in (sheap_objs):
9996         * Makefile.in.in (objs):
9997         added win32.o, cosmetic cleanups.
9998
9999         * alloc.c (Fmake_byte_code):
10000         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10001         etc. macros which declare their own args now.
10002
10003         * alloc.c (syms_of_alloc):
10004         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10005
10006         * buffer.c:
10007         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10008
10009         * buffer.c (Fget_file_buffer):
10010         Fixed GCPRO problem.
10011
10012         * buffer.c (get_truename_buffer):
10013         Fixed comment about GC checking.
10014
10015         * buffer.c (syms_of_buffer):
10016         Undeclared those dedicated frame funs.
10017         [2].
10018
10019         * buffer.h:
10020         Define convenience macros for internal/external conversions.
10021         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10022         and Qenvironment_variable_encoding for cleaner code.
10023
10024         * bufslots.h:
10025         Remove dedicated-frame; in lisp.
10026
10027         * bytecode.c (funcall_compiled_function):
10028         [1].
10029
10030         * bytecode.c (syms_of_bytecode):
10031         [2].
10032
10033         * console-msw.c:
10034         * console-msw.c (mswindows_show_console): Rewrote.
10035
10036         * console-msw.c (Fmswindows_debugging_output): New.
10037         Sends to OutputDebugString (special MSWin debugger interface).
10038
10039         * console-msw.c (Fmswindows_message_box):
10040         Fixed stupid bugs so it works when called from kill-emacs.
10041
10042         * console-msw.c (syms_of_console_mswindows):
10043         Declare Fmswindows_debugging_output.
10044
10045         * console-msw.h:
10046         New MSWin prototypes.
10047
10048         * console-msw.h (struct mswindows_frame):
10049         New entry last-click-mods for improved button-modifier support.
10050
10051         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10052         New struct entry `popup' with corresponding accessor.
10053
10054         * console-x.c:
10055         * console-x.c (split_up_display_spec):
10056         * console-x.c (get_display_arg_connection):
10057         * console-x.c (x_semi_canonicalize_console_connection):
10058         * console-x.c (x_canonicalize_device_connection):
10059         [[[6]]]: Change char to more specific type.
10060         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10061
10062         * console-x.c (x_semi_canonicalize_console_connection):
10063         * console-x.c (x_canonicalize_device_connection):
10064         [[[9]]]: Fix up error signalling to use new structured error system.
10065
10066         * console-x.h:
10067         [[[4]]]: Define codesys aliases:
10068         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10069         Qx_color_name_encoding, Qx_display_name_encoding.
10070
10071         * console.h (struct console_methods):
10072         New method make_dialog_box_internal supersedes older
10073         popup_dialog_box method.
10074
10075         * data.c:
10076         Define many new errors, part of new structured errors.
10077
10078         * data.c (init_errors_once_early):
10079         * data.c (syms_of_data):
10080         [2].
10081
10082         * device-msw.c (mswindows_init_device):
10083         [[[5]]]: Cleanup to support NT 3.51.
10084
10085         * device-msw.c (decode_devmode): Cleanup.
10086
10087         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10088         * device-msw.c (mswindows_handle_print_dialog_box):
10089         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10090         * device-msw.c (syms_of_device_mswindows):
10091         Delete the dialog box primitives recently introduced by Kirill and
10092         instead interface to general dialog box interface.
10093
10094         * device-x.c:
10095         * device-x.c (compute_x_app_name):
10096         * device-x.c (x_init_device):
10097         * device-x.c (Fx_valid_keysym_name_p):
10098         * device-x.c (Fx_set_font_path):
10099         [6].
10100         [7].
10101
10102         * device.h (wrap_device): New.
10103         First of its kind; meant to replace XSETDEVICE.
10104
10105         * dialog-msw.c: Many file-dialog symbols.
10106
10107         * dialog-msw.c (mswindows_register_popup_frame): New.
10108         * dialog-msw.c (mswindows_is_dialog_msg): New.
10109         For supporting kbd traversal in dialog boxes.
10110
10111         * dialog-msw.c (dialog_proc):
10112         Support hitting ESC in dialogs.
10113
10114         * dialog-msw.c (struct):
10115         Common dialog box errors.
10116
10117         * dialog-msw.c (handle_file_dialog_box): New.
10118         Add file dialog code.
10119
10120         * dialog-msw.c (handle_question_dialog_box):
10121         Redo existing code to support new question dialog syntax.
10122
10123         * dialog-msw.c (console_type_create_dialog_mswindows):
10124         We support new dialog console method.
10125
10126         * dialog-msw.c (syms_of_dialog_mswindows):
10127         * dialog-msw.c (vars_of_dialog_mswindows):
10128         New file dialog symbols, vars.
10129
10130         * dialog-x.c:
10131         * dialog-x.c (maybe_run_dbox_text_callback):
10132         * dialog-x.c (dbox_descriptor_to_widget_value):
10133         * dialog-x.c (x_make_dialog_box_internal):
10134         * dialog-x.c (console_type_create_dialog_x):
10135         Mule-ize entire file.
10136         Redo to support question dialog syntax.
10137         [6].
10138
10139         * dialog.c:
10140         * dialog.c (Fmake_dialog_box_internal):
10141         * dialog.c (syms_of_dialog):
10142         Kill old popup-dialog-box, replace with new primitive.
10143         Just call device method or signal error.
10144
10145         * eldap.c (Fldap_open):
10146         * eldap.c (Fldap_search_basic):
10147         * eldap.c (Fldap_add):
10148         * eldap.c (Fldap_modify):
10149         [1].
10150         [7].
10151
10152         * emacs.c:
10153         * emacs.c (make_arg_list_1):
10154         * emacs.c (make_arg_list):
10155         Mule-ize call to dll_init().
10156         [6].
10157         [8].
10158
10159         * emacs.c (make_argc_argv):
10160         * emacs.c (free_argc_argv):
10161         * emacs.c (init_cmdargs):
10162         * emacs.c (main_1):
10163         * emacs.c (Fkill_emacs):
10164         * emacs.c (Fdump_emacs):
10165         Update comments about what can be used in syms_* etc.
10166         Call init_win32() when necessary.
10167         Fix up MS Win dialog box in kill-buffer to actually work right.
10168         [7].
10169
10170         * eval.c:
10171         * eval.c (For):
10172         * eval.c (Fand):
10173         * eval.c (Fprogn):
10174         * eval.c (Fprog1):
10175         * eval.c (Fprog2):
10176         * eval.c (FletX):
10177         * eval.c (Flet):
10178         * eval.c (condition_case_3):
10179         * eval.c (Feval):
10180         * eval.c (function_argcount):
10181         * eval.c (funcall_lambda):
10182         [1].
10183
10184         * eval.c (type_error): New.
10185         * eval.c (maybe_type_error): New.
10186         * eval.c (continuable_type_error): New.
10187         * eval.c (maybe_continuable_type_error): New.
10188         * eval.c (type_error_with_frob): New.
10189         * eval.c (maybe_type_error_with_frob): New.
10190         * eval.c (continuable_type_error_with_frob): New.
10191         * eval.c (maybe_continuable_type_error_with_frob): New.
10192         New functions for use with structured errors.
10193
10194         * event-Xt.c:
10195         * event-Xt.c (x_event_to_emacs_event):
10196         Buttons are now modifiers too.
10197
10198         * event-Xt.c (emacs_Xt_current_event_timestamp):
10199         Implement new event method.
10200         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10201
10202         * event-msw.c:
10203         * event-msw.c (ntpipe_shove_writer): [5].
10204         * event-msw.c (mswindows_enqueue_mouse_button_event):
10205         * event-msw.c (mswindows_drain_windows_queue):
10206         * event-msw.c (mswindows_wnd_proc): [7].
10207         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10208         * event-msw.c (mswindows_modifier_state):
10209         Throughout: support new button modifiers.
10210
10211         * event-msw.c (emacs_mswindows_current_event_timestamp):
10212         Implement new event method.
10213         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10214
10215         * event-stream.c:
10216         * event-stream.c (event_stream_current_event_timestamp): New.
10217         * event-stream.c (maybe_kbd_translate): New functionality.
10218         * event-stream.c (vars_of_event_stream):
10219         Document new kbd-translate-table functionality.
10220
10221         * event-stream.c (Fcurrent_event_timestamp): New.
10222         New primitive for use in fabricated events.
10223         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10224
10225         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10226
10227         * events.c:
10228         * events.c (Fmake_event):
10229         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10230         [1].
10231         [9].
10232
10233         * events.c (format_event_object): fix gcc warnings.
10234
10235         * events.c (Fevent_timestamp): Document new primitives.
10236
10237         * events.c (TIMESTAMP_HALFSPACE): New.
10238
10239         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10240         comparing timestamps correctly (half-space algorithm).
10241
10242         * events.c (Fevent_modifier_bits): Doc fix.
10243
10244         * events.c (Fevent_modifiers): Major doc addition.
10245         * events.c (event_x_y_pixel_internal): Typo fix.
10246         * events.c (syms_of_events): Declare new primitives.
10247
10248         * events.h:
10249         Update long comment for button modifiers, timestamps.
10250
10251         * events.h (struct event_stream):
10252         New current_event_timestamp method.
10253
10254         * extents.c:
10255         * extents.c (extent_in_region_p):
10256         * extents.c (decode_extent):
10257         * extents.c (Fset_extent_parent):
10258         * extents.c (decode_map_extents_flags):
10259         Fix gcc warnings.
10260         [9].
10261
10262         * extents.c (struct extent_at_arg):
10263         * extents.c (decode_extent_at_flag):
10264         * extents.c (extent_at_mapper):
10265         * extents.c (extent_at_bytind):
10266         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10267         * extents.c (Fextents_at): New primitive. [9].
10268         * extents.c (symbol_to_glyph_layout): [9].
10269         Support new primitive `extents-at'.
10270
10271
10272         * extents.c (get_text_property_bytind):
10273         extent_at_bytind has another arg.
10274         [9].
10275
10276         * extents.c (syms_of_extents): New primitive.
10277
10278         * file-coding.c (Fmake_coding_system): [1].
10279         * file-coding.c (subsidiary_coding_system): fix gcc warning
10280         * file-coding.c (syms_of_file_coding): [2].
10281
10282         * fileio.c (Fexpand_file_name):
10283         * fileio.c (Fsysnetunam):
10284         * fileio.c (Ffile_exists_p):
10285         * fileio.c (Ffile_executable_p):
10286         * fileio.c (Fverify_visited_file_modtime):
10287         Clean up GCPROing.
10288
10289         * fileio.c (syms_of_fileio): [2].
10290
10291         * filelock.c (lock_file_1):
10292         * filelock.c (current_lock_owner):
10293         * filelock.c (lock_if_free):
10294         * filelock.c (lock_file):
10295         * filelock.c (unlock_file):
10296         Clean up GCPROing.
10297
10298         * fns.c (concat): Fix gcc warning.
10299
10300         * fns.c (Fmember):
10301         * fns.c (Fold_member):
10302         * fns.c (Fmemq):
10303         * fns.c (Fold_memq):
10304         * fns.c (memq_no_quit):
10305         * fns.c (Fassoc):
10306         * fns.c (Fold_assoc):
10307         * fns.c (Fassq):
10308         * fns.c (Fold_assq):
10309         * fns.c (assq_no_quit):
10310         * fns.c (Frassoc):
10311         * fns.c (Fold_rassoc):
10312         * fns.c (Frassq):
10313         * fns.c (Fold_rassq):
10314         * fns.c (rassq_no_quit):
10315         * fns.c (Fdelete):
10316         * fns.c (Fold_delete):
10317         * fns.c (Fdelq):
10318         * fns.c (Fold_delq):
10319         * fns.c (delq_no_quit):
10320         * fns.c (Fremassoc):
10321         * fns.c (Fremassq):
10322         * fns.c (remassq_no_quit):
10323         * fns.c (Fremrassoc):
10324         * fns.c (Fremrassq):
10325         * fns.c (remrassq_no_quit):
10326         * fns.c (Freverse):
10327         * fns.c (mapcar1):
10328         [1].
10329
10330         * frame-msw.c (mswindows_init_frame_1):
10331         * frame-msw.c (mswindows_delete_frame):
10332         Register popups with dialog code so keyboard traversing works.
10333
10334         * frame-tty.c (tty_raise_frame_no_select): [1].
10335
10336         * frame-x.c:
10337         * frame-x.c (x_set_frame_text_value):
10338         * frame-x.c (x_set_frame_properties):
10339         * frame-x.c (x_create_widgets):
10340         [7].
10341
10342         * frame.c:
10343         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10344
10345         * frame.h (wrap_frame): New.
10346         Macro like wrap_device.
10347
10348         * general.c:
10349         * general.c (SYMBOL):
10350         * general.c (syms_of_general):
10351         Major reorg.  This is now just a wrapper and symbols themselves
10352         are listed in general-slots.h.
10353
10354         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10355         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10356
10357         * glyphs-msw.c (mswindows_native_layout_instantiate):
10358         Add DS_CONTROL so keyboard traversal will work.
10359
10360         * glyphs-widget.c:
10361         * glyphs-widget.c (syms_of_glyphs_widget):
10362         Move some symbols to general-slots.h.
10363
10364         * glyphs-x.c:
10365         * glyphs-x.c (xbm_instantiate_1):
10366         * glyphs-x.c (x_xbm_instantiate):
10367         * glyphs-x.c (x_xface_instantiate):
10368         * glyphs-x.c (autodetect_instantiate):
10369         * glyphs-x.c (cursor_font_instantiate):
10370         * glyphs-x.c (x_update_widget):
10371         * glyphs-x.c (x_widget_instantiate):
10372         * glyphs.c (bitmap_to_lisp_data):
10373         * glyphs.c (pixmap_to_lisp_data):
10374         [7].
10375
10376         * glyphs.c (syms_of_glyphs):
10377         [2].
10378
10379         * gui-x.c:
10380         * gui-x.c (print_widget_value):
10381         * gui-x.c (menu_separator_style_and_to_external):
10382         * gui-x.c (add_accel_and_to_external):
10383         * gui-x.c (button_item_to_widget_value):
10384         * gui-x.c (gui_items_to_widget_values_1):
10385         * gui-x.c (gui_items_to_widget_values):
10386         * gui-x.c (syms_of_gui_x):
10387         * gui-x.c (vars_of_gui_x):
10388         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10389         [9].
10390
10391         * gui-x.h:
10392         Muleize, prototype changes matching gui-x.c.
10393
10394         * gui.c:
10395         * gui.c (separator_string_p):
10396         * gui.c (gui_item_add_keyval_pair):
10397         * gui.c (make_gui_item_from_keywords_internal):
10398         * gui.c (signal_too_long_error):
10399         * gui.c (parse_gui_item_tree_item):
10400         * gui.c (syms_of_gui):
10401         * gui.c (vars_of_gui):
10402         * gui.h:
10403         menu-no-selection-hook moved here (used by MSWin).
10404         Move some symbols to general-slots.h.
10405         [6].
10406         [9].
10407
10408         * insdel.c (get_buffer_pos_char):
10409         * insdel.c (get_buffer_range_char):
10410         Add GC comments.
10411
10412         * keymap.c (keymap_lookup_directly):
10413         * keymap.c (keymap_store):
10414         * keymap.c (ensure_meta_prefix_char_keymapp):
10415         * keymap.c (describe_map):
10416         * keymap.h:
10417         Support new button modifiers.
10418
10419         * lisp-disunion.h (wrap_object):
10420         * lisp-disunion.h (XSETOBJ):
10421         Rename make_obj to wrap_object.
10422
10423         * lisp-union.h:
10424         * lisp-union.h (make_int):
10425         * lisp-union.h (make_char):
10426         Support wrap_object.
10427
10428         * lisp.h:
10429         * lisp.h (LIST_LOOP):
10430         * lisp.h (EXTERNAL_LIST_LOOP):
10431         * lisp.h (LIST_LOOP_2):
10432         * lisp.h (EXTERNAL_LIST_LOOP_1):
10433         * lisp.h (EXTERNAL_LIST_LOOP_2):
10434         * lisp.h (EXTERNAL_LIST_LOOP_3):
10435         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10436         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10437         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10438         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10439         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10440         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10441         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10442         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10443         * lisp.h (struct Lisp_Symbol):
10444         * lisp.h (maybe_continuable_error_with_frob):
10445         Fix up section comments.
10446         Add new types for char to indicate usage.
10447         Delete symbols auto-generated from general-slots.h.
10448         Add prototypes for structured error functions.
10449         Add long comments describing looping macros and change interface
10450         so that lvalues are automatically declared.
10451         Add NO_DECLARE macro in case callers want to declare lvalues
10452         themselves.
10453
10454         * lread.c (read_syntax_error):
10455         * lread.c (continuable_read_syntax_error):
10456         * lread.c (read_structure):
10457         * lread.c (sequence_reader):
10458         * lread.c (read_list_conser):
10459         * lread.c (read_compiled_function):
10460         Rename syntax_error and continuable_syntax_error to avoid clash
10461         with same-named structured error functions.
10462
10463         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10464         * menubar-msw.c (populate_menu_add_item):
10465         * menubar-msw.c (populate_or_checksum_helper):
10466         [5].
10467         [9].
10468
10469         * menubar-x.c:
10470         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10471         Mule-ize whole file.
10472
10473         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10474
10475         * mule-charset.c (Fmake_charset):
10476         * mule-wnnfns.c (Fwnn_set_param):
10477         [1].
10478
10479         * ntproc.c (create_child):
10480         * ntproc.c (Fwin32_set_current_locale):
10481         Add comments portending doom.
10482
10483         * objects-msw.c:
10484         * objects-msw.c (old_font_enum_callback_2):
10485         * objects-msw.c (font_enum_callback_1):
10486         * objects-msw.c (mswindows_enumerate_fonts):
10487         [5].
10488
10489         * objects-x.c:
10490         * objects-x.c (allocate_nearest_color):
10491         * objects-x.c (x_parse_nearest_color):
10492         * objects-x.c (x_initialize_color_instance):
10493         * objects-x.c (x_print_color_instance):
10494         * objects-x.c (x_finalize_color_instance):
10495         * objects-x.c (x_valid_color_name_p):
10496         * objects-x.c (x_initialize_font_instance):
10497         * objects-x.c (x_print_font_instance):
10498         * objects-x.c (valid_x_font_name_p):
10499         * objects-x.c (truename_via_FONT_prop):
10500         * objects-x.c (truename_via_random_props):
10501         * objects-x.c (truename_via_XListFonts):
10502         * objects-x.c (x_font_truename):
10503         * objects-x.c (x_font_instance_truename):
10504         * objects-x.c (x_font_instance_properties):
10505         * objects-x.c (x_list_fonts):
10506         * objects-x.c (x_find_charset_font):
10507         Mule-ize entire file.
10508         [7].
10509
10510         * objects-x.h:
10511         Mule-verify.
10512
10513         * print.c:
10514         * print.c (std_handle_out_external):
10515         * print.c (debug_print_no_newline):
10516         * print.c (syms_of_print):
10517         Output to all debugger kinds in debug-print.
10518         Fix console-output code under MSWin to actually work.
10519
10520         * process-nt.c (send_signal):
10521         * process-nt.c (nt_create_process):
10522         Use newer Unicode macros.
10523
10524         * process-unix.c (unix_create_process):
10525         * process-unix.c (unix_canonicalize_host_name):
10526         * process-unix.c (unix_open_network_stream):
10527         [7].
10528
10529         * scrollbar-x.c:
10530         Mule-verify.
10531
10532         * search.c (syms_of_search):
10533         [2].
10534
10535         * select-msw.c (mswindows_destroy_selection):
10536         Use LIST_LOOP_2.
10537
10538         * select-x.c (symbol_to_x_atom):
10539         [7].
10540
10541         * select.c (syms_of_select):
10542         [2].
10543
10544         * sound.c (Fplay_sound_file):
10545         [7].
10546
10547         * specifier.c:
10548         * specifier.c (decode_specifier_type):
10549         * specifier.c (Fvalid_specifier_locale_type_p):
10550         * specifier.c (check_valid_locale_or_locale_type):
10551         * specifier.c (decode_locale):
10552         * specifier.c (decode_locale_type):
10553         * specifier.c (decode_locale_list):
10554         * specifier.c (check_valid_domain):
10555         * specifier.c (decode_specifier_tag_set):
10556         * specifier.c (Fcanonicalize_tag_set):
10557         * specifier.c (Fdefine_specifier_tag):
10558         * specifier.c (Fspecifier_tag_predicate):
10559         * specifier.c (check_valid_inst_list):
10560         * specifier.c (check_valid_spec_list):
10561         * specifier.c (decode_how_to_add_specification):
10562         * specifier.c (check_modifiable_specifier):
10563         * specifier.c (specifier_add_spec):
10564         * specifier.c (boolean_validate):
10565         * specifier.c (display_table_validate):
10566         [9].
10567
10568         * specifier.c (syms_of_specifier):
10569         Move some symbols to general-slots.h.
10570         [2].
10571
10572         * symbols.c:
10573         * symbols.c (Fmapatoms):
10574         * symbols.c (Fapropos_internal):
10575         Add GCPROs.
10576
10577         * symbols.c (set_default_buffer_slot_variable):
10578         * symbols.c (set_default_console_slot_variable):
10579         [1].
10580
10581         * symbols.c (defsymbol_massage_name_1):
10582         * symbols.c (defkeyword_massage_name):
10583         * symbols.c (deferror_1):
10584         * symbols.c (deferror):
10585         * symbols.c (deferror_massage_name_and_message):
10586         * symeval.h:
10587         * symeval.h (DEFSYMBOL):
10588         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10589
10590         * symbols.c (syms_of_symbols):
10591         [2].
10592
10593         * symsinit.h:
10594         * symsinit.h (init_win32): New.
10595         Also new is syms_of_dialog_mswindows.
10596
10597         * syswindows.h:
10598         Add new Unicode macros, missing Cygwin wide-char functions,
10599         convenience conversion macros for Qmswindows_tstr, macros for
10600         encapsulating required MSWin <-> Cygwin filename conversions,
10601         prototype for dynamically-extracted (not in NT 3.51) functions.
10602
10603         * toolbar-x.c:
10604         Mule-verify.
10605
10606         * tooltalk.c (Fadd_tooltalk_message_arg):
10607         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10608         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10609         [7].
10610
10611         * tooltalk.c (syms_of_tooltalk):
10612         [2].
10613
10614         * unexnt.c:
10615         * unexnt.c (unexec):
10616         Fix up headers, declaration of unexec() to be more standard.
10617
10618 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10619
10620         * offix.h: Revert change to guard macros - they're used in offix.c!
10621
10622 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10623
10624         * lisp.h: Defsubred Fdelete.
10625
10626         * console-msw.h:  (msprinter_default_printer): Added.
10627
10628         * console-msw.c (msprinter_canonicalize_console_connection):
10629         (msprinter_canonicalize_device_connection): Added.
10630
10631         * device-msw.c (msprinter_default_printer):
10632         (Fmswingows_get_default_printer):
10633         (signal_enum_priner_error):
10634         (Fmswingows_printer_list): Added.
10635
10636 2000-07-19  Martin Buchholz <martin@xemacs.org>
10637
10638         * XEmacs 21.2.35 is released.
10639
10640 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10641
10642         * select-x.c (x_handle_selection_request):
10643         Text selected in xemacs and pasted into xterm failed to appear.
10644         Spelling fixes and cosmetic changes.
10645
10646 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10647
10648         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10649         XEmacs frame (fix for doubling chars in dialog boxes).
10650
10651 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10652
10653         * select.c (select_convert_in, select_convert_out):
10654         Don't call intern() every time.
10655
10656         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10657         * select.c (vars_of_select): Initialise them.
10658
10659 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10660
10661         * select.c (selection-coercible-types): New.
10662
10663         * select.c (own-selection-internal):
10664         * select.c (get-selection-internal):
10665         MULE bug fix - these should default to COMPOUND_TEXT and not
10666         STRING for MULE. I think.
10667
10668         * select.c (select_convert_out): Use selection-coercible-types
10669         to find types that we can attempt to perform coercions on.
10670
10671 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10672
10673         * mule-wnnfns.c:
10674         * mule-canna.c:
10675         Add coding: cookie to identify encoding.
10676
10677         * mule-canna.c (CANNA_mode_keys): make static.
10678         Use proper prototypes, even for functions of no arguments.
10679         Remove external prototype for Fding().
10680
10681         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10682
10683         * select.c (syms_of_select): Add missing DEFSUBR.
10684
10685 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10686
10687         * select.c (get_selection_internal, own_selection_internal):
10688         Make the type default to STRING, rather than placing a nil type
10689         into Vselection_alist.
10690
10691 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10692
10693         * gpmevent.c (tty_selection_exists_p):
10694         * gpmevent.c (tty_own_selection):
10695         Updated parameter lists.
10696
10697 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10698
10699         * select.h (selection-alist): Removed declaration.
10700
10701         * select.h (get_local_selection):
10702         * select.c (get_local_selection):
10703         Made static.
10704
10705         * select.h (convert_selection): Removed declaration.
10706         * select.c (convert_selection): Removed.
10707         This function belongs in Lisp.
10708
10709         * select.h (select_convert_in): Declare.
10710         * select.h (select_convert_out): Declare.
10711         * select.c (select_convert_in): New.
10712         * select.c (select_convert_out): New.
10713         New conversion functions for other files to call.
10714
10715         * select.h (select_notify_buffer_kill): Declare.
10716         * select.c (select_notify_buffer_kill): New.
10717         New functions that get called from kill-buffer.
10718
10719         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10720         X-specific lisp code.
10721
10722         * select.h: Declare some of the lisp-visible functions for
10723         external use.
10724
10725         * select.c (clean_local_selection_data): Removed. This was
10726         a disgusting function, and previously should have been in
10727         select-x.c in any case. The functionality is now provided
10728         in select-convert-from-integer (select.el).
10729
10730         * select.c (available-selection-types): Fixed stupidity where
10731         INTEGER and ATOM got added twice. Also add STRING when we see an
10732         extent.
10733
10734         * select.c (get-selection-internal): Removed symbol stripping. No
10735         longer causes conversion when data comes from the internal cache.
10736
10737         * select.c (syms_of_select): Added new functions.
10738
10739         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10740         error checking - previously this called abort!
10741
10742         * select-x.c (x_own_selection): Changed comment.
10743
10744         * select-x.c (x_handle_selection_request): Use select_convert_out.
10745         Don't mess with selection-alist; it's an internal variable of select.c.
10746
10747         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10748
10749         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10750         rather than messing with selection-alist.
10751
10752         * select-msw.c (mswindows_get_foreign_selection):
10753         Use TO_INTERNAL_FORMAT rather than hacking.
10754
10755 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10756
10757         * process-unix.c (unix_open_multicast_group):
10758         (unix_open_multicast_group): Remove useless casts.
10759
10760 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10761
10762         * sound.c (Fplay_sound): Fix `unused variable' warning.
10763
10764         * emacs.c (main): Use correct type for _environ on SCO5.
10765
10766 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10767
10768         * console.h (own_selection_method):
10769         * console.h (selection_exists_p_method):
10770         * console.h (available_selection_types_method): New.
10771         * console.h (register_selection_data_type_method): New.
10772         * console.h (selection_data_type_name): New.
10773
10774         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10775         function & alist to track GlobalAlloc()'d handles that need
10776         releasing when the clipboard data gets replaced or emptied.
10777
10778         * event-msw.c (mswindows_wnd_proc): Call it.
10779
10780         * lisp.h, general.c (Qappend): New symbol representing a
10781         `how-to-add' mode.
10782
10783         * select.c (own-selection-internal):
10784         * select.c (selection-exists-p):
10785         * select.c (available-selection-types): New.
10786         * select.c (register-selection-data-type): New.
10787         * select.c (selection-data-type-name): New.  New functions to deal
10788         with device-specific selection data formats.
10789         * select.c (selection-converter-out-alist): Renamed.
10790         * select.c (selection-converter-in-alist): New.
10791         * select.c (selection-appender-alist): New.  Added new alists.
10792         * select.c (syms_of_select, vars_of_select): Added new symbols &
10793         variables.
10794         * select.c (get_local_selection): Split.
10795         * select.c: Removed spurious type checking - selections may now be
10796         of any type, not just strings.
10797         * select.c (own-selection-internal):
10798
10799         * select.h, select.c (convert_selection): New. Created
10800         convert_selection() function based on get_local_selection().
10801         * select.h, select.c (QCF_*): New symbols representing mswindows
10802         clipboard formats.
10803         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10804         symbols representing `how-to-add' modes.
10805
10806         * select-msw.c (x_sym_p): New.
10807         * select-msw.c (symbol_to_ms_cf): New.
10808         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10809         symbols & clipboard formats. Can also handle string names.
10810         * select-msw.c (mswindows_own_selection):
10811         * select-msw.c (mswindows_selection_exists_p):
10812         Added `data-type' parameter. Use it.
10813         * select-msw.c (mswindows_available_selection_types): New.
10814         * select-msw.c (mswindows_register_selection_data_type): New.
10815         * select-msw.c (mswindows_selection_data_type_name): New.
10816         * select-msw.c (mswindows_own_selection):
10817         * select-msw.c (mswindows_get_foreign_selection):
10818         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10819         * select-msw.c (console_create_select_mswindows): Added new methods.
10820         * select-msw.c (mswindows_destroy_selection): New.
10821         * select-msw.c (Vhandle_alist): New list.
10822         * select-msw.c (mswindows_own_selection):
10823
10824         * select-x.c (x_own_selection):
10825         * select-x.c (x_selection_exists_p):
10826         * select-x.c: Added some comments about maybe using new
10827         functionality.
10828         * select-x.c (x_own_selection):
10829
10830         * specifier.c: Remove definition of Qappend (now in general.c)
10831         * specifier.c (syms_of_specifier): Remove Qappend.
10832
10833 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10834
10835         * config.h.in: Add socklen_t.
10836
10837         * s/decosf4-0.h: No special compiler flags needed or desired.
10838         In particular, undefine _BSD for DEC OSF 4.0.
10839
10840 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10841
10842         * redisplay-msw.c (msprinter_frame_output_end): Added.
10843         (console_type_create_redisplay_mswindows): Referred the above.
10844
10845         * frame.c (setup_frame_without_minibuffer): Do not create a
10846         default minibuffer frame on a printer device.
10847
10848         * frame-msw.c (apply_dc_geometry): Added.
10849         (msprinter_start_page):
10850         (msprinter_init_frame_3):
10851         (msprinter_eject_page): Use it.
10852
10853         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10854         and removed residual duplex and orientation properties.
10855
10856 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10857
10858         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10859
10860         * unexalpha.c: Remove system prototypes from C sources!
10861
10862 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10863
10864         * eval.c: Remove references to M-x edit-options in DEFUNs for
10865         `defvar' and `defconst'.
10866
10867 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10868
10869         * config.h.in: Remove SMART_INCLUDE hackery.
10870
10871         PostgreSQL hacking:
10872         * config.h.in: Don't use SMART_INCLUDE.
10873
10874         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10875         * inline.c: Simply #include "postgresql.h"
10876         * postgresql.c:
10877         - Don't use SMART_INCLUDE
10878         - Use simply "const".
10879         - Use standard doc string conventions.
10880         - Use correct type for result of PQstatus.
10881
10882 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10883
10884         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10885
10886         C++ compilation changes.
10887         * config.h.in (EXTERN_C): Define.
10888         * config.h.in (not): This is also a C++ keyword.
10889         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10890         * cm.c: Use EXTERN_C.
10891         * redisplay-tty.c: Use EXTERN_C.
10892         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10893
10894 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10895
10896         * general.c: Remove duplicate definition for Qfunction.
10897
10898 2000-07-08  Ben Wing  <ben@xemacs.org>
10899
10900         * device-msw.c (msprinter_init_device):
10901         * device-msw.c (sync_printer_with_devmode):
10902         * device-msw.c (handle_devmode_changes):
10903         * device-msw.c (print_dialog_worker):
10904         * device-msw.c (Fmsprinter_apply_settings):
10905         * device-msw.c (hash_devmode):
10906         * device-msw.c (Fmsprinter_settings_despecialize):
10907         use Qmswindows_tstr, not Qctext.
10908
10909         * vm-limit.c (check_memory_limits):
10910         avoid infinite loop printing warning messages.
10911
10912 2000-07-05  Craig Lanning  <lanning@scra.org>
10913
10914         * Makefile.in.in: Add support for including the Windows resources
10915         when building with the cygwin and mingw targets.
10916
10917         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10918         not set or not correct.
10919         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10920         (init_initial_directory): Don't try to use $PWD on the
10921         WIN32_NATIVE target.
10922
10923         * s\cygwin32.h:
10924         [[Add -mwindows to eliminate console window.]] not required --ben
10925         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10926         (MAIL_USE_POP): removed; now handled by configure.
10927
10928         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10929         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10930         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10931         (MAIL_USE_POP): removed; now handled by configure.
10932         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10933         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10934         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10935         constant string.
10936         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10937         up from <winsock.h> via systime.h.
10938         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10939         (getpagesize): from Dan Holmsand, added.
10940         Added #endif which was left dangling by Ben's mega patch; added
10941         comment to help prevent this in the future.
10942
10943         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10944
10945 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10946
10947         * console-msw.h (struct mswindows_device): Removed unnecessary
10948         cached device geometry values.
10949         Added update_tick and an accessor macro.
10950         (Lisp_Devmode): Added lrecord declaration.
10951         (struct msprinter_device): Contain devmode as a Lisp object.
10952         Added mswindows_get_selected_frame_hwnd();
10953
10954         * console.h (struct console_methods): Indentation nitpicking.
10955
10956         * device-msw.c (mswindows_init_device): Do not initialize geometry
10957         cache. Initialize update tick.
10958         (mswindows_device_system_metrics): Ask the device for its geometry.
10959         (global_free_2_maybe):
10960         (devmode_to_hglobal):
10961         (handle_printer_changes):
10962         (ensure_not_printing):
10963         (print_dialog_worker):
10964         (Fmsprinter_print_setup_dialog):
10965         (Fmsprinter_print_dialog):
10966         (plist_get_margin):
10967         (plist_set_margin):
10968         (Fmsprinter_page_setup_dialog): Added functions.
10969         (sync_printer_with_devmode):
10970         (handle_devmode_changes):
10971         (Fmsprinter_get_settings):
10972         (Fmsprinter_select_settings):
10973         (Fmsprinter_apply_settings):
10974         (allocate_devmode):
10975         (Fmsprinter_settings_copy):
10976         (Fmsprinter_settings_despecialize):
10977         (print_devmode):
10978         (finalize_devmode):
10979         (equal_devmode):
10980         (hash_devmode): Added functions
10981         (syms_of_device_mswindows): Init devmode lrecord class.
10982
10983         * device.h: Added an exfun for find-device.
10984
10985         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10986         geometry; although, recreate the device compatible DC.
10987
10988         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10989         (msprinter_init_frame_3):
10990         (msprinter_frame_property):
10991         (msprinter_internal_frame_property_p):
10992         (msprinter_frame_properties):
10993         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10994         print job properties (will move to device settings).
10995
10996         * lisp.h: Added symbols.
10997
10998         * general.c (syms_of_general): Declared them.
10999
11000         * hash.c (string_hash): Added.
11001
11002         * lrecord.h (lrecord_type): Added devmode lrecord type.
11003
11004 2000-07-02  Mike Sperber <mike@xemacs.org>
11005
11006         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11007         FreeBSD 4.0.
11008
11009 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11010
11011         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11012         integer.
11013
11014 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11015
11016         * data.c (Fstring_to_number): Don't recognize floating point if
11017         base is not 10.
11018
11019 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11020
11021         * glyphs-widget.c (tab_control_query_geometry):
11022         (widget_query_geometry):
11023         (button_query_geometry):
11024         * glyphs.c (text_query_geometry):
11025         Enforce type correctness.
11026
11027 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11028
11029         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11030         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11031
11032 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11033
11034         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11035         conflicts with gcc's fixincluded version of FOO.h.
11036
11037         * glyphs.h (image_instance_geometry): Remove trailing `,'
11038
11039 2000-06-08  Mike Alexander  <mta@arbortext.com>
11040
11041         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11042         (shove_thread): Don't write the same output twice
11043         (make_ntpipe_output_stream): Increase priority of shove thread
11044         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11045         chance to run
11046         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11047         it.
11048
11049 2000-06-12  Ben Wing  <ben@xemacs.org>
11050
11051         * s\mingw32.h (sigset):
11052         * s\windowsnt.h (sigset):
11053         rename msw_ to mswindows_ for consistency with general convention.
11054
11055 2000-06-12  Ben Wing  <ben@xemacs.org>
11056
11057         * console-msw.c:
11058         * console-msw.c (mswindows_get_console_hwnd):
11059         * console-msw.c (mswindows_ensure_console_allocated):
11060         * console-msw.c (mswindows_hide_console):
11061         * console-msw.c (mswindows_show_console):
11062         * console-msw.c (mswindows_ensure_console_buffered):
11063         * console-msw.c (mswindows_output_console_string):
11064         * console-msw.c (mswindows_windows9x_p):
11065         * console-msw.h:
11066         * device-msw.c (mswindows_get_workspace_coords):
11067         * device-msw.c (mswindows_device_system_metrics):
11068         * dialog-msw.c (mswindows_popup_dialog_box):
11069         * event-msw.c (mswindows_wnd_proc):
11070         * frame-msw.c (mswindows_size_frame_internal):
11071         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11072         * menubar-msw.c (displayable_menu_item):
11073         * menubar-msw.c (mswindows_char_is_accelerator):
11074         * nt.c:
11075         * nt.c (mswindows_sigset):
11076         * nt.c (mswindows_sigrelse):
11077         * nt.c (mswindows_sigpause):
11078         * nt.c (mswindows_raise):
11079         * nt.c (timer_proc):
11080         * ntproc.c:
11081         * ntproc.c (find_child_console):
11082         * ntproc.c (sys_kill):
11083         * print.c:
11084         * print.c (std_handle_out_external):
11085         * process-nt.c (find_child_console):
11086         * process-nt.c (send_signal_the_95_way):
11087         * process-nt.c (ensure_console_window_exists):
11088         * process-nt.c (nt_create_process):
11089         * syssignal.h:
11090         rename msw_ to mswindows_ for consistency with general convention.
11091
11092         * emacs.c:
11093         * dumper.c:
11094         include nt.h, not syswindows.h.
11095
11096         * nt.c (mswindows_fstat):
11097         * nt.c (mswindows_stat):
11098         prefix mswindows_ instead of attempting to directly override the
11099         library functions.  fix declarations.
11100
11101         * nt.h:
11102         include syswindows.h.  move some sysdep.h stuff here.
11103
11104         * ntheap.h:
11105         include syswindows.h, not <windows.h>.
11106
11107         * ntplay.c:
11108         clean up headers.
11109
11110         * sysdep.c:
11111         clean up headers.
11112
11113         * sysdep.c (sys_fstat):
11114         * sysdep.c (sys_stat):
11115         call mswindows versions when appropriate.
11116
11117         * sysdep.h:
11118         move mswin decls to nt.h.
11119
11120         * syswindows.h:
11121         add long comment describing appropriate use of the various windows
11122         headers.
11123
11124 2000-06-11  Ben Wing  <ben@xemacs.org>
11125
11126         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11127
11128 2000-06-10  Ben Wing  <ben@xemacs.org>
11129
11130         * Makefile.in.in (release):
11131         Correction to make sure xemacs.exe always dumped when correct.
11132
11133         * alloca.c:
11134         * balloon_help.c:
11135         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11136
11137         * buffer.c (set_buffer_internal):
11138         [[[[2]]]]: Remove HAVE_FEP code.
11139
11140         * buffer.c (init_initial_directory):
11141         [3].
11142
11143         * bytecode.c:
11144         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11145         individual files.
11146
11147         * callproc.c:
11148         * callproc.c (call_process_cleanup):
11149         * callproc.c (Fold_call_process_internal):
11150         * callproc.c (child_setup):
11151         * callproc.c (getenv_internal):
11152         * callproc.c (init_callproc):
11153         * callproc.c (vars_of_callproc):
11154         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11155         __CYGWIN32__ -> CYGWIN.
11156         DOS_NT -> WIN32_NATIVE.
11157         Remove MSDOS support/references, converting to WIN32_NATIVE
11158           where correct.
11159         __MINGW32__ -> MINGW.
11160         Fix windows.h includes.
11161         Remove bogus HAVE_NTGUI.
11162
11163         * config.h.in:
11164         [2].
11165
11166         * console-msw.c:
11167         mswindows_message_outputted added for use in allowing startup
11168         errors on the console to be seen.
11169
11170         * console-msw.c (msw_ensure_console_allocated):
11171         * console-msw.c (msw_output_console_string):
11172         * console-msw.c (DHEADER):
11173         * console-msw.c (DOPAQUE_DATA):
11174         * console-msw.c (DEVENT):
11175         * console-msw.c (DCONS):
11176         * console-msw.c (DCONSCDR):
11177         * console-msw.c (DSTRING):
11178         * console-msw.c (DVECTOR):
11179         * console-msw.c (DSYMBOL):
11180         * console-msw.c (DSYMNAME):
11181         Fix warnings.
11182
11183         * console-stream.c (stream_init_console):
11184         Fix text/binary problems.
11185
11186         * device-msw.c:
11187         * device-msw.c (mswindows_finish_init_device):
11188         * device-msw.c (mswindows_delete_device):
11189         [1].
11190
11191         * device.c (handle_asynch_device_change):
11192         [3].
11193
11194         * dgif_lib.c:
11195         * dgif_lib.c (DGifOpenFileName):
11196         * dgif_lib.c (DGifOpenFileHandle):
11197         * dgif_lib.c (DGifGetLine):
11198         * dgif_lib.c (DGifGetPixel):
11199         Added config.h/lisp.h, fix up includes.
11200         [1].
11201
11202         * dired-msw.c:
11203         [4].
11204
11205         * dired.c:
11206         * dired.c (file_name_completion):
11207         * dired.c (Ffile_attributes):
11208         * dired.c (syms_of_dired):
11209         [1].
11210
11211         * dumper.c:
11212         * dumper.c (pdump_file_unmap):
11213         * dumper.c (pdump_load):
11214         [1].
11215
11216         * editfns.c:
11217         * editfns.c (Ftemp_directory):
11218         * editfns.c (user_login_name):
11219         * editfns.c (Fuser_real_login_name):
11220         * editfns.c (get_home_directory):
11221         [1].
11222
11223         * elhash.c (finish_marking_weak_hash_tables):
11224         [[[[5]]]]: Fix GCC warnings.
11225
11226         * emacs.c:
11227         * emacs.c (mswindows_handle_hardware_exceptions):
11228         * emacs.c (make_arg_list_1):
11229         * emacs.c (main_1):
11230         * emacs.c (Fkill_emacs):
11231         * emacs.c (Fdump_emacs):
11232         [1].
11233         Fix problems with nested crashes, add long comment.
11234
11235         * event-Xt.c (init_event_Xt_late):
11236         [1].
11237
11238         * event-msw.c:
11239         * event-msw.c (mswindows_dde_callback):
11240         * event-msw.c (mswindows_handle_sticky_modifiers):
11241         * event-msw.c (mswindows_wnd_proc):
11242         [1].
11243         [5].
11244
11245         * events.c (character_to_event):
11246         [1].
11247
11248         * fileio.c:
11249         * fileio.c (Ffile_name_directory):
11250         * fileio.c (Ffile_name_nondirectory):
11251         * fileio.c (directory_file_name):
11252         * fileio.c (Fexpand_file_name):
11253         * fileio.c (Fsubstitute_in_file_name):
11254         * fileio.c (Ffile_name_absolute_p):
11255         * fileio.c (check_executable):
11256         * fileio.c (Ffile_readable_p):
11257         * fileio.c (Ffile_accessible_directory_p):
11258         * fileio.c (Ffile_modes):
11259         * fileio.c (Funix_sync):
11260         * fileio.c (vars_of_fileio):
11261         [1]. [4].
11262
11263         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11264
11265         Expand getdefdir defn.
11266         Fix bogus rename() comment.
11267
11268         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11269         to use standard XEmacs include files, e.g. sysfile.h, rather
11270         than system-specific includes.
11271
11272         * fns.c:
11273         * fns.c (Fsubseq):
11274         [5]. [6].
11275
11276         * frame.c (vars_of_frame):
11277         [1].
11278
11279         * getloadavg.c:
11280         * getloadavg.c (getloadavg):
11281         [1]. [6].
11282         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11283         (We don't use it elsewhere in the code; just add a comment.)
11284
11285         * gif_io.c:
11286         [6].
11287         Add config.h.
11288
11289         * glyphs-msw.c:
11290         * glyphs-msw.c (mswindows_resource_instantiate):
11291         [1].
11292
11293         * glyphs-x.c (x_native_layout_instantiate):
11294         [5].
11295
11296         * gui-msw.c (Fmswindows_shell_execute):
11297         [1].
11298
11299         * insdel.c:
11300         [4].
11301
11302         * lisp.h:
11303         [4]. [5].
11304
11305         * lread.c (locate_file_in_directory_mapper):
11306         [1].
11307
11308         * lstream.c:
11309         [4].
11310
11311         * mem-limits.h:
11312         * mem-limits.h (get_lim_data):
11313         [1].
11314
11315         * menubar-msw.c:
11316         [4].
11317
11318         * ndir.h:
11319         [1].
11320
11321         * nt.c:
11322         * nt.c (getwd):
11323         * nt.c (closedir):
11324         * nt.c (rva_to_section):
11325         * nt.c (mswindows_executable_type):
11326         [1]. [6].
11327         Fix closedir() defn.
11328
11329         * nt.h:
11330         [[[[8]]]]: *_OK defs moved to sysfile.h.
11331
11332         * ntproc.c:
11333         [6]. [7].
11334
11335         * objects-x.c:
11336         [4].
11337
11338         * print.c:
11339         * print.c (std_handle_out_external):
11340         [1]. [4].
11341
11342         * process-nt.c:
11343         * process-nt.c (nt_create_process):
11344         [6].
11345         try to fix process quoting somewhat.
11346
11347         * process-unix.c (unix_create_process):
11348         [1].
11349
11350         * process.c:
11351         * process.c (vars_of_process):
11352         Add Vnull_device.
11353
11354         * process.h:
11355         [1].
11356
11357         * realpath.c:
11358         * realpath.c (xrealpath):
11359         [1].
11360
11361         * redisplay-tty.c (init_tty_for_redisplay):
11362         [3].
11363
11364         * redisplay.c:
11365         [4]. [6].
11366
11367         * scrollbar-msw.c:
11368         [4].
11369
11370         * sheap.c:
11371         * sheap.c (more_static_core):
11372         * sheap.c (report_sheap_usage):
11373         [5]. [6].
11374
11375         * signal.c:
11376         * signal.c (alarm_signal):
11377         [1]. [6].
11378
11379         * sound.c:
11380         [6].
11381
11382         * strftime.c:
11383         * strftime.c (zone_name):
11384         [1]. [5].
11385
11386         * symsinit.h (init_sunpro):
11387         [1].
11388
11389         * syscommctrl.h:
11390         commctrl.h not in Cygwin b20.1.
11391
11392         * sysdep.c:
11393         * sysdep.c (endif):
11394         * sysdep.c (sys_subshell):
11395         * sysdep.c (init_baud_rate):
11396         * sysdep.c (emacs_get_tty):
11397         * sysdep.c (emacs_set_tty):
11398         * sysdep.c (tty_init_sys_modes_on_device):
11399         * sysdep.c (init_system_name):
11400         * sysdep.c (sys_open):
11401         * sysdep.c (interruptible_open):
11402         * sysdep.c (sys_fopen):
11403         * sysdep.c (sys_mkdir):
11404         * sysdep.c (sys_rename):
11405         * sysdep.c (get_process_times_1):
11406         [1]. [6].
11407
11408         * sysdep.h:
11409         [1].
11410
11411         * sysdir.h:
11412         * sysdir.h (DIRENTRY_NONEMPTY):
11413         [1]. [6].
11414
11415         * sysdll.c (dll_init):
11416         * sysdll.h:
11417         [1].
11418
11419         * sysfile.h:
11420         [1]. [6]. [8].
11421         added text/binary defs.
11422
11423         * sysfloat.h:
11424         [1].
11425
11426         * sysproc.h:
11427         * sysproc.h (EDESTADDRREQ):
11428         * sysproc.h (poll_fds_for_input):
11429         [1]. [6].
11430
11431         * syspwd.h:
11432         [6].
11433
11434         * syssignal.h:
11435         [1].
11436
11437         * systime.h:
11438         [1]. [6].
11439
11440         * systty.h:
11441         [1].
11442
11443         * syswindows.h:
11444         [1].
11445         Always define WIN32_LEAN_AND_MEAN.
11446
11447         * unexcw.c (unexec):
11448         [5].
11449
11450         * unexec.c:
11451         * unexec.c (copy_text_and_data):
11452         * unexec.c (adjust_lnnoptrs):
11453         [1].
11454
11455         * unexnt.c:
11456         * unexnt.c (_start):
11457         [1].
11458
11459 2000-06-07  Ben Wing  <ben@xemacs.org>
11460
11461         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11462         was used only as a model.  We've long since extracted any useful
11463         logic or code out of this. (I just did an exhaustive search.)
11464
11465         * s\msdos.h: Removed.
11466
11467         * s\windows95.h: Removed.
11468
11469 2000-06-10  Ben Wing  <ben@xemacs.org>
11470
11471         * s\cygwin32.h:
11472         [1]. [5].
11473         Don't use extern with fun defs.
11474
11475         * s\mingw32.h:
11476         [1]. [7].
11477         Remove nt\inc include.
11478         Remove getdisk, getdefdir. (The former is unused, the latter
11479         expanded in fileio.h.)
11480
11481         * s\windowsnt.h:
11482         * s\windowsnt.h (WIN32_NATIVE):
11483         * s\windowsnt.h (HAVE_STRCASECMP):
11484         [1]. [7].
11485         Add long comment about preprocessor changes.
11486         Remove getdisk, getdefdir. (The former is unused, the latter
11487         expanded in fileio.h.)
11488
11489 2000-06-10  Ben Wing  <ben@xemacs.org>
11490
11491         * m\arm.h:
11492         * m\delta.h:
11493         * m\intel386.h:
11494         * m\sequent.h:
11495         * m\template.h:
11496         * m\windowsnt.h:
11497         [1].
11498         Remove bogus/unused NO_SOCK_SIGIO.
11499
11500 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11501
11502         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11503         not an Emchar.
11504
11505 2000-06-04  Mike Sperber <mike@xemacs.org>
11506
11507         * casetab.c (set_case_table): For `set-standard-case-table',
11508         actually deposit the new case tables where the rest of XEmacs can
11509         see them.
11510
11511 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11512
11513         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11514
11515 2000-06-05  Ben Wing  <ben@xemacs.org>
11516
11517         * callproc.c (child_setup): Don't do close_load_descs() under
11518         MS Windows.  Put in a comment explaining why.
11519
11520 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11521
11522         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11523         Toolkit shell" which breaks `kill-compilation' on Windows NT
11524         native, retaining STDERR handling improvements.
11525
11526 2000-06-01  Andreas Jaeger  <aj@suse.de>
11527
11528         * s/s390.h: Support for S390, based on a patch by Martin
11529         Schwidefsky <schwidefsky@de.ibm.com>.
11530
11531 2000-05-30  Andy Piper  <andy@xemacs.org>
11532
11533         * window.c (allocate_window):
11534         (make_dummy_parent):
11535         (Fset_window_configuration): use new hashtable type.
11536
11537         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11538         (struct image_instantiator_methods):
11539         (struct Lisp_Image_Instance): make instance geometry signed.
11540
11541         * glyphs.c (instantiate_image_instantiator):
11542         (image_instance_query_geometry):
11543         (image_instance_layout):
11544         (image_instance_layout):
11545         (query_string_geometry):
11546         (text_query_geometry):
11547         (image_instantiate):
11548         (image_instantiate):
11549         (cache_subwindow_instance_in_frame_maybe):
11550         (subwindow_query_geometry): make instance geometry signed.
11551
11552         * glyphs-widget.c (widget_query_geometry):
11553         (widget_layout):
11554         (button_query_geometry):
11555         (tree_view_query_geometry):
11556         (tab_control_query_geometry):
11557         (layout_query_geometry):
11558         (layout_layout):
11559         (native_layout_layout): make instance geometry signed.
11560
11561 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11562
11563         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11564         constant.
11565
11566         * general.c (syms_of_general): Add Qfull_assoc symbol.
11567
11568         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11569         correctly.
11570         (decode_weak_list_type): Decode full-assoc type.
11571         (encode_weak_list_type): Encode full-assoc type.
11572         (Fmake_weak_list): Update doc string.
11573
11574 2000-05-30  Andy Piper  <andy@xemacs.org>
11575
11576         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11577
11578         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11579         (decode_hash_table_weakness): ditto.
11580         (Fhash_table_weakness): ditto.
11581         (Fhash_table_type): ditto.
11582         (finish_marking_weak_hash_tables): ditto.
11583         (hash_table_weakness_validate): ditto.
11584         (syms_of_elhash): ditto.
11585
11586 2000-05-28  Martin Buchholz <martin@xemacs.org>
11587
11588         * XEmacs 21.2.34 is released.
11589
11590 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11591
11592         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11593         start cache.
11594         (updating_line_start_cache): Gone.
11595         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11596         generic code to force a minimum of 1 line laid out in the
11597         CMOTION_DISP case.
11598
11599 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11600
11601         * glyphs.c (instantiate_image_instantiator): Check for initialized
11602         height & width no longer special cases IMAGE_NOTHING.
11603         (nothing_instantiate): Set height and width of instance.
11604
11605 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11606
11607         * unexelf.c (unexec): Search for ".data" section.
11608         Initialize new_data2_offset from old_data_index.
11609         Remove redundant check for ElfW.
11610
11611 2000-05-23  Andy Piper  <andy@xemacs.org>
11612
11613         * glyphs.c (get_image_instantiator_governing_domain): allow more
11614         specific domains as the governing domain rather than expecting an
11615         exact match. This fixes problems with layouts.
11616
11617 2000-05-22  Andy Piper  <andy@xemacs.org>
11618
11619         * redisplay-output.c (compare_runes): check for non-images
11620
11621         * glyphs.c (set_glyph_dirty_p): ditto.
11622         (update_glyph_cachel_data): ditto.
11623
11624         * glyphs-widget.c (layout_post_instantiate): ditto.
11625         (layout_post_instantiate): ditto.
11626
11627         * event-msw.c (mswindows_wnd_proc): warning removal.
11628
11629 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11630
11631         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11632
11633         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11634
11635         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11636
11637         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11638         (mswindows_executable_type): mingw32 now has enough headers for
11639         this to work.
11640
11641 2000-05-20  Andy Piper  <andy@xemacs.org>
11642
11643         * console-msw.c (mswindows_output_last_error): ; -> ,
11644
11645 2000-05-12  Andy Piper  <andy@xemacs.org>
11646
11647         * console-msw.c (FROB): compare ints with ints.
11648
11649 2000-05-11  Andy Piper  <andy@xemacs.org>
11650
11651         * glyphs-x.c (x_finalize_image_instance): make minimal build
11652         happy.
11653
11654 2000-05-20  Ben Wing  <ben@xemacs.org>
11655
11656         * event-Xt.c:
11657         * event-Xt.c (vars_of_event_Xt):
11658         move modifier-keys-are-sticky to event-stream.c.
11659
11660         * event-msw.c:
11661         * event-msw.c (mswindows_enqueue_mouse_button_event):
11662         * event-msw.c (key_needs_default_processing_p):
11663         * event-msw.c (XEMSW_LCONTROL):
11664         * event-msw.c (mswindows_handle_sticky_modifiers):
11665         * event-msw.c (FROB):
11666         * event-msw.c (clear_sticky_modifiers):
11667         * event-msw.c (output_modifier_keyboard_state):
11668         * event-msw.c (output_alt_keyboard_state):
11669         * event-msw.c (mswindows_wnd_proc):
11670         * event-msw.c (mswindows_modifier_state):
11671         * event-msw.c (emacs_mswindows_handle_magic_event):
11672         implement sticky modifiers.
11673
11674         * event-stream.c:
11675         * event-stream.c (vars_of_event_stream):
11676         move modifier-keys-are-sticky here.
11677
11678         * lisp.h:
11679         add CHECK_FUNCTION.
11680
11681         * rangetab.c:
11682         implement map-range-table.
11683
11684
11685 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11686
11687         * redisplay-tty.c (reset_tty_modes):
11688         (tty_redisplay_shutdown): Adjust argument type to
11689         tty_frame_output_end.
11690
11691 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11692
11693         * eval.c (Fbacktrace): Don't output a line with only right
11694         parenthesis.
11695
11696 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11697
11698         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11699         (Fpq_reset_poll): Ditto.
11700
11701 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11702
11703         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11704
11705 2000-05-16  Ben Wing  <ben@xemacs.org>
11706
11707         * buffer.c:
11708         * buffer.c (dfc_convert_to/from_internal_format):
11709         * buffer.c (reinit_vars_of_buffer):
11710         Fix conversion functions to allow reentrancy.
11711
11712         * console-msw.c:
11713         * console-msw.c (mswindows_output_last_error):
11714         New fun, generally useful -- output a human-readable
11715         version of GetLastError() on the console.
11716
11717         * console-msw.h:
11718         * console-msw.h (struct mswindows_frame):
11719         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11720
11721         * console-stream.c (stream_output_begin):
11722         * console-stream.c (stream_output_end):
11723         * console-stream.c (stream_output_vertical_divider):
11724         * console-stream.c (stream_clear_region):
11725         * console-stream.c (stream_flash):
11726         * console-stream.c (console_type_create_stream):
11727         Delete blank stream methods, not needed.
11728
11729         * console.h (struct console_methods):
11730         Split begin/end methods into window and frame.
11731
11732         * event-msw.c:
11733         * event-msw.c (mswindows_handle_paint):
11734         * event-msw.c (output_alt_keyboard_state):
11735         * event-msw.c (mswindows_wnd_proc):
11736         * event-msw.c (vars_of_event_mswindows):
11737         Comment about problems with ignored-expose.
11738         Define mswindows-debug-events; not really implemented.
11739
11740         * frame-msw.c (mswindows_init_frame_1):
11741         random cleanups.
11742
11743         * glyphs-msw.c:
11744         * glyphs-msw.c (begin_defer_window_pos):
11745         * glyphs-msw.c (mswindows_unmap_subwindow):
11746         * glyphs-msw.c (mswindows_map_subwindow):
11747         * glyphs-msw.c (mswindows_resize_subwindow):
11748         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11749
11750         * glyphs.c (make_image_instance_1):
11751         Fix crash.
11752
11753         * gutter.c (Fredisplay_gutter_area):
11754         Use new begin/end methods.
11755
11756         * lisp.h (Dynarr_new2):
11757         New creation fun.
11758
11759         * redisplay-msw.c:
11760         * redisplay-msw.c (mswindows_frame_output_begin):
11761         * redisplay-msw.c (mswindows_frame_output_end):
11762         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11763         New begin/end methods -- handle DeferWindowPos.
11764
11765         * redisplay-output.c (redisplay_move_cursor):
11766         * redisplay-output.c (redraw_cursor_in_window):
11767         * redisplay-output.c (redisplay_update_line):
11768         * redisplay-output.c (redisplay_output_window):
11769         New begin/end methods.
11770
11771         * redisplay-tty.c:
11772         * redisplay-tty.c (tty_frame_output_begin):
11773         * redisplay-tty.c (tty_frame_output_end):
11774         * redisplay-tty.c (console_type_create_redisplay_tty):
11775         New begin/end methods.
11776
11777         * redisplay-x.c:
11778         * redisplay-x.c (x_window_output_begin):
11779         * redisplay-x.c (x_window_output_end):
11780         * redisplay-x.c (console_type_create_redisplay_x):
11781         New begin/end methods.
11782
11783         * redisplay.c (redisplay_frame):
11784         * redisplay.c (Fredisplay_echo_area):
11785         New begin/end methods.
11786         use MAYBE_DEVMETH for clear_frame; it may not exist.
11787
11788         * window.h (WINDOW_XFRAME):
11789         WINDOW_XFOO macros -- get locale and decode struct pointer.
11790
11791
11792 2000-05-12  Ben Wing  <ben@xemacs.org>
11793
11794         * emacs.c:
11795         * emacs.c (ensure_no_quitting_from_now_on):
11796         * emacs.c (fatal_error_signal):
11797         * emacs.c (mswindows_handle_hardware_exceptions):
11798         * emacs.c (main):
11799         * emacs.c (Fkill_emacs):
11800         * emacs.c (shut_down_emacs):
11801         * emacs.c (assert_failed):
11802         various improvements in fatal error handling.
11803
11804         * eval.c:
11805         move preparing_for_armageddon to emacs.c.
11806
11807         * lisp.h:
11808         declare fatal_error_in_progress.
11809
11810         * print.c:
11811         * print.c (std_handle_out_external):
11812         * print.c (std_handle_out_va):
11813         * print.c (stderr_out):
11814         * print.c (stdout_out):
11815         use console under mswin when no standard output.
11816         don't do code conversion during fatal error.
11817
11818         * scrollbar.c (Fscrollbar_page_up):
11819         * scrollbar.c (Fscrollbar_page_down):
11820         fix missing else.  reindent.
11821
11822 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11823
11824         Emergency fix.
11825
11826         * glyphs.h (GLYPH_CACHEL_DESCENT):
11827         (GLYPH_CACHEL_DESCENT):
11828         (GLYPH_CACHEL_DESCENT):
11829         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11830         used in case these are inline functions.
11831         Use more absurd values to error check.
11832
11833         include window.h for error check functions.
11834
11835 2000-05-11  Ben Wing  <ben@xemacs.org>
11836
11837         * cmdloop.c (Freally_early_error_handler):
11838         Display message box under windows; otherwise, message will disappear
11839         before it can be viewed.
11840
11841         * console-msw.c:
11842         * console-msw.c (Fmswindows_message_box):
11843         * console-msw.c (FROB):
11844         * console-msw.c (syms_of_console_mswindows):
11845         Define new fun `mswindows-message-box'.
11846         #### I will merge this into `popup-dialog-box'; just give me
11847         a bit of time.
11848
11849         * general.c:
11850         * general.c (syms_of_general):
11851         Some new symbols used in `mswindows-message-box'.
11852
11853         * glyphs.c:
11854         * glyphs.c (Fset_image_instance_property):
11855         put warning in this fun.
11856
11857         * glyphs.h:
11858         * glyphs.h (GLYPH_CACHEL_WIDTH):
11859         * glyphs.h (GLYPH_CACHEL_ASCENT):
11860         * glyphs.h (GLYPH_CACHEL):
11861         * glyphs.h (GLYPH_CACHEL_GLYPH):
11862         define error-checking versions to try to catch a bug i've seen --
11863         redisplay gets in an infinite loop because the glyph width of the
11864         continuation glyph is 65535.
11865
11866         * lisp.h:
11867         Extern message-box stuff.
11868
11869         * window.c (allocate_window):
11870         * window.c (make_dummy_parent):
11871         * window.c (Fset_window_configuration):
11872         Use EQUAL not EQ for subwindow caches to make them work a bit
11873         better. (Something is still very broken.)
11874
11875
11876 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11877
11878         * glyphs.c (image_instantiate): Suppress gcc warnings.
11879         (Fmake_image_instance): Fix doc string.
11880         * specifier.c (Fmake_specifier): Ditto.
11881
11882 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11883
11884         * paths.h.in (PATH_LOCK): Removed.
11885         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11886         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11887
11888 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11889
11890         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11891         Document (featurep '(and xemacs 21.02)).
11892
11893 2000-05-09  Ben Wing  <ben@xemacs.org>
11894
11895         * buffer.c (complex_vars_of_buffer):
11896         update modeline-format doc.
11897
11898         * device.h:
11899         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11900
11901         * emacs.c:
11902         timeline of all released versions of Emacs, for use in creating
11903         authorship comments and in synching up.
11904
11905         * glyphs-widget.c (image_instantiator_buttons):
11906         * glyphs-widget.c (image_instantiator_edit_fields):
11907         * glyphs-widget.c (image_instantiator_combo_box):
11908         * glyphs-widget.c (image_instantiator_scrollbar):
11909         * glyphs-widget.c (image_instantiator_progress_guage):
11910         * glyphs-widget.c (image_instantiator_tree_view):
11911         * glyphs-widget.c (image_instantiator_tab_control):
11912         * glyphs-widget.c (image_instantiator_labels):
11913         * glyphs-widget.c (image_instantiator_layout):
11914         * glyphs-widget.c (image_instantiator_native_layout):
11915         rename decode_domain method to governing_domain.
11916
11917         * glyphs.c:
11918         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11919         * glyphs.c (add_entry_to_device_ii_format_list):
11920         make sure we don't put an entry more than once into the list.
11921         * glyphs.c (check_instance_cache_mapper):
11922         *************************************************************
11923         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11924         HAVE BEEN GETTING.
11925         *************************************************************
11926         * glyphs.c (get_image_instantiator_governing_domain):
11927         clean up, expand on new concept of governing domain.
11928         * glyphs.c (instantiate_image_instantiator):
11929         * glyphs.c (allocate_image_instance):
11930         use governing_domain instead of cache_domain in naming.
11931         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11932         * glyphs.c (make_image_instance_1):
11933         * glyphs.c (Fmake_image_instance):
11934         allow for any domain (not just device), and process the
11935         governing domain correctly.  very big doc fix.
11936         * glyphs.c (Fimage_instance_domain):
11937         new primitive, to retrieve the governing domain of an image instance.
11938         * glyphs.c (image_instantiate):
11939         use new governing_domain stuff.  this fixes a crash you could get
11940         by instantiating certain widget glyphs in frame locales. (should
11941         signal an error instead of crashing.)
11942         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11943         * glyphs.c (Fglyphp): clean up doc.
11944         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11945         * glyphs.c (syms_of_glyphs):
11946         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11947         * glyphs.c (image_instantiator_format_create): add some comments about
11948         bogus code.
11949         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11950         for current-display-table. (Apparently Hrjove implemented in 1998 a
11951         design I wrote up in 1996, but didn't update the doc string.)
11952
11953         * glyphs.h: clean up a doc string.
11954         * glyphs.h (governing_domain):
11955         * glyphs.h (struct image_instantiator_methods):
11956         changes for governing_domain stuff.
11957
11958         * gutter.c:
11959         * gutter.c (Fgutter_specifier_p):
11960         * gutter.c (Fgutter_size_specifier_p):
11961         * gutter.c (Fgutter_visible_specifier_p):
11962         * objects.c:
11963         * objects.c (Fcolor_specifier_p):
11964         * objects.c (Ffont_specifier_p):
11965         * objects.c (Fface_boolean_specifier_p):
11966         doc strings moved to make-*-specifier.
11967
11968         * redisplay.c (add_disp_table_entry_runes_1):
11969         * redisplay.c (generate_fstring_runes):
11970         * redisplay.c (screen):
11971         add random comments and doc strings.
11972
11973         * specifier.c:
11974         * specifier.c (Fmake_specifier):
11975         major overhaul of this doc string.
11976
11977         * specifier.c (Fvalid_specifier_domain_p):
11978         comment about the bogosity of image instances being domains.
11979         * specifier.c (decode_domain):
11980         now non-static, used in glyphs.c.
11981         * specifier.c (specifier_instance):
11982         comment about the bogosity of image instances being domains.
11983         * specifier.c (Fgeneric_specifier_p):
11984         move doc string to make-generic-specifier.
11985         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11986         rebackslashify.
11987
11988         * specifier.h:
11989         * specifier.h (DOMAIN_FRAME):
11990         * specifier.h (DOMAIN_LIVE_P):
11991         * specifier.h (DOMAIN_XDEVICE):
11992         rebackslashify.
11993         add comments about problems with these macros.
11994         prototype for decode_domain.
11995
11996         * toolbar.c:
11997         * toolbar.c (Ftoolbar_specifier_p):
11998         move doc string to `make-toolbar-specifier'.
11999
12000         * window.c (window_unmap_subwindows_cache_mapper):
12001         *************************************************************
12002         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12003         HAVE BEEN GETTING.
12004         *************************************************************
12005
12006 2000-05-09  Andy Piper  <andy@xemacs.org>
12007
12008         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12009
12010         * window.c (Fset_window_configuration): reset the frame subwindow
12011         cache and re-initialize the window subwindow caches.
12012
12013         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12014
12015 2000-05-09  Ben Wing  <ben@xemacs.org>
12016
12017         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12018         DWORD.
12019
12020 2000-04-26  Mike Woolley  <mike@bulsara.com>
12021
12022         * ntheap.c: Changed recreate_heap to limit the amount reserved
12023         for the heap to that which is actually available. Also now
12024         displays a message box (with some dignostics) in the event that
12025         it still can't start.
12026
12027 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12028
12029         * callproc.c (Fold_call_process_internal): GCPRO path
12030
12031 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12032
12033         Patch by Bill Perry.
12034
12035         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12036         back data instead of #ifdef.
12037         (Fscrollbar_page_down): ditto.
12038
12039 2000-05-07  Ben Wing  <ben@xemacs.org>
12040
12041         * buffer.h:
12042         Kludge for defining Qmswindows_tstr.
12043
12044         * nt.c:
12045         * nt.c (open_input_file):
12046         * nt.c (open_output_file):
12047         * nt.c (rva_to_section):
12048         * nt.c (mswindows_executable_type):
12049         Move all memory-mapped-file routines here (some were in unexnt.c,
12050         which is bad because they are used by process-nt.c, and unexnt
12051         won't be around when portable dumping).  Synched the above routines
12052         with FSF 20.6.
12053
12054         * nt.h:
12055         Removed ifdef'd out bogus code.
12056         Fixed some prototypes.
12057
12058         * nt.h (file_data):
12059         * nt.h (OFFSET_TO_RVA):
12060         * nt.h (RVA_TO_OFFSET):
12061         * nt.h (RVA_TO_PTR):
12062         Moved the memory-mapped-file structures, macros and prototypes
12063         here, to parallel nt.c.  ntheap.h should really be removed
12064         entirely, and it's a non-portable-dumper specific file.
12065
12066         * ntheap.h (round_to_next):
12067         Moved the memory-mapped-file structures, macros and prototypes
12068         to nt.h.
12069
12070         * ntproc.c (compare_env):
12071         Moved rva_to_section and mswindows_executable_type to nt.c.
12072         Moved compare_env to process-nt.c.
12073         ntproc.c will die, one day.
12074
12075         * ntproc.c (sys_spawnve):
12076         Account for win32_ -> mswindows_.
12077
12078         * process-nt.c:
12079         * process-nt.c (struct nt_process_data):
12080         * process-nt.c (ensure_console_window_exists):
12081         * process-nt.c (compare_env):
12082         * process-nt.c (nt_create_process):
12083         * process-nt.c (nt_kill_process_by_pid):
12084         * process-nt.c (syms_of_process_nt):
12085         * process-nt.c (vars_of_process_nt):
12086         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12087         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12088         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12089         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12090         Move compare_env here from ntproc.c.
12091
12092         * process.c (Fprocess_send_region):
12093         Takes an optional fourth argument, BUFFER, which should fix some
12094         problems with call-process.
12095
12096         * syscommctrl.h:
12097         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12098
12099         * syswindows.h:
12100         Move ICC_BAR_CLASSES to syscommctrl.h.
12101         Add preliminary macros for MSWindows/Mule.  More to come.
12102
12103         * unexnt.c:
12104         * unexnt.c (unexec):
12105         open_output_file moved to nt.c.
12106
12107
12108 2000-05-05  Andy Piper  <andy@xemacs.org>
12109
12110         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12111         instance from the frame cache also since GC may catch up too late
12112         to make frame deletion sane.
12113
12114 2000-05-04  Andy Piper  <andy@xemacs.org>
12115
12116         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12117         (x_finalize_image_instance): ungcpro on deletion.
12118
12119         * glyphs.c (image_instantiator_format_create): give pointers a
12120         query geometry method so that the geometry is at least set.
12121
12122         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12123         initialize layouts if using widgets.
12124
12125 2000-05-03  Andy Piper  <andy@xemacs.org>
12126
12127         * nt.c: remove bogus reference to sysmmsystem.h
12128
12129         * gui-x.c (popup_selection_callback): fix no selection abort.
12130
12131 2000-05-02  Andy Piper  <andy@xemacs.org>
12132
12133         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12134         (mswindows_widget_instantiate): ditto.
12135
12136         * glyphs-widget.c (initialize_widget_image_instance): initialize
12137         children correctly.
12138         (widget_instantiate): cope with children and items in the same
12139         instance.
12140
12141         * glyphs.c (mark_image_instance): cope with children as a first
12142         class member.
12143         (image_instance_equal): ditto.
12144         (image_instance_hash): ditto.
12145         (image_instance_changed): ditto.
12146
12147 2000-04-30  Andy Piper  <andy@xemacs.org>
12148
12149         * glyphs.c (subwindow_query_geometry): new function. Return some
12150         defaults.
12151         (subwindow_instantiate): don't assign dimensions if none have been
12152         given.
12153         (image_instantiator_format_create): add subwindow_query_geometry.
12154         (print_image_instance): cope with layouts as widgets.
12155
12156 2000-04-29  Andy Piper  <andy@xemacs.org>
12157
12158         * frame.c (delete_frame_internal): call
12159         free_frame_subwindow_instance_cache so that all subwindows are
12160         finalized before their parent.
12161         (mark_frame): remove subwindow_cachels.
12162         (Fmake_frame): remove subwindow_cachel manipulation.
12163         (allocate_frame_core): subwindow_instance_cache is a weak list.
12164         (delete_frame_internal): set subwindow_instance_cache to nil.
12165
12166         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12167         finalization safe.
12168         (mswindows_finalize_image_instance): use the device
12169         not the domain as the domain may have died already.
12170
12171         * glyphs-x.c (x_finalize_image_instance): ditto.
12172         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12173         HEIGHT.
12174
12175         * redisplay-output.c (redisplay_unmap_subwindows): update for
12176         subwindow instance cache as a weak list.
12177         (redisplay_unmap_subwindows_maybe): ditto.
12178         (redisplay_unmap_subwindows_except_us): ditto.
12179
12180         * glyphs.c (unmap_subwindow): error checking will check the domain
12181         so don't deal with it here. Don't use cachels anymore.
12182         (map_subwindow): ditto.
12183         (update_subwindow_cachel_data): remove old accessor names.
12184         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12185         (Fresize_subwindow): don't update cachel.
12186         (mark_subwindow_cachels):
12187         (update_subwindow_cachel_data):
12188         (add_subwindow_cachel):
12189         (get_subwindow_cachel_index):
12190         (update_subwindow_cachel):
12191         (reset_subwindow_cachels):
12192         (mark_subwindow_cachels_as_not_updated): deleted.
12193         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12194         subwindow instance to the frame cache.
12195         (find_matching_subwindow): update for subwindow instance cache as
12196         a weak list.
12197         (update_widget_instances): ditto.
12198         (image_instance_type_to_mask):inlined.
12199         (free_frame_subwindow_instance_cache): new function. finalize all
12200         subwindows that are instantiated.
12201
12202         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12203         of cachel information.
12204         (IMAGE_INSTANCE_DISPLAY_X):
12205         (IMAGE_INSTANCE_DISPLAY_Y):
12206         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12207         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12208         (XIMAGE_INSTANCE_DISPLAY_X):
12209         (XIMAGE_INSTANCE_DISPLAY_Y):
12210         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12211         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12212         remove subwindow_cachel structure and function references.
12213         (image_instance_type_to_mask): inline from glyphs.c
12214
12215         * redisplay.c (redisplay_frame): remove subwindow_cachel
12216         references.
12217
12218         * frame.h (struct frame): remove subwindow_cachels.
12219         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12220
12221         * frameslots.h: add subwindow_instance_cache.
12222
12223         * window.c (replace_window): check subwindow cache of replacement.
12224         (window_unmap_subwindows_cache_mapper):
12225         (window_unmap_subwindows): new functions. Unmap all subwindows
12226         cached on this window.
12227         (mark_window_as_deleted): unmap all subwindows.
12228
12229 2000-04-27  Andy Piper  <andy@xemacs.org>
12230
12231         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12232
12233         * glyphs-widget.c (widget_layout): return something.
12234         (layout_layout): return something. Fail if not initialized.
12235         (layout_query_geometry): ditto.
12236         (image_instantiator_native_layout): new function. Initialized the
12237         native layout type.
12238         (widget_instantiate): don't do layout stuff here.
12239
12240         * glyphs.c (instantiate_image_instantiator): reorded calling or
12241         instantiate and post_instantiate with layout in between.
12242         (image_instance_layout): be more selective about deciding whether
12243         the layout has been done or not.
12244
12245         * glyphs.h (struct image_instantiator_methods): return a value
12246         from layout_method.
12247
12248 2000-04-26  Andy Piper  <andy@xemacs.org>
12249
12250         * glyphs.c (allocate_image_instance): make initial width and
12251         height unspecified. Set initialized to 0.
12252
12253         * syscommctrl.h new file. Encapsulates commctrl.h.
12254
12255         * syswindows.h new file. Encapsulates windows.h.
12256
12257         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12258         * nt.c: ditto.
12259         * console-msw.h: ditto.
12260
12261         * redisplay-tty.c (tty_output_display_block): remove layout references.
12262
12263         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12264         window handle rather than just the frame.
12265
12266         * glyphs.c (mark_image_instance): remove layout references.
12267         (print_image_instance): ditto.
12268         (image_instance_equal): ditto.
12269         (image_instance_hash): ditto.
12270         (decode_image_instance_type): ditto.
12271         (encode_image_instance_type): ditto.
12272         (image_instantiate): ditto.
12273         (allocate_glyph): ditto.
12274         (Fimage_instance_height): ditto.
12275         (Fimage_instance_width): ditto.
12276         (update_subwindow): ditto.
12277
12278         * redisplay-x.c (x_output_display_block): recode for layouts as
12279         widgets.
12280
12281         * redisplay-output.c (redisplay_output_layout): recode for layouts
12282         as widgets.
12283         (compare_runes): remove layout references.
12284
12285         * redisplay-msw.c (mswindows_output_display_block): recode for
12286         layouts as widgets.
12287
12288         * glyphs-widget.c (image_instantiator_layout): remove
12289         layout_possible_dest_types.
12290         (layout_possible_dest_types): deleted.
12291
12292         * glyphs.h (image_instance_type): remove layout references.
12293         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12294         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12295         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12296
12297 2000-04-25  Andy Piper  <andy@xemacs.org>
12298
12299         * glyphs-widget.c (image_instantiator_buttons):
12300         (image_instantiator_edit_fields):
12301         (image_instantiator_combo_box):
12302         (image_instantiator_scrollbar):
12303         (image_instantiator_progress_guage):
12304         (image_instantiator_tree_view):
12305         (image_instantiator_tab_control):
12306         (image_instantiator_labels):
12307         (image_instantiator_layout): call default post_instantiate method.
12308         (widget_post_instantiate): new function. Simply lays out the
12309         widgets.
12310
12311         * glyphs.h (struct image_instantiator_methods): add
12312         post_instantiate method.
12313
12314         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12315         method calls.
12316
12317 2000-04-23  Andy Piper  <andy@xemacs.org>
12318
12319         * glyphs.h (struct image_instantiator_methods): add
12320         decode_domain_method.
12321         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12322         derived from the domain.
12323         (IMAGE_INSTANCE_FRAME): new accessor.
12324         (XIMAGE_INSTANCE_FRAME): ditto.
12325
12326         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12327         instead of _SUBWINDOW_FRAME.
12328         (finalize_image_instance): ditto.
12329         (Fimage_instance_foreground): ditto.
12330         (Fimage_instance_background): ditto.
12331         (image_instantiate): ditto.
12332         (update_subwindow_cachel): ditto.
12333         (update_subwindow): ditto.
12334         (unmap_subwindow): ditto.
12335         (map_subwindow): ditto
12336         (subwindow_instantiate): ditto.
12337         * glyphs-msw.c (mswindows_update_widget): ditto.
12338         (mswindows_progress_gauge_instantiate): ditto.
12339         (mswindows_tab_control_update): ditto.
12340         * glyphs-x.c (x_update_widget): ditto.
12341         (x_widget_instantiate): ditto.
12342         (x_tab_control_instantiate): ditto.
12343         (x_tab_control_update): ditto.
12344         * event-msw.c (mswindows_wnd_proc): ditto
12345
12346         * glyphs-widget.c (image_instantiator_layout): use
12347         subwindow_decode_domain.
12348         (image_instantiator_buttons): ditto.
12349         (image_instantiator_edit_fields): ditto.
12350         (image_instantiator_combo_box): ditto.
12351         (image_instantiator_scrollbar): ditto.
12352         (image_instantiator_progress_guage): ditto.
12353         (image_instantiator_tree_view): ditto.
12354         (image_instantiator_tab_control): ditto.
12355         (image_instantiator_labels): ditto.
12356         (image_instantiator_layout): ditto.
12357
12358         * glyphs.c: add instance error checking to many functions.
12359         (instantiate_image_instantiator): decode device from cache_domain.
12360         (image_instantiate): partially rewrite by using
12361         decode_image_instantiator_domain to determine what domain the
12362         instance needs to be cached in.
12363         (decode_image_instantiator_domain): new function. Determine what
12364         domain the image needs to be cached in.
12365         (check_window_subwindow_cache): new error checking function.
12366         (check_instance_cache_mapper): ditto.
12367         (check_image_instance_structure): ditto.
12368         (subwindow_decode_domain): new function. Encodes a window as a
12369         subwindow's cache domain.
12370         (image_instantiator_format_create): use it for text and
12371         subwindows.
12372
12373 2000-04-21  Andy Piper  <andy@xemacs.org>
12374
12375         * glyphs.c (image_instance_device): new function.
12376         (image_instance_frame): new function.
12377         (image_instance_window): new function.
12378         (image_instance_live_p): new function.
12379
12380         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12381         cache to nil.
12382
12383         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12384         (IMAGE_INSTANCE_DOMAIN): new accessor.
12385         (XIMAGE_INSTANCE_DOMAIN): ditto.
12386
12387         * glyphs-x.c (x_finalize_image_instance): device->domain.
12388
12389         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12390         (mswindows_finalize_image_instance): ditto.
12391
12392         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12393         (gif_instantiate): ditto.
12394         (png_instantiate): ditto.
12395         (tiff_instantiate): ditto.
12396
12397         * glyphs.c (instantiate_image_instantiator): use domain rather
12398         than device.
12399         (mark_image_instance): device -> domain.
12400         (print_image_instance): ditto.
12401         (finalize_image_instance): ditto.
12402         (image_instance_equal): ditto.
12403         (allocate_image_instance): ditto.
12404         (Fcolorize_image_instance): ditto.
12405         (query_string_geometry): ditto.
12406         (image_instantiate): ditto
12407         (query_string_font): ditto.
12408         (image_instantiate): ditto.
12409         (update_subwindow): ditto.
12410         (unmap_subwindow): ditto.
12411         (map_subwindow): ditto.
12412         (subwindow_instantiate): ditto.
12413
12414         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12415         (DOMAIN_FRAME): ditto.
12416         (DOMAIN_WINDOW): ditto.
12417         (DOMAIN_LIVE_P): ditto.
12418         (XDOMAIN_DEVICE): ditto.
12419         (XDOMAIN_FRAME): ditto.
12420         (XDOMAIN_WINDOW): ditto.
12421
12422         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12423         a valid specifier domain.
12424
12425 2000-04-19  Andy Piper  <andy@xemacs.org>
12426
12427         * glyphs-widget.c (syms_of_glyphs_widget): remove
12428         widget-callback-current-channel.
12429         (vars_of_glyphs_widget): ditto.
12430         * glyphs.h: ditto
12431
12432         * gui.c (get_gui_callback): revert to previous behaviour.
12433
12434 2000-04-18  Andy Piper  <andy@xemacs.org>
12435
12436         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12437         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12438         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12439
12440         * glyphs.c (image_instance_equal): add margin_width.
12441         (image_instance_hash): ditto.
12442
12443         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12444         (layout_query_geometry): ditto.
12445         (layout_layout): ditto.
12446         (syms_of_glyphs_widget): add margin-width.
12447         (image_instantiator_layout): allow margin-width.
12448
12449         * glyphs.c (update_widget_instances): make a normal function.
12450         (syms_of_glyphs): remove Qupdate_widget_instances.
12451         * glyphs.h: ditto.
12452
12453         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12454         so that we don't corrupt ideas about the last event or
12455         command. Remove widget-callback-current-channel fiddling.
12456         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12457
12458 2000-05-01  Martin Buchholz <martin@xemacs.org>
12459
12460         * XEmacs 21.2.33 is released.
12461
12462 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12463
12464         * make-src-depend: Allow dots in header file name.
12465
12466 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12467
12468         * mule-charset.h (struct charset_lookup): Add
12469         next_allocated_1_byte_leading_byte and
12470         next_allocated_2_byte_leading_byte.
12471         * mule-charset.c: Move above two variables so that those values
12472         will be dumped.
12473
12474 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12475
12476         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12477         when string length is zero.
12478         (find_charsets_in_emchar_string): Ditto.
12479
12480 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12481
12482         * lisp.h: extern Qdialog and Qmenubar.
12483
12484         * gui-x.c: added events.h.
12485                 also fixed typo which made the file uncompilable.
12486
12487         * general.c: Added Qmenubar and Qdialog
12488
12489 2000-04-28  Ben Wing  <ben@xemacs.org>
12490
12491         * frame-msw.c (mswindows_init_frame_1):
12492         * frame-msw.c (mswindows_mark_frame):
12493         * event-msw.c (mswindows_enqueue_dispatch_event):
12494         * console-msw.h:
12495         * console-msw.h (struct mswindows_frame):
12496         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12497         there are now three hash tables for callbacks.
12498         mswindows_enqueue_dispatch_event is no longer static.
12499
12500         * dialog-x.c (maybe_run_dbox_text_callback):
12501         * dialog-x.c (dbox_descriptor_to_widget_value):
12502         switch to new cons3 form for callbacks.
12503
12504         * glyphs-msw.c (mswindows_register_gui_item):
12505         * glyphs-msw.c (mswindows_widget_instantiate):
12506         * glyphs-msw.c (add_tree_item):
12507         * glyphs-msw.c (add_tab_item):
12508         new image instance parameter, so it can be passed to callback-ex.
12509         respect :callback-ex as well as :callback.
12510
12511         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12512         add :callback-ex.
12513
12514         * glyphs.c (print_image_instance):
12515         prettify, e.g. now prints widget type.
12516
12517         * gui-x.h:
12518         certain funs have new image instance parameter.
12519
12520         * gui.c:
12521         * gui.c (get_gui_callback):
12522         * gui.c (gui_item_add_keyval_pair):
12523         * gui.c (gui_item_init):
12524         * gui.c (gui_add_item_keywords_to_plist):
12525         * gui.c (mark_gui_item):
12526         * gui.c (gui_item_hash):
12527         * gui.c (gui_item_equal):
12528         * gui.c (copy_gui_item):
12529         * gui.c (syms_of_gui):
12530         recognize callback-ex in a number of places.
12531         also, fix the annoying "can't get out of yes-no dialog" bug.
12532
12533         * gui.h:
12534         * gui.h (struct Lisp_Gui_Item):
12535         recognize callback-ex in a number of places.
12536
12537         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12538         new parameter in button_item_to_widget_value.
12539
12540         * glyphs-x.c (x_update_widget):
12541         * glyphs-x.c (x_button_instantiate):
12542         * glyphs-x.c (x_button_update):
12543         * glyphs-x.c (x_progress_gauge_instantiate):
12544         * glyphs-x.c (x_edit_field_instantiate):
12545         * glyphs-x.c (x_combo_box_instantiate):
12546         * glyphs-x.c (x_tab_control_instantiate):
12547         * glyphs-x.c (x_label_instantiate):
12548         new image instance parameter in various places.
12549
12550         * event-Xt.c:
12551         * event-Xt.c (enqueue_Xt_dispatch_event):
12552         this fun gets exported.
12553
12554         * gui-msw.c:
12555         * gui-msw.c (mswindows_handle_gui_wm_command):
12556         handle both :callback and :callback-ex, and generate our own
12557         event because it's one of the callback-ex arguments.
12558
12559         * gui-x.c:
12560         * gui-x.c (popup_selection_callback):
12561         handle both :callback and :callback-ex, and generate our own
12562         event because it's one of the callback-ex arguments.
12563         * gui-x.c (button_item_to_widget_value):
12564         * gui-x.c (gui_items_to_widget_values_1):
12565         * gui-x.c (gui_item_children_to_widget_values):
12566         * gui-x.c (gui_items_to_widget_values):
12567         new image instance parameter in various places.
12568
12569         * fns.c (Freplace_list):
12570         fix small typo in doc string.
12571
12572         * lisp.h:
12573         declare enqueue_Xt_dispatch_event.
12574
12575 2000-04-28  Ben Wing  <ben@xemacs.org>
12576
12577         * buffer.c:
12578         * buffer.c (Frecord_buffer):
12579         * buffer.c (syms_of_buffer):
12580         delete record-buffer-hook.
12581
12582         * fns.c:
12583         * fns.c (Freplace_list):
12584         * fns.c (syms_of_fns):
12585         new primitive replace-list.
12586
12587         * frameslots.h:
12588         slot for old buffer-alist.
12589
12590         * lisp.h:
12591         exfun replace-list.
12592
12593         * redisplay.c:
12594         * redisplay.c (redisplay_frame):
12595         * redisplay.c (syms_of_redisplay):
12596         * redisplay.c (vars_of_redisplay):
12597         new hook buffer-list-changed-hook.
12598         call it.
12599
12600 2000-04-27  Ben Wing  <ben@xemacs.org>
12601
12602         * extents.h: extern in_modeline_generation.
12603
12604         * redisplay.c (generate_formatted_string_db): set
12605         in_modeline_generation.
12606
12607         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12608         flags if in modeline generation.  otherwise frame-modified-tick
12609         is ticked far too often.
12610         Declare in_modeline_generation.
12611
12612 2000-04-26  Ben Wing  <ben@xemacs.org>
12613
12614         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12615         option.
12616         (vars_of_emacs): add quick-build as an error-checking option.
12617         A bit kludgy, but there doesn't seem much point in creating
12618         a real var for this.
12619
12620         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12621
12622 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12623
12624         * redisplay.h (struct display_line): Add a new variable,
12625         line_continuation.
12626
12627         * redisplay.c (create_text_block): Set dl->line_continuation if
12628         the line continues.
12629         (create_string_text_block): Ditto.
12630         (regenerate_window_incrementally): Use line_continuation instead
12631         of searching continuation glyph.
12632         (add_margin_runes): Call add_glyph_rune.
12633         (add_glyph_rune): Handle margin glyph.
12634
12635 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12636
12637         * filelock.c (fill_in_lock_file_name):
12638         ANSIfy.
12639         Check for IS_ANY_SEP instead of '/'.
12640         (lock_file_1):
12641         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12642         Never check errno without first seeing that system call failed.
12643         (unlock_file): Add GCPRO.
12644         (Flock_buffer): Fix docstring.
12645         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12646
12647 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12648
12649         * sysdep.c (get_pty_max_bytes):
12650         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12651         strings longer than 252 bytes.
12652
12653         * md5.c: Unconditionally include ANSI header <limits.h>
12654
12655         * glyphs-x.c (convert_EImage_to_XImage):
12656         * lisp-union.h (union Lisp_Object):
12657         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12658
12659 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12660
12661         * filelock.c (current_lock_owner): Remove unused variable o, p.
12662
12663 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12664
12665         * callint.c: Remove multiply defined symbol Qlet
12666         (syms_of_callint): ditto.
12667
12668 2000-04-14  Andy Piper  <andy@xemacs.org>
12669
12670         * general.c (syms_of_general): add last-command, this-command, let
12671         and funcall.
12672
12673         * lisp.h: declare various symbols.
12674
12675         * glyphs.h: declare Qwidget_callback_current_channel;
12676
12677         * glyphs-widget.c (syms_of_glyphs_widget): add
12678         Qgui_callback_current_channel.
12679         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12680
12681         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12682         widget-callback-current-channel when invoking the interactive
12683         arg. Also bind last-command and next-command when invoking the
12684         widget updates.
12685         * gui-x.c (popup_selection_callback): ditto.
12686
12687         * gui.c (get_gui_callback): massage args so that we are always
12688         calling eval. This allows us to add our own variable bindings
12689         outside.
12690
12691         * glyphs-x.c (x_button_instantiate): use
12692         gui_items_to_widget_values since this is GC safe.
12693         (x_progress_gauge_instantiate): ditto.
12694         (x_edit_field_instantiate): ditto.
12695         (x_label_instantiate): ditto.
12696
12697         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12698         (emacs_Xt_event_widget_focus_out): new function
12699         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12700         focus.
12701         (emacs_Xt_event_add_widget_actions): new function. add focus
12702         functions as actions.
12703         (init_event_Xt_late): use it.
12704
12705 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12706
12707         * event-stream.c (Fdispatch_event): Doc fix.
12708
12709 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12710
12711         * postgresql.c: Remove all references to PQsetenv*.
12712
12713         * postgresql.h: Remove references to PGsetenvHandler object.
12714         * lrecord.h (lrecord_type): Ditto.
12715
12716 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12717
12718         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12719         real_heigh and real_width members, and accessor macros for these.
12720
12721         * glyphs-msw.c (init_image_instance_geometry): New function.
12722         (init_image_instance_from_dibitmap): Use it.
12723         (mswindows_resource_instantiate): Use it.
12724         (init_image_instance_from_xbm_inline): Use it.
12725         (mswindows_initialize_image_instance_mask): Use real bitmap
12726         geometry.
12727         (mswindows_create_resized_bitmap): Ditto.
12728         (mswindows_create_resized_mask): Ditto.
12729
12730         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12731         and bitmap to their surface size.
12732
12733 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12734
12735         * process-unix.c (unix_send_process): Guard against process MIA
12736         after Faccept_process_output.
12737
12738 2000-04-11  Ben Wing  <ben@xemacs.org>
12739
12740         * eval.c (unbind_to_hairy): fix brokenness introduced by
12741         nanosecond speed improvements.
12742
12743 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12744
12745         * sunplay.c (init_device): To play sounds correctly, the device
12746         apparently needs to be initialized at least once by XEmacs.  Make
12747         it so.
12748
12749 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12750
12751         * redisplay.c (add_margin_runes): Add text image glyph
12752           handling.
12753
12754 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12755
12756         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12757         gcc is newer than 2.5.
12758
12759 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12760
12761         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12762
12763         * fns.c (size_bit_vector):
12764         * alloc.c (size_vector):
12765         (make_vector_internal):
12766         (make_bit_vector_internal):
12767         (sweep_bit_vectors_1):
12768         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12769
12770 2000-04-06  Andy Piper  <andy@xemacs.org>
12771
12772         * gmalloc.c (malloc): undo previous change.
12773         (malloc): ditto.
12774         (free): ditto.
12775         (realloc): ditto.
12776
12777 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12778
12779         * line-number.c (buffer_line_number): Revert to former version.
12780
12781 2000-04-06  Andy Piper  <andy@xemacs.org>
12782
12783         * gmalloc.c (malloc): add error checking.
12784         (malloc): ditto.
12785         (free): ditto.
12786         (realloc): ditto.
12787
12788         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12789         button_item_to_widget_value arg.
12790
12791         * glyphs-x.c (x_button_instantiate): add extra
12792         button_item_to_widget_value arg.
12793         (x_progress_gauge_instantiate): ditto.
12794         (x_edit_field_instantiate): ditto.
12795         (x_label_instantiate): ditto.
12796
12797         * gui-x.c (gui_items_to_widget_values_1): add extra
12798         button_item_to_widget_value arg.
12799         (button_item_to_widget_value): add extra menu_item_p arg.
12800
12801         * gui-x.h: change signature of button_item_to_widget_value.
12802
12803         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12804         button_item_to_widget_value arg.
12805
12806 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12807
12808         * buffer.h (struct buffer): auto_save_modified should be long.
12809
12810 2000-04-05  Andy Piper  <andy@xemacs.org>
12811
12812         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12813         type.
12814         (button_query_geometry): give a little more room so that athena
12815         buttons fit.
12816
12817 2000-04-05  Andy Piper  <andy@xemacs.org>
12818
12819         * faces.c (complex_vars_of_faces): The widget face should inherit
12820         the font of the gui-element face.
12821
12822 2000-04-04  Andy Piper  <andy@xemacs.org>
12823
12824         * glyphs-x.c (x_button_update): new function. unconditionally
12825         update a button's state when the instance is dirty.
12826         (image_instantiator_format_create_glyphs_x): add x_button_update.
12827         (x_widget_instantiate): remove old resize cruft.
12828
12829 2000-04-02  Andy Piper  <andy@xemacs.org>
12830
12831         * frame.c (change_frame_size_1): The introduction of gutters means
12832         that we need to allow 0 as a potential frame dimension.
12833
12834 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12835
12836         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12837         image glyph if allow_cursor.
12838         (add_hscroll_rune): Don't allow cursor to border glyph.
12839         (create_text_block): Ditto.
12840
12841         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12842         text not in buffer.
12843         (redisplay_output_layout): Call ensure_face_cachel_complete for
12844         text image glyph.
12845
12846
12847 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12848
12849         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12850
12851         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12852         not in buffer
12853
12854         * redisplay-tty.c (tty_output_display_block): Delete the routine
12855         for text image glyph
12856         * redisplay-x.c (x_output_display_block): ditto
12857         * redisplay-msw.c (mswindows_output_display_block): ditto
12858
12859 2000-02-02  Mike Alexander  <mta@arbortext.com>
12860
12861         Note: Some of these were committed by accident as part of other
12862         patches.
12863
12864         * regex.c (regex_compile): Avoid compiler warnings.
12865
12866         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12867
12868         * nt.h: Declare term_ntproc correctly.
12869
12870         * nt.c: Remove incorrect declaration of get_home_directory which
12871         is declared correctly in lisp.h.
12872
12873         * keymap.c (get_keyelt): Avoid compiler warnings.
12874         (raw_lookup_key_mapper): Avoid compiler warnings.
12875
12876         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12877
12878         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12879
12880         * filemode.c (mode_string): Avoid compiler warnings.
12881
12882         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12883         avoid warning.
12884
12885         * events-mod.h: Undef some things that winuser.h defines differently.
12886
12887         * data.c (Faset): Avoid compiler warnings.
12888
12889         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12890
12891 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12892
12893         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12894         Fall through to simple beep on error.
12895         Replace "extern" by real header file.
12896
12897         * linuxplay.c: Use nativesound.h
12898         (play_sound_data): Return error code. Be less verbose on error.
12899
12900         * sunplay.c: Use nativesound.h
12901         (play_sound_data): Return error code. Be less verbose on error.
12902
12903         * ntplay.c: Use nativesound.h
12904         (play_sound_data): Return fake error code
12905
12906         * sgiplay.c: Use nativesound.h
12907         (play_sound_data): Return error code
12908
12909         * hpplay.c: Use nativesound.h, partially implement
12910         new error code. Break compilation until finished.
12911         (play_sound_data): error code.
12912
12913         * nativesound.h (play_sound_file):
12914           (play_sound_data): Prototype in new header.
12915
12916 2000-03-31  Andy Piper  <andy@xemacs.org>
12917
12918         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12919         for toggle and radio buttons.
12920         (image_instantiator_buttons): use it.
12921
12922 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12923
12924         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12925         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12926         found. Scrollbar event probably belonged to some old config.
12927
12928 2000-03-31  Andy Piper  <andy@xemacs.org>
12929
12930         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12931         than 1.
12932         (initialize_widget_image_instance): default layout to
12933         LAYOUT_HORIZONTAL rather than 0.
12934         (widget_instantiate): reverse the item list at the end rather than
12935         every iteration.
12936         (layout_layout): re-code for the border text at the front of the
12937         item list rather than at the end.
12938         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12939         provided by the user.
12940         (widget_query_geometry): comment.
12941
12942 2000-03-30  Andy Piper  <andy@xemacs.org>
12943
12944         * glyphs-widget.c (image_instantiator_layout): allow standard
12945         widget keywords in layouts.
12946
12947         * gutter.c (output_gutter): cope with nil gutter contents.
12948
12949         * frame.c (Fset_frame_properties): add gutter docs.
12950
12951 2000-03-29  Andy Piper  <andy@xemacs.org>
12952
12953         * toolbar-msw.c (TBSTYLE_FLAT): add.
12954         (mswindows_output_toolbar): minor fiddling.
12955
12956 2000-03-29  Andy Piper  <andy@xemacs.org>
12957
12958         * gutter.c (output_gutter): force gutter size recalculation if
12959         what we are trying to display won't fit.
12960         (update_gutter_geometry): new function. A per-gutter version of
12961         update_frame_gutter_geometry.
12962         (update_frame_gutter_geometry): use it.
12963         (redraw_exposed_gutter): add extra debugging output.
12964
12965 2000-03-28  Mike Alexander  <mta@arbortext.com>
12966
12967         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12968         (pdump_file_unmap): Implement it on Windows
12969         (pdump_file_get): Save alocated handles for pdump_file_unmap
12970
12971 2000-03-28  Andy Piper  <andy@xemacs.org>
12972
12973         * gui.c (get_gui_callback): treat Quit specially.
12974
12975 2000-03-27  Andy Piper  <andy@xemacs.org>
12976
12977         * glyphs.c (image_instantiate): be careful to check in the same
12978         way we assigned.
12979
12980 2000-03-27  Didier Verna  <didier@xemacs.org>
12981
12982         * config.h.in: define the proper SMART_INCLUDE macro.
12983         handle renaming of `foo_h_path' to `foo_h_file'.
12984
12985         * database.c: ditto.
12986
12987         * emacs.c: ditto.
12988
12989         * linuxplay.c: ditto.
12990
12991         * terminfo.c: ditto.
12992
12993         * tooltalk.h: ditto.
12994
12995 2000-03-27  Andy Piper  <andy@xemacs.org>
12996
12997         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12998         gets updated whenever the face might have changed.
12999
13000 2000-03-26  Mike Alexander  <mta@arbortext.com>
13001
13002         * dumper.c (pdump_resource_free): Fix the comment.
13003
13004 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13005
13006         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13007
13008 2000-03-22  Mike Alexander  <mta@arbortext.com>
13009
13010         * dumper.c: Include Windows headers on Windows
13011         (pdump_resource_free): Add a body to the function
13012         (pdump_load): exe_name -> exe_path and add some comments.
13013
13014 2000-03-25  Mike Alexander  <mta@arbortext.com>
13015
13016         * gui.c (copy_gui_item_tree): Return a value in all cases
13017
13018 2000-03-21  Didier Verna  <didier@xemacs.org>
13019
13020         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13021         lwlib/config.h.in.
13022         (SMART_INCLUDE): new macro.
13023         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13024         the proper location.
13025
13026         * postgresql.c: use it.
13027
13028         * inline.c: ditto.
13029
13030 2000-03-24  Andy Piper  <andy@xemacs.org>
13031
13032         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13033         do this.
13034
13035 2000-03-24  Andy Piper  <andy@xemacs.org>
13036
13037         * redisplay-output.c (compare_runes): use image_instance_changed
13038         to detect changes. Do not depend on glyphs_changed, only depend on
13039         dirtiness.
13040          (redisplay_output_layout): add debug messages.
13041         (compare_runes): ditto.
13042
13043         * glyphs.h: declare new functions.
13044         (struct Lisp_Image_Instance): remove percent and associated
13045         accessors.
13046
13047         * gui.h: declare new copying functions.
13048
13049         * gui.c (copy_gui_item_tree): new function.
13050         (copy_gui_item): new function.
13051         (gui_item_id_hash): revert to standard hash.
13052         (gui_item_hash): ditto.
13053         (gui_item_hash_internal): deleted.
13054         (mark_gui_item): mark value.
13055         (gui_item_add_keyval_pair): add value.
13056         (gui_item_init): ditto.
13057         (gui_add_item_keywords_to_plist): ditto.
13058         (gui_item_equal): ditto.
13059         (syms_of_gui): add Q_value.
13060
13061         * glyphs-x.c (x_progress_gauge_update): use pending items and
13062         value for setting the state.
13063         (x_update_widget): don't set items from pending here.
13064
13065         * glyphs-widget.c (update_widget): update items here.
13066         (progress_gauge_set_property): use items for storing value. Put
13067         new value in pending items.
13068
13069         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13070         items for new value. Convert percent -> value.
13071         (mswindows_tab_control_update): don't update items here.
13072
13073         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13074         (update_subwindow): ditto.
13075         (image_instance_changed): new function. Compare hash values and
13076         past and present widget items.
13077         (image_instantiate): We more careful about where we instantiate
13078         things.
13079         (image_instantiate): add error checking.
13080
13081         * gutter.c (syms_of_gutter): use -hook.
13082
13083 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13084
13085         * console-tty.c (Fset_console_tty_input_coding_system): Use
13086         Qkeyboard.
13087         (Fset_console_tty_output_coding_system): Use Qterminal.
13088         (tty_init_console): Use Qkeyboard and Qterminal.
13089
13090 2000-03-21  Ben Wing  <ben@xemacs.org>
13091
13092         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13093         From Mike Alexander <mta@arbortext.com>.
13094
13095 2000-03-21  Ben Wing  <ben@xemacs.org>
13096
13097         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13098         process brokenness.  Proper implementation to come.
13099         * callproc.c:
13100         Rename call-process-internal to old-call-process-internal.
13101         New impl. in process.el.
13102
13103 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13104
13105         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13106
13107 2000-03-20  Andy Piper  <andy@xemacs.org>
13108
13109         * glyphs.c (full_list_hash): make hashes of the same elements in
13110         different orders return different values.
13111
13112 2000-03-20  Martin Buchholz <martin@xemacs.org>
13113
13114         * XEmacs 21.2.32 is released.
13115
13116 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13117
13118         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13119         (DFC_MALLOC_USE_CONVERTED_DATA):
13120         Add aliasing-safe casts to allow use with char* or unsigned char*
13121         lvalues.
13122
13123         * eldap.c (Fldap_open):
13124         (Fldap_search_basic):
13125         (Fldap_add):
13126         (Fldap_modify):
13127         Make C++-compilable.
13128         Make sure GCPRO'ed variables are initialized.
13129         Use temp variables to avoid repeated calls to Flength.
13130
13131 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13132
13133         * sysfile.h:
13134         Make sure PATH_MAX is always defined.
13135         Include limits.h for PATH_MAX.
13136         Deprecate use of MAXPATHLEN.
13137
13138 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13139
13140         * emacs.c: Add reinit_vars_of_fileio.
13141         * symsinit.h: Add reinit_vars_of_fileio.
13142         * fileio.c (reinit_vars_of_fileio): New.
13143         * fileio.c (Fmake_temp_name):
13144         Initialize temp_name random number from microseconds to make
13145         collisions even less likely.  Initialize always at process startup
13146         time.  (make-temp-name) used to return the same file name twice in
13147         a row when PDUMP.
13148         Random stylistic fiddling.
13149         Comment fixes.
13150
13151 2000-03-20  Andy Piper  <andy@xemacs.org>
13152
13153         * glyphs.c (image_instantiate): allow text glyphs to be
13154         instantiated in the minibuffer window.
13155
13156 2000-03-19  Andy Piper  <andy@xemacs.org>
13157
13158         * glyphs.c (image_instance_hash): be careful about which items we
13159         hash on.
13160
13161         * glyphs-widget.c (tab_control_set_property): record into pending
13162         items rather than the actual items.
13163
13164         * glyphs-x.c (x_update_widget): use pending items to update with.
13165
13166         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13167         to update with.
13168
13169         * glyphs.c (mark_image_instance): mark pending items.
13170
13171         * window.c (Fset_window_configuration): record the buffer.
13172         (Fselect_window): totally revert previous change which breaks many
13173         things.
13174
13175 2000-03-18  Andy Piper  <andy@xemacs.org>
13176
13177         * glyphs-msw.c (mswindows_tab_control_update): force selected
13178         item.
13179
13180         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13181         window domain cache, otherwise we get inconsistencies at
13182         startup. There is something fishy at startup which can lead to the
13183         minibuffer being the selected window when the gutter content is
13184         instantiated.
13185
13186         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13187         gcpros.
13188         (parse_gui_item_tree_children): ditto.
13189         (parse_gui_item_tree_item): ditto.
13190
13191         * glyphs.c (Fupdate_widget_instances): return something.
13192
13193 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13194
13195         * window.c (Fselect_window): Undo 2000-03-17 change.
13196
13197 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13198
13199         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13200         against v7.0 libraries.  Insta-coredump city until the postgres
13201         folks fix it.
13202
13203 2000-03-17  Andy Piper  <andy@xemacs.org>
13204
13205         * faces.c (complex_vars_of_faces): don't give the widget face an
13206         inherited background pixmap.
13207
13208         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13209         selected item.
13210
13211         * event-stream.c (Fdispatch_non_command_events): return something.
13212
13213         * gutter.c (output_gutter): use widget face.
13214         (clear_gutter): ditto.
13215
13216         * NEWS: adjust again.
13217
13218         * window.c (Fselect_window): make sure this runs to completion to
13219         avoid oddities with Fset_window_configuration.
13220         (Fcurrent_window_configuration): in general do not save the
13221         minibuffer as the selected window.
13222
13223         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13224
13225 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13226
13227         * emacs.c (Frunning_temacs_p): Revert previous patch.
13228         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13229
13230 2000-03-16  Andy Piper  <andy@xemacs.org>
13231
13232         * glyphs-x.c (x_tab_control_update): if no widget values then
13233         return.
13234
13235         * NEWS: update for new features.
13236
13237         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13238         synthetic event to the native system.
13239         (reinit_vars_of_event_Xt): set force_event_pending to
13240         emacs_Xt_force_event_pending.
13241
13242         * events.h (struct event_stream): add force_event_pending.
13243
13244         * specifier.c (recompute_one_cached_specifier_in_window): add
13245         comment.
13246
13247         * redisplay.c (redisplay_frame): don't call
13248         update_frame_subwindows. Reset subwindow cachels when
13249         subwindows_changed, removing this was an optimization too far.
13250
13251         * redisplay-output.c (compare_runes): reorganize so that we catch
13252         glyph changes when we want them. Set optimize_output when this
13253         would help layouts.
13254         (redisplay_output_layout): remove frame_really_changed, use
13255         optimize_output instead.
13256
13257         * redisplay-msw.c (mswindows_output_display_block): reset
13258         optimize_output after outputting a glyph.
13259         * redisplay-x.c (x_output_display_block): ditto.
13260         * redisplay-tty.c (tty_output_display_block): ditto.
13261
13262         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13263         functions.
13264         (gutter_specs_changed): do specific gutter positions.
13265         (top_gutter_specs_changed): new function. Only update the
13266         specified gutter specs.
13267         (bottom_gutter_specs_changed): ditto.
13268         (left_gutter_specs_changed): ditto.
13269         (right_gutter_specs_changed): ditto.
13270
13271         * gui.c (gui_item_hash_internal): new function, does a real hash.
13272         (gui_item_id_hash): use it.
13273         (gui_item_hash): hash the eval'ed gui_item.
13274
13275         * gui-x.c (popup_selection_callback): send an eval event to call
13276         Fupdate_widget_instances.
13277
13278         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13279         to call Fupdate_widget_instances.
13280
13281         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13282         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13283
13284         * glyphs.c: (update_frame_subwindows): deleted.
13285         (Fupdate_widget_instances): new function for updating the dirty
13286         state of widgets that might have changed.
13287         (syms_of_glyphs): add Qupdate_widget_instances.
13288         (full_list_hash): hash a list completely.
13289         (image_instance_hash): use it for items and properties.
13290
13291         * frame-msw.c (mswindows_size_frame_internal): remove unused
13292         variable.
13293
13294         * faces.h (struct face_cachel): fix comment.
13295
13296         * event-stream.c (Fdispatch_non_command_events): new
13297         function. Process non-command events, forcing an event cycle
13298         beforehand.
13299         (syms_of_event_stream): declare.
13300         (event_stream_force_event_pending): new function. Force an event
13301         on the native event queue so that an event cycle will occur next
13302         time we check.
13303
13304         * event-msw.c:
13305         (struct ntpipe_shove_stream):
13306         (mswindows_enqueue_dispatch_event):
13307         (mswindows_dequeue_dispatch_event):
13308         (mswindows_cancel_dispatch_event):
13309         (mswindows_pump_outstanding_events):
13310         (mswindows_drain_windows_queue):
13311         (mswindows_handle_paint):
13312         (mswindows_wnd_proc):
13313         (mswindows_key_to_emacs_keysym):
13314         (get_process_input_waitable):
13315         (emacs_mswindows_delete_stream_pair): re-indent file.
13316         (mswindows_need_event): do not process further fds if the windows
13317         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13318         fixes the 100% cpu problem.
13319         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13320
13321 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13322
13323         * alloc.h: New.
13324         * dumper.h: New.
13325         * dumper.c: New.
13326
13327         * emacs.c: Moved dump file searching to dumper.c.
13328         (Frunning_temacs_p): Fixed.
13329
13330         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13331         last_lrecord_type_index_assigned.
13332
13333 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13334
13335         * symsinit.h: Added reinit parameter to init_console_stream
13336         declaration.
13337
13338         * lisp.h: Added file parameter to pdump_load declaration.
13339
13340         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13341         support.  Added dump file searching.
13342
13343         * config.h.in: Added EMACS_PROGNAME.
13344
13345         * console-stream.c (init_console_stream): Fix reinitialisation
13346         when running from temacs.
13347
13348         * alloc.c (pdump): Add id support.
13349         (pdump_load): Add file parameter and signature/id support.
13350
13351         * Makefile.in.in: Add full pdump support.
13352
13353 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13354
13355         * postgresql.c: Update documentation to reflect latest code
13356         status.
13357         (print_result): Show tuple counts in printed representation when
13358         appropriate.
13359         (Fpq_put_nbytes): MULE-ize.
13360         (Fpq_get_line_async): Ditto.
13361
13362 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13363
13364         * postgresql.c (Fpq_lo_import): Fix return value.
13365         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13366
13367 2000-03-13  Ben Wing  <ben@xemacs.org>
13368
13369         * alloc.c (pdump_load):
13370         Fix compile warning under mswin.
13371
13372 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13373
13374         * postgresql.c: Mule-ization, bug fixes.
13375         Use PG_CODING to encapsulate coding system name changes.
13376         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13377         (pg-coding-system): Create.
13378
13379         (Fpq_conn_defaults): Mule-ize.
13380         (Fpq_connectdb): Mule-ize & bug fix.
13381         (Fpq_connect_start): Mule-ize.
13382         (Fpq_set_client_encoding): Mule-ize.
13383         (Fpq_finish): Document `DEAD' connection status.
13384         (Fpq_clear): Ditto.
13385         (Fpq_pgconn): Mule-ize.
13386         (Fpq_exec): Mule-ize & bug fix.
13387         (Fpq_send_query): Ditto.
13388         (Fpq_get_result): Ditto.
13389         (Fpq_res_status): Mule-ize.
13390         (Fpq_result_error_message): Mule-ize.
13391         (Fpq_ntuples): fix comments.
13392         (Fpq_fname): Mule-ize.
13393         (Fpq_fnumber): Mule-ize.
13394         (Fpq_ftype): fix comments.
13395         (Fpq_get_value): Mule-ize.
13396         (Fpq_cmd_status): Ditto.
13397         (Fpq_cmd_tuples): Ditto.
13398         (Fpq_oid_value): Ditto.
13399         (Fpq_notifies): Ditto.
13400         (Fpq_lo_import): Ditto.
13401         (Fpq_lo_export): Ditto.
13402         (Fpq_get_line): Ditto.
13403         (Fpq_put_line): Mule-ize and bug fix.
13404         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13405
13406 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13407
13408         * postgresql.c (vars_of_postgresql): Mule-ize.
13409         (Fpq_conn_defaults): Ditto.
13410
13411 2000-03-12  Ben Wing  <ben@xemacs.org>
13412
13413         * alloc.c (Fmake_byte_code):
13414         * alloc.c (debug_string_purity_print):
13415         * alloc.c (pdump_backtrace):
13416         * alloc.c (pdump_get_indirect_count):
13417         * alloc.c (pdump_register_sub):
13418         * alloc.c (pdump_register_object):
13419         * alloc.c (pdump_register_struct):
13420         * alloc.c (pdump_dump_data):
13421         * alloc.c (pdump_reloc_one):
13422         Minor cleanups.
13423
13424         * console-msw.c:
13425         * console-msw.c (GetConsoleHwnd):
13426         * console-msw.c (msw_hide_console):
13427         * console-msw.c (msw_show_console):
13428         * console-msw.c (msw_ensure_console_buffered):
13429         * console-msw.c (msw_output_console_string):
13430         * console-msw.c (console_type_create_mswindows):
13431
13432         a) Added functions to manipulate the console window for use with
13433         shell support.
13434
13435         b) Added support for writing text to the console, which is now
13436         used under Windows when xemacs is not being run non-interactively,
13437         to write text that would otherwise be destined for stdout because
13438         under these circumstances, text written to stdout tends to
13439         disappear and not be seen.
13440
13441         * console-msw.h:
13442         * event-Xt.c:
13443         * event-Xt.c (x_event_to_emacs_event):
13444         * event-Xt.c (describe_event_window):
13445         * events-mod.h (XEMACS_MOD_CONTROL):
13446         * events.c:
13447         * events.c (Fmake_event):
13448         * events.c (character_to_event):
13449         * events.c (event_to_character):
13450         * events.c (format_event_object):
13451         * events.c (Fevent_modifiers):
13452         * events.h:
13453         * events.h (struct key_data):
13454         * events.h (struct button_data):
13455         * events.h (struct misc_user_data):
13456         * frame-x.c (Fcde_start_drag_internal):
13457         * frame-x.c (Foffix_start_drag_internal):
13458         * gpmevent.c (Freceive_gpm_event):
13459         * keymap.c:
13460         * keymap.c (bucky_sym_to_bucky_bit):
13461         * keymap.c (control_meta_superify):
13462         * keymap.c (make_key_description):
13463         * keymap.c (keymap_lookup_directly):
13464         * keymap.c (create_bucky_submap):
13465         * keymap.c (keymap_store):
13466         * keymap.c (define_key_check_and_coerce_keysym):
13467         * keymap.c (define_key_parser):
13468         * keymap.c (define_key_alternate_name):
13469         * keymap.c (Fdefine_key):
13470         * keymap.c (raw_lookup_key_mapper):
13471         * keymap.c (struct map_keymap_unsorted_closure):
13472         * keymap.c (map_keymap_unsorted_mapper):
13473         * keymap.c (map_keymap_sort_predicate):
13474         * keymap.c (map_keymap_sorted):
13475         * keymap.c (accessible_keymaps_mapper_1):
13476         * keymap.c (where_is_recursive_mapper):
13477         * keymap.c (describe_map_mapper):
13478         * keymap.c (describe_map_sort_predicate):
13479         * keymap.c (describe_map):
13480         * keymap.c (complex_vars_of_keymap):
13481         And a number of other files, the key modifier preprocessor
13482         constants that xemacs uses have names that conflict with constants
13483         defined under MS Windows for other purposes, so they were renamed
13484         to begin with the prefix XEMACS_. The variables that hold such
13485         modifiers were changed to consistently be of type int to fix
13486         various compile warnings.
13487
13488         * console.c (complex_vars_of_console):
13489         * device.c:
13490         * device-msw.c:
13491         * device-msw.c (mswindows_finish_init_device):
13492         * device-msw.c (msw_get_workspace_coords):
13493         * device-msw.c (mswindows_device_system_metrics):
13494         and various other files, added support for a new
13495         device property called offset-workspace which returns the position
13496         of the upper left corner of the workspace area and goes along with
13497         the existing size-workspace property.
13498
13499         * dialog-msw.c:
13500         * dialog-msw.c (push_bufbyte_string_as_unicode):
13501         * dialog-msw.c (mswindows_popup_dialog_box):
13502         Added support for XEmacs-style accelerator specifications in
13503         button text.  Note: I didn't add support for this under X Windows,
13504         and somebody needs to do this.
13505
13506         * dialog.c:
13507         * dialog.c (Fpopup_dialog_box):
13508         Documented the support for accelerators that was just mentioned.
13509
13510         editfns.c (get_home_directory): Changed behavior under Windows
13511         when HOME not defined; former behavior was irretrievably broken.
13512
13513         * emacs.c:
13514         * emacs.c (main_1):
13515         * emacs.c (main):
13516         * minibuf.c (clear_echo_area_internal):
13517         * minibuf.c (echo_area_append):
13518         * print.c:
13519         * print.c (std_handle_out_external):
13520         * print.c (std_handle_out_va):
13521         * print.c (fatal):
13522         * print.c (write_string_to_stdio_stream):
13523         * print.c (output_string):
13524         * print.c (debug_print):
13525         * print.c (debug_backtrace):
13526         * print.c (debug_short_backtrace):
13527         Cleaned up the code that prints text to stdout so that this can be
13528         changed to output into a console window instead under MS Windows,
13529         as described above.
13530
13531         * eval.c:
13532         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13533         * eval.c (internal_catch):
13534         * eval.c (unwind_to_catch):
13535         * eval.c (throw_or_bomb_out):
13536         * eval.c (condition_case_1):
13537         * eval.c (signal_1):
13538         * eval.c (check_error_state_sanity):
13539         * eval.c (call_with_suspended_errors_1):
13540         * eval.c (call_with_suspended_errors):
13541         * eval.c (reinit_vars_of_eval):
13542         Added code to catch throw loops and check for a pesky bug that may
13543         be gone now.
13544
13545         * event-msw.c:
13546         * event-msw.c (key_needs_default_processing_p):
13547         * event-msw.c (mswindows_wnd_proc):
13548         * event-msw.c (mswindows_modifier_state):
13549         * event-msw.c (emacs_mswindows_quit_p):
13550         * event-msw.c (vars_of_event_mswindows):
13551         a) Added support for using the alt key to select menu items as is
13552         standard under MS Windows.  This is controlled using the variable
13553         menu-accelerator-enabled, just like under X Windows.  There is an
13554         option on the options menu to turn this support on.  I really
13555         think that it should be on by default under Windows, but I'm not
13556         going to make this change yet.
13557
13558         b)  Added support for dynamic display size changes under Windows.
13559
13560         * event-stream.c:
13561         * event-stream.c (maybe_echo_keys):
13562         * event-stream.c (Fnext_event):
13563         * event-stream.c (command_builder_find_leaf):
13564         * event-stream.c (lookup_command_event):
13565         * event-stream.c (execute_command_event):
13566         * event-stream.c (pre_command_hook):
13567         * event-stream.c (post_command_hook):
13568         * event-stream.c (syms_of_event_stream):
13569         * event-stream.c (vars_of_event_stream):
13570         * event-stream.c (complex_vars_of_event_stream):
13571         * events.h (struct command_builder):
13572
13573         a) Tried to clean up a little bit the horribly written x-specific
13574         accelerator code that crept into this file.  I moved this code
13575         into menubar-x.c where it belongs. I also needed to move the
13576         command builder structure into the file events.h because it is
13577         accessed directly by this accelerator code.  What I didn't do, but
13578         which should be done at some point, is to properly abstract this
13579         code using device methods instead of the kludgy way that it
13580         currently hooks into the event code.
13581
13582         b) Added the lisp variables this-command-properties and
13583         last-command- properties, which should be used to synchronize two
13584         adjacent commands in preference to playing games with the variable
13585         this-command, which is typically what happens.
13586
13587         c) Added some slightly nasty code to hook into the lisp support
13588         for shifted- motion-key selection.  This is actually necessary for
13589         somewhat complicated reasons, which are described in
13590         simple.el. (NB: I think the proper thing would be to have the code
13591         that calls the pre and post command hooks also call out to generic
13592         lisp functions in simple.el, where all built-in stuff could be
13593         added.  I will think about this more.)
13594
13595         * event-unixoid.c (poll_fds_for_input):
13596         * lread.c (readchar):
13597         * redisplay-tty.c (tty_clear_frame):
13598         * redisplay-x.c (x_get_gc):
13599         * signal.c (interrupt_signal):
13600         And a whole bunch of other files: fixed up places that printed
13601         directly to stderr to instead call the function stderr_out so that
13602         the changes I made under Windows work correctly.
13603
13604         * filemode.c (mode_string):
13605         Warning fixes.
13606
13607         * frame-msw.c:
13608         * frame-msw.c (mswindows_size_frame_internal):
13609         Fixed the computation of frame size and position to keep the frame
13610         within the workspace area, rather than within the physical
13611         dimensions of the screen, so that the frame doesn't overlap window
13612         manager decorations, such as the start menu and toolbar, typically
13613         at the bottom of the screen.
13614
13615         * frame.c (vars_of_frame):
13616         Changed the default frame title format under MS Windows to consist
13617         of buffername-XEmacs, which is standard under MS Windows.  I think
13618         it might be a good idea to change this everywhere because I think
13619         it is superior to the current frame title format, but this is the
13620         kind of change that is likely to cause some people to get annoyed,
13621         so I'm not making it.
13622
13623         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13624
13625         * gui-msw.c (mswindows_handle_gui_wm_command):
13626         Fixed compile warnings.
13627
13628         * gui-x.c:
13629         * gui-x.c (strdup_and_add_accel):
13630         * gui-x.c (button_item_to_widget_value):
13631         * gui-x.h:
13632         Added code to automatically put an accelerator onto the beginning
13633         of menu items that don't have one as is now the standard, and is
13634         described more later.  Also fixed things so that the menu item
13635         name can be an evaluated expression, again a new standard.
13636
13637         * gui.c:
13638         * gui.c (gui_item_add_keyval_pair):
13639         * gui.c (make_gui_item_from_keywords_internal):
13640         * gui.c (gui_add_item_keywords_to_plist):
13641         * gui.c (gui_item_accelerator):
13642         * gui.c (gui_name_accelerator):
13643         * gui.c (gui_item_included_p):
13644         * gui.c (gui_item_display_flush_left):
13645         * gui.c (gui_item_display_flush_right):
13646         * gui.c (parse_gui_item_tree_item):
13647         * gui.c (parse_gui_item_tree_children):
13648         * gui.c (parse_gui_item_tree_list):
13649         Mule-ized.  Cleanup.  GCPRO addition.
13650
13651         * line-number.c (buffer_line_number):
13652         * lisp.h:
13653         * lisp.h (EMACS_INT_MAX):
13654         Added the manifest constant EMACS_INT_MIN corresponding to the
13655         existing constant EMACS_INT_MAX.  This is partially to fix compile
13656         warnings under Windows, and partly for cleanliness.
13657
13658         * menubar-msw.c:
13659         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13660         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13661         * menubar-msw.c (displayable_menu_item):
13662         * menubar-msw.c (populate_menu_add_item):
13663         * menubar-msw.c (populate_or_checksum_helper):
13664         * menubar-msw.c (populate_menu):
13665         * menubar-msw.c (update_frame_menubar_maybe):
13666         * menubar-msw.c (prune_menubar):
13667         * menubar-msw.c (msw_char_is_accelerator):
13668         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13669         * menubar-msw.c (mswindows_handle_wm_command):
13670         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13671         * menubar-msw.c (mswindows_handle_wm_initmenu):
13672         * menubar-msw.c (mswindows_update_frame_menubars):
13673         * menubar-msw.c (mswindows_free_frame_menubars):
13674         * menubar-msw.c (mswindows_popup_menu):
13675         Fixed a bug in handling accelerators where an extra character
13676         would be displayed in the menu item.  Also generalized the
13677         function displayable_menu_item because it is now used by the
13678         dialog box code as well.  And finally, added code in the functions
13679         that create the menubar to extract a list of accelerators for the
13680         top level menubar, which is used in the event code to determine
13681         whether a particular alt-key combination should be used to invoke
13682         a menu item, or should be passed through to access the standard
13683         XEmacs keymap binding for this key combination.
13684
13685         Much needed GCPROing.
13686
13687         * menubar-x.c:
13688         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13689         * menubar-x.c (menu_item_descriptor_to_widget_value):
13690         * menubar-x.c (restore_in_menu_callback):
13691         * menubar-x.c (x_popup_menu):
13692         * menubar-x.c (menu_move_up):
13693         * menubar-x.c (menu_move_down):
13694         * menubar-x.c (menu_move_left):
13695         * menubar-x.c (menu_move_right):
13696         * menubar-x.c (menu_select_item):
13697         * menubar-x.c (command_builder_operate_menu_accelerator):
13698         * menubar-x.c (menu_accelerator_junk_on_error):
13699         * menubar-x.c (command_builder_find_menu_accelerator):
13700         * menubar-x.c (Faccelerate_menu):
13701         * menubar.h:
13702         Moved a whole bunch of code here that was previously in
13703         event-stream.c as described above.  There is also code connected
13704         to the new standard of adding an accelerator to the beginning of
13705         menu items that don't have one as described above and below.
13706
13707         * menubar.c:
13708         * menubar.c (menu_parse_submenu_keywords):
13709         * menubar.c (Fmenu_find_real_submenu):
13710         * menubar.c (Fnormalize_menu_item_name):
13711         * menubar.c (syms_of_menubar):
13712         * menubar.c (vars_of_menubar):
13713         * menubar.c (complex_vars_of_menubar):
13714
13715         a) Cleaned up a bunch of documentation and improved it.
13716
13717         b) XEmacs now automatically adds an accelerator onto the beginning
13718         of any menu items that don't have one.  I did this because there
13719         will inevitably be some menu items on the main menubar that don't
13720         have accelerators on them because the package that adds that
13721         particular menu item hasn't yet been fixed up to have accelerators
13722         in them and it looked rather strange to have some items with and
13723         some items without accelerators, especially since even in items
13724         without accelerators, you can, at least under windows, still
13725         access the item through an accelerator corresponding to the first
13726         character in the item's name.  If people don't like this behavior,
13727         I can add a variable to turn it off optionally, but I'm not sure
13728         this is a good idea because we really do need to have accelerators
13729         on all of the menu items, and if a package doesn't like the
13730         accelerators being put on the first character, then it should put
13731         the accelerators where they belong.
13732
13733         c) I made a behavior change, which is that the descriptor that
13734         specifies the text of the menu item, which formerly was just a
13735         string, can now also be an evaluated expression.  This makes this
13736         descriptor parallel with all of the others, which could also be
13737         evaluated expressions.  This also obviates the need for the
13738         keyword :label, which was previously listed in the documentation
13739         as unimplemented, and which was for the same purpose.
13740
13741         d) GCPROing.
13742
13743         * ntproc.c:
13744         * ntproc.c (new_child):
13745         * ntproc.c (sys_spawnve):
13746         * ntproc.c (find_child_console):
13747         * ntproc.c (sys_kill):
13748         Fixed compile warnings.  By the way, this file should really go
13749         away entirely, and this will happen as soon as Kirill makes his
13750         final round of process cleanups, which affect the function
13751         call-process.
13752
13753         * process-nt.c:
13754         * process-nt.c (struct nt_process_data):
13755         * process-nt.c (find_process_from_pid):
13756         * process-nt.c (send_signal_the_nt_way):
13757         * process-nt.c (enable_child_signals):
13758         * process-nt.c (find_child_console):
13759         * process-nt.c (send_signal_the_95_way):
13760         * process-nt.c (nt_finalize_process_data):
13761         * process-nt.c (ensure_console_window_exists):
13762         * process-nt.c (nt_create_process):
13763         * process-nt.c (nt_kill_child_process):
13764         * process-nt.c (nt_kill_process_by_pid):
13765         * process-nt.c (nt_open_network_stream):
13766         * process-nt.c (vars_of_process_nt):
13767         Copied over code from Emacs 20.5 to correctly send signals to sub-
13768         processes under Windows 95.  Also added code to automatically
13769         create and hide console window when a sub-process is created under
13770         Windows 95, which obviates the need for the separate runemacs.exe
13771         executable, and finally implemented some variables that were
13772         implemented in Emacs 20.5, but previously not in XEmacs.  These
13773         include mswindows- start-process-share-console and
13774         mswindows-start-process-inherit-error-mode. (Both of these only
13775         apply to Windows 95.)
13776
13777         * regex.c (regex_compile): Fixed a compile warning.
13778
13779         * select-msw.c:
13780         * select-msw.c (mswindows_own_selection):
13781         * select-msw.c (mswindows_get_foreign_selection):
13782         * select-msw.c (mswindows_disown_selection):
13783         * select-msw.c (console_type_create_select_mswindows):
13784         * select-msw.c (syms_of_select_mswindows):
13785         Cleaned up the file and implemented the device method
13786         selection_exists_p, which had accidentally been left out.  Also
13787         removed four lisp functions that were remnants from before the
13788         time when the selection code was properly device abstracted.
13789         These functions are no longer needed because there are generic
13790         equivalents, and because they were added recently and don't exist
13791         in FSF Emacs, I don't think there's any problem with just deleting
13792         them.
13793
13794         * sysdep.c:
13795         * sysdep.c (sys_subshell):
13796         Fixed a compile warning, although in this case there's probably
13797         something wrong with this code, and it ought to be looked into
13798         more thoroughly by somebody who understands it.
13799
13800         * window.c:
13801         * window.c (Fwindow_text_area_height):
13802         * window.c (Fwindow_width):
13803         * window.c (Fwindow_full_width):
13804         * window.c (Fwindow_pixel_width):
13805         * window.c (debug_print_window):
13806         * window.c (syms_of_window):
13807         Added functions window-text-area-height and window-full-width,
13808         which are functions for returning various width and height
13809         characteristics of a window. (One of these functions is necessary
13810         for making the file dialog box work correctly, and the other one
13811         was added for completeness.)  Also added a table to the
13812         documentation for window-height which describes the entire scheme
13813         for accessing width and height characteristics of a window.
13814
13815 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13816
13817         * nt.c (fstat): Added a comment for another problem with
13818         non-encapsulated [f]stat(), reported by Adrian Aichner
13819         <aichner@ecf.teradyne.com>.
13820
13821 2000-03-11  Andy Piper  <andy@xemacs.org>
13822
13823         * window.c (make_dummy_parent): initialize subwindow instance
13824         cache.
13825         (Fset_window_configuration): zero extent_modiff.
13826
13827 2000-03-10  Andy Piper  <andy@xemacs.org>
13828
13829         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13830         more changes can be triggered.
13831         (Fredisplay_frame): ditto.
13832         (Fredraw_device): ditto.
13833         (Fredisplay_device): ditto.
13834         (redisplay_frame): make non-static.
13835         (redisplay_frame): call update_frame_gutter_geometry outside of
13836         display proper.
13837
13838         * gutter.h: declare update_frame_gutter_geometry.
13839
13840         * redisplay.h: declare redisplay_frame.
13841
13842         * gutter.c (update_frame_gutter_geometry): move geometry changes
13843         in update_frame_gutters here. Geometry changes can only occur
13844         outside of redisplay.
13845         (update_frame_gutters): remove geometry change code.
13846         (Fredisplay_gutter_area): make sure that we are in display when we
13847         update and that we have flushed any size changes.
13848
13849 2000-03-11  Andy Piper  <andy@xemacs.org>
13850
13851         * alloc.c (pdump_dump_data): remove i & count shadows.
13852
13853 2000-02-27  Mike Alexander  <mta@arbortext.com>
13854
13855         * sysdep.h: Declare pdump_read_file
13856
13857         * sysdep.c (pdump_read_file): New function
13858
13859         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13860         dump data
13861
13862 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13863
13864         * lrecord.h: add `lrecord_type_pgsetenv'.
13865
13866 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13867
13868         * symsinit.h: declare (vars|syms)_of* functions.
13869         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13870
13871 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13872
13873         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13874
13875         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13876         GCCs.
13877
13878         * emacs.c (main_1): Call postgres initialization code.
13879
13880         * postgresql.h: New file.  PostgreSQL RDBMS support.
13881         * postgresql.c: New file.
13882
13883 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13884
13885         * redisplay-output.c (redisplay_output_display_block): Disable
13886         redundant code.
13887
13888 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13889
13890         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13891         (Fcanna_henkan_next): Ditto.
13892         (Fcanna_bunsetu_henkou): Ditto.
13893         (Fcanna_henkan_kakutei): Ditto.
13894         (Fcanna_henkan_end): Ditto.
13895         (Fcanna_henkan_quit): Ditto.
13896         (Fcanna_henkan_next): Set retun value correctly.
13897         (c2mu): Use unsigned char instead of signed char.
13898
13899 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13900
13901         * emacs.c (main_1): Always call syms_of_gui.
13902         * inline.c: include gui.h
13903
13904 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13905
13906         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13907         converted to Lisp_Object.
13908         (Qtop_bottom): New variable.
13909         (syms_of_redisplay): Initialize it.
13910         * redisplay.h (Vvisible_bell): Ditto.
13911         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13912         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13913         only flash top and bottom.
13914
13915 2000-03-08  Andy Piper  <andy@xemacs.org>
13916
13917         * buffer.c (Frename_buffer): record new buffer name the right way.
13918
13919 2000-03-08  Andy Piper  <andy@xemacs.org>
13920
13921         * glyphs.c (update_subwindow): increase hash depth so that widget
13922         items get picked up properly.
13923
13924         * redisplay-output.c (compare_runes): increase hash depth so that
13925         widget items get picked up properly.
13926
13927 2000-03-08  Andy Piper  <andy@xemacs.org>
13928
13929         * gutter.c (output_gutter): add some debug.
13930
13931         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13932         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13933         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13934
13935         * redisplay-output.c (compare_runes): use display_hash to
13936         determine if glyphs really are not the same.
13937
13938         * glyphs.c (update_subwindow): check display_hash to see if
13939         anything really needs to be updated. If not then do
13940         nothing. Record the display_hash after updating.
13941         (image_instance_equal): compare the image_instance face also.
13942
13943 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13944
13945         * redisplay.h: Fix comment style.
13946
13947 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13948
13949         * consle-msw.h (struct mswindows_frame):
13950         Added new member paint_pending to indicate whether a WM_PAINT
13951         magic event has been queued for this frame.
13952
13953         * event-msw.c (mswindows_drain_windows_queue):
13954         Don't queue a WM_PAINT magic event if one is already queued.
13955         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13956
13957         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13958
13959 2000-03-07  Didier Verna  <didier@xemacs.org>
13960
13961         * dired.c: #include `regex.h' after `sysfile.h'.
13962
13963 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13964
13965         * sound.c (init_nas_sound): Fix compiler warning.
13966
13967         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13968         (FREE_STRUCT_P):
13969         (MARK_STRUCT_AS_FREE):
13970         (MARK_STRUCT_AS_NOT_FREE):
13971         Make `gcc -fstrict-aliasing' work properly.
13972
13973 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13974
13975         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13976         (mswindows_delete_device): Call CoUnnitialize().
13977
13978         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13979
13980 2000-02-25    <CraigL@DyCon.com>
13981
13982         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13983         <errno.h>.
13984
13985         * sysdep.c: This extern declaration for environ prevents MinGW
13986         from finding the variable in CRTDLL.DLL.
13987
13988         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13989         windows headers.
13990         (SHGFI_EXETYPE): ..
13991         (WM_MOUSEWHEEL): ..
13992         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13993         definitions.
13994         (MMRESULT): Removed, now defined in cygwin's windows headers.
13995         (TIMECAPS): ..
13996         (uid_t,gid_t,pid_t,ssize_t): ..
13997         (_timeb): Removed, MinGW defines both _timeb and timeb.
13998         (HAVE_H_ERRNO): Added.
13999         (HAVE_TZNAME): Added, configure is not detecting this.
14000
14001 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14002
14003         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14004         * syntax.c (syntax_match): Use it.
14005
14006         * cmds.c: Import auto-fill-chars from FSF Emacs.
14007         (Vauto_fill_chars): New variables.
14008         (internal_self_insert): Check Vauto_fill_chars.
14009         (vars_of_cmds):
14010         Declare auto-fill-chars as a Lisp variable and initialize it.
14011
14012 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14013
14014         * fileio.c (Fmake_symbolic_link):
14015         (Ffile_symlink_p):
14016         Run handlers even if local machine doesn't have symlinks.
14017
14018 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14019
14020         * event-msw.c (mswindows_drain_windows_queue):
14021         Don't generate paint magic events for non-XEmacs frames.
14022
14023 2000-03-05  Andy Piper  <andy@xemacs.org>
14024
14025         * redisplay.c (redisplay_frame): generate_displayable_area and
14026         friends assumes that we are not in GC, we therefore have to make
14027         sure that this doesn't happen.
14028
14029         * gutter.c (calculate_gutter_size): generate_displayable_area
14030         assumes that we are not in GC, we therefore have to make sure that
14031         this doesn't happen.
14032
14033 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14034
14035         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14036
14037 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14038
14039         * redisplay.c (regenerate_window): Make sure we set a sane value
14040         for end_pos even if we jump out of the loop.
14041         (regenerate_window): Answer Ben's question :-).
14042         (start_end_of_last_line): Add may_error argument.
14043         (start_of_last_line):
14044         (end_of_last_line): Pass may_error = 0.
14045         (end_of_last_line_may_error): New function.
14046         (pixel_to_glyph_translation): Use it, so we don't crash in
14047         event_to_glyph.
14048
14049 2000-03-04  Andy Piper  <andy@xemacs.org>
14050
14051         * window.h (struct window): add gutter_extent_modiff.
14052
14053         * window.c (allocate_window): zero out gutter_extent_modiff.
14054
14055         * redisplay.h: declare sync_display_line_structs.
14056
14057         * redisplay.c (add_glyph_rune): add a better comment.
14058
14059         * redisplay-output.c (sync_display_line_structs): made non-static.
14060         (compare_runes): remove unneccesary glyph cachel access.
14061
14062         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14063
14064         * gutter.c (output_gutter): don't output the gutter if extent
14065         changes only involve extents in buffers. use 4 sets of display
14066         lines.
14067         (gutter_extent_signal_changed_region_maybe): new function. Mark
14068         extents in gutters as changed.
14069         (update_frame_gutters): use 4 sets of display lines.
14070         (reset_gutter_display_lines): ditto.
14071         (free_frame_gutters): ditto.
14072         (redraw_exposed_gutter): force output of gutters.
14073
14074         * frame.h (struct frame): add 4 sets of gutter display lines.
14075
14076         * extents.c: (extent_changed_for_redisplay): signal changes to
14077         extents in strings in the gutter as well as extents in buffers.
14078
14079 2000-03-02  Andy Piper  <andy@xemacs.org>
14080
14081         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14082
14083         * frame.c (Fmake_frame): make sure the gutters get initialized
14084         after the frame is visible.
14085         (set_frame_selected_window): re-arrange compilation macros a
14086         little.
14087         (change_frame_size_1): mark gutters changed.
14088
14089         * device.c (Fset_device_class): mark gutters changed.
14090
14091 2000-03-01  Andy Piper  <andy@xemacs.org>
14092
14093         * window.c (window_top_frame_gutter_height): deleted.
14094         (window_bottom_frame_gutter_height): ditto.
14095         (window_left_frame_gutter_height): ditto.
14096         (window_right_frame_gutter_height): ditto.
14097         (window_top_gutter_height): don't use them.
14098         (window_bottom_gutter_height): ditto.
14099         (window_left_gutter_width): ditto.
14100         (window_right_gutter_width): ditto.
14101         (Fsplit_window): ditto.
14102         (Fwindow_pixel_edges): don't use border dimensions here.
14103
14104         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14105         (update_scrollbar_instance): ditto.
14106
14107         * redisplay.c (generate_modeline): don't take gutters into account.
14108         (generate_modeline): ditto.
14109         (redisplay_frame): small gutter display optimization.
14110
14111         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14112
14113         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14114         gutters into account.
14115
14116         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14117         for window position and type.
14118
14119         * gutter.c (get_gutter_coords): fix for frame gutters.
14120         (update_frame_gutters): update frame geometry if the gutters have
14121         changed.
14122         (init_frame_gutters): record current gutter geometries.
14123
14124         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14125         var.
14126         (mswindows_widget_instantiate): ditto.
14127
14128         * frame.h (struct frame): add current_gutter_bounds.
14129
14130         * frame.c (change_frame_size_1): position window and minibuffer
14131         appropriately taking into account the frame gutters.
14132
14133         * frame-x.c: (x_initialize_frame_size): take into account the
14134         frame gutters.
14135
14136 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14137
14138         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14139
14140 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14141
14142         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14143
14144 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14145
14146         * file-coding.c (reset_decoding_stream): Clear previous
14147         detection state when autodetect.
14148
14149 2000-02-29  Didier Verna  <didier@xemacs.org>
14150
14151         * extents.c (set_extent_glyph_1): don't require extents to be
14152         attached.
14153
14154 2000-02-27  Andy Piper  <andy@xemacs.org>
14155
14156         * gutter.c (Fset_default_gutter_position): don't default left and
14157         right gutter visibility to t.
14158         (Fset_default_gutter_position): run
14159         default-gutter-position-changed-hook.
14160         (syms_of_gutter): add default-gutter-position-changed-hook.
14161
14162 2000-02-26  Andy Piper  <andy@xemacs.org>
14163
14164         * specifier.c (Fmake_specifier): add gutter references.
14165
14166         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14167
14168         * lisp.h: declare Fvalid_plist_p.
14169
14170         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14171         as changed.
14172         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14173         well as its visibility so that it gets reconstructed.
14174         (construct_window_gutter_spec): new function. Construct a string
14175         to be displayed in the gutter from a plist of strings. Take care
14176         to only use elements that are declared as visible.
14177         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14178         WINDOW_GUTTER.
14179         (gutter_validate): allow plists of strings in the specifier.
14180         (gutter_specs_changed): construct the real_gutter from the gutter
14181         specs using construct_window_gutter_spec.
14182         (gutter_visible_validate): gutter-visible is a new specifier type.
14183         (Fgutter_visible_specifier_p): new function for the new specifier.
14184         (syms_of_gutter): declare gutter-visible and
14185         Fgutter_visible_specifier_p.
14186         (specifier_type_create_gutter): intitalize new gutter-visible
14187         specifier.
14188         (reinit_specifier_type_create_gutter): ditto.
14189         (specifier_vars_of_gutter): use new specifier type for gutter
14190         visibility.
14191         (init_frame_gutters): construct real_gutter correctly.
14192         (Fgutter_specifier_p): beef up documentation.
14193         (Fgutter_size_specifier_p): ditto.
14194
14195         * winslots.h: add real_gutter slots.
14196
14197 2000-02-25  Andy Piper  <andy@xemacs.org>
14198
14199         * device-msw.c: Be kind to older cygwin versions. From Raymond
14200         Toy <toy@rtp.ericsson.se>.
14201
14202         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14203         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14204
14205 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14206
14207         * elhash.c (MARK_OBJ): Practice macro hygiene.
14208
14209 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14210
14211         * miscplay.c: s/__inline__/inline/g;
14212         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14213         (get_device_compdc): INLINE ==> static inline
14214         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14215         find -name '*.h' | \
14216         xargs global-replace \
14217         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14218
14219 2000-02-25  Andy Piper  <andy@xemacs.org>
14220
14221         * window.c (window_top_frame_gutter_height): new function.
14222         (window_top_window_gutter_height): ditto.
14223         (window_top_gutter_height): use them.
14224         (window_bottom_frame_gutter_height): new function.
14225         (window_bottom_window_gutter_height): ditto.
14226         (window_bottom_gutter_height): use them.
14227         (window_left_window_gutter_width): new function.
14228         (window_left_frame_gutter_width): ditto.
14229         (window_left_gutter_width): use them.
14230         (window_right_window_gutter_width): new function.
14231         (window_right_frame_gutter_width): ditto.
14232         (window_right_gutter_width): use them.
14233         (window_pixel_height): new function. calulate window pixel height
14234         with frame gutter involvement.
14235         (Fsplit_window): calculate new sizes taking frame gutters into
14236         account.
14237         (window_char_height_to_pixel_height): don't include frame gutters.
14238         (window_char_height): use window_pixel_height.
14239         (window_pixheight): rename from window_pixel_height.
14240         (change_window_height): use it.
14241         (window_pixel_height_to_char_height): don't include frame gutters.
14242         (window_char_width_to_pixel_width): ditto.
14243
14244 2000-02-25  Andy Piper  <andy@xemacs.org>
14245
14246         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14247         if it is.
14248
14249 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14250
14251         * alloc.c (staticpro):
14252         (staticpro_nodump):
14253         (dumpstruct):
14254         (dumpopaque):
14255         (pdump_wire):
14256         (pdump_wire_list):
14257         (compact_string_chars):
14258         (pdump_dump_wired):
14259         Convert:  if (foo) abort();  ==>  assert (! foo);
14260
14261         * eldap.c (Fldap_search_basic):
14262         (Fldap_add):
14263         (Fldap_modify):
14264         (Fldap_delete):
14265         Fix compiler warnings, and possible crashes if (random) return
14266         value were to be used.
14267
14268 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14269
14270         * device-msw.c: Workaround ResetDC failure.
14271
14272         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14273         applying a devmode.
14274
14275         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14276         (mswindows_text_width): Do not start printer page.
14277
14278         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14279
14280         * glyphs-msw.c: Added image methods to msprinter console and
14281         msprinter-specific image instantiation.
14282
14283 2000-02-20  Mike Alexander  <mta@arbortext.com>
14284
14285         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14286         to avoid crashes when selection-sets-clipboard is on
14287         (mswindows_own_selection): ditto
14288
14289 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14290
14291         * glyphs-msw.c:
14292         * redisplay-msw.c (get_frame_dc):
14293         (get_frame_compdc):
14294         * console-msw.h:
14295         * device-msw.c (mswindows_init_device):
14296         (mswindows_delete_device):
14297         (msprinter_init_device):
14298         (msprinter_delete_device):
14299         * frame-msw.c (mswindows_init_frame_1):
14300         (mswindows_delete_frame):
14301         (msprinter_init_frame_3):
14302         (msprinter_delete_frame): Move compatible DC to device object from
14303         frame object, for both mswindows and msprinter. Only one at a time
14304         is needed, it is a real waste to have one per frame!
14305
14306 2000-02-23  Andy Piper  <andy@xemacs.org>
14307
14308         * glyphs.c: add dynamic width and height elements.
14309         (image_instance_equal): ditto.
14310
14311         * glyphs-widget.c (widget_query_geometry): calculate width and
14312         height dynamically if required.
14313         (initialize_widget_image_instance): initialize dynamic dimensions.
14314         (widget_instantiate): pick-up dynamic dimensions.
14315
14316         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14317         dynamic determination. Add appropriate macros.
14318
14319         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14320         dimensions safe.
14321         (WINDOW_GUTTER_SIZE): ditto.
14322         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14323
14324         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14325         inline.
14326         (get_frame_dc): ditto.
14327
14328         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14329         here.
14330
14331 2000-02-23  Martin Buchholz <martin@xemacs.org>
14332
14333         * XEmacs 21.2.31 is released.
14334
14335 2000-02-22  Ben Wing <ben@xemacs.org>
14336
14337         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14338
14339 2000-02-22  Andy Piper  <andy@xemacs.org>
14340
14341         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14342
14343 2000-02-21  Mike Sperber <mike@xemacs.org>
14344
14345         * .dbxrc:
14346         * .gdbinit:
14347         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14348         variables.
14349
14350 2000-02-21  Mike Sperber <mike@xemacs.org>
14351
14352         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14353
14354 2000-02-21  Martin Buchholz <martin@xemacs.org>
14355
14356         * XEmacs 21.2.30 is released.
14357
14358 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14359
14360         Performance hacking.
14361         * *.c (syms_of_*):
14362         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14363         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14364         * emacs.c (main_1):
14365         * lisp.h (DEFUN):
14366         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14367         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14368         * symeval.h (DEFVAR_SYMVAL_FWD):
14369         * symbols.c (guts_of_unbound_marker):
14370         Make all c_readonly objects also lisp_readonly and marked for life.
14371         * lrecord.h (struct lrecord_implementation):
14372         Document flags better.
14373         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14374         * lrecord.h (DECLARE_LRECORD):
14375         * lrecord.h (XSETRECORD):
14376         * lrecord.h (RECORDP):
14377         * lrecord.h (RECORD_TYPEP):
14378         * lrecord.h (RECORD_MARKER): New.
14379         * lrecord.h (error_check_*):
14380         * lrecord.h (CONCHECK_NONRECORD):
14381         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14382         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14383         * lrecord.h (set_lheader_implementation):
14384         * lrecord.h (enum lrecord_type): New.
14385         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14386         * alloc.c (disksave_object_finalization_1):
14387         * alloc.c (mark_object):
14388         * alloc.c (lrecord_type_index):
14389         * alloc.c (tick_lcrecord_stats):
14390         * alloc.c (Fgarbage_collect):
14391         * alloc.c (init_alloc_once_early):
14392         * alloc.c (pdump_load):
14393         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14394         * alloc.c (lrecord_type_index): Delete.
14395         Make lisp object type indexes be constant.
14396           Makes (byte-compile) 5% faster.
14397         Put all marker functions into their own array.
14398           Makes (garbage-collect) 5% faster.
14399         Optimize SYMBOL_VALUE_MAGIC_P.
14400           Makes (byte-compile) 2-3% faster.
14401         * config.h.in (gc_checking_assert): New.
14402         * alloc.c: Use gc_checking_assert().
14403         * .dbxrc: Make compatible with new object type implementation.
14404         * .gdbinit: Make compatible with new object type implementation.
14405         * alloc.c: Delete all symbols defined only for debugging, such as
14406         Lisp_Type_Vector and lrecord_charset.
14407
14408 2000-02-21  Andy Piper  <andy@xemacs.org>
14409
14410         * gui-msw.c (Fmswindows_shell_execute): fix file location
14411         problems.
14412
14413         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14414         unshowing so that set_window_buffer doesn't undo
14415         kill_buffer_hook's hard work.
14416
14417         * glyphs-widget.c (tab_control_query_geometry): don't count the
14418         first item when calculating geometry.
14419
14420         * glyphs.c (map_subwindow): remove redundant code.
14421         (update_frame_subwindows): be more circumspect about when to
14422         update subwindows.
14423
14424         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14425         when items haven't changed. Update faces if faces have changed as
14426         well as just the widget face.
14427         (x_tab_control_update): Update faces if faces have changed as well
14428         as just the widget face.
14429
14430 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14431
14432         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14433         registration.
14434         (build_syscolor_string): Use mswindows_color_to_string to try to
14435         get a named color.
14436         (mswindows_device_system_metrics): Reverse the foreground and
14437         background colors so that they match the documentation.
14438
14439         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14440         they match the default Windows palette.
14441         (mswindows_color_to_string): New function.
14442
14443 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14444
14445         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14446
14447 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14448
14449         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14450         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14451
14452         * symbols.c (init_symbols_once_early): Removed obsolete
14453         DATA_SEG_BITS related kludge.
14454         (defvar_magic): Ditto.
14455
14456         * malloc.c: Removed obsolete DATA_SEG_BITS
14457         * ralloc.c: Ditto.
14458         * mem-limits.h: Ditto.
14459
14460         * Makefile.in.in: Removed obsolete HAVE_SHM
14461         * emacs.c: Ditto.
14462
14463 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14464
14465         *  device-msw.c (mswindows_delete_device): Free DDE string
14466         handles.
14467
14468 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14469
14470         * keymap.c (get_keyelt):
14471         * unexnt.c (unexec):
14472         * vm-limit.c (memory_warnings):
14473         * ntheap.c (recreate_heap):
14474         * ntheap.h (UNINIT_PTR):
14475         * select-msw.c (Fmswindows_get_clipboard):
14476         (Fmswindows_set_clipboard):
14477         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14478         * objects-msw.c:
14479         * menubar-msw.c (displayable_menu_item):
14480         * glyphs-msw.c:
14481         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14482         * sysdep.c (sys_subshell):
14483         * process-nt.c (nt_create_process):
14484         * nt.c (normalize_filename):
14485         (dostounix_filename):
14486         (unixtodos_filename):
14487         * ntproc.c (win32_executable_type):
14488         * ntplay.c (play_sound_data_1):
14489         (play_sound_file):
14490         * editfns.c (get_home_directory):
14491         * event-msw.c (struct winsock_stream):
14492         (mswindows_dde_callback):
14493         * device-msw.c (msprinter_init_device):
14494         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14495
14496         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14497         mswindows_clear_toolbar were swapped!
14498
14499         * objects-msw.c:(colormap_t):
14500         (fontmap_t):
14501         * emacs.c (struct standard_args): Fixed const jumble.
14502
14503         * glyphs-widget.c (update_widget): Fixed comparison notation.
14504
14505         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14506
14507         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14508         __declspec(noreturn) syntax.
14509
14510 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14511
14512         * eldap.c (Fldap_open):
14513         (Fldap_search_basic):
14514         (Fldap_add):
14515         (Fldap_modify):
14516         Use new coding system conversion macros.
14517
14518 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14519
14520         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14521
14522 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14523
14524         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14525         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14526
14527         * eldap.c (Qadd, Qreplace): New constant symbols
14528         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14529         interruptions by XEmacs signals
14530         Remove unnecessary calls to slow_down_interrupts and
14531         speed_up_interrupts
14532         (Fldap_search_basic): Renamed from Fldap_search_internal
14533         Added new optional parameter VERBOSE that triggers the
14534         display of progress messages
14535         Remove unnecessary calls to slow_down_interrupts and
14536         speed_up_interrupts
14537         LDAP result code analysis rewritten
14538         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14539         (syms_of_eldap): Define the new symbols and functions
14540
14541
14542 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14543
14544         * realpath.c: Determine PATH_MAX maximally portably.
14545
14546         * insdel.c (bytecount_to_charcount): Optimize.
14547         The function used to be optimized for entirely ASCII sequences.
14548         Now it is optimized for successive characters from the same
14549         charset.  This also wins big for _mostly_ ASCII sequences.
14550
14551         * fileio.c (Ffile_truename): convert return from realpath() using
14552         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14553         - Rewrite GCPROing slightly.
14554
14555         * sysdep.c (sys_open): Do filename conversion, like all other
14556         sys_* functions.  Fixes bug:
14557         (let ((file-name-coding-system 'iso-8859-2))
14558            (write-region x y latin2-name))
14559         ==> writes filename using internal encoding.
14560
14561 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14562
14563         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14564         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14565         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14566         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14567         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14568         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14569         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14570         (CONST_IF_NOT_DEBUG): Delete.
14571         * alloc.c (this_one_is_unmarkable): Delete.
14572         (mark_object): Don't check for this_one_is_unmarkable. Use the
14573         c_readonly flag instead.
14574         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14575
14576 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14577
14578         * event-msw.c (mswindows_drain_windows_queue):
14579         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14580         away redundant repaint events.
14581
14582 2000-02-17  Andy Piper  <andy@xemacs.org>
14583
14584         * redisplay.h: declare mark_redisplay_structs.
14585
14586         * redisplay.c (redisplay_window):
14587         (redisplay_frame): don't check subwindows_state_changed.
14588         (mark_redisplay): mark gutters here.
14589
14590         * glyphs.c: (instantiate_image_instantiator): always layout if we
14591         haven't done so already.
14592         (allocate_image_instance): don't mark as dirty.
14593         (update_subwindow): bind inhibit_quit.
14594
14595         * gutter.c (mark_gutters): new function.
14596
14597         * glyphs-x.c (x_update_widget): Always resize to get round a
14598         widget bug.
14599
14600         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14601         breaking absolutely everything.
14602
14603         * gutter.h: declare mark_gutters.
14604
14605 2000-02-16  Martin Buchholz <martin@xemacs.org>
14606
14607         * XEmacs 21.2.29 is released.
14608
14609 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14610
14611         * fns.c (size_bit_vector): Fix computation of the size.
14612
14613 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14614
14615         * *.[ch]: Change CONST to const globally.
14616         find -name '*.[ch]' | \
14617         xargs global-replace \
14618         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14619         - Remove vestigial references to CONST_IS_LOSING
14620
14621 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14622
14623         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14624         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14625         events instead of dispatching them directly.
14626         (mswindows_handle_paint): New function to do repainting.
14627         (mswindows_wnd_proc):
14628         (emacs_mswindows_handle_magic_event): Call above function.
14629
14630 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14631
14632         * objects-msw.c (mswindows_create_font_variant): Return the new
14633         font handle.
14634         (initialize_font_instance): Get font metrics from the underlined
14635         variant of the font to cope with the case where the underlined
14636         font has a bigger descent.
14637
14638 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14639
14640         * gui.c (gui_item_accelerator): Return the first underlined
14641         character in item name.
14642
14643 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14644
14645         * lisp.h: Added Qprinter.
14646
14647         * general.c (syms_of_general): Initialized it.
14648
14649         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14650         (get_frame_dc):
14651         (get_frame_compdc): Made inline.
14652
14653         * console.h (struct console_methods): Added eject_page method.
14654
14655         * frame.h: Added FRAME_DISPLAY_P and friends.
14656         Aligned backslahes in many macros in more readable fashion.
14657         Added page_number to struct frame, and an accessor macro
14658         for it.
14659
14660         * defice.h: Added DEVICE_DISPLAY_P and friends.
14661
14662         * device.c (Fdevice_printer_p): Used these.
14663
14664         * frame.c (allocate_frame_core): Initialize page number.
14665         (Fprint_job_page_number):
14666         (Fprint_job_eject_page): Implemented.
14667
14668         * frame-msw.c (msprinter_eject_page): Added method.
14669         (msprinter_start_page): Added.
14670
14671         * window.c (Fwindow_truncated_p): Fixed docstring.
14672         (Fwindow_last_line_visible_height): Implemented.
14673
14674 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14675
14676         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14677
14678 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14679
14680         * syntax.c (scan_words): Always advance at least one character.
14681
14682 2000-02-13  Andy Piper  <andy@xemacs.org>
14683
14684         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14685         to make sure the glyph is in the cachels.
14686
14687         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14688         global image instance flag.
14689         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14690         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14691
14692         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14693         (Fset_image_instance_property): mark layout as changed.
14694         (invalidate_glyph_geometry_maybe): mark layout as changed.
14695         (glyph_width): use new NEEDS_LAYOUT macro.
14696         (glyph_ascent): ditto.
14697         (glyph_descent): ditto.
14698         (glyph_height): ditto.
14699         (image_instance_layout): mark layout as clean after laying out.
14700         (update_subwindow): don't mark layout as clean here.
14701
14702         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14703         should no longer be needed.
14704
14705         * glyphs-x.c (x_update_widget): sanitize asserts.
14706         (x_finalize_image_instance): sanitize assignment to widgets.
14707
14708         * glyphs-widget.c (widget_instantiate): don't need to clear the
14709         layout flag here.
14710
14711 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14712
14713         * sysdep.c (getcwd): Use standard prototype.
14714         * sysdep.h (getcwd): Use standard prototype.
14715
14716         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14717         (sequence, start, end).
14718         Remove redundant type checking.
14719         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14720         view of `caller-protects') to avoid a crash where the real fix was
14721         found elsewhere.
14722
14723 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14724
14725         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14726
14727         * s/sol2.h: Remove feature macro initialization.
14728
14729         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14730         (vector_hash): New.  Code from internal_hash.
14731         * lrecord.h:
14732         Fix up allocation subsystem comments.
14733
14734         * config.h.in: Add __EXTENSIONS__ for Solaris.
14735
14736         * systime.h (EMACS_GETTIMEOFDAY): New.
14737         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14738         Remove Solaris-specific code.
14739         Use void* for the (ignored) second arg for gettimeofday().
14740
14741         * elhash.c (hash_table_hash): Implement it, finally.
14742         * elhash.c:  Use hashcode_t.
14743
14744         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14745         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14746
14747         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14748         * fns.c (size_bit_vector):
14749         * alloc.c (size_vector):
14750         (make_vector_internal):
14751         (make_bit_vector_internal):
14752         (sweep_bit_vectors_1):
14753         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14754
14755 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14756
14757         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14758         Include strings.h to avoid warnings for bzero and strcasecmp.
14759
14760 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14761
14762         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14763         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14764
14765         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14766         sequence.
14767
14768 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14769
14770         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14771         use a value field instead.
14772         (symbol_value_forward_forward): Use value field.
14773         (DEFVAR_SYMVAL_FWD): Use value field.
14774         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14775         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14776         (DEFVAR_CONST_INT): Ditto.
14777         (DEFVAR_BOOL): Ditto.
14778         (DEFVAR_CONST_BOOL): Ditto.
14779         (DEFVAR_INT_MAGIC): Ditto.
14780         (DEFVAR_BOOL_MAGIC): Ditto.
14781
14782         * symbols.c (guts_of_unbound_marker): Use value field.
14783         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14784         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14785
14786         * lisp.h: Declare dumpopaque and noninteractive1.
14787
14788         * alloc.c (dumpopaque): Added.
14789         (pdump_dump_opaquevec): Added.
14790         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14791         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14792         noninteractive.
14793
14794 2000-02-10  Andy Piper  <andy@xemacs.org>
14795
14796         * glyphs.c (image_instance_layout): if the size changes, mark it
14797         as such.
14798
14799         * redisplay-output.c (redisplay_output_layout): Update the
14800         subwindow here.
14801         (redisplay_output_subwindow): ditto.
14802
14803         * glyphs.c (update_subwindow): make sure we reset flags for
14804         layouts as well as everything else.
14805
14806         * glyphs-widget.c (layout_layout): don't need to set the instances
14807         dimensions here.
14808
14809 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14810
14811         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14812         not HAVE_DLOPEN, which is a lower-level thing.
14813
14814         * .cvsignore: Ignore gmon.out
14815
14816 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14817
14818         * .cvsignore: Ignore portable dumper xemacs.dmp file
14819
14820 2000-02-09  Andy Piper  <andy@xemacs.org>
14821
14822         * redisplay-output.c (redisplay_output_layout): be more clever
14823         about when we output based on the changed flags.
14824
14825         * glyphs.h (struct image_instantiator_methods): add update_method.
14826         (struct Lisp_Image_Instance): add changed flags. Declare new
14827         macros for manipulating them.
14828
14829         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14830         (image_instance_parent_glyph): find an image_instance's parent
14831         glyph or image_instance.
14832         (image_instance_layout): mark the size as changed.
14833         (set_image_instance_dirty_p): new function. mark an image
14834         instance, plus all of its parents, as dirty.
14835         (Fset_image_instance_property): use it.
14836         (Fglyph_animated_timeout_handler): use it.
14837         (update_subwindow): call update_widget and device methods for
14838         update_subwindow. Mark all changed flags as clean.
14839         (Fresize_subwindow): mark size as changed.
14840
14841         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14842         failures.
14843         (x_update_subwindow): only resize subwindows here.
14844         (x_update_widget): new function. Update all changed properties of
14845         a widget.
14846         (x_resize_subwindow): deleted.
14847         (x_widget_set_property): deleted.
14848         (x_progress_gauge_set_property): deleted.
14849         (x_progress_gauge_update): new function. Implement recorded
14850         changes.
14851         (x_tab_control_update): ditto.
14852         (x_tab_control_set_property): deleted.
14853         (console_type_create_glyphs_x): declare new functions.
14854         (image_instantiator_format_create_glyphs_x): ditto.
14855
14856         * glyphs-widget.c (widget_set_property): mark text changed.
14857         (update_widget): new function. Update properties of a widget.
14858         (widget_instantiate): for layouts make sure we set their
14859         children's parent correctly.
14860         (tab_control_set_property): new function. Record changes that will
14861         take place under redisplay's control.
14862         (progress_gauge_set_property): ditto.
14863         (image_instantiator_progress_guage): declare new functions.
14864         (image_instantiator_tab_control): ditto.
14865
14866         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14867         now.
14868         (mswindows_update_widget): new function. Update all properties on
14869         a widget that have changed.
14870         (mswindows_button_update): new function. Update a button's set
14871         state.
14872         (mswindows_tab_control_update): new function. Update the items in
14873         a tab.
14874         (mswindows_tab_control_set_property): deleted.
14875         (mswindows_progress_gauge_update): new function. Update the
14876         progress gauge's progress.
14877         (mswindows_widget_set_property): deleted. This is all done
14878         asynchronously now.
14879         (mswindows_progress_gauge_set_property): ditto.
14880         (console_type_create_glyphs_mswindows): declare new methods.
14881         (image_instantiator_format_create_glyphs_mswindows): ditto.
14882
14883         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14884         (msprinter_set_frame_properties): ditto.
14885
14886         * console.h (struct console_methods): Add update_widget_method.
14887
14888 2000-02-09  Andy Piper  <andy@xemacs.org>
14889
14890         * gui-msw.c (Fmswindows_shell_execute): Make
14891         mswindows-shell-execute industrial strength.
14892
14893 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14894
14895         * lrecord.h: Make macro argument `props' match member function `plist'.
14896         * fns.c (Fget):
14897         * fns.c (Fput):
14898         * fns.c (Fremprop):
14899         * fns.c (Fobject_plist):
14900         * alloc.c:
14901         * symbols.c:
14902         Object property list frobbing cleanup.
14903         - Allow any lisp object (compared with `eq'), not just symbols, as
14904           keys in object plists.
14905         - Move symbol plist frobbing into symbols.c, where it belongs.
14906         - Move string plist frobbing into alloc.c, where it belongs.
14907         - Everything's an lrecord now, so no need to test for symbolp, etc.
14908         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14909
14910         * extents.c: Reorder code to remove declarations.
14911
14912         * frame.h (store_in_alist): Remove useless declaration.
14913
14914 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14915
14916         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14917         * config.h.in: Add HAVE_XCONVERTCASE.
14918
14919 2000-02-07  Andy Piper  <andy@xemacs.org>
14920
14921         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14922         it breaks many things.
14923
14924 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14925
14926         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14927         actually can start a common comment type.
14928         * src/syntax.h (SYNTAX_END_P): ditto for end.
14929
14930 2000-02-07  Martin Buchholz <martin@xemacs.org>
14931
14932         * XEmacs 21.2.28 is released.
14933
14934 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14935
14936         * event-Xt.c (x_keysym_to_character): New.
14937         (maybe_define_x_key_as_self_inserting_character): New.
14938         (x_has_keysym): New.
14939         Auto-define all keys on the keyboard as self-insert-key.
14940
14941 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14942
14943         * menubar.c (vars_of_menubar): A small code simplification.
14944
14945         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14946
14947         * ExternalShell.c:
14948         * ExternalClient.c:
14949         * EmacsShell-sub.c:
14950         * EmacsManager.c:
14951         * EmacsFrame.c:
14952         Use consistent style for specifying X resources.
14953
14954         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14955         This makes (dontusethis-set-symbol-value-handler) actually usable.
14956
14957         * lrecord.h (lrecord_decription_type):
14958         * alloc.c (pdump_register_sub):
14959         (pdump_dump_data):
14960         (pdump_reloc_one):
14961         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14962         Comply with XEmacs coding style.
14963         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14964         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14965
14966         * keymap.c (Faccessible_keymaps):
14967         Make (accessible-keymaps map "\C-h") do the Right Thing.
14968         Make (accessible-keymaps map []) do the Right Thing.
14969         Make (accessible-keymaps map "") do the Right Thing.
14970         (check_keymap_definition_loop): New function.
14971         (keymap_store_internal): Keep luser from shooting self in foot,
14972           via (define-key ctl-x-4-map "p" global-map).
14973         Remove fullness slot from struct Lisp_Keymap, since hash tables
14974         are now reliable.
14975         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14976
14977 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14978
14979         * redisplay.c (init_redisplay): Fix small memory leak.
14980         * elhash.h:
14981         * elhash.c (pdump_reorganize_hash_table):
14982         Rename from reorganize_hash_table. Change prototype.
14983         Reuse the original memory for hentries.  Save 100k.
14984         * alloc.c (PDUMP_READ): new macro.
14985         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14986         * alloc.c: No need to #ifndef before #undef.
14987
14988         * print.c: Allow debug_print() to print readably by modifying
14989         debug_print_readably.  Use consistent variable names.
14990
14991         * .dbxrc: Try to get things to work even if stopped in a function
14992         without source available by explicitly specifying source files.
14993 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14994
14995         * unexnt.c (_start): Removed bogus code which caused loading heap
14996         from differrent executable file.
14997         Removed bogus assignment to _fmode, which caused inconsistencies.
14998
14999 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15000
15001         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15002         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15003         Do not preliminary `#define signal sigset'.
15004
15005         * systime.h: Do not prototype environ on windows nt and cygwin,
15006         this conflicts with system header.
15007
15008         * syssignal.h: Use correct define for WINDOWSNT
15009
15010         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15011         with system header.
15012
15013         * sysdep.c (near start of file): Fixed commentary and rearranged
15014         ifdefs in readable order.
15015         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15016         (start_of_text):
15017         (end_of_text):
15018         (end_of_data): Do not compile in if using PDUMP.
15019
15020         * symsinit.h: Prototyped vars_of_nt().
15021
15022         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15023         (find_child_console): Use it.
15024         (sys_kill): Use it.
15025
15026         * ntheap.h: Do not extern os_subtype.
15027
15028         * ntheap.c (cache_system_info): Do not cache unneeded:
15029         nt_major_version, nt_minor_version and os_subtype.
15030         (recreate_heap): Do not compile in when PDUMPing.
15031
15032         * nt.c (geteuid and friends): Use the new varibale
15033         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15034         (init_user_info): Removed the above mentioned hackery.
15035         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15036         stat has been fixed in the C runtime.
15037         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15038
15039         * file-coding.c (struct file_coding_dump): Do not define
15040         ucs_to_mule_table in the struct if not MULE.
15041         (struct struct lrecord_description fcd_description_1): Do not dump
15042         the above.
15043
15044         * emacs.c (main_1): Call vars_of_nt().
15045         (right before Fdump_emacs_data): Don't need lastfile if using both
15046         portabe dumper and system malloc.
15047
15048         * alloc.c (Fmemory_limit): Conditionalized out.
15049         (pdump): Use OPEN_BINARY for the portable dump file.
15050         (pdump_load): Ditto.
15051
15052 2000-02-02  Mike Alexander  <mta@arbortext.com>
15053
15054         * nt.c (convert_time): Set tm_isdst before calling mktime and
15055         avoid calling it at all if the compiler supports 64 bit integers.
15056         Also initialize utc_base_ft before using it.
15057
15058 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15059
15060         * frame.c (change_frame_size_1): Take f->internal_border_width
15061         into consideration when calculating the width of the frame.
15062
15063 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15064
15065         * window.c (frame_min_height):
15066         (frame_size_valid_p):
15067         (frame_pixsize_valid_p): Added.
15068         (check_frame_size): Generalized.
15069
15070         * window.h: Prototyped the above.
15071
15072         * lisp.h:
15073         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15074         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15075         Deleted Vwin32_* and Vbinary_process_* unused variables.
15076
15077         * device-msw.c (msprinter_init_device): Do not get printer font
15078         list; Added DEVMODE functions.
15079
15080         * frame-msw.c: Added lots of printer code.
15081
15082         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15083         general.c.
15084
15085         * console-msw.h: Added more msprinter device private slots.
15086
15087 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15088
15089         * event-msw.c (key_needs_default_processing_p): Added.
15090         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15091
15092 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15093
15094         * glyphs.c (image_instance_layout): Mark image instance as clean
15095         after layout.
15096         (glyph_dirty_p): Removed redundant function.
15097         (invalidate_glyph_geometry_maybe): Added.
15098         (update_glyph_cachel_data): Call it.
15099
15100         * glyphs.h: Prototyped it.
15101
15102         * redisplay.c (add_glyph_rune): Call it.
15103         (redisplay_window): Reset glyphs cachels when frame faces have
15104         changed, thus forcing recomputation of built-in border glyphs.
15105
15106 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15107
15108         * Makefile.in.in: Make portable dumper and purify play well together.
15109         Add imperfect, but better than nothing, support for pdump.
15110         Remove xemacs.dmp when temacs is re-generated.
15111         Don't ignore errors when dumping xemacs.
15112
15113         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15114
15115 2000-01-28  Andy Piper  <andy@xemacs.org>
15116
15117         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15118         (setup_normal_frame): ditto.
15119         (setup_frame_without_minibuffer): ditto.
15120         (setup_minibuffer_frame): ditto.
15121         (delete_frame_internal): ditto.
15122         (Fmake_frame_invisible): ditto.
15123         (Ficonify_frame): ditto.
15124
15125         * window.h: change Fset_window_buffer signature.
15126
15127         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15128         (Fset_window_buffer): allow recording of buffer if the window is
15129         the selected window.
15130         (window_loop): Use new Fset_window signature.
15131
15132 2000-01-23  Daniel Pittman  <daniel@danann.net>
15133
15134         * config.h.in: Added template for `HAVE_ATHENA_3D'
15135
15136 2000-01-29  Andy Piper  <andy@xemacs.org>
15137
15138         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15139
15140         * gutter.c (output_gutter): Don't output if the window isn't live.
15141
15142 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15143
15144         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15145         of 01/12/00: Moved SetFocus back here where it belongs.
15146
15147 2000-01-23  Andy Piper  <andy@xemacs.org>
15148
15149         * s/cygwin32.h: declare printer things.
15150
15151 2000-01-26  Andy Piper  <andy@xemacs.org>
15152
15153         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15154         Alexander.
15155
15156 2000-01-24  Andy Piper  <andy@xemacs.org>
15157
15158         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15159         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15160
15161         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15162
15163         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15164
15165         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15166
15167         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15168         (mswindows_output_display_block): Avoid local shadows.
15169
15170         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15171         (mswindows_enqueue_mouse_button_event): ditto.
15172         (mswindows_handle_gui_wm_command): remove declaration.
15173
15174         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15175         warnings.
15176
15177         * console-msw.h: Avoid shadows.
15178         (mswindows_get_toolbar_button_text):
15179         (emacs_mswindows_create_stream_pair):
15180         (emacs_mswindows_delete_stream_pair):
15181         (mswindows_handle_toolbar_wm_command): declare.
15182
15183         * device-msw.c (build_syscolor_string): Avoid shadows.
15184
15185 2000-01-23  Andy Piper  <andy@xemacs.org>
15186
15187         * glyphs-widget.c (widget_instantiate): reverse the items for
15188         layouts so that children are in the expected order.
15189
15190 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15191
15192         * ralloc.c: safe_bcopy ==> memmove
15193         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15194         * s/msdos.h: Remove BCOPY macros.
15195         * insdel.c (gap_right): Remove BCOPY conditional code.
15196         * insdel.c (gap_left): Remove BCOPY conditional code.
15197         XEmacs demands a working ANSI C compiler - hence memmove.
15198
15199         * regex.c (regex_compile): Remove accidental use of trigraphs.
15200
15201 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15202
15203         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15204         event timestamp.
15205
15206 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15207
15208         * event-msw.c (mswindows_drain_windows_queue): Added the
15209         parameter.
15210         (mswindows_need_event): Commented the call to
15211         mswindows_drain_windows_queue().
15212         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15213         only.
15214
15215         * console-msw.h: Moved a few function prototypes here from
15216         event-msw.c.
15217
15218         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15219         parameter from unsigned short to unsigned long.
15220         (Fmswindows_shell_execute): Added return value.
15221
15222 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15223
15224         * sysdep.c (init_system_name):
15225           process-unix.c (unix_canonicalized_host_name):
15226         Don't call freeaddrinfo() if getaddrinfo() fails.
15227
15228         * process-unix.c (unix_open_unix_network_stream):
15229         Moved the code to get a port # into address loop.
15230
15231 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15232
15233         * buffer.c (reinit_vars_of_buffer):
15234         The right place to initialize conversion_in_dynarr and
15235         conversion_out_dynarr.
15236
15237         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15238
15239         * process-unix.c (unix_canonicalize_host_name): Muleize.
15240         (unix_open_network_stream): Muleize.
15241
15242         * buffer.h: Fix up prototypes for ralloc.c functions.
15243
15244 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15245         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15246         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15247                 instead of gethostbyname()
15248         * process-unix.c: In unix_canonicalize_host_name() and
15249                 unix_open_network_stream(), add code to use getaddrinfo()
15250                 instead of gethostbyname().
15251
15252 2000-01-27  Daniel Pittman <daniel@danann.net>
15253
15254         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15255         libs when built with flat Athena.
15256
15257 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15258
15259         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15260         Use coding standards for function prototypes.
15261
15262 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15263
15264         * dialog-msw.c (push_lisp_string_as_unicode):
15265         * doc.c (unparesseuxify_doc_string):
15266         * dired.c (Fuser_name_completion_1):
15267         * dired.c (Fuser_name_all_completions):
15268         * dired.c (free_user_cache):
15269         * dired.c (user_name_completion):
15270         * console-x.c (get_display_arg_connection):
15271         * minibuf.c (clear_echo_area_internal):
15272         * minibuf.c (echo_area_append):
15273         * eldap.c (Fldap_open):
15274         * eldap.c (Fldap_search_internal):
15275         * frame-x.c (x_set_frame_text_value):
15276         * frame-x.c (x_set_frame_properties):
15277         * frame-x.c (x_create_widgets):
15278         * redisplay-tty.c (term_get_fkeys_1):
15279         * objects-x.c (x_parse_nearest_color):
15280         * objects-x.c (x_valid_color_name_p):
15281         * objects-x.c (x_initialize_font_instance):
15282         * objects-x.c (x_list_fonts):
15283         * objects-x.c (x_find_charset_font):
15284         * tooltalk.c (Fadd_tooltalk_message_arg):
15285         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15286         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15287         * process-unix.c (unix_create_process):
15288         * ntproc.c (sys_spawnve):
15289         * sound.c (Fplay_sound_file):
15290         * sound.c (Fplay_sound):
15291         * buffer.c (init_initial_directory):
15292         * buffer.c (init_buffer):
15293         * editfns.c (init_editfns):
15294         * editfns.c (Ftemp_directory):
15295         * editfns.c (Fuser_full_name):
15296         * editfns.c (uncache_home_directory):
15297         * editfns.c (get_home_directory):
15298         * editfns.c (Fuser_home_directory):
15299         * editfns.c (Fformat_time_string):
15300         * editfns.c (Fcurrent_time_string):
15301         * gui-x.c (button_item_to_widget_value):
15302         * database.c (Fopen_database):
15303         * event-Xt.c (x_to_emacs_keysym):
15304         * event-Xt.c (x_event_to_emacs_event):
15305         * event-Xt.c (describe_event_window):
15306         * event-msw.c (mswindows_wnd_proc):
15307         * glyphs-eimage.c (jpeg_instantiate):
15308         * glyphs-eimage.c (gif_instantiate):
15309         * glyphs-eimage.c (png_instantiate):
15310         * glyphs-eimage.c (tiff_instantiate):
15311         * glyphs-x.c (xbm_instantiate_1):
15312         * glyphs-x.c (x_xbm_instantiate):
15313         * glyphs-x.c (x_xface_instantiate):
15314         * glyphs-x.c (autodetect_instantiate):
15315         * glyphs-x.c (cursor_font_instantiate):
15316         * glyphs-x.c (x_widget_instantiate):
15317         * glyphs-x.c (x_widget_set_property):
15318         * glyphs-x.c (x_widget_property):
15319         * glyphs-x.c (BUILD_GLYPH_INST):
15320         * print.c (write_string_to_stdio_stream):
15321         * print.c (output_string):
15322         * print.c (Falternate_debugging_output):
15323         * print.c (Fexternal_debugging_output):
15324         * glyphs-msw.c (extract_xpm_color_names):
15325         * glyphs-msw.c (mswindows_xpm_instantiate):
15326         * glyphs-msw.c (bmp_instantiate):
15327         * glyphs-msw.c (resource_name_to_resource):
15328         * glyphs-msw.c (mswindows_resource_instantiate):
15329         * glyphs-msw.c (xbm_instantiate_1):
15330         * glyphs-msw.c (mswindows_xbm_instantiate):
15331         * glyphs-msw.c (mswindows_xface_instantiate):
15332         * glyphs-msw.c (mswindows_widget_instantiate):
15333         * glyphs-msw.c (add_tree_item):
15334         * glyphs-msw.c (add_tab_item):
15335         * glyphs-msw.c (mswindows_combo_box_instantiate):
15336         * glyphs-msw.c (mswindows_widget_property):
15337         * glyphs-msw.c (mswindows_combo_box_property):
15338         * glyphs-msw.c (mswindows_widget_set_property):
15339         * console.c (stuff_buffered_input):
15340         * objects-msw.c (mswindows_initialize_color_instance):
15341         * objects-msw.c (mswindows_valid_color_name_p):
15342         * objects-msw.c (mswindows_list_fonts):
15343         * objects-msw.c (mswindows_font_instance_truename):
15344         * bytecode.c (optimize_compiled_function):
15345         * select-x.c (symbol_to_x_atom):
15346         * select-x.c (x_atom_to_symbol):
15347         * select-x.c (hack_motif_clipboard_selection):
15348         * select-x.c (selection_data_to_lisp_data):
15349         * select-x.c (lisp_data_to_selection_data):
15350         * select-x.c (Fx_get_cutbuffer_internal):
15351         * select-x.c (Fx_store_cutbuffer_internal):
15352         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15353         * buffer.h (TO_INTERNAL_FORMAT): New function.
15354         * emacs.c (make_arg_list_1):
15355         * emacs.c (make_argc_argv):
15356         * emacs.c (main_1):
15357         * emacs.c (Fdump_emacs):
15358         * emacs.c (split_string_by_emchar_1):
15359         * file-coding.h:
15360         * lisp.h:
15361         * lstream.h:
15362         * symsinit.h:
15363         * device-x.c (x_init_device):
15364         * device-x.c (Fx_valid_keysym_name_p):
15365         * device-x.c (Fx_get_font_path):
15366         * device-x.c (Fx_set_font_path):
15367         * glyphs.c (bitmap_to_lisp_data):
15368         * glyphs.c (pixmap_to_lisp_data):
15369         * alloc.c (make_ext_string): Use coding system arguments.  Update
15370         all callers.
15371         * alloc.c (build_string):
15372         * callproc.c (child_setup):
15373         * callproc.c (init_callproc):
15374         * fileio.c (lisp_strerror):
15375         * fileio.c (directory_file_name):
15376         * fileio.c (Fexpand_file_name):
15377         * fileio.c (Ffile_truename):
15378         * fileio.c (Fsysnetunam):
15379         * fileio.c (Fdo_auto_save):
15380         * sysdep.c (sys_readdir):
15381         * tests.c: New file.  Allow adding C tests.
15382         Replace GET_* macros with a more comprehensible and flexible
15383         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15384         Modify all calls.
15385         Any coding system can be used to do format conversion.
15386         Eliminate enum external_data_format.
15387         Eliminate convert_to_external_format.
15388         Eliminate convert_to_internal_format.
15389         Make sure file-name, keyboard, terminal, and ctext are always
15390         defined as coding systems or aliases.  Make
15391         file-name-coding-system, terminal-coding-system, and
15392         keyboard-coding-system magical variables that are equivalent to
15393         defining the corresponding coding system aliases.
15394
15395         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15396         * file-coding.c (Fcoding_system_alias_p): New function.
15397         * file-coding.c (Fcoding_system_aliasee): New function.
15398         * file-coding.c (append_suffix_to_symbol): New function.
15399         * file-coding.c (dangling_coding_system_alias_p): New function.
15400         * file-coding.c (Ffind_coding_system):
15401         * file-coding.c (Fcopy_coding_system):
15402         * file-coding.c (encode_coding_no_conversion):
15403         * file-coding.c (syms_of_file_coding):
15404         * file-coding.c (vars_of_file_coding):
15405         Rewrite coding system alias code.
15406         Allow nested aliases, like symbolic links.
15407         Allow redefinition of coding system aliases.
15408         Prevent existence of dangling coding system aliases.
15409
15410         * dired.c (Fuser_name_completion_1):
15411         * dired.c (Fuser_name_all_completions):
15412         A crash would happen if user did QUIT in the middle of building
15413         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15414
15415         * lisp.h:
15416         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15417
15418         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15419         an unsigned char *.  Update all callers.
15420
15421 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15422
15423         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15424
15425 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15426
15427         * elhash.c (hentry_description): Use more portable definition.
15428         (resize_hash_table): Initialize new hentries using
15429         xnew_array_and_zero, thereby simplifying the code.
15430
15431         * mule-charset.c (make_charset): Make sure entire object is
15432         initialized, to avoid Purify warnings.
15433
15434         * alloc.c (resize_string): Fix unlikely crash with big strings.
15435
15436 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15437
15438         * realpath.c (xrealpath):
15439         Don't call getwd().
15440
15441 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15442
15443         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15444
15445 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15446
15447         * unexelfsgi.c (unexec): Change the way we decide which segment
15448         should be extended.
15449
15450         Assumption that .bss section should be outside the PT_LOADable
15451         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15452         it's present) is inside the 'data' segment. This would fail the
15453         test which was used to find a segment to grow and cover new
15454         heap. Instead of this assumption, I created another one - on IRIX
15455         the segment to grow should start below .bss and it's address
15456         should extent above the end of .bss. Once this segment is
15457         identified, it's grown to accommodate the new heap and new
15458         zero-length .bss section is added at the end of .data2.
15459
15460 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15461
15462         * eval.c (Feval): Wrong number of arguments should use original
15463         function, not the indirect_function version of it.
15464
15465 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15466
15467         * glyphs-x.c (x_button_instantiate): Don't add image if
15468         it is not a pixmap.
15469         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15470         is relative.
15471
15472 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15473
15474         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15475         declaration.
15476         (DEFVAR_INT_MAGIC): Ditto.
15477         (DEFVAR_BOOL_MAGIC): Ditto.
15478         * glyphs.h: Reindent backslash.
15479
15480 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15481
15482         * glyphs-widget.c (layout_query_geometry):
15483         (layout_layout): Use correct types for gheight, gwidth.
15484
15485 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15486
15487         * EmacsManager.c (QueryGeometry): Purified.
15488
15489 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15490
15491         * alloc.c (make_float): Make sure entire object is initialized, to
15492         avoid Purify warnings.
15493         (pdump_register_sub): Remove useless assignment.
15494         (pdump): Use xmalloc, not malloc.
15495         (pdump_load): Use xmalloc, not malloc.
15496
15497 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15498
15499         * callproc.c:
15500         * dired-msw.c:
15501         * fileio.c:
15502         * process-nt.c:
15503         * redisplay-msw.c:
15504         * sysdep.c: Removed redundant #include <windows.h>
15505
15506 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15507
15508         * frame.c (delete_frame_internal): Do not delete device when its
15509         implementation so declares.
15510         (delete_frame_internal): Set device selected frame to nil when
15511         last frame goes away.
15512
15513         * device-msw.c (msprinter_device_system_metrics): Implemented.
15514         (mswindows_device_system_metrics): Added 'device-dpi property.
15515
15516         * device.c: (Fdevice_printer_p): Added.
15517         Added 'offset-workspace device metric.
15518
15519         * console.h (device_metrics): Declared DM_offset_workspace.
15520
15521 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15522
15523         * fileio.c (Ffile_truename): Remove pointless and confusing
15524         initialization of elen.
15525
15526         * glyphs-widget.c: Compiler warning fixes.
15527
15528 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15529
15530         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15531         instead of a Lisp_Object as argument to make it consistent with
15532         the other LIVE_P macros.
15533         (CHECK_LIVE_PROCESS): New macro.
15534
15535         * process.c: Declare Qprocess_live_p.
15536         (Fprocess_live_p): New function.
15537         (create_process): Use PROCESS_LIVE_P.
15538         (read_process_output): Ditto.
15539         (set_process_filter): Ditto.
15540         (Fdelete_process): Ditto.
15541         (kill_buffer_processes): Ditto
15542         (process_send_signal): Use CHECK_LIVE_PROCESS.
15543         (Fprocess_input_coding_system): Check whether process is still
15544         alive (fix PR#1061).
15545         (Fprocess_output_coding_system): Ditto.
15546         (Fprocess_coding_system): Ditto.
15547         (Fset_process_input_coding_system): Ditto.
15548         (Fset_process_output_coding_system): Ditto.
15549
15550 2000-01-23  Andy Piper  <andy@xemacs.org>
15551
15552         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15553         layout and widget.
15554
15555         * glyphs.c (mark_image_instance): take into account changed
15556         image_instance format.
15557         (image_instance_equal): ditto.
15558         (image_instance_hash): ditto.
15559
15560         * glyphs-widget.c (widget_instantiate): Incorporate layout
15561         instantiation here. Delay layout of the layout until later.
15562         (layout_instantiate): deleted.
15563         (layout_query_geometry): new function. get the geometry of a
15564         layout.
15565         (layout_layout): layout a layout dynamically.
15566         (image_instantiator_widget): New function - splitting up
15567         image_instantiator_format_create_glyphs_widget for netwinder
15568         compilation.
15569         (image_instantiator_buttons):
15570         (image_instantiator_edit_fields):
15571         (image_instantiator_combo_box):
15572         (image_instantiator_scrollbar):
15573         (image_instantiator_progress_guage):
15574         (image_instantiator_tree_view):
15575         (image_instantiator_tab_control):
15576         (image_instantiator_labels):
15577         (image_instantiator_layout): ditto.
15578         (image_instantiator_format_create_glyphs_widget): Call preceding
15579         functions.
15580
15581 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15582
15583         * process.c (Fset_process_coding_system):
15584         * device-x.c (Fx_keysym_hash_table):
15585         Docstring fixes.
15586
15587         * lstream.c (Lstream_write): Return documented value, not 0.
15588
15589         * fileio.c (directory_file_name):
15590         (Fsubstitute_in_file_name):
15591         (Fsubstitute_insert_file_contents_internal):
15592         (Fwrite_region_internal):
15593         * emacs.c:
15594         * sysdep.c:
15595         * getloadavg.c:
15596         * systty.h:
15597         Remove vestigial APOLLO-conditional code.
15598
15599 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15600
15601         * getpagesize.h: Add guard macros.
15602         * libsst.h: Add guard macros.
15603         * libst.h: Add guard macros.
15604         * line-number.h: Add guard macros.
15605         * ndir.h: Add guard macros.
15606         * sysfloat.h: Add guard macros.
15607         * sysfile.h: Add guard macros.
15608         * sysproc.h: Add guard macros.
15609         * syswait.h: Add guard macros.
15610         * xintrinsic.h: Add guard macros.
15611         * xintrinsicp.h: Add guard macros.
15612         * xmmanager.h: Add guard macros.
15613         * xmmanagerp.h: Add guard macros.
15614         * xmprimitive.h: Add guard macros.
15615         * xmu.h: Add guard macros.
15616         * gpmevent.h: Add copyright statement. Add guard macros.
15617         * miscplay.h: Add guard macros.
15618         * *.h: Use consistent C-standards-approved guard macro names.
15619
15620         * opaque.c (make_opaque): Switch parameter order.
15621         * opaque.h (make_opaque): Switch parameter order.
15622         Update all callers.
15623         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15624
15625         * config.h.in (type_checking_assert): Added.
15626         (bufpos_checking_assert): Added.
15627
15628 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15629
15630         * alloc.c: Harmless pdump changes.
15631         - Use countof().
15632         - spell alignment correctly.
15633         * sysdep.c: Use countof()
15634
15635 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15636
15637         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15638         initially_selected_for_input() console method, default to 0.
15639         (semi_canonicalize_console_connection): Try to delegate to
15640         canonicalize_console_connection if no such console method.
15641         (canonicalize_console_connection): Vice versa.
15642         (print_console): Do not print nil connection.
15643
15644         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15645         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15646         (XDEVIMPF_FRAMELESS_OK): Added.
15647         (CONSOLE_INHERITS_METHOD): Added.
15648
15649         * console-msw.c (mswindows_canonicalize_console_connection):
15650         Added.
15651         (mswindows_canonicalize_device_connection): Added.
15652
15653         * console-msw.h (struct msprinter_device): Added this struct and
15654         accessor macros.
15655         (mswindows_device): Made fontlist a lisp object.
15656
15657         * device.c (semi_canonicalize_device_connection):  Try to delegate
15658         to canonicalize_device_connection if no such console method.
15659         (canonicalize_device_connection): Vice versa.
15660         (print_device): Do not print nil connection.
15661
15662         * device-msw.c (mswindows_init_device): Call InitCommonControls
15663         when have widgets.
15664         (mswindows_delete_device): Removed fontlist deallocation.
15665         (mswindows_mark_device): Added.
15666
15667         * events.c (event_equal): Added abort() at unreached code.
15668         (event_hash): Ditto.
15669
15670         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15671         fallback tags of Windows devices.
15672
15673         * general.c (syms_of_general): Initialized Qmsprinter.
15674
15675         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15676         of fallback tags of Windows devices.
15677
15678         * lisp.h: Declared Qmsprinter.
15679
15680         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15681         of strings.
15682         (mswindows_list_fonts): Ditto.
15683         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15684         that it can be used by both mswindows and msprinter devices.
15685         (initialize_font_instance): Added.
15686         (mswindows_initialize_font_instance): Use it.
15687         (msprinter_initialize_font_instance): Added.
15688
15689         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15690         and implementation flags check.
15691         (redisplay_without_hooks): Changed the call to the above.
15692         (Fredraw_device): Ditto.
15693         (Fredisplay_device): Ditto.
15694
15695         * redisplay-msw.c (get_frame_dc): Implemented.
15696         (get_frame_compdc): Implemented.
15697         (many functions): Use the two functions above to get device
15698         contexts, ether for a window or a printer.
15699
15700 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15701
15702         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15703         initialization here.
15704         (init_symbols_once_early): Call it.
15705         * emacs.c (main_1): Call it.
15706         * symsinit.h: Declare it.
15707
15708 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15709
15710         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15711         Lisp_Object.
15712         (pdump_backtrace): Ditto.
15713         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15714         (pdump_get_entry): Abort if trying to register a null pointer.
15715         (pdump_dump_data): Cleanup types when relocating.
15716         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15717         (pdump_dump_rtables): Remove bad casts.
15718         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15719         Lisp_Object instead of a EMACS_INT for the hashtable
15720         reorganization.
15721
15722 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15723
15724         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15725
15726         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15727
15728         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15729
15730         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15731
15732 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15733
15734         * faces.h (FACE_STRIKETHRU_P): Added.
15735
15736         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15737         of font variants.
15738
15739         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15740         (mswindows_set_dc_font): New function, aware of font variants,
15741         separated from mswindows_update_dc.
15742
15743         * objects-msw.h (struct mswindows_font_instance_data): Added
15744         definition.
15745
15746         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15747         cached fonts and the data structure.
15748         (mswindows_initialize_font_instance): Added creation of font data
15749         structure.
15750         (mswindows_print_font_instance): Print at least something.
15751         (mswindows_create_font_variant): Implemented.
15752         (mswindows_get_hfont): Implemented.
15753
15754 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15755
15756         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15757         prototyping problem with msvc.
15758
15759         * emacs.c (main_1): added syms_of_gui_mswindows() call
15760
15761         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15762         syms_of_gui_mswindows() function
15763
15764         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15765
15766 2000-01-18  Martin Buchholz <martin@xemacs.org>
15767
15768         * XEmacs 21.2.27 is released.
15769
15770 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15771
15772         * glyphs-eimage.c (struct tiff_error_struct):
15773         (tiff_error_func):
15774         (tiff_warning_func):
15775         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15776
15777         * unexmips.c:
15778         * unexhp9k3.c:
15779         * unexfreebsd.c:
15780         * unexec.c: Remove vestigial Lucid C code.
15781         * unexalpha.c:
15782         * unexaix.c:
15783         * termcap.c:
15784         * libsst.c: Ansify.
15785         Remove declarations of errno and strerror().
15786
15787         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15788
15789         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15790
15791 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15792
15793         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15794         Optimize.
15795
15796 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15797
15798         * md5.c:
15799         * file-coding.c:
15800         * file-coding.h:
15801         Change enum eol_type to eol_type_t.
15802
15803 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15804
15805         * gui.c (get_gui_callback): Check cons before accessing car.
15806
15807 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15808
15809         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15810         (XSETSPECIFIER_TYPE): Ditto.
15811
15812 2000-01-17  Didier Verna  <didier@xemacs.org>
15813
15814         * redisplay.c (generate_fstring_runes): compute string size in
15815         characters, not bytes.
15816
15817 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15818
15819         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15820
15821 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15822
15823         * print.c (print_error_message): Call print_prepare().
15824
15825 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15826
15827         * .dbxrc: Renamed from dbxrc.
15828
15829         * events.c (event_to_character):
15830         Use `assert (foo)' instead of `if (!foo) abort()'
15831
15832         * .gdbinit (xtype): Add documentation.
15833         * .gdbinit (check-temacs): New function.
15834         * .gdbinit (check-xemacs): New function.
15835         * dbxrc (check-xemacs): New function.
15836         * dbxrc (check-xemacs): New function.
15837
15838 2000-01-14  Andy Piper  <andy@xemacs.org>
15839
15840         * glyphs-widget.c (widget_query_geometry): Make sure that we
15841         calculate default dimensions correctly.
15842
15843 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15844
15845         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15846
15847         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15848         pdump_wire'd variable.
15849
15850         * emacs.c: (main_1): Conditionalized calls to
15851         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15852
15853 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15854
15855         * window.c (Fset_window_configuration):
15856         * sysdep.c (_start):
15857         * input-method-motif.c (res):
15858         * event-Xt.c (Xt_process_to_emacs_event):
15859         Simple compiler warning fixes.
15860
15861         * bytecode.c (funcall_compiled_function): Use the original
15862         function symbol on the backtrace list in preference to the
15863         compiled_function object in error messages.
15864
15865 2000-01-13  Andy Piper  <andy@xemacs.org>
15866
15867         * glyphs-x.c (update_widget_face): Make sure we update the widget
15868         background as well as foreground.
15869
15870 2000-01-13  Andy Piper  <andy@xemacs.org>
15871
15872         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15873         fields to subwindow.
15874         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15875         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15876         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15877         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15878
15879         * glyphs-widget.c (check_valid_tab_orientation): new function.
15880         (initialize_widget_image_instance): zero orientation and
15881         justification.
15882         (widget_instantiate): pick up orientation.
15883         (tab_control_query_geometry): return appropriate values for
15884         vertical tabs.
15885
15886         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15887         appropriate creation flags for left, right and bottom tabs.
15888
15889         * s/cygwin32.h: add tab definitions.
15890
15891 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15892
15893         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15894         frame upon hiding a subwindow.
15895         (mswindows_button_instantiate): Changed the push button style to
15896         BS_PUSHBUTTON.
15897         (mswindows_button_instantiate): Removed button BS_NOTIFY
15898         style.
15899         (mswindows_button_instantiate): Removed redundant check for
15900         a disabled gui item.
15901         (mswindows_button_instantiate): Made use of WS_TABSTOP
15902         consistent: "operable" controls (edit, button, tree, scroll) have
15903         this style, "display-only" ones (static, progress gauge) do
15904         not. This style is currently ignored by XEmacs though. Also,
15905         removed the WS_EX_CONTROLPARENT style - it is not for children,
15906         it is for their parents!
15907         (mswindows_edit_field_instantiate): Ditto.
15908         (mswindows_progress_gauge_instantiate): Ditto.
15909         (mswindows_tree_view_instantiate): Ditto.
15910         (mswindows_tab_control_instantiate): Ditto.
15911         (mswindows_scrollbar_instantiate): Ditto.
15912         (mswindows_combo_box_instantiate): Ditto.
15913         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15914         style to the "clip" window.
15915         (mswindows_button_instantiate): Removed compilation warning by
15916         equally typing terms of the ?: operator.
15917
15918 2000-01-12  Didier Verna  <didier@xemacs.org>
15919
15920         * redisplay.c (generate_fstring_runes): new parameter holding the
15921         last modeline-format extent.
15922         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15923         extent, fill the glyph block with it.
15924         (generate_fstring_runes): handle these parameters.
15925         (generate_formatted_string_db): ditto.
15926
15927         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15928         glyphs'extents in the modeline.
15929
15930 1999-01-11  Mike Woolley  <mike@bulsara.com>
15931
15932         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15933         256Mb, as a workaround for the non-starting problem many people
15934         have experienced.
15935
15936 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15937
15938         * console-tty.c (Fset_console_tty_output_coding_system):
15939         Force redrawing tty frame.
15940
15941 2000-01-10  Didier Verna  <didier@xemacs.org>
15942
15943         * redisplay.c (generate_fstring_runes): fix size computation bug.
15944
15945 2000-01-09  William M. Perry <wmperry@aventail.com>
15946
15947         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15948
15949 2000-01-09  Andy Piper  <andy@xemacs.org>
15950
15951         * glyphs-msw.c: index -> i to avoid shadows.
15952         (xbm_create_bitmap_from_data): make static.
15953         (check_valid_string_or_int): deleted.
15954         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15955
15956         * glyphs-x.c (x_update_subwindow): remove unused args.
15957
15958         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15959         back pointer - this is done in allocate_image_instance.
15960         (query_string_font): return Qnil to make the compiler happy.
15961         (unmap_subwindow): set to ~0 to make the compiler happy.
15962         (glyph_query_geometry): comment out until used.
15963         (glyph_layout): ditto.
15964
15965 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15966
15967         * insdel.c (signal_after_change): Remove extraneous unbind_to().