update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
4         instead of `chise_open_data_source'.
5         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
6         `chise_ds_close'.
7
8 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
9
10         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
11         instead of `chise_ds_open_feature_table'.
12         (char_table_close_db_maybe): Don't use `chise_ft_close'.
13
14 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
15
16         * mule-charset.c (Fsave_charset_mapping_table): Use
17         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
18         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
19         `chise_ccs_sync' instead of `chise_ccst_close'.
20         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
21
22         * chartab.c (open_chise_data_source_maybe): Modify for
23         `chise_open_data_source'.
24         (char_table_open_db_maybe): Modify for
25         `chise_ds_open_feature_table'.
26
27 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
28
29         * mule-charset.c (load_char_decoding_entry_maybe): Use
30         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
31         `chise_ccst_close'.
32
33 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
34
35         * mule-charset.c (Fsave_charset_mapping_table): Use
36         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
37         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
38         `chise_dt_put_char' and `chise_dt_close'.
39         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
40         `chise_ccs_decode' and `chise_ccst_close' instead of
41         `chise_ds_open_decoding_table', `chise_dt_get_char' and
42         `chise_dt_close'.
43
44         * chartab.c (char_table_get_db): Use
45         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
46         (load_char_attribute_table_map_func): Modify for
47         `chise_char_feature_value_iterate'.
48         (Fload_char_attribute_table): Use
49         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
50
51 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
52
53         * chartab.c (put_char_table): Modify for inherited coded-charsets
54         in XEmacs CHISE.
55
56 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
57
58         * chartab.c (Fput_char_table_map_function): Fixed.
59         (word_boundary_p): Don't check charset in XEmacs CHISE.
60
61 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
62
63         * mule-charset.c (Fsave_charset_mapping_table): Use
64         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
65         instead of `chise_open_decoding_table'; refer
66         `default_chise_data_source'; use `chise_dt_close' instead of
67         `chise_close_decoding_table'.
68         (load_char_decoding_entry_maybe): Likewise.
69
70         * chartab.c (default_chise_data_source): New variable when `CHISE'
71         is defined.
72         (Fcopy_char_table): `ct->ds' is deleted.
73         (open_chise_data_source_maybe): New function.
74         (Fclose_char_data_source): New function.
75         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
76         use `chise_ds_open_feature_table' instead of
77         `chise_open_feature_table'.
78         (char_table_close_db_maybe): Use `chise_ft_close' instead of
79         `chise_close_feature_table'; `cit->ds' is deleted.
80         (syms_of_chartab): Add new builtin function
81         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
82
83         * chartab.h (default_chise_data_source): New extern variable.
84         (open_chise_data_source_maybe): New prototype.
85         (struct Lisp_Char_Table): Delete `ds'.
86
87 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
88
89         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
90         `CHISE' is defined.
91
92 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
93
94         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
95         not defined; add code for non-libchise setting.
96         (char_table_close_db_maybe): Likewise.
97         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
98         defined.
99         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
100         even if `CHISE' is not defined.
101         (Freset_char_attribute_table): Likewise.
102         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
103         `char_table_close_db_maybe' even if `CHISE' is not defined; use
104         `char_table_get_db'.
105         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
106         `char_table_close_db_maybe' even if `CHISE' is not defined.
107
108 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
109
110         * chartab.c (char_table_open_db_maybe): New function.
111         (char_table_close_db_maybe): New function.
112         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
113         (Freset_char_attribute_table): Likewise.
114         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
115         `char_table_close_db_maybe'.
116         (Fload_char_attribute_table): Likewise.
117
118 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
119
120         * chartab.c: Don't include <chise.h> because it is included in
121         chartab.h.
122         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
123         defined.
124         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
125         `CHISE' is defined.
126         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
127         `CHISE' is defined.
128         (Fclose_char_attribute_table): Close `ct->feature_table' and
129         `ct->ds' when `CHISE' is defined.
130         (Freset_char_attribute_table): Likewise.
131         (load_char_attribute_maybe): Use `cit->ds' and
132         `cit->feature_table' when `CHISE' is defined.
133         (Fload_char_attribute_table): Likewise.
134
135         * chartab.h: Include <chise.h> when `CHISE' is defined.
136         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
137         when `CHISE' is defined.
138
139 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
140
141         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
142         is defined.
143         (char_table_description): Likewise.
144         (Fmake_char_table): Likewise.
145         (Fcopy_char_table): Likewise.
146         (Fmount_char_attribute_table): Likewise.
147         (Fclose_char_attribute_table): Likewise.
148         (Freset_char_attribute_table): Likewise.
149         (load_char_attribute_maybe): Likewise.
150         (Fload_char_attribute_table): Likewise.
151
152         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
153         defined.
154
155 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
156
157         * chartab.c (load_char_attribute_table_map_func): New function
158         when CHISE is defined.
159         (Qload_char_attribute_table_map_function): Don't define when CHISE
160         is defined.
161         (Fload_char_attribute_table_map_function): Likewise.
162         (Fload_char_attribute_table): Use libchise when `CHISE' is
163         defined.
164         (syms_of_chartab): Don't define
165         `load-char-attribute-table-map-function' when CHISE is defined.
166
167 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
168
169         * chartab.c: Include <chise.h> when `CHISE' is defined.
170         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
171
172 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * mule-charset.c (charset_code_point): Fix problem when searching
175         in mother CCS fails with `defined_only' mode.
176
177 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
178
179         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
180         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
181         (put_char_composition): Likewise.
182         (Fput_char_attribute): Likewise.
183         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
184
185 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
186
187         * chartab.c (Q_ucs): Deleted.
188         (Fput_char_attribute): Don't refer `->ucs'.
189         (Fdefine_char): Likewise.
190         (Ffind_char): Likewise.
191         (syms_of_chartab): Delete `->ucs'.
192
193 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
194
195         * mule-charset.c (Qmap_cns11643_2): Renamed from
196         `Qchinese_cns11643_2'.
197         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
198         `chinese-cns11643-2'.
199         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
200         `=cns11643-2'.
201
202 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
203
204         * mule-charset.c (Qmap_cns11643_1): Renamed from
205         `Qchinese_cns11643_1'.
206         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
207         `chinese-cns11643-1'.
208         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
209         `=cns11643-1'.
210
211 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
212
213         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
214         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
215         `chinese-gb12345'.
216         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
217         `=gb12345'.
218
219 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
220
221         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
222         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
223         `chinese-gb2312'.
224         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
225         `=gb2312'.
226
227 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
228
229         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
230         (syms_of_mule_charset): Add new symbol `=big5' instead of
231         `chinese-big5'.
232         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
233
234 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
237         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
238         `korean-ksc5601'.
239         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
240         `=ks-x1001'.
241
242 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
243
244         * mule-charset.c (Qmap_jis_x0212): Renamed from
245         `Qjapanese_jisx0212'.
246         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
247         `japanese-jisx0212'.
248         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
249         `=jis-x0212'.
250
251 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
252
253         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
254         `Qjapanese_jisx0208'.
255         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
256         of `japanese-jisx0208'.
257         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
258         `=jis-x0208-1983'.
259
260 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
261
262         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
263         `Qjapanese_jisx0208_1978'.
264         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
265         of `japanese-jisx0208-1978'.
266         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
267         `=jis-x0208-1978'.
268
269 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
270
271         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
272         only for XEmacs CHISE.
273
274 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
275
276         * char-ucs.h: Compact non-ISO-IR charset-ids.
277         (LEADING_BYTE_UCS): Changed to -177.
278         (LEADING_BYTE_CONTROL_1): Changed to -77.
279         (LEADING_BYTE_UCS_BMP): Changed to -176.
280         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
281
282 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
283
284         * mule-charset.c (Qiso_ir): New variable.
285         (Fmake_charset): Recognise new property `iso-ir'.
286         (syms_of_mule_charset): Add new symbol `iso-ir'.
287
288 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
289
290         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
291         n to -n; charset-id of non ISO-IR sets are changed to positive
292         numbers.
293
294 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
295
296         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
297         for &MCS-XXXXXXXX; values.
298
299 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
300
301         * mule.c (Vxemacs_chise_version): Renamed from
302         `Vutf_2000_version'.
303         (vars_of_mule): Add new variable `xemacs-chise-version'; define
304         `utf-2000-version' as an alias for `xemacs-chise-version'.
305
306 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
307
308         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
309         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
310         defined.
311
312         * config.h.in (CHISE): New macro.
313
314 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
315
316         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
317         of `ucs'.
318         (Qmap_ucs): New variable.
319         (syms_of_mule_charset): Add new symbol `=ucs'.
320         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
321
322         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
323         (simplify_char_spec): Likewise.
324
325         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
326
327         * char-ucs.h (Qmap_ucs): New extern variable.
328
329 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
330
331         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
332         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
333         don't define it when UTF2000 is not defined.
334         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
335         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
336         when UTF2000 is not defined.
337         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
338         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
339
340 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
341
342         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
343
344         * mule-charset.c (Vcharset_ucs_gb): Deleted.
345         (Qucs_gb): Deleted.
346         (syms_of_mule_charset): Delete `ucs-gb'.
347         (complex_vars_of_mule_charset): Likewise.
348
349 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
350
351         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
352
353         * mule-charset.c (Vcharset_ucs_cns): Deleted.
354         (Qucs_cns): Deleted.
355         (syms_of_mule_charset): Delete `ucs-cns'.
356         (complex_vars_of_mule_charset): Likewise.
357
358 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
359
360         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
361
362         * mule-charset.c (Vcharset_ucs_jis): Deleted.
363         (Qucs_jis): Deleted.
364         (syms_of_mule_charset): Delete `ucs-jis'.
365         (complex_vars_of_mule_charset): Likewise.
366
367 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
368
369         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
370
371         * mule-charset.c (Vcharset_ucs_ks): Deleted.
372         (Qucs_ks): Deleted.
373         (syms_of_mule_charset): Delete `ucs-ks'.
374         (complex_vars_of_mule_charset): Likewise.
375
376 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
377
378         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
379         (Qideograph_daikanwa_2): Deleted.
380         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
381         (complex_vars_of_mule_charset): Likewise.
382
383         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
384         (LEADING_BYTE_DAIKANWA_1): Deleted.
385         (LEADING_BYTE_DAIKANWA_2): Deleted.
386         (MIN_CHAR_DAIKANWA): Deleted.
387         (MAX_CHAR_DAIKANWA): Deleted.
388
389 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
390
391         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
392         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
393         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
394
395         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
396         (Vcharset_ideograph_daikanwa): Deleted.
397         (Qideograph_hanziku_{1..12}): Deleted.
398         (Qideograph_daikanwa): Deleted.
399         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
400         Vcharset_ideograph_daikanwa.
401         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
402         `ideograph-hanziku-{1..12}'.
403         (complex_vars_of_mule_charset): Likewise.
404
405 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
406
407         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
408
409         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
410         (Qideograph_gt_pj_{1..11}): Deleted.
411         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
412         (complex_vars_of_mule_charset): Likewise.
413
414 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
415
416         * mule-charset.c (Vcharset_ucs_big5): Deleted.
417         (Vcharset_ideograph_gt): Deleted.
418         (Qucs_big5): Deleted.
419         (Qideograph_gt): Deleted.
420         (syms_of_mule_charset): Delete symbol `ucs-big5' and
421         `ideograph-gt'.
422         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
423         and `ideograph-gt'.
424
425         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
426         (LEADING_BYTE_GT): Deleted.
427         (MIN_CHAR_GT): Deleted.
428         (MAX_CHAR_GT): Deleted.
429
430 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
431
432         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
433
434 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
435
436         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
437         (save_uint16_byte_table): Likewise.
438         (save_byte_table): Likewise; convert values by it.
439         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
440         for `ideographic-structure'.
441         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
442         as the filter for `ideographic-structure'.
443
444 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
445
446         * chartab.c (put_char_composition): New function.
447         (Fput_char_attribute): Use `put_char_composition'; use
448         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
449
450         * fns.c (simplify_char_spec): New function.
451         (char_ref_simplify_spec): New function.
452         (Fchar_refs_simplify_char_specs): New function.
453         (syms_of_fns): Add new builtin function
454         `char-refs-simplify-char-specs'.
455
456 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
457
458         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
459         (Qideograph_cbeta): Deleted.
460         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
461         (complex_vars_of_mule_charset): Likewise.
462
463         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
464         (MIN_CHAR_CBETA): Comment out.
465         (MAX_CHAR_CBETA): Likewise.
466
467 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
468
469         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
470         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
471         CHISE client feature.
472
473 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
474
475         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
476
477 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
478
479         * mule-charset.c (charset_lookup_description_1): Use
480         `NUM_LEADING_BYTES' in UTF-2000.
481
482 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
483
484         * char-ucs.h (GC_CHARSETP): Deleted.
485
486 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
487
488         * char-ucs.h (MAX_CHAR_GT): Updated.
489
490 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
491
492         * text-coding.c: Sync with XEmacs 21.4.10.
493
494 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
495
496         * mule-charset.c (Vcharset_china3_jef): Deleted.
497         (Qchina3_jef): Deleted.
498         (syms_of_mule_charset): Don't define `china3-jef'.
499         (complex_vars_of_mule_charset): Likewise.
500
501         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
502         (MIN_CHAR_CHINA3_JEF): Comment out.
503         (MAX_CHAR_CHINA3_JEF): Comment out.
504
505 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
506
507         * mule-charset.c (Vcharset_ucs_gb): New variable.
508         (Qucs_gb): New variable.
509         (syms_of_mule_charset): Add new symbol `ucs-gb'.
510         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
511
512         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
513
514 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
515
516         * mule-charset.c (charset_code_point): if a coded-charset has a
517         final-byte, don't inherit the builtin range of the mother CCS.
518
519 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
520
521         * mule-charset.c (charset_code_point): Fix problem about
522         inheritance.
523
524 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
525
526         * mule-charset.c (decode_builtin_char): Reorganized.
527
528 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * text-coding.c (char_encode_as_entity_reference): Modify for
531         `charset_code_point'.
532         (char_encode_shift_jis): Likewise.
533         (char_encode_big5): Likewise.
534         (char_encode_utf8): Likewise.
535         (char_encode_iso2022): Likewise.
536
537         * mule-charset.c (charset_code_point): Add new argument
538         `defined_only'.
539         (Fencode_char): Add new optional argument `defined_only'.
540
541         * chartab.c (put_char_table): Modify for `charset_code_point'.
542
543         * char-ucs.h (charset_code_point): Add new argument
544         `defined_only'.
545         (encode_char_1): Modify for `charset_code_point'.
546
547 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
548
549         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
550         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
551
552 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
553
554         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
555         (Qjis_x0208): Likewise.
556         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
557         XCHARSET_FINAL(charset).
558         (charset_code_point): Modify condition for final-byte based
559         builtin-chars.
560         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
561         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
562         in UTF-2000; specify `=jis-x0208' as the mother of
563         `japanese-jisx0208-1978', `japanese-jisx0208' and
564         `japanese-jisx0208-1990' in UTF-2000.
565
566 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
567
568         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
569
570 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
571
572         * text-coding.c (decode_coding_utf16): Support UTF-16.
573         (char_encode_utf16): Fixed.
574
575 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
576
577         * text-coding.c (Qutf16): New variable in MULE.
578         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
579         (Fcoding_system_type): Add `utf-16' in MULE.
580         (struct detection_state): Add a structure for utf16 in MULE.
581         (detect_coding_type): Setup st->utf16.mask in MULE.
582         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
583         MULE.
584         (reset_encoding_stream): Use `char_encode_utf16' and
585         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
586         (detect_coding_utf16): New function [incomplete].
587         (decode_coding_utf16): New function [support only UCS-2].
588         (char_encode_utf16): New function.
589         (char_finish_utf16): New function.
590         (syms_of_file_coding): Add new symbol `utf-16'; setup
591         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
592
593         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
594         UTF-2000.
595         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
596         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
597
598 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
599
600         * chartab.c (put_char_table): When a charset is specified as a
601         range in UTF-2000, don't support builtin characters.
602
603 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
604
605         * mule-charset.c (decode_defined_char): Don't refer external
606         database if Qunbound or Qnil are found.
607         (Fsave_charset_mapping_table): Don't define it if
608         HAVE_CHISE_CLIENT is not defined.
609         (Freset_charset_mapping_table): New function.
610         (load_char_decoding_entry_maybe): Store Qnil if a character is not
611         found in external database.
612         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
613         if HAVE_CHISE_CLIENT is not defined; add new builtin function
614         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
615
616 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
617
618         * text-coding.c (decode_coding_utf8): Check CCS is specified or
619         not.
620
621 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
622
623         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
624         Q_lowercase, Q_uppercase in UTF-2000.
625
626         * chartab.c (get_char_table): Add special code for the standard
627         case table to use character attribute `->downcase' and
628         `->uppercase' for case operations in UTF-2000.
629
630         * casetab.c (Qflippedcase): New variable in UTF-2000.
631         (Q_lowercase): Likewise.
632         (Q_uppercase): Likewise.
633         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
634         and `->uppercase' in UTF-2000.
635         (complex_vars_of_casetab): Assign attribute name `downcase' to
636         downcase and CANON table of Vstandard_case_table in UTF-2000;
637         assign attribute name `flippedcase' to upcase and EQV table of
638         Vstandard_case_table in UTF-2000.
639
640 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
641
642         * text-coding.c (decode_add_er_char): Support isolated-chars.
643         (char_encode_as_entity_reference): Likewise.
644
645 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
646
647         * emacs.c (Vutf_2000_lisp_directory): New variable.
648         (Vconfigure_utf_2000_lisp_directory): Likewise.
649         (complex_vars_of_emacs): Add new variable
650         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
651
652 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
653
654         * char-ucs.h (DECODE_CHAR): Delete special code for
655         `chinese-big5-1' and `chinese-big5-2'.
656
657         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
658         (Qbig5_2): Likewise.
659         (decode_defined_char): Support CONVERSION_BIG5_1 and
660         CONVERSION_BIG5_2.
661         (decode_builtin_char): Likewise.
662         (charset_code_point): Likewise.
663         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
664         'conversion in UTF-2000.
665         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
666         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
667         `chinese-big5-2' as children of `chinese-big5'.
668
669         * char-ucs.h (CONVERSION_BIG5_1): New macro.
670         (CONVERSION_BIG5_2): New macro.
671
672 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
673
674         * text-coding.c (char_encode_big5): Support entity-reference.
675
676 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
677
678         * text-coding.c (char_encode_as_entity_reference): New function.
679         (char_encode_utf8): Use `char_encode_as_entity_reference'.
680
681 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
682
683         * text-coding.c (decode_coding_big5): Support entity-reference
684         decoding feature.
685
686 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * text-coding.c (allocate_coding_system): Initialize initial
689         charsets for CODESYS_UTF8.
690         (Fmake_coding_system): Accept charset-g0, charset-g1 and
691         charset-g2 for CODESYS_UTF8.
692         (decode_coding_utf8): Use charset-g0.
693         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
694         to force variants to map to UCS.
695
696 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
697
698         * text-coding.c (Qutf_8_mcs): New variable.
699         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
700         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
701         instead of `utf-8' in UTF-2000.
702
703 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
704
705         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
706         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
707         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
708         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
709         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
710         CONVERSION_96x96x96x96 are introduced.
711         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
712         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
713         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
714
715         * char-ucs.h (CONVERSION_94): New macro.
716         (CONVERSION_96): New macro.
717         (CONVERSION_94x94): New macro.
718         (CONVERSION_96x96): New macro.
719         (CONVERSION_94x94x94): New macro.
720         (CONVERSION_96x96x96): New macro.
721         (CONVERSION_94x94x94x60): New macro.
722         (CONVERSION_94x94x94x94): New macro.
723         (CONVERSION_96x96x96x96): New macro.
724
725 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
726
727         * chartab.c (Vcharacter_variant_table): Deleted.
728         (Fchar_variants): Use character-attribute `->ucs-variants' instead
729         of `Vcharacter_variant_table'.
730         (Fput_char_attribute): Likewise.
731         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
732         (complex_vars_of_chartab): Likewise.
733
734 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
735
736         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
737
738         * fns.c (Qideographic_structure): New variable.
739         (Qkeyword_char): New variable.
740         (ids_format_unit): New function.
741         (Fideographic_structure_to_ids): New function.
742         (syms_of_fns): Add new symbols `ideographic-structure' and
743         `:char'; add new builtin function `ideographic-structure-to-ids'.
744
745         * data.c (Fchar_ref_p): New function.
746         (syms_of_data): Add new builtin function `char-ref-p'.
747
748         * chartab.h: Add an EXFUN for `Ffind_char'.
749
750 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
751
752         * text-coding.c (Vcharacter_composition_table): Deleted.
753         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
754         in every UTF-2000.
755
756         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
757         UTF-2000.
758         (Vcharacter_composition_table): Deleted.
759         (Fget_composite_char): Use the implementation for external-DB
760         support in every UTF-2000.
761         (Fput_char_attribute): Likewise.
762         (char_attribute_system_db_file): Don't define if external-DB
763         feature is not available.
764         (Fsave_char_attribute_table): Likewise.
765         (Fmount_char_attribute_table): Likewise.
766         (Fclose_char_attribute_table): Likewise.
767         (Freset_char_attribute_table): Likewise.
768         (Fload_char_attribute_table): Likewise.
769         (syms_of_chartab): Don't define `save-char-attribute-table',
770         `mount-char-attribute-table', `reset-char-attribute-table',
771         `close-char-attribute-table' and `load-char-attribute-table' if
772         external-DB feature is not available.
773         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
774
775 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
776
777         * text-coding.c (Qcomposition): Add extern if external-DB feature
778         is supported.
779         (Vcharacter_composition_table): Don't add extern if external-DB
780         feature is supported.
781         (COMPOSE_ADD_CHAR): Modify for new data-representation of
782         character composition rule if external-DB feature is supported.
783
784         * chartab.c (Vcharacter_composition_table): Don't define if
785         external-DB feature is supported.
786         (Qcomposition): New variable.
787         (Fget_composite_char): New implementation for external-DB support.
788         (Fput_char_attribute): Use `composition' property of each
789         character instead of `Vcharacter_composition_table' to store
790         character-composition rules if external-DB feature is supported.
791         (syms_of_chartab): Add new symbol `composition'.
792         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
793         external-DB feature is supported.
794
795 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
796
797         * chartab.c (Vchar_db_stingy_mode): New variable.
798         (load_char_attribute_maybe): Close database if
799         Vchar_db_stingy_mode is not NIL.
800         (Fload_char_attribute_table_map_function): Use
801         `get_char_id_table_0' instead of `get_char_id_table'.
802         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
803
804         * chartab.h (get_char_id_table_0): New inline function.
805         (get_char_id_table): Use `get_char_id_table_0'.
806
807 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
808
809         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
810         and `COMPOSE_ADD_CHAR'.
811         (decode_coding_iso2022): Use `decode_flush_er_chars'.
812
813 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
814
815         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
816         instead of `DECODE_ADD_UCS_CHAR'.
817         (COMPOSE_ADD_CHAR): Likewise.
818
819 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
820
821         * text-coding.c (decode_flush_er_chars): New inline function.
822         (decode_add_er_char): New function.
823         (decode_coding_utf8): Use `decode_flush_er_chars' and
824         `decode_add_er_char'.
825
826 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
827
828         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
829         done before `decode_output_utf8_partial_char'.
830
831         * mule-charset.c (complex_vars_of_mule_charset): Specify
832         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
833         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
834
835 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
836
837         * mule-charset.c (decode_defined_char): New function; search
838         mother.
839         (decode_builtin_char): Don't search mother if
840         XCHARSET_MAX_CODE(charset) == 0.
841         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
842         == 0 even if code >= XCHARSET_MAX_CODE(charset).
843         (Fdecode_char): Use `decode_defined_char' instead of
844         `DECODE_DEFINED_CHAR'.
845         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
846         mother of `Vcharset_ucs_jis'.
847
848         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
849         instead of `DECODE_DEFINED_CHAR'.
850
851         * char-ucs.h (decode_defined_char): Renamed from
852         `DECODE_DEFINED_CHAR'; changed to normal function.
853         (DECODE_CHAR): Use `decode_defined_char' instead of
854         `DECODE_DEFINED_CHAR'.
855
856         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
857
858 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
859
860         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
861
862         * text-coding.c (Vcoded_charset_entity_reference_alist): New
863         variable.
864         (Quse_entity_reference): New variable.
865         (Qd): New variable.
866         (Qx): New variable.
867         (QX): New variable.
868         (coding_system_description): Add description for
869         `ccs_priority_list'.
870         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
871         (allocate_coding_system): Initialize `ccs_priority_list' in
872         UTF-2000.
873         (Fmake_coding_system): Add description about
874         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
875         (codesys).
876         (Fcoding_system_property): Accept `disable-composition' and
877         `use-entity-reference' in UTF-2000.
878         (struct decoding_stream): Add new member `er_counter' and `er_buf'
879         in UTF-2000.
880         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
881         (decode_coding_utf8): Decode entity-reference if
882         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
883         (char_encode_utf8): Encode non-Unicode characters as
884         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
885         (str->codesys).
886         (syms_of_file_coding): Add new symbols `use-entity-reference',
887         `d', `x', `X'.
888         (vars_of_file_coding): Add new variable
889         `coded-charset-entity-reference-alist'.
890         (complex_vars_of_file_coding): Declare `disable-composition' and
891         `use-entity-reference' to be coding-system-properties in UTF-2000.
892
893         * file-coding.h (struct Lisp_Coding_System): Add new member
894         `use_entity_reference' and `ccs_priority_list'.
895         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
896         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
897         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
898
899 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
900
901         * chartab.c (save_uint8_byte_table): Don't clear the table.
902         (save_uint16_byte_table): Likewise.
903         (save_byte_table): Likewise.
904         (Fmount_char_attribute_table): New function.
905         (syms_of_chartab): Add new builtin function
906         `mount-char-attribute-table'.
907
908 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
909
910         * mule-charset.c (Fsave_charset_mapping_table): Open database as
911         "w+" mode.
912         (load_char_decoding_entry_maybe): Open database as read-only mode.
913
914         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
915         open database as "w+" mode.
916         (load_char_attribute_maybe): Open database as read-only mode.
917         (Fload_char_attribute_table): Likewise.
918
919 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
920
921         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
922         (char_table_description): Delete member `db_file'.
923         (Fmake_char_table): Don't refer `ct->db_file'.
924         (Fcopy_char_table): Likewise.
925         (Fsave_char_attribute_table): Likewise.
926         (Fclose_char_attribute_table): Likewise.
927         (Freset_char_attribute_table): Likewise.
928         (load_char_attribute_maybe): Likewise.
929         (Fload_char_attribute_table): Likewise.
930
931         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
932
933 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
934
935         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
936         (Fsave_char_attribute_table): Don't check `ct->db_file' if
937         `ct->db' is living.
938         (load_char_attribute_maybe): Likewise.
939         (Fload_char_attribute_table): Likewise.
940
941 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
942
943         * chartab.c (Fclose_char_attribute_table): Set Qnil on
944         `ct->db_file' unconditionally.
945
946 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
947
948         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
949         UTF-2000.
950         (char_table_description): Add description for `db_file' and `db'
951         in UTF-2000.
952         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
953         UTF-2000.
954         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
955         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
956         (Fclose_char_attribute_table): New function.
957         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
958         (load_char_attribute_maybe): Change interface; use `cit->db_file'
959         and `cit->db'.
960         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
961         (syms_of_chartab): Add new builtin function
962         `Fclose_char_attribute_table'.
963
964 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
965
966         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
967         `db' in UTF-2000.
968         (load_char_attribute_maybe): Change interface.
969         (get_char_id_table): Modify for `load_char_attribute_maybe'.
970
971 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
972
973         * database.h: Add an EXFUN for `Fdatabase_live_p'.
974
975 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
976
977         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
978         instead of `DECODE_CHAR' for mother; don't use special code for
979         chinese-big5 to use code space of chinese-big5-1 and
980         chinese-big5-2.
981         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
982         `MAX_CHAR_BIG5_CDP' for chinese-big5.
983
984         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
985         (MAX_CHAR_BIG5_CDP): Revival.
986
987 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
988
989         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
990         the XLFD registry-encoding name of `chinese-big5'.
991
992 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
993
994         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
995         (Qchinese_big5_cdp): Deleted.
996         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
997         (complex_vars_of_mule_charset): Delete coded-charset
998         `chinese-big5-cdp'.
999
1000         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1001         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1002         `CHARSET_ID_OFFSET - n' for private CCS.
1003         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1004         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1005         of `MIN_LEADING_BYTE'.
1006         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1007         `(CHARSET_ID_OFFSET - 97)'.
1008         (MIN_CHAR_BIG5_CDP): Deleted.
1009         (MAX_CHAR_BIG5_CDP): Deleted.
1010
1011 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1012
1013         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1014
1015 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016
1017         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1018         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1019         chartab.c].
1020
1021         * chartab.c (Vutf_2000_version): Moved to mule.c.
1022         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1023
1024 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1025
1026         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1027         when HAVE_CHISE_CLIENT is not defined.
1028
1029         * mule.c (vars_of_mule): Provide feature `chise' when
1030         HAVE_CHISE_CLIENT is defined.
1031
1032 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1033
1034         * config.h.in (UTF2000): Add comment.
1035         (HAVE_CHISE_CLIENT): New macro.
1036
1037 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1038
1039         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1040         CONSP.
1041         (Fput_char_attribute): Likewise.
1042         (char_attribute_system_db_file): Encode file-name of attribute.
1043         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1044         the initial value.
1045
1046 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1047
1048         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1049         (Fsave_charset_mapping_table): Use
1050         `char_attribute_system_db_file'.
1051         (load_char_decoding_entry_maybe): Likewise.
1052
1053         * chartab.h (Qsystem_char_id): New external variable.
1054         (char_attribute_system_db_file): New prototype.
1055
1056         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1057         (char_attribute_system_db_file): New function.
1058         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1059         (Freset_char_attribute_table): Likewise.
1060         (load_char_attribute_maybe): Likewise.
1061         (Fload_char_attribute_table): Likewise.
1062         (syms_of_chartab): Add new symbol `system-char-id'.
1063
1064 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1065
1066         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1067         `XCHARSET_GRAPHIC(ccs)'.
1068
1069 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1070
1071         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1072
1073 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1074
1075         * chartab.c (Q_ucs_variants): New variable.
1076         (syms_of_chartab): Add new symbol `->ucs-variants'.
1077         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1078         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1079         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1080
1081         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1082
1083         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1084         `HAVE_DATABASE' is defined.
1085         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1086         `HAVE_DATABASE' is defined.
1087
1088 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1089
1090         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1091         attribute-table.
1092         (Freset_char_attribute_table): New function.
1093         (syms_of_chartab): Add new builtin function
1094         `reset-char-attribute-table'.
1095
1096 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1097
1098         * chartab.c (load_char_attribute_maybe): Don't make directories.
1099
1100 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1101
1102         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1103
1104         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1105         for decoding-table.
1106
1107 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1108
1109         * mule-charset.c (Fsave_charset_mapping_table): Use
1110         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1111
1112         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1113         instead of `XCHARSET_CHARS'.
1114
1115 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1116
1117         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1118         (XCHARSET_BYTE_SIZE): Likewise.
1119
1120         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1121         mule-charset.c].
1122         (XCHARSET_BYTE_SIZE): Likewise.
1123
1124 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1125
1126         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1127         data-directory to store database.
1128         (Fsave_char_attribute_table): Likewise.
1129         (load_char_attribute_maybe): Likewise.
1130         (Fload_char_attribute_table): Likewise.
1131
1132 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1133
1134         * mule-charset.c (Fsave_charset_mapping_table): New function.
1135         (syms_of_mule_charset): Add new builtin function
1136         `save-charset-mapping-table'.
1137
1138 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1139
1140         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1141         (get_ccs_octet_table): New inline function.
1142         (put_ccs_octet_table): Likewise.
1143         (decoding_table_put_char): Use `get_ccs_octet_table' and
1144         `put_ccs_octet_table'.
1145         (decoding_table_remove_char): Use `decoding_table_put_char'.
1146         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1147
1148         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1149         into encoding_table.
1150         (make_charset): Use Qunbound instead Qnil as initial value of
1151         decoding_table.
1152
1153 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1154
1155         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1156         element is Qunloaded.
1157         (map_over_uint16_byte_table): Likewise.
1158         (map_over_byte_table): Likewise.
1159         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1160         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1161         database support, load encoding-table of the specified
1162         coded-charset if it is not loaded yet.
1163         (save_uint8_byte_table): New function of UTF-2000 with external
1164         database support.
1165         (save_uint16_byte_table): Likewise.
1166         (save_byte_table): Likewise.
1167         (Fput_char_attribute): Don't store value into external database
1168         even if the external database feature is supported in UTF-2000;
1169         set `attribute' as name of char-table if the external database
1170         feature is supported.
1171         (Fsave_char_attribute_table): New function in UTF-2000.
1172         (syms_of_chartab): Add new builtin function
1173         `save-char-attribute-table' in UTF-2000.
1174
1175 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1176
1177         * chartab.c (char_attribute_table_to_put): New variable in
1178         UTF-2000.
1179         (Qput_char_table_map_function): Likewise.
1180         (value_to_put): Likewise.
1181         (Fput_char_table_map_function): New function in UTF-2000.
1182         (put_char_table): Use `Fmap_char_attribute' for
1183         CHARTAB_RANGE_CHARSET in UTF-2000.
1184         (Fput_char_attribute): Store symbol instead of string in
1185         `XCHAR_TABLE_NAME (table)'.
1186         (load_char_attribute_maybe): Likewise.
1187         (syms_of_chartab): Add new symbol/function
1188         `put-char-table-map-function'.
1189
1190 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1191
1192         * database.h: Add new EXFUN for `Fmap_database'.
1193
1194         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1195         (syms_of_database): Likewise.
1196
1197         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1198         UTF-2000.
1199         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1200         (XCHAR_TABLE_UNLOADED): Likewise.
1201
1202         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1203         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1204         HAVE_DATABASE is defined.
1205         (char_attribute_table_to_load): New variable of UTF-2000 with
1206         external database support.
1207         (Qload_char_attribute_table_map_function): Likewise.
1208         (Fload_char_attribute_table_map_function): New function of
1209         UTF-2000 with external database support.
1210         (Fload_char_attribute_table): New function of UTF-2000.
1211         (Fmap_char_attribute): Call Fload_char_attribute_table if
1212         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1213         (syms_of_chartab): Add new symbol and function
1214         `load-char-attribute-table-map-function' in UTF-2000 with external
1215         database support; add new function `load-char-attribute-table' in
1216         UTF-2000.
1217
1218 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1219
1220         * chartab.h (load_char_attribute_maybe): New prototype for
1221         UTF-2000 with DATABASE support.
1222         (get_char_id_table): Use `load_char_attribute_maybe' if
1223         HAVE_DATABASE is defined.
1224
1225         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1226         with DATABASE support.
1227
1228 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229
1230         * chartab.c (Fput_char_attribute): Use S-expression as key of
1231         external database.
1232
1233         * chartab.h (get_char_id_table): Use S-expression as key of
1234         external database.
1235
1236 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1237
1238         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1239         if an element is not loaded, load the corresponding attributes
1240         from an external database.
1241         (map_over_uint16_byte_table): Likewise.
1242         (map_over_byte_table): Likewise.
1243         (map_char_table): Modify for `map_over_uint8_byte_table',
1244         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1245         element is not loaded, load the corresponding attributes from an
1246         external database.
1247         (Fput_char_attribute): Change initial values to Qunloaded.
1248
1249         * chartab.h (get_char_id_table): If a character attribute is not
1250         loaded and the attribute value is not found in an external
1251         database, store Qunbound as the attribute value.
1252
1253 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1254
1255         * chartab.c (BT_UINT8_unloaded): New macro.
1256         (UINT8_VALUE_P): Accept Qunloaded.
1257         (UINT8_ENCODE): Likewise.
1258         (UINT8_DECODE): Likewise.
1259         (BT_UINT16_unloaded): New macro.
1260         (UINT16_VALUE_P): Accept Qunloaded.
1261         (UINT16_ENCODE): Likewise.
1262         (UINT16_DECODE): Likewise.
1263         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1264         BT_UINT16_unloaded.
1265         (mark_char_table): Mark `ct->name' in UTF-2000.
1266         (char_table_description): Add `name' in UTF-2000.
1267         (Fmake_char_table): Initialize `ct->name'.
1268         (Fcopy_char_table): Copy `ct->name'.
1269         (Fput_char_attribute): Store value into an external database if
1270         HAVE_DATABASE is defined.
1271
1272         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1273         UTF-2000.
1274         (CHAR_TABLE_NAME): New macro in UTF-2000.
1275         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1276         (get_char_id_table): Try to read an external database if Qunloaded
1277         is stored in a table.
1278
1279         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1280         Qunloaded.
1281
1282 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1283
1284         * database.h: Add EXFUN definitions for Fopen_database,
1285         Fput_database, Fget_database and Fclose_database.
1286
1287         * data.c (Qunloaded): New variable in UTF-2000.
1288
1289         * lisp.h (Qunloaded): New variable in UTF-2000.
1290
1291 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1292
1293         * mule-charset.c (put_char_ccs_code_point): Modify for
1294         `decoding_table_remove_char' and `decoding_table_put_char'.
1295         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1296
1297         * char-ucs.h (decoding_table_remove_char): Change arguments to
1298         hide decoding_table vector.
1299         (decoding_table_put_char): Likewise.
1300
1301 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1302
1303         * mule-charset.c (decoding_table_remove_char): Moved to
1304         char-ucs.h.
1305         (decoding_table_put_char): Likewise.
1306
1307         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1308         from mule-charset.c].
1309         (decoding_table_remove_char): New inline function [moved from
1310         mule-charset.c].
1311         (decoding_table_put_char): Likewise.
1312
1313 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1314
1315         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1316         extension.
1317
1318 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1319
1320         * mule-charset.c (decode_builtin_char): Support mother charsets.
1321
1322 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1323
1324         * mule-charset.c (Q94x94x60): New variable.
1325         (charset_code_point): Support conversion `94x94x60'.
1326         (Fmake_charset): Likewise.
1327         (syms_of_mule_charset): Add new symbol `94x94x60'.
1328
1329         * char-ucs.h (CONVERSION_94x94x60): New macro.
1330
1331 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1332
1333         * mule-charset.c (charset_code_point): Unify code about
1334         `code-offset'.
1335
1336 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1337
1338         * mule-charset.c (charset_code_point): Merge code about builtin
1339         characters into code about mother charsets; don't use
1340         `range_charset_code_point'.
1341         (range_charset_code_point): Deleted.
1342
1343 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1344
1345         * mule-charset.c (Qcode_offset): New variable.
1346         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1347         `max-code'; accept new property `code-offset'.
1348         (syms_of_mule_charset): Add new symbol `code-offset'.
1349
1350 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1351
1352         * mule-charset.c (range_charset_code_point): Fixed.
1353
1354 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1355
1356         * mule-charset.c (decode_builtin_char): Change semantics of
1357         code-offset of coded-charset.
1358         (charset_code_point): Likewise.
1359         (range_charset_code_point): Likewise.
1360         (complex_vars_of_mule_charset): Modify for the change.
1361
1362 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1363
1364         * mule-charset.c (Fencode_char): Reverse arguments.
1365
1366         * mule-charset.c (charset_code_point): Fixed.
1367
1368 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369
1370         * mule-charset.c (Vcharset_mojikyo): Deleted.
1371         (Vcharset_mojikyo_2022_1): Deleted.
1372         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1373         (Qmin_code): New variable in UTF-2000.
1374         (Qmax_code): Likewise.
1375         (Qmother): Likewise.
1376         (Qconversion): Likewise.
1377         (Q94x60): Likewise.
1378         (Qmojikyo): Deleted.
1379         (Qmojikyo_2022_1): Deleted.
1380         (Qmojikyo_pj_{1..22}): Deleted.
1381         (mark_charset): Mark `cs->mother'.
1382         (charset_description): Add description for `mother'.
1383         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1384         new arguments `mother' and `conversion'; use
1385         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1386         (charset_code_point): Moved from char-ucs.h; support `mother'
1387         charset feature.
1388         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1389         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1390         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1391         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1392         allow 2 as the value of `graphic' in UTF-2000; add new properties
1393         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1394         require `final' in UTF-2000; modify for `make_charset'.
1395         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1396         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1397         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1398         (Fencode_char): New function.
1399         (syms_of_mule_charset): Add new builtin function `encode-char' in
1400         UTF-2000; add new symbols `min-code', `max-code', `mother',
1401         `conversion' and `94x60'; delete symbols `mojikyo',
1402         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1403         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1404         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1405         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1406
1407         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1408         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1409
1410         * char-ucs.h (Vcharset_mojikyo): Deleted.
1411         (Vcharset_mojikyo_2022_1): Deleted.
1412         (LEADING_BYTE_MOJIKYO): Deleted.
1413         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1414         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1415         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1416         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1417         add new member `mother'; add new member `conversion'.
1418         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1419         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1420         (CHARSET_MOTHER): New macro.
1421         (CHARSET_CONVERSION): New macro.
1422         (CONVERSION_IDENTICAL): New macro.
1423         (CONVERSION_94x60): New macro.
1424         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1425         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1426         (XCHARSET_MOTHER): New macro.
1427         (XCHARSET_CONVERSION): New macro.
1428         (MIN_CHAR_MOJIKYO): Deleted.
1429         (MAX_CHAR_MOJIKYO): Deleted.
1430         (DECODE_MOJIKYO_2022): Deleted.
1431         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1432         (charset_code_point): Changed to non-inline function.
1433         (encode_char_1): Use `charset_code_point'.
1434         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1435
1436 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1437
1438         * lread.c (read_compiled_function): Fix prototype.
1439         (read_vector): Likewise.
1440
1441 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1442
1443         * lrecord.h (struct lrecord_header): Delete `older'.
1444         (set_lheader_implementation): Delete code for `older'.
1445         (set_lheader_older_implementation): Deleted.
1446         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1447         (OLDER_RECORD_P): Deleted.
1448         (OLDER_RECORD_HEADER_P): Deleted.
1449         (alloc_older_lcrecord): Deleted.
1450         (alloc_older_lcrecord_type): Deleted.
1451
1452         * alloc.c (all_older_lcrecords): Deleted.
1453         (alloc_older_lcrecord): Deleted.
1454         (disksave_object_finalization_1): Delete code for older objects.
1455         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1456         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1457
1458 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1459
1460         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1461         instead of `make_older_vector'.
1462         (put_char_ccs_code_point): Likewise.
1463         (mark_charset): Mark `cs->decoding_table'.
1464         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1465
1466         * lisp.h (make_older_vector): Deleted.
1467         (make_vector_newer): Deleted.
1468
1469         * config.h.in (HAVE_GGC): Deleted.
1470
1471         * alloc.c (make_older_vector): Deleted.
1472         (make_vector_newer_1): Deleted.
1473         (make_vector_newer): Deleted.
1474
1475 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1476
1477         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1478         (Qideograph_daikanwa_2): New variable.
1479         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1480         (complex_vars_of_mule_charset): Add new coded-charset
1481         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1482         `LEADING_BYTE_DAIKANWA'.
1483
1484         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1485         (LEADING_BYTE_DAIKANWA_1): New macro.
1486         (LEADING_BYTE_DAIKANWA_2): New macro.
1487         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1488
1489 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1490
1491         * mule-charset.c (complex_vars_of_mule_charset): Change
1492         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1493         the second revised version.
1494
1495 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1496
1497         * mule-charset.c (Vcharset_ucs_smp): New variable.
1498         (Vcharset_ucs_sip): New variable.
1499         (Qucs_smp): New variable.
1500         (Qucs_sip): New variable.
1501         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1502         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1503         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1504         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1505         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1506         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1507
1508         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1509         (LEADING_BYTE_UCS_SIP): New macro.
1510         (MIN_CHAR_SMP): New macro.
1511         (MAX_CHAR_SMP): New macro.
1512         (MIN_CHAR_SIP): New macro.
1513         (MAX_CHAR_SIP): New macro.
1514
1515 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1516
1517         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1518         utf-2000.
1519
1520 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521
1522         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1523         value; don't store value into `encoding_table' of `Lisp_Charset'.
1524         (mark_charset): `encoding_table' was deleted.
1525         (charset_description): Likewise.
1526         (make_charset): Likewise.
1527         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1528         `put_char_ccs_code_point'.
1529
1530         * chartab.h (Fput_char_attribute): New EXFUN.
1531
1532         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1533         is unified with normal symbol space.
1534         (Fget_char_attribute): Likewise.
1535         (Fput_char_attribute): Likewise; behavior of
1536         `put_char_ccs_code_point' is changed.
1537
1538         * char-ucs.h: Include "elhash.h".
1539         (Vchar_attribute_hash_table): New external variable.
1540         (struct Lisp_Charset): Delete `encoding_table'.
1541         (CHARSET_ENCODING_TABLE): New implementation; refer
1542         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1543         `Lisp_Charset'.
1544
1545 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1546
1547         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1548         (cs) == 0.
1549
1550 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1551
1552         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1553         `chinese-big5'.
1554
1555 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1556
1557         * chartab.c (uint8_byte_table_description): New constant.
1558         (uint8-byte-table): Use `uint8_byte_table_description'.
1559         (uint16_byte_table_description): New constant.
1560         (uint16-byte-table): Use `uint16_byte_table_description'.
1561
1562 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1563
1564         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1565         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1566
1567 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1568
1569         * mule-charset.c (Vcharset_ucs_ks): New variable.
1570         (Qucs_ks): New variable.
1571         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1572         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1573
1574         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1575
1576 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1577
1578         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1579         (Fdecode_char): Likewise.
1580
1581         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1582         chartab.h.
1583         (Fdefine_char): Modify for Fdecode_char.
1584         (Ffind_char): Likewise.
1585
1586         * mule-charset.c (Fdecode_char): Add new optional argument
1587         `defined-only'.
1588         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1589
1590 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1591
1592         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1593         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1594         (allocate_coding_system): Initialize initial-charsets of
1595         CODESYS_BIG5 in XEmacs UTF-2000.
1596         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1597         CODESYS_BIG5 in XEmacs UTF-2000.
1598         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1599         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1600
1601         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1602         variables.
1603         (Qideograph_hanziku_{1 .. 12}): Likewise.
1604         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1605         .. 12}'.
1606         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1607         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1608         `ideograph-hanziku-{1 .. 12}'.
1609
1610         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1611         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1612         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1613         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1614         (DECODE_DEFINED_CHAR): New inline function.
1615         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1616
1617 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1618
1619         * mule-charset.c (Vcharset_china3_jef): Renamed from
1620         `Vcharset_japanese_jef_china3'.
1621         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1622         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1623         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1624         (syms_of_mule_charset): Rename `china3-jef' from
1625         `japanese-jef-china3'.
1626         (complex_vars_of_mule_charset): Likewise; rename
1627         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1628
1629         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1630         `LEADING_BYTE_JEF_CHINA3'.
1631         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1632         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1633
1634 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1635
1636         * mule-charset.c (encode_builtin_char_1): Comment out special code
1637         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1638
1639         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1640         (MAX_CHAR_MOJIKYO_0): Comment out.
1641         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1642         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1643         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1644         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1645
1646 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1647
1648         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1649         (Qideograph_cbeta): New variable.
1650         (encode_builtin_char_1): Comment out special code for
1651         coded-charset `mojikyo' and `japanese-jef-china3'.
1652         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1653         (complex_vars_of_mule_charset): Add new coded-charset
1654         `ideograph-cbeta'.
1655
1656         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1657         (MIN_CHAR_CBETA): New macro.
1658         (MAX_CHAR_CBETA): New macro.
1659
1660 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1661
1662         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1663         (LEADING_BYTE_JEF_CHINA3): New macro.
1664         (MIN_CHAR_JEF_CHINA3): New macro.
1665         (MAX_CHAR_JEF_CHINA3): Likewise.
1666         (DECODE_CHAR): Fixed.
1667
1668 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1669
1670         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1671         (Qjapanese_jef_china3): New variable.
1672         (encode_builtin_char_1): Support `japanese-jef-china3'.
1673         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1674         (complex_vars_of_mule_charset): Add new coded-charset
1675         `japanese-jef-china3'.
1676
1677 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1678
1679         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1680         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1681         94^4, 96^3, 96^4, 128^n and 256^n set.
1682         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1683         (map_char_table): Likewise.
1684
1685 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1686
1687         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1688         UTF-2000.
1689
1690 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1691
1692         * chartab.h (get_char_id_table): New inline function.
1693
1694         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1695         function.
1696
1697 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1698
1699         * chartab.h (decode_char_table_range): New prototype in XEmacs
1700         UTF-2000.
1701         (put_char_id_table): New inline function in XEmacs UTF-2000.
1702
1703         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1704         function.
1705         (decode_char_table_range): Delete static declaration in XEmacs
1706         UTF-2000.
1707
1708 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1709
1710         * chartab.c (put_char_id_table): Use `put_char_table'.
1711
1712 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1713
1714         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1715         (map_over_uint16_byte_table): Likewise.
1716         (map_over_byte_table): Likewise.
1717         (map_char_table): Modify for `map_over_uint8_byte_table',
1718         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1719         UTF-2000.
1720
1721 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1722
1723         * chartab.c (struct map_char_table_for_charset_arg): New
1724         structure.
1725         (map_char_table_for_charset_fun): New function.
1726         (map_char_table): Use `map_char_table' for encoding_table of
1727         `range->charset'.
1728
1729 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1730
1731         * chartab.c (map_char_table): Check a character is found in
1732         range->charset instead of non default value is defined in
1733         char-table when range is CHARTAB_RANGE_ROW.
1734
1735 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1736
1737         * chartab.c (map_char_id_table): Deleted.
1738         (Fmap_char_attribute): Use `map_char_table' instead of
1739         `map_char_id_table'.
1740
1741 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1742
1743         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1744         UTF-2000.
1745         (update_syntax_table): Deleted in XEmacs UTF-2000.
1746
1747         * syntax.c (find_defun_start): Use `syntax_table' instead of
1748         `mirror_syntax_table' in XEmacs UTF-2000.
1749         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1750         UTF-2000.
1751         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1752         XEmacs UTF-2000.
1753         (Fmatching_paren): Likewise.
1754         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1755         in XEmacs UTF-2000.
1756         (find_start_of_comment): Likewise.
1757         (find_end_of_comment): Likewise.
1758         (Fforward_comment): Likewise.
1759         (scan_lists): Likewise.
1760         (char_quoted): Likewise.
1761         (Fbackward_prefix_chars): Likewise.
1762         (scan_sexps_forward): Likewise.
1763         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1764         (update_syntax_table): Likewise.
1765
1766         * search.c (skip_chars): Use `syntax_table' instead of
1767         `mirror_syntax_table' in XEmacs UTF-2000.
1768         (wordify): Likewise.
1769         (Freplace_match): Likewise.
1770
1771         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1772         `mirror_syntax_table' in XEmacs UTF-2000.
1773         (WORDCHAR_P_UNSAFE): Likewise.
1774         (re_match_2_internal): Likewise.
1775
1776         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1777         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1778
1779         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1780         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1781
1782         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1783         XEmacs UTF-2000.
1784
1785         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1786         UTF-2000.
1787         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1788         (char_table_description): Delete `mirror_table' in XEmacs
1789         UTF-2000.
1790         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1791         UTF-2000.
1792         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1793         (Fcopy_char_table): Likewise.
1794         (put_char_table): Don't call `update_syntax_table' in XEmacs
1795         UTF-2000.
1796
1797         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1798         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1799         (casify_region_internal): Likewise.
1800
1801         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1802
1803         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1804         `mirror_syntax_table' in XEmacs UTF-2000.
1805
1806         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1807         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1808         (Fexpand_abbrev): Likewise.
1809
1810 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1811
1812         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1813
1814 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815
1816         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1817         (map_over_uint16_byte_table): Likewise.
1818         (map_over_byte_table): Likewise.
1819         (get_char_id_table): Refer `cit->default_value'.
1820         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1821         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1822         of character-id ranges.
1823         (mark_char_table): Mark `ct->default_value'.
1824         (char_table_description): Add `default_value'.
1825         (fill_char_table): Use `default_value'.
1826         (decode_char_table_range): Decode `nil' as
1827         `CHARTAB_RANGE_DEFAULT'.
1828         (get_char_id_table): Refer `cit->default_value'.
1829         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1830         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1831         temporary hack; check value of char-table is bound or not.
1832         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1833
1834         * chartab.h (struct Lisp_Char_Table): Add new member
1835         `default_value' in XEmacs UTF-2000.
1836         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1837         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1838         UTF-2000.
1839
1840 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1841
1842         * chartab.h (Lisp_Char_ID_Table): Deleted.
1843
1844         * chartab.c (char_table_description): Fix typo.
1845         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1846         `Lisp_Char_ID_Table'.
1847
1848 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1849
1850         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1851         `CHAR_ID_TABLE_P'.
1852
1853         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1854         `CHAR_ID_TABLE_P'.
1855
1856         * chartab.h (XCHAR_ID_TABLE): Deleted.
1857         (XSETCHAR_ID_TABLE): Deleted.
1858         (CHAR_ID_TABLE_P): Deleted.
1859
1860         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1861         `CHAR_ID_TABLE_P'.
1862         (Fget_composite_char): Likewise.
1863         (put_char_table): Likewise.
1864         (add_char_attribute_alist_mapper): Fixed.
1865         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1866         `CHAR_ID_TABLE_P'.
1867         (Fget_char_attribute): Likewise.
1868         (Fget_char_attribute): Likewise.
1869         (Fmap_char_attribute): Likewise.
1870
1871         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1872         `CHAR_ID_TABLE_P'.
1873         (encode_char_1): Likewise.
1874
1875 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1876
1877         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1878         `XCHAR_ID_TABLE'.
1879
1880         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1881         instead of `XCHAR_ID_TABLE'.
1882         (remove_char_ccs): Likewise.
1883
1884         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1885         `XCHAR_ID_TABLE'.
1886         (Fget_composite_char): Likewise.
1887         (Fchar_variants): Likewise.
1888         (put_char_table): Likewise.
1889         (add_char_attribute_alist_mapper): Likewise.
1890         (Fchar_attribute_alist): Likewise.
1891         (Fget_char_attribute): Likewise.
1892         (Fput_char_attribute): Likewise.
1893         (Fmap_char_attribute): Likewise.
1894         (Fmap_char_attribute): Likewise.
1895
1896         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1897         `XCHAR_ID_TABLE'.
1898         (encode_char_1): Likewise.
1899
1900 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1901
1902         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1903         `Lisp_Char_ID_Table'.
1904         (mark_char_id_table): Deleted.
1905         (print_char_id_table): Likewise.
1906         (char_id_table_equal): Likewise.
1907         (char_id_table_hash): Likewise.
1908         (char_id_table_description): Likewise.
1909         (char_id_table): Likewise.
1910         (make_char_id_table): Use `Fmake_char_table' and
1911         `fill_char_table'.
1912         (get_char_id_table): Use `Lisp_Char_Table' instead of
1913         `Lisp_Char_ID_Table'.
1914         (put_char_id_table): Likewise.
1915         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1916         `XCHAR_ID_TABLE'.
1917         (Fremove_char_attribute): Likewise.
1918         (syms_of_chartab): Don't define type `char-id-table'.
1919
1920         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1921         (char_id_table): Likewise.
1922         (GC_CHAR_ID_TABLE_P): Likewise.
1923         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1924         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1925         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1926         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1927         (get_char_id_table): Use `Lisp_Char_Table' instead of
1928         `Lisp_Char_ID_Table'.
1929         (put_char_id_table_0): Likewise.
1930         (put_char_id_table): Likewise.
1931
1932 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1933
1934         * chartab.h: Lisp_Byte_Table related codes are moved from
1935         chartab.h.
1936
1937         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1938
1939 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1940
1941         * chartab.h: Don't include "chartab.h".
1942         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1943         (Lisp_Char_ID_Table): Likewise.
1944         (char_id_table): Likewise.
1945         (XCHAR_ID_TABLE): Likewise.
1946         (XSETCHAR_ID_TABLE): Likewise.
1947         (CHAR_ID_TABLE_P): Likewise.
1948         (GC_CHAR_ID_TABLE_P): Likewise.
1949         (get_char_id_table): Likewise.
1950
1951         * char-ucs.h: Include "chartab.h".
1952         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1953         (Lisp_Char_ID_Table): Likewise.
1954         (char_id_table): Likewise.
1955         (XCHAR_ID_TABLE): Likewise.
1956         (XSETCHAR_ID_TABLE): Likewise.
1957         (CHAR_ID_TABLE_P): Likewise.
1958         (GC_CHAR_ID_TABLE_P): Likewise.
1959         (get_char_id_table): Likewise.
1960
1961 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1962
1963         * chartab.c (copy_uint8_byte_table): New function.
1964         (copy_uint16_byte_table): New function.
1965         (copy_byte_table): New function.
1966         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1967         characters to call.
1968         (map_over_uint16_byte_table): Likewise.
1969         (map_over_byte_table): Likewise.
1970         (get_byte_table): Move prototype to chartab.h.
1971         (put_byte_table): Likewise.
1972         (put_char_id_table_0): Moved to chartab.h.
1973         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1974         (char_table_entry_equal): Likewise.
1975         (char_table_entry_hash): Likewise.
1976         (char_table_entry_description): Likewise.
1977         (char_table_entry): Likewise.
1978         (make_char_table_entry): Likewise.
1979         (copy_char_table_entry): Likewise.
1980         (get_non_ascii_char_table_value): Likewise.
1981         (map_over_charset_ascii): Likewise.
1982         (map_over_charset_control_1): Likewise.
1983         (map_over_charset_row): Likewise.
1984         (map_over_other_charset): Likewise.
1985         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1986         (print_char_table): Likewise.
1987         (char_table_equal): Likewise.
1988         (char_table_hash): Likewise.
1989         (char_table_description): Likewise.
1990         (fill_char_table): Likewise.
1991         (Fcopy_char_table): Likewise.
1992         (get_char_table): Likewise.
1993         (Fget_range_char_table): Likewise.
1994         (put_char_table): Likewise.
1995         (map_char_table): Likewise.
1996         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1997         UTF-2000.
1998
1999 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2000
2001         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2002         `Vauto_fill_chars' in XEmacs UTF-2000.
2003
2004         * chartab.h (get_byte_table): New prototype [moved from
2005         chartab.c].
2006         (put_byte_table): Likewise [moved from chartab.c].
2007         (put_char_id_table_0): New inline function [moved from chartab.c].
2008         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2009         (Lisp_Char_Table_Entry): Likewise.
2010         (char_table_entry): Likewise.
2011         (XCHAR_TABLE_ENTRY): Likewise.
2012         (XSETCHAR_TABLE_ENTRY): Likewise.
2013         (CHAR_TABLE_ENTRYP): Likewise.
2014         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2015         (NUM_ASCII_CHARS): Likewise.
2016         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2017         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2018
2019 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2020
2021         * chartab.c (get_char_id_table): Change interface.
2022         (put_char_id_table_0): New function.
2023         (put_char_id_table): Change interface; new implementation.
2024         (Fget_composite_char): Modify for interface change of
2025         `get_char_id_table'.
2026         (Fchar_variants): Likewise.
2027         (add_char_attribute_alist_mapper): Likewise.
2028         (Fchar_attribute_alist): Likewise.
2029         (Fget_char_attribute): Likewise.
2030         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2031         as same as character as the first argument like `put-char-table';
2032         modify for interface change of `put_char_id_table'.
2033         (Fremove_char_attribute): Modify for interface change of
2034         `put_char_id_table'.
2035
2036 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2037
2038         * text-coding.c: Sync up with XEmacs 21.2.41.
2039         (COMPOSE_ADD_CHAR): Modify for interface change of
2040         `get_char_id_table'.
2041
2042         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2043         change of `put_char_id_table'.
2044         (remove_char_ccs): Likewise.
2045
2046         * chartab.h (put_char_id_table): Change interface.
2047
2048         * char-ucs.h (get_char_id_table): Change interface.
2049         (charset_code_point): Modify for interface change of
2050         `get_char_id_table'.
2051         (encode_char_1): Likewise.
2052
2053 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2054
2055         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2056         argument `ccs'.
2057         (map_over_uint16_byte_table): Likewise.
2058         (map_over_byte_table): Likewise.
2059         (map_char_id_table): Add new argument `range' like
2060         `map_char_table'.
2061         (Fmap_char_attribute): Add new argument `range' like
2062         `Fmap_char_table'.
2063
2064 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2065
2066         * chartab.c (map_over_uint8_byte_table): Change interface of
2067         mapping function to use struct chartab_range instead of Emchar.
2068         (map_over_uint16_byte_table): Likewise.
2069         (map_over_byte_table): Likewise.
2070         (map_char_id_table): Likewise.
2071         (struct slow_map_char_id_table_arg): Deleted.
2072         (slow_map_char_id_table_fun): Deleted.
2073         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2074         function `slow_map_char_table_fun' instead of struct
2075         `slow_map_char_id_table_arg' and function
2076         `slow_map_char_id_table_fun'.
2077
2078 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2079
2080         * mule-charset.c: Move char-it-table related codes to chartab.c.
2081         (Vutf_2000_version): Moved to chartab.c.
2082         (Fdefine_char): Likewise.
2083         (Ffind_char): Likewise.
2084         (syms_of_mule_charset): Move types `uint8-byte-table',
2085         `uint16-byte-table', `byte-table' and `char-id-table' to
2086         chartab.c; move functions `char_attribute_list,
2087         `find_char_attribute_table, `char_attribute_alist,
2088         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2089         `map_char_attribute, `define_char, `find_char, `char_variants and
2090         `get_composite_char to chartab.c; move symbols `=>ucs',
2091         `->decomposition', `compat', `isolated', `initial', `medial',
2092         `final', `vertical', `noBreak', `fraction', `super', `sub',
2093         `circle', `square', `wide', `narrow', `small' and `font' to
2094         chartab.c.
2095         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2096         setting codes for `Vcharacter_composition_table' and
2097         `Vcharacter_variant_table' to chartab.c.
2098         (complex_vars_of_mule_charset): Move setting code for
2099         `Vchar_attribute_hash_table' to chartab.c.
2100
2101         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2102         (make_char_id_table): New prototype.
2103         (put_char_id_table): Likewise.
2104         (Fget_char_attribute): Likewise.
2105
2106         * chartab.c: Move char-id-table related code from mule-charset.c.
2107         (Vutf_2000_version): Moved from mule-charset.c.
2108
2109         * char-ucs.h (Qucs): New external variable.
2110         (put_char_ccs_code_point): New prototype.
2111         (remove_char_ccs): Likewise.
2112
2113 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2114
2115         * mule-charset.c (Vcharset_ucs_jis): New variable.
2116         (Qucs_jis): Likewise.
2117         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2118         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2119
2120         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2121
2122 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2123
2124         * mule-charset.c (map_over_uint8_byte_table): New function.
2125         (map_over_uint16_byte_table): Likewise.
2126         (map_over_byte_table): Likewise.
2127         (map_char_id_table): Likewise.
2128         (slow_map_char_id_table_fun): Likewise.
2129         (Fmap_char_attribute): Likewise.
2130         (syms_of_mule_charset): Add new function `map-char-attribute'.
2131
2132 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2133
2134         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2135         (syms_of_mule_charset): Add new function `find-char'.
2136
2137 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2138
2139         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2140         XEmacs UTF-2000.
2141         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2142         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2143         XEmacs UTF-2000.
2144         (complex_vars_of_mule_charset): Add new coded-charset
2145         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2146         `ideograph-gt-pj-*'.
2147
2148         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2149
2150 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2151
2152         * mule-charset.c (encode_builtin_char_1): Purge codes about
2153         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2154         {MIN|MAX}_CHAR_HEBREW.
2155         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2156         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2157
2158         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2159         (MAX_CHAR_GREEK): Purged.
2160         (MIN_CHAR_CYRILLIC): Purged.
2161         (MAX_CHAR_CYRILLIC): Purged.
2162         (MIN_CHAR_HEBREW): Commented out.
2163         (MAX_CHAR_HEBREW): Likewise.
2164
2165 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2166
2167         * mule-charset.c (Qto_ucs): New variable.
2168         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2169         (Fdefine_char): Likewise.
2170         (syms_of_mule_charset): Add new symbol `=>ucs'.
2171
2172 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2173
2174         * mule-charset.c (Fdecode_char): Fixed.
2175
2176 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2177
2178         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2179         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2180         "tcvn5712-1".
2181
2182 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2183
2184         * mule-charset.c (Vcharset_ucs_big5): New variable.
2185         (Qucs_big5): Likewise.
2186         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2187         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2188
2189         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2190
2191 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2192
2193         * mule-charset.c (decode_builtin_char): Check Big5 code range
2194         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2195
2196 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197
2198         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2199         (Qchinese_gb12345): Likewise.
2200         (Fdecode_builtin_char): Fixed.
2201         (syms_of_mule_charset): Add `chinese-gb12345'.
2202         (complex_vars_of_mule_charset): Add coded-charset
2203         `chinese-gb12345'.
2204
2205         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2206         (LEADING_BYTE_CHINESE_GB12345): New macro.
2207
2208 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2209
2210         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2211         and `latin-viscii-upper' for `latin-viscii'.
2212
2213 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2214
2215         * mule-charset.c (Fdecode_builtin_char): Comment out
2216         regularization code for ISO-IR GR representation.
2217
2218 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2219
2220         * mule-charset.c (decode_builtin_char): New function; renamed from
2221         `make_builtin_char'; return -1 instead of signal.
2222         (Fdecode_builtin_char): Use `decode_builtin_char'.
2223
2224         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2225         `make_builtin_char'.
2226         (DECODE_CHAR): Use `decode_builtin_char' instead of
2227         `make_builtin_char'; use mapping table of `chinese-big5' for
2228         `chinese-big5-{1,2}'.
2229
2230 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2231
2232         * text-coding.c (char_encode_big5): New function.
2233         (char_finish_big5): Likewise.
2234         (reset_encoding_stream): Use `char_encode_big5' and
2235         `char_finish_big5' for CODESYS_BIG5.
2236         (mule_encode): Don't use `encode_coding_big5'.
2237         (encode_coding_big5): Deleted.
2238
2239 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2240
2241         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2242         0x81- in XEmacs UTF-2000.
2243         (detect_coding_big5): Likewise.
2244
2245 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246
2247         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2248         generate character-id if the CCS property does not have
2249         corresponding predefined character.
2250         (make_builtin_char): Return -1 if corresponding predefined
2251         character is not found.
2252         (Fdecode_char): Return nil if corresponding character is not
2253         found.
2254         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2255         don't map to builtin ucs space.
2256
2257 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2258
2259         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2260         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2261
2262 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2263
2264         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2265         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2266         (Qideograph_gt): Likewise.
2267         (Qideograph_gt_pj_{1..11}): Likewise.
2268         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2269         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2270         `ideograph-gt-pj-11'.
2271         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2272         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2273         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2274
2275         * char-ucs.h (LEADING_BYTE_GT): New macro.
2276         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2277         (MIN_CHAR_GT): Likewise.
2278         (MAX_CHAR_GT): Likewise.
2279
2280 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2281
2282         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2283         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2284
2285         * doprnt.c (unsigned_int_converters): Add `c'.
2286         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2287
2288         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2289         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2290         `MIN_CHAR_MOJIKYO'.
2291         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2292         (MAX_CHAR_MOJIKYO_0): New macro.
2293         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2294
2295 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2296
2297         * mule-charset.c (Fdefine_char): Delete cemented out code.
2298         (encode_builtin_char_1): Modify for new allocation of builtin
2299         Mojikyo characters.
2300
2301         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2302
2303 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2304
2305         * mule-charset.c (Vcharset_ucs_cns): New variable.
2306         (Qucs_cns): New variable.
2307         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2308         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2309
2310 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2311
2312         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2313
2314 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2315
2316         * search.c (search_buffer): Make `charset_base_code' as
2317         character-id >> 6 to eliminate the corresponding last byte in
2318         UTF-8 representation [I'm not sure it is right thing].
2319         (boyer_moore): Likewise.
2320
2321 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2322
2323         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2324         representation in MULE.
2325
2326 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2327
2328         * text-coding.c (Fmake_coding_system): Use
2329         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2330         `EXTERNAL_PROPERTY_LIST_LOOP'.
2331
2332 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333
2334         * text-coding.c (decode_output_utf8_partial_char): New function.
2335         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2336
2337 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2338
2339         * text-coding.c (decode_coding_utf8): Output original byte
2340         sequence if it is broken; change order of conditions.
2341
2342         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2343         of conditions.
2344
2345         * mb-multibyte.h (BYTE_ASCII_P):
2346         Use bit ops for char-signedness safety.
2347         (BYTE_C0_P): Use bit ops for char-signedness safety.
2348         (BYTE_C1_P): Use bit ops for char-signedness safety.
2349
2350         * character.h: (XCHAR_OR_CHAR_INT):
2351         Always use inline function.
2352         Remove redundant type checking assert() - XINT will abort quite
2353         nicely.
2354
2355 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2356
2357         * text-coding.c: (Fencode_shift_jis_char):
2358         (Fencode_big5_char):
2359         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2360         Replace 0 with '\0' when working with bytes.
2361         Replace initial "(" with "\(" in docstrings.
2362
2363         (Fmake_coding_system):
2364         When type is ccl and value is vector, register it with a proper
2365         symbol.  And checks whether the given ccl program is valid.
2366         (mule_decode): When calling ccl_driver, if src indicates
2367         NULL pointer, set an empty string instead.
2368         (mule_encode): Likewise.
2369
2370         (detect_eol_type):
2371         (detect_coding_sjis):
2372         (decode_coding_sjis):
2373         (detect_coding_big5):
2374         (decode_coding_big5):
2375         (detect_coding_ucs4):
2376         (decode_coding_ucs4):
2377         (detect_coding_utf8):
2378         (decode_coding_utf8):
2379         (detect_coding_iso2022):
2380         (decode_coding_iso2022):
2381         (decode_coding_no_conversion):
2382         (mule_decode):
2383         Make all detecting and decoding functions take an Extbyte * arg.
2384         (text_encode_generic):
2385         (encode_coding_big5):
2386         (encode_coding_no_conversion):
2387         (mule_encode):
2388         Make all encoding functions take a Bufbyte * arg.
2389         Use size_t instead of unsigned int for memory sizes.
2390         Only cast to unsigned char whenever dereferencing Extbyte *.
2391
2392         (struct lrecord_description fcd_description_1): Use countof.
2393         (complex_vars_of_file_coding):
2394         Use countof instead of sizeof.
2395         Use CHECK_NATNUM instead of CHECK_INT.
2396
2397 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2398
2399         * mule-charset.c (Fget_char_attribute): Add new optional argument
2400         `default-value'.
2401         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2402         (remove_char_ccs): Likewise.
2403
2404 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2405
2406         * text-coding.c (char_encode_shift_jis): New implementation in
2407         UTF-2000.
2408         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2409         ...)'.
2410
2411         * mule-charset.c (Vcharset_chinese_big5): New variable in
2412         UTF-2000.
2413         (Qchinese_big5): New variable in UTF-2000.
2414         (BIG5_SAME_ROW): New macro in UTF-2000.
2415         (make_builtin_char): Use builtin characters of
2416         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2417         characters of `Vcharset_chinese_big5'.
2418         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2419         (complex_vars_of_mule_charset): Add new coded-charset
2420         `chinese-big5' in UTF-2000.
2421
2422         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2423         (Vcharset_chinese_big5): New external variable declaration.
2424         (Vcharset_japanese_jisx0208_1990): Likewise.
2425
2426 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2427
2428         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2429         function.
2430         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2431
2432 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2433
2434         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2435         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2436         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2437         `mojikyo-pj-*'.
2438
2439 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2440
2441         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2442
2443 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2444
2445         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2446         to 0.17.
2447
2448 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2449
2450         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2451         for `CHARSET_BY_ATTRIBUTES'.
2452         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2453         `CHARSET_BY_ATTRIBUTES'.
2454
2455         * text-coding.c (struct decoding_stream): Rename member `CH' to
2456         `CPOS'.
2457         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2458         (decode_coding_sjis): Likewise.
2459         (decode_coding_big5): Likewise.
2460         (decode_coding_ucs4): Likewise.
2461         (decode_coding_utf8): Likewise.
2462         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2463         `CHARSET_BY_ATTRIBUTES'.
2464         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2465         `str->counter'; decode 3, 4 bytes sets.
2466         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2467         sets.
2468         (decode_coding_no_conversion): Use `str->cpos' instead of
2469         `str->ch'.
2470
2471         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2472         (Qmojikyo_2022_1): New variable.
2473         (make_charset): Don't use `CHARSET_TYPE_*'.
2474         (range_charset_code_point): Support coded-charset
2475         `mojikyo-2022-1'.
2476         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2477         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2478         `CHARSET_BY_ATTRIBUTES'.
2479         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2480         `CHARSET_BY_ATTRIBUTES'.
2481         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2482         (complex_vars_of_mule_charset): Add new coded-charset
2483         `mojikyo-2022-1'.
2484
2485         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2486         interface; changed to inline function.
2487
2488         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2489         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2490         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2491         (CHARSET_TYPE_94): Deleted.
2492         (CHARSET_TYPE_94X94): Deleted.
2493         (CHARSET_TYPE_96): Deleted.
2494         (CHARSET_TYPE_96X96): Deleted.
2495         (CHARSET_TYPE_128): Deleted.
2496         (CHARSET_TYPE_128X128): Deleted.
2497         (CHARSET_TYPE_256): Deleted.
2498         (CHARSET_TYPE_256X256): Deleted.
2499         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2500         to inline function.
2501         (DECODE_MOJIKYO_2022): New inline function.
2502         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2503         `Vcharset_mojikyo_2022_1'.
2504
2505 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2506
2507         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2508         instead of `EQ'.
2509         (put_byte_table): Likewise.
2510         (char_id_table_equal): Use `get_byte_table' [new implementation].
2511
2512 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2513
2514         * mule-charset.c: Include <limits.h> in UTF-2000.
2515         (BT_UINT8_MIN): New macro in UTF-2000.
2516         (BT_UINT8_MAX): New macro in UTF-2000.
2517         (BT_UINT8_t): New macro in UTF-2000.
2518         (BT_UINT8_nil): New macro in UTF-2000.
2519         (BT_UINT8_unbound): New macro in UTF-2000.
2520         (INT_UINT8_P): New inline function in UTF-2000.
2521         (UINT8_VALUE_P): New inline function in UTF-2000.
2522         (UINT8_ENCODE): New inline function in UTF-2000.
2523         (UINT8_DECODE): New inline function in UTF-2000.
2524         (mark_uint8_byte_table): New function in UTF-2000.
2525         (print_uint8_byte_table): New function in UTF-2000.
2526         (uint8_byte_table_equal): New function in UTF-2000.
2527         (uint8_byte_table_hash): New function in UTF-2000.
2528         (make_uint8_byte_table): New function in UTF-2000.
2529         (uint8_byte_table_same_value_p): New function in UTF-2000.
2530         (BT_UINT16_MIN): New macro in UTF-2000.
2531         (BT_UINT16_MAX): New macro in UTF-2000.
2532         (BT_UINT16_t): New macro in UTF-2000.
2533         (BT_UINT16_nil): New macro in UTF-2000.
2534         (BT_UINT16_unbound): New macro in UTF-2000.
2535         (INT_UINT16_P): New inline function in UTF-2000.
2536         (UINT16_VALUE_P): New inline function in UTF-2000.
2537         (UINT16_ENCODE): New inline function in UTF-2000.
2538         (UINT16_DECODE): New inline function in UTF-2000.
2539         (UINT8_TO_UINT16): New inline function in UTF-2000.
2540         (mark_uint16_byte_table): New function in UTF-2000.
2541         (print_uint16_byte_table): New function in UTF-2000.
2542         (uint16_byte_table_equal): New function in UTF-2000.
2543         (uint16_byte_table_hash): New function in UTF-2000.
2544         (make_uint16_byte_table): New function in UTF-2000.
2545         (uint16_byte_table_same_value_p): New function in UTF-2000.
2546         (print_byte_table): New function in UTF-2000.
2547         (byte-table): Use `print_byte_table' as printer.
2548         (make_byte_table): Delete second argument `older'.
2549         (byte_table_same_value_p): New function in UTF-2000.
2550         (copy_byte_table): Deleted.
2551         (get_byte_table): New function in UTF-2000.
2552         (put_byte_table): New function in UTF-2000.
2553         (print_char_id_table): New function in UTF-2000.
2554         (char-id-table): Use `print_char_id_table' as printer.
2555         (make_char_id_table): Delete second argument `older'.
2556         (get_char_id_table): Use `get_byte_table [new implementation].
2557         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2558         implementation].
2559         (Ffind_char_attribute_table): New function in UTF-2000.
2560         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2561         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2562         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2563         (syms_of_mule_charset): Add new function
2564         `find-char-attribute-table' in UTF-2000.
2565
2566         * lrecord.h (enum lrecord_type): Add
2567         `lrecord_type_uint16_byte_table' and
2568         `lrecord_type_uint8_byte_table'.
2569
2570         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2571         (Lisp_Uint8_Byte_Table): New type.
2572         (XUINT8_BYTE_TABLE): New macro.
2573         (XSETUINT8_BYTE_TABLE): New macro.
2574         (UINT8_BYTE_TABLE_P): New macro.
2575         (GC_UINT8_BYTE_TABLE_P): New macro.
2576         (struct Lisp_Uint16_Byte_Table): New structure.
2577         (Lisp_Uint16_Byte_Table): New type.
2578         (XUINT16_BYTE_TABLE): New macro.
2579         (XSETUINT16_BYTE_TABLE): New macro.
2580         (UINT16_BYTE_TABLE_P): New macro.
2581         (GC_UINT16_BYTE_TABLE_P): New macro.
2582
2583 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2584
2585         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2586         (Vcharacter_ideographic_strokes_table): Deleted.
2587         (Vcharacter_total_strokes_table): Deleted.
2588         (Vcharacter_morohashi_daikanwa_table): Deleted.
2589         (Vcharacter_decomposition_table): Deleted.
2590         (Qname): Deleted because it is duplicated.
2591         (Qideographic_radical): Deleted.
2592         (Qideographic_strokes): Deleted.
2593         (Qtotal_strokes): Deleted.
2594         (Qmorohashi_daikanwa): Deleted.
2595         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2596         `ideographic-radical', `ideographic-strokes', `total-strokes',
2597         `morohashi-daikanwa' and `->decomposition'.
2598         (Fget_char_attribute): Likewise.
2599         (Fput_char_attribute): Likewise; use `make-vector' instead of
2600         `make_older_vector' for `->decomposition' value.
2601         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2602         `ideograph-daikanwa'.
2603         (syms_of_mule_charset): Delete builtin symbols `name',
2604         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2605         `morohashi-daikanwa'.
2606         (vars_of_mule_charset): Don't setup
2607         `Vcharacter_ideographic_radical_table',
2608         `Vcharacter_ideographic_strokes_table',
2609         `Vcharacter_total_strokes_table',
2610         `Vcharacter_morohashi_daikanwa_table' and
2611         `Vcharacter_decomposition_table'.
2612
2613 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2614
2615         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2616         `make_older_vector', `make_vector_newer_1' and
2617         `make_vector_newer'.
2618
2619         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2620         `make_older_vector' and `make_vector_newer'.
2621
2622         * config.h.in (HAVE_GGC): New macro.
2623
2624 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2625
2626         * mule-charset.c (struct char_attribute_list_closure): New
2627         structure in UTF-2000.
2628         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2629         (Fchar_attribute_list): Likewise.
2630         (Fset_charset_mapping_table): Use `make_vector_newer'.
2631         (Fdecode_builtin_char): New function in UTF-2000.
2632         (syms_of_mule_charset): Add new function `char-attribute-list' and
2633         `decode-builtin-char' in UTF-2000.
2634
2635         * lisp.h (make_vector_newer): New prototype.
2636
2637         * alloc.c (make_vector_newer_1): New function.
2638         (make_vector_newer): New function.
2639
2640 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2641
2642         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2643         50100)'.
2644
2645 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2646
2647         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2648         (Vcharacter_attribute_table): Deleted.
2649         (Vcharacter_name_table): Deleted.
2650         (put_char_attribute): Deleted.
2651         (remove_char_attribute): Deleted.
2652         (struct char_attribute_alist_closure): New structure.
2653         (add_char_attribute_alist_mapper): New function.
2654         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2655         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2656         (Fget_char_attribute): Likewise.
2657         (Fput_char_attribute): Likewise.
2658         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2659         of `remove_char_attribute'.
2660         (Fdefine_char): Return character.
2661         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2662         and `Vcharacter_name_table'.
2663         (complex_vars_of_mule_charset): Likewise
2664         `Vchar_attribute_hash_table'.
2665
2666 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2667
2668         * character.h (CHARC_CHARSET): New macro.
2669         (CHARC_CHARSET_ID): New macro.
2670         (CHARC_CODE_POINT): New macro.
2671         (CHARC_COLUMNS): New macro.
2672         (CHARC_TO_CHAR): New inline function.
2673         (CHARC_EQ): New inline function.
2674         (CHARC_ASCII_EQ): New inline function.
2675         (CHARC_IS_SPACE): New inline function.
2676         (ASCII_TO_CHARC): New inline function.
2677
2678         * char-ucs.h (encode_char_2): Deleted.
2679         (ENCODE_CHAR): Use `encode_char_1' again.
2680         (breakup_char_1): Likewise.
2681         (CHAR_TO_CHARC): New inline function.
2682
2683         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2684
2685 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2686
2687         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2688         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2689         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2690         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2691         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2692         `CHARC_IS_SPACE'.
2693         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2694
2695         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2696         `CHARC_CODE_POINT'.
2697         (x_output_display_block): Use `CHARC_CHARSET' and
2698         `CHARC_ASCII_EQ'.
2699
2700         * redisplay-tty.c (tty_output_display_block): Use
2701         `CHARC_ASCII_EQ'.
2702         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2703
2704         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2705
2706         * insdel.c (find_charsets_in_charc_string): Use
2707         `CHARC_CHARSET_ID'.
2708         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2709         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2710         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2711         (convert_charc_string_into_malloced_string): Likewise.
2712
2713 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2714
2715         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2716         instead of <Emchar_dynarr *> for buf; use
2717         `convert_bufbyte_string_into_charc_dynarr' instead of
2718         `convert_bufbyte_string_into_emchar_dynarr'; use
2719         `find_charsets_in_charc_string' instead of
2720         `find_charsets_in_emchar_string'.
2721
2722         * redisplay.h:
2723         - Include "character.h".
2724         (struct rune): New member `cglyph'; delete member `chr'.
2725
2726         * redisplay.c (redisplay_text_width_charc_string): New function;
2727         delete `redisplay_text_width_emchar_string'.
2728         (rtw_charc_dynarr): New variable; renamed from
2729         `rtw_emchar_dynarr'.
2730         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2731         `rtw_emchar_dynarr'; use
2732         `convert_bufbyte_string_into_charc_dynarr' instead of
2733         `convert_bufbyte_string_into_emchar_dynarr'; use
2734         `redisplay_text_width_charc_string' instead of
2735         `redisplay_text_width_emchar_string'.
2736         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2737         instead of `rtw_emchar_dynarr'; use
2738         `convert_bufbyte_string_into_charc_dynarr' instead of
2739         `convert_bufbyte_string_into_emchar_dynarr'.
2740         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2741         `redisplay_text_width_charc_string' instead of
2742         `redisplay_text_width_emchar_string'.
2743         (create_text_block): Modify for <struct rune> change.
2744         (generate_formatted_string_db): Likewise.
2745         (create_string_text_block): Likewise.
2746         (pixel_to_glyph_translation): Likewise.
2747
2748         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2749         instead of <const Emchar *>.
2750         (x_text_width): Likewise.
2751         (x_output_display_block): Use <Charc_dynarr *> instead
2752         <Emchar_dynarr *>; modify for <structure rune> change.
2753         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2754         *>.
2755
2756         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2757         <const Emchar *>; use `charc_string_displayed_columns' instead of
2758         `emchar_string_displayed_columns'.
2759         (tty_output_display_block): Use <Charc_dynarr *> instead of
2760         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2761         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2762         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2763         `tty_output_emchar_dynarr_dynarr'.
2764         (tty_output_charc_dynarr): New function; delete
2765         `tty_output_charc_dynarr'.
2766
2767         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2768         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2769         <Emchar_dynarr *> for buf; use
2770         `convert_bufbyte_string_into_charc_dynarr' instead of
2771         `convert_bufbyte_string_into_emchar_dynarr'.
2772
2773         * frame.c (title_string_charc_dynarr): New variable; renamed from
2774         `title_string_emchar_dynarr'.
2775         (generate_title_string): Use `title_string_charc_dynarr' instead
2776         of `title_string_emchar_dynarr'; use
2777         `convert_charc_string_into_malloced_string' instead of
2778         `convert_emchar_string_into_malloced_string'.
2779         (init_frame): Use `title_string_charc_dynarr' instead of
2780         `title_string_emchar_dynarr'.
2781
2782         * console.h:
2783         - Include "character.h".
2784         (struct console_methods): Use <const Charc *> instead of <const
2785         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2786         <Emchar_dynarr *> in output_string_method.
2787
2788         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2789         <Emchar_dynarr *>.
2790
2791         * console-stream.c (stream_text_width): Use <const Charc *>
2792         instead of <const Emchar *>.
2793
2794         * character.h (Charc_dynarr): New type.
2795
2796         * char-ucs.h (structure Charc): New structure; define new type
2797         `Charc'.
2798
2799         * char-lb.h (DECODE_CHAR): New inline function.
2800         (encode_char_1): New inline function.
2801         (ENCODE_CHAR): New macro.
2802         (structure Charc): New structure; define new type `Charc'.
2803
2804         * char-1byte.h (Vcharset_control_1): New macro.
2805         (Vcharset_latin_iso8859_1): New macro.
2806         (DECODE_CHAR): New inline function.
2807         (encode_char_1): New inline function.
2808         (ENCODE_CHAR): New macro.
2809         (structure Charc): New structure; define new type `Charc'.
2810
2811         * insdel.c (find_charsets_in_charc_string): New function; delete
2812         `find_charsets_in_emchar_string'.
2813         (charc_string_displayed_columns): New function; delete
2814         `emchar_string_displayed_columns'.
2815         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2816         `convert_bufbyte_string_into_emchar_dynarr'.
2817         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2818         `convert_charc_string_into_bufbyte_dynarr'.
2819         (convert_charc_string_into_malloced_string): New function; delete
2820         `convert_charc_string_into_malloced_string'.
2821
2822         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2823         `find_charsets_in_emchar_string'.
2824         (charc_string_displayed_columns): New prototype; delete
2825         `emchar_string_displayed_columns'.
2826         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2827         `convert_charc_string_into_bufbyte_dynarr'.
2828         (convert_charc_string_into_malloced_string): New prototype; delete
2829         `convert_charc_string_into_malloced_string'.
2830
2831 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2832
2833         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2834
2835 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2836
2837         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2838
2839         * char-ucs.h: Use <short> for <Charset_ID>.
2840
2841         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2842         <Charset_ID>.
2843
2844 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2845
2846         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2847         to 0.16.
2848
2849 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2850
2851         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2852         variable.
2853         (Qmorohashi_daikanwa): New variable.
2854         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2855         for `morohashi-daikanwa' attribute.
2856         (Fget_char_attribute): Likewise.
2857         (Fput_char_attribute): Likewise.
2858         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2859         has the same value of `ideograph-daikanwa'.
2860         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2861         (vars_of_mule_charset): Setup
2862         `Vcharacter_morohashi_daikanwa_table'.
2863
2864 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2865
2866         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2867         attributes.
2868         (add_charset_to_list_mapper): Add `key' instead of
2869         `XCHARSET_NAME (value)' to return aliases.
2870
2871 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2872
2873         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2874         variable.
2875         (Vcharacter_ideographic_strokes_table): New variable.
2876         (Qideographic_radical): New variable.
2877         (Qideographic_strokes): New variable.
2878         (Fchar_attribute_alist): Use
2879         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2880         attribute; use `Vcharacter_ideographic_strokes_table' for
2881         `ideographic-strokes' attribute.
2882         (Fget_char_attribute): Likewise.
2883         (Fput_char_attribute): Likewise.
2884         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2885         `ideographic-strokes'.
2886         (vars_of_mule_charset): Setup
2887         `Vcharacter_ideographic_radical_table' and
2888         `Vcharacter_ideographic_strokes_table'.
2889
2890 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2891
2892         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2893         (Qtotal_strokes): New variable.
2894         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2895         `total-strokes' attribute.
2896         (Fget_char_attribute): Likewise.
2897         (Fput_char_attribute): Likewise.
2898         (syms_of_mule_charset): Add new symbol `total-strokes'.
2899         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2900
2901 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2902
2903         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2904         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2905         are found.
2906         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2907         `->decomposition' attribute.
2908         (Fput_char_attribute): Likewise.
2909         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2910
2911 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2912
2913         * mule-charset.c (decoding_table_check_elements): New function.
2914         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2915
2916 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2917
2918         * mule-charset.c (Fset_charset_mapping_table): Use
2919         `put_char_ccs_code_point'.
2920
2921 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2922
2923         * mule-charset.c (decoding_table_put_char): New inline function.
2924         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2925
2926 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2927
2928         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2929         (XCHARSET_BYTE_SIZE): New macro.
2930         (decoding_table_remove_char): New inline function.
2931         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2932         `decoding_table_remove_char'.
2933         (remove_char_ccs): Use `decoding_table_remove_char'.
2934         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2935
2936 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2937
2938         * mule-charset.c (Vcharacter_name_table): New variable.
2939         (Qname): New variable.
2940         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2941         attribute.
2942         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2943         `Vcharacter_name_table' for `name' attribute.
2944         (Fremove_char_attribute): Use function `remove_char_ccs'.
2945         (put_char_ccs_code_point): New function.
2946         (remove_char_ccs): New function.
2947         (syms_of_mule_charset): Add new symbol `name'.
2948         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2949
2950 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2951
2952         * mule-charset.c (make_byte_table): Add new argument `older'.
2953         (make_char_id_table): Likewise.
2954         (copy_char_id_table): Comment out because it is not used.
2955         (put_char_id_table): Modify for `make_byte_table'.
2956         (Fput_char_attribute): Make encoding_table as older object;
2957         inherit older bit of `Vcharacter_composition_table'.
2958         (mark_charset): Don't mark `cs->encoding_table'.
2959         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2960         normal object; make `Vcharacter_composition_table' as an older
2961         object; delete staticpro for `Vcharacter_composition_table'; make
2962         `Vcharacter_variant_table' as a normal object.
2963
2964         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2965         (mark_object): Don't check older object in UTF-2000.
2966
2967         * lrecord.h (struct lrecord_header): Add new member `older' in
2968         UTF-2000.
2969         (set_lheader_implementation): Setup `SLI_header->older' in
2970         UTF-2000.
2971         (set_lheader_older_implementation): New macro in UTF-2000.
2972         (OLDER_RECORD_P): New macro in UTF-2000.
2973         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2974         (alloc_older_lcrecord): New prototype in UTF-2000.
2975         (alloc_older_lcrecord_type): New macro in UTF-2000.
2976
2977 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2978
2979         * mule-charset.c (byte_table_description): Use
2980         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2981         (char_id_table_description): Delete bogus `, 1'.
2982         (Fget_char_attribute): Refer encoding_table of each coded-charset
2983         to get value of coded-charset attribute of a character.
2984         (Fput_char_attribute): Use `make_older_vector' instead of
2985         `make_vector'; use encoding_table of each coded-charset to store
2986         value of coded-charset attribute of a character.
2987         (Fremove_char_attribute): Use encoding_table of each coded-charset
2988         to store value of coded-charset attribute of a character.
2989         (mark_charset): Mark `cs->encoding_table'; don't mark
2990         `cs->decoding_table'.
2991         (charset_description): Add description of new member
2992         `encoding_table'.
2993         (make_charset): Initialize `encoding_table'.
2994
2995         * char-ucs.h (struct Lisp_Charset): Add new member
2996         `encoding_table'.
2997         (CHARSET_ENCODING_TABLE): New macro.
2998         (XCHARSET_ENCODING_TABLE): New macro.
2999         (charset_code_point): New implementation.
3000         (encode_char_1): Likewise.
3001
3002         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3003         (disksave_object_finalization_1): Call finalizers of
3004         `all_older_lcrecords' in UTF-2000.
3005         (make_older_vector): New function in UTF-2000.
3006         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3007         UTF-2000.
3008
3009         * lisp.h (make_older_vector): New prototype in UTF-2000.
3010
3011 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3012
3013         * lrecord.h (enum lrecord_type): Rename
3014         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3015
3016         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3017         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3018         `get_char_code_table'.
3019
3020         * mule-charset.c (mark_char_id_table): Renamed from
3021         `mark_char_code_table'.
3022         (char_id_table_equal): Renamed from `char_code_table_equal'.
3023         (char_id_table_hash): Renamed from `char_code_table_hash'.
3024         (make_char_id_table): Renamed from `make_char_code_table'.
3025         (copy_char_id_table): Renamed from `copy_char_code_table'.
3026         (get_char_id_table): Renamed from `get_char_code_table'.
3027         (put_char_id_table): Renamed from `put_char_code_table'.
3028         (to_char_id): Renamed from `to_char_code'.
3029
3030         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3031         `Lisp_Char_Code_Table'.
3032         (char_id_table): Renamed from `char_code_table'.
3033         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3034         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3035         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3036         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3037         (get_char_id_table): Renamed from `get_char_code_table'.
3038
3039 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3040
3041         * lrecord.h (enum lrecord_type): Rename
3042         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3043
3044         * mule-charset.c (mark_byte_table): Renamed from
3045         `mark_char_byte_table'.
3046         (byte_table_equal): Renamed from `char_byte_table_equal'.
3047         (byte_table_hash): Renamed from `byte_table_hash'.
3048         (make_byte_table): Renamed from `make_byte_table'.
3049         (copy_byte_table): Renamed from `copy_char_byte_table'.
3050
3051         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3052         `Lisp_Char_Byte_Table'.
3053         (byte_table): Renamed from `char_byte_table'.
3054         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3055         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3056         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3057         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3058
3059 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3060
3061         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3062         (dfc_convert_to_internal_format): Likewise.
3063         
3064         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3065         * text-coding.c (Fcoding_system_alias_p): New function.
3066         * text-coding.c (Fcoding_system_aliasee): New function.
3067         * text-coding.c (append_suffix_to_symbol): New function.
3068         * text-coding.c (dangling_coding_system_alias_p): New function.
3069         * text-coding.c (Ffind_coding_system):
3070         * text-coding.c (Fcopy_coding_system):
3071         * text-coding.c (encode_coding_no_conversion):
3072         * text-coding.c (syms_of_file_coding):
3073         * text-coding.c (vars_of_file_coding):
3074         Rewrite coding system alias code.
3075         Allow nested aliases, like symbolic links.
3076         Allow redefinition of coding system aliases.
3077         Prevent existence of dangling coding system aliases.
3078         Eliminate convert_to_external_format.
3079         Eliminate convert_to_internal_format.
3080         
3081         * text-coding.c: Change enum eol_type to eol_type_t.
3082
3083 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3084
3085         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3086         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3087
3088         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3089         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3090
3091 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3092
3093         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3094         `ideograph-daikanwa'.
3095
3096         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3097         (Vcharset_ucs_bmp): Likewise.
3098         (Vcharset_mojikyo): Add new extern variable definition.
3099         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3100         (Vcharset_latin_iso8859_3): Likewise.
3101         (Vcharset_latin_iso8859_4): Likewise.
3102         (Vcharset_latin_iso8859_9): Likewise.
3103         (Vcharset_latin_viscii_lower): Likewise.
3104         (Vcharset_latin_viscii_upper): Likewise.
3105         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3106         `mojikyo' code-point is used to decode.
3107         (encode_char_2): New function [to convert `mojikyo' code-point to
3108         Mojikyo font encoding].
3109         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3110         (breakup_char_1): Likewise.
3111         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3112
3113 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3114
3115         * text-coding.c (Fmake_coding_system): Add document about
3116         `disable-composition' property.
3117
3118 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3119
3120         * text-coding.c (Qdisable_composition): New variable; delete
3121         `Qcomposite'.
3122         (Fmake_coding_system): Add new property `disable-composite';
3123         delete property `composite'.
3124         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3125         instead of `!CODING_SYSTEM_COMPOSITE'.
3126         (syms_of_file_coding): Add new symbol `disable-composition';
3127         delete symbol `composite'.
3128
3129         * file-coding.h (struct Lisp_Coding_System): Add
3130         `disable_composition'; delete `enable_composition'.
3131         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3132         `CODING_SYSTEM_COMPOSITE'.
3133         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3134         `XCODING_SYSTEM_COMPOSITE'.
3135
3136 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3137
3138         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3139         to 0.15.
3140
3141 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3142
3143         * text-coding.c (Qcomposite): New variable.
3144         (Fmake_coding_system): Add new property `composite'.
3145         (struct decoding_stream): Add `combined_char_count',
3146         `combined_chars' and `combining_table' in UTF-2000.
3147         (COMPOSE_FLUSH_CHARS): New macro.
3148         (COMPOSE_ADD_CHAR): New macro.
3149         (reset_decoding_stream): Reset `str->combined_char_count' and
3150         `str->combining_table' in UTF-2000.
3151         (decode_coding_iso2022): Modify for character-decomposition.
3152         (syms_of_file_coding): Add new symbol `composite'.
3153
3154 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3155
3156         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3157         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3158         of `Vcharacter_composition_table' if `->decomposition' property
3159         has only 1 element.
3160         (Qlatin_tcvn5712): New variable.
3161         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3162         (complex_vars_of_mule_charset): Add new coded-charset
3163         `latin-tcvn5712'.
3164
3165         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3166
3167 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3168
3169         * file-coding.h (struct Lisp_Coding_System): Add
3170         `enable_composition'.
3171         (CODING_SYSTEM_COMPOSITE): New macro.
3172         (XCODING_SYSTEM_COMPOSITE): New macro.
3173
3174 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3175
3176         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3177
3178 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3179
3180         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3181         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3182
3183 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3184
3185         * mule-charset.c (Vcharset_mojikyo): New variable.
3186         (Fdefine_char): Don't use coded-charset which does not have
3187         non-builtin character range to allocate character-id.
3188         (Qmojikyo): New variable.
3189         (syms_of_mule_charset): Add new symbol `mojikyo'.
3190         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3191
3192         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3193         (LEADING_BYTE_MOJIKYO): New macro.
3194         (MIN_CHAR_MOJIKYO): New macro.
3195         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3196         (MAX_CHAR_MOJIKYO): New macro.
3197
3198 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3199
3200         * mule-charset.c (remove_char_attribute): Fixed.
3201
3202 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3203
3204         * mule-charset.c (remove_char_attribute): New function.
3205         (Fremove_char_attribute): New function.
3206         (encode_builtin_char_1): Comment out builtin-support for
3207         greek-iso8859-7 and cyrillic-iso8859-5.
3208         (Fdecode_char): Check `code' is an integer.
3209         (syms_of_mule_charset): Add `remove-char-attribute'.
3210         (MIN_CHAR_GREEK): Deleted.
3211         (MAX_CHAR_GREEK): Likewise.
3212         (MIN_CHAR_CYRILLIC): Likewise.
3213         (MAX_CHAR_CYRILLIC): Likewise.
3214         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3215         MAX_CHAR_GREEK for `greek-iso8859-7'.
3216
3217         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3218         (MAX_CHAR_GREEK): Likewise.
3219         (MIN_CHAR_CYRILLIC): Likewise.
3220         (MAX_CHAR_CYRILLIC): Likewise.
3221
3222 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3223
3224         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3225         format is used without `ucs' property.
3226         (Fdecode_char): Fix problem with GR representation.
3227         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3228         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3229
3230 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3231
3232         * mule-charset.c (make_builtin_char): New function.
3233         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3234         (Fset_charset_mapping_table): Modify for new representation of
3235         code-point.
3236         (Fdecode_char): New function.
3237         (syms_of_mule_charset): Add new builtin function `decode-char' in
3238         UTF-2000.
3239
3240         * char-ucs.h (make_builtin_char): New prototype.
3241         (DECODE_CHAR): New inline function.
3242         (MAKE_CHAR): Use `DECODE_CHAR'.
3243
3244 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3245
3246         * text-coding.c (parse_charset_conversion_specs): Use
3247         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3248         `XCHARSET_TYPE'.
3249         (iso2022_designate): Likewise.
3250
3251         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3252         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3253
3254         * mule-charset.c (Vcharset_ucs): New variable.
3255         (print_charset): Change design; use `CHARSET_CHARS' and
3256         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3257         (make_charset): Change signature to specify `chars' and
3258         `dimension' instead of `type'.
3259         (range_charset_code_point): Modify for 256^n-set.
3260         (encode_builtin_char_1): Encode as `ucs' in default.
3261         (Fmake_charset): Modify for `make_charset'.
3262         (Fmake_reverse_direction_charset): Likewise.
3263         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3264         UTF-2000.
3265         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3266         for `make_charset'.
3267
3268         * char-ucs.h (Vcharset_ucs): New variable.
3269         (LEADING_BYTE_UCS): New macro.
3270         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3271         and `chars' to `unsigned short' from `unsigned int'.
3272         (CHARSET_TYPE): Deleted.
3273         (XCHARSET_TYPE): Deleted.
3274
3275 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3276
3277         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3278
3279         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3280         (ENCODE_CHAR): New macro.
3281
3282 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3283
3284         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3285         to 0.14 (Kawachi-Katakami).
3286
3287 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3288
3289         * text-coding.c (char_encode_shift_jis): Modify for
3290         `charset_code_point'.
3291         (char_encode_iso2022): Likewise.
3292
3293         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3294         (integer) instead of list of <Lisp_Object>s (integers) as the
3295         format of code-point of a coded-charset.
3296         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3297         (encode_builtin_char_1): New function; delete
3298         `split_builtin_char'.
3299         (charset_code_point): Return <int> instead of <Lisp_Object>.
3300         (Fsplit_char): Don't use `SPLIT_CHAR'.
3301
3302         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3303         prototype for `split_builtin_char'.
3304         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3305         (charset_code_point): Likewise.
3306         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3307         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3308
3309 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3310
3311         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3312         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3313
3314 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3315
3316         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3317
3318         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3319         (MAX_CHAR_OBS_94x94): Deleted.
3320
3321 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3322
3323         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3324
3325         * char-ucs.h (MAX_CHAR_BMP): New macro.
3326
3327 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3328
3329         * text-coding.c: Sync with r21-2-24.
3330
3331 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3332
3333         * file-coding.c: Modify for UTF-2000.
3334
3335 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3336
3337         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3338         to 0.13 (Takaida).
3339
3340 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3341
3342         * mule-charset.c (split_builtin_char): Delete builtin support for
3343         `katakana-jisx0201'.
3344         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3345         BMP area in builtin representation.
3346
3347         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3348         `Vcharset_katakana_jisx0201'.
3349
3350 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3351
3352         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3353         (Qisolated): New variable.
3354         (Qinitial): New variable.
3355         (Qmedial): New variable.
3356         (Qfinal): New variable.
3357         (Qvertical): New variable.
3358         (Qsmall): New variable.
3359         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3360         `Qvertical' and `Qsmall'.
3361         (Qmojikyo_pj_[1 .. 21]): New variable.
3362         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3363         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3364         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3365         .. 21]'.
3366
3367 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3368
3369         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3370         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3371         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3372
3373 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3374
3375         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3376         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3377         BMP.
3378         (Qjapanese_jisx0208_1990): New variable.
3379         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3380         (complex_vars_of_mule_charset): Add new coded-charset
3381         `japanese-jisx0208-1990'.
3382
3383         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3384         (MIN_CHAR_JIS_X0208_1990): New macro.
3385         (MAX_CHAR_JIS_X0208_1990): New macro.
3386
3387 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3388
3389         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3390         coded-charset is not found.
3391
3392 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3393
3394         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3395         (Fdefine_char): Use `Fmake_char'.
3396
3397 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3398
3399         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3400         (Vcharset_hiragana_jisx0208): Deleted.
3401         (Vcharset_katakana_jisx0208): Deleted.
3402         (Qideograph_daikanwa): New variable.
3403         (Qhiragana_jisx0208): Deleted.
3404         (Qkatakana_jisx0208): Deleted.
3405         (split_builtin_char): Split `ideograph-daikanwa'.
3406         (Fsplit_char): New implementation for UTF-2000.
3407         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3408         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3409         (complex_vars_of_mule_charset): Add new coded-charset
3410         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3411         `katakana-jisx0208'.
3412
3413         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3414         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3415         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3416         (MIN_CHAR_DAIKANWA): New macro.
3417         (MAX_CHAR_DAIKANWA): New macro.
3418
3419 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3420
3421         * data.c (Fstring_to_number): Don't recognize floating point if
3422         base is not 10.
3423
3424 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3425
3426         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3427
3428 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3429
3430         * mule-charset.c (Qsquare): New variable.
3431         (to_char_code): Add `Qsquare'.
3432         (syms_of_mule_charset): Add new symbol `square'.
3433
3434 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3435
3436         * mule-charset.c (Qcircle): New variable.
3437         (to_char_code): Add `Qcircle'.
3438         (syms_of_mule_charset): Add new symbol `circle'.
3439
3440 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3441
3442         * mule-charset.c (Qfont): New variable.
3443         (to_char_code): Add `Qfont'.
3444         (syms_of_mule_charset): Add new symbol `font'.
3445
3446 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3447
3448         * mule-charset.c (Qsub): New variable.
3449         (to_char_code): Add `Qsub'.
3450         (syms_of_mule_charset): Add new symbol `sub'.
3451
3452 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3453
3454         * mule-charset.c (Fput_char_attribute): Convert each element of
3455         VALUE to GL position if ATTRIBUTE is a GR-set,
3456
3457 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3458
3459         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3460         coded-charset is a GR-set.
3461
3462 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3463
3464         * mule-charset.c (Fput_char_attribute): Check each element of
3465         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3466
3467 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3468
3469         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3470         UTF-2000.
3471         (Qethiopic_ucs): New variable in UTF-2000.
3472         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3473         (complex_vars_of_mule_charset): Add new coded-charset
3474         `ethiopic-ucs' in UTF-2000.
3475
3476         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3477         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3478         9)'.
3479         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3480         10)'.
3481         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3482
3483 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3484
3485         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3486         `ascii'.
3487
3488 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3489
3490         * mule-charset.c (Vcharacter_variant_table): New variable.
3491         (Q_ucs): New variable.
3492         (Fchar_variants): New function.
3493         (Fput_char_attribute): Register `->ucs' value to
3494         `Vcharacter_variant_table'.
3495         (syms_of_mule_charset): Add new function `char-variants' and new
3496         symbol `->ucs'.
3497         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3498
3499 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3500
3501         * mule-charset.c (get_char_code_table): Allow negative character
3502         code.
3503         (put_char_code_table): Likewise.
3504         (Vcharacter_composition_table): New variable.
3505         (Q_decomposition): New variable.
3506         (Qwide): New variable.
3507         (Qnarrow): New variable.
3508         (Qcompat): New variable.
3509         (QnoBreak): New variable.
3510         (Qsuper): New variable.
3511         (Qfraction): New variable.
3512         (to_char_code): New function.
3513         (Fget_composite_char): New function.
3514         (Fput_char_attribute): Register `->decomposition' value to
3515         `Vcharacter_composition_table'.
3516         (syms_of_mule_charset): Add new function `get-composite-char', new
3517         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3518         `super' and `fraction'.
3519         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3520
3521 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3522
3523         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3524         character; copy the return value.
3525
3526 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3527
3528         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3529
3530         * mule-charset.c (range_charset_code_point): Must use make_int.
3531         (split_builtin_char): New function.
3532
3533 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3534
3535         * mule-charset.c (char_byte_table): Change name from
3536         "char-code-table" to "char-byte-table".
3537         (mark_char_code_table): New function.
3538         (char_code_table_equal): New function.
3539         (char_code_table_hash): New function.
3540         (char_code_table_description): New constant.
3541         (char_code_table): New type.
3542         (make_char_code_table): New function.
3543         (copy_char_code_table): New function.
3544         (get_char_code_table): Modify for `char_code_table' type.
3545         (put_char_code_table): Likewise.
3546         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3547         (Kashiwara).
3548
3549         * char-ucs.h (char_code_table): New type.
3550         (XCHAR_CODE_TABLE): New macro.
3551         (XSETCHAR_CODE_TABLE): New macro.
3552         (CHAR_CODE_TABLE_P): New macro.
3553         (GC_CHAR_CODE_TABLE_P): New macro.
3554         (struct Lisp_Char_Code_Table): New structure.
3555
3556 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3557
3558         * mule-charset.c (Fmake_charset): Setup byte_offset for
3559         {94|96}^n-set.
3560
3561 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3562
3563         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3564         character.
3565
3566 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3567
3568         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3569         is found.
3570
3571 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3572
3573         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3574         charset, it is regarded as a charset.
3575         (put_char_attribute): New function in UTF-2000.
3576         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3577         charset, mapping-table of the charset is modified.
3578         (Fdefine_char): New function in UTF-2000.
3579         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3580         `Fput_char_attribute'.
3581         (syms_of_mule_charset): Add new function `define-char' and new
3582         symbol `ucs' in UTF-2000.
3583         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3584
3585 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3586
3587         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3588         non-UTF-2000 configuration.
3589
3590 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3591
3592         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3593         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3594
3595         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3596         deleted.
3597         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3598         (Fset_charset_mapping_table): Likewise.
3599
3600         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3601         (CHARSET_ENCODING_TABLE): Delete.
3602         (XCHARSET_ENCODING_TABLE): Delete.
3603         (charset_code_point): New interface.
3604
3605 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3606
3607         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3608         instead of `charset_get_byte1' and `charset_get_byte2'.
3609
3610         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3611         (charset_get_byte2): Deleted.
3612
3613 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3614
3615         * char-ucs.h (SPLIT_CHAR): New inline function.
3616         (breakup_char_1): Use `SPLIT_CHAR'.
3617
3618         * mule-charset.c (range_charset_code_point): New function.
3619         (charset_code_point): New function.
3620
3621         * char-ucs.h (range_charset_code_point): New interface.
3622         (breakup_char_1): Use `range_charset_code_point'.
3623
3624 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3625
3626         * mule-charset.c (Fmake_charset): Delete unused local variable
3627         `code_offset'.
3628
3629         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3630         (breakup_char_1): Find a charset and code-point in
3631         `Vcharacter_attribute_table'.
3632
3633 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3634
3635         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3636         to 0.10 (Yao).
3637
3638 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3639
3640         * mule-charset.c (Vcharacter_attribute_table): New variable.
3641         (Fchar_attribute_alist): New function.
3642         (Fget_char_attribute): New function.
3643         (Fput_char_attribute): New function.
3644         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3645         too.
3646         (syms_of_mule_charset): Add new function `char-attribute-alist',
3647         `get-char-attribute' and `put-char-attribute'.
3648         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3649
3650 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3651
3652         * mule-charset.c (Fmake_charset): Just use
3653         `get_unallocated_leading_byte'.
3654
3655         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3656         sets; don't use final-byte based number for private sets.
3657
3658 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3659
3660         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3661         integer.
3662
3663 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3664
3665         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3666         to 0.9.
3667
3668 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3669
3670         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3671         of `CHAR_LEADING_BYTE' in UTF-2000.
3672
3673         * insdel.c (find_charsets_in_bufbyte_string): Use
3674         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3675         (find_charsets_in_emchar_string): Likewise.
3676
3677         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3678         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3679
3680         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3681         (CHAR_CHARSET_ID): New macro.
3682
3683 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3684
3685         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3686         charset-id - MIN_LEADING_BYTE.
3687         (put_char_table): Likewise.
3688
3689 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3690
3691         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3692         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3693         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3694         (CHARSET_ID_OFFSET): New macro.
3695         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3696         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3697         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3698         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3699         4).
3700         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3701         5).
3702         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3703         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3704         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3705         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3706         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3707
3708 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3709
3710         * mule-charset.c (next_allocated_leading_byte): New variable in
3711         UTF-2000.
3712         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3713         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3714         (get_unallocated_leading_byte): Simply use
3715         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3716         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3717         UTF-2000.
3718
3719         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3720         (MAX_LEADING_BYTE_PRIVATE): New macro.
3721         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3722         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3723
3724 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3725
3726         * mule-charset.c (Fmake_charset): Allocate final-byte based
3727         charset-id for 94-set, 96-set and 94x94-set.
3728
3729 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3730
3731         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3732         ambiguous `else'.
3733         (Fmake_charset): Likewise.
3734         (complex_vars_of_mule_charset): Modify the font registry of
3735         `ucs-bmp' not to match `Ethiopic-Unicode'.
3736
3737 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3738
3739         * mule-charset.c (complex_vars_of_mule_charset): Add font
3740         registory of `ucs-bmp'.
3741
3742 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3743
3744         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3745         coded-charsets in `default-coded-charset-priority-list' when
3746         breaking up a character.
3747
3748         * mule-charset.c (Vcharset_latin_viscii): New variable.
3749         (Qlatin_viscii): New variable.
3750         (make_charset): Don't use `decoding_table'.
3751         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3752         byte_offset.
3753         (Fset_charset_mapping_table): New implementation.
3754         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3755         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3756         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3757         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3758         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3759         charset `latin_viscii'.
3760
3761         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3762         (CHARSET_TYPE_94X94): Change to 1 from 2.
3763         (CHARSET_TYPE_96): Change to 2 from 1.
3764         (CHARSET_TYPE_128): New macro.
3765         (CHARSET_TYPE_128X128): Change to 5 from 4.
3766         (CHARSET_TYPE_256): New macro.
3767         (CHARSET_TYPE_256X256): Change to 7 from 5.
3768         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3769
3770 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3771
3772         * text-coding.c (char_encode_shift_jis): Refer
3773         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3774         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3775
3776         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3777         (char_byte_table_equal): New function in UTF-2000.
3778         (char_byte_table_hash): New function in UTF-2000.
3779         (char_byte_table_description): New constant in UTF-2000.
3780         (char_byte_table): New type in UTF-2000.
3781         (make_char_byte_table): New function in UTF-2000.
3782         (copy_char_byte_table): New function in UTF-2000.
3783         (make_char_code_table): New macro in UTF-2000.
3784         (get_char_code_table): New function in UTF-2000.
3785         (put_char_code_table): New function in UTF-2000.
3786         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3787         (charset_description): Add setting in UTF-2000.
3788         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3789         `CHARSET_TO_BYTE1_TABLE(cs)'.
3790         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3791         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3792         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3793         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3794         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3795         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3796         `CHARSET_TO_BYTE2_TABLE(cs)'.
3797
3798         * char-ucs.h (char_byte_table): New type.
3799         (XCHAR_BYTE_TABLE): New macro.
3800         (XSETCHAR_BYTE_TABLE): New macro.
3801         (CHAR_BYTE_TABLE_P): New macro.
3802         (GC_CHAR_BYTE_TABLE_P): New macro.
3803         (struct Lisp_Char_Byte_Table): New structure.
3804         (get_char_code_table): New interface.
3805         (Emchar_to_byte_table): Deleted.
3806         (get_byte_from_character_table): Deleted.
3807         (struct Lisp_Charset): Add `encoding_table'; delete
3808         `to_byte1_table' and `to_byte2_table'.
3809         (CHARSET_ENCODING_TABLE): New macro.
3810         (CHARSET_TO_BYTE1_TABLE): Deleted.
3811         (CHARSET_TO_BYTE2_TABLE): Deleted.
3812         (XCHARSET_ENCODING_TABLE): New macro.
3813         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3814         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3815
3816 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3817
3818         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3819         `vietnamese-viscii-*'.
3820
3821 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3822
3823         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3824         (Qvietnamese_viscii_upper): New variable.
3825         (Fdefine_charset_alias): New function.
3826         (syms_of_mule_charset): Add new function `define-charset-alias'.
3827         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3828         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3829         `latin-viscii-*'.
3830
3831 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3832
3833         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3834         (MAX_CHAR_OBS_94x94): New macro.
3835         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3836         for 94x94 sets.
3837
3838         * mule-charset.c (put_byte_from_character_table): Change unit size
3839         from 128 to 256.
3840         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3841         not defined.
3842         (Fmake_reverse_direction_charset): Modify dummy argument of
3843         `make_charset' for non-UTF-2000 environment.
3844
3845 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3846
3847         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3848
3849         * mule-charset.c (destroy_byte_from_character_table): New macro.
3850         (latin_jisx0201_to_ucs): Deleted.
3851         (latin_iso8859_2_to_ucs): Deleted.
3852         (latin_iso8859_3_to_ucs): Deleted.
3853         (latin_iso8859_4_to_ucs): Deleted.
3854         (latin_iso8859_9_to_ucs): Deleted.
3855         (latin_viscii_lower_to_ucs): Deleted.
3856         (latin_viscii_upper_to_ucs): Deleted.
3857         (mark_charset): Mark `cs->decoding_table'.
3858         (Fcharset_mapping_table): Fix DOC-string.
3859         (Fset_charset_mapping_table): New function.
3860         (syms_of_mule_charset): Add nwe function
3861         `set-charset-mapping-table'.
3862         (complex_vars_of_mule_charset): Don't setup and use
3863         `latin_*_to_ucs'.
3864
3865 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3866
3867         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3868         charset.
3869
3870 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3871
3872         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3873         (Vcharset_katakana_jisx0208): New variable.
3874         (Qhiragana_jisx0208): New variable.
3875         (Qkatakana_jisx0208): New variable.
3876         (make_charset): Add new argument `byte_offset'.
3877         (charset_get_byte1): Modify for new coded-charset definition; use
3878         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3879         `XCHARSET_BYTE_OFFSET'.
3880         (Fmake_charset): Modify for `make_charset'.
3881         (Fmake_reverse_direction_charset): Likewise.
3882         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3883         `katakana-jisx0208'.
3884         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3885         `.'  in font registry of charset `katakana-jisx0201',
3886         `latin-jisx0201', `vietnamese-viscii-lower' and
3887         `vietnamese-viscii-upper'; modify DOC-string of charset
3888         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3889         registry of charset `japanese-jisx0208' not to use font for JIS
3890         X0208:1990; add new charset `hiragana-jisx0208' and
3891         `katakana-jisx0208'.
3892
3893         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3894         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3895         (struct Lisp_Charset): Add `byte_offset'.
3896         (CHARSET_BYTE_OFFSET): New macro.
3897         (XCHARSET_UCS_MIN): New macro.
3898         (XCHARSET_UCS_MAX): New macro.
3899         (XCHARSET_CODE_OFFSET): New macro.
3900         (XCHARSET_BYTE_OFFSET): New macro.
3901         (MIN_CHAR_HIRAGANA): New macro.
3902         (MAX_CHAR_HIRAGANA): New macro.
3903         (MIN_CHAR_KATAKANA): New macro.
3904         (MAX_CHAR_KATAKANA): New macro.
3905         (MAKE_CHAR): Modify for new coded-charset definition; use
3906         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3907         `XCHARSET_BYTE_OFFSET'.
3908
3909 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3910
3911         * mule-charset.c (CHAR96): Deleted.
3912         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3913         <Lisp_Object>.
3914         (latin_iso8859_2_to_ucs): Likewise.
3915         (latin_iso8859_3_to_ucs): Likewise.
3916         (latin_iso8859_4_to_ucs): Likewise.
3917         (latin_iso8859_9_to_ucs): Likewise.
3918         (latin_viscii_lower_to_ucs): Likewise.
3919         (latin_viscii_upper_to_ucs): Likewise.
3920         (latin_tcvn5712_to_ucs): Commented out.
3921         (make_charset): Change type of argument `decoding_table' from
3922         <Emchar*> to <Lisp_Object> [vector of characters].
3923         (Fmake_charset): Modify for `make_charset'.
3924         (Fmake_reverse_direction_charset): Likewise.
3925         (Fcharset_mapping_table): New function in UTF-2000.
3926         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3927         UTF-2000.
3928         (complex_vars_of_mule_charset): Modify for type change of
3929         `*_to_ucs'; modify for `make_charset'.
3930
3931         * char-ucs.h (struct Lisp_Charset): Change type of
3932         `decoding_table' from <Emchar*> to <Lisp_Object>.
3933         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3934
3935 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3936
3937         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3938         error with non-UTF-2000-Mule.
3939
3940 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3941
3942         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3943         in lisp again].
3944         (Vcharset_chinese_cns11643_4): Likewise.
3945         (Vcharset_chinese_cns11643_5): Likewise.
3946         (Vcharset_chinese_cns11643_6): Likewise.
3947         (Vcharset_chinese_cns11643_7): Likewise.
3948         (Qchinese_cns11643_3): Likewise.
3949         (Qchinese_cns11643_4): Likewise.
3950         (Qchinese_cns11643_5): Likewise.
3951         (Qchinese_cns11643_6): Likewise.
3952         (Qchinese_cns11643_7): Likewise.
3953         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3954         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3955         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3956         (complex_vars_of_mule_charset): Likewise.
3957
3958 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3959
3960         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3961         96-set.
3962         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3963         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3964
3965 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3966
3967         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3968         0xFF60.
3969         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3970         (breakup_char_1): Likewise.
3971
3972         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3973         one of them includes the specified character.
3974
3975 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3976
3977         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3978
3979 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3980
3981         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3982
3983 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3984
3985         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3986         definition for non-UTF-2000 Mule.
3987         (latin_iso8859_3_to_ucs): Likewise.
3988         (latin_iso8859_4_to_ucs): Likewise.
3989         (latin_iso8859_9_to_ucs): Likewise.
3990         (latin_jisx0201_to_ucs): Likewise.
3991         (MIN_CHAR_THAI): Likewise.
3992         (MAX_CHAR_THAI): Likewise.
3993         (MIN_CHAR_GREEK): Likewise.
3994         (MAX_CHAR_GREEK): Likewise.
3995         (MIN_CHAR_HEBREW): Likewise.
3996         (MAX_CHAR_HEBREW): Likewise.
3997         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3998         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3999         (MIN_CHAR_CYRILLIC): Likewise.
4000         (MAX_CHAR_CYRILLIC): Likewise.
4001
4002 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4003
4004         * char-ucs.h (breakup_char_1): Use
4005         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4006         thai-tis620 and katakana-jisx0201 area.
4007
4008 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4009
4010         * char-ucs.h (breakup_char_1): Use
4011         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4012         area.
4013
4014         * text-coding.c (reset_encoding_stream): Fixed.
4015         (char_encode_ucs4): Delete `& 255'.
4016
4017         * char-ucs.h (breakup_char_1): Use
4018         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4019
4020 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4021
4022         * file-coding.c (Fmake_coding_system): Don't set up
4023         `codesys->fixed.size'.
4024         (encode_coding_no_conversion): Don't refer
4025         `str->codesys->fixed.size'.
4026
4027 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4028
4029         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4030         (latin_a_char_to_byte1): Deleted.
4031         (latin_a_char_to_byte2): Deleted.
4032
4033 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4034
4035         * mule-charset.c (make_charset): Add new argument `ucs_min',
4036         `ucs_max' and `code_offset'.
4037         (charset_get_byte1): New implementation [delete specific charset
4038         depended implementations].
4039         (Fmake_charset): Modify for `make_charset'.
4040         (Fmake_reverse_direction_charset): Likewise.
4041         (complex_vars_of_mule_charset): Likewise.
4042
4043         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4044         `code_offset'.
4045         (CHARSET_UCS_MIN): New macro.
4046         (CHARSET_UCS_MAX): New macro.
4047         (CHARSET_CODE_OFFSET): New macro.
4048         (MAKE_CHAR): Delete charset depended definitions [except
4049         katakana-jisx0201].
4050
4051 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4052
4053         * char-ucs.h (breakup_char_1): Use
4054         `Vdefault_coded_charset_priority_list' for C0-Controls,
4055         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4056
4057 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4058
4059         * char-ucs.h (charset_get_byte1): New function.
4060         (XCHARSET_GET_BYTE1): Deleted.
4061         (charset_get_byte2): New function.
4062         (XCHARSET_GET_BYTE2): Deleted.
4063         (Vdefault_coded_charset_priority_list): New external variable.
4064         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4065         `Vdefault_preferred_coded_charset_list'.
4066
4067         * mule-charset.c (charset_get_byte1): New function.
4068         (charset_get_byte2): New function.
4069         (Vdefault_coded_charset_priority_list): New variable.
4070         (vars_of_mule_charset): Add new variable
4071         `default-coded-charset-priority-list'.
4072
4073 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4074
4075         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4076         (XCHARSET_GET_BYTE2): New inline function.
4077         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4078         `XCHARSET_GET_BYTE2'.
4079
4080 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4081
4082         * mule-charset.c (make_charset): Initialize
4083         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4084         NULL if table is not defined.
4085
4086 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4087
4088         * text-coding.c (char_encode_shift_jis): Use
4089         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4090         `ucs_to_latin_jisx0201'.
4091
4092         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4093         (ucs_to_latin_iso8859_2): Deleted.
4094         (ucs_to_latin_iso8859_3): Deleted.
4095         (ucs_to_latin_iso8859_4): Deleted.
4096         (ucs_to_latin_iso8859_9): Deleted.
4097         (ucs_to_latin_viscii_lower): Deleted.
4098         (ucs_to_latin_viscii_upper): Deleted.
4099         (ucs_to_latin_tcvn5712): Deleted.
4100         (make_charset): Add new argument `decoding_table'; set up
4101         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4102         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4103         `decoding_table' is defined in UTF-2000.
4104         (Fmake_charset): Modify for `make_charset'.
4105         (Fmake_reverse_direction_charset): Likewise.
4106         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4107         and `GENERATE_96_SET'.
4108
4109         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4110         (ucs_to_latin_jisx0201): Deleted.
4111         (latin_iso8859_2_to_ucs): Deleted.
4112         (ucs_to_latin_iso8859_2): Deleted.
4113         (latin_iso8859_3_to_ucs): Deleted.
4114         (ucs_to_latin_iso8859_3): Deleted.
4115         (latin_iso8859_4_to_ucs): Deleted.
4116         (ucs_to_latin_iso8859_4): Deleted.
4117         (latin_iso8859_9_to_ucs): Deleted.
4118         (ucs_to_latin_iso8859_9): Deleted.
4119         (latin_viscii_lower_to_ucs): Deleted.
4120         (ucs_to_latin_viscii_lower): Deleted.
4121         (latin_viscii_upper_to_ucs): Deleted.
4122         (ucs_to_latin_viscii_upper): Deleted.
4123         (struct Lisp_Charset): Renamed `encoding_table' to
4124         `to_byte1_table'; add `to_byte2_table'.
4125         (CHARSET_DECODING_TABLE): New macro.
4126         (CHARSET_TO_BYTE1_TABLE): New macro.
4127         (CHARSET_TO_BYTE2_TABLE): New macro.
4128         (XCHARSET_DECODING_TABLE): New macro.
4129         (XCHARSET_TO_BYTE1_TABLE): New macro.
4130         (XCHARSET_TO_BYTE2_TABLE): New macro.
4131         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4132         tables.
4133         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4134         don't use `ucs_to_*' tables.
4135
4136 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4137
4138         * text-coding.c (Fmake_coding_system): Don't set up
4139         `codesys->fixed.size'.
4140         (encode_coding_no_conversion): Use `if' instead of `switch'.
4141
4142         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4143
4144 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4145
4146         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4147         (Fmake_charset): Modify for `make_charset'.
4148         (Fmake_reverse_direction_charset): Likewise.
4149         (complex_vars_of_mule_charset): Likewise.
4150
4151 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4152
4153         * text-coding.c (char_encode_shift_jis): Use table
4154         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4155
4156 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4157
4158         * text-coding.c (text_encode_generic): Use `if' instead of
4159         `switch'.
4160         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4161         decode JIS-Latin.
4162
4163 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4164
4165         * text-coding.c (encode_coding_sjis): Deleted.
4166         (char_encode_shift_jis): New function.
4167         (char_finish_shift_jis): New function.
4168         (reset_encoding_stream): Set up `encode_char' and `finish' for
4169         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4170         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4171         (char_encode_utf8): Treat `eol_type'.
4172
4173 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4174
4175         * file-coding.c (decode_coding_iso2022): Use
4176         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4177
4178 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4179
4180         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4181         to 0.7 (Hirano).
4182
4183 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4184
4185         * char-lb.h (CHAR_COLUMNS): New macro.
4186
4187 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4188
4189         * text-coding.c (char_encode_ucs4): New function.
4190         (char_finish_ucs4): New function.
4191         (encode_coding_ucs4): Deleted.
4192         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4193         (text_encode_generic): Delete local variable `charset' and `half'.
4194         (ucs_to_mule_table): Deleted.
4195         (mule_to_ucs_table): Deleted.
4196         (Fset_ucs_char): Deleted.
4197         (ucs_to_char): Deleted.
4198         (Fucs_char): Deleted.
4199         (Fset_char_ucs): Deleted.
4200         (Fchar_ucs): Deleted.
4201         (decode_ucs4): Deleted.
4202         (mule_char_to_ucs4): Deleted.
4203         (encode_ucs4): Deleted.
4204         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4205         (decode_coding_utf8): Likewise.
4206         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4207         (char_encode_iso2022): Fixed.
4208         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4209         `Fset_char_ucs' and `Fchar_ucs'.
4210         (complex_vars_of_file_coding): Don't initialize
4211         `ucs_to_mule_table'.
4212
4213         * objects-tty.c (tty_initialize_font_instance): Don't use
4214         `XCHARSET_COLUMNS'.
4215
4216         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4217         UTF-2000.
4218
4219         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4220         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4221
4222         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4223         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4224         (emchar_string_displayed_columns): Likewise.
4225
4226         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4227         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4228         (string_column_at_point): Likewise.
4229         (Fmove_to_column): Likewise.
4230
4231         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4232         `encoding_table' and `decoding_table'.
4233         (CHARSET_REP_BYTES): Deleted.
4234         (XCHARSET_REP_BYTES): Deleted.
4235         (XCHARSET_COLUMNS): Deleted.
4236         (CHAR_COLUMNS): New macro.
4237         (lookup_composite_char): Deleted unconditionally.
4238         (composite_char_string): Likewise.
4239
4240 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4241
4242         * char-ucs.h (Emchar_to_byte_table): New type.
4243         (get_byte_from_character_table): New function interface.
4244         (Vcharset_latin_jisx0201): New variable.
4245         (latin_jisx0201_to_ucs): New variable.
4246         (ucs_to_latin_jisx0201): New variable.
4247         (Vcharset_latin_iso8859_2): New variable.
4248         (latin_iso8859_2_to_ucs): New variable.
4249         (ucs_to_latin_iso8859_2): New variable.
4250         (Vcharset_latin_iso8859_3): New variable.
4251         (latin_iso8859_3_to_ucs): New variable.
4252         (ucs_to_latin_iso8859_3): New variable.
4253         (Vcharset_latin_iso8859_4): New variable.
4254         (latin_iso8859_4_to_ucs): New variable.
4255         (ucs_to_latin_iso8859_4): New variable.
4256         (Vcharset_latin_iso8859_9): New variable.
4257         (latin_iso8859_9_to_ucs): New variable.
4258         (ucs_to_latin_iso8859_9): New variable.
4259         (Vcharset_latin_viscii_lower): New variable.
4260         (latin_viscii_lower_to_ucs): New variable.
4261         (ucs_to_latin_viscii_lower): New variable.
4262         (Vcharset_latin_viscii_upper): New variable.
4263         (latin_viscii_upper_to_ucs): New variable.
4264         (ucs_to_latin_viscii_upper): New variable.
4265         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4266         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4267         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4268         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4269         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4270         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4271         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4272         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4273         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4274         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4275
4276         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4277         (Vcharset_latin_viscii_upper): New variable.
4278         (make_byte_from_character_table): New function.
4279         (put_byte_from_character_table): New function.
4280         (get_byte_from_character_table): New function.
4281         (CHAR96): New macro.
4282         (ucs_to_latin_jisx0201): New variable.
4283         (latin_jisx0201_to_ucs): New variable.
4284         (ucs_to_latin_iso8859_2): New variable.
4285         (latin_iso8859_2_to_ucs): New variable.
4286         (ucs_to_latin_iso8859_3): New variable.
4287         (latin_iso8859_3_to_ucs): New variable.
4288         (ucs_to_latin_iso8859_4): New variable.
4289         (latin_iso8859_4_to_ucs): New variable.
4290         (ucs_to_latin_iso8859_9): New variable.
4291         (latin_iso8859_9_to_ucs): New variable.
4292         (ucs_to_latin_viscii_lower): New variable.
4293         (latin_viscii_lower_to_ucs): New variable.
4294         (ucs_to_latin_viscii_upper): New variable.
4295         (latin_viscii_upper_to_ucs): New variable.
4296         (ucs_to_latin_tcvn5712): New variable.
4297         (latin_tcvn5712_to_ucs): New variable.
4298         (Qlatin_viscii_lower): New variable.
4299         (Qlatin_viscii_upper): New variable.
4300         (syms_of_mule_charset): Set up new symbol
4301         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4302         (complex_vars_of_mule_charset): Set up new charset
4303         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4304         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4305         `ucs_to_<CHARSET>' tables.
4306
4307 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4308
4309         * text-coding.c: New file.
4310
4311 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4312
4313         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4314
4315         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4316         (MAKE_CHAR): Modify for `ucs-bmp'.
4317         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4318         non-MULE characters of BMP.
4319
4320 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4321
4322         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4323         to 0.6.
4324
4325 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4326
4327         * lstream.h:
4328         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4329         - Include character.h for `CHAR_ASCII_P'.
4330
4331         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4332
4333         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4334         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4335
4336         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4337         (BYTE_C0_P): Likewise.
4338         (BYTE_C1_P): Likewise.
4339         (Lstream_get_emchar_1): Likewise.
4340         (Lstream_fput_emchar): Likewise.
4341         (Lstream_funget_emchar): Likewise.
4342         (copy_internal_to_external): Likewise.
4343         (copy_external_to_internal): Likewise.
4344
4345         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4346         (BYTE_C0_P): Likewise.
4347         (BYTE_C1_P): Likewise.
4348         (Lstream_get_emchar_1): Likewise.
4349         (Lstream_fput_emchar): Likewise.
4350         (Lstream_funget_emchar): Likewise.
4351         (copy_internal_to_external): Likewise.
4352         (copy_external_to_internal): Likewise.
4353
4354         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4355         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4356
4357         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4358         (BYTE_ASCII_P): Moved to mb-1byte.h.
4359
4360 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4361
4362         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4363
4364         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4365         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4366         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4367         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4368         (VALIDATE_CHARPTR_FORWARD): Likewise.
4369         (simple_charptr_emchar): Moved to mb-multibyte.h.
4370         (simple_set_charptr_emchar): Likewise.
4371         (simple_charptr_copy_char): Likewise.
4372         (non_ascii_charptr_emchar): Likewise.
4373         (non_ascii_set_charptr_emchar): Likewise.
4374         (non_ascii_charptr_copy_char): Likewise.
4375         (charptr_emchar): Moved to mb-*byte.h.
4376         (set_charptr_emchar): Likewise.
4377         (charptr_copy_char): Likewise.
4378
4379         * mb-1byte.h, mb-multibyte.h: New files.
4380
4381 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4382
4383         * mb-utf-8.h (MULTIBYTE): New macro.
4384         (MAX_EMCHAR_LEN): Moved from buffer.h.
4385         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4386
4387         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4388
4389         * mb-lb.h, multibyte.h: New files.
4390
4391         * char-1byte.h (Charset_ID): Moved from buffer.h.
4392         (MIN_LEADING_BYTE): Likewise.
4393         (LEADING_BYTE_ASCII): Likewise.
4394         (NUM_LEADING_BYTES): Likewise.
4395         (CHARSETP): Likewise.
4396         (CHARSET_BY_LEADING_BYTE): Likewise.
4397         (XCHARSET_LEADING_BYTE): Likewise.
4398         (XCHARSET_GRAPHIC): Likewise.
4399         (XCHARSET_COLUMNS): Likewise.
4400         (XCHARSET_DIMENSION): Likewise.
4401         (CHAR_CHARSET): Likewise.
4402         (CHAR_LEADING_BYTE): Likewise.
4403         (BREAKUP_CHAR): Likewise.
4404         (Vcharset_ascii): Likewise.
4405
4406         * buffer.h: Include multibyte.h unconditionally.
4407         (VALID_CHARPTR_P): Moved to multibyte.h.
4408         (ASSERT_VALID_CHARPTR): Likewise.
4409         (REAL_INC_CHARPTR): Likewise.
4410         (REAL_INC_CHARBYTIND): Likewise.
4411         (REAL_DEC_CHARPTR): Likewise.
4412         (INC_CHARPTR): Likewise.
4413         (INC_CHARBYTIND): Likewise.
4414         (DEC_CHARPTR): Likewise.
4415         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4416         (VALIDATE_CHARPTR_FORWARD): Likewise.
4417         (charptr_n_addr): Likewise.
4418         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4419         (simple_charptr_emchar): Moved to multibyte.h.
4420         (simple_set_charptr_emchar): Likewise.
4421         (simple_charptr_copy_char): Likewise.
4422         (non_ascii_charptr_emchar): Likewise.
4423         (non_ascii_set_charptr_emchar): Likewise.
4424         (non_ascii_charptr_copy_char): Likewise.
4425         (charptr_emchar): Likewise.
4426         (set_charptr_emchar): Likewise.
4427         (charptr_copy_char): Likewise.
4428         (charptr_emchar_n): Likewise.
4429         (Charset_ID): Moved to char-1byte.h.
4430         (Vcharset_ascii): Likewise.
4431         (CHAR_CHARSET): Likewise.
4432         (CHAR_LEADING_BYTE): Likewise.
4433         (LEADING_BYTE_ASCII): Likewise.
4434         (NUM_LEADING_BYTES): Likewise.
4435         (MIN_LEADING_BYTE): Likewise.
4436         (CHARSETP): Likewise.
4437         (CHARSET_BY_LEADING_BYTE): Likewise.
4438         (XCHARSET_LEADING_BYTE): Likewise.
4439         (XCHARSET_GRAPHIC): Likewise.
4440         (XCHARSET_COLUMNS): Likewise.
4441         (XCHARSET_DIMENSION): Likewise.
4442         (BREAKUP_CHAR): Likewise.
4443
4444 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4445
4446         * character.h: Add document about interface for characters.
4447
4448         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4449         (MAKE_CHAR): Delete comment about
4450         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4451         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4452         (BREAKUP_CHAR): Modify name of arguments.
4453         (CHAR_CHARSET): Modify name of argument.
4454
4455         * buffer.h: Delete document about Emchar accessors.
4456
4457 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4458
4459         * character.h (CHAR_INTP): Moved from buffer.h
4460         (CHAR_OR_CHAR_INTP): Likewise.
4461         (XCHAR_OR_CHAR_INT): Likewise.
4462         (CHECK_CHAR_COERCE_INT): Likewise.
4463
4464         * buffer.h (CHAR_INTP): Moved to character.h
4465         (CHAR_OR_CHAR_INTP): Likewise.
4466         (XCHAR_OR_CHAR_INT): Likewise.
4467         (CHECK_CHAR_COERCE_INT): Likewise.
4468
4469 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4470
4471         * character.h:
4472         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4473         - Include char-1byte.h, char-lb.h or char-ucs.h.
4474
4475         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4476
4477         * buffer.h: Include character unconditionally.
4478         (valid_char_p): Moved to char-*.h.
4479         (non_ascii_valid_char_p): Moved to char-lb.h.
4480
4481         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4482
4483 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4484
4485         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4486         in UTF-2000 because it is not ported yet and not to use
4487         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4488         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4489         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4490
4491         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4492         (CHAR_ASCII_P): Moved from character.h.
4493
4494         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4495         (CHAR_ASCII_P): Likewise.
4496         (CHAR_FIELD1_MASK): Deleted.
4497         (CHAR_FIELD2_MASK): Deleted.
4498         (CHAR_FIELD3_MASK): Deleted.
4499         (MAX_CHAR_BASIC_LATIN): New macro.
4500         (CHAR_FIELD1): Deleted.
4501         (CHAR_FIELD2_INTERNAL): Deleted.
4502         (CHAR_FIELD3_INTERNAL): Deleted.
4503         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4504         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4505         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4506         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4507         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4508         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4509         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4510         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4511         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4512         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4513         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4514         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4515         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4516         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4517         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4518         (MIN_CHAR_COMPOSITION): Deleted.
4519         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4520         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4521
4522 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4523
4524         * buffer.h: Include mb-utf-8.h in UTF-2000.
4525
4526         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4527
4528         * mb-utf-8.h: New file.
4529
4530 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4531
4532         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4533         instead of `int'.
4534
4535         * mule-charset.h, buffer.h (Charset_ID): New type.
4536
4537 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4538
4539         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4540         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4541         instead of `MULE_CHAR_PRIVATE_OFFSET',
4542         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4543         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4544         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4545
4546         * character.h (Vcharset_japanese_jisx0212): New variable
4547         definition.
4548
4549 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4550
4551         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4552         (charset_by_attributes): Delete array about direction.
4553         (latin_a_char_to_charset): New variable in UTF-2000.
4554         (latin_a_char_to_byte1): New variable in UTF-2000.
4555         (latin_a_char_to_byte2): New variable in UTF-2000.
4556         (Qucs_bmp): New variable.
4557         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4558         `Bufbyte'.
4559         (next_allocated_2_byte_leading_byte): Likewise.
4560         (non_ascii_set_charptr_emchar): Likewise.
4561         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4562         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4563         `charset_by_attributes'.
4564         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4565         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4566         and `CHARSET_BY_LEADING_BYTE'.
4567         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4568         `utf-2000-version' to `vars_of_mule_charset'.
4569         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4570         define `leading-code-private-11' in UTF-2000; move setting of
4571         `utf-2000-version' from `syms_of_mule_charset'.
4572         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4573         UTF-2000.
4574
4575         * character.h (Charset_ID): New type.
4576         (LEADING_BYTE_UCS_BMP): New macro.
4577         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4578         (CHARSET_ID_OFFSET_94): New macro.
4579         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4580         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4581         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4582         final-byte.
4583         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4584         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4585         (CHARSET_ID_OFFSET_96): New macro.
4586         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4587         CHARSET_ID_OFFSET_96 and final-byte.
4588         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4589         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4590         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4591         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4592         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4593         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4594         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4595         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4596         (LEADING_BYTE_THAI_TIS620): Likewise.
4597         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4598         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4599         (CHARSET_ID_OFFSET_94x94): New macro.
4600         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4601         CHARSET_ID_OFFSET_94x94 and final-byte.
4602         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4603         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4604         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4605         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4606         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4607         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4608         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4609         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4610         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4611         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4612         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4613         (CHARSET_TYPE_128X128): New macro.
4614         (CHARSET_TYPE_256X256): New macro.
4615         (XCHARSET_PRIVATE_P): Delete unconditionally.
4616         (charset_by_attributes): Delete array about direction.
4617         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4618         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4619         (MIN_CHAR_94): New macro.
4620         (MAX_CHAR_94): New macro.
4621         (MIN_CHAR_96): New macro.
4622         (MAX_CHAR_96): New macro.
4623         (MIN_CHAR_94x94): New macro.
4624         (MAX_CHAR_94x94): New macro.
4625         (MIN_CHAR_96x96): New macro.
4626         (MAX_CHAR_96x96): New macro.
4627         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4628         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4629         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4630         - 32)'.
4631         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4632         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4633         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4634         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4635         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4636         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4637         `XCHARSET_LEADING_BYTE' to make code-point.
4638         (latin_a_char_to_charset): New variable.
4639         (latin_a_char_to_byte1): New variable.
4640         (latin_a_char_to_byte2): New variable.
4641         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4642         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4643         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4644
4645         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4646         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4647         (find_charsets_in_emchar_string): Likewise.
4648         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4649
4650         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4651         `int'.
4652         (decode_coding_iso2022): Likewise.
4653
4654         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4655         of `unsigned char'.
4656
4657         * redisplay.c (redisplay_text_width_emchar_string): Use
4658         `Charset_ID' instead of `unsigned char'.
4659         (redisplay_frame_text_width_string): Likewise.
4660
4661         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4662         `unsigned char'.
4663
4664         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4665         instead of `unsigned char'.
4666         (face_cachel_charset_font_metric_info): Likewise.
4667
4668         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4669         (get_non_ascii_char_table_value): Likewise.
4670         (get_char_table): Likewise.
4671         (put_char_table): Likewise.
4672         (map_over_other_charset): Likewise.
4673         (map_char_table): Likewise.
4674
4675         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4676         instead of `unsigned char'.
4677
4678 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4679
4680         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4681         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4682
4683         * mule-charset.c (leading_code_private_11): Don't define in
4684         UTF-2000.
4685
4686         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4687         in UTF-2000 because it is not ported yet and not to use
4688         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4689
4690 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4691
4692         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4693
4694 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4695
4696         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4697         in UTF-2000.
4698
4699         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4700         of unsigned char to store leading-byte.
4701
4702         * chartab.c (get_non_ascii_char_table_value): Don't use
4703         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4704
4705         * file-coding.c (encode_coding_big5): Delete bogus implementation
4706         in UTF2000.
4707
4708         * character.h (LEADING_BYTE_*): Delete definition for
4709         non-UTF-2000.
4710         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4711         (LEADING_BYTE_PREFIX_P): Deleted.
4712         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4713         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4714         (BUFBYTE_LEADING_BYTE_P): Deleted.
4715         (CHARSET_PRIVATE_P): Deleted unconditionally.
4716         (rep_bytes_by_first_byte): Deleted unconditionally.
4717         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4718         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4719         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4720         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4721         (CHAR_FIELD2): Deleted.
4722         (CHAR_FIELD3): Deleted.
4723         (MAKE_CHAR): Delete definition for non-UTF-2000.
4724         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4725         (breakup_char_1): New implementation.
4726         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4727         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4728
4729 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4730
4731         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4732         condition.
4733
4734 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4735
4736         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4737         (CHARSET_PRIVATE_P): Likewise.
4738         (XCHARSET_PRIVATE_P): Likewise.
4739         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4740
4741         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4742         UTF2000.
4743         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4744
4745 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4746
4747         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4748         (NUM_LEADING_BYTES): Changed from 128 to 256.
4749         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4750         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4751         UTF2000.
4752         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4753
4754         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4755         UTF2000.
4756         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4757         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4758         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4759         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4760         (Qchinese_cns11643_3): New variable in UTF2000.
4761         (Qchinese_cns11643_4): New variable in UTF2000.
4762         (Qchinese_cns11643_5): New variable in UTF2000.
4763         (Qchinese_cns11643_6): New variable in UTF2000.
4764         (Qchinese_cns11643_7): New variable in UTF2000.
4765         (syms_of_mule_charset): Define `chinese-cns11643-3',
4766         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4767         and `chinese-cns11643-7' in UTF2000.
4768         (vars_of_mule_charset): Initialize
4769         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4770         + 1 in UTF2000.
4771         (complex_vars_of_mule_charset): Setup charset
4772         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4773         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4774
4775 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4776
4777         * mule-charset.c: Move setting for `leading-code-private-11' from
4778         `syms_of_mule_charset' to `vars_of_mule_charset'.
4779
4780 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4781
4782         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4783         and `NUM_LEADING_BYTES' in assert.
4784
4785 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4786
4787         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4788         instead of 128.
4789         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4790         `NUM_LEADING_BYTES' instead of 128.
4791
4792 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4793
4794         * mule-charset.h (charset_by_leading_byte): Use
4795         `NUM_LEADING_BYTES' instead of 128.
4796         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4797
4798         * mule-charset.c (charset_by_leading_byte): Use
4799         `NUM_LEADING_BYTES' instead of 128.
4800         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4801
4802         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4803         128.
4804
4805 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4806
4807         * mule-charset.c (syms_of_mule_charset): Update to
4808         0.4 (Shin-Imamiya).
4809
4810 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4811
4812         * file-coding.c (encode_coding_sjis): New implementation for
4813         UTF2000.  (decode_coding_sjis): Ditto.
4814
4815 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4816
4817         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4818         Don't define in UTF2000.
4819
4820         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4821         defined.
4822
4823         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4824         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4825         MULE.
4826
4827 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4828
4829         * config.h.in (CHAR_IS_UCS4): New macro.
4830
4831         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4832         conventional MULE representation.
4833         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4834
4835         * mule-charset.h: Reverted to original.
4836
4837         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4838         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4839         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4840
4841         * character.h: New file.
4842
4843         * file-coding.c (Fmake_coding_system): Set 1 to
4844         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4845         defined.
4846         (encode_coding_no_conversion): New implementation for UTF2000.
4847
4848         * file-coding.h (struct Lisp_Coding_System): Add new member
4849         `fixed.size'.
4850
4851 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4852
4853         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4854         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4855         (encode_coding_iso2022): New implementation for UTF2000.
4856
4857 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4858
4859         * mule-canna.c (c2mu): New implementation for UTF2000.
4860         (m2c): Likewise.
4861
4862 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4863
4864         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4865
4866 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4867
4868         * file-coding.c (reset_encoding_stream): Set 0 to
4869         `str->iso2022.current_char_boundary' in UTF2000.
4870         (encode_utf8): Don't define in UTF2000.
4871         (encode_coding_utf8): New implementation for UTF-8 representation
4872         of UTF2000.
4873         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4874
4875 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4876
4877         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4878
4879         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4880         UTF2000.
4881         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4882
4883         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4884
4885         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4886         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4887         as UTF-8 in UTF2000.
4888         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4889         (non_ascii_valid_char_p): Don't define in UTF2000.
4890         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4891         (Lstream_get_emchar_1): Likewise.
4892         (utf-2000-version): New variable in UTF2000.
4893
4894         * lread.c (read_escape): Add new reader `u'.
4895
4896         * insdel.c (three_to_one_table): Don't define in UTF2000.
4897         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4898         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4899         UTF2000.
4900         (bytind_to_bufpos_func): Likewise.
4901         (buffer_mule_signal_inserted_region): Likewise.
4902         (vars_of_insdel): Don't initialize `three_to_one_table'.
4903         (init_buffer_text): Use `buf->text->mule_size' instead of
4904         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4905         UTF2000.
4906
4907         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4908         UTF-8 representation in UTF2000.
4909         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4910         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4911         (decode_coding_iso2022): Don't define local variable `lb' in
4912         UTF2000; don't use LEADING_BYTE in UTF2000; use
4913         `DECODE_ADD_UCS_CHAR' in UTF2000.
4914         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4915
4916         * config.h.in (UTF2000): New macro.
4917
4918         * buffer.h (struct buffer_text): Add new member `mule_size' and
4919         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4920         (valid_char_p): Return always 1 in UTF2000.
4921         (MAX_EMCHAR_LEN): 6 in UTF2000.
4922         (three_to_one_table): Don't define in UTF2000.
4923         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4924         UTF2000.
4925         (real_bytind_to_bufpos): Likewise.
4926
4927         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4928
4929 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4930
4931         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4932         representation change.
4933         (Vutf_2000_version): New variable.
4934         (leading_code_private_11): New variable.
4935         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4936         `leading-code-private-11'.
4937
4938         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4939         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4940         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4941         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4942         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4943         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4944         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4945         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4946         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4947         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4948         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4949         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4950         (MIN_CHAR_GREEK): New macro.
4951         (MAX_CHAR_GREEK): New macro.
4952         (MIN_CHAR_CYRILLIC): New macro.
4953         (MAX_CHAR_CYRILLIC): New macro.
4954         (MIN_CHAR_HEBREW): New macro.
4955         (MAX_CHAR_HEBREW): New macro.
4956         (MIN_CHAR_THAI): New macro.
4957         (MAX_CHAR_THAI): New macro.
4958         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4959         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4960         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4961         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4962         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4963         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4964         (CHAR_FIELD2): New inline function.
4965         (CHAR_FIELD3): New inline function.
4966         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4967         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4968         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4969         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4970         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4971         (MIN_CHAR_COMPOSITION): Likewise.
4972         (CHAR_LEADING_BYTE): Modified for character representation change.
4973         (MAKE_CHAR): Likewise.
4974
4975         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4976         (Vcharset_greek_iso8859_7): Likewise.
4977         (Vcharset_cyrillic_iso8859_5): Likewise.
4978         (Vcharset_hebrew_iso8859_8): Likewise.
4979         (Vcharset_thai_tis620): Likewise.
4980         (Vcharset_katakana_jisx0201): Likewise.
4981
4982 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
4983
4984         * XEmacs 21.4.12 "Portable Code" is released.
4985
4986 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
4987
4988         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
4989         * s/cygwin.sc: new linker file.
4990
4991 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
4992
4993         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
4994
4995         * redisplay-x.c (x_output_string): Use X11-specified types.
4996         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
4997         * emacs.c (__free_hook): Use typeof with Intel compiler.
4998         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
4999
5000 2003-01-08  Andy Piper  <andy@xemacs.org>
5001
5002         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5003         reserve size during unexec().
5004
5005 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5006
5007         * process-unix.c (unix_create_process): Don't let outchannel block.
5008
5009 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5010
5011         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5012         Needed for IsBadReadPtr().
5013
5014 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5015
5016         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5017
5018 2002-12-14  Ben Wing  <ben@xemacs.org>
5019
5020         * callint.c: Declaration error.
5021         * dumper.c (pdump):
5022         * dumper.c (pdump_load): Warning fix.
5023         * process.c: GCPRO error.
5024         * glyphs.c (unmap_subwindow):
5025         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5026         * event-stream.c (maybe_kbd_translate): Wrong argument to
5027         character_to_event().
5028
5029         * alloc.c (garbage_collect_1):
5030         * emacs.c:
5031         * emacs.c (debug_can_access_memory):
5032         * emacs.c (fatal_error_signal):
5033         * emacs.c (mswindows_handle_hardware_exceptions):
5034         * emacs.c (main_1):
5035         * emacs.c (main):
5036         * emacs.c (assert_failed):
5037         * emacs.c (syms_of_emacs):
5038         * lisp.h:
5039         * print.c:
5040         * print.c (std_handle_out_va):
5041         * print.c (write_string_to_stdio_stream):
5042         * print.c (write_fmt_string):
5043         * print.c (printing_badness):
5044         * print.c (printing_major_badness):
5045         * print.c (print_internal):
5046         * print.c (debug_print_no_newline):
5047         * print.c (debug_backtrace):
5048         Be more defensive in handling bad values when printing.  Add code
5049         from trunk involving inhibit_non_essential_printing_operations.
5050         When going down or in debug_print(), don't do external conversion
5051         and such and try really, really hard when printing to avoid core
5052         dumping.  Add force-debugging-signal, debug_break().
5053
5054 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5055
5056         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5057         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5058
5059 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5060
5061         * database.c: Fix open_database. Berkeley DB API has changed in
5062         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5063
5064 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5065
5066         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5067
5068 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5069
5070         * event-Xt.c (Xt_timeout):
5071         (Xt_timeout_callback):
5072         (emacs_Xt_add_timeout):
5073         (emacs_Xt_remove_timeout):
5074         (Xt_timeout_to_emacs_event):
5075         Turn completed_timeouts from a stack into a queue.  Fixes
5076         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5077
5078 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5079
5080         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5081         * emacs.c (main): Assert that mmap'd allocation is disabled.
5082
5083 2002-10-14  Andy Piper  <andy@xemacs.org>
5084
5085         * glyphs-widget.c (layout_query_geometry): add in fiddle
5086         factor. Include border text in width layout calculation.
5087         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5088
5089 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5090
5091         * XEmacs 21.4.10 "Military Intelligence" is released.
5092
5093 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5094
5095         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5096         using the NAS private array SoundFileInfo that no longer exists in
5097         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5098         and earlier.  This is broken for some versions between 1.5a and
5099         1.5f.
5100
5101 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5102
5103         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5104
5105         * emacs.c (shut_down_emacs): Improve crash message.
5106
5107 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5108
5109         * file-coding.c (determine_real_coding_system): Check for coding
5110         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5111         shebangs and Python PEP 263.
5112
5113 2002-10-08  Andy Piper  <andy@xemacs.org>
5114
5115         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5116         if static sizes haven't been set.
5117
5118 2002-08-30  Mike Alexander  <mta@arbortext.com>
5119
5120         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5121         to close a socket.
5122
5123 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5124
5125         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5126
5127 2002-09-20  Mike Sperber <mike@xemacs.org>
5128
5129         (This partially gets back my patch from 2002-07-20 without the
5130         bug.)
5131         * callproc.c (child_setup): Remove Ben's comment noting confusion
5132         over the file descriptors >= 3: close_process_descs() doesn't
5133         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5134         * process-unix.c (unix_create_process): Call
5135         begin_dont_check_for_quit to inhibit unwanted interaction (and
5136         thus breaking of X event synchronicity) in the child.
5137
5138 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5139
5140         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5141         widget.
5142
5143 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5144
5145         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5146         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5147         the xemacs process did not exit, but looped infinitely here.  This
5148         fixes that problem.
5149
5150 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5151
5152         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5153         (find_context): Improve comments.
5154
5155         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5156         (re_match_2): An XCHAR_TABLE operation was missing.
5157
5158         Many of the following changes were inspired by Andy Piper's (now
5159         obsolete) patch to make syntax-table text property lookup optional.
5160
5161         [Documentation]
5162
5163         * syntax.h (top level): Document semantics of syntax flags.
5164         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5165         * syntax.c, syntax.h (top level): Document syntax cache better in
5166         comments.
5167
5168         [Instrument syntax caching (temporary change)]
5169
5170         * syntax.h (enum syntax_cache_statistics_functions, struct
5171         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5172         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5173         * syntax.c (scan_words, Fforward_comment, scan_lists,
5174         Fbackward_prefix_characters):
5175         * font-lock.c (find_context):
5176         Use them to instrument syntax caching. 
5177         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5178         syntax_cache_statistics_function_names): New type and variables.
5179         * syntax.c (update_syntax_cache): Update and report statistics.
5180
5181         [Major syntax cache optimizations]
5182
5183         syntax.c (lookup_syntax_properties): Default off.
5184
5185         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5186         * syntax.c (update_syntax_cache):
5187         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5188
5189         [Minor syntax cache optimizations and code clarifications]
5190
5191         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5192         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5193         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5194         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5195         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5196         (Code clarification.)
5197
5198         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5199         scan_lists): Compute code from syncode, use Boolean macros instead
5200         of redundant masking operations.  (Code clarification; any decent
5201         compiler can do this optimization.)
5202
5203         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5204         for clarity.
5205
5206         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5207         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5208         use F*_single_property_change instead of F*_extent_change.
5209         Currently F*_single_property_change is _much_ less efficient.
5210
5211         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5212         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5213         syntax_cache.object properly, don't leave Qt or Qnil.
5214         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5215         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5216         tests for Qt or Qnil.
5217
5218 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5219
5220         * redisplay.c (point_in_line_start_cache): 
5221         * extents.c (print_extent_1):
5222         Fix warnings.
5223
5224         * extents.c (Fset_extent_property): Document `syntax-table' property.
5225
5226         * extents.h (Fnext_single_property_change): EXFUN it.
5227
5228 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5229
5230         * search.c (clear_unused_search_regs): New static function.
5231         (search_buffer): 
5232         (simple_search): 
5233         (boyer_moore):
5234         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5235         Minor clarifications in comments.
5236
5237         * regex.c (re_match_2_internal): Ensure no stale submatches.
5238
5239 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5240
5241         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5242
5243 2002-08-29  Jerry James  <james@xemacs.org>
5244
5245         * lisp.h: structrures -> structures.
5246
5247 2002-06-03  Andy Piper  <andy@xemacs.org>
5248
5249         * frame.c (frame_conversion_internal): add conversion appropriate
5250         for setting frame dimensions in pixels.
5251
5252         * console.h (struct console_methods): add device-specific widget
5253         layout functions.
5254
5255         * emacs.c (main_1): initialize glyph vars.
5256
5257         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5258         (handle_focus_event_2): new function. Allow focus to
5259         be set to a particular window and widget.
5260         (enqueue_focus_event): new function. Create a
5261         synthetic focus event.
5262         (emacs_Xt_handle_magic_event): call
5263         handle_focus_event_2.
5264
5265         * frame.c (Fset_frame_pixel_height): new function. Allow
5266         pixel-based sizing. Does the right thing on character-oriented
5267         displays.
5268         (Fset_frame_pixel_width): ditto.
5269         (Fset_frame_pixel_size): ditto.
5270         (syms_of_frame): declare.
5271
5272         * general-slots.h: add :vertically-justify and
5273         :horizontally-justify.
5274
5275         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5276         (mswindows_widget_border_width): new function.
5277         (mswindows_combo_box_instantiate): set border widths.
5278         (console_type_create_glyphs_mswindows): declare.
5279
5280         * glyphs-widget.c:
5281         (check_valid_justification): allow vertical and horizontal
5282         justification.
5283         (widget_border_width): new function. Call device methods.
5284         (widget_instance_border_width): ditto.
5285         (logical_unit_height): new function. Determine the height of a
5286         logical-unit. Logical units are intended to provide grid-like
5287         layout for subcontrols in a layout. If the layout is
5288         :vertically-justify top then subcontrols will be positioned on
5289         logical-unit boundaries, thus allowing adjacent subcontrols to
5290         line up.
5291         (widget_logical_unit_height): ditto for widgets.
5292         (redisplay_widget): misc cleanup.
5293         (widget_spacing): new function. Call device specific
5294         methods. Intended to be the default gap between adjacent widgets.
5295         (widget_query_geometry): use new spacing functions to determine
5296         appropriate geometry.
5297         (initialize_widget_image_instance): initialize horizontal and
5298         vertical justification.
5299         (widget_instantiate): use logica-units where appropriate for
5300         sizing large widgets.
5301         (button_query_geometry): use widget_instance_border_width.
5302         (tree_view_query_geometry): ditto.
5303         (tab_control_query_geometry): ditto.
5304         (edit_field_query_geometry): new function.
5305         (layout_update): pick up :justify, :horizontally-justify and
5306         :vertically-justify none of which worked previously. :justify is
5307         used as a fallback for both horizontal and vertical justification.
5308         (layout_query_geometry): use logical units to size appropriately.
5309         (layout_layout): ditto.
5310         (Fwidget_logical_to_character_width): new function. Allow users to
5311         convert from logical units to characters so that frame sizes can
5312         be set appropriately.
5313         (Fwidget_logical_to_character_height): ditto.
5314         (syms_of_glyphs_widget): declare.
5315         (image_instantiator_edit_fields): add edit_field_query_geometry.
5316         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5317         :horizontally-justify.
5318         (specifier_vars_of_glyphs_widget): new function. Declare
5319         Vwidget_border_width which is not yet used.
5320
5321         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5322         (x_widget_border_width): new function.
5323         (x_widget_instantiate): create a sensible name for widgets.
5324         (console_type_create_glyphs_x): declare x_widget_border_width.
5325
5326         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5327         (struct Lisp_Image_Instance): add :vertically-justify and
5328         :horizontally-justify.
5329         (LAYOUT_JUSTIFY_TOP): new.
5330         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5331         (ROUND_UP): new macro. Round argument up to next integral
5332         interval.
5333
5334         * redisplay-output.c (redisplay_output_layout): misc formatting.
5335
5336         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5337
5338 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5339
5340         * XEmacs 21.4.9 "Informed Management" is released.
5341
5342 2002-08-19  Andy Piper  <andy@xemacs.org>
5343
5344         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5345         win32 format.
5346
5347         * realpath.c (xrealpath): normalize drive spec also so that dir
5348         sep chars are not mixed on cygwin.
5349
5350 2002-08-06  Jerry James  <james@xemacs.org>
5351
5352         * window.c (Fsplit_window): Count only half of the divider width
5353         against the left window when splitting horizontally. 
5354
5355 2002-06-24  Andy Piper  <andy@xemacs.org>
5356
5357         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5358         toolbar was cleared.
5359
5360         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5361         function. Split out from mswindows_output_frame_toolbars.
5362         (mswindows_output_frame_toolbars): move clear pieces to
5363         mswindows_output_frame_toolbars.
5364
5365         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5366         out from gtk_output_frame_toolbars.
5367         (gtk_output_frame_toolbars): move clear pieces to
5368         gtk_clear_frame_toolbars.
5369
5370         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5371         the frame is cleared. How this ever worked before is a mystery.
5372         (x_output_frame_toolbars): Only output toolbars.
5373         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5374
5375         * gutter.c (update_gutter_geometry):
5376         Mark frame layout changed.
5377         (update_frame_gutter_geometry, update_frame_gutters):
5378         Respect frame_layout_changed.
5379
5380         * console.h (struct console_methods): add
5381         clear_frame_toolbars_method.
5382
5383         * redisplay.c (redisplay_frame): call
5384         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5385
5386         * toolbar.h: declare update_frame_toolbars_geometry.
5387
5388         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5389         out from update_frame_toolbars.  Call clear_frame_toolbars.
5390         (update_frame_toolbars): only output, do not change geometry.
5391
5392         * redisplay.c: add frame_layout_changed.
5393
5394         * redisplay.h: add frame_layout_changed.
5395         (CLASS_RESET_CHANGED_FLAGS): set it.
5396         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5397         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5398         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5399
5400         * device.h (struct device): add frame_layout_changed.
5401         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5402
5403         * frame.h (struct frame): add frame_layout_changed.
5404         (MARK_FRAME_LAYOUT_CHANGED): new.
5405
5406 2002-06-30  Mike Alexander  <mta@arbortext.com>
5407
5408         * event-msw.c (mswindows_need_event): Don't wait for a new message
5409         if the queue is not empty.  Suggested by Paul Moore.
5410
5411 2002-06-12  Andy Piper  <andy@xemacs.org>
5412
5413         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5414         for printing on accurately.
5415
5416 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5417
5418         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5419         WM_ACTIVATE message. Make sure that the frame is visible if the
5420         window is visible. This seemss to fix the problem where XEmacs
5421         appears to freeze after switching desktops with certain virtual
5422         window managers.
5423         (debug_output_mswin_message): Added code to output message
5424         parameters for WM_WINDOWPOSCHANGED, 
5425         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5426
5427 2002-05-25  Andy Piper  <andy@xemacs.org>
5428
5429         * select-x.c (vars_of_select_x): Fix docstring of
5430         x-selection-strict-motif-ownership
5431
5432 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5433
5434         * keymap.c (get_keymap):
5435         Add comment about do_autoload GCPROs own args.
5436
5437 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5438
5439         * bytecode.c (execute_optimized_program): check_opcode ifdef
5440         ERROR_CHECK_BYTE_CODE.
5441
5442 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5443
5444         Thanks to Ben Wing and Michael Sperber.
5445
5446         * eval.c (Fcommand_execute):
5447         (Feval):
5448         (Ffuncall):
5449         (Fmacroexpand_internal):
5450         (function_argcount):
5451         callint.c (Fcall_interactively):
5452         Add comment about do_autoload GCPROs own args.
5453
5454         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5455
5456         * eval.c (Ffuncall): Extra braces to placate GCC.
5457
5458 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5459
5460         * backtrace.h (grow_specpdl):
5461         (SPECPDL_RESERVE):
5462         * EmacsFrame.c (EmacsFrameSetValues):
5463         * eval.c (grow_specpdl):
5464         * ExternalShell.c (hack_event_masks_1):
5465         * glyphs-x.c (convert_EImage_to_XImage): 
5466         (x_finalize_image_instance):
5467         * ralloc.c (page_size):
5468         (r_alloc_sbrk):
5469         * xgccache.c (gc_cache_hash):
5470         Fix unsigned comparison warnings.
5471
5472 2002-07-29  Jerry James  <james@xemacs.org>
5473
5474         * lread.c (locate_file): Any nonnegative return value indicates
5475         success if MODE is nonnegative.
5476
5477 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5478
5479         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5480         argument. 
5481
5482 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5483
5484         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5485
5486         * dumper.c (pdump_get_indirect_count):
5487         (pdump_scan_by_alignment):
5488         (pdump_dump_root_struct_ptrs):
5489         (pdump_dump_rtables):
5490         (pdump_dump_root_objects):
5491         (pdump):
5492         * nas.c (WaveOpenDataForReading):
5493         * fns.c (print_bit_vector):
5494         * font-lock.c (SINGLE_SYNTAX_STYLE):
5495         * glyphs.c (check_for_ignored_expose):
5496         (find_matching_subwindow):
5497         * glyphs-eimage.c:
5498         * imgproc.c (get_histogram):
5499         * redisplay.c (point_in_line_start_cache):
5500         * redisplay-output.c (redisplay_unmap_subwindows):
5501         * symbols.c (defsymbol_massage_name_1):
5502         (defkeyword_massage_name):
5503         (deferror_massage_name_and_message):
5504         * redisplay-x.c (x_output_string): 
5505         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5506         * frame.h (struct frame):
5507         * filelock.c (current_lock_owner):
5508         * doprnt.c (emacs_doprnt_1):
5509         * lisp.h (struct Lisp_Bit_Vector):
5510         (DO_REALLOC):
5511         Fix warnings.
5512
5513 2002-02-13  Ben Wing  <ben@xemacs.org>
5514
5515         * event-stream.c (reset_key_echo):
5516         * event-stream.c (reset_this_command_keys):
5517         * event-stream.c (execute_command_event):
5518         If console is dead as a result of C-x 5 0, then post-command stuff
5519         needs to be careful and do only non-console-specific stuff.
5520
5521 2002-07-01  Mike Sperber <mike@xemacs.org>
5522
5523         * process-unix.c (unix_send_process): Mark coding_outstream as
5524         non-open upon SIGPIPE.
5525
5526         * event-stream.c (Fnext_event): Reorder switch cases to something
5527         that makes sense.
5528
5529 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5530
5531         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5532         Don't bogusly reinitialize ascii_character property.
5533
5534 2002-07-08  Mike Sperber <mike@xemacs.org>
5535
5536         * process.c (Fstart_process_internal): Do error checking before we
5537         fork off the child, so the child can't muck with the state of the
5538         parent.
5539
5540 2002-07-08  Mike Sperber <mike@xemacs.org>
5541
5542         * ralloc.c (init_ralloc): Allocate properly for pdump.
5543
5544 2002-06-12  Andy Piper  <andy@xemacs.org>
5545
5546         * glyphs.c (query_string_geometry): check the string.
5547
5548         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5549         widget names.
5550
5551 2002-06-17  Jerry James  <james@xemacs.org>
5552
5553         * sysdll.c: Remove RTLD_GLOBAL initialization.
5554         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5555
5556 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5557
5558         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5559
5560 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5561
5562         * sysdep.c (sys_rename): Make sys_rename work for the case where
5563         Windows rename sets errno to EACCES if target file exists.
5564
5565 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5566
5567         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5568         Fix detection of metric units to work on Win95
5569
5570 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5571
5572         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5573
5574 2002-04-25  Andy Piper  <andy@xemacs.org>
5575
5576         * redisplay.c (create_text_block): Remove extra comment trailer.
5577
5578 2002-04-24  Andy Piper  <andy@xemacs.org>
5579
5580         * redisplay.c (create_text_block): Don't actually add propagation
5581         data if the line ends after we have added a glyph.
5582
5583 2002-04-22  Andy Piper  <andy@xemacs.org>
5584
5585         * extents.c (extent_fragment_update): check for glyphs we have
5586         previously displayed.
5587         * extents.c (print_extent_1): warning removal.
5588         * extents.h: change prototype.
5589         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5590         widths correctly for wide glyphs.
5591         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5592         * redisplay.c (prop_type): add PROP_GLYPH.
5593         * redisplay.c (struct prop_block): add glyph type
5594         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5595         to the propagation data.
5596         * redisplay.c (create_text_block): if there is a glyph in the
5597         propagation data use it to salt extent_fragment_update.
5598         * redisplay.c (create_string_text_block): ditto.
5599
5600 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5601
5602         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5603         * redisplay-output.c (compare_runes): Compare them.
5604         * redisplay.c: Update copyright date.
5605         * redisplay.c (pos_data): Add need_baseline_computation field.
5606         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5607         need_baseline_computation; zero yoffset. Set max_pixmap_height
5608         for all pixmaps, not just automatically positioned ones.
5609         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5610         * redisplay.c (calculate_baseline): New, compute textual baseline.
5611         * redisplay.c (add_glyph_rune): Call them.
5612         * redisplay.c (create_text_block): Likewise.
5613         * redisplay.c (create_overlay_glyph_block): Likewise.
5614         * redisplay.c (add_margin_runes): Likewise.
5615         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5616
5617         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5618         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5619         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5620         * redisplay-msw.c (mswindows_output_string): Likewise.
5621         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5622         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5623         * redisplay-x.c (x_output_display_block): Likewise.
5624
5625 2002-03-28  Ben Wing  <ben@xemacs.org>
5626
5627         * redisplay.c: Fixed bug in redisplay
5628         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5629         and down of the lines, since they're bigger than the line
5630         size. (It was seen most obviously when there's a horizontal scroll
5631         bar, e.g. do C-h a glyph or something like that.) The problem was
5632         that the glyph-contrib-p setting on glyphs was ignored even if it
5633         was set properly, which it wasn't until now.
5634
5635 2002-04-24  Andy Piper  <andy@xemacs.org>
5636
5637         * lisp.h (Dynarr_end): Fix definition.
5638
5639 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5640
5641         * redisplay.c (mark_redisplay): Remove call to
5642         update_frame_window_mirror.
5643
5644 2001-11-15  Andy Piper  <andy@xemacs.org>
5645
5646         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5647         cygwin (again).
5648
5649 2002-02-13  Andy Piper  <andy@xemacs.org>
5650
5651         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5652         we did in fact enqueue the XM_MAPFRAME event.
5653
5654 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5655
5656         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5657         to fix problem switching between virtual desktops under virtuawin
5658         virtual window manager.
5659
5660 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5661
5662         * event-msw.c: Typo fix.
5663         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5664         magic XM_MAPFRAME event has been sent.
5665
5666 2001-11-23  Andy Piper  <andy@xemacs.org>
5667
5668         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5669
5670 2001-11-21  Andy Piper  <andy@xemacs.org>
5671
5672         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5673         mouse events outside the frame.
5674
5675 2002-03-20  Andy Piper  <andy@xemacs.org>
5676
5677         * menubar-msw.c (mswindows_popup_menu): warning removal.
5678         * dialog-msw.c (dialog_popped_down): ditto.
5679
5680 2001-12-11  Andy Piper  <andy@xemacs.org>
5681
5682         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5683         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5684         popup_up_p.
5685         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5686         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5687         * menubar-msw.c (mswindows_popup_menu): ditto.
5688
5689 2001-10-29  Andy Piper  <andy@xemacs.org>
5690
5691         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5692         cancels.
5693
5694 2002-01-03  Andy Piper  <andy@xemacs.org>
5695
5696         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5697         letters.
5698         (xrealpath): ditto.
5699
5700 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5701
5702         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5703         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5704         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5705         Detect and handle case where machine is set up for metric units
5706
5707 2002-04-02  Andy Piper  <andy@xemacs.org>
5708
5709         * dired-msw.c (mswindows_get_files): 
5710         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5711         completely handled by XEmacs. Suggested by Thomas Vogler
5712         <mail@thomas-vogler.de>.
5713
5714 2001-11-14  Andy Piper  <andy@xemacs.org>
5715
5716         * nt.c (REG_ROOT): change registry key to XEmacs.
5717
5718 2002-04-27  Andy Piper  <andy@xemacs.org>
5719
5720         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5721
5722 2002-04-26  Andy Piper  <andy@xemacs.org>
5723
5724         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5725         behavior.
5726
5727 2002-03-14  Mike Alexander  <mta@arbortext.com>
5728
5729         * event-msw.c (mswindows_unwait_process): New, remove process from
5730         wait list
5731         * process-nt.c (nt_finalize_process_data): Call
5732         mswindows_unwait_process
5733         * console-msw.h: Declare mswindows_unwait_process
5734
5735 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5736
5737         * editfns.c (Fdecode_time):
5738         (Fformat_time_string):
5739         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5740         (make_time): Warning elimination (change arg name).
5741
5742 2001-11-24  Andy Piper  <andy@xemacs.org>
5743
5744         * window.c (Fsplit_window): Doc return type.
5745
5746 2002-04-01  Andy Piper  <andy@xemacs.org>
5747
5748         * emacs.c (Fkill_emacs): Only output message box in interactive
5749         mode.
5750
5751 2002-04-26  Andy Piper  <andy@xemacs.org>
5752  
5753         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5754         cygwin.
5755
5756 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5757
5758         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5759         bit platform.
5760
5761 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5762
5763         * XEmacs 21.4.8 "Honest Recruiter" is released.
5764
5765 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5766
5767         Supersedes 2002-04-17 patch.
5768
5769         * process.h (PROCESS_LIVE_P): Use the process status as
5770         evidence of health, not the state of the input stream.
5771         (PROCESS_READABLE_P): Say if the process is readable
5772         from. (It may be dead nonetheless.)
5773         (CHECK_READABLE_PROCESS): Test for that condition.
5774
5775         * process.c (create_process): Use PROCESS_READABLE_P.
5776         (read_process_output, set_process_filter): Likewise.
5777
5778         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5779         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5780
5781         This code is #if 0'd, this is not the time to add new functions:
5782
5783         * process.c (Fprocess_readable_p): Report readability status.
5784         * process.c (Qprocess_readable_p): New, associated symbol...
5785         * process.c (syms_of_process): ... initialize it.
5786
5787 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5788
5789         * XEmacs 21.4.7 "Economic Science" is released.
5790
5791 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5792
5793         * process.h (PROCESS_LIVE_P): Use the process status as
5794         evidence of health, not the state of the input stream.
5795
5796 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5797
5798         * sysdep.c (sys_siglist): change "signum" to "signal"
5799
5800 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5801
5802         * s/darwin.h: New file.
5803         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5804         
5805 2002-04-23  Andreas Jaeger  <aj@suse.de>
5806
5807         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5808         which use lib64 for 64-bit libs.
5809         (START_FILES): Likewise.
5810
5811 2002-02-11  Mike Sperber  <mike@xemacs.org>
5812
5813         * device-x.c: 
5814         (x_IO_error_handler):
5815         (x_init_device): Temporarily keep device in static variable
5816         `device_being_initialized' so we can recover gracefully from
5817         internal XOpenDevice failure.  (XOpenDevice is documented to
5818         return NULL on failure, but sometimes calls the IO error handler
5819         instead.)
5820
5821 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5822
5823         * dired.c (Ffile_name_all_completions): Change documentation --
5824         remove reference to completion-ignored-extensions.
5825         * dired.c (vars_of_dired): Change documentation for
5826         completion-ignored-extensions -- remove reference to
5827         file-name-all-completions.
5828
5829 2002-03-06  Jerry James  <james@xemacs.org>
5830
5831         * emodules.c (emodules_load): Fix multiple loading of same module.
5832
5833 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5834         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5835         RTLD_LAZY to avoid incorrect symbol binding when using nested
5836         shared libraries on Solaris.
5837
5838 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5839
5840         * fileio.c (Ffind_file_name_handler): Improve docstring.
5841
5842 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5843
5844         * fns.c (Fmapconcat): Improve docstring.
5845
5846 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5847
5848         * device-gtk.c: Add prototype for
5849         emacs_gtk_selection_clear_event_handle.
5850         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5851         selection.  Setup signal handler for "selection_clear_event"
5852         (emacs_gtk_selection_clear_event_handle).
5853
5854         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5855         other applications owning the clipboard (based on
5856         x_handle_selection_clear).
5857
5858 2001-12-23  William M. Perry  <wmperry@gnu.org>
5859
5860         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5861         
5862 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5863
5864         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5865
5866 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5867
5868         * XEmacs 21.4.6 "Common Lisp" is released.
5869
5870 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5871
5872         * search.c (Freplace_match): Add missing sub-expression functionality.
5873
5874         * buffer.c (decode_buffer): Add a check for pointer type to
5875         decode_buffer, before gcc's CSE optimization reorders a
5876         dereference in front of the allow_string test.
5877
5878 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5879
5880         * window.c (window_loop): Fix bug that sometimes prevented
5881         window_loop() from iterating across multiple devices.  Also, at
5882         Ben's request, changed infloop-detecting code to abort() instead
5883         of silently terminating window_loop().
5884
5885 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5886
5887         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5888         * editfns.c (make_time): New function.
5889         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5890         * lisp.h (make_time): Prototype and comment it.
5891         * dired.c (wasteful_word_to_lisp): Deprecate.
5892         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5893
5894 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5895
5896         * fileio.c (auto_save_1): Use current coding system, not
5897         escape-quoted.
5898
5899 2001-11-13  Ben Wing  <ben@xemacs.org>
5900
5901         * window.c:
5902         * window.c (window_truncation_on):
5903         * window.c (syms_of_window):
5904         truncate-partial-width-windows should respect the buffer being
5905         displayed, like other redisplay vars.
5906
5907 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5908
5909         * event-stream.c (Fread_key_sequence): save current buffer.
5910
5911 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5912
5913         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5914
5915 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5916
5917         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5918
5919 2001-10-26  Mike Alexander  <mta@arbortext.com>
5920
5921         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5922
5923 2001-10-25  Andy Piper  <andy@xemacs.org>
5924
5925         * ChangeLog:
5926         * dialog-msw.c (handle_directory_proc): new function.
5927          (handle_directory_dialog_box): new fucntion.
5928          (handle_file_dialog_box): use new directory dialog support.
5929          (mswindows_make_dialog_box_internal): ditto.
5930         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5931         handling.
5932         (mswindows_find_frame): make global.
5933         * fileio.c (Fexpand_file_name): build fix.
5934         * general-slots.h: add Qdirectory.
5935         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5936         handling.
5937         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5938         cygwin not leaving win32 paths unchanged.
5939         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5940         cygwin runtime to do path conversion.
5941         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5942         (syms_of_win32): add new function.
5943         * window.c (window_loop): build fix.
5944
5945 2001-10-15  Andy Piper  <andy@xemacs.org>
5946
5947         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5948
5949 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5950
5951         * XEmacs 21.4.5 "Civil Service" is released.
5952
5953 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5954
5955         * glyphs-x.c: Force buffer-tab highlight update when moving the
5956         buffer, avoiding an ugly black border, used for keyboard focus
5957         indication, on a widget that can never have keyboard focus, the
5958         buffer tab.
5959
5960 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5961
5962         * process-unix.c (unix_open_multicast_group): Remove too much
5963         conversion between host and network byte order.
5964
5965 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5966
5967         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5968         before replacing them.
5969
5970         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5971         operation.
5972
5973         * src/window.c (undedicate_windows): Use it.
5974         * src/window.h: Add prototype.
5975
5976 2001-09-17  Ben Wing  <ben@xemacs.org>
5977
5978         * fileio.c (normalize_filename):
5979         * fileio.c (Fexpand_file_name):
5980         Fix various C++ compile errors in Andy's recent code.
5981         
5982         * callint.c (Fcall_interactively):
5983         * editfns.c (Ftemp_directory):
5984         * editfns.c (Fuser_full_name):
5985         * emacs.c (argmatch):
5986         * lread.c (locate_file_map_suffixes):
5987         * redisplay-x.c (x_ring_bell):
5988         Fix sign-compare warnings.
5989         
5990 2001-09-08  Andy Piper  <andy@xemacs.org>
5991
5992         * fileio.c (normalize_filename): copied from nt.c
5993         * (Ffile_name_directory): enable win32 paths under cygwin.
5994         * (Ffile_name_nondirectory): ditto.
5995         * (directory_file_name): ditto.
5996         * (Fexpand_file_name): ditto.
5997         * (Ffile_truename): ditto.
5998         * (Fsubstitute_in_file_name): ditto.
5999         * (Ffile_name_absolute_p): ditto.
6000         * (Ffile_readable_p): ditto.
6001
6002 2001-09-08  Andy Piper  <andy@xemacs.org>
6003
6004         * device-msw.c (mswindows_finish_init_device): remove dde
6005         initialization.
6006         * device-msw.c (mswindows_init_dde): factor out from
6007         mswindows_finish_init_device()
6008         * device-msw.c (init_mswindows_very_early): new function
6009         initialize but don't enable dde.
6010         * emacs.c (main_1): call init_mswindows_very_early.
6011         * event-msw.c:
6012         * event-msw.c (mswindows_dde_callback): only execute when we are
6013         ready.
6014         * symsinit.h: declare init_mswindows_very_early.
6015
6016 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6017
6018         [sjt: This has been in 21.5 for months with no complaints.]
6019
6020         * console.h (struct console_methods): Added flags member.
6021         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6022         (CONMETH_IMPL_FLAG):
6023         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6024         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6025
6026         * device.c (window_system_pixelated_geometry): Use the above macros.
6027
6028         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6029         implememntation flag.
6030         * device.h (DEVICE_DISPLAY_P): Use it.
6031
6032         * frame.c (delete_frame_internal): Use the above macro.
6033
6034         * redisplay.c (redisplay_device): Use it.
6035         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6036         (redisplay_frame): Ditto.
6037
6038         * device-msw.c (mswindows_device_implementation_flags): Removed.
6039         (msprinter_device_implementation_flags): Removed.
6040         (console_type_create_device_mswindows): Removed references to
6041         implementation_flags methods, set implementation flags here.
6042         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6043
6044         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6045         (console_type_create_device_gtk): Removed method declaration.
6046         Added commented out statement which semantically matches the
6047         commented out statement in the above removed method.
6048
6049 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6050
6051         The attached patch fixes a few warnings. 
6052
6053         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6054         * src/frame-gtk.c: guard against GNOME calls in GTK only
6055         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6056         * src/select-gtk.c: prototype lisp_to_time
6057
6058 2001-06-08  Ben Wing  <ben@xemacs.org>
6059
6060         ------ gc-in-window-procedure fixes ------
6061         
6062         * alloc.c:
6063         * alloc.c (struct post_gc_action):
6064         * alloc.c (register_post_gc_action):
6065         * alloc.c (run_post_gc_actions):
6066         * alloc.c (garbage_collect_1):
6067         Create "post-gc actions", to avoid those dreaded "GC during window
6068         procedure" problems.
6069
6070         * event-msw.c:
6071         Abort, clean and simple, when GC in window procedure.  We want
6072         to flush these puppies out.
6073
6074         * glyphs-msw.c:
6075         * glyphs-msw.c (finalize_destroy_window):
6076         * glyphs-msw.c (mswindows_finalize_image_instance):
6077         Use a post-gc action when destroying subwindows.
6078
6079         * lisp.h:
6080         Declare register_post_gc_action().
6081
6082         * scrollbar-msw.c:
6083         * scrollbar-msw.c (unshow_that_mofo):
6084         Use a post-gc action when unshowing scrollbar windows, if in gc.
6085
6086         * redisplay.c (mark_redisplay):
6087         Add comment about the utter evilness of what's going down here.
6088
6089         ------ cygwin setitimer fixes ------
6090         
6091         * Makefile.in.in (sheap_objs):
6092         * Makefile.in.in (profile_objs):
6093         * Makefile.in.in (objs):
6094         Compile profile.c only when HAVE_SETITIMER.
6095         
6096         * nt.c (mswindows_sigset):
6097         * nt.c (mswindows_sighold):
6098         * nt.c (mswindows_sigrelse):
6099         * nt.c (mswindows_sigpause):
6100         * nt.c (mswindows_raise):
6101         * nt.c (close_file_data):
6102         Style fixes.
6103         
6104         * nt.c:
6105         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6106         
6107         * profile.c:
6108         * profile.c (Fstart_profiling):
6109         * profile.c (Fstop_profiling):
6110         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6111         instead of just plain setitimer().
6112         
6113         * signal.c:
6114         * signal.c (set_one_shot_timer):
6115         * signal.c (alarm):
6116         Define qxe_setitimer() as an encapsulation around setitimer() --
6117         call setitimer() directly unless Cygwin or MS Win, in which case
6118         we use our simulated version in win32.c.
6119         
6120         * systime.h:
6121         * systime.h (struct itimerval):
6122         * systime.h (ITIMER_REAL):
6123         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6124         comment about "qxe" and the policy regarding encapsulation.
6125
6126         * win32.c:
6127         * win32.c (setitimer_helper_proc):
6128         * win32.c (setitimer_helper_period):
6129         * win32.c (setitimer_helper):
6130         * win32.c (mswindows_setitimer):
6131         Move setitimer() emulation here, so Cygwin can use it.
6132         Rename a couple of functions and variables to be longer and more
6133         descriptive.  In setitimer_helper_proc(), send the signal
6134         using either mswindows_raise() or (on Cygwin) kill().  If for
6135         some reason we are still getting lockups, we'll change the kill()
6136         to directly invoke the signal handlers.
6137
6138         ------ windows shell fixes ------
6139         
6140         * callproc.c:
6141         * ntproc.c:
6142         Comments about how these two files must die.
6143
6144         * callproc.c (init_callproc):
6145         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6146         not just COMSPEC. (more correct and closer to FSF.) Don't
6147         force a value for SHELL into the environment. (Comments added
6148         to explain why not.)
6149         
6150         * nt.c (init_user_info):
6151         Don't shove a fabricated SHELL into the environment.  See above.
6152
6153 2001-06-01  Ben Wing  <ben@xemacs.org>
6154
6155         * Makefile.in.in (ldflags):
6156         eliminate that pesky "defaulting to 00401000" warning.
6157         * nt.h:
6158         eliminate warnings.
6159
6160 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6161
6162         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6163         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6164
6165 2001-04-24  Jerry James <james@xemacs.org>
6166
6167         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6168         correct order.
6169
6170 2001-06-01  Ben Wing  <ben@xemacs.org>
6171
6172         * event-msw.c (debug_mswin_messages):
6173         conditionalize the messages that were causing compile errors.
6174         (if only macros could generate #ifdef statements ...)
6175
6176 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6177
6178         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6179
6180 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6181
6182         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6183
6184 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6185
6186         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6187         * process-unix.c (unix_canonicalize_host_name):
6188         sysdep.c (init_system_name):
6189         Use it to conditionally support IPv6 canonicalization.
6190
6191 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6192
6193         * event-msw.c:
6194         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6195
6196 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6197
6198         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6199         attempt is made to scroll when no scroll bar is available.
6200
6201 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6202
6203         * input-method-motif.c (XIM_delete_frame): New callback.
6204         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6205         got deleted from 21.4.3.)
6206
6207 2001-06-01  Ben Wing  <ben@xemacs.org>
6208
6209         * nt.c (mswindows_utime):
6210         * nt.c (close_file_data):
6211         fix off-by-one-indirection error.
6212
6213 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6214
6215         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6216         because set_file_times() now takes Lisp_Object path, instead of
6217         char*.
6218         * nt.c: Include buffer.h.
6219         * nt.c (convert_from_time_t): New.
6220         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6221         not set mtime correctly.
6222         * nt.h: Declare mswindows_utime().
6223         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6224         path, instead of char*.
6225         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6226
6227 2001-05-30  Ben Wing  <ben@xemacs.org>
6228
6229         For 21.4:
6230
6231         (Stephen, just take all event-msw.c patches.  This includes
6232         the "iconify" fix below.)
6233
6234         * event-msw.c:
6235         * event-msw.c (mswindows_dequeue_dispatch_event):
6236         * event-msw.c (assert):
6237         * event-msw.c (emacs_mswindows_quit_p):
6238         * event-msw.c (debug_mswin_messages):
6239         * event-msw.c (debug_output_mswin_message):
6240         * event-msw.c (vars_of_event_mswindows):
6241         Fix yet more problems with C-g handling.
6242         Implement debug-mswindows-events.
6243         
6244 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6245
6246         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6247         
6248 2001-05-23  Ben Wing  <ben@xemacs.org>
6249
6250         * event-msw.c (winsock_writer):
6251         * event-msw.c (winsock_closer):
6252         prior kludgy code was clobbering the buffer, thinking it was
6253         "unused" space to store an unneeded return value; instead, use
6254         the variable we've already got staring us in the face.
6255
6256 2001-05-17  Andy Piper  <andy@xemacs.org>
6257
6258         * sysfile.h: don't assume that file attributes are boolean
6259
6260 2001-05-23  Ben Wing  <ben@xemacs.org>
6261
6262         * device-msw.c (msprinter_init_device):
6263         signal an error rather than crash with an unavailable network
6264         printer (from Mike Alexander).
6265         
6266         * event-msw.c:
6267         * event-msw.c (struct winsock_stream):
6268         * event-msw.c (winsock_writer):
6269         * event-msw.c (winsock_closer):
6270         * event-msw.c (make_winsock_stream_1):
6271         cleanup headers.  fix (hopefully) an error with data corruption
6272         when sending to a network connection.
6273
6274         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6275         to handle the ~user prefix by (a) always assuming we're referencing
6276         ourselves and not even verifying the user -- hence any file with
6277         a tilde as its first char is invalid! (b) if there wasn't a slash
6278         following the filename, the pointer was set *past* the end of
6279         file and we started reading from uninitialized memory.  Now we
6280         simply treat these as files, always.
6281
6282         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6283         
6284 2001-05-19  Ben Wing  <ben@xemacs.org>
6285
6286         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6287
6288         * process-nt.c:
6289         * process-nt.c (vars_of_process_nt):
6290         remove unused mswindows-quote-process-args.  rec for 21.4.
6291         
6292 2001-05-12  Ben Wing  <ben@xemacs.org>
6293
6294         * event-msw.c (mswindows_dde_callback):
6295         * event-msw.c (mswindows_wnd_proc):
6296         eliminate cygwin warnings.
6297
6298 2001-05-06  Ben Wing  <ben@xemacs.org>
6299
6300         * console-msw.h:
6301         * device-msw.c:
6302         * device-msw.c (print_dialog_worker):
6303         * device-msw.c (mswindows_handle_print_dialog_box):
6304         * device-msw.c (syms_of_device_mswindows):
6305         * dialog-msw.c (mswindows_make_dialog_box_internal):
6306         * general-slots.h:
6307         implement printing the selection when it's selected.
6308
6309 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6310
6311         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6312
6313 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6314
6315         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6316         EMACS_INT is signed.
6317
6318 2001-04-15  Michael Lausch  <mla@1012surf.net>
6319
6320         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6321         gtk_widget_request_size() to give scrollbar >0 width for
6322         GTK >1.2.8.
6323
6324 2001-05-30  William M. Perry  <wmperry@gnu.org>
6325
6326         * event-gtk.c: Check for buttons as modifier keys.
6327
6328 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6329
6330         * s\mingw32.h:
6331         Properly find MinGW's <process.h> inside Cygwin's restructured
6332         include directories.  Don't try to include <cygwin/version.h>
6333         since we are dropping support for MinGW in versions of Cygwin
6334         earlier than b21.
6335         * nt.c:
6336         Drop support for MinGW in versions of Cygwin before b21.
6337         * sysdep.c:
6338         Properly find MinGW's <process.h> inside Cygwin's restructured
6339         include directories.
6340         * syswindows.h:
6341         Drop support for MinGW in versions of Cygwin before b21.
6342         * unexcw.c:
6343         Even though a.out.h is no longer detected by configure, allow
6344         MinGW to use it until we figure out how to do the job with Win32.
6345
6346 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6347
6348         * syntax.c (find_start_of_comment):
6349         Fix `unbalanced parentheses' bug when dealing with mixed comment
6350         styles in c++/java/etc. mode
6351
6352 2001-05-29  Mike Alexander  <mta@arbortext.com>
6353
6354         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6355         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6356
6357 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6358
6359         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6360
6361 2001-03-31  Mike Sperber <mike@xemacs.org>
6362
6363         * search.c (Freplace_match): Support FSF-style specification of
6364         match subexpression when applied to a buffer.
6365
6366 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6367
6368         * event-stream.c (is_scrollbar_event): add missing semicolon
6369
6370 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6371
6372         * Makefile.in.in: Use TAR macro instead of hardcoding
6373           tar.  Allows use of GNU tar instead of system tar
6374
6375 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6376
6377         * event-stream.c (is_scrollbar_event): add missing semicolon
6378
6379 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6380
6381         * XEmacs 21.4.3 "Academic Rigor" is released.
6382
6383 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6384
6385         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6386
6387 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6388
6389         * buffer.c (Vcase_fold_search): Remove obsolete
6390           comment about non ASCII case-fold-search.  This
6391           bug has been fixed by case-table changes.
6392
6393 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6394
6395         * event-msw.c: Restore include of events-mod.h.
6396
6397 2001-04-22   zhaoway  <zw@debian.org>
6398
6399         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6400         !HAVE_SCROLLBARS.
6401
6402 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6403
6404         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6405
6406 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6407
6408         * mule-charset.c (Fmake_charset): Add missing else.
6409
6410 2001-04-23  Ben Wing  <ben@xemacs.org>
6411
6412         * event-msw.c (FAKE_MOD_QUIT):
6413         * event-msw.c (mswindows_dequeue_dispatch_event):
6414         * event-msw.c (mswindows_wnd_proc):
6415         * event-msw.c (emacs_mswindows_quit_p):
6416         Get critical quit working.
6417
6418 2001-05-05  Ben Wing  <ben@xemacs.org>
6419
6420         * console-msw.h:
6421         * device-msw.c:
6422         * device-msw.c (mswindows_get_default_margin):
6423         * frame-msw.c (mswindows_size_frame_internal):
6424         * frame-msw.c (msprinter_init_frame_1):
6425         * frame-msw.c (vars_of_frame_mswindows):
6426         Change top/bottom margin defaults to 0.5 inches.
6427
6428 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6429
6430         Fix link error with gcc 3.0 on Linux.
6431         * terminfo.c (UP): Remove.
6432         * terminfo.c (BC): Remove.
6433         * terminfo.c (PC): Remove.
6434         They weren't used, and in any case, these symbols should be
6435         defined in the *library*.
6436
6437 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6438
6439         * s/aix4.h: Fix crash with xlc -O3.
6440         Improve comment explaining how -O3 works.
6441
6442 2001-04-15  Ben Wing  <ben@xemacs.org>
6443
6444         * event-stream.c:
6445         * event-stream.c (Fnext_event):
6446         * event-stream.c (is_scrollbar_event):
6447         * event-stream.c (execute_command_event):
6448         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6449         crash' problem.  His fix introduces other problems.  We filter
6450         out scrollbar events specifically, making them somewhat invisible
6451         to command-building, and not appearing in `this-command-keys'.
6452         More work is still needed (see comments in event-stream.c), but
6453         this fixes all the major problems.
6454
6455 2001-04-20  Ben Wing  <ben@xemacs.org>
6456
6457         * .cvsignore: Added stuff for Windows.
6458
6459 2001-04-28  Ben Wing  <ben@xemacs.org>
6460
6461         * buffer.c (Ferase_buffer):
6462         * editfns.c (buffer_insert1):
6463         * editfns.c (Finsert_before_markers):
6464         * editfns.c (Finsert_string):
6465         * editfns.c (Finsert_char):
6466         * editfns.c (Fdelete_region):
6467         * editfns.c (Fwiden):
6468         * editfns.c (Fnarrow_to_region):
6469         remove bogus lines setting zmacs_region_stays to 0.
6470         
6471 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6472
6473         * process-unix.c (unix_open_network_stream): If connect() fails
6474         invalidate file descriptor after closing it.
6475
6476 2001-03-08  Mike Alexander  <mta@arbortext.com>
6477
6478         * event-msw.c (mswindows_need_event_in_modal_loop):
6479         Don't dispatch a message if we didn't get one.
6480         (mswindows_need_event):
6481         Terminate the correct process when one exits instead of the first
6482         one on Vprocess_list and look for process termination when in
6483         mswindows_protect_modal_loop.
6484
6485 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6486
6487         * XEmacs 21.4.1 "Copyleft" is released.
6488
6489 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6490
6491         * input-method-motif.c (XIM_delete_frame): New callback.
6492         (XIM_init_frame): Register it.
6493
6494 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6495
6496         * XEmacs 21.4.0 "Solid Vapor" is released.
6497
6498 2001-04-15  Ben Wing  <ben@xemacs.org>
6499
6500         * cmdloop.c (call_command_loop):
6501         Fix braino in bit-rotting code.
6502         
6503 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6504
6505         * extents.c (Fset_extent_endpoints): Force creation of extent info
6506         in buffer_or_string.
6507
6508         * extents.c (process_extents_for_insertion_mapper): Correctly
6509         check for open-open zero-length extents.
6510
6511 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6512
6513         * lisp.h: New typedefs Memory_count, Element_count.
6514         * regex.c:
6515         * regex.h:
6516         Sign-compare warning elimination: several unsigned -> signed.
6517         Based on work by Ben Wing <ben@xemacs.org>.
6518
6519 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6520
6521         * XEmacs 21.2.47 "Zephir" is released.
6522
6523 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6524
6525         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6526
6527 2001-04-03  Mike Sperber <mike@xemacs.org>
6528
6529         * search.c: Revert previous patch due because of release.
6530
6531 2001-03-30  Ben Wing  <ben@xemacs.org>
6532
6533         * s\cygwin32.h:
6534         Add missing killpg prototype.
6535
6536         * elhash.c:
6537         Add a comment about fixing problems when a new entry is added
6538         while mapping.
6539
6540         * frame-msw.c (mswindows_init_frame_1):
6541         Fix compile warnings.
6542
6543         * menubar.c (vars_of_menubar):
6544         Provide `menu-accelerator-support' to indicate that we properly
6545         support %_ in menu specifications, so that package code can
6546         conditionalize on this (and remove %_ from menu specifications
6547         on older versions).
6548
6549         * event-msw.c:
6550         * scrollbar-msw.c:
6551         * scrollbar-msw.c (can_scroll):
6552         * scrollbar-msw.h:
6553         Fix handling of mouse wheel under Windows to follow standards --
6554         now scrolls window under pointer, not selected window.
6555
6556 2001-03-31  Mike Sperber <mike@xemacs.org>
6557
6558         * search.c (Freplace_match): Support FSF-style specification of
6559         match subexpression when applied to a buffer.
6560
6561 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6562
6563         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6564         function to modify KEYMAP, so map over a copy of the hash table.
6565
6566 2001-03-21  Martin Buchholz <martin@xemacs.org>
6567
6568         * XEmacs 21.2.46 "Urania" is released.
6569
6570 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6571
6572         * realpath.c (xrealpath): Make file-truename work with symlinks to
6573         /cygdrive paths on cygwin. Always lowercase drive-letters on
6574         native windows.
6575         (cygwin_readlink): Don't try to find canonical filename unless
6576         file exists.
6577
6578 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6579
6580         * ChangeLog: Log GTK merge.
6581
6582         * dumper.c:
6583         * select-x.c:
6584         * specifier.c:
6585         * symeval.h:
6586         Revert gratuitous whitespace changes from GTK merge.
6587
6588         * emacs.c: Document end of complex #ifdef @ l. 1495.
6589
6590
6591 2001-03-12  Andy Piper  <andy@xemacs.org>
6592
6593         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6594         have to do likewise.
6595
6596 2001-03-12  Andy Piper  <andy@xemacs.org>
6597
6598         * sysdep.c: we only support mingw now.
6599
6600 2001-03-09  Andy Piper  <andy@xemacs.org>
6601
6602         * unexcw.c (copy_executable_and_dump_data_section): making approx
6603         overrun a warning only.
6604
6605 2001-03-10  William M. Perry  <wmperry@aventail.com>
6606
6607         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6608         satisfy Stephen's identical-after-cpp plea.
6609
6610 2001-03-02  Ben Wing  <ben@xemacs.org>
6611
6612         * cmds.c:
6613         * cmds.c (Fforward_char):
6614         * syntax.c:
6615         * window.c:
6616
6617         Augment documentation of the most common motion commands to make
6618         note of the shifted-motion support.
6619         
6620 2001-03-02  Ben Wing  <ben@xemacs.org>
6621
6622         * nt.c (mswindows_fstat):
6623         * nt.c (mswindows_stat):
6624         * search.c (boyer_moore):
6625         Fix compile warnings under Windows.
6626         
6627         * sysdep.c (sys_readdir):
6628         Fix buggy filename-conversion code under Mule.
6629
6630 2001-03-09  William M. Perry  <wmperry@aventail.com>
6631
6632         * Makefile.in.in:
6633         * config.h.in:
6634         * console.c:
6635         * console.h:
6636         * device.c:
6637         * device.h:
6638         * dragdrop.c:
6639         * emacs.c:
6640         * event-stream.c:
6641         * events.c:
6642         * events.h:
6643         * faces.c:
6644         * frame.h:
6645         * general-slots.h:
6646         * glyphs.c:
6647         * gutter.c:
6648         * inline.c:
6649         * lisp.h:
6650         * lrecord.h:
6651         * make-src-depend:
6652         * redisplay-output.c:
6653         * redisplay.c:
6654         * symsinit.h:
6655         * sysfile.h:
6656         * toolbar.c:
6657         * window.c:
6658         The Great GTK Merge.
6659
6660         * ChangeLog.GTK:
6661         * console-gtk.c:
6662         * console-gtk.h:
6663         * device-gtk.c:
6664         * emacs-marshals.c:
6665         * emacs-widget-accessors.c:
6666         * event-gtk.c:
6667         * frame-gtk.c:
6668         * gccache-gtk.c:
6669         * gccache-gtk.h:
6670         * glade.c:
6671         * glyphs-gtk.c:
6672         * glyphs-gtk.h:
6673         * gtk-glue.c:
6674         * gtk-xemacs.c:
6675         * gtk-xemacs.h:
6676         * gui-gtk.c:
6677         * gui-gtk.h:
6678         * menubar-gtk.c:
6679         * native-gtk-toolbar.c:
6680         * objects-gtk.c:
6681         * objects-gtk.h:
6682         * redisplay-gtk.c:
6683         * scrollbar-gtk.c:
6684         * scrollbar-gtk.h:
6685         * select-gtk.c:
6686         * toolbar-gtk.c:
6687         * ui-byhand.c:
6688         * ui-gtk.c:
6689         * ui-gtk.h:
6690         The Great GTK Merge: new files.
6691
6692 2001-02-26  Ben Wing  <ben@xemacs.org>
6693
6694         Reapplied Lstream change.
6695
6696 2001-02-26  Ben Wing  <ben@xemacs.org>
6697
6698         Undid the last change, since it is more controversial than I
6699         thought.  It should be back in at some point soon.
6700         
6701 2001-02-25  Ben Wing  <ben@xemacs.org>
6702
6703         * buffer.c:
6704         * callproc.c (Fold_call_process_internal):
6705         * event-msw.c (ntpipe_slurp_reader):
6706         * event-msw.c (ntpipe_shove_writer):
6707         * event-msw.c (winsock_reader):
6708         * event-msw.c (winsock_writer):
6709         * file-coding.c:
6710         * file-coding.c (detect_eol_type):
6711         * file-coding.c (detect_coding_type):
6712         * file-coding.c (determine_real_coding_system):
6713         * file-coding.c (Fdetect_coding_region):
6714         * file-coding.c (decoding_reader):
6715         * file-coding.c (decoding_writer):
6716         * file-coding.c (mule_decode):
6717         * file-coding.c (Fdecode_coding_region):
6718         * file-coding.c (encoding_reader):
6719         * file-coding.c (encoding_writer):
6720         * file-coding.c (mule_encode):
6721         * file-coding.c (Fencode_coding_region):
6722         * file-coding.c (detect_coding_sjis):
6723         * file-coding.c (decode_coding_sjis):
6724         * file-coding.c (encode_coding_sjis):
6725         * file-coding.c (detect_coding_big5):
6726         * file-coding.c (decode_coding_big5):
6727         * file-coding.c (encode_coding_big5):
6728         * file-coding.c (detect_coding_ucs4):
6729         * file-coding.c (decode_coding_ucs4):
6730         * file-coding.c (encode_coding_ucs4):
6731         * file-coding.c (detect_coding_utf8):
6732         * file-coding.c (decode_coding_utf8):
6733         * file-coding.c (encode_coding_utf8):
6734         * file-coding.c (detect_coding_iso2022):
6735         * file-coding.c (decode_coding_iso2022):
6736         * file-coding.c (encode_coding_iso2022):
6737         * file-coding.c (decode_coding_no_conversion):
6738         * file-coding.c (encode_coding_no_conversion):
6739         * glyphs-x.c (write_lisp_string_to_temp_file):
6740         * gpmevent.c (tty_get_foreign_selection):
6741         * lisp.h:
6742         * lstream.c:
6743         * lstream.c (Lstream_flush_out):
6744         * lstream.c (Lstream_adding):
6745         * lstream.c (Lstream_write_1):
6746         * lstream.c (Lstream_write):
6747         * lstream.c (Lstream_raw_read):
6748         * lstream.c (Lstream_read_more):
6749         * lstream.c (Lstream_read):
6750         * lstream.c (Lstream_unread):
6751         * lstream.c (Lstream_fputc):
6752         * lstream.c (stdio_reader):
6753         * lstream.c (stdio_writer):
6754         * lstream.c (filedesc_reader):
6755         * lstream.c (filedesc_writer):
6756         * lstream.c (lisp_string_reader):
6757         * lstream.c (struct fixed_buffer_stream):
6758         * lstream.c (make_fixed_buffer_input_stream):
6759         * lstream.c (make_fixed_buffer_output_stream):
6760         * lstream.c (fixed_buffer_reader):
6761         * lstream.c (fixed_buffer_writer):
6762         * lstream.c (struct resizing_buffer_stream):
6763         * lstream.c (resizing_buffer_writer):
6764         * lstream.c (dynarr_writer):
6765         * lstream.c (lisp_buffer_reader):
6766         * lstream.c (lisp_buffer_writer):
6767         * lstream.h:
6768         * lstream.h (lstream_implementation):
6769         * lstream.h (struct lstream):
6770         * md5.c (Fmd5):
6771         * process-nt.c (nt_send_process):
6772         * process-unix.c (unix_send_process):
6773         
6774         Correct Lstream lossage due to mixing of signed and unsigned
6775         quantities.  All Lstream uses of size_t and ssize_t are now a
6776         single signed data type Lstream_data_count.  This fixes problems
6777         under Windows with sending large quantities of data to a process,
6778         and may well fix other subtle bugs.
6779
6780 2001-02-23  Martin Buchholz <martin@xemacs.org>
6781
6782         * XEmacs 21.2.45 "Thelxepeia" is released.
6783
6784 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6785
6786         * lisp-union.h (XSETINT): 
6787         (XSETCHAR):
6788         (XSETOBJ): 
6789         Reverse previous change of 2001-02-06.
6790
6791 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6792
6793         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6794         buffers.
6795         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6796         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6797         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6798         * regex.c (POS_AS_IN_BUFFER): removed
6799         * regex.c (re_search_2):
6800         * regex.c (re_match_2):
6801         Don't use an offset of 1 when calculating buffer positions, since
6802         `BI_BUF_BEGV' does it already.
6803
6804 2001-02-18  Wim Dumon  <wim@easics.be>
6805
6806         * insdel.c (prepare_to_modify_buffer): Also check for
6807         supersession when clash-detection is enabled. 
6808
6809 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6810
6811         * regex.c (re_match_2_internal):
6812         Convert temp characters from 'const unsigned char' to 're_char'.
6813         Fix crashing bug with extended characters under mule.
6814         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6815         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6816         font-lock, pdump, and new syntax-table code.
6817         * syntax.c (find_start_of_comment):
6818         (find_end_of_comment):
6819         (forward-comment):
6820         Fix crashing bugs involving moving beyond end of buffer.
6821         * syntax.c (find_start_of_comment):
6822         Fixed logic to allow proper detection of cases where the same
6823         character is used to end both a two-char comment start and a
6824         two-char comment end sequence. Fixes `(forward-comment -1)'.
6825         * syntax.c (find_start_of_comment):
6826         Return position just past last comment-end character for all cases
6827         (previously was only done for two-char comment-end sequences).
6828         * syntax.c (forward-comment):
6829         Take value returned from `find_end_of_comment', rather than
6830         incrementing it.
6831         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6832         Properly deal with BUFFERP (syntax_cache.object)
6833
6834 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6835
6836         * alloc.c (Fgarbage_collect): 
6837         * alloc.c (make_bit_vector_from_byte_vector):
6838         -Wsign-compare-correctness.
6839
6840 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6841
6842         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6843         (XSETCHAR): Likewise.
6844         (XSETOBJ): Likewise.
6845
6846 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6847
6848         * mule-canna.c (canna-func-delete_previous): 
6849         Rename to canna-func-delete-previous.
6850
6851 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6852
6853         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6854
6855 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6856
6857         * font-lock.c (find_context): Fix C++ compile errors introduced by
6858         recent patch
6859
6860 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6861
6862         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6863         pragma, but earlier ones barf on the same pragma.
6864
6865 2001-02-06  Mike Sperber <mike@xemacs.org>
6866
6867         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6868         `configure-mule-lisp-directory'.
6869
6870 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6871
6872         Make sure dump-id.c is compiled in the same way as other .c's.
6873         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6874         * dump-id.h: Remove.
6875         * emacs.c: Move dump-id.h into dumper.h.
6876         * dumper.h: Move dump-id.h into dumper.h.
6877         * Makefile.in.in:
6878         Use standard .c.o rule for building dump-id.o.
6879         Remove preprocessor flags from link command.
6880         Add dump-id.o to ${otherobjs} if PDUMP.
6881
6882 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6883
6884         Port FSF 20.7 syntax table improvements.
6885         * syntax.c.
6886         * syntax.h.
6887
6888         Fixups for new syntax table stuff.
6889         * dired.c: Include syntax.c.
6890         (Fdirectory_files): Initialize regex_match_object and
6891         regex_emacs_buffer.
6892         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6893         and Fget_char_property.
6894
6895         Use ported FSF 20.7 syntax table improvements.
6896         * font-lock.c.
6897         * regex.c.
6898         * search.c.
6899         
6900 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6901
6902         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6903         Unixware's enum boolean from sys/types.h.
6904
6905 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6906
6907         Fix support for building with latest Purify.
6908         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6909         (PURIFY_FLAGS): Likewise.
6910
6911 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6912
6913         * fileio.c (lisp_string_set_file_times): New.
6914         * fileio.c (Fcopy_file): Use it.
6915         Fixes bug:
6916         (copy-file filename non-ascii-filename t t)
6917         ==> No such file or directory, non-ascii-filename
6918
6919 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6920
6921         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6922         USHRT_MAX seems clearer than ~0 anyways.
6923
6924 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6925
6926         dumper improvements.  Inspired by Olivier.
6927         * dumper.c (pdump_max_align): New.
6928         * dumper.c (pdump_add_entry): Use pdump_max_align.
6929         * dumper.c (pdump_get_entry_list): Likewise.
6930         * dumper.c (pdump_scan_by_alignment): Likewise.
6931         Don't iterate through unnecessary alignments.
6932         * dumper.c (pdump_file_get): No need to align result of malloc().
6933         * dumper.c (pdump_mallocadr): Remove.  
6934         The result of malloc() is guaranteed to be maximally aligned.
6935         * dumper.c: s/elmt/elt/g;
6936         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6937         * dumper.c (pdump_alert_undump_object): Likewise.
6938         * dumper.c (pdump_align_table): 
6939         Don't support alignments > 64.
6940         Store ALIGNOF's, not shift counts, in table.
6941
6942 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6943
6944         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6945         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6946         * systime.h: Use HAVE_UTIME.
6947         * sysdep.c (struct utimbuf): Remove.
6948         * sysdep.c (set_file_times): Prefer utime() to utimes().
6949         * config.h.in (HAVE_UTIME): New.
6950         * config.h.in (HAVE_UTIME_H): Remove.
6951         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6952
6953 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6954
6955         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6956
6957 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6958
6959         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6960
6961 2001-02-08  Martin Buchholz <martin@xemacs.org>
6962
6963         * XEmacs 21.2.44 "Thalia" is released.
6964
6965 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6966
6967         Fixes crashes in kill-emacs on some systems.
6968         * process-unix.c (unix_kill_child_process):
6969         It's OK for kill() to fail with ESRCH.
6970
6971 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6972
6973         Contortions to make .gdbinit tricks work on most systems.
6974         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6975         * alloc.c (dbg_valmask): Make non-const.
6976         * alloc.c (dbg_typemask): Make non-const.
6977         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6978         * alloc.c (dbg_valbits): Make non-const.
6979         * alloc.c (dbg_gctypebits): Make non-const.
6980         * .gdbinit (decode_object): Make it work with AIX cc.
6981
6982 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6983
6984         * elhash.c (make_general_lisp_hash_table):
6985         Use simpler and more efficient calloc to clear entries.
6986
6987 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6988
6989         * window.c (window_scroll): Work around an AIX C compiler bug.
6990         Fixes 'scroll-up' does nothing problem with xlC.
6991
6992 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6993
6994         * .gdbinit: Remove obsolete comment.
6995
6996 2001-01-31  Mike Alexander  <mta@arbortext.com>
6997
6998         * select.c (Fown_selection_internal): Set owned_p for device
6999         method correctly.
7000
7001 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7002
7003         Port to g++ 2.97.
7004         "not" cannot be used as a macro name as it is an operator in C++
7005         * config.h.in: Stop #defining `not'.
7006         * chartab.c (check_category_char): not ==> not_p
7007         * chartab.h: Likewise.
7008         * regex.c (re_match_2_internal): Likewise.
7009
7010 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7011
7012         * lisp-disunion.h: Fix up comments.
7013
7014 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7015
7016         * keymap.c (define_key_check_and_coerce_keysym):
7017         (syms_of_keymap):
7018         Support mouse-6 and mouse-7 bindings in the obvious way.
7019
7020 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7021
7022         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7023
7024 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7025
7026         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7027         Previous patch missed DEFVAR_INT_MAGIC.
7028         Make sure future DEFVAR_foo use correct types.
7029         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7030         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7031         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7032         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7033         * (DEFVAR_INT): Likewise.
7034         * redisplay.c (vertical_clip): Should be of type Fixnum.
7035         * redisplay.c (horizontal_clip): Likewise.
7036         * lisp.h (dump_add_opaque_int): New.
7037         (dump_add_opaque_fixnum): New.
7038
7039 2001-01-29  Andy Piper  <andy@xemacs.org>
7040
7041         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7042         since they can be eval'ed
7043
7044 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7045
7046         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7047         Oops, XEmacs redefines `class'.  Use `typename' instead.
7048
7049 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7050
7051         * dumper.c: Fix C++ compile errors.
7052
7053 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7054
7055         * tparam.c: Use correct prototypes.
7056
7057 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7058
7059         * sysproc.h: #include util.h for NetBSD's openpty.
7060
7061 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7062
7063         More 64-bit correctness.
7064         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7065         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7066         Fix up comments.
7067         This finally finishes the 64-bit SGI port.
7068         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7069         * symbols.c: Fix up comments and type casts.
7070         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7071         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7072         * symeval.h (Fixnum): New type.
7073         * symeval.h (symbol_value_type): Fix up comment.
7074
7075         * commands.h:
7076         * nt.c:
7077         * emacs.c:
7078         * data.c:
7079         * redisplay.c:
7080         * abbrev.c:
7081         * dired-msw.c:
7082         * event-Xt.c:
7083         * eldap.c:
7084         * window.c:
7085         * sound.c:
7086         * event-stream.c:
7087         * eval.c:
7088         * buffer.c:
7089         * mule-canna.c: A million DEFVAR_INTs here...
7090         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7091         * extents.c:
7092         * cmdloop.c:
7093         * lisp.h:
7094         * select-x.c:
7095         * console-x.h:
7096         * event-msw.c:
7097         * mule-wnnfns.c:
7098         * hpplay.c:
7099         * ralloc.c:
7100         * alloc.c:
7101         * keymap.c:
7102         * profile.c:
7103         s/int/Fixnum/g in DEFVAR_INT declarations.
7104
7105 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7106
7107         Port pdump to SGI alignment-sensitive environment.
7108         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7109         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7110         properly aligned.
7111         Define and use aligned reading and writing macros.
7112         Use buffered stdio instead of posix i/o for faster dumping.
7113         Eliminate kludgy 256 byte space for header.
7114         Read and write from dump file using structs for alignment safety.
7115         * dumper.c (pdump_align_stream): New.
7116         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7117         * dumper.c (PDUMP_READ_ALIGNED): New.
7118         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7119         * dumper.c (pdump_static_Lisp_Object): New struct.
7120         * dumper.c (pdump_static_pointer): New struct.
7121         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7122         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7123         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7124         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7125
7126         * dumper.c (pdump_backtrace):
7127         * dumper.c (pdump_get_indirect_count):
7128         * dumper.c (pdump_register_object):
7129         * dumper.c (pdump_register_struct):
7130         * dumper.c (pdump_reloc_one):
7131         * dumper.c (pdump_scan_by_alignment):
7132         * dumper.c (pdump_dump_from_root_struct_ptrs):
7133         * dumper.c (pdump_dump_opaques):
7134         * dumper.c (pdump_dump_rtables):
7135         * dumper.c (pdump_dump_from_root_objects):
7136         * dumper.c (pdump):
7137         * dumper.c (pdump_load_finish):
7138         Use aligned reading and writing.
7139
7140         * dumper.c (pdump_free): Make static.
7141         * dumper.c (pdump_hFile): Likewise.
7142         * dumper.c (pdump_hMap): Likewise.
7143
7144 2001-01-26  Martin Buchholz <martin@xemacs.org>
7145
7146         * XEmacs 21.2.43 "Terspichore" is released.
7147
7148 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7149
7150         Type fiddling for window_config.saved_windows_count
7151         * window.c (struct window_config): 
7152         Make saved_windows_count member unsigned.
7153         * window.c (sizeof_window_config_for_n_windows): 
7154         Make parameter unsigned.
7155         * window.c (mark_window_config):
7156         * window.c (window_config_equal):
7157         * window.c (free_window_configuration):
7158         * window.c (Fset_window_configuration):
7159         * window.c (count_windows):
7160         * window.c (Fcurrent_window_configuration):
7161         * window.c (reinit_vars_of_window):
7162         Update all callers and users.
7163
7164 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7165
7166         Alignment correctness for flexible arrays.
7167         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7168         Make alignment-correct. Add interesting comments.
7169         * alloc.c (size_vector):
7170         * alloc.c (make_vector_internal):
7171         * alloc.c (make_bit_vector_internal):
7172         * alloc.c (sweep_bit_vectors_1):
7173         * fns.c (size_bit_vector):
7174         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7175         * window.c (sizeof_window_config_for_n_windows): 
7176         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7177
7178 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7179
7180         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7181
7182 2001-01-23  Andy Piper  <andy@xemacs.org>
7183
7184         * select.c (Fown_selection_internal): pass owned_p
7185
7186         * select-msw.c (mswindows_own_selection): New Signature.
7187
7188         * console.h (struct console_methods): add owned_p to
7189         _own_selection.
7190
7191         * select-x.c (x_own_selection): pass owned_p
7192         (hack_motif_clipboard_selection): use owned_p
7193         (vars_of_select_x): new variable -
7194         x_selection_strict_motif_ownership.
7195
7196 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7197
7198         * specifier.h (specifier_data_offset): Remove pointless parens.
7199         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7200
7201 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7202
7203         Make Lisp_Object sizeof methods be alignment-correct.
7204         pdump must restore objects to the same alignment as the C compiler
7205         assumes.  It really matters on SGIs.
7206         * lstream.c (aligned_sizeof_lstream): New.
7207         (sizeof_lstream): Use aligned_sizeof_lstream.
7208         (Lstream_new): Likewise.
7209         * opaque.c (aligned_sizeof_opaque): New.
7210         (sizeof_opaque): Use aligned_sizeof_opaque.
7211         (make_opaque): Likewise.
7212         * specifier.c (aligned_sizeof_specifier): New.
7213         (sizeof_specifier): Use aligned_sizeof_specifier.
7214         (make_specifier_internal): Likewise.
7215
7216 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7217
7218         * lstream.h (struct lstream): Use max_align_t for trailing data.
7219         * specifier.h (struct Lisp_Specifier): Likewise.
7220
7221 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7222
7223         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7224         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7225         (CCL_SUSPEND): Likewise.
7226         (CCL_INVALID_CMD): Likewise.
7227         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7228         (ccl_driver): Likewise.
7229         (CCL_WRITE_CHAR): Macro hygiene.
7230         (CCL_WRITE_STRING): Macro hygiene.
7231
7232 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7233
7234         Port "portable" dumper to SunOS 4 and HP-UX.
7235         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7236         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7237         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7238
7239 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7240
7241         * lisp.h (ALIGNOF): A better definition for C++.
7242
7243 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7244
7245         Macro hygiene.
7246         Fix printf warnings: int format, long int arg.
7247         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7248         (PUSH_FAILURE_POINT): Use correct printf formats.
7249         (POP_FAILURE_POINT): Use correct printf formats.  
7250         Use do {...} while (0)
7251
7252 2001-01-20  Martin Buchholz <martin@xemacs.org>
7253
7254         * XEmacs 21.2.42 "Poseidon" is released.
7255
7256 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7257
7258         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7259
7260 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7261
7262         De-kludgify FIXED_TYPE free list frobbing.
7263         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7264         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7265         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7266         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7267         * alloc.c (LRECORD_FREE_P): New.
7268         * alloc.c (MARK_LRECORD_AS_FREE): New.
7269         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7270         * alloc.c (STRUCT_FREE_P): Deleted.
7271         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7272         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7273         * alloc.c (STRING_CHARS_FREE_P): New.
7274         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7275         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7276         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7277         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7278         * alloc.c (resize_string): Use new definitions.
7279         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7280         * alloc.c (verify_string_chars_integrity): Use new definitions.
7281         * alloc.c (compact_string_chars): Use new definitions.
7282         * alloc.c: Update monster comments.
7283         * lrecord.h (lrecord_type): Add some new lrecord types for
7284         alloc.c's use.
7285
7286 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7287
7288         Improve alignment hackery.
7289         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7290         (max_align_t): Moved from opaque.h - general purpose.
7291         (ALIGN_PTR): Use size_t, not long.
7292         * opaque.h (max_align_t): Move to lisp.h.
7293
7294 2001-01-18  Norbert Koch  <nk@LF.net>
7295
7296         * gui.h: Fix and add prototypes to fix build problems.
7297
7298 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7299
7300         temacs is going away, so `dump-temacs' is now a bad name.
7301         * .dbxrc (dump-temacs): Rename to `dmp'.
7302         * .gdbinit (dump-temacs): Rename to `dmp'.
7303
7304 2001-01-17  Andy Piper  <andy@xemacs.org>
7305
7306         * glyphs.c (print_image_instance): comment to make martin happy.
7307
7308         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7309         change.
7310
7311         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7312         activation.
7313         (mswindows_tab_control_redisplay): warning suppression.
7314
7315         * glyphs-widget.c (widget_update): re-write to cope with updated
7316         items.
7317         (widget_instantiate): use new gui_item functions.
7318         (tab_control_update): deleted.
7319         (progress_gauge_update): deleted.
7320         (image_instantiator_progress_guage): take out update reference.
7321         (image_instantiator_tree_view): ditto.
7322         (image_instantiator_tab_control): ditto.
7323
7324         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7325         Right the new way.
7326         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7327         return whether anything was changed.
7328         (update_gui_item_keywords): as it sounds.
7329
7330         * gui.h: declare widget_gui_parse_item_keywords.
7331
7332         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7333         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7334
7335 2001-01-17  Martin Buchholz <martin@xemacs.org>
7336
7337         * XEmacs 21.2.41 "Polyhymnia" is released.
7338
7339 2001-01-16  Didier Verna  <didier@xemacs.org>
7340
7341         * glyphs.c (image_instantiate): don't use fallbacks when
7342         instantiating a face's background pixmap by inheritance.
7343
7344 2001-01-14  Mike Sperber <mike@xemacs.org>
7345
7346         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7347         Conditionalize accordingly.
7348
7349 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7350
7351         * dumper.c (pdump_file_get): Fix a compiler warning.
7352
7353 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7354
7355         Make Purify happy when pdumping.
7356         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7357         iniitalizing all bits of new lisp object memory.
7358         * symbols.c (Fmake_local_variable): Likewise.
7359         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7360         * symbols.c (Fdefvaralias): Likewise.
7361         * mule-charset.c (vars_of_mule_charset): Likewise.
7362
7363 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7364         Add the `-nd' flag when running pre-dump operations under the debugger.
7365         * .dbxrc (run-temacs): Add `-nd'.
7366         * .dbxrc (update-elc): Likewise.
7367         * .dbxrc (dump-temacs): Likewise.
7368         * .gdbinit (run-temacs): Likewise.
7369         * .gdbinit (check-temacs): Likewise.
7370         * .gdbinit (update-elc): Likewise.
7371         * .gdbinit (dump-temacs): Likewise.
7372
7373 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7374
7375         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7376         export OBJECT_MODE=64
7377         configure --pdump --use-union-type=no
7378         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7379         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7380
7381         * miscplay.c (sndcnv8U_2mono):
7382         Avoid two uses of `++' in the same expression.
7383         Suppresses a GCC warning.
7384
7385 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7386
7387         Make sure future compilers don't miscompile alloc.c.
7388         * alloc.c:
7389         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7390         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7391
7392 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7393
7394         * dumper.c: A little post-pdump-rename comment fixup.
7395
7396 2001-01-09  Jerry James  <james@eecs.ku.edu>
7397
7398         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7399
7400 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7401
7402         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7403         script:
7404         #!/bin/sh
7405         replace_symbol () {
7406           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7407         }
7408
7409         replace_symbol pdump_wire_lists pdump_weak_object_chains
7410         replace_symbol pdump_wire_list dump_add_weak_object_chain
7411
7412         replace_symbol pdump_wires pdump_root_objects
7413         replace_symbol pdump_wire dump_add_root_object
7414
7415         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7416         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7417
7418         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7419         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7420         replace_symbol dumpstructinfo pdump_root_struct_ptr
7421         replace_symbol dumpstruct dump_add_root_struct_ptr
7422
7423         replace_symbol dumpopaque dump_add_opaque
7424         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7425         replace_symbol dumpopaqueinfos pdump_opaques
7426         replace_symbol dumpopaqueinfo pdump_opaque
7427
7428         replace_symbol nb_structdump nb_root_struct_ptrs
7429         replace_symbol nb_opaquedump nb_opaques
7430
7431         replace_symbol align_table pdump_align_table
7432         replace_symbol dump_header pdump_header
7433
7434         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7435         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7436
7437
7438 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7439
7440         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7441         optimizing bytecount_to_charcount().
7442
7443 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7444
7445         * config.h.in:
7446         (HAVE_DLFCN_H): Removed.
7447         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7448
7449 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7450
7451         Portable dumper maintainability improvements.
7452         * alloc.c (staticpro):
7453         * alloc.c (staticpro_nodump):
7454         * alloc.c (garbage_collect_1):
7455         * alloc.c (reinit_alloc_once_early):
7456         * alloc.c (init_alloc_once_early):
7457         * alloc.c: Move dumper functions to alloc.c.
7458         * dumper.c (pdump_backtrace):
7459         * dumper.c (pdump_dump_structs):
7460         * dumper.c (pdump_dump_opaques):
7461         * dumper.c (pdump_dump_rtables):
7462         * dumper.c (pdump_dump_wired):
7463         * dumper.c (pdump):
7464         * dumper.c (pdump_load_check):
7465         * dumper.c (pdump_load_finish):
7466         * dumper.c (pdump_file_unmap):
7467         * dumper.c (pdump_file_get):
7468         * dumper.c (pdump_resource_free):
7469         * dumper.c (pdump_resource_get):
7470         * dumper.c (pdump_file_free):
7471         * dumper.c (pdump_file_try):
7472         * dumper.c (pdump_load):
7473         Remove fixed size limits on staticpro(), staticpro_nodump(),
7474         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7475         Remove custom code for dumping lrecord_implementations_table - use
7476         dumpopaque instead.
7477         Remove (most of the) custom code for dumping staticpros - dump it
7478         like any other dynarr.
7479
7480         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7481         * dumper.c: Moved functions from alloc.c.
7482         * alloc.c (dumpstruct): Moved to dumper.c.
7483         * alloc.c (dumpopaque): Likewise.
7484         * alloc.c (pdump_wire): Likewise.
7485         * alloc.c (pdump_wire_list): Likewise.
7486
7487         * lisp.h (Dynarr_sizeof): New.
7488         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7489         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7490         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7491
7492         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7493         * lisp.h (dumpopaque): ditto.
7494         * lisp.h (pdump_wire): ditto.
7495         * lisp.h (pdump_wire_list): ditto.
7496
7497 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7498
7499         * make-src-depend (PrintPatternDeps):
7500         Use `sort' to make output independent of perl version.
7501
7502 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7503
7504         Port to Netbsd 1.5.
7505         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7506         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7507
7508 2001-01-03  Didier Verna  <didier@xemacs.org>
7509
7510         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7511         that `focus_frame' is alive before thinking of calling
7512         `redisplay_redraw_cursor' on it.
7513
7514 2001-01-08  Martin Buchholz <martin@xemacs.org>
7515
7516         * XEmacs 21.2.40 is released.
7517
7518 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7519
7520         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7521
7522 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7523
7524         * alloc.c (dbg_valmask): Make const.
7525         * alloc.c (dbg_typemask): Make const.
7526         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7527         * alloc.c (dbg_valbits): Make const.
7528         * alloc.c (dbg_gctypebits): Make const.
7529
7530 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7531
7532         * redisplay-x.c (x_bevel_area):
7533         redisplay.h (struct rune):
7534         Typo fixes in comments.
7535
7536 2001-01-05  Andy Piper  <andy@xemacs.org>
7537
7538         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7539         adjustment.
7540
7541         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7542
7543 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7544
7545         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7546
7547         * mule-ccl.c (stack_idx_of_map_multiple):
7548         Non const global data must not be initialized!
7549         Found by MIYASHITA Hisashi.
7550
7551 2001-01-02  Andy Piper  <andy@xemacs.org>
7552
7553         * frame.c (change_frame_size): make sure frame size is always
7554         marked as changed.
7555
7556         * glyphs.c (image_instance_layout): minor code reuse.
7557
7558         * window.c (Fcurrent_window_configuration): revert previous
7559         change.
7560
7561 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7562
7563         * glyphs.h:
7564         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7565
7566 2000-12-31  Andy Piper  <andy@xemacs.org>
7567
7568         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7569         when widget gets unmapped.
7570
7571         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7572         function. Make sure widgets losing focus don't just drop it.
7573         (handle_focus_event_1): record the widget with focus.
7574
7575 2000-12-31  Andy Piper  <andy@xemacs.org>
7576
7577         * window.c (allocate_window): use
7578         make_image_instance_cache_hash_table.
7579         (make_dummy_parent): ditto.
7580         (Fset_window_configuration): ditto.
7581
7582         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7583
7584         * glyphs.c (process_image_string_instantiator): use
7585         INSTANTIATOR_TYPE.
7586         (get_image_instantiator_governing_domain): ditto.
7587         (normalize_image_instantiator): ditto.
7588         (instantiate_image_instantiator): ditto.
7589         (make_image_instance_1): ditto.
7590         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7591         (instantiator_eq_equal): new function for use with instance hash
7592         tables.
7593         (instantiator_eq_hash): ditto.
7594         (make_image_instance_cache_hash_table): create a suitable hash
7595         table for storing image instances.
7596
7597         * elhash.h (hash_table_weakness): new internal weakness type
7598         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7599         declare new functions.
7600
7601         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7602         another weakness type for glyphs.
7603         (make_standard_lisp_hash_table): new function split out from
7604         make_general_lisp_hash_table.
7605         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7606         (hash_table_instantiate): ditto.
7607         (Fmake_hash_table): ditto.
7608
7609 2000-12-31  Martin Buchholz <martin@xemacs.org>
7610
7611         * XEmacs 21.2.39 is released.
7612
7613 2000-12-29  Andy Piper  <andy@xemacs.org>
7614
7615         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7616
7617         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7618         the frame has changed so that we pick up geometry changes such as
7619         menubar visibility.
7620
7621 2000-12-28  Andy Piper  <andy@xemacs.org>
7622
7623         * lastfile.c (my_ebss): make a char array so we can pad the
7624         bss. Fixes cygwin unexec.
7625
7626         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7627
7628 2000-12-26  Andy Piper  <andy@xemacs.org>
7629
7630         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7631         comments and try and be more precise about a non-/SIGIO world.
7632         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7633         SIGIO.
7634
7635         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7636         we don't normalize to zero width or height.
7637
7638 2000-12-24  Andy Piper  <andy@xemacs.org>
7639
7640         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7641
7642 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7643
7644         * s/sco5.h: SCO 5 has pty support.
7645
7646 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7647
7648         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7649         input-method-xlib.c contains whole contents of input-method-xfs.c,
7650         so we can use input-method-xlib.c's code for USE_XFONTSET
7651         using #ifdefs.
7652         * input-method-xfs.c: removed.
7653
7654 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7655
7656         * file-coding.h (enum coding_category_type): reorder enumerators to
7657         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7658         (now one greater than largest real coding_category_type enumerator).
7659         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7660         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7661         Fcoding_category_list, Fset_coding_priority_list,
7662         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7663         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7664
7665 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7666
7667         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7668         * redisplay-output.c (redisplay_output_window): Clear top of window
7669         when face is changed.
7670         * redisplay-x.c (x_redraw_exposed_window): Call
7671         redisplay_clear_top_of_window.
7672         * redisplay.h: Publish redisplay_clear_top_of_window.
7673
7674 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7675
7676         * buffer.c (Fkill_buffer): Map over all devices.
7677         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7678         (list_windows): New function.
7679         (list_all_windows): Ditto.
7680         (Freplace_buffer_in_windows): Use them.
7681
7682 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7683
7684         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7685         (Fopen_database): Use `db_create' instead of `db_open'.
7686         (syms_of_database): Initialize Qqueue.
7687
7688 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7689
7690         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7691         buffer_local_face_property.
7692         * buffer.h (struct buffer): New member buffer_local_face_property.
7693         * window.c (Fset_window_buffer):  Mark window's face as changed
7694         when buffer has buffer local face.
7695         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7696         * objects.c (color_after_change): Set buffer_local_face_property
7697         when locale of face specifier is buffer.
7698         * objects.c (font_after_change): Ditto.
7699         * objects.c (face_boolean_after_change): Ditto.
7700         * glyphs.c (image_after_change): Ditto.
7701
7702 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7703
7704         * nt.c (mswindows_fstat): Report file permissions, volume serial
7705         number, etc. Code adapted from FSF Emacs 20.7.
7706
7707 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7708
7709         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7710         of stat when we don't have symbolic links, to make sure
7711         mswindows_stat is called on mswindows.
7712
7713 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7714
7715         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7716
7717 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7718
7719         * doprnt.c (emacs_doprnt_1): More printing fixes.
7720         Make printing of numbers compatible with libc and FSF Emacs.
7721         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7722         Use the system printf to do most of the hard work of formatting,
7723         instead of doprnt_1().
7724         Calculate memory to allocate for format string.
7725         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7726         (doprnt_1): Cleaner code and documentation.
7727
7728 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7729
7730         * Makefile.in.in: Use the loop variable to install headers.
7731
7732 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7733
7734         * window.c (Fsplit_window): Don't invalidate face cache.
7735
7736 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7737
7738         * minibuf.c (Fall_completions): Undo the previous change
7739         which removed checking elements start with space.
7740
7741 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7742
7743         * mule-canna.c: Didier suppression.
7744
7745 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7746
7747         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7748         (warning suppression).  Add English comment translations.
7749
7750 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7751
7752         * unexelfsgi.c (unexec): Better test for mmap failure.
7753
7754 2000-12-05  Martin Buchholz <martin@xemacs.org>
7755
7756         * XEmacs 21.2.38 is released.
7757
7758 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7759
7760         * redisplay.c (bar-cursor): Make a user variable.
7761
7762         * symsinit.h: Add init_postgresql_from_environment.
7763
7764 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7765
7766         * regex.c: Convert to clean C.
7767
7768 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7769
7770         * realpath.c:
7771         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7772         initialization.
7773         (sys_readlink): renamed to system_readlink to avoid conflict with
7774         the other sys_readlink.
7775
7776 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7777
7778         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7779
7780 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7781
7782         * postgresql.c (init_postgresql_from_environment): new function.
7783         (vars_of_postgresql): Move code initializing Lisp variables out and
7784         into init_postgresql_from_environment.
7785         emacs.c (main_1): Call init_postgresql_from_environment if and only
7786         if running a dumped XEmacs.
7787
7788 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7789
7790         * buffer.c: Make find-file-compare-truenames default to true on
7791         windows.
7792
7793         * realpath.c (win32_abs_start):
7794         (cygwin_readlink):
7795         (win32_readlink): New functions.
7796         (xrealpath): Return really real filenames on windows.
7797
7798         * fileio.c (Ffile_truename): Make file-truename work on windows.
7799
7800 2000-11-29  Didier Verna  <didier@xemacs.org>
7801
7802         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7803         * faces.c (update_face_cachel_data): use it.
7804         * faces.c (add_face_cachel): use it. Complete background pixmap
7805         frobbing in face cache if `update_face_cachel_data' has not done so.
7806
7807 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7808
7809         * search.c (string_match_1): Don't set last_thing_searched
7810         when search failed.
7811
7812 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7813
7814         * buffer.c: Include casetab.h
7815         (common_init_complex_vars_of_buffer): Use new case-table object.
7816         * buffer.h: Include casetab.h
7817         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7818         (DOWNCASE_TABLE_OF): Ditto.
7819         * bufslots.h: Remove char-tables and add case-table.
7820         * casetab.c: Include casetab.h
7821         (CASE_TABLE_P): Removed.
7822         (mark_case_table): New function.
7823         (allocate_case_table): New function.
7824         (Fcase_table_p): Use new case-table.
7825         (case_table_char): New function.
7826         (Fget_case_table): Ditto.
7827         (Fput_case_table): Ditto.
7828         (Fput_case_table_pair): Ditto.
7829         (Fcopy_case_table): Ditto.
7830         (Fcurrent_case_table): Return case-table.
7831         (Fstandard_case_table): Return case-table.
7832         (Fset_case_table): Fix doc-string.
7833         (set_case_table): Use case-table
7834         (syms_of_casetab): DEFSUBR new functions.
7835         (complex_vars_of_casetab): Set up standard case-table.
7836         * casetab.h: New file.
7837         * editfns.c: Include casetab.h
7838         (Fcompare_buffer_substrings): Use case-table.
7839         * inline.c: Include casetab.h
7840         * lisp.h: Remove bogus extern.
7841         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7842         * search.c: Include casetab.h
7843         (TRANSLATE_ASCII): Removed.
7844         (TRANSLATE): Unconditionally translate character.
7845         (looking_at_1): Use case-table.
7846         (string_match_1): Ditto.
7847         (fast_string_match): Ditto.
7848         (search_command): Ditto.
7849         (search_buffer): Separate boyer_moore.  Check whether
7850         boyer_moore is possible.
7851         (simple_search): New function.
7852         (boyer_moore): Separated from search_buffer. Translate char.
7853
7854 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7855
7856         * regex.c (RE_TR_ASCII): Removed.
7857         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7858         (PATFETCH): Call PATFETCH_RAW.
7859         (PATFETCH_RAW): Fetch Emchar.
7860         (PATUNFETCH): Decrement charptr.
7861         (GET_BUFFER_SPACE): Rename b to buf_end.
7862         (BUF_PUSH): Ditto.
7863         (BUF_PUSH_2): Ditto.
7864         (BUF_PUSH_3): Ditto.
7865         (EXTEND_BUFFER): Ditto.
7866         (SET_LIST_BIT): Ditto.
7867         (regex_compile): Ditto.  Translate non ASCII char.
7868         (compile_range): Ditto.
7869         (re_search_2): Ditto.
7870         (re_match_2_internal): Compare Emchar.
7871         (bcmp_translate): Ditto.
7872
7873 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7874
7875         * lisp.h (basic char/int typedefs):  comment improvement.
7876
7877 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7878
7879         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7880         unstomp inhibit_site_lisp.  Improve comments.
7881
7882 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7883
7884         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7885
7886 2000-11-28  Andy Piper  <andy@xemacs.org>
7887
7888         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7889         clipped display for windows in the gutter also.
7890         (redisplay_display_boxes_in_window_p): change semantics of return
7891         codes to be more intuitive.
7892
7893         * gutter.h: declare display_boxes_in_gutter_p.
7894
7895         * gutter.c (display_boxes_in_gutter_p): new function for
7896         redisplay.
7897
7898 2000-11-22  Andy Piper  <andy@xemacs.org>
7899
7900         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7901         autodetect domain.
7902
7903 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7904
7905         * callproc.c (Fold_call_process_internal):
7906         * gpm.c (Freceive_gpm_event):
7907         (tty_get_foreign_selection): Might be just warning supression.
7908         * fileio.c (Fwrite_region_internal):
7909         (Fset_visited_file_modtime):
7910         * keymap.c (event_matches_key_specifier_p):
7911         Initialize GCPROed variable.
7912
7913         * menubar-x.c (command_builder_find_menu_accelerator):
7914         Initialize before use.
7915
7916 2000-11-23  Andy Piper  <andy@xemacs.org>
7917
7918         * unexcw.c (unexec): make the resulting executable executable.
7919
7920 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7921
7922         * doc.c (get_doc_string):
7923         Use size_t, not int, for result of XSTRING_LENGTH.
7924
7925         * cmds.c (Fdelete_char):
7926         * cmds.c (Fpoint_at_eol):
7927         * cmds.c (Fself_insert_command):
7928         Use EMACS_INT, not int, for result of XINT.
7929         Someday, someone will want to insert more than 2**31 identical characters.
7930
7931         * cmds.c (Fdelete_char):
7932         * cmds.c (Fdelete_backward_char):
7933         * syntax.c (Fforward_word):
7934         * syntax.c (Fforward_comment):
7935         Make COUNT argument optional, for consistency with forward-char et al.
7936
7937 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7938
7939         * lisp.h:
7940         * print.c (long_to_string):
7941         Return a useful value: the pointer at end of data written.
7942
7943         * doprnt.c:
7944         Use `static const char * const' for constant strings.
7945         (union printf_arg): Delete `i', `ui' members.
7946         (get_doprnt_args):
7947         (emacs_doprnt_1):
7948         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7949         Do all printf-ing via the `l' specifier.
7950         Use EMACS_INT instead of int.
7951         Optimize.
7952
7953 2000-11-20  Didier Verna  <didier@xemacs.org>
7954
7955         * faces.c (update_face_cachel_data): don't frob the background
7956         pixmap when the window is being created. The face is needed but
7957         does not exist yet.
7958
7959 2000-11-20  Andy Piper  <andy@xemacs.org>
7960
7961         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7962         messing with a debug environment.
7963
7964 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7965
7966         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7967
7968 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7969
7970         * casetab.c (Fcase_table_p): Fix compile error and crash.
7971
7972 2000-11-18  Philip Aston  <philipa@mail.com>
7973
7974         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7975
7976 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7977
7978         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7979         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7980
7981 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7982
7983         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7984         * unexelf.c: Use HAVE_ELF_H.
7985         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7986         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7987         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7988         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7989         for testing.
7990         So this is an unexelfsgi.c from a different line of development.
7991
7992 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7993
7994         * regex.c (RE_TR_ASCII): New function.
7995         (RE_TRANSLATE): Call it.
7996
7997 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7998
7999         * buffer.h (TRT_TABLE_OF): Remove assert.
8000         (IN_TRT_TABLE_DOMAIN): Removed.
8001
8002 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8003
8004         * free-hook.c (log_gcpro):
8005         (show_gcprohist): Add support for GCPRO5.
8006
8007 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8008
8009         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8010
8011 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8012
8013         * symeval.h: Declare flush_all_buffer_local_cache.
8014
8015         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8016         (flush_buffer_local_cache): Added.
8017         (flush_all_buffer_local_cache): Added.
8018
8019         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8020
8021         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8022         (pdump_dump_data): Ditto.
8023         (pdump_reloc_one): Ditto.
8024         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8025         before dumping.
8026
8027
8028 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8029
8030         * buffer.c: Remove if 0'ed entry.
8031         * buffer.h: Rewrite TRT to use char-table.
8032         * bufslots.h: Remove mirror tables.
8033         * casetab.c: Remove mirror tables.
8034         (CASE_TABLE_P): New macro.
8035         (Fcase_table_p): Element of a case table is string or char-table.
8036         (make_mirror_trt_table): Removed.
8037         (set_case_table): Setup char-table from strings for backward
8038         compatibility.
8039         * dired.c (Fdirectory_files):
8040         * dired-msw.c: (mswindows_get_files):
8041         * lisp.h: Change prototype of re_pattern_buffer.
8042         * regex.c: (RE_TRANSLATE): New macro.
8043         (TRANSLATE_P): Ditto.
8044         Change translate to type RE_TRANSLATE_TYPE.
8045         * regex.h: Define RE_TRANSLATE_TYPE
8046         * search.c (TRANSLATE): New macro.
8047         (TRANSLATE_ASCII): New macro.
8048         Translate table is changed to Lisp_Object.
8049         (signal_failure): Inhibit return.
8050
8051 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8052
8053         * device-msw.c:
8054         * eldap.c:
8055         * event-Xt.c:
8056         * event-stream.c:
8057         * print.c:
8058         Do UNGCPRO before return.
8059
8060 2000-11-14  Martin Buchholz <martin@xemacs.org>
8061
8062         * XEmacs 21.2.37 is released.
8063
8064 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8065
8066         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8067         Add comments about discarded return value.
8068
8069 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8070
8071         * callint.c:
8072         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8073
8074 2000-10-27  Andy Piper  <andy@xemacs.org>
8075
8076         * gutter.c (Fset_default_gutter_position): default left and right
8077         gutters to visible.
8078         (calculate_gutter_size): calculate resonable heuristic for left
8079         and right gutter sizes.
8080         (specifier_vars_of_gutter): change left and right gutter sizes to
8081         autodetect.
8082         (calculate_gutter_size_from_display_lines): new function.
8083         (output_gutter): check for resizing on left and right gutters.
8084         (clear_gutter): don't special case top and left gutters.
8085         (specifier_vars_of_gutter): use new signature for
8086         set_specifier_caching.
8087
8088         * glyphs-x.c (x_redisplay_widget): spelling fix.
8089         * glyphs.c (specifier_vars_of_glyphs):
8090         * menubar.c (specifier_vars_of_menubar):
8091         * redisplay.c (specifier_vars_of_redisplay):
8092         * toolbar.c (specifier_vars_of_toolbar):
8093         * window.c (specifier_vars_of_window):
8094         * scrollbar.c (specifier_vars_of_scrollbar):
8095         (complex_vars_of_scrollbar): use new signature for
8096         set_specifier_caching.
8097
8098         * specifier.c (set_specifier_caching): include recompute flag.
8099         (recompute_one_cached_specifier_in_window): always recompute if
8100         flag set.
8101         (recompute_one_cached_specifier_in_frame): ditto.
8102
8103         * specifier.h (struct specifier_caching): add recompute flag.
8104
8105 2000-10-24  Andy Piper  <andy@xemacs.org>
8106
8107         * unexcw.c (copy_executable_and_dump_data_section): add new
8108         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8109         5.0 happy.
8110
8111 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8112
8113         * console-x.h (x_device): New member modifier_release_time.
8114         * event-Xt.c (x_handle_sticky_modifiers):
8115         Bound interval modifier keys are sticky.
8116         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8117         * events.h: extern it.
8118
8119 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8120
8121         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8122
8123 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8124
8125         * event-stream.c (execute_command_event): Preserve current_events
8126         and the like when event is misc-user-event.
8127         Inhibit quit during the call to maybe_echo_keys.
8128
8129 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8130
8131         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8132         symlink when buffer is killed.
8133         (inhibit_clash_detection): New variable.
8134
8135 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8136
8137         * console.c (Fset_input_method): Trigger redisplay on tty.
8138
8139 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8140
8141         * process.c (Fprocess_status): Revert to previous behavior:
8142         (process-status "nosuchprocess") ==> nil
8143
8144 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8145
8146         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8147         Work around another GCC 2.95.2 optimizer bug.
8148
8149 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8150
8151         * process.c (Fget_process): Use LIST_LOOP_2.
8152         (kill_buffer_processes): Use LIST_LOOP_2.
8153
8154         * minibuf.c (Fall_completions):
8155         Delete old non-functional code for FSF fourth argument.
8156
8157         * frame.c (frame_matches_frame_spec):
8158         Renamed from `frame_matches_frametype'.  Update all callers.
8159         (device_matches_device_spec):
8160         Renamed from 'device_matches_console_spec'.  Update all callers.
8161
8162         * doc.c (Fsubstitute_command_keys):
8163         Remove buffer overflow crash.  Small code cleanups.
8164
8165         * casetab.c (check_case_table): Simpler code.
8166
8167         * window.c (Freplace_buffer_in_windows):
8168         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8169         (and similar implementation) as Fdelete_windows_on.
8170         Update all callers.
8171
8172         * alloc.c (Fmake_list):
8173         * alloc.c (make_vector):
8174         * alloc.c (Fmake_vector):
8175         * alloc.c (make_bit_vector):
8176         * alloc.c (Fmake_bit_vector):
8177         * alloc.c (Fbit_vector):
8178         * alloc.c (Fmake_string):
8179         * alloc.c (Fpurecopy):
8180         * alloc.c (Fmemory_limit):
8181         * buffer.c:
8182         * buffer.c (Fget_buffer):
8183         * buffer.c (Fkill_buffer):
8184         * buffer.c (complex_vars_of_buffer):
8185         * bytecode.c (Fcompiled_function_stack_depth):
8186         * callint.c (Fprefix_numeric_value):
8187         * event-stream.c:
8188         * event-stream.c (Fread_key_sequence):
8189         * casetab.c:
8190         * casetab.c (Fcase_table_p):
8191         * casetab.c (check_case_table):
8192         * casetab.c (Fset_case_table):
8193         * casetab.c (Fset_standard_case_table):
8194         * chartab.c:
8195         * chartab.c (Fchar_table_type):
8196         * chartab.c (Freset_char_table):
8197         * chartab.c (Fget_char_table):
8198         * chartab.c (Fget_range_char_table):
8199         * chartab.c (Fput_char_table):
8200         * chartab.c (Fmap_char_table):
8201         * chartab.c (Fcategory_table_p):
8202         * chartab.c (Fcheck_category_at):
8203         * chartab.c (Fchar_in_category_p):
8204         * chartab.c (Fcategory_table):
8205         * chartab.c (Fcopy_category_table):
8206         * chartab.c (Fset_category_table):
8207         * chartab.c (Fcategory_designator_p):
8208         * chartab.c (Fcategory_table_value_p):
8209         * cmds.c (Fdelete_char):
8210         * cmds.c (Fdelete_backward_char):
8211         * cmds.c (Fself_insert_command):
8212         * cmds.c (Fself_insert_internal):
8213         * console.c (Fvalid_console_type_p):
8214         * console.c (Fcdfw_console):
8215         * console.c (Fconsole_type):
8216         * console.c (Fconsole_name):
8217         * console.c (Fconsole_device_list):
8218         * console.c (Fconsole_on_window_system_p):
8219         * data.c:
8220         * data.c (Feq):
8221         * data.c (Fold_eq):
8222         * data.c (Fsubr_interactive):
8223         * data.c (Fchar_to_int):
8224         * data.c (Fint_to_char):
8225         * data.c (Fsetcar):
8226         * data.c (Fsetcdr):
8227         * data.c (Fnumber_to_string):
8228         * data.c (Fstring_to_number):
8229         * data.c (Frem):
8230         * database.c (mark_database):
8231         * database.c (finalize_database):
8232         * database.c (Fdatabase_live_p):
8233         * database.c (Fdatabasep):
8234         * device-x.c (Fx_get_resource):
8235         * device.c (Fdfw_device):
8236         * dired.c:
8237         * dired.c (Ffile_name_completion):
8238         * dired.c (Ffile_name_all_completions):
8239         * dired.c (Fuser_name_completion):
8240         * dired.c (Fuser_name_completion_1):
8241         * dired.c (Fuser_name_all_completions):
8242         * doc.c (Fdocumentation):
8243         * doc.c (Fdocumentation_property):
8244         * doc.c (Fsubstitute_command_keys):
8245         * editfns.c:
8246         * editfns.c (Fchar_to_string):
8247         * editfns.c (Fstring_to_char):
8248         * editfns.c (Ftemp_directory):
8249         * editfns.c (Finsert_char):
8250         * editfns.c (Fbuffer_substring_no_properties):
8251         * editfns.c (Fnarrow_to_region):
8252         * editfns.c (Fchar_equal):
8253         * editfns.c (Fchar_Equal):
8254         * editfns.c (Ftranspose_regions):
8255         * emacs.c (Fdump_emacs):
8256         * eval.c (Fthrow):
8257         * eval.c (Fcommand_execute):
8258         * eval.c (Fautoload):
8259         * eval.c (Fbacktrace):
8260         * eval.c (Fbacktrace_frame):
8261         * events.c:
8262         * events.c (Fcopy_event):
8263         * events.c (Fcharacter_to_event):
8264         * events.c (Fevent_button):
8265         * events.c (Fevent_process):
8266         * extents.c:
8267         * extents.c (Fnext_extent_change):
8268         * extents.c (Fextent_property):
8269         * faces.c (Ffacep):
8270         * faces.c (Fmake_face):
8271         * file-coding.c:
8272         * file-coding.c (Fencode_shift_jis_char):
8273         * file-coding.c (Fencode_big5_char):
8274         * fileio.c (Ffile_name_directory):
8275         * fileio.c (Ffile_name_nondirectory):
8276         * fileio.c (Ffile_name_as_directory):
8277         * fileio.c (Fdirectory_file_name):
8278         * fileio.c (Ffile_truename):
8279         * fileio.c (Fsubstitute_in_file_name):
8280         * fileio.c (Ffile_modes):
8281         * fileio.c (Fset_file_modes):
8282         * fileio.c (Fset_default_file_modes):
8283         * fileio.c (Fverify_visited_file_modtime):
8284         * floatfns.c (Facos):
8285         * floatfns.c (Fasin):
8286         * floatfns.c (Fatan):
8287         * floatfns.c (Fcos):
8288         * floatfns.c (Fsin):
8289         * floatfns.c (Ftan):
8290         * floatfns.c (Fbessel_j0):
8291         * floatfns.c (Fbessel_j1):
8292         * floatfns.c (Fbessel_jn):
8293         * floatfns.c (Fbessel_y0):
8294         * floatfns.c (Fbessel_y1):
8295         * floatfns.c (Fbessel_yn):
8296         * floatfns.c (Ferf):
8297         * floatfns.c (Ferfc):
8298         * floatfns.c (Flog_gamma):
8299         * floatfns.c (Fexp):
8300         * floatfns.c (Fexpt):
8301         * floatfns.c (Flog):
8302         * floatfns.c (Flog10):
8303         * floatfns.c (Fsqrt):
8304         * floatfns.c (Fcube_root):
8305         * floatfns.c (Facosh):
8306         * floatfns.c (Fasinh):
8307         * floatfns.c (Fatanh):
8308         * floatfns.c (Fcosh):
8309         * floatfns.c (Fsinh):
8310         * floatfns.c (Ftanh):
8311         * floatfns.c (Fabs):
8312         * floatfns.c (Ffloat):
8313         * floatfns.c (Flogb):
8314         * floatfns.c (Fceiling):
8315         * floatfns.c (Ffloor):
8316         * floatfns.c (Fround):
8317         * floatfns.c (Ftruncate):
8318         * floatfns.c (Ffceiling):
8319         * floatfns.c (Fffloor):
8320         * floatfns.c (Ffround):
8321         * floatfns.c (Fftruncate):
8322         * fns.c (Fstring_equal):
8323         * fns.c (Fstring_lessp):
8324         * fns.c (concat2):
8325         * fns.c (concat3):
8326         * fns.c (vconcat2):
8327         * fns.c (vconcat3):
8328         * fns.c (Fsubstring):
8329         * fns.c (Fassoc):
8330         * fns.c (Fold_assoc):
8331         * fns.c (assoc_no_quit):
8332         * fns.c (Fassq):
8333         * fns.c (Fold_assq):
8334         * fns.c (assq_no_quit):
8335         * fns.c (Frassoc):
8336         * fns.c (Fold_rassoc):
8337         * fns.c (Frassq):
8338         * fns.c (Fold_rassq):
8339         * fns.c (rassq_no_quit):
8340         * fns.c (Fremassoc):
8341         * fns.c (remassoc_no_quit):
8342         * fns.c (Fremassq):
8343         * fns.c (remassq_no_quit):
8344         * fns.c (Fremrassoc):
8345         * fns.c (Fremrassq):
8346         * fns.c (remrassq_no_quit):
8347         * fns.c (Fsort):
8348         * fns.c (Fplist_get):
8349         * fns.c (Fplist_put):
8350         * fns.c (Fplist_remprop):
8351         * fns.c (Fplist_member):
8352         * fns.c (Flax_plist_get):
8353         * fns.c (Flax_plist_put):
8354         * fns.c (Flax_plist_remprop):
8355         * fns.c (Flax_plist_member):
8356         * fns.c (Fequal):
8357         * fns.c (Fold_equal):
8358         * fns.c (Frequire):
8359         * fns.c (Fbase64_encode_region):
8360         * fns.c (Fbase64_encode_string):
8361         * fns.c (Fbase64_decode_region):
8362         * frame.c:
8363         * frame.c (frame_matches_frame_spec):
8364         * frame.c (device_matches_device_spec):
8365         * frame.c (next_frame):
8366         * frame.c (previous_frame):
8367         * frame.c (Fnext_frame):
8368         * frame.c (Fprevious_frame):
8369         * frame.c (Fframe_property):
8370         * frame.c (Fset_frame_height):
8371         * frame.c (Fset_frame_size):
8372         * frame.h:
8373         * glyphs.c:
8374         * glyphs.c (if):
8375         * glyphs.c (decode_error_behavior_flag):
8376         * glyphs.c (Fmake_image_instance):
8377         * indent.c (Findent_to):
8378         * intl.c (Fignore_defer_gettext):
8379         * keymap.c (Fkeymapp):
8380         * keymap.c (Flookup_key):
8381         * lread.c:
8382         * lread.c (Fload_internal):
8383         * lread.c (Feval_buffer):
8384         * lread.c (Feval_region):
8385         * macros.c (Fexecute_kbd_macro):
8386         * marker.c (set_marker_internal):
8387         * marker.c (Fset_marker):
8388         * marker.c (set_marker_restricted):
8389         * marker.c (Fcopy_marker):
8390         * marker.c (noseeum_copy_marker):
8391         * menubar.c:
8392         * menubar.c (Fpopup_menu):
8393         * minibuf.c:
8394         * mule-charset.c (Fcharset_name):
8395         * mule-charset.c (Fchar_charset):
8396         * mule-charset.c (Fchar_octet):
8397         * mule-charset.c (Fsplit_char):
8398         * mule-wnnfns.c (Fwnn_open):
8399         * mule-wnnfns.c (Fwnn_dict_comment):
8400         * mule-wnnfns.c (Fwnn_quit_henkan):
8401         * mule-wnnfns.c (Fwnn_word_toroku):
8402         * mule-wnnfns.c (Fwnn_word_sakujo):
8403         * mule-wnnfns.c (Fwnn_word_use):
8404         * mule-wnnfns.c (Fwnn_hindo_set):
8405         * objects.c:
8406         * objects.c (Fmake_color_instance):
8407         * objects.c (Fmake_font_instance):
8408         * print.c (Fwrite_char):
8409         * process.c:
8410         * process.c (mark_process):
8411         * process.c (print_process):
8412         * process.c (get_process_from_usid):
8413         * process.c (Fprocessp):
8414         * process.c (Fprocess_live_p):
8415         * process.c (Fget_process):
8416         * process.c (Fget_buffer_process):
8417         * process.c (get_process):
8418         * process.c (Fprocess_id):
8419         * process.c (Fprocess_name):
8420         * process.c (Fprocess_command):
8421         * process.c (init_process_io_handles):
8422         * process.c (start_process_unwind):
8423         * process.c (Fstart_process_internal):
8424         * process.c (Fopen_multicast_group_internal):
8425         * process.c (Fset_process_window_size):
8426         * process.c (read_process_output):
8427         * process.c (send_process):
8428         * process.c (Fprocess_tty_name):
8429         * process.c (Fset_process_buffer):
8430         * process.c (Fprocess_buffer):
8431         * process.c (Fprocess_mark):
8432         * process.c (set_process_filter):
8433         * process.c (Fset_process_filter):
8434         * process.c (Fprocess_filter):
8435         * process.c (Fprocess_send_region):
8436         * process.c (Fprocess_send_string):
8437         * process.c (exec_sentinel):
8438         * process.c (Fset_process_sentinel):
8439         * process.c (Fprocess_sentinel):
8440         * process.c (status_notify):
8441         * process.c (Fprocess_status):
8442         * process.c (Fprocess_exit_status):
8443         * process.c (process_send_signal):
8444         * process.c (Fprocess_send_eof):
8445         * process.c (deactivate_process):
8446         * process.c (remove_process):
8447         * process.c (Fdelete_process):
8448         * process.c (kill_buffer_processes):
8449         * process.c (Fprocess_kill_without_query):
8450         * process.c (Fprocess_kill_without_query_p):
8451         * rangetab.c:
8452         * rangetab.c (Fget_range_table):
8453         * rangetab.c (Fput_range_table):
8454         * rangetab.c (Fremove_range_table):
8455         * rangetab.c (Fclear_range_table):
8456         * search.c:
8457         * search.c (Fskip_chars_forward):
8458         * search.c (Fskip_chars_backward):
8459         * search.c (Fskip_syntax_forward):
8460         * search.c (Fskip_syntax_backward):
8461         * search.c (search_command):
8462         * search.c (Freplace_match):
8463         * search.c (Fregexp_quote):
8464         * select.c (Fown_selection_internal):
8465         * select.c (Fselection_owner_p):
8466         * select.c (Fselection_exists_p):
8467         * select.c (Fget_selection_internal):
8468         * specifier.c:
8469         * symbols.c:
8470         * symbols.c (Fintern):
8471         * symbols.c (Fintern_soft):
8472         * symbols.c (Funintern):
8473         * symbols.c (Fapropos_internal):
8474         * symbols.c (Fset_default):
8475         * syntax.c:
8476         * syntax.c (Fsyntax_table_p):
8477         * syntax.c (Fcopy_syntax_table):
8478         * syntax.c (Fset_syntax_table):
8479         * syntax.c (Fchar_syntax):
8480         * syntax.c (syntax_match):
8481         * syntax.c (Fmatching_paren):
8482         * syntax.c (Fforward_word):
8483         * syntax.c (scan_lists):
8484         * syntax.c (Fscan_lists):
8485         * syntax.c (Fscan_sexps):
8486         * syntax.c (Fparse_partial_sexp):
8487         * toolbar.c (Fcheck_toolbar_button_syntax):
8488         * tooltalk.doc:
8489         * window.c:
8490         * window.c (Fwindowp):
8491         * window.c (Fwindow_live_p):
8492         * window.c (Fwindow_point):
8493         * window.c (Fdelete_window):
8494         * window.c (Fnext_window):
8495         * window.c (Fprevious_window):
8496         * window.c (Fother_window):
8497         * window.c (window_loop):
8498         * window.c (Fget_lru_window):
8499         * window.c (Fsplit_window):
8500         * window.c (Fenlarge_window):
8501         * window.c (Fenlarge_window_pixels):
8502         * window.c (Fshrink_window):
8503         * window.c (Fshrink_window_pixels):
8504         * window.c (change_window_height):
8505         * window.c (Fwindow_configuration_p):
8506         * window.c (Fcurrent_window_configuration):
8507         * window.h:
8508         * casefiddle.c (casify_object):
8509         * casefiddle.c (Fupcase):
8510         * casefiddle.c (Fdowncase):
8511         * casefiddle.c (Fcapitalize):
8512         * casefiddle.c (Fupcase_initials):
8513         * casefiddle.c (casify_region_internal):
8514         * casefiddle.c (casify_region):
8515         * casefiddle.c (Fupcase_region):
8516         * casefiddle.c (Fdowncase_region):
8517         * casefiddle.c (Fcapitalize_region):
8518         * casefiddle.c (Fupcase_initials_region):
8519         * casefiddle.c (Fupcase_word):
8520         * casefiddle.c (Fdowncase_word):
8521         * casefiddle.c (Fcapitalize_word):
8522         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8523         Replace 0 with '\0' when working with bytes.
8524         Replace initial "(" with "\(" in docstrings.
8525
8526 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8527
8528         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8529
8530         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8531
8532 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8533
8534         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8535
8536 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8537
8538         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8539         correctly.
8540
8541 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8542
8543         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8544         (inhibit_auto_save_session): New variable.
8545         (vars_of_fileio): Declare and initialize them.
8546         * fileio.c (Fdo_auto_save): Don't create session file if
8547         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8548
8549 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8550
8551         * sgiplay.c (play_internal): C++ compilability.
8552         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8553         * callproc.c (Fold_call_process_internal):
8554         Remove unused vars `env', `first'.
8555         * scrollbar.c (update_scrollbar_instance):
8556         #### unused var `current_window'.
8557         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8558         etc. within #ifdef NOT_YET.
8559         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8560         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8561         * specifier.c (specifier_instance):
8562         #### unused var `tag'.
8563         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8564
8565 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8566
8567         * fns.c (Fbutlast):
8568         * fns.c (list_sort):
8569         * fns.c (Ffillarray):
8570         * fns.c (bytecode_nconc2):
8571         * fns.c (Fnconc):
8572         * fns.c (mapcar1):
8573         * fns.c (Fmapconcat):
8574         Be pedantically 64-bit correct.  For the time when someone will
8575         want to have a list with length > 2**32.
8576
8577         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8578         Work around MIPSpro compiler bug.
8579
8580         * process-unix.c (unix_kill_child_process): Add snarky comment.
8581         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8582
8583         * config.h.in: Oops, _getpt ==> _getpty
8584
8585 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8586
8587         * config.h.in:
8588         * regex.c:
8589         Use void*, not char*, as return type of alloca().
8590
8591         * alloc.c (free_marker): Side effect inside assert expression!
8592
8593 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8594
8595         * mule-charset.c (Fset_charset_ccl_program): To check
8596         if the given ccl program is valid, use setup_ccl_program()
8597         instead of CHECK_VECTOR().
8598         (Fmake_charset): Likewise.
8599
8600 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8601
8602         * faces.c (get_extent_fragment_face_cache_index):
8603         Fix cachel.merged_faces memory leak.
8604
8605 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8606
8607         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8608         Reset MSB of octets obtained by DECODE_SJIS
8609         because of the incompatibility with Emacs.
8610         (ccl_driver)<CCL_ENCODE_SJIS>:
8611         Set MSB of octets before passing them to
8612         ENCODE_SJIS because of the incompatibility
8613         with Emacs.
8614
8615 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8616
8617         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8618         (DECLARE_LRECORD): Undo the last change.
8619         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8620
8621 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8622
8623         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8624         the implementation to lrecord_implementations_table.
8625
8626 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8627
8628         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8629         initial value of `lrecord_type_##c_name' and
8630         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8631         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8632         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8633         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8634         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8635
8636 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8637
8638         * miscplay.c (sndcnv8S_2mono):
8639         (sndcnv2monounsigned):
8640         (sndcnvULaw_2linear):
8641         (sndcnv16swap):
8642         Remove implementation-defined behavior.
8643
8644 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8645
8646         * input-method-xlib.c: Warning suppression.
8647
8648 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8649
8650         * mule-ccl.c: Sync up with Emacs 21.0.90.
8651         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8652         Do nothing.
8653         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8654         Likewise.
8655         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8656         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8657         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8658         leading char belongs to official 2-dimensional charset.
8659         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8660         write the given character as is.  Otherwise,
8661         if it is a multibyte char, convert it by
8662         non_ascii_set_charptr_emchar, then write it.
8663         (CCL_WRITE_STRING): Likewise.
8664         (ccl_get_compiled_code): New function.
8665         (setup_ccl_program): When ccl_prog is invalid,
8666         return -1.
8667         (Fregister_code_conversion_map): New function.
8668         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8669
8670         * mule-ccl.h: Sync up with Emacs 21.0.90.
8671         (Fregister_ccl_program): export it.
8672
8673         * redisplay-msw.c (separate_textual_runs):
8674         If ccl program is not valid, don't do ccl conversion.
8675
8676         * redisplay-x.c (separate_textual_runs): Ditto.
8677
8678         * file-coding.c (Fmake_coding_system):
8679         When type is ccl and value is vector, register it
8680         with a proper symbol.  And checks whether the
8681         given ccl program is valid.
8682         (mule_decode): When calling ccl_driver, if src indicates
8683         NULL pointer, set an empty string instead.
8684         (mule_encode): Likewise.
8685
8686 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8687
8688         The following large batch of changes gets us back to a state of
8689         C++ compilability.  Extbyte is now a char, which means that
8690         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8691
8692         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8693
8694         * sound.c (Fplay_sound): Type correctness.
8695
8696         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8697         (x_get_window_property): Type correctness.
8698         (receive_incremental_selection): unsigned char ==> Extbyte
8699         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8700         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8701         (Fx_store_cutbuffer_internal): Type correctness.
8702
8703         * process-unix.c (try_to_initialize_subtty): Type correctness.
8704
8705         * objects-x.c (x_print_color_instance): Type correctness.
8706         (x_print_font_instance): Type correctness.
8707         (x_list_fonts): SExtbyte ==> Extbyte.
8708         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8709         (x_find_charset_font): SExtbyte ==> Extbyte.
8710         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8711         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8712         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8713         Use bufbyte_strcmp.
8714
8715         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8716         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8717         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8718         (BYTE_C0_P): Use bit ops for char-signedness safety.
8719         (BYTE_C1_P): Use bit ops for char-signedness safety.
8720         (CHARSET_BY_LEADING_BYTE):
8721         (CHARSET_BY_ATTRIBUTES):
8722         Always use inline function.
8723         Use type_checking_assert.
8724         Hide chlook.
8725
8726         * mule-charset.c (non_ascii_charptr_copy_char):
8727         Modify to work with both ASCII and non-ASCII characters.
8728         Improve docs and variable names.
8729         Replace over-clever fall-through switch with a simple loop.
8730         (Lstream_get_emchar_1):
8731         Replace over-clever fall-through switch with a simple loop.
8732
8733         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8734         Warning suppression.
8735
8736         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8737         the return value of Lstream_getc, which could be EOF as well.
8738
8739         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8740
8741         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8742         APIs can be used on Extbytes without casts.  Risky!
8743         (SExtbyte): Remove.
8744         (UExtbyte): Remove.
8745
8746         * input-method-xlib.c (XIM_init_device):
8747         Use Xlib.h instead of IntrinsicP.h.
8748         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8749         which will break in X11R7.
8750         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8751         to call XRegisterIMInstantiateCallback with correct types.
8752
8753         * gui-x.c (button_item_to_widget_value): Type correctness.
8754
8755         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8756
8757         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8758         (xbm_instantiate_1): Type correctness.
8759         (BUILD_GLYPH_INST):  Type correctness.
8760
8761         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8762
8763         * file-coding.c:
8764         (decode_coding_sjis):
8765         (decode_coding_big5):
8766         (decode_coding_ucs4):
8767         (decode_coding_utf8):
8768         (decode_coding_iso2022):
8769         (decode_coding_no_conversion):
8770         Make all decoding functions take an Extbyte * arg.
8771         (encode_coding_sjis):
8772         (encode_coding_big5):
8773         (encode_coding_ucs4):
8774         (encode_coding_utf8):
8775         (encode_coding_iso2022):
8776         (encode_coding_no_conversion):
8777         Make all encoding functions take a Bufbyte * arg.
8778         Use size_t instead of unsigned int for memory sizes.
8779         Only cast to unsigned char whenever dereferencing Extbyte *.
8780
8781         * doc.c (unparesseuxify_doc_string): Type correctness.
8782
8783         * console-x.c (split_up_display_spec):
8784         Rewrite without using details of internal string representation.
8785         (x_semi_canonicalize_device_connection): Type correctness.
8786
8787         * config.h.in:
8788         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8789         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8790         (HAVE_XFREE386): Removed.
8791
8792         * buffer.h (DEC_CHARPTR): `const' correctness.
8793         (bufbyte_strcmp): New.
8794         (bufbyte_memcmp): New.
8795
8796         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8797
8798         * buffer.h (XCHAR_OR_CHAR_INT):
8799         Always use inline function.
8800         Remove redundant type checking assert() - XINT will abort quite nicely.
8801
8802 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8803
8804         * search.c (Freplace_match): Set newtext to an empty string.
8805
8806 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8807
8808         * s/decosf1-3.h: Remove #include of stropts.h
8809         * s/ptx.h: Remove #include of stropts.h
8810         * s/usg5-4.h: Remove #include of stropts.h
8811         * sysproc.h:
8812         * config.h.in:
8813         Use stropts.h, not sys/stropts.h.
8814         Use strtio.h, not sys/strtio.h.
8815
8816 2000-10-04  Martin Buchholz <martin@xemacs.org>
8817
8818         * XEmacs 21.2.36 is released.
8819
8820 2000-09-21  Andy Piper  <andy@xemacs.org>
8821
8822         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8823         changes still involve copying the widget tree.
8824         (update_widget_face): make sure a change is register in the widget
8825         tree. Call update_tab_widget_face appropriately.
8826         (update_tab_widget_face): ditto.
8827         (x_tab_control_redisplay): make sure non-structural changes still
8828         involve copying the widget tree.
8829
8830 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8831
8832         * lread.c (locate_file): Check the path element is non-nil.
8833
8834 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8835
8836         * lisp.h: Warning suppression for SCO compilers.
8837
8838         * redisplay-tty.c (reset_tty_modes): Fix crash.
8839         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8840
8841 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8842
8843         Big signal/process handling overhaul.  Bugs fixed:
8844         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8845         M-x comint-kill-subjob should work for both values nil and t of
8846         process-connection-type. It was broken on most platforms.
8847         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8848         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8849         * process-unix.c: Signal/Process handling overhaul.
8850         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8851         (allocate_pty): Use all available modern methods of allocating
8852         ptys, falling back to old style BSD allocation as a last resort.
8853         Use allegedly more secure Unix98 pty allocation by default.
8854         (allocate_pty_the_old_fashioned_way): New. the last resort.
8855         (unix_create_process): Push ptem, ldterm, ttcompat where
8856         available.  Autoconfiscate.
8857         (try_to_initialize_subtty): New.
8858         (unix_kill_child_process): Proper signal handling for ptys on most
8859         platforms, using special knowledge of AIX, BSD, etc...
8860         (unix_create_process): Always disconnect_controlling_terminal() for
8861         subprocesses, whether using ptys or not.
8862         * process.h: Remove old getpt-dependent PTY code.
8863         * process.c (Fprocess_send_signal): New, obvious generic function.
8864         (decode_signal): New.
8865         (Finterrupt_process):
8866         (Fkill_process):
8867         (Fquit_process):
8868         (Fstop_process):
8869         (Fcontinue_process):
8870         (Fsignal_process): Use decode_signal.
8871         (process_send_signal):
8872         Many docstring corrections.
8873         Allow any signal to be sent to a process object.
8874         * config.h.in: Add symbols for big signal/process overhaul.
8875         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8876         * sysproc.h: Include process-related headers, where available:
8877         sys/stropts.h sys/strtio.h pty.h libutil.h
8878         * s/irix4-0.h:
8879         * s/irix5-0.h:
8880         * s/cygwin32.h:
8881         * s/gnu.h:
8882         * s/linux.h:
8883         * s/hpux.h:
8884         * s/aix3-1.h:
8885         Remove old S&M pty stuff.
8886         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8887         * systty.h: Simplify cpp hackery, improve comments.
8888         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8889
8890         * editfns.c (Fformat_time_string):
8891         Be a little more paranoid with the return value of ctime.
8892
8893         * fileio.c (check_executable):
8894         (check_writable):
8895         Use symbolic constants X_OK, W_OK.
8896
8897         * console-x.c (split_up_display_spec): Fix a warning.
8898
8899 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8900
8901         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8902         * ntproc.c (sys_spawnve): make_string ==> build_string
8903         Small clarity improvements.
8904
8905 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8906
8907         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8908
8909         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8910
8911         * config.h.in (HAVE_STRCASECMP): Remove.
8912
8913 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8914
8915         * redisplay-output.c (redisplay_output_pixmap):
8916         Cleaner and possibly more 64-bit correct code.
8917
8918 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8919
8920         * dumper.c (pdump_load_finish): move restoration of
8921         `noninteractive1' to emacs.c (main_1).
8922         * emacs.c (main_1): protect LISP-visible command-line flags
8923         from pdump_load().
8924
8925 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8926
8927         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8928         DUMP_TARGET instead of literal program names.
8929
8930 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8931
8932         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8933
8934 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8935
8936         * *: Spelling mega-patch
8937
8938 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8939
8940         * fns.c (bad_bad_turtle):
8941         Delete "Eek!" comment, since we fixed the bug to which it refers.
8942
8943 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8944
8945         * alloca.c: Replace REGISTER with register.
8946
8947 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8948
8949         * file-coding.c (ucs_to_char): Use countof.
8950
8951 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8952
8953         * file-coding.c: (ucs_to_char):
8954         (complex_vars_of_file_coding):
8955         Use countof instead of sizeof.
8956         Use CHECK_NATNUM instead of CHECK_INT.
8957
8958         * sysdep.c (strcasecmp): Remove.
8959         * device-x.c (ascii_strcasecmp): New.
8960         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8961         Avoid using non-standard non-portable strcasecmp.
8962
8963 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8964
8965         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8966         * font-lock.c: remove reference to emacsfns.h.
8967         * search.c: small doc improvement.
8968         * event-Xt.c: correct file names in comments.
8969         * console-x.h Correct file names in comments.
8970         * frame.c: Correct file names in comments.
8971         * event-stream.c: remove Energize from comments.
8972
8973 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8974
8975         * symeval.h (DEFERROR_STANDARD):
8976         (DEFERROR):
8977         (DEFSYMBOL):
8978         (DEFSYMBOL_NO_DUMP):
8979         (DEFSYMBOL_MULTIWORD_PREDICATE):
8980         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8981         (DEFKEYWORD):
8982         The construct &##name is not sensible C.
8983         Fixes compilation errors with Unixware native compiler.
8984
8985 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8986
8987         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8988         (next_frame_internal): Removed.  We now just have next_frame.
8989         (next_frame):
8990         Write a simpler and cleaner one-pass algorithm.
8991         Remove called_from_delete_device arg and #ifdefed-out code.
8992         (previous_frame):
8993         Renamed from prev_frame.  Update callers.
8994         Cleaned up to have an analogous implementation to next_frame.
8995         (other_visible_frames_internal): Remove the
8996         called_from_delete_device bogus arg, and hence, remove this
8997         function.  Just use other_visible_frames().
8998
8999         * window.c (Fnext_window):
9000         Prettify docstring.
9001         Since next_frame() is guaranteed to return a frame, remove check
9002         for nil inserted in previous patch.
9003         (Fprevious_window):
9004         Prettify docstring.
9005         Make code look more like Fnext_window.
9006         (window_loop):
9007         Respect the `console' arg when iterating through windows.
9008         Fixes bug: (get-buffer-window buffer t device) not respecting
9009         the `device' arg.
9010         This function needs more work, as others have pointed out.
9011
9012         * frame.h: Rename prev_frame to previous_frame.
9013         device_matches_console_spec no longer takes a `frame' arg.
9014
9015         * s/gnu.h:
9016         * s/linux.h:
9017         * s/hpux.h:
9018         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9019         From "Golubev I. N." <gin@mo.msk.ru>.
9020
9021         * make-src-depend: Fix typo.
9022
9023 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9024
9025         * window.c (Fnext_window):
9026         next_frame() might return nil, not a frame.
9027         Fixes this crash:
9028         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9029
9030         * frame.c (next_frame_internal):
9031         We've passed a frame if we've passed its device.
9032         Fixes this crash:
9033         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9034 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9035
9036 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9037
9038         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9039         Allow option to suppress accelerators in menu/dialog items.
9040         (populate_or_checksum_helper): Pass dialog title through above.
9041
9042 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9043
9044         * event-msw.c (mswindows_key_to_emacs_keysym):
9045         Add "pause" key, fix "menu" key.
9046
9047 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9048
9049         * eval.c (reinit_vars_of_eval):
9050         Increase max_lisp_eval_depth to 1000,
9051         required for thai-xtis.el to byte-compile under some circumstances.
9052
9053 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9054
9055         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9056         From Kenichi Handa.
9057
9058 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9059
9060         * make-src-depend: Make the generated Makefiles smaller.
9061
9062         * s/hpux.h (SETUP_SLAVE_PTY):
9063         Provide a %d in the format string for the errno argument.
9064
9065         * editfns.c (Ftemp_directory):
9066         Warning fix.
9067         Avoid buffer overrun on very long file name.
9068
9069         * input-method-xlib.c (XIM_init_device):
9070         6th parameter of XRegisterIMInstantiateCallback has different
9071         pointer types on different OSes, so simply cast to (void *).
9072
9073         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9074
9075         * sysdll.c (dll_open):
9076         shl_load will hang hard if passed a NULL filename.
9077         Simply return NULL for compatibility with dlopen.
9078         * sysdll.c: Conform to XEmacs coding standards.
9079
9080         * sysdep.c (get_pty_max_bytes):
9081         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9082
9083 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9084
9085         * tooltalk.c: Add #include <syssignal.h>
9086
9087 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9088
9089         * s/hpux.h: Don't use undefined function sigunblock().
9090
9091 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9092
9093         * config.h.in: Add HAVE_BALLOON_HELP.
9094         * emacs.c: Use HAVE_BALLOON_HELP.
9095         * Makefile.in.in (x_objs):
9096         Make Balloon Help conditional on finding shape.h.
9097
9098 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9099
9100         * syntax.c (regex_emacs_buffer_p): New variable.
9101         * syntax.h (regex_emacs_buffer_p): extern.
9102         * search.c (looking_at_1):
9103         (string_match_1):
9104         (fast_string_match):
9105         (search_buffer): Set regex_emacs_buffer_p.
9106         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9107         when before_dot, at_dot, after_dot.
9108
9109 2000-08-23  Andy Piper  <andy@xemacs.org>
9110
9111         * gui-x.c (popup_selection_callback): Only set action_occurred
9112         when we really have an image instance.
9113         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9114
9115 2000-08-23  Andy Piper  <andy@xemacs.org>
9116
9117         * gui-msw.c (mswindows_handle_gui_wm_command): set
9118         action_occurred.
9119         * gui-x.c (popup_selection_callback): ditto.
9120
9121         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9122         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9123         (struct Lisp_Image_Instance): add action_occurred flag.
9124
9125         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9126         (image_instance_changed): ditto.
9127         (reset_frame_subwindow_instance_cache): only unmap windows - do
9128         not remove them from the cache also.
9129
9130         * glyphs-widget.c (tab_control_update): better debug.
9131         (progress_gauge_update): ditto.
9132         (layout_update): ditto.
9133         (layout_instantiate): ditto.
9134         (tab_control_order_only_changed): cope with null pending items.
9135
9136         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9137         debug. Force selection of an item when an action occurred. Cope
9138         with null pending_items.
9139         (mswindows_progress_gauge_redisplay): better debug.
9140         * glyphs-x.c (x_tab_control_redisplay): ditto.
9141
9142         * redisplay.c (redisplay_frame): reset the frame cache if the
9143         frame is garbaged.
9144
9145         * window.c (Fset_window_configuration): potentially re-enable
9146         frame cache reset.
9147         (window_unmap_subwindows): need to finalize instances here since
9148         it is only used in mark_window_as_deleted.
9149
9150 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9151
9152         * nas.c (SndOpenDataForReading):
9153         nas.c (WaveOpenDataForReading):
9154         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9155         Somehow escaped from the 2000-08-14 patch.
9156
9157 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9158
9159         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9160         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9161
9162 2000-08-21  Andy Piper  <andy@xemacs.org>
9163
9164         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9165         window if it is not already displayed.
9166
9167         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9168         it is not already displayed.
9169
9170         * window.c (Fset_window_configuration): don't reset the frame
9171         cache.
9172
9173         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9174         instances from the frame cache if we are actually finalizing them.
9175         (reset_frame_subwindow_instance_cache): reset frame cache only
9176         after unmapping everything.
9177         (map_subwindow): set displayed flag after mapping.
9178
9179 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9180
9181         * data.c (indirect_function):
9182         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9183
9184         * eval.c (function_argcount):
9185         Use original function when signaling errors.
9186
9187 2000-08-18  Andy Piper  <andy@xemacs.org>
9188
9189         * frame.c (delete_frame_internal): use new
9190         free_frame_subwindow_instances name.
9191
9192         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9193         (add_tab_item): make return type correct.
9194         (mswindows_tab_control_instantiate): assert index of tab.
9195         (mswindows_tab_control_redisplay): Re-code to use
9196         gui_item_equal_sans_selected and gui_item_list_find_selected.
9197
9198         * glyphs-widget.c (tab_control_update): Correct comment.
9199
9200         * window.c (window_unmap_subwindows): use new
9201         unmap_subwindow_instance_cache_mapper.
9202         (window_unmap_subwindows_cache_mapper): deleted.
9203         (Fset_window_configuration): comparisons should now be with
9204         EQ. Preserve the subwindow instance cache across configuration
9205         changes.
9206         (allocate_window): ditto.
9207         (make_dummy_parent): ditto.
9208
9209         * glyphs.c (free_frame_subwindow_instances): rename from
9210         free_frame_subwindow_instance_cache. finalize all instances rather
9211         than just those in the display cache.
9212         (finalize_all_subwindow_instances): walk windows unmapping and
9213         finalizing subwindows.
9214         (unmap_subwindow_instance_cache_mapper): moved from
9215         window.c. Allow finalization as well as unmapping.
9216
9217         * gui.c (gui_item_list_find_selected): new function.
9218
9219         * gui.h (gui_item_list_find_selected): declare.
9220
9221         * glyphs-x.c (x_tab_control_redisplay): pick tab
9222         explicitly. Re-code to use gui_item_equal_sans_selected and
9223         gui_item_list_find_selected.
9224
9225         * glyphs-x.h: add lwlib-utils.h
9226
9227         * buffer.c (Frecord_buffer): undo previous change.
9228
9229 2000-08-09  Vin Shelton  <acs@xemacs.org>
9230
9231         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9232         possible.  Create temporary files more securely.  The patch was
9233         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9234         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9235         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9236         for details.
9237
9238 2000-08-07  Ben Wing  <ben@xemacs.org>
9239
9240         * getloadavg.c: remove duplicate (and windows-breaking)
9241         includes of fcntl.h and sys/file.h.
9242
9243         * nt.c: remove duplicate getloadavg() definition.
9244
9245         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9246         encodings.
9247
9248 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9249
9250         * eval.c (function_argcount): If function needs to be autoloaded
9251         actually use the loaded definition.
9252         GCPRO function.
9253
9254 2000-08-05  Ben Wing  <ben@xemacs.org>
9255
9256         * getloadavg.c: add prototype for getloadavg().  remove
9257         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9258         of the code).  remove duplicate header includes.
9259
9260         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9261
9262         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9263         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9264         useful load average.
9265
9266         * alloc.c (reinit_alloc_once_early): removed references to
9267         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9268         the lisp vars are the only things referencing the malloc_sbrk_*
9269         vars, and they were already if 0'd out.  these vars only exist
9270         in the older malloc.c, which is basically unused, and they're
9271         only for informational purposes.
9272
9273         * m\*.h: removed useless VIRT_ADDR_VARIES.
9274
9275         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9276
9277 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9278
9279         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9280         color if the image is a mono pixmap.
9281
9282 2000-07-30  Ben Wing  <ben@xemacs.org>
9283
9284         * Makefile.in.in (release):
9285         Remove stray @.
9286
9287         * buffer.c (directory_is_current_directory):
9288         * dired-msw.c (mswindows_get_files):
9289         * dired.c:
9290         * dired.c (Fdirectory_files):
9291         * dired.c (file_name_completion_stat):
9292         * dired.c (Ffile_attributes):
9293         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9294         preprocessor tricks, to avoid problems on some machines
9295         (e.g. SCO).
9296
9297         * callproc.c (egetenv): GC docs.
9298
9299         * console-msw.h:
9300         * console-msw.h (struct mswindows_dialog_id):
9301         * lrecord.h (lrecord_type):
9302         New object for use with MSW dialogs.
9303
9304         * console.h (struct console_methods):
9305         New enable/disable frame methods, for proper modal dialogs.
9306
9307         * device-msw.c (msprinter_default_printer): Fix to follow
9308         proper Mule conventions.
9309
9310         * device-msw.c:
9311         * device-msw.c (signal_open_printer_error):
9312         * device-msw.c (msprinter_init_device):
9313         * device-msw.c (ensure_not_printing):
9314         * device-msw.c (plist_get_margin):
9315         * device-msw.c (Fmsprinter_select_settings):
9316         * device-msw.c (finalize_devmode):
9317         * device-msw.c (Fmsprinter_settings_despecialize):
9318         * device-msw.c (signal_enum_priner_error):
9319         * extents.c (decode_extent):
9320         * extents.c (decode_map_extents_flags):
9321         * extents.c (decode_extent_at_flag):
9322         * extents.c (Fextent_at):
9323         * extents.c (Fextents_at):
9324         * extents.c (symbol_to_glyph_layout):
9325         [[[[2]]]] Use structured errors.
9326
9327         * dialog-msw.c:
9328         * dialog-msw.c (mswindows_is_dialog_msg):
9329         * dialog-msw.c (mark_mswindows_dialog_id):
9330         * dialog-msw.c (dialog_proc):
9331         * dialog-msw.c (handle_question_dialog_box):
9332         * dialog-msw.c (syms_of_dialog_mswindows):
9333         Define new object to clean up marking; use it as a dialog identifier.
9334         Call new delete-dialog-box-hook.
9335
9336         * dialog-x.c (dbox_selection_callback):
9337         * dialog-x.c (dbox_descriptor_to_widget_value):
9338         * dialog-x.c (x_make_dialog_box_internal):
9339         Call new delete-dialog-box-hook.
9340         Return an id.
9341
9342         * dialog.c:
9343         * dialog.c (syms_of_dialog):
9344         * dialog.c (vars_of_dialog):
9345         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9346
9347         * eval.c:
9348         * eval.c (signal_call_debugger):
9349         when noninteractive, output stack traces on the console instead
9350         of in a (never-seen) buffer.
9351
9352         * eval.c (signal_type_error):
9353         * eval.c (invalid_argument_2):
9354         * lisp.h:
9355         new funs for use w/structured errors.
9356
9357         * event-Xt.c:
9358         * event-Xt.c (x_to_emacs_keysym):
9359         * event-Xt.c (describe_event):
9360         * event-Xt.c (emacs_Xt_event_handler):
9361         * event-Xt.c (vars_of_event_Xt):
9362         * event-msw.c:
9363         * event-msw.c (mswindows_wnd_proc):
9364         * event-msw.c (vars_of_event_mswindows):
9365         rename {x,mswindows}-debug-events to debug-{}-events for
9366         consistency with other debug-foo variables.
9367
9368         * event-stream.c:
9369         document next-event more clearly.
9370
9371         * fileio.c (Ffile_name_directory):
9372         * fileio.c (Ffile_name_nondirectory):
9373         * fileio.c (Funhandled_file_name_directory):
9374         * fileio.c (file_name_as_directory):
9375         * fileio.c (Ffile_name_as_directory):
9376         * fileio.c (directory_file_name):
9377         * fileio.c (Fdirectory_file_name):
9378         * fileio.c (Fmake_temp_name):
9379         * fileio.c (Ffile_truename):
9380         * fileio.c (Fsubstitute_in_file_name):
9381         * fileio.c (expand_and_dir_to_file):
9382         * fileio.c (barf_or_query_if_file_exists):
9383         * fileio.c (check_executable):
9384         * fileio.c (Ffile_exists_p):
9385         * fileio.c (Ffile_writable_p):
9386         * fileio.c (Ffile_directory_p):
9387         * fileio.c (Ffile_regular_p):
9388         * fileio.c (Ffile_modes):
9389         * fileio.c (Ffile_newer_than_file_p):
9390         * fileio.c (Fverify_visited_file_modtime):
9391         * fileio.c (Fset_visited_file_modtime):
9392         * fileio.c (auto_save_1):
9393         (1). (2).
9394         fix up gcpro's.
9395
9396         * frame-msw.c:
9397         * frame-msw.c (mswindows_init_frame_1):
9398         * frame-msw.c (mswindows_enable_frame):
9399         * frame-msw.c (error_frame_unsizable):
9400         * frame-msw.c (msprinter_init_frame_1):
9401         * frame-msw.c (msprinter_init_frame_3):
9402         * frame-msw.c (console_type_create_frame_mswindows):
9403         (2).
9404         implement new enable/disable frame methods.
9405
9406         * frame-x.c:
9407         * frame-x.c (x_enable_frame):
9408         * frame-x.c (console_type_create_frame_x):
9409         implement new enable/disable frame methods.
9410
9411         * frame.c:
9412         * frame.c (Fdisable_frame):
9413         * frame.c (syms_of_frame):
9414         * frame.h (struct frame):
9415         implement new enable/disable frame methods/functions.
9416
9417         * general-slots.h:
9418         add initial-focus.
9419
9420         * glyphs-msw.c (mswindows_widget_instantiate):
9421         comment that initial-focus should be implemented.
9422
9423         * glyphs-widget.c:
9424         * glyphs-widget.c (check_valid_instantiator):
9425         * glyphs-widget.c (check_valid_orientation):
9426         * glyphs-widget.c (check_valid_tab_orientation):
9427         * glyphs-widget.c (check_valid_justification):
9428         * glyphs-widget.c (check_valid_border):
9429         * glyphs-widget.c (check_valid_callback):
9430         * glyphs-widget.c (check_valid_int_or_function):
9431         * glyphs-widget.c (check_valid_string_or_vector):
9432         * glyphs-widget.c (check_valid_item_list_1):
9433         * glyphs-widget.c (widget_validate):
9434         * glyphs-widget.c (combo_box_validate):
9435         * glyphs-widget.c (widget_instantiate):
9436         * glyphs-widget.c (syms_of_glyphs_widget):
9437         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9438         * glyphs-widget.c (image_instantiator_combo_box):
9439         * glyphs-widget.c (image_instantiator_scrollbar):
9440         * glyphs-widget.c (image_instantiator_tab_control):
9441         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9442         (2).
9443         support (unimplemented) keyword initial-focus.
9444         reindent long macros.
9445
9446         * glyphs-x.c (x_redisplay_widget):
9447         * glyphs-x.c (x_button_instantiate):
9448         * glyphs-x.c (x_button_redisplay):
9449         * glyphs-x.c (x_progress_gauge_instantiate):
9450         * glyphs-x.c (x_edit_field_instantiate):
9451         * glyphs-x.c (x_combo_box_instantiate):
9452         * glyphs-x.c (x_tab_control_instantiate):
9453         * glyphs-x.c (x_label_instantiate):
9454         * gui-x.c:
9455         * gui-x.c (button_item_to_widget_value):
9456         * gui-x.c (gui_items_to_widget_values_1):
9457         * gui-x.c (gui_item_children_to_widget_values):
9458         * gui-x.c (gui_items_to_widget_values):
9459         * gui-x.h:
9460         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9461         add new flag to gui-parsing routines to indicate whether
9462         accelerator specs should be supported.
9463
9464         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9465
9466         * glyphs.h (struct Lisp_Image_Instance):
9467         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9468         add initial-focus flag.
9469
9470         * gui.c:
9471         * gui.c (syms_of_gui):
9472         * gui.c (vars_of_gui):
9473         clean up menu-no-selection-hook.
9474
9475         * gui.h:
9476         support delete-dialog-box-hook.
9477
9478         * lread.c (Fload_internal):
9479         * lread.c (locate_file_in_directory_mapper):
9480         (1).
9481
9482         * lrecord.h:
9483         * lrecord.h (struct toolbar_button):
9484         * lrecord.h (syms_of_toolbar):
9485         document how to create a new object.
9486
9487         * menubar-msw.c (mswindows_char_is_accelerator):
9488         may be called on frames w/o menus.
9489
9490         * menubar.c (vars_of_menubar):
9491         clean up :filter docs.
9492
9493         * nt.c (readdir):
9494         * ntproc.c:
9495         (1).
9496
9497         * process-nt.c:
9498         * process-nt.c (validate_signal_number):
9499         * process-nt.c (signal_cannot_launch):
9500         * process-nt.c (nt_create_process):
9501         * process-nt.c (nt_send_process):
9502         * process-nt.c (nt_kill_child_process):
9503         * process-nt.c (nt_open_network_stream):
9504         * process-nt.c (syms_of_process_nt):
9505         (2).
9506         delete quote-handling.  call new lisp code that does it better.
9507
9508         * process-unix.c (connect_to_file_descriptor):
9509         * process-unix.c (allocate_pty):
9510         * process-unix.c (unix_send_process):
9511         * process-unix.c (unix_kill_child_process):
9512         * process-unix.c (unix_open_network_stream):
9513         * process-unix.c (unix_open_multicast_group):
9514         (1). (2).
9515
9516         * process.c:
9517         * process.c (Fstart_process_internal):
9518         (2).  need to canonicalize process path even if absolute.
9519
9520         * select-msw.c (symbol_to_ms_cf):
9521         * select-msw.c (ms_cf_to_symbol):
9522         * select-msw.c (cf_is_autofreed):
9523         * select-msw.c (mswindows_destroy_selection):
9524         * select.c:
9525         * select.c (syms_of_select):
9526         * select.h:
9527         support dibv5, fix bugs. (from Mike Alexander)
9528
9529         * select.c (Fget_selection_internal):
9530         * select.c (select_convert_out):
9531
9532         * sysdep.c:
9533         * sysdep.c (xemacs_stat):
9534         renamed.
9535
9536         * sysdep.c (mkdir):
9537         * sysdep.c (rmdir):
9538         but keep original stat() here because we provide encapsulation
9539         around these funs.
9540
9541         * sysfile.h:
9542         * sysfile.h (fstat):
9543         remove stat garbage.
9544
9545         * syswindows.h:
9546         fix X/MSW conflict.
9547         don't include tchar.h.  it's inappropriate because it makes
9548         compile-time distinctions when we want runtime distinctions.
9549         (we provide our own tchar replacements)
9550
9551         * toolbar.c:
9552         use default object printer for toolbar-button.
9553
9554         * unexcw.c:
9555         make sure we don't encapsulate.
9556
9557         * window.c (vars_of_window):
9558         emphasize that temp-buffer-show-hook is obsolete.
9559
9560 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9561
9562         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9563         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9564
9565         * events.c (Fevent_timestamp_lessp):
9566         Not 64-bit clean.  Use EMACS_INT, not int.
9567
9568 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9569
9570         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9571         unsigned int and changed the last enum to
9572         lrecord_type_last_built_in_type.
9573         (lrecord_implementations_table): changed prototype to know how
9574         long the array is supposed to be.
9575         (lrecord_type_count): new unsigned int to keep track of the
9576         current number of lisp lrecord types.
9577         (DEFINE_EXTERNAL_LRECORD):
9578         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9579         dynamic-modules to declare new lisp types. They are the same
9580         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9581         int for each new type, and increment lrecord_type_count by 1.
9582
9583         * alloc.c (lrecord_implementations_table): Changed to reference
9584         lrecord_type_last_built_in_type for the size of the array.
9585         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9586
9587 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9588
9589         * glyphs.h (check_valid_item_list): Renamed from
9590         check_valid_item_list_1.
9591
9592 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9593
9594         * select.c (Qselect_coerce): New.
9595         * select.c (Vselection_coercion_alist): New.
9596         * select.c (syms_of_select): Declare.
9597         * select.c (get-selection-internal): Use it.
9598         Use the new select-coerce functionality.
9599
9600         * select.c (select_coerce): New.
9601         * select.h (select_coerce): Declare.
9602         New function to coerce one type of data into another.
9603
9604 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9605
9606         * callproc.c (Fcall_process_internal):
9607         (Fcall_process_internal):
9608         * process-unix.c (unix_create_process):
9609         Save and restore the value of errno, so that error messages are accurate.
9610
9611 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9612
9613         * elhash.c (print_hash_table):
9614         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9615         Prettify docstrings and indentation.
9616
9617 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9618
9619         * window.c (Fwindow_pixel_edges): Subtract frame border and
9620         gutter size.
9621
9622 2000-07-31  Andy Piper  <andy@xemacs.org>
9623
9624         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9625         will acknowledge the change.
9626
9627         * glyphs.h: declare tab_control_order_only_changed.
9628
9629         * glyphs-x.c (x_tab_control_redisplay): use
9630         tab_control_order_only_changed.
9631
9632         * glyphs-widget.c (tab_control_order_only_changed): new function.
9633
9634         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9635         tab_control_order_only_changed.
9636
9637         * gui.c (gui_item_equal_sans_selected): new function.
9638         (gui_item_equal): use it.
9639
9640         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9641         :properties in favor of :items..
9642
9643         * glyphs-widget.c (check_valid_item_list): rename from
9644         check_valid_item_list_1.
9645         (check_valid_item_list_1): renamed.
9646         (combo_box_validate): deprecate :properties in favor of :items.
9647         (widget_instantiate): ditto.
9648         (tab_control_update): ditto.
9649         (image_instantiator_combo_box): ditto.
9650         (image_instantiator_tree_view): ditto.
9651         (image_instantiator_tab_control): ditto.
9652         (layout_post_instantiate): remove dead code.
9653
9654         * print.c (debug_print_no_newline): only write to debugger if in
9655         WIN32_NATIVE.
9656
9657         * elhash.c (Fmake_hash_table): update doc string.
9658
9659         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9660         messages whilst in GC. This at least stops XEmacs crashing but has
9661         the potential for wierd behaviour.
9662
9663 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9664
9665         * config.h.in:
9666         Make existence of s&m files optional.
9667
9668         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9669         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9670         * s/gnu.h: Remove HAVE_GETLOADAVG.
9671         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9672         * s/sol2.h: Remove HAVE_GETLOADAVG.
9673         * lisp.h: Remove getloadavg() declaration.
9674         * fns.c:
9675         Include <sys/loadavg.h> if available.
9676         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9677         * config.h.in:  Group together getloadavg()-related macros.
9678         Use only configure-time tests to detect getloadavg().
9679
9680 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9681
9682         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9683
9684 2000-07-25  Andy Piper  <andy@xemacs.org>
9685
9686         * syswindows.h: add tchar.h for native builds.
9687
9688         * frame.c (syms_of_frame): remove set-glyph-image.
9689
9690         * general-slots.h: add Qset_glyph_image.
9691
9692         * glyphs-widget.c (layout_update): add domain arg to
9693         set-glyph-image.
9694         (syms_of_glyphs_widget): remove set-glyph-image.
9695
9696 2000-07-23  Ben Wing  <ben@xemacs.org>
9697
9698         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9699         Vpopup_frame_list.
9700
9701 2000-07-22  Andy Piper  <andy@xemacs.org>
9702
9703         * symsinit.h: add syms_of_win32().
9704
9705         * gui-msw.c (syms_of_gui_mswindows): remove
9706         Fmswindows_shell_execute.
9707         (Fmswindows_shell_execute): moved to win32.c.
9708
9709         * emacs.c (main_1): add syms_of_win32 ().
9710
9711         * win32.c (init_potentially_nonexistent_functions): rewrite in
9712         compiler-friendly terms.
9713         (Fmswindows_shell_execute): move here from gui-msw.c.
9714         (syms_of_win32): new.
9715
9716         * device-msw.c (Fmswindows_printer_list): clean up args to
9717         EnumPrinters.
9718         Don't include tchar under cygwin or mingw.
9719         (msprinter_default_printer): make cygwin-friendly.
9720
9721 2000-07-21  Andy Piper  <andy@xemacs.org>
9722
9723         * glyphs-widget.c (image_instantiator_tree_view): use tab
9724         control's update function.
9725         (layout_property): new function. Retrieve items.
9726
9727         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9728         function. Re-populate the tree view from the pending items.
9729
9730         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9731         is designated the parent if the domain is an image instance. This
9732         is needed so that dirtiness can be cascade up the hierarchy and
9733         thus for layout children to be redisplayed correctly.
9734         (allocate_image_instance): rename glyph -> parent.
9735
9736         * redisplay.h: change redisplay_output_layout signature.
9737
9738         * redisplay-msw.c (mswindows_output_display_block): use domain
9739         arg.
9740
9741         * redisplay-x.c (x_output_display_block): use domain arg.
9742
9743 2000-07-10  Andy Piper  <andy@xemacs.org>
9744
9745         * window.c (Fset_window_configuration): add comment.
9746
9747         * redisplay-output.c (compare_runes):
9748         (redisplay_output_subwindow): redisplay rather than update subwindow.
9749         (redisplay_output_layout): ditto.
9750
9751         * redisplay-msw.c (mswindows_frame_output_end):
9752         (mswindows_frame_output_end): make defer window pos optional.
9753
9754         * lisp.h: add Flast.
9755
9756         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9757         normalize method. Change update method to be for changed
9758         instantiators. Add redisplay method. Change signature of layout
9759         method.
9760         (struct Lisp_Image_Instance): add instantiator.
9761         (IMAGE_INSTANCE_INSTANTIATOR): new.
9762         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9763         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9764         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9765
9766         * glyphs.c:
9767         (find_instantiator_differences): new function.
9768         (Fset_instantiator_property): new convenience function.
9769         (check_image_instance_structure): strictly check for vector
9770         instantiators.
9771         (normalize_image_instantiator): make non-static.
9772         (instantiate_image_instantiator): pass on dest_mask and use new
9773         signatures for image_instance_layout and friends.
9774         (mark_image_instance): mark the instantiator. Mark the subwindow
9775         face not the widget face.
9776         (image_instance_equal): add instantiator.
9777         (image_instance_hash): ditto.
9778         (allocate_image_instance): ditto.
9779         (Fset_image_instance_property): removed.
9780         (Fimage_instance_file_name): ditto.
9781         (Fcolorize_image_instance): ditto.
9782         (image_instance_layout): add offsets to be set.
9783         (update_image_instance): new function. update an image instance
9784         from its changed instantiator.
9785         (inherit_normalize): add dest_mask.
9786         (xbm_normalize): ditto.
9787         (xface_normalize): ditto.
9788         (xpm_normalize): ditto.
9789         (text_update): set_property -> update.
9790         (image_instantiate): use the glyph identity as a hash key, not the
9791         instantiator.
9792         (glyph_width): use new image_instance_layout signature.
9793         (glyph_ascent): ditto.
9794         (glyph_descent): ditto.
9795         (glyph_height): ditto.
9796         (glyph_query_geometry): ressurrect.
9797         (glyph_layout): ditto.
9798         (redisplay_subwindow): update -> redisplay.
9799         (syms_of_glyphs): add Fset_instantiator_property.
9800         (image_instantiator_format_create): set_property -> update.
9801
9802         * glyphs-x.c:
9803         (autodetect_normalize): add dest_maks to signature.
9804         (x_redisplay_subwindow): update -> redisplay.
9805         (x_redisplay_widget): ditto.
9806         (x_button_redisplay): ditto.
9807         (x_progress_gauge_redisplay): ditto.
9808         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9809         stacking order.
9810         (console_type_create_glyphs_x): update -> redisplay.
9811         (image_instantiator_format_create_glyphs_x): ditto.
9812
9813         * glyphs-widget.c:
9814         (check_valid_instantiator): disallow glyphs in the instantiator,
9815         they must now be vectors.
9816         (check_valid_instantiator_list): ditto.
9817         (glyph_instantiator_to_glyph): use internal symbol rather than
9818         intern.
9819         (widget_update): renamed from widget_set_property. Call cascaded
9820         update methods.
9821         (redisplay_widget): renamed from update_widget.
9822         (widget_layout): image_instance_layout now takes position as well
9823         as size.
9824         (widget_normalize): ditto.
9825         (widget_instantiate): ditto.
9826         (tab_control_query_geometry) ditto.:
9827         (tab_control_update): renamed from tab_control_set_property.
9828         (progress_gauge_update): set_property -> update.
9829         (layout_normalize): rewrite so that child instantiators are
9830         normalized also.
9831         (layout_update): new function. Create glyphs from the normalized
9832         children and cope with any other layout keywords. We do not
9833         instantiate children here that will be take care of by
9834         redisplay_output_layout.
9835         (layout_instantiate): call layout_update and not much else.
9836         (layout_post_instantiate): not sure whether this is needed
9837         anymore.
9838         (layout_query_geometry): query glyph geometry rather than
9839         image_instance geometry.
9840         (layout_layout): set offsets from pass in parameters. Use glyph
9841         geometry and layout functions rather than image instance ones.
9842         (native_layout_layout): ditto.
9843         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9844         (image_instantiator_widget): set_property -> update.
9845         (image_instantiator_buttons): ditto.
9846         (image_instantiator_progress_guage): ditto.
9847         (image_instantiator_tab_control): ditto.
9848         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9849         (image_instantiator_layout): add update method.
9850
9851         * glyphs-msw.c (bmp_normalize):
9852         (mswindows_resource_normalize): add dest_mask so that it can be
9853         proprogated by layout_normalize.
9854         (begin_defer_window_pos): make optional because it may not be the
9855         right thing to do and it introduces differences with X.
9856         (mswindows_unmap_subwindow): ditto.
9857         (mswindows_map_subwindow): ditto.
9858         (mswindows_redisplay_subwindow): renamed from
9859         mswindows_update_subwindow.
9860         (mswindows_redisplay_widget): ditto.
9861         (mswindows_button_redisplay): renamed from
9862         mswindows_button_update. Update is now what the instantiation
9863         function does for a changed instantiator.
9864         (mswindows_progress_gauge_instantiate): set the progress value
9865         here if appropriate.
9866         (mswindows_tab_control_redisplay): cope with re-ordering of the
9867         members of the tab widget by simply selecting the new top
9868         widget. This makes things appear ok if you click on a tab.
9869         (mswindows_combo_box_instantiate): image_instance_layout now takes
9870         position as well as size.
9871         (mswindows_progress_gauge_redisplay): renamed from
9872         mswindows_progress_gauge_update.
9873         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9874         (image_instantiator_format_create_glyphs_mswindows): ditto.
9875
9876         * glyphs-eimage.c (jpeg_normalize):
9877         (gif_normalize):
9878         (png_normalize):
9879         (tiff_normalize): add dest_mask so that it can be proprogated by
9880         layout_normalize.
9881
9882         * elhash.c:
9883         (print_hash_table):
9884         (hash_table_weakness_validate):
9885         (decode_hash_table_weakness):
9886         (Fhash_table_weakness):
9887         (Fhash_table_type):
9888         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9889
9890         * console.h (struct console_methods): move update_* to
9891         redisplay_*.
9892
9893 2000-07-20  Ben Wing  <ben@xemacs.org>
9894
9895         * *.[ch] (XSETOBJ): remove unused middle argument.
9896         lisp-disunion.h: correct wrap_object() to one argument.
9897
9898 2000-07-15  Ben Wing  <ben@xemacs.org>
9899
9900         * s/cygwin32.h:
9901         * s/cygwin32.h (CYGWIN_CONV_PATH):
9902         Add missing logb prototype for v1.1.
9903         Use post-b20 names and alias to pre-b20 names when pre-b20.
9904
9905         * s/windowsnt.h: [5].
9906
9907 2000-07-15  Ben Wing  <ben@xemacs.org>
9908
9909         * Makefile.in.in (x_objs):
9910         * Makefile.in.in (sheap_objs):
9911         * Makefile.in.in (objs):
9912         added win32.o, cosmetic cleanups.
9913
9914         * alloc.c (Fmake_byte_code):
9915         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9916         etc. macros which declare their own args now.
9917
9918         * alloc.c (syms_of_alloc):
9919         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9920
9921         * buffer.c:
9922         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9923
9924         * buffer.c (Fget_file_buffer):
9925         Fixed GCPRO problem.
9926
9927         * buffer.c (get_truename_buffer):
9928         Fixed comment about GC checking.
9929
9930         * buffer.c (syms_of_buffer):
9931         Undeclared those dedicated frame funs.
9932         [2].
9933
9934         * buffer.h:
9935         Define convenience macros for internal/external conversions.
9936         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9937         and Qenvironment_variable_encoding for cleaner code.
9938
9939         * bufslots.h:
9940         Remove dedicated-frame; in lisp.
9941
9942         * bytecode.c (funcall_compiled_function):
9943         [1].
9944
9945         * bytecode.c (syms_of_bytecode):
9946         [2].
9947
9948         * console-msw.c:
9949         * console-msw.c (mswindows_show_console): Rewrote.
9950
9951         * console-msw.c (Fmswindows_debugging_output): New.
9952         Sends to OutputDebugString (special MSWin debugger interface).
9953
9954         * console-msw.c (Fmswindows_message_box):
9955         Fixed stupid bugs so it works when called from kill-emacs.
9956
9957         * console-msw.c (syms_of_console_mswindows):
9958         Declare Fmswindows_debugging_output.
9959
9960         * console-msw.h:
9961         New MSWin prototypes.
9962
9963         * console-msw.h (struct mswindows_frame):
9964         New entry last-click-mods for improved button-modifier support.
9965
9966         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9967         New struct entry `popup' with corresponding accessor.
9968
9969         * console-x.c:
9970         * console-x.c (split_up_display_spec):
9971         * console-x.c (get_display_arg_connection):
9972         * console-x.c (x_semi_canonicalize_console_connection):
9973         * console-x.c (x_canonicalize_device_connection):
9974         [[[6]]]: Change char to more specific type.
9975         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9976
9977         * console-x.c (x_semi_canonicalize_console_connection):
9978         * console-x.c (x_canonicalize_device_connection):
9979         [[[9]]]: Fix up error signalling to use new structured error system.
9980
9981         * console-x.h:
9982         [[[4]]]: Define codesys aliases:
9983         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9984         Qx_color_name_encoding, Qx_display_name_encoding.
9985
9986         * console.h (struct console_methods):
9987         New method make_dialog_box_internal supersedes older
9988         popup_dialog_box method.
9989
9990         * data.c:
9991         Define many new errors, part of new structured errors.
9992
9993         * data.c (init_errors_once_early):
9994         * data.c (syms_of_data):
9995         [2].
9996
9997         * device-msw.c (mswindows_init_device):
9998         [[[5]]]: Cleanup to support NT 3.51.
9999
10000         * device-msw.c (decode_devmode): Cleanup.
10001
10002         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10003         * device-msw.c (mswindows_handle_print_dialog_box):
10004         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10005         * device-msw.c (syms_of_device_mswindows):
10006         Delete the dialog box primitives recently introduced by Kirill and
10007         instead interface to general dialog box interface.
10008
10009         * device-x.c:
10010         * device-x.c (compute_x_app_name):
10011         * device-x.c (x_init_device):
10012         * device-x.c (Fx_valid_keysym_name_p):
10013         * device-x.c (Fx_set_font_path):
10014         [6].
10015         [7].
10016
10017         * device.h (wrap_device): New.
10018         First of its kind; meant to replace XSETDEVICE.
10019
10020         * dialog-msw.c: Many file-dialog symbols.
10021
10022         * dialog-msw.c (mswindows_register_popup_frame): New.
10023         * dialog-msw.c (mswindows_is_dialog_msg): New.
10024         For supporting kbd traversal in dialog boxes.
10025
10026         * dialog-msw.c (dialog_proc):
10027         Support hitting ESC in dialogs.
10028
10029         * dialog-msw.c (struct):
10030         Common dialog box errors.
10031
10032         * dialog-msw.c (handle_file_dialog_box): New.
10033         Add file dialog code.
10034
10035         * dialog-msw.c (handle_question_dialog_box):
10036         Redo existing code to support new question dialog syntax.
10037
10038         * dialog-msw.c (console_type_create_dialog_mswindows):
10039         We support new dialog console method.
10040
10041         * dialog-msw.c (syms_of_dialog_mswindows):
10042         * dialog-msw.c (vars_of_dialog_mswindows):
10043         New file dialog symbols, vars.
10044
10045         * dialog-x.c:
10046         * dialog-x.c (maybe_run_dbox_text_callback):
10047         * dialog-x.c (dbox_descriptor_to_widget_value):
10048         * dialog-x.c (x_make_dialog_box_internal):
10049         * dialog-x.c (console_type_create_dialog_x):
10050         Mule-ize entire file.
10051         Redo to support question dialog syntax.
10052         [6].
10053
10054         * dialog.c:
10055         * dialog.c (Fmake_dialog_box_internal):
10056         * dialog.c (syms_of_dialog):
10057         Kill old popup-dialog-box, replace with new primitive.
10058         Just call device method or signal error.
10059
10060         * eldap.c (Fldap_open):
10061         * eldap.c (Fldap_search_basic):
10062         * eldap.c (Fldap_add):
10063         * eldap.c (Fldap_modify):
10064         [1].
10065         [7].
10066
10067         * emacs.c:
10068         * emacs.c (make_arg_list_1):
10069         * emacs.c (make_arg_list):
10070         Mule-ize call to dll_init().
10071         [6].
10072         [8].
10073
10074         * emacs.c (make_argc_argv):
10075         * emacs.c (free_argc_argv):
10076         * emacs.c (init_cmdargs):
10077         * emacs.c (main_1):
10078         * emacs.c (Fkill_emacs):
10079         * emacs.c (Fdump_emacs):
10080         Update comments about what can be used in syms_* etc.
10081         Call init_win32() when necessary.
10082         Fix up MS Win dialog box in kill-buffer to actually work right.
10083         [7].
10084
10085         * eval.c:
10086         * eval.c (For):
10087         * eval.c (Fand):
10088         * eval.c (Fprogn):
10089         * eval.c (Fprog1):
10090         * eval.c (Fprog2):
10091         * eval.c (FletX):
10092         * eval.c (Flet):
10093         * eval.c (condition_case_3):
10094         * eval.c (Feval):
10095         * eval.c (function_argcount):
10096         * eval.c (funcall_lambda):
10097         [1].
10098
10099         * eval.c (type_error): New.
10100         * eval.c (maybe_type_error): New.
10101         * eval.c (continuable_type_error): New.
10102         * eval.c (maybe_continuable_type_error): New.
10103         * eval.c (type_error_with_frob): New.
10104         * eval.c (maybe_type_error_with_frob): New.
10105         * eval.c (continuable_type_error_with_frob): New.
10106         * eval.c (maybe_continuable_type_error_with_frob): New.
10107         New functions for use with structured errors.
10108
10109         * event-Xt.c:
10110         * event-Xt.c (x_event_to_emacs_event):
10111         Buttons are now modifiers too.
10112
10113         * event-Xt.c (emacs_Xt_current_event_timestamp):
10114         Implement new event method.
10115         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10116
10117         * event-msw.c:
10118         * event-msw.c (ntpipe_shove_writer): [5].
10119         * event-msw.c (mswindows_enqueue_mouse_button_event):
10120         * event-msw.c (mswindows_drain_windows_queue):
10121         * event-msw.c (mswindows_wnd_proc): [7].
10122         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10123         * event-msw.c (mswindows_modifier_state):
10124         Throughout: support new button modifiers.
10125
10126         * event-msw.c (emacs_mswindows_current_event_timestamp):
10127         Implement new event method.
10128         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10129
10130         * event-stream.c:
10131         * event-stream.c (event_stream_current_event_timestamp): New.
10132         * event-stream.c (maybe_kbd_translate): New functionality.
10133         * event-stream.c (vars_of_event_stream):
10134         Document new kbd-translate-table functionality.
10135
10136         * event-stream.c (Fcurrent_event_timestamp): New.
10137         New primitive for use in fabricated events.
10138         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10139
10140         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10141
10142         * events.c:
10143         * events.c (Fmake_event):
10144         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10145         [1].
10146         [9].
10147
10148         * events.c (format_event_object): fix gcc warnings.
10149
10150         * events.c (Fevent_timestamp): Document new primitives.
10151
10152         * events.c (TIMESTAMP_HALFSPACE): New.
10153
10154         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10155         comparing timestamps correctly (half-space algorithm).
10156
10157         * events.c (Fevent_modifier_bits): Doc fix.
10158
10159         * events.c (Fevent_modifiers): Major doc addition.
10160         * events.c (event_x_y_pixel_internal): Typo fix.
10161         * events.c (syms_of_events): Declare new primitives.
10162
10163         * events.h:
10164         Update long comment for button modifiers, timestamps.
10165
10166         * events.h (struct event_stream):
10167         New current_event_timestamp method.
10168
10169         * extents.c:
10170         * extents.c (extent_in_region_p):
10171         * extents.c (decode_extent):
10172         * extents.c (Fset_extent_parent):
10173         * extents.c (decode_map_extents_flags):
10174         Fix gcc warnings.
10175         [9].
10176
10177         * extents.c (struct extent_at_arg):
10178         * extents.c (decode_extent_at_flag):
10179         * extents.c (extent_at_mapper):
10180         * extents.c (extent_at_bytind):
10181         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10182         * extents.c (Fextents_at): New primitive. [9].
10183         * extents.c (symbol_to_glyph_layout): [9].
10184         Support new primitive `extents-at'.
10185
10186
10187         * extents.c (get_text_property_bytind):
10188         extent_at_bytind has another arg.
10189         [9].
10190
10191         * extents.c (syms_of_extents): New primitive.
10192
10193         * file-coding.c (Fmake_coding_system): [1].
10194         * file-coding.c (subsidiary_coding_system): fix gcc warning
10195         * file-coding.c (syms_of_file_coding): [2].
10196
10197         * fileio.c (Fexpand_file_name):
10198         * fileio.c (Fsysnetunam):
10199         * fileio.c (Ffile_exists_p):
10200         * fileio.c (Ffile_executable_p):
10201         * fileio.c (Fverify_visited_file_modtime):
10202         Clean up GCPROing.
10203
10204         * fileio.c (syms_of_fileio): [2].
10205
10206         * filelock.c (lock_file_1):
10207         * filelock.c (current_lock_owner):
10208         * filelock.c (lock_if_free):
10209         * filelock.c (lock_file):
10210         * filelock.c (unlock_file):
10211         Clean up GCPROing.
10212
10213         * fns.c (concat): Fix gcc warning.
10214
10215         * fns.c (Fmember):
10216         * fns.c (Fold_member):
10217         * fns.c (Fmemq):
10218         * fns.c (Fold_memq):
10219         * fns.c (memq_no_quit):
10220         * fns.c (Fassoc):
10221         * fns.c (Fold_assoc):
10222         * fns.c (Fassq):
10223         * fns.c (Fold_assq):
10224         * fns.c (assq_no_quit):
10225         * fns.c (Frassoc):
10226         * fns.c (Fold_rassoc):
10227         * fns.c (Frassq):
10228         * fns.c (Fold_rassq):
10229         * fns.c (rassq_no_quit):
10230         * fns.c (Fdelete):
10231         * fns.c (Fold_delete):
10232         * fns.c (Fdelq):
10233         * fns.c (Fold_delq):
10234         * fns.c (delq_no_quit):
10235         * fns.c (Fremassoc):
10236         * fns.c (Fremassq):
10237         * fns.c (remassq_no_quit):
10238         * fns.c (Fremrassoc):
10239         * fns.c (Fremrassq):
10240         * fns.c (remrassq_no_quit):
10241         * fns.c (Freverse):
10242         * fns.c (mapcar1):
10243         [1].
10244
10245         * frame-msw.c (mswindows_init_frame_1):
10246         * frame-msw.c (mswindows_delete_frame):
10247         Register popups with dialog code so keyboard traversing works.
10248
10249         * frame-tty.c (tty_raise_frame_no_select): [1].
10250
10251         * frame-x.c:
10252         * frame-x.c (x_set_frame_text_value):
10253         * frame-x.c (x_set_frame_properties):
10254         * frame-x.c (x_create_widgets):
10255         [7].
10256
10257         * frame.c:
10258         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10259
10260         * frame.h (wrap_frame): New.
10261         Macro like wrap_device.
10262
10263         * general.c:
10264         * general.c (SYMBOL):
10265         * general.c (syms_of_general):
10266         Major reorg.  This is now just a wrapper and symbols themselves
10267         are listed in general-slots.h.
10268
10269         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10270         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10271
10272         * glyphs-msw.c (mswindows_native_layout_instantiate):
10273         Add DS_CONTROL so keyboard traversal will work.
10274
10275         * glyphs-widget.c:
10276         * glyphs-widget.c (syms_of_glyphs_widget):
10277         Move some symbols to general-slots.h.
10278
10279         * glyphs-x.c:
10280         * glyphs-x.c (xbm_instantiate_1):
10281         * glyphs-x.c (x_xbm_instantiate):
10282         * glyphs-x.c (x_xface_instantiate):
10283         * glyphs-x.c (autodetect_instantiate):
10284         * glyphs-x.c (cursor_font_instantiate):
10285         * glyphs-x.c (x_update_widget):
10286         * glyphs-x.c (x_widget_instantiate):
10287         * glyphs.c (bitmap_to_lisp_data):
10288         * glyphs.c (pixmap_to_lisp_data):
10289         [7].
10290
10291         * glyphs.c (syms_of_glyphs):
10292         [2].
10293
10294         * gui-x.c:
10295         * gui-x.c (print_widget_value):
10296         * gui-x.c (menu_separator_style_and_to_external):
10297         * gui-x.c (add_accel_and_to_external):
10298         * gui-x.c (button_item_to_widget_value):
10299         * gui-x.c (gui_items_to_widget_values_1):
10300         * gui-x.c (gui_items_to_widget_values):
10301         * gui-x.c (syms_of_gui_x):
10302         * gui-x.c (vars_of_gui_x):
10303         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10304         [9].
10305
10306         * gui-x.h:
10307         Muleize, prototype changes matching gui-x.c.
10308
10309         * gui.c:
10310         * gui.c (separator_string_p):
10311         * gui.c (gui_item_add_keyval_pair):
10312         * gui.c (make_gui_item_from_keywords_internal):
10313         * gui.c (signal_too_long_error):
10314         * gui.c (parse_gui_item_tree_item):
10315         * gui.c (syms_of_gui):
10316         * gui.c (vars_of_gui):
10317         * gui.h:
10318         menu-no-selection-hook moved here (used by MSWin).
10319         Move some symbols to general-slots.h.
10320         [6].
10321         [9].
10322
10323         * insdel.c (get_buffer_pos_char):
10324         * insdel.c (get_buffer_range_char):
10325         Add GC comments.
10326
10327         * keymap.c (keymap_lookup_directly):
10328         * keymap.c (keymap_store):
10329         * keymap.c (ensure_meta_prefix_char_keymapp):
10330         * keymap.c (describe_map):
10331         * keymap.h:
10332         Support new button modifiers.
10333
10334         * lisp-disunion.h (wrap_object):
10335         * lisp-disunion.h (XSETOBJ):
10336         Rename make_obj to wrap_object.
10337
10338         * lisp-union.h:
10339         * lisp-union.h (make_int):
10340         * lisp-union.h (make_char):
10341         Support wrap_object.
10342
10343         * lisp.h:
10344         * lisp.h (LIST_LOOP):
10345         * lisp.h (EXTERNAL_LIST_LOOP):
10346         * lisp.h (LIST_LOOP_2):
10347         * lisp.h (EXTERNAL_LIST_LOOP_1):
10348         * lisp.h (EXTERNAL_LIST_LOOP_2):
10349         * lisp.h (EXTERNAL_LIST_LOOP_3):
10350         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10351         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10352         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10353         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10354         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10355         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10356         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10357         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10358         * lisp.h (struct Lisp_Symbol):
10359         * lisp.h (maybe_continuable_error_with_frob):
10360         Fix up section comments.
10361         Add new types for char to indicate usage.
10362         Delete symbols auto-generated from general-slots.h.
10363         Add prototypes for structured error functions.
10364         Add long comments describing looping macros and change interface
10365         so that lvalues are automatically declared.
10366         Add NO_DECLARE macro in case callers want to declare lvalues
10367         themselves.
10368
10369         * lread.c (read_syntax_error):
10370         * lread.c (continuable_read_syntax_error):
10371         * lread.c (read_structure):
10372         * lread.c (sequence_reader):
10373         * lread.c (read_list_conser):
10374         * lread.c (read_compiled_function):
10375         Rename syntax_error and continuable_syntax_error to avoid clash
10376         with same-named structured error functions.
10377
10378         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10379         * menubar-msw.c (populate_menu_add_item):
10380         * menubar-msw.c (populate_or_checksum_helper):
10381         [5].
10382         [9].
10383
10384         * menubar-x.c:
10385         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10386         Mule-ize whole file.
10387
10388         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10389
10390         * mule-charset.c (Fmake_charset):
10391         * mule-wnnfns.c (Fwnn_set_param):
10392         [1].
10393
10394         * ntproc.c (create_child):
10395         * ntproc.c (Fwin32_set_current_locale):
10396         Add comments portending doom.
10397
10398         * objects-msw.c:
10399         * objects-msw.c (old_font_enum_callback_2):
10400         * objects-msw.c (font_enum_callback_1):
10401         * objects-msw.c (mswindows_enumerate_fonts):
10402         [5].
10403
10404         * objects-x.c:
10405         * objects-x.c (allocate_nearest_color):
10406         * objects-x.c (x_parse_nearest_color):
10407         * objects-x.c (x_initialize_color_instance):
10408         * objects-x.c (x_print_color_instance):
10409         * objects-x.c (x_finalize_color_instance):
10410         * objects-x.c (x_valid_color_name_p):
10411         * objects-x.c (x_initialize_font_instance):
10412         * objects-x.c (x_print_font_instance):
10413         * objects-x.c (valid_x_font_name_p):
10414         * objects-x.c (truename_via_FONT_prop):
10415         * objects-x.c (truename_via_random_props):
10416         * objects-x.c (truename_via_XListFonts):
10417         * objects-x.c (x_font_truename):
10418         * objects-x.c (x_font_instance_truename):
10419         * objects-x.c (x_font_instance_properties):
10420         * objects-x.c (x_list_fonts):
10421         * objects-x.c (x_find_charset_font):
10422         Mule-ize entire file.
10423         [7].
10424
10425         * objects-x.h:
10426         Mule-verify.
10427
10428         * print.c:
10429         * print.c (std_handle_out_external):
10430         * print.c (debug_print_no_newline):
10431         * print.c (syms_of_print):
10432         Output to all debugger kinds in debug-print.
10433         Fix console-output code under MSWin to actually work.
10434
10435         * process-nt.c (send_signal):
10436         * process-nt.c (nt_create_process):
10437         Use newer Unicode macros.
10438
10439         * process-unix.c (unix_create_process):
10440         * process-unix.c (unix_canonicalize_host_name):
10441         * process-unix.c (unix_open_network_stream):
10442         [7].
10443
10444         * scrollbar-x.c:
10445         Mule-verify.
10446
10447         * search.c (syms_of_search):
10448         [2].
10449
10450         * select-msw.c (mswindows_destroy_selection):
10451         Use LIST_LOOP_2.
10452
10453         * select-x.c (symbol_to_x_atom):
10454         [7].
10455
10456         * select.c (syms_of_select):
10457         [2].
10458
10459         * sound.c (Fplay_sound_file):
10460         [7].
10461
10462         * specifier.c:
10463         * specifier.c (decode_specifier_type):
10464         * specifier.c (Fvalid_specifier_locale_type_p):
10465         * specifier.c (check_valid_locale_or_locale_type):
10466         * specifier.c (decode_locale):
10467         * specifier.c (decode_locale_type):
10468         * specifier.c (decode_locale_list):
10469         * specifier.c (check_valid_domain):
10470         * specifier.c (decode_specifier_tag_set):
10471         * specifier.c (Fcanonicalize_tag_set):
10472         * specifier.c (Fdefine_specifier_tag):
10473         * specifier.c (Fspecifier_tag_predicate):
10474         * specifier.c (check_valid_inst_list):
10475         * specifier.c (check_valid_spec_list):
10476         * specifier.c (decode_how_to_add_specification):
10477         * specifier.c (check_modifiable_specifier):
10478         * specifier.c (specifier_add_spec):
10479         * specifier.c (boolean_validate):
10480         * specifier.c (display_table_validate):
10481         [9].
10482
10483         * specifier.c (syms_of_specifier):
10484         Move some symbols to general-slots.h.
10485         [2].
10486
10487         * symbols.c:
10488         * symbols.c (Fmapatoms):
10489         * symbols.c (Fapropos_internal):
10490         Add GCPROs.
10491
10492         * symbols.c (set_default_buffer_slot_variable):
10493         * symbols.c (set_default_console_slot_variable):
10494         [1].
10495
10496         * symbols.c (defsymbol_massage_name_1):
10497         * symbols.c (defkeyword_massage_name):
10498         * symbols.c (deferror_1):
10499         * symbols.c (deferror):
10500         * symbols.c (deferror_massage_name_and_message):
10501         * symeval.h:
10502         * symeval.h (DEFSYMBOL):
10503         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10504
10505         * symbols.c (syms_of_symbols):
10506         [2].
10507
10508         * symsinit.h:
10509         * symsinit.h (init_win32): New.
10510         Also new is syms_of_dialog_mswindows.
10511
10512         * syswindows.h:
10513         Add new Unicode macros, missing Cygwin wide-char functions,
10514         convenience conversion macros for Qmswindows_tstr, macros for
10515         encapsulating required MSWin <-> Cygwin filename conversions,
10516         prototype for dynamically-extracted (not in NT 3.51) functions.
10517
10518         * toolbar-x.c:
10519         Mule-verify.
10520
10521         * tooltalk.c (Fadd_tooltalk_message_arg):
10522         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10523         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10524         [7].
10525
10526         * tooltalk.c (syms_of_tooltalk):
10527         [2].
10528
10529         * unexnt.c:
10530         * unexnt.c (unexec):
10531         Fix up headers, declaration of unexec() to be more standard.
10532
10533 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10534
10535         * offix.h: Revert change to guard macros - they're used in offix.c!
10536
10537 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10538
10539         * lisp.h: Defsubred Fdelete.
10540
10541         * console-msw.h:  (msprinter_default_printer): Added.
10542
10543         * console-msw.c (msprinter_canonicalize_console_connection):
10544         (msprinter_canonicalize_device_connection): Added.
10545
10546         * device-msw.c (msprinter_default_printer):
10547         (Fmswingows_get_default_printer):
10548         (signal_enum_priner_error):
10549         (Fmswingows_printer_list): Added.
10550
10551 2000-07-19  Martin Buchholz <martin@xemacs.org>
10552
10553         * XEmacs 21.2.35 is released.
10554
10555 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10556
10557         * select-x.c (x_handle_selection_request):
10558         Text selected in xemacs and pasted into xterm failed to appear.
10559         Spelling fixes and cosmetic changes.
10560
10561 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10562
10563         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10564         XEmacs frame (fix for doubling chars in dialog boxes).
10565
10566 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10567
10568         * select.c (select_convert_in, select_convert_out):
10569         Don't call intern() every time.
10570
10571         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10572         * select.c (vars_of_select): Initialise them.
10573
10574 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10575
10576         * select.c (selection-coercible-types): New.
10577
10578         * select.c (own-selection-internal):
10579         * select.c (get-selection-internal):
10580         MULE bug fix - these should default to COMPOUND_TEXT and not
10581         STRING for MULE. I think.
10582
10583         * select.c (select_convert_out): Use selection-coercible-types
10584         to find types that we can attempt to perform coercions on.
10585
10586 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10587
10588         * mule-wnnfns.c:
10589         * mule-canna.c:
10590         Add coding: cookie to identify encoding.
10591
10592         * mule-canna.c (CANNA_mode_keys): make static.
10593         Use proper prototypes, even for functions of no arguments.
10594         Remove external prototype for Fding().
10595
10596         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10597
10598         * select.c (syms_of_select): Add missing DEFSUBR.
10599
10600 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10601
10602         * select.c (get_selection_internal, own_selection_internal):
10603         Make the type default to STRING, rather than placing a nil type
10604         into Vselection_alist.
10605
10606 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10607
10608         * gpmevent.c (tty_selection_exists_p):
10609         * gpmevent.c (tty_own_selection):
10610         Updated parameter lists.
10611
10612 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10613
10614         * select.h (selection-alist): Removed declaration.
10615
10616         * select.h (get_local_selection):
10617         * select.c (get_local_selection):
10618         Made static.
10619
10620         * select.h (convert_selection): Removed declaration.
10621         * select.c (convert_selection): Removed.
10622         This function belongs in Lisp.
10623
10624         * select.h (select_convert_in): Declare.
10625         * select.h (select_convert_out): Declare.
10626         * select.c (select_convert_in): New.
10627         * select.c (select_convert_out): New.
10628         New conversion functions for other files to call.
10629
10630         * select.h (select_notify_buffer_kill): Declare.
10631         * select.c (select_notify_buffer_kill): New.
10632         New functions that get called from kill-buffer.
10633
10634         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10635         X-specific lisp code.
10636
10637         * select.h: Declare some of the lisp-visible functions for
10638         external use.
10639
10640         * select.c (clean_local_selection_data): Removed. This was
10641         a disgusting function, and previously should have been in
10642         select-x.c in any case. The functionality is now provided
10643         in select-convert-from-integer (select.el).
10644
10645         * select.c (available-selection-types): Fixed stupidity where
10646         INTEGER and ATOM got added twice. Also add STRING when we see an
10647         extent.
10648
10649         * select.c (get-selection-internal): Removed symbol stripping. No
10650         longer causes conversion when data comes from the internal cache.
10651
10652         * select.c (syms_of_select): Added new functions.
10653
10654         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10655         error checking - previously this called abort!
10656
10657         * select-x.c (x_own_selection): Changed comment.
10658
10659         * select-x.c (x_handle_selection_request): Use select_convert_out.
10660         Don't mess with selection-alist; it's an internal variable of select.c.
10661
10662         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10663
10664         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10665         rather than messing with selection-alist.
10666
10667         * select-msw.c (mswindows_get_foreign_selection):
10668         Use TO_INTERNAL_FORMAT rather than hacking.
10669
10670 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10671
10672         * process-unix.c (unix_open_multicast_group):
10673         (unix_open_multicast_group): Remove useless casts.
10674
10675 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10676
10677         * sound.c (Fplay_sound): Fix `unused variable' warning.
10678
10679         * emacs.c (main): Use correct type for _environ on SCO5.
10680
10681 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10682
10683         * console.h (own_selection_method):
10684         * console.h (selection_exists_p_method):
10685         * console.h (available_selection_types_method): New.
10686         * console.h (register_selection_data_type_method): New.
10687         * console.h (selection_data_type_name): New.
10688
10689         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10690         function & alist to track GlobalAlloc()'d handles that need
10691         releasing when the clipboard data gets replaced or emptied.
10692
10693         * event-msw.c (mswindows_wnd_proc): Call it.
10694
10695         * lisp.h, general.c (Qappend): New symbol representing a
10696         `how-to-add' mode.
10697
10698         * select.c (own-selection-internal):
10699         * select.c (selection-exists-p):
10700         * select.c (available-selection-types): New.
10701         * select.c (register-selection-data-type): New.
10702         * select.c (selection-data-type-name): New.  New functions to deal
10703         with device-specific selection data formats.
10704         * select.c (selection-converter-out-alist): Renamed.
10705         * select.c (selection-converter-in-alist): New.
10706         * select.c (selection-appender-alist): New.  Added new alists.
10707         * select.c (syms_of_select, vars_of_select): Added new symbols &
10708         variables.
10709         * select.c (get_local_selection): Split.
10710         * select.c: Removed spurious type checking - selections may now be
10711         of any type, not just strings.
10712         * select.c (own-selection-internal):
10713
10714         * select.h, select.c (convert_selection): New. Created
10715         convert_selection() function based on get_local_selection().
10716         * select.h, select.c (QCF_*): New symbols representing mswindows
10717         clipboard formats.
10718         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10719         symbols representing `how-to-add' modes.
10720
10721         * select-msw.c (x_sym_p): New.
10722         * select-msw.c (symbol_to_ms_cf): New.
10723         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10724         symbols & clipboard formats. Can also handle string names.
10725         * select-msw.c (mswindows_own_selection):
10726         * select-msw.c (mswindows_selection_exists_p):
10727         Added `data-type' parameter. Use it.
10728         * select-msw.c (mswindows_available_selection_types): New.
10729         * select-msw.c (mswindows_register_selection_data_type): New.
10730         * select-msw.c (mswindows_selection_data_type_name): New.
10731         * select-msw.c (mswindows_own_selection):
10732         * select-msw.c (mswindows_get_foreign_selection):
10733         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10734         * select-msw.c (console_create_select_mswindows): Added new methods.
10735         * select-msw.c (mswindows_destroy_selection): New.
10736         * select-msw.c (Vhandle_alist): New list.
10737         * select-msw.c (mswindows_own_selection):
10738
10739         * select-x.c (x_own_selection):
10740         * select-x.c (x_selection_exists_p):
10741         * select-x.c: Added some comments about maybe using new
10742         functionality.
10743         * select-x.c (x_own_selection):
10744
10745         * specifier.c: Remove definition of Qappend (now in general.c)
10746         * specifier.c (syms_of_specifier): Remove Qappend.
10747
10748 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10749
10750         * config.h.in: Add socklen_t.
10751
10752         * s/decosf4-0.h: No special compiler flags needed or desired.
10753         In particular, undefine _BSD for DEC OSF 4.0.
10754
10755 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10756
10757         * redisplay-msw.c (msprinter_frame_output_end): Added.
10758         (console_type_create_redisplay_mswindows): Referred the above.
10759
10760         * frame.c (setup_frame_without_minibuffer): Do not create a
10761         default minibuffer frame on a printer device.
10762
10763         * frame-msw.c (apply_dc_geometry): Added.
10764         (msprinter_start_page):
10765         (msprinter_init_frame_3):
10766         (msprinter_eject_page): Use it.
10767
10768         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10769         and removed residual duplex and orientation properties.
10770
10771 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10772
10773         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10774
10775         * unexalpha.c: Remove system prototypes from C sources!
10776
10777 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10778
10779         * eval.c: Remove references to M-x edit-options in DEFUNs for
10780         `defvar' and `defconst'.
10781
10782 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10783
10784         * config.h.in: Remove SMART_INCLUDE hackery.
10785
10786         PostgreSQL hacking:
10787         * config.h.in: Don't use SMART_INCLUDE.
10788
10789         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10790         * inline.c: Simply #include "postgresql.h"
10791         * postgresql.c:
10792         - Don't use SMART_INCLUDE
10793         - Use simply "const".
10794         - Use standard doc string conventions.
10795         - Use correct type for result of PQstatus.
10796
10797 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10798
10799         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10800
10801         C++ compilation changes.
10802         * config.h.in (EXTERN_C): Define.
10803         * config.h.in (not): This is also a C++ keyword.
10804         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10805         * cm.c: Use EXTERN_C.
10806         * redisplay-tty.c: Use EXTERN_C.
10807         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10808
10809 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10810
10811         * general.c: Remove duplicate definition for Qfunction.
10812
10813 2000-07-08  Ben Wing  <ben@xemacs.org>
10814
10815         * device-msw.c (msprinter_init_device):
10816         * device-msw.c (sync_printer_with_devmode):
10817         * device-msw.c (handle_devmode_changes):
10818         * device-msw.c (print_dialog_worker):
10819         * device-msw.c (Fmsprinter_apply_settings):
10820         * device-msw.c (hash_devmode):
10821         * device-msw.c (Fmsprinter_settings_despecialize):
10822         use Qmswindows_tstr, not Qctext.
10823
10824         * vm-limit.c (check_memory_limits):
10825         avoid infinite loop printing warning messages.
10826
10827 2000-07-05  Craig Lanning  <lanning@scra.org>
10828
10829         * Makefile.in.in: Add support for including the Windows resources
10830         when building with the cygwin and mingw targets.
10831
10832         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10833         not set or not correct.
10834         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10835         (init_initial_directory): Don't try to use $PWD on the
10836         WIN32_NATIVE target.
10837
10838         * s\cygwin32.h:
10839         [[Add -mwindows to eliminate console window.]] not required --ben
10840         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10841         (MAIL_USE_POP): removed; now handled by configure.
10842
10843         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10844         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10845         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10846         (MAIL_USE_POP): removed; now handled by configure.
10847         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10848         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10849         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10850         constant string.
10851         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10852         up from <winsock.h> via systime.h.
10853         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10854         (getpagesize): from Dan Holmsand, added.
10855         Added #endif which was left dangling by Ben's mega patch; added
10856         comment to help prevent this in the future.
10857
10858         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10859
10860 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10861
10862         * console-msw.h (struct mswindows_device): Removed unnecessary
10863         cached device geometry values.
10864         Added update_tick and an accessor macro.
10865         (Lisp_Devmode): Added lrecord declaration.
10866         (struct msprinter_device): Contain devmode as a Lisp object.
10867         Added mswindows_get_selected_frame_hwnd();
10868
10869         * console.h (struct console_methods): Indentation nitpicking.
10870
10871         * device-msw.c (mswindows_init_device): Do not initialize geometry
10872         cache. Initialize update tick.
10873         (mswindows_device_system_metrics): Ask the device for its geometry.
10874         (global_free_2_maybe):
10875         (devmode_to_hglobal):
10876         (handle_printer_changes):
10877         (ensure_not_printing):
10878         (print_dialog_worker):
10879         (Fmsprinter_print_setup_dialog):
10880         (Fmsprinter_print_dialog):
10881         (plist_get_margin):
10882         (plist_set_margin):
10883         (Fmsprinter_page_setup_dialog): Added functions.
10884         (sync_printer_with_devmode):
10885         (handle_devmode_changes):
10886         (Fmsprinter_get_settings):
10887         (Fmsprinter_select_settings):
10888         (Fmsprinter_apply_settings):
10889         (allocate_devmode):
10890         (Fmsprinter_settings_copy):
10891         (Fmsprinter_settings_despecialize):
10892         (print_devmode):
10893         (finalize_devmode):
10894         (equal_devmode):
10895         (hash_devmode): Added functions
10896         (syms_of_device_mswindows): Init devmode lrecord class.
10897
10898         * device.h: Added an exfun for find-device.
10899
10900         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10901         geometry; although, recreate the device compatible DC.
10902
10903         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10904         (msprinter_init_frame_3):
10905         (msprinter_frame_property):
10906         (msprinter_internal_frame_property_p):
10907         (msprinter_frame_properties):
10908         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10909         print job properties (will move to device settings).
10910
10911         * lisp.h: Added symbols.
10912
10913         * general.c (syms_of_general): Declared them.
10914
10915         * hash.c (string_hash): Added.
10916
10917         * lrecord.h (lrecord_type): Added devmode lrecord type.
10918
10919 2000-07-02  Mike Sperber <mike@xemacs.org>
10920
10921         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10922         FreeBSD 4.0.
10923
10924 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10925
10926         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10927         integer.
10928
10929 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10930
10931         * data.c (Fstring_to_number): Don't recognize floating point if
10932         base is not 10.
10933
10934 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10935
10936         * glyphs-widget.c (tab_control_query_geometry):
10937         (widget_query_geometry):
10938         (button_query_geometry):
10939         * glyphs.c (text_query_geometry):
10940         Enforce type correctness.
10941
10942 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10943
10944         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10945         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10946
10947 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10948
10949         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10950         conflicts with gcc's fixincluded version of FOO.h.
10951
10952         * glyphs.h (image_instance_geometry): Remove trailing `,'
10953
10954 2000-06-08  Mike Alexander  <mta@arbortext.com>
10955
10956         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10957         (shove_thread): Don't write the same output twice
10958         (make_ntpipe_output_stream): Increase priority of shove thread
10959         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10960         chance to run
10961         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10962         it.
10963
10964 2000-06-12  Ben Wing  <ben@xemacs.org>
10965
10966         * s\mingw32.h (sigset):
10967         * s\windowsnt.h (sigset):
10968         rename msw_ to mswindows_ for consistency with general convention.
10969
10970 2000-06-12  Ben Wing  <ben@xemacs.org>
10971
10972         * console-msw.c:
10973         * console-msw.c (mswindows_get_console_hwnd):
10974         * console-msw.c (mswindows_ensure_console_allocated):
10975         * console-msw.c (mswindows_hide_console):
10976         * console-msw.c (mswindows_show_console):
10977         * console-msw.c (mswindows_ensure_console_buffered):
10978         * console-msw.c (mswindows_output_console_string):
10979         * console-msw.c (mswindows_windows9x_p):
10980         * console-msw.h:
10981         * device-msw.c (mswindows_get_workspace_coords):
10982         * device-msw.c (mswindows_device_system_metrics):
10983         * dialog-msw.c (mswindows_popup_dialog_box):
10984         * event-msw.c (mswindows_wnd_proc):
10985         * frame-msw.c (mswindows_size_frame_internal):
10986         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10987         * menubar-msw.c (displayable_menu_item):
10988         * menubar-msw.c (mswindows_char_is_accelerator):
10989         * nt.c:
10990         * nt.c (mswindows_sigset):
10991         * nt.c (mswindows_sigrelse):
10992         * nt.c (mswindows_sigpause):
10993         * nt.c (mswindows_raise):
10994         * nt.c (timer_proc):
10995         * ntproc.c:
10996         * ntproc.c (find_child_console):
10997         * ntproc.c (sys_kill):
10998         * print.c:
10999         * print.c (std_handle_out_external):
11000         * process-nt.c (find_child_console):
11001         * process-nt.c (send_signal_the_95_way):
11002         * process-nt.c (ensure_console_window_exists):
11003         * process-nt.c (nt_create_process):
11004         * syssignal.h:
11005         rename msw_ to mswindows_ for consistency with general convention.
11006
11007         * emacs.c:
11008         * dumper.c:
11009         include nt.h, not syswindows.h.
11010
11011         * nt.c (mswindows_fstat):
11012         * nt.c (mswindows_stat):
11013         prefix mswindows_ instead of attempting to directly override the
11014         library functions.  fix declarations.
11015
11016         * nt.h:
11017         include syswindows.h.  move some sysdep.h stuff here.
11018
11019         * ntheap.h:
11020         include syswindows.h, not <windows.h>.
11021
11022         * ntplay.c:
11023         clean up headers.
11024
11025         * sysdep.c:
11026         clean up headers.
11027
11028         * sysdep.c (sys_fstat):
11029         * sysdep.c (sys_stat):
11030         call mswindows versions when appropriate.
11031
11032         * sysdep.h:
11033         move mswin decls to nt.h.
11034
11035         * syswindows.h:
11036         add long comment describing appropriate use of the various windows
11037         headers.
11038
11039 2000-06-11  Ben Wing  <ben@xemacs.org>
11040
11041         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11042
11043 2000-06-10  Ben Wing  <ben@xemacs.org>
11044
11045         * Makefile.in.in (release):
11046         Correction to make sure xemacs.exe always dumped when correct.
11047
11048         * alloca.c:
11049         * balloon_help.c:
11050         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11051
11052         * buffer.c (set_buffer_internal):
11053         [[[[2]]]]: Remove HAVE_FEP code.
11054
11055         * buffer.c (init_initial_directory):
11056         [3].
11057
11058         * bytecode.c:
11059         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11060         individual files.
11061
11062         * callproc.c:
11063         * callproc.c (call_process_cleanup):
11064         * callproc.c (Fold_call_process_internal):
11065         * callproc.c (child_setup):
11066         * callproc.c (getenv_internal):
11067         * callproc.c (init_callproc):
11068         * callproc.c (vars_of_callproc):
11069         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11070         __CYGWIN32__ -> CYGWIN.
11071         DOS_NT -> WIN32_NATIVE.
11072         Remove MSDOS support/references, converting to WIN32_NATIVE
11073           where correct.
11074         __MINGW32__ -> MINGW.
11075         Fix windows.h includes.
11076         Remove bogus HAVE_NTGUI.
11077
11078         * config.h.in:
11079         [2].
11080
11081         * console-msw.c:
11082         mswindows_message_outputted added for use in allowing startup
11083         errors on the console to be seen.
11084
11085         * console-msw.c (msw_ensure_console_allocated):
11086         * console-msw.c (msw_output_console_string):
11087         * console-msw.c (DHEADER):
11088         * console-msw.c (DOPAQUE_DATA):
11089         * console-msw.c (DEVENT):
11090         * console-msw.c (DCONS):
11091         * console-msw.c (DCONSCDR):
11092         * console-msw.c (DSTRING):
11093         * console-msw.c (DVECTOR):
11094         * console-msw.c (DSYMBOL):
11095         * console-msw.c (DSYMNAME):
11096         Fix warnings.
11097
11098         * console-stream.c (stream_init_console):
11099         Fix text/binary problems.
11100
11101         * device-msw.c:
11102         * device-msw.c (mswindows_finish_init_device):
11103         * device-msw.c (mswindows_delete_device):
11104         [1].
11105
11106         * device.c (handle_asynch_device_change):
11107         [3].
11108
11109         * dgif_lib.c:
11110         * dgif_lib.c (DGifOpenFileName):
11111         * dgif_lib.c (DGifOpenFileHandle):
11112         * dgif_lib.c (DGifGetLine):
11113         * dgif_lib.c (DGifGetPixel):
11114         Added config.h/lisp.h, fix up includes.
11115         [1].
11116
11117         * dired-msw.c:
11118         [4].
11119
11120         * dired.c:
11121         * dired.c (file_name_completion):
11122         * dired.c (Ffile_attributes):
11123         * dired.c (syms_of_dired):
11124         [1].
11125
11126         * dumper.c:
11127         * dumper.c (pdump_file_unmap):
11128         * dumper.c (pdump_load):
11129         [1].
11130
11131         * editfns.c:
11132         * editfns.c (Ftemp_directory):
11133         * editfns.c (user_login_name):
11134         * editfns.c (Fuser_real_login_name):
11135         * editfns.c (get_home_directory):
11136         [1].
11137
11138         * elhash.c (finish_marking_weak_hash_tables):
11139         [[[[5]]]]: Fix GCC warnings.
11140
11141         * emacs.c:
11142         * emacs.c (mswindows_handle_hardware_exceptions):
11143         * emacs.c (make_arg_list_1):
11144         * emacs.c (main_1):
11145         * emacs.c (Fkill_emacs):
11146         * emacs.c (Fdump_emacs):
11147         [1].
11148         Fix problems with nested crashes, add long comment.
11149
11150         * event-Xt.c (init_event_Xt_late):
11151         [1].
11152
11153         * event-msw.c:
11154         * event-msw.c (mswindows_dde_callback):
11155         * event-msw.c (mswindows_handle_sticky_modifiers):
11156         * event-msw.c (mswindows_wnd_proc):
11157         [1].
11158         [5].
11159
11160         * events.c (character_to_event):
11161         [1].
11162
11163         * fileio.c:
11164         * fileio.c (Ffile_name_directory):
11165         * fileio.c (Ffile_name_nondirectory):
11166         * fileio.c (directory_file_name):
11167         * fileio.c (Fexpand_file_name):
11168         * fileio.c (Fsubstitute_in_file_name):
11169         * fileio.c (Ffile_name_absolute_p):
11170         * fileio.c (check_executable):
11171         * fileio.c (Ffile_readable_p):
11172         * fileio.c (Ffile_accessible_directory_p):
11173         * fileio.c (Ffile_modes):
11174         * fileio.c (Funix_sync):
11175         * fileio.c (vars_of_fileio):
11176         [1]. [4].
11177
11178         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11179
11180         Expand getdefdir defn.
11181         Fix bogus rename() comment.
11182
11183         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11184         to use standard XEmacs include files, e.g. sysfile.h, rather
11185         than system-specific includes.
11186
11187         * fns.c:
11188         * fns.c (Fsubseq):
11189         [5]. [6].
11190
11191         * frame.c (vars_of_frame):
11192         [1].
11193
11194         * getloadavg.c:
11195         * getloadavg.c (getloadavg):
11196         [1]. [6].
11197         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11198         (We don't use it elsewhere in the code; just add a comment.)
11199
11200         * gif_io.c:
11201         [6].
11202         Add config.h.
11203
11204         * glyphs-msw.c:
11205         * glyphs-msw.c (mswindows_resource_instantiate):
11206         [1].
11207
11208         * glyphs-x.c (x_native_layout_instantiate):
11209         [5].
11210
11211         * gui-msw.c (Fmswindows_shell_execute):
11212         [1].
11213
11214         * insdel.c:
11215         [4].
11216
11217         * lisp.h:
11218         [4]. [5].
11219
11220         * lread.c (locate_file_in_directory_mapper):
11221         [1].
11222
11223         * lstream.c:
11224         [4].
11225
11226         * mem-limits.h:
11227         * mem-limits.h (get_lim_data):
11228         [1].
11229
11230         * menubar-msw.c:
11231         [4].
11232
11233         * ndir.h:
11234         [1].
11235
11236         * nt.c:
11237         * nt.c (getwd):
11238         * nt.c (closedir):
11239         * nt.c (rva_to_section):
11240         * nt.c (mswindows_executable_type):
11241         [1]. [6].
11242         Fix closedir() defn.
11243
11244         * nt.h:
11245         [[[[8]]]]: *_OK defs moved to sysfile.h.
11246
11247         * ntproc.c:
11248         [6]. [7].
11249
11250         * objects-x.c:
11251         [4].
11252
11253         * print.c:
11254         * print.c (std_handle_out_external):
11255         [1]. [4].
11256
11257         * process-nt.c:
11258         * process-nt.c (nt_create_process):
11259         [6].
11260         try to fix process quoting somewhat.
11261
11262         * process-unix.c (unix_create_process):
11263         [1].
11264
11265         * process.c:
11266         * process.c (vars_of_process):
11267         Add Vnull_device.
11268
11269         * process.h:
11270         [1].
11271
11272         * realpath.c:
11273         * realpath.c (xrealpath):
11274         [1].
11275
11276         * redisplay-tty.c (init_tty_for_redisplay):
11277         [3].
11278
11279         * redisplay.c:
11280         [4]. [6].
11281
11282         * scrollbar-msw.c:
11283         [4].
11284
11285         * sheap.c:
11286         * sheap.c (more_static_core):
11287         * sheap.c (report_sheap_usage):
11288         [5]. [6].
11289
11290         * signal.c:
11291         * signal.c (alarm_signal):
11292         [1]. [6].
11293
11294         * sound.c:
11295         [6].
11296
11297         * strftime.c:
11298         * strftime.c (zone_name):
11299         [1]. [5].
11300
11301         * symsinit.h (init_sunpro):
11302         [1].
11303
11304         * syscommctrl.h:
11305         commctrl.h not in Cygwin b20.1.
11306
11307         * sysdep.c:
11308         * sysdep.c (endif):
11309         * sysdep.c (sys_subshell):
11310         * sysdep.c (init_baud_rate):
11311         * sysdep.c (emacs_get_tty):
11312         * sysdep.c (emacs_set_tty):
11313         * sysdep.c (tty_init_sys_modes_on_device):
11314         * sysdep.c (init_system_name):
11315         * sysdep.c (sys_open):
11316         * sysdep.c (interruptible_open):
11317         * sysdep.c (sys_fopen):
11318         * sysdep.c (sys_mkdir):
11319         * sysdep.c (sys_rename):
11320         * sysdep.c (get_process_times_1):
11321         [1]. [6].
11322
11323         * sysdep.h:
11324         [1].
11325
11326         * sysdir.h:
11327         * sysdir.h (DIRENTRY_NONEMPTY):
11328         [1]. [6].
11329
11330         * sysdll.c (dll_init):
11331         * sysdll.h:
11332         [1].
11333
11334         * sysfile.h:
11335         [1]. [6]. [8].
11336         added text/binary defs.
11337
11338         * sysfloat.h:
11339         [1].
11340
11341         * sysproc.h:
11342         * sysproc.h (EDESTADDRREQ):
11343         * sysproc.h (poll_fds_for_input):
11344         [1]. [6].
11345
11346         * syspwd.h:
11347         [6].
11348
11349         * syssignal.h:
11350         [1].
11351
11352         * systime.h:
11353         [1]. [6].
11354
11355         * systty.h:
11356         [1].
11357
11358         * syswindows.h:
11359         [1].
11360         Always define WIN32_LEAN_AND_MEAN.
11361
11362         * unexcw.c (unexec):
11363         [5].
11364
11365         * unexec.c:
11366         * unexec.c (copy_text_and_data):
11367         * unexec.c (adjust_lnnoptrs):
11368         [1].
11369
11370         * unexnt.c:
11371         * unexnt.c (_start):
11372         [1].
11373
11374 2000-06-07  Ben Wing  <ben@xemacs.org>
11375
11376         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11377         was used only as a model.  We've long since extracted any useful
11378         logic or code out of this. (I just did an exhaustive search.)
11379
11380         * s\msdos.h: Removed.
11381
11382         * s\windows95.h: Removed.
11383
11384 2000-06-10  Ben Wing  <ben@xemacs.org>
11385
11386         * s\cygwin32.h:
11387         [1]. [5].
11388         Don't use extern with fun defs.
11389
11390         * s\mingw32.h:
11391         [1]. [7].
11392         Remove nt\inc include.
11393         Remove getdisk, getdefdir. (The former is unused, the latter
11394         expanded in fileio.h.)
11395
11396         * s\windowsnt.h:
11397         * s\windowsnt.h (WIN32_NATIVE):
11398         * s\windowsnt.h (HAVE_STRCASECMP):
11399         [1]. [7].
11400         Add long comment about preprocessor changes.
11401         Remove getdisk, getdefdir. (The former is unused, the latter
11402         expanded in fileio.h.)
11403
11404 2000-06-10  Ben Wing  <ben@xemacs.org>
11405
11406         * m\arm.h:
11407         * m\delta.h:
11408         * m\intel386.h:
11409         * m\sequent.h:
11410         * m\template.h:
11411         * m\windowsnt.h:
11412         [1].
11413         Remove bogus/unused NO_SOCK_SIGIO.
11414
11415 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11416
11417         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11418         not an Emchar.
11419
11420 2000-06-04  Mike Sperber <mike@xemacs.org>
11421
11422         * casetab.c (set_case_table): For `set-standard-case-table',
11423         actually deposit the new case tables where the rest of XEmacs can
11424         see them.
11425
11426 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11427
11428         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11429
11430 2000-06-05  Ben Wing  <ben@xemacs.org>
11431
11432         * callproc.c (child_setup): Don't do close_load_descs() under
11433         MS Windows.  Put in a comment explaining why.
11434
11435 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11436
11437         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11438         Toolkit shell" which breaks `kill-compilation' on Windows NT
11439         native, retaining STDERR handling improvements.
11440
11441 2000-06-01  Andreas Jaeger  <aj@suse.de>
11442
11443         * s/s390.h: Support for S390, based on a patch by Martin
11444         Schwidefsky <schwidefsky@de.ibm.com>.
11445
11446 2000-05-30  Andy Piper  <andy@xemacs.org>
11447
11448         * window.c (allocate_window):
11449         (make_dummy_parent):
11450         (Fset_window_configuration): use new hashtable type.
11451
11452         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11453         (struct image_instantiator_methods):
11454         (struct Lisp_Image_Instance): make instance geometry signed.
11455
11456         * glyphs.c (instantiate_image_instantiator):
11457         (image_instance_query_geometry):
11458         (image_instance_layout):
11459         (image_instance_layout):
11460         (query_string_geometry):
11461         (text_query_geometry):
11462         (image_instantiate):
11463         (image_instantiate):
11464         (cache_subwindow_instance_in_frame_maybe):
11465         (subwindow_query_geometry): make instance geometry signed.
11466
11467         * glyphs-widget.c (widget_query_geometry):
11468         (widget_layout):
11469         (button_query_geometry):
11470         (tree_view_query_geometry):
11471         (tab_control_query_geometry):
11472         (layout_query_geometry):
11473         (layout_layout):
11474         (native_layout_layout): make instance geometry signed.
11475
11476 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11477
11478         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11479         constant.
11480
11481         * general.c (syms_of_general): Add Qfull_assoc symbol.
11482
11483         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11484         correctly.
11485         (decode_weak_list_type): Decode full-assoc type.
11486         (encode_weak_list_type): Encode full-assoc type.
11487         (Fmake_weak_list): Update doc string.
11488
11489 2000-05-30  Andy Piper  <andy@xemacs.org>
11490
11491         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11492
11493         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11494         (decode_hash_table_weakness): ditto.
11495         (Fhash_table_weakness): ditto.
11496         (Fhash_table_type): ditto.
11497         (finish_marking_weak_hash_tables): ditto.
11498         (hash_table_weakness_validate): ditto.
11499         (syms_of_elhash): ditto.
11500
11501 2000-05-28  Martin Buchholz <martin@xemacs.org>
11502
11503         * XEmacs 21.2.34 is released.
11504
11505 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11506
11507         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11508         start cache.
11509         (updating_line_start_cache): Gone.
11510         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11511         generic code to force a minimum of 1 line laid out in the
11512         CMOTION_DISP case.
11513
11514 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11515
11516         * glyphs.c (instantiate_image_instantiator): Check for initialized
11517         height & width no longer special cases IMAGE_NOTHING.
11518         (nothing_instantiate): Set height and width of instance.
11519
11520 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11521
11522         * unexelf.c (unexec): Search for ".data" section.
11523         Initialize new_data2_offset from old_data_index.
11524         Remove redundant check for ElfW.
11525
11526 2000-05-23  Andy Piper  <andy@xemacs.org>
11527
11528         * glyphs.c (get_image_instantiator_governing_domain): allow more
11529         specific domains as the governing domain rather than expecting an
11530         exact match. This fixes problems with layouts.
11531
11532 2000-05-22  Andy Piper  <andy@xemacs.org>
11533
11534         * redisplay-output.c (compare_runes): check for non-images
11535
11536         * glyphs.c (set_glyph_dirty_p): ditto.
11537         (update_glyph_cachel_data): ditto.
11538
11539         * glyphs-widget.c (layout_post_instantiate): ditto.
11540         (layout_post_instantiate): ditto.
11541
11542         * event-msw.c (mswindows_wnd_proc): warning removal.
11543
11544 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11545
11546         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11547
11548         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11549
11550         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11551
11552         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11553         (mswindows_executable_type): mingw32 now has enough headers for
11554         this to work.
11555
11556 2000-05-20  Andy Piper  <andy@xemacs.org>
11557
11558         * console-msw.c (mswindows_output_last_error): ; -> ,
11559
11560 2000-05-12  Andy Piper  <andy@xemacs.org>
11561
11562         * console-msw.c (FROB): compare ints with ints.
11563
11564 2000-05-11  Andy Piper  <andy@xemacs.org>
11565
11566         * glyphs-x.c (x_finalize_image_instance): make minimal build
11567         happy.
11568
11569 2000-05-20  Ben Wing  <ben@xemacs.org>
11570
11571         * event-Xt.c:
11572         * event-Xt.c (vars_of_event_Xt):
11573         move modifier-keys-are-sticky to event-stream.c.
11574
11575         * event-msw.c:
11576         * event-msw.c (mswindows_enqueue_mouse_button_event):
11577         * event-msw.c (key_needs_default_processing_p):
11578         * event-msw.c (XEMSW_LCONTROL):
11579         * event-msw.c (mswindows_handle_sticky_modifiers):
11580         * event-msw.c (FROB):
11581         * event-msw.c (clear_sticky_modifiers):
11582         * event-msw.c (output_modifier_keyboard_state):
11583         * event-msw.c (output_alt_keyboard_state):
11584         * event-msw.c (mswindows_wnd_proc):
11585         * event-msw.c (mswindows_modifier_state):
11586         * event-msw.c (emacs_mswindows_handle_magic_event):
11587         implement sticky modifiers.
11588
11589         * event-stream.c:
11590         * event-stream.c (vars_of_event_stream):
11591         move modifier-keys-are-sticky here.
11592
11593         * lisp.h:
11594         add CHECK_FUNCTION.
11595
11596         * rangetab.c:
11597         implement map-range-table.
11598
11599
11600 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11601
11602         * redisplay-tty.c (reset_tty_modes):
11603         (tty_redisplay_shutdown): Adjust argument type to
11604         tty_frame_output_end.
11605
11606 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11607
11608         * eval.c (Fbacktrace): Don't output a line with only right
11609         parenthesis.
11610
11611 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11612
11613         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11614         (Fpq_reset_poll): Ditto.
11615
11616 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11617
11618         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11619
11620 2000-05-16  Ben Wing  <ben@xemacs.org>
11621
11622         * buffer.c:
11623         * buffer.c (dfc_convert_to/from_internal_format):
11624         * buffer.c (reinit_vars_of_buffer):
11625         Fix conversion functions to allow reentrancy.
11626
11627         * console-msw.c:
11628         * console-msw.c (mswindows_output_last_error):
11629         New fun, generally useful -- output a human-readable
11630         version of GetLastError() on the console.
11631
11632         * console-msw.h:
11633         * console-msw.h (struct mswindows_frame):
11634         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11635
11636         * console-stream.c (stream_output_begin):
11637         * console-stream.c (stream_output_end):
11638         * console-stream.c (stream_output_vertical_divider):
11639         * console-stream.c (stream_clear_region):
11640         * console-stream.c (stream_flash):
11641         * console-stream.c (console_type_create_stream):
11642         Delete blank stream methods, not needed.
11643
11644         * console.h (struct console_methods):
11645         Split begin/end methods into window and frame.
11646
11647         * event-msw.c:
11648         * event-msw.c (mswindows_handle_paint):
11649         * event-msw.c (output_alt_keyboard_state):
11650         * event-msw.c (mswindows_wnd_proc):
11651         * event-msw.c (vars_of_event_mswindows):
11652         Comment about problems with ignored-expose.
11653         Define mswindows-debug-events; not really implemented.
11654
11655         * frame-msw.c (mswindows_init_frame_1):
11656         random cleanups.
11657
11658         * glyphs-msw.c:
11659         * glyphs-msw.c (begin_defer_window_pos):
11660         * glyphs-msw.c (mswindows_unmap_subwindow):
11661         * glyphs-msw.c (mswindows_map_subwindow):
11662         * glyphs-msw.c (mswindows_resize_subwindow):
11663         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11664
11665         * glyphs.c (make_image_instance_1):
11666         Fix crash.
11667
11668         * gutter.c (Fredisplay_gutter_area):
11669         Use new begin/end methods.
11670
11671         * lisp.h (Dynarr_new2):
11672         New creation fun.
11673
11674         * redisplay-msw.c:
11675         * redisplay-msw.c (mswindows_frame_output_begin):
11676         * redisplay-msw.c (mswindows_frame_output_end):
11677         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11678         New begin/end methods -- handle DeferWindowPos.
11679
11680         * redisplay-output.c (redisplay_move_cursor):
11681         * redisplay-output.c (redraw_cursor_in_window):
11682         * redisplay-output.c (redisplay_update_line):
11683         * redisplay-output.c (redisplay_output_window):
11684         New begin/end methods.
11685
11686         * redisplay-tty.c:
11687         * redisplay-tty.c (tty_frame_output_begin):
11688         * redisplay-tty.c (tty_frame_output_end):
11689         * redisplay-tty.c (console_type_create_redisplay_tty):
11690         New begin/end methods.
11691
11692         * redisplay-x.c:
11693         * redisplay-x.c (x_window_output_begin):
11694         * redisplay-x.c (x_window_output_end):
11695         * redisplay-x.c (console_type_create_redisplay_x):
11696         New begin/end methods.
11697
11698         * redisplay.c (redisplay_frame):
11699         * redisplay.c (Fredisplay_echo_area):
11700         New begin/end methods.
11701         use MAYBE_DEVMETH for clear_frame; it may not exist.
11702
11703         * window.h (WINDOW_XFRAME):
11704         WINDOW_XFOO macros -- get locale and decode struct pointer.
11705
11706
11707 2000-05-12  Ben Wing  <ben@xemacs.org>
11708
11709         * emacs.c:
11710         * emacs.c (ensure_no_quitting_from_now_on):
11711         * emacs.c (fatal_error_signal):
11712         * emacs.c (mswindows_handle_hardware_exceptions):
11713         * emacs.c (main):
11714         * emacs.c (Fkill_emacs):
11715         * emacs.c (shut_down_emacs):
11716         * emacs.c (assert_failed):
11717         various improvements in fatal error handling.
11718
11719         * eval.c:
11720         move preparing_for_armageddon to emacs.c.
11721
11722         * lisp.h:
11723         declare fatal_error_in_progress.
11724
11725         * print.c:
11726         * print.c (std_handle_out_external):
11727         * print.c (std_handle_out_va):
11728         * print.c (stderr_out):
11729         * print.c (stdout_out):
11730         use console under mswin when no standard output.
11731         don't do code conversion during fatal error.
11732
11733         * scrollbar.c (Fscrollbar_page_up):
11734         * scrollbar.c (Fscrollbar_page_down):
11735         fix missing else.  reindent.
11736
11737 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11738
11739         Emergency fix.
11740
11741         * glyphs.h (GLYPH_CACHEL_DESCENT):
11742         (GLYPH_CACHEL_DESCENT):
11743         (GLYPH_CACHEL_DESCENT):
11744         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11745         used in case these are inline functions.
11746         Use more absurd values to error check.
11747
11748         include window.h for error check functions.
11749
11750 2000-05-11  Ben Wing  <ben@xemacs.org>
11751
11752         * cmdloop.c (Freally_early_error_handler):
11753         Display message box under windows; otherwise, message will disappear
11754         before it can be viewed.
11755
11756         * console-msw.c:
11757         * console-msw.c (Fmswindows_message_box):
11758         * console-msw.c (FROB):
11759         * console-msw.c (syms_of_console_mswindows):
11760         Define new fun `mswindows-message-box'.
11761         #### I will merge this into `popup-dialog-box'; just give me
11762         a bit of time.
11763
11764         * general.c:
11765         * general.c (syms_of_general):
11766         Some new symbols used in `mswindows-message-box'.
11767
11768         * glyphs.c:
11769         * glyphs.c (Fset_image_instance_property):
11770         put warning in this fun.
11771
11772         * glyphs.h:
11773         * glyphs.h (GLYPH_CACHEL_WIDTH):
11774         * glyphs.h (GLYPH_CACHEL_ASCENT):
11775         * glyphs.h (GLYPH_CACHEL):
11776         * glyphs.h (GLYPH_CACHEL_GLYPH):
11777         define error-checking versions to try to catch a bug i've seen --
11778         redisplay gets in an infinite loop because the glyph width of the
11779         continuation glyph is 65535.
11780
11781         * lisp.h:
11782         Extern message-box stuff.
11783
11784         * window.c (allocate_window):
11785         * window.c (make_dummy_parent):
11786         * window.c (Fset_window_configuration):
11787         Use EQUAL not EQ for subwindow caches to make them work a bit
11788         better. (Something is still very broken.)
11789
11790
11791 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11792
11793         * glyphs.c (image_instantiate): Suppress gcc warnings.
11794         (Fmake_image_instance): Fix doc string.
11795         * specifier.c (Fmake_specifier): Ditto.
11796
11797 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11798
11799         * paths.h.in (PATH_LOCK): Removed.
11800         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11801         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11802
11803 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11804
11805         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11806         Document (featurep '(and xemacs 21.02)).
11807
11808 2000-05-09  Ben Wing  <ben@xemacs.org>
11809
11810         * buffer.c (complex_vars_of_buffer):
11811         update modeline-format doc.
11812
11813         * device.h:
11814         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11815
11816         * emacs.c:
11817         timeline of all released versions of Emacs, for use in creating
11818         authorship comments and in synching up.
11819
11820         * glyphs-widget.c (image_instantiator_buttons):
11821         * glyphs-widget.c (image_instantiator_edit_fields):
11822         * glyphs-widget.c (image_instantiator_combo_box):
11823         * glyphs-widget.c (image_instantiator_scrollbar):
11824         * glyphs-widget.c (image_instantiator_progress_guage):
11825         * glyphs-widget.c (image_instantiator_tree_view):
11826         * glyphs-widget.c (image_instantiator_tab_control):
11827         * glyphs-widget.c (image_instantiator_labels):
11828         * glyphs-widget.c (image_instantiator_layout):
11829         * glyphs-widget.c (image_instantiator_native_layout):
11830         rename decode_domain method to governing_domain.
11831
11832         * glyphs.c:
11833         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11834         * glyphs.c (add_entry_to_device_ii_format_list):
11835         make sure we don't put an entry more than once into the list.
11836         * glyphs.c (check_instance_cache_mapper):
11837         *************************************************************
11838         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11839         HAVE BEEN GETTING.
11840         *************************************************************
11841         * glyphs.c (get_image_instantiator_governing_domain):
11842         clean up, expand on new concept of governing domain.
11843         * glyphs.c (instantiate_image_instantiator):
11844         * glyphs.c (allocate_image_instance):
11845         use governing_domain instead of cache_domain in naming.
11846         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11847         * glyphs.c (make_image_instance_1):
11848         * glyphs.c (Fmake_image_instance):
11849         allow for any domain (not just device), and process the
11850         governing domain correctly.  very big doc fix.
11851         * glyphs.c (Fimage_instance_domain):
11852         new primitive, to retrieve the governing domain of an image instance.
11853         * glyphs.c (image_instantiate):
11854         use new governing_domain stuff.  this fixes a crash you could get
11855         by instantiating certain widget glyphs in frame locales. (should
11856         signal an error instead of crashing.)
11857         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11858         * glyphs.c (Fglyphp): clean up doc.
11859         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11860         * glyphs.c (syms_of_glyphs):
11861         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11862         * glyphs.c (image_instantiator_format_create): add some comments about
11863         bogus code.
11864         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11865         for current-display-table. (Apparently Hrjove implemented in 1998 a
11866         design I wrote up in 1996, but didn't update the doc string.)
11867
11868         * glyphs.h: clean up a doc string.
11869         * glyphs.h (governing_domain):
11870         * glyphs.h (struct image_instantiator_methods):
11871         changes for governing_domain stuff.
11872
11873         * gutter.c:
11874         * gutter.c (Fgutter_specifier_p):
11875         * gutter.c (Fgutter_size_specifier_p):
11876         * gutter.c (Fgutter_visible_specifier_p):
11877         * objects.c:
11878         * objects.c (Fcolor_specifier_p):
11879         * objects.c (Ffont_specifier_p):
11880         * objects.c (Fface_boolean_specifier_p):
11881         doc strings moved to make-*-specifier.
11882
11883         * redisplay.c (add_disp_table_entry_runes_1):
11884         * redisplay.c (generate_fstring_runes):
11885         * redisplay.c (screen):
11886         add random comments and doc strings.
11887
11888         * specifier.c:
11889         * specifier.c (Fmake_specifier):
11890         major overhaul of this doc string.
11891
11892         * specifier.c (Fvalid_specifier_domain_p):
11893         comment about the bogosity of image instances being domains.
11894         * specifier.c (decode_domain):
11895         now non-static, used in glyphs.c.
11896         * specifier.c (specifier_instance):
11897         comment about the bogosity of image instances being domains.
11898         * specifier.c (Fgeneric_specifier_p):
11899         move doc string to make-generic-specifier.
11900         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11901         rebackslashify.
11902
11903         * specifier.h:
11904         * specifier.h (DOMAIN_FRAME):
11905         * specifier.h (DOMAIN_LIVE_P):
11906         * specifier.h (DOMAIN_XDEVICE):
11907         rebackslashify.
11908         add comments about problems with these macros.
11909         prototype for decode_domain.
11910
11911         * toolbar.c:
11912         * toolbar.c (Ftoolbar_specifier_p):
11913         move doc string to `make-toolbar-specifier'.
11914
11915         * window.c (window_unmap_subwindows_cache_mapper):
11916         *************************************************************
11917         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11918         HAVE BEEN GETTING.
11919         *************************************************************
11920
11921 2000-05-09  Andy Piper  <andy@xemacs.org>
11922
11923         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11924
11925         * window.c (Fset_window_configuration): reset the frame subwindow
11926         cache and re-initialize the window subwindow caches.
11927
11928         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11929
11930 2000-05-09  Ben Wing  <ben@xemacs.org>
11931
11932         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11933         DWORD.
11934
11935 2000-04-26  Mike Woolley  <mike@bulsara.com>
11936
11937         * ntheap.c: Changed recreate_heap to limit the amount reserved
11938         for the heap to that which is actually available. Also now
11939         displays a message box (with some dignostics) in the event that
11940         it still can't start.
11941
11942 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11943
11944         * callproc.c (Fold_call_process_internal): GCPRO path
11945
11946 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11947
11948         Patch by Bill Perry.
11949
11950         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11951         back data instead of #ifdef.
11952         (Fscrollbar_page_down): ditto.
11953
11954 2000-05-07  Ben Wing  <ben@xemacs.org>
11955
11956         * buffer.h:
11957         Kludge for defining Qmswindows_tstr.
11958
11959         * nt.c:
11960         * nt.c (open_input_file):
11961         * nt.c (open_output_file):
11962         * nt.c (rva_to_section):
11963         * nt.c (mswindows_executable_type):
11964         Move all memory-mapped-file routines here (some were in unexnt.c,
11965         which is bad because they are used by process-nt.c, and unexnt
11966         won't be around when portable dumping).  Synched the above routines
11967         with FSF 20.6.
11968
11969         * nt.h:
11970         Removed ifdef'd out bogus code.
11971         Fixed some prototypes.
11972
11973         * nt.h (file_data):
11974         * nt.h (OFFSET_TO_RVA):
11975         * nt.h (RVA_TO_OFFSET):
11976         * nt.h (RVA_TO_PTR):
11977         Moved the memory-mapped-file structures, macros and prototypes
11978         here, to parallel nt.c.  ntheap.h should really be removed
11979         entirely, and it's a non-portable-dumper specific file.
11980
11981         * ntheap.h (round_to_next):
11982         Moved the memory-mapped-file structures, macros and prototypes
11983         to nt.h.
11984
11985         * ntproc.c (compare_env):
11986         Moved rva_to_section and mswindows_executable_type to nt.c.
11987         Moved compare_env to process-nt.c.
11988         ntproc.c will die, one day.
11989
11990         * ntproc.c (sys_spawnve):
11991         Account for win32_ -> mswindows_.
11992
11993         * process-nt.c:
11994         * process-nt.c (struct nt_process_data):
11995         * process-nt.c (ensure_console_window_exists):
11996         * process-nt.c (compare_env):
11997         * process-nt.c (nt_create_process):
11998         * process-nt.c (nt_kill_process_by_pid):
11999         * process-nt.c (syms_of_process_nt):
12000         * process-nt.c (vars_of_process_nt):
12001         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12002         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12003         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12004         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12005         Move compare_env here from ntproc.c.
12006
12007         * process.c (Fprocess_send_region):
12008         Takes an optional fourth argument, BUFFER, which should fix some
12009         problems with call-process.
12010
12011         * syscommctrl.h:
12012         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12013
12014         * syswindows.h:
12015         Move ICC_BAR_CLASSES to syscommctrl.h.
12016         Add preliminary macros for MSWindows/Mule.  More to come.
12017
12018         * unexnt.c:
12019         * unexnt.c (unexec):
12020         open_output_file moved to nt.c.
12021
12022
12023 2000-05-05  Andy Piper  <andy@xemacs.org>
12024
12025         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12026         instance from the frame cache also since GC may catch up too late
12027         to make frame deletion sane.
12028
12029 2000-05-04  Andy Piper  <andy@xemacs.org>
12030
12031         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12032         (x_finalize_image_instance): ungcpro on deletion.
12033
12034         * glyphs.c (image_instantiator_format_create): give pointers a
12035         query geometry method so that the geometry is at least set.
12036
12037         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12038         initialize layouts if using widgets.
12039
12040 2000-05-03  Andy Piper  <andy@xemacs.org>
12041
12042         * nt.c: remove bogus reference to sysmmsystem.h
12043
12044         * gui-x.c (popup_selection_callback): fix no selection abort.
12045
12046 2000-05-02  Andy Piper  <andy@xemacs.org>
12047
12048         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12049         (mswindows_widget_instantiate): ditto.
12050
12051         * glyphs-widget.c (initialize_widget_image_instance): initialize
12052         children correctly.
12053         (widget_instantiate): cope with children and items in the same
12054         instance.
12055
12056         * glyphs.c (mark_image_instance): cope with children as a first
12057         class member.
12058         (image_instance_equal): ditto.
12059         (image_instance_hash): ditto.
12060         (image_instance_changed): ditto.
12061
12062 2000-04-30  Andy Piper  <andy@xemacs.org>
12063
12064         * glyphs.c (subwindow_query_geometry): new function. Return some
12065         defaults.
12066         (subwindow_instantiate): don't assign dimensions if none have been
12067         given.
12068         (image_instantiator_format_create): add subwindow_query_geometry.
12069         (print_image_instance): cope with layouts as widgets.
12070
12071 2000-04-29  Andy Piper  <andy@xemacs.org>
12072
12073         * frame.c (delete_frame_internal): call
12074         free_frame_subwindow_instance_cache so that all subwindows are
12075         finalized before their parent.
12076         (mark_frame): remove subwindow_cachels.
12077         (Fmake_frame): remove subwindow_cachel manipulation.
12078         (allocate_frame_core): subwindow_instance_cache is a weak list.
12079         (delete_frame_internal): set subwindow_instance_cache to nil.
12080
12081         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12082         finalization safe.
12083         (mswindows_finalize_image_instance): use the device
12084         not the domain as the domain may have died already.
12085
12086         * glyphs-x.c (x_finalize_image_instance): ditto.
12087         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12088         HEIGHT.
12089
12090         * redisplay-output.c (redisplay_unmap_subwindows): update for
12091         subwindow instance cache as a weak list.
12092         (redisplay_unmap_subwindows_maybe): ditto.
12093         (redisplay_unmap_subwindows_except_us): ditto.
12094
12095         * glyphs.c (unmap_subwindow): error checking will check the domain
12096         so don't deal with it here. Don't use cachels anymore.
12097         (map_subwindow): ditto.
12098         (update_subwindow_cachel_data): remove old accessor names.
12099         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12100         (Fresize_subwindow): don't update cachel.
12101         (mark_subwindow_cachels):
12102         (update_subwindow_cachel_data):
12103         (add_subwindow_cachel):
12104         (get_subwindow_cachel_index):
12105         (update_subwindow_cachel):
12106         (reset_subwindow_cachels):
12107         (mark_subwindow_cachels_as_not_updated): deleted.
12108         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12109         subwindow instance to the frame cache.
12110         (find_matching_subwindow): update for subwindow instance cache as
12111         a weak list.
12112         (update_widget_instances): ditto.
12113         (image_instance_type_to_mask):inlined.
12114         (free_frame_subwindow_instance_cache): new function. finalize all
12115         subwindows that are instantiated.
12116
12117         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12118         of cachel information.
12119         (IMAGE_INSTANCE_DISPLAY_X):
12120         (IMAGE_INSTANCE_DISPLAY_Y):
12121         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12122         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12123         (XIMAGE_INSTANCE_DISPLAY_X):
12124         (XIMAGE_INSTANCE_DISPLAY_Y):
12125         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12126         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12127         remove subwindow_cachel structure and function references.
12128         (image_instance_type_to_mask): inline from glyphs.c
12129
12130         * redisplay.c (redisplay_frame): remove subwindow_cachel
12131         references.
12132
12133         * frame.h (struct frame): remove subwindow_cachels.
12134         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12135
12136         * frameslots.h: add subwindow_instance_cache.
12137
12138         * window.c (replace_window): check subwindow cache of replacement.
12139         (window_unmap_subwindows_cache_mapper):
12140         (window_unmap_subwindows): new functions. Unmap all subwindows
12141         cached on this window.
12142         (mark_window_as_deleted): unmap all subwindows.
12143
12144 2000-04-27  Andy Piper  <andy@xemacs.org>
12145
12146         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12147
12148         * glyphs-widget.c (widget_layout): return something.
12149         (layout_layout): return something. Fail if not initialized.
12150         (layout_query_geometry): ditto.
12151         (image_instantiator_native_layout): new function. Initialized the
12152         native layout type.
12153         (widget_instantiate): don't do layout stuff here.
12154
12155         * glyphs.c (instantiate_image_instantiator): reorded calling or
12156         instantiate and post_instantiate with layout in between.
12157         (image_instance_layout): be more selective about deciding whether
12158         the layout has been done or not.
12159
12160         * glyphs.h (struct image_instantiator_methods): return a value
12161         from layout_method.
12162
12163 2000-04-26  Andy Piper  <andy@xemacs.org>
12164
12165         * glyphs.c (allocate_image_instance): make initial width and
12166         height unspecified. Set initialized to 0.
12167
12168         * syscommctrl.h new file. Encapsulates commctrl.h.
12169
12170         * syswindows.h new file. Encapsulates windows.h.
12171
12172         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12173         * nt.c: ditto.
12174         * console-msw.h: ditto.
12175
12176         * redisplay-tty.c (tty_output_display_block): remove layout references.
12177
12178         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12179         window handle rather than just the frame.
12180
12181         * glyphs.c (mark_image_instance): remove layout references.
12182         (print_image_instance): ditto.
12183         (image_instance_equal): ditto.
12184         (image_instance_hash): ditto.
12185         (decode_image_instance_type): ditto.
12186         (encode_image_instance_type): ditto.
12187         (image_instantiate): ditto.
12188         (allocate_glyph): ditto.
12189         (Fimage_instance_height): ditto.
12190         (Fimage_instance_width): ditto.
12191         (update_subwindow): ditto.
12192
12193         * redisplay-x.c (x_output_display_block): recode for layouts as
12194         widgets.
12195
12196         * redisplay-output.c (redisplay_output_layout): recode for layouts
12197         as widgets.
12198         (compare_runes): remove layout references.
12199
12200         * redisplay-msw.c (mswindows_output_display_block): recode for
12201         layouts as widgets.
12202
12203         * glyphs-widget.c (image_instantiator_layout): remove
12204         layout_possible_dest_types.
12205         (layout_possible_dest_types): deleted.
12206
12207         * glyphs.h (image_instance_type): remove layout references.
12208         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12209         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12210         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12211
12212 2000-04-25  Andy Piper  <andy@xemacs.org>
12213
12214         * glyphs-widget.c (image_instantiator_buttons):
12215         (image_instantiator_edit_fields):
12216         (image_instantiator_combo_box):
12217         (image_instantiator_scrollbar):
12218         (image_instantiator_progress_guage):
12219         (image_instantiator_tree_view):
12220         (image_instantiator_tab_control):
12221         (image_instantiator_labels):
12222         (image_instantiator_layout): call default post_instantiate method.
12223         (widget_post_instantiate): new function. Simply lays out the
12224         widgets.
12225
12226         * glyphs.h (struct image_instantiator_methods): add
12227         post_instantiate method.
12228
12229         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12230         method calls.
12231
12232 2000-04-23  Andy Piper  <andy@xemacs.org>
12233
12234         * glyphs.h (struct image_instantiator_methods): add
12235         decode_domain_method.
12236         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12237         derived from the domain.
12238         (IMAGE_INSTANCE_FRAME): new accessor.
12239         (XIMAGE_INSTANCE_FRAME): ditto.
12240
12241         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12242         instead of _SUBWINDOW_FRAME.
12243         (finalize_image_instance): ditto.
12244         (Fimage_instance_foreground): ditto.
12245         (Fimage_instance_background): ditto.
12246         (image_instantiate): ditto.
12247         (update_subwindow_cachel): ditto.
12248         (update_subwindow): ditto.
12249         (unmap_subwindow): ditto.
12250         (map_subwindow): ditto
12251         (subwindow_instantiate): ditto.
12252         * glyphs-msw.c (mswindows_update_widget): ditto.
12253         (mswindows_progress_gauge_instantiate): ditto.
12254         (mswindows_tab_control_update): ditto.
12255         * glyphs-x.c (x_update_widget): ditto.
12256         (x_widget_instantiate): ditto.
12257         (x_tab_control_instantiate): ditto.
12258         (x_tab_control_update): ditto.
12259         * event-msw.c (mswindows_wnd_proc): ditto
12260
12261         * glyphs-widget.c (image_instantiator_layout): use
12262         subwindow_decode_domain.
12263         (image_instantiator_buttons): ditto.
12264         (image_instantiator_edit_fields): ditto.
12265         (image_instantiator_combo_box): ditto.
12266         (image_instantiator_scrollbar): ditto.
12267         (image_instantiator_progress_guage): ditto.
12268         (image_instantiator_tree_view): ditto.
12269         (image_instantiator_tab_control): ditto.
12270         (image_instantiator_labels): ditto.
12271         (image_instantiator_layout): ditto.
12272
12273         * glyphs.c: add instance error checking to many functions.
12274         (instantiate_image_instantiator): decode device from cache_domain.
12275         (image_instantiate): partially rewrite by using
12276         decode_image_instantiator_domain to determine what domain the
12277         instance needs to be cached in.
12278         (decode_image_instantiator_domain): new function. Determine what
12279         domain the image needs to be cached in.
12280         (check_window_subwindow_cache): new error checking function.
12281         (check_instance_cache_mapper): ditto.
12282         (check_image_instance_structure): ditto.
12283         (subwindow_decode_domain): new function. Encodes a window as a
12284         subwindow's cache domain.
12285         (image_instantiator_format_create): use it for text and
12286         subwindows.
12287
12288 2000-04-21  Andy Piper  <andy@xemacs.org>
12289
12290         * glyphs.c (image_instance_device): new function.
12291         (image_instance_frame): new function.
12292         (image_instance_window): new function.
12293         (image_instance_live_p): new function.
12294
12295         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12296         cache to nil.
12297
12298         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12299         (IMAGE_INSTANCE_DOMAIN): new accessor.
12300         (XIMAGE_INSTANCE_DOMAIN): ditto.
12301
12302         * glyphs-x.c (x_finalize_image_instance): device->domain.
12303
12304         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12305         (mswindows_finalize_image_instance): ditto.
12306
12307         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12308         (gif_instantiate): ditto.
12309         (png_instantiate): ditto.
12310         (tiff_instantiate): ditto.
12311
12312         * glyphs.c (instantiate_image_instantiator): use domain rather
12313         than device.
12314         (mark_image_instance): device -> domain.
12315         (print_image_instance): ditto.
12316         (finalize_image_instance): ditto.
12317         (image_instance_equal): ditto.
12318         (allocate_image_instance): ditto.
12319         (Fcolorize_image_instance): ditto.
12320         (query_string_geometry): ditto.
12321         (image_instantiate): ditto
12322         (query_string_font): ditto.
12323         (image_instantiate): ditto.
12324         (update_subwindow): ditto.
12325         (unmap_subwindow): ditto.
12326         (map_subwindow): ditto.
12327         (subwindow_instantiate): ditto.
12328
12329         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12330         (DOMAIN_FRAME): ditto.
12331         (DOMAIN_WINDOW): ditto.
12332         (DOMAIN_LIVE_P): ditto.
12333         (XDOMAIN_DEVICE): ditto.
12334         (XDOMAIN_FRAME): ditto.
12335         (XDOMAIN_WINDOW): ditto.
12336
12337         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12338         a valid specifier domain.
12339
12340 2000-04-19  Andy Piper  <andy@xemacs.org>
12341
12342         * glyphs-widget.c (syms_of_glyphs_widget): remove
12343         widget-callback-current-channel.
12344         (vars_of_glyphs_widget): ditto.
12345         * glyphs.h: ditto
12346
12347         * gui.c (get_gui_callback): revert to previous behaviour.
12348
12349 2000-04-18  Andy Piper  <andy@xemacs.org>
12350
12351         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12352         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12353         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12354
12355         * glyphs.c (image_instance_equal): add margin_width.
12356         (image_instance_hash): ditto.
12357
12358         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12359         (layout_query_geometry): ditto.
12360         (layout_layout): ditto.
12361         (syms_of_glyphs_widget): add margin-width.
12362         (image_instantiator_layout): allow margin-width.
12363
12364         * glyphs.c (update_widget_instances): make a normal function.
12365         (syms_of_glyphs): remove Qupdate_widget_instances.
12366         * glyphs.h: ditto.
12367
12368         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12369         so that we don't corrupt ideas about the last event or
12370         command. Remove widget-callback-current-channel fiddling.
12371         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12372
12373 2000-05-01  Martin Buchholz <martin@xemacs.org>
12374
12375         * XEmacs 21.2.33 is released.
12376
12377 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12378
12379         * make-src-depend: Allow dots in header file name.
12380
12381 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12382
12383         * mule-charset.h (struct charset_lookup): Add
12384         next_allocated_1_byte_leading_byte and
12385         next_allocated_2_byte_leading_byte.
12386         * mule-charset.c: Move above two variables so that those values
12387         will be dumped.
12388
12389 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12390
12391         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12392         when string length is zero.
12393         (find_charsets_in_emchar_string): Ditto.
12394
12395 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12396
12397         * lisp.h: extern Qdialog and Qmenubar.
12398
12399         * gui-x.c: added events.h.
12400                 also fixed typo which made the file uncompilable.
12401
12402         * general.c: Added Qmenubar and Qdialog
12403
12404 2000-04-28  Ben Wing  <ben@xemacs.org>
12405
12406         * frame-msw.c (mswindows_init_frame_1):
12407         * frame-msw.c (mswindows_mark_frame):
12408         * event-msw.c (mswindows_enqueue_dispatch_event):
12409         * console-msw.h:
12410         * console-msw.h (struct mswindows_frame):
12411         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12412         there are now three hash tables for callbacks.
12413         mswindows_enqueue_dispatch_event is no longer static.
12414
12415         * dialog-x.c (maybe_run_dbox_text_callback):
12416         * dialog-x.c (dbox_descriptor_to_widget_value):
12417         switch to new cons3 form for callbacks.
12418
12419         * glyphs-msw.c (mswindows_register_gui_item):
12420         * glyphs-msw.c (mswindows_widget_instantiate):
12421         * glyphs-msw.c (add_tree_item):
12422         * glyphs-msw.c (add_tab_item):
12423         new image instance parameter, so it can be passed to callback-ex.
12424         respect :callback-ex as well as :callback.
12425
12426         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12427         add :callback-ex.
12428
12429         * glyphs.c (print_image_instance):
12430         prettify, e.g. now prints widget type.
12431
12432         * gui-x.h:
12433         certain funs have new image instance parameter.
12434
12435         * gui.c:
12436         * gui.c (get_gui_callback):
12437         * gui.c (gui_item_add_keyval_pair):
12438         * gui.c (gui_item_init):
12439         * gui.c (gui_add_item_keywords_to_plist):
12440         * gui.c (mark_gui_item):
12441         * gui.c (gui_item_hash):
12442         * gui.c (gui_item_equal):
12443         * gui.c (copy_gui_item):
12444         * gui.c (syms_of_gui):
12445         recognize callback-ex in a number of places.
12446         also, fix the annoying "can't get out of yes-no dialog" bug.
12447
12448         * gui.h:
12449         * gui.h (struct Lisp_Gui_Item):
12450         recognize callback-ex in a number of places.
12451
12452         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12453         new parameter in button_item_to_widget_value.
12454
12455         * glyphs-x.c (x_update_widget):
12456         * glyphs-x.c (x_button_instantiate):
12457         * glyphs-x.c (x_button_update):
12458         * glyphs-x.c (x_progress_gauge_instantiate):
12459         * glyphs-x.c (x_edit_field_instantiate):
12460         * glyphs-x.c (x_combo_box_instantiate):
12461         * glyphs-x.c (x_tab_control_instantiate):
12462         * glyphs-x.c (x_label_instantiate):
12463         new image instance parameter in various places.
12464
12465         * event-Xt.c:
12466         * event-Xt.c (enqueue_Xt_dispatch_event):
12467         this fun gets exported.
12468
12469         * gui-msw.c:
12470         * gui-msw.c (mswindows_handle_gui_wm_command):
12471         handle both :callback and :callback-ex, and generate our own
12472         event because it's one of the callback-ex arguments.
12473
12474         * gui-x.c:
12475         * gui-x.c (popup_selection_callback):
12476         handle both :callback and :callback-ex, and generate our own
12477         event because it's one of the callback-ex arguments.
12478         * gui-x.c (button_item_to_widget_value):
12479         * gui-x.c (gui_items_to_widget_values_1):
12480         * gui-x.c (gui_item_children_to_widget_values):
12481         * gui-x.c (gui_items_to_widget_values):
12482         new image instance parameter in various places.
12483
12484         * fns.c (Freplace_list):
12485         fix small typo in doc string.
12486
12487         * lisp.h:
12488         declare enqueue_Xt_dispatch_event.
12489
12490 2000-04-28  Ben Wing  <ben@xemacs.org>
12491
12492         * buffer.c:
12493         * buffer.c (Frecord_buffer):
12494         * buffer.c (syms_of_buffer):
12495         delete record-buffer-hook.
12496
12497         * fns.c:
12498         * fns.c (Freplace_list):
12499         * fns.c (syms_of_fns):
12500         new primitive replace-list.
12501
12502         * frameslots.h:
12503         slot for old buffer-alist.
12504
12505         * lisp.h:
12506         exfun replace-list.
12507
12508         * redisplay.c:
12509         * redisplay.c (redisplay_frame):
12510         * redisplay.c (syms_of_redisplay):
12511         * redisplay.c (vars_of_redisplay):
12512         new hook buffer-list-changed-hook.
12513         call it.
12514
12515 2000-04-27  Ben Wing  <ben@xemacs.org>
12516
12517         * extents.h: extern in_modeline_generation.
12518
12519         * redisplay.c (generate_formatted_string_db): set
12520         in_modeline_generation.
12521
12522         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12523         flags if in modeline generation.  otherwise frame-modified-tick
12524         is ticked far too often.
12525         Declare in_modeline_generation.
12526
12527 2000-04-26  Ben Wing  <ben@xemacs.org>
12528
12529         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12530         option.
12531         (vars_of_emacs): add quick-build as an error-checking option.
12532         A bit kludgy, but there doesn't seem much point in creating
12533         a real var for this.
12534
12535         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12536
12537 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12538
12539         * redisplay.h (struct display_line): Add a new variable,
12540         line_continuation.
12541
12542         * redisplay.c (create_text_block): Set dl->line_continuation if
12543         the line continues.
12544         (create_string_text_block): Ditto.
12545         (regenerate_window_incrementally): Use line_continuation instead
12546         of searching continuation glyph.
12547         (add_margin_runes): Call add_glyph_rune.
12548         (add_glyph_rune): Handle margin glyph.
12549
12550 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12551
12552         * filelock.c (fill_in_lock_file_name):
12553         ANSIfy.
12554         Check for IS_ANY_SEP instead of '/'.
12555         (lock_file_1):
12556         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12557         Never check errno without first seeing that system call failed.
12558         (unlock_file): Add GCPRO.
12559         (Flock_buffer): Fix docstring.
12560         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12561
12562 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12563
12564         * sysdep.c (get_pty_max_bytes):
12565         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12566         strings longer than 252 bytes.
12567
12568         * md5.c: Unconditionally include ANSI header <limits.h>
12569
12570         * glyphs-x.c (convert_EImage_to_XImage):
12571         * lisp-union.h (union Lisp_Object):
12572         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12573
12574 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12575
12576         * filelock.c (current_lock_owner): Remove unused variable o, p.
12577
12578 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12579
12580         * callint.c: Remove multiply defined symbol Qlet
12581         (syms_of_callint): ditto.
12582
12583 2000-04-14  Andy Piper  <andy@xemacs.org>
12584
12585         * general.c (syms_of_general): add last-command, this-command, let
12586         and funcall.
12587
12588         * lisp.h: declare various symbols.
12589
12590         * glyphs.h: declare Qwidget_callback_current_channel;
12591
12592         * glyphs-widget.c (syms_of_glyphs_widget): add
12593         Qgui_callback_current_channel.
12594         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12595
12596         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12597         widget-callback-current-channel when invoking the interactive
12598         arg. Also bind last-command and next-command when invoking the
12599         widget updates.
12600         * gui-x.c (popup_selection_callback): ditto.
12601
12602         * gui.c (get_gui_callback): massage args so that we are always
12603         calling eval. This allows us to add our own variable bindings
12604         outside.
12605
12606         * glyphs-x.c (x_button_instantiate): use
12607         gui_items_to_widget_values since this is GC safe.
12608         (x_progress_gauge_instantiate): ditto.
12609         (x_edit_field_instantiate): ditto.
12610         (x_label_instantiate): ditto.
12611
12612         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12613         (emacs_Xt_event_widget_focus_out): new function
12614         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12615         focus.
12616         (emacs_Xt_event_add_widget_actions): new function. add focus
12617         functions as actions.
12618         (init_event_Xt_late): use it.
12619
12620 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12621
12622         * event-stream.c (Fdispatch_event): Doc fix.
12623
12624 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12625
12626         * postgresql.c: Remove all references to PQsetenv*.
12627
12628         * postgresql.h: Remove references to PGsetenvHandler object.
12629         * lrecord.h (lrecord_type): Ditto.
12630
12631 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12632
12633         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12634         real_heigh and real_width members, and accessor macros for these.
12635
12636         * glyphs-msw.c (init_image_instance_geometry): New function.
12637         (init_image_instance_from_dibitmap): Use it.
12638         (mswindows_resource_instantiate): Use it.
12639         (init_image_instance_from_xbm_inline): Use it.
12640         (mswindows_initialize_image_instance_mask): Use real bitmap
12641         geometry.
12642         (mswindows_create_resized_bitmap): Ditto.
12643         (mswindows_create_resized_mask): Ditto.
12644
12645         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12646         and bitmap to their surface size.
12647
12648 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12649
12650         * process-unix.c (unix_send_process): Guard against process MIA
12651         after Faccept_process_output.
12652
12653 2000-04-11  Ben Wing  <ben@xemacs.org>
12654
12655         * eval.c (unbind_to_hairy): fix brokenness introduced by
12656         nanosecond speed improvements.
12657
12658 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12659
12660         * sunplay.c (init_device): To play sounds correctly, the device
12661         apparently needs to be initialized at least once by XEmacs.  Make
12662         it so.
12663
12664 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12665
12666         * redisplay.c (add_margin_runes): Add text image glyph
12667           handling.
12668
12669 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12670
12671         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12672         gcc is newer than 2.5.
12673
12674 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12675
12676         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12677
12678         * fns.c (size_bit_vector):
12679         * alloc.c (size_vector):
12680         (make_vector_internal):
12681         (make_bit_vector_internal):
12682         (sweep_bit_vectors_1):
12683         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12684
12685 2000-04-06  Andy Piper  <andy@xemacs.org>
12686
12687         * gmalloc.c (malloc): undo previous change.
12688         (malloc): ditto.
12689         (free): ditto.
12690         (realloc): ditto.
12691
12692 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12693
12694         * line-number.c (buffer_line_number): Revert to former version.
12695
12696 2000-04-06  Andy Piper  <andy@xemacs.org>
12697
12698         * gmalloc.c (malloc): add error checking.
12699         (malloc): ditto.
12700         (free): ditto.
12701         (realloc): ditto.
12702
12703         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12704         button_item_to_widget_value arg.
12705
12706         * glyphs-x.c (x_button_instantiate): add extra
12707         button_item_to_widget_value arg.
12708         (x_progress_gauge_instantiate): ditto.
12709         (x_edit_field_instantiate): ditto.
12710         (x_label_instantiate): ditto.
12711
12712         * gui-x.c (gui_items_to_widget_values_1): add extra
12713         button_item_to_widget_value arg.
12714         (button_item_to_widget_value): add extra menu_item_p arg.
12715
12716         * gui-x.h: change signature of button_item_to_widget_value.
12717
12718         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12719         button_item_to_widget_value arg.
12720
12721 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12722
12723         * buffer.h (struct buffer): auto_save_modified should be long.
12724
12725 2000-04-05  Andy Piper  <andy@xemacs.org>
12726
12727         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12728         type.
12729         (button_query_geometry): give a little more room so that athena
12730         buttons fit.
12731
12732 2000-04-05  Andy Piper  <andy@xemacs.org>
12733
12734         * faces.c (complex_vars_of_faces): The widget face should inherit
12735         the font of the gui-element face.
12736
12737 2000-04-04  Andy Piper  <andy@xemacs.org>
12738
12739         * glyphs-x.c (x_button_update): new function. unconditionally
12740         update a button's state when the instance is dirty.
12741         (image_instantiator_format_create_glyphs_x): add x_button_update.
12742         (x_widget_instantiate): remove old resize cruft.
12743
12744 2000-04-02  Andy Piper  <andy@xemacs.org>
12745
12746         * frame.c (change_frame_size_1): The introduction of gutters means
12747         that we need to allow 0 as a potential frame dimension.
12748
12749 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12750
12751         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12752         image glyph if allow_cursor.
12753         (add_hscroll_rune): Don't allow cursor to border glyph.
12754         (create_text_block): Ditto.
12755
12756         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12757         text not in buffer.
12758         (redisplay_output_layout): Call ensure_face_cachel_complete for
12759         text image glyph.
12760
12761
12762 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12763
12764         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12765
12766         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12767         not in buffer
12768
12769         * redisplay-tty.c (tty_output_display_block): Delete the routine
12770         for text image glyph
12771         * redisplay-x.c (x_output_display_block): ditto
12772         * redisplay-msw.c (mswindows_output_display_block): ditto
12773
12774 2000-02-02  Mike Alexander  <mta@arbortext.com>
12775
12776         Note: Some of these were committed by accident as part of other
12777         patches.
12778
12779         * regex.c (regex_compile): Avoid compiler warnings.
12780
12781         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12782
12783         * nt.h: Declare term_ntproc correctly.
12784
12785         * nt.c: Remove incorrect declaration of get_home_directory which
12786         is declared correctly in lisp.h.
12787
12788         * keymap.c (get_keyelt): Avoid compiler warnings.
12789         (raw_lookup_key_mapper): Avoid compiler warnings.
12790
12791         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12792
12793         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12794
12795         * filemode.c (mode_string): Avoid compiler warnings.
12796
12797         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12798         avoid warning.
12799
12800         * events-mod.h: Undef some things that winuser.h defines differently.
12801
12802         * data.c (Faset): Avoid compiler warnings.
12803
12804         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12805
12806 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12807
12808         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12809         Fall through to simple beep on error.
12810         Replace "extern" by real header file.
12811
12812         * linuxplay.c: Use nativesound.h
12813         (play_sound_data): Return error code. Be less verbose on error.
12814
12815         * sunplay.c: Use nativesound.h
12816         (play_sound_data): Return error code. Be less verbose on error.
12817
12818         * ntplay.c: Use nativesound.h
12819         (play_sound_data): Return fake error code
12820
12821         * sgiplay.c: Use nativesound.h
12822         (play_sound_data): Return error code
12823
12824         * hpplay.c: Use nativesound.h, partially implement
12825         new error code. Break compilation until finished.
12826         (play_sound_data): error code.
12827
12828         * nativesound.h (play_sound_file):
12829           (play_sound_data): Prototype in new header.
12830
12831 2000-03-31  Andy Piper  <andy@xemacs.org>
12832
12833         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12834         for toggle and radio buttons.
12835         (image_instantiator_buttons): use it.
12836
12837 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12838
12839         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12840         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12841         found. Scrollbar event probably belonged to some old config.
12842
12843 2000-03-31  Andy Piper  <andy@xemacs.org>
12844
12845         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12846         than 1.
12847         (initialize_widget_image_instance): default layout to
12848         LAYOUT_HORIZONTAL rather than 0.
12849         (widget_instantiate): reverse the item list at the end rather than
12850         every iteration.
12851         (layout_layout): re-code for the border text at the front of the
12852         item list rather than at the end.
12853         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12854         provided by the user.
12855         (widget_query_geometry): comment.
12856
12857 2000-03-30  Andy Piper  <andy@xemacs.org>
12858
12859         * glyphs-widget.c (image_instantiator_layout): allow standard
12860         widget keywords in layouts.
12861
12862         * gutter.c (output_gutter): cope with nil gutter contents.
12863
12864         * frame.c (Fset_frame_properties): add gutter docs.
12865
12866 2000-03-29  Andy Piper  <andy@xemacs.org>
12867
12868         * toolbar-msw.c (TBSTYLE_FLAT): add.
12869         (mswindows_output_toolbar): minor fiddling.
12870
12871 2000-03-29  Andy Piper  <andy@xemacs.org>
12872
12873         * gutter.c (output_gutter): force gutter size recalculation if
12874         what we are trying to display won't fit.
12875         (update_gutter_geometry): new function. A per-gutter version of
12876         update_frame_gutter_geometry.
12877         (update_frame_gutter_geometry): use it.
12878         (redraw_exposed_gutter): add extra debugging output.
12879
12880 2000-03-28  Mike Alexander  <mta@arbortext.com>
12881
12882         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12883         (pdump_file_unmap): Implement it on Windows
12884         (pdump_file_get): Save alocated handles for pdump_file_unmap
12885
12886 2000-03-28  Andy Piper  <andy@xemacs.org>
12887
12888         * gui.c (get_gui_callback): treat Quit specially.
12889
12890 2000-03-27  Andy Piper  <andy@xemacs.org>
12891
12892         * glyphs.c (image_instantiate): be careful to check in the same
12893         way we assigned.
12894
12895 2000-03-27  Didier Verna  <didier@xemacs.org>
12896
12897         * config.h.in: define the proper SMART_INCLUDE macro.
12898         handle renaming of `foo_h_path' to `foo_h_file'.
12899
12900         * database.c: ditto.
12901
12902         * emacs.c: ditto.
12903
12904         * linuxplay.c: ditto.
12905
12906         * terminfo.c: ditto.
12907
12908         * tooltalk.h: ditto.
12909
12910 2000-03-27  Andy Piper  <andy@xemacs.org>
12911
12912         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12913         gets updated whenever the face might have changed.
12914
12915 2000-03-26  Mike Alexander  <mta@arbortext.com>
12916
12917         * dumper.c (pdump_resource_free): Fix the comment.
12918
12919 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12920
12921         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12922
12923 2000-03-22  Mike Alexander  <mta@arbortext.com>
12924
12925         * dumper.c: Include Windows headers on Windows
12926         (pdump_resource_free): Add a body to the function
12927         (pdump_load): exe_name -> exe_path and add some comments.
12928
12929 2000-03-25  Mike Alexander  <mta@arbortext.com>
12930
12931         * gui.c (copy_gui_item_tree): Return a value in all cases
12932
12933 2000-03-21  Didier Verna  <didier@xemacs.org>
12934
12935         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12936         lwlib/config.h.in.
12937         (SMART_INCLUDE): new macro.
12938         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12939         the proper location.
12940
12941         * postgresql.c: use it.
12942
12943         * inline.c: ditto.
12944
12945 2000-03-24  Andy Piper  <andy@xemacs.org>
12946
12947         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12948         do this.
12949
12950 2000-03-24  Andy Piper  <andy@xemacs.org>
12951
12952         * redisplay-output.c (compare_runes): use image_instance_changed
12953         to detect changes. Do not depend on glyphs_changed, only depend on
12954         dirtiness.
12955          (redisplay_output_layout): add debug messages.
12956         (compare_runes): ditto.
12957
12958         * glyphs.h: declare new functions.
12959         (struct Lisp_Image_Instance): remove percent and associated
12960         accessors.
12961
12962         * gui.h: declare new copying functions.
12963
12964         * gui.c (copy_gui_item_tree): new function.
12965         (copy_gui_item): new function.
12966         (gui_item_id_hash): revert to standard hash.
12967         (gui_item_hash): ditto.
12968         (gui_item_hash_internal): deleted.
12969         (mark_gui_item): mark value.
12970         (gui_item_add_keyval_pair): add value.
12971         (gui_item_init): ditto.
12972         (gui_add_item_keywords_to_plist): ditto.
12973         (gui_item_equal): ditto.
12974         (syms_of_gui): add Q_value.
12975
12976         * glyphs-x.c (x_progress_gauge_update): use pending items and
12977         value for setting the state.
12978         (x_update_widget): don't set items from pending here.
12979
12980         * glyphs-widget.c (update_widget): update items here.
12981         (progress_gauge_set_property): use items for storing value. Put
12982         new value in pending items.
12983
12984         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12985         items for new value. Convert percent -> value.
12986         (mswindows_tab_control_update): don't update items here.
12987
12988         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12989         (update_subwindow): ditto.
12990         (image_instance_changed): new function. Compare hash values and
12991         past and present widget items.
12992         (image_instantiate): We more careful about where we instantiate
12993         things.
12994         (image_instantiate): add error checking.
12995
12996         * gutter.c (syms_of_gutter): use -hook.
12997
12998 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12999
13000         * console-tty.c (Fset_console_tty_input_coding_system): Use
13001         Qkeyboard.
13002         (Fset_console_tty_output_coding_system): Use Qterminal.
13003         (tty_init_console): Use Qkeyboard and Qterminal.
13004
13005 2000-03-21  Ben Wing  <ben@xemacs.org>
13006
13007         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13008         From Mike Alexander <mta@arbortext.com>.
13009
13010 2000-03-21  Ben Wing  <ben@xemacs.org>
13011
13012         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13013         process brokenness.  Proper implementation to come.
13014         * callproc.c:
13015         Rename call-process-internal to old-call-process-internal.
13016         New impl. in process.el.
13017
13018 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13019
13020         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13021
13022 2000-03-20  Andy Piper  <andy@xemacs.org>
13023
13024         * glyphs.c (full_list_hash): make hashes of the same elements in
13025         different orders return different values.
13026
13027 2000-03-20  Martin Buchholz <martin@xemacs.org>
13028
13029         * XEmacs 21.2.32 is released.
13030
13031 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13032
13033         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13034         (DFC_MALLOC_USE_CONVERTED_DATA):
13035         Add aliasing-safe casts to allow use with char* or unsigned char*
13036         lvalues.
13037
13038         * eldap.c (Fldap_open):
13039         (Fldap_search_basic):
13040         (Fldap_add):
13041         (Fldap_modify):
13042         Make C++-compilable.
13043         Make sure GCPRO'ed variables are initialized.
13044         Use temp variables to avoid repeated calls to Flength.
13045
13046 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13047
13048         * sysfile.h:
13049         Make sure PATH_MAX is always defined.
13050         Include limits.h for PATH_MAX.
13051         Deprecate use of MAXPATHLEN.
13052
13053 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13054
13055         * emacs.c: Add reinit_vars_of_fileio.
13056         * symsinit.h: Add reinit_vars_of_fileio.
13057         * fileio.c (reinit_vars_of_fileio): New.
13058         * fileio.c (Fmake_temp_name):
13059         Initialize temp_name random number from microseconds to make
13060         collisions even less likely.  Initialize always at process startup
13061         time.  (make-temp-name) used to return the same file name twice in
13062         a row when PDUMP.
13063         Random stylistic fiddling.
13064         Comment fixes.
13065
13066 2000-03-20  Andy Piper  <andy@xemacs.org>
13067
13068         * glyphs.c (image_instantiate): allow text glyphs to be
13069         instantiated in the minibuffer window.
13070
13071 2000-03-19  Andy Piper  <andy@xemacs.org>
13072
13073         * glyphs.c (image_instance_hash): be careful about which items we
13074         hash on.
13075
13076         * glyphs-widget.c (tab_control_set_property): record into pending
13077         items rather than the actual items.
13078
13079         * glyphs-x.c (x_update_widget): use pending items to update with.
13080
13081         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13082         to update with.
13083
13084         * glyphs.c (mark_image_instance): mark pending items.
13085
13086         * window.c (Fset_window_configuration): record the buffer.
13087         (Fselect_window): totally revert previous change which breaks many
13088         things.
13089
13090 2000-03-18  Andy Piper  <andy@xemacs.org>
13091
13092         * glyphs-msw.c (mswindows_tab_control_update): force selected
13093         item.
13094
13095         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13096         window domain cache, otherwise we get inconsistencies at
13097         startup. There is something fishy at startup which can lead to the
13098         minibuffer being the selected window when the gutter content is
13099         instantiated.
13100
13101         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13102         gcpros.
13103         (parse_gui_item_tree_children): ditto.
13104         (parse_gui_item_tree_item): ditto.
13105
13106         * glyphs.c (Fupdate_widget_instances): return something.
13107
13108 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13109
13110         * window.c (Fselect_window): Undo 2000-03-17 change.
13111
13112 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13113
13114         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13115         against v7.0 libraries.  Insta-coredump city until the postgres
13116         folks fix it.
13117
13118 2000-03-17  Andy Piper  <andy@xemacs.org>
13119
13120         * faces.c (complex_vars_of_faces): don't give the widget face an
13121         inherited background pixmap.
13122
13123         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13124         selected item.
13125
13126         * event-stream.c (Fdispatch_non_command_events): return something.
13127
13128         * gutter.c (output_gutter): use widget face.
13129         (clear_gutter): ditto.
13130
13131         * NEWS: adjust again.
13132
13133         * window.c (Fselect_window): make sure this runs to completion to
13134         avoid oddities with Fset_window_configuration.
13135         (Fcurrent_window_configuration): in general do not save the
13136         minibuffer as the selected window.
13137
13138         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13139
13140 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13141
13142         * emacs.c (Frunning_temacs_p): Revert previous patch.
13143         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13144
13145 2000-03-16  Andy Piper  <andy@xemacs.org>
13146
13147         * glyphs-x.c (x_tab_control_update): if no widget values then
13148         return.
13149
13150         * NEWS: update for new features.
13151
13152         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13153         synthetic event to the native system.
13154         (reinit_vars_of_event_Xt): set force_event_pending to
13155         emacs_Xt_force_event_pending.
13156
13157         * events.h (struct event_stream): add force_event_pending.
13158
13159         * specifier.c (recompute_one_cached_specifier_in_window): add
13160         comment.
13161
13162         * redisplay.c (redisplay_frame): don't call
13163         update_frame_subwindows. Reset subwindow cachels when
13164         subwindows_changed, removing this was an optimization too far.
13165
13166         * redisplay-output.c (compare_runes): reorganize so that we catch
13167         glyph changes when we want them. Set optimize_output when this
13168         would help layouts.
13169         (redisplay_output_layout): remove frame_really_changed, use
13170         optimize_output instead.
13171
13172         * redisplay-msw.c (mswindows_output_display_block): reset
13173         optimize_output after outputting a glyph.
13174         * redisplay-x.c (x_output_display_block): ditto.
13175         * redisplay-tty.c (tty_output_display_block): ditto.
13176
13177         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13178         functions.
13179         (gutter_specs_changed): do specific gutter positions.
13180         (top_gutter_specs_changed): new function. Only update the
13181         specified gutter specs.
13182         (bottom_gutter_specs_changed): ditto.
13183         (left_gutter_specs_changed): ditto.
13184         (right_gutter_specs_changed): ditto.
13185
13186         * gui.c (gui_item_hash_internal): new function, does a real hash.
13187         (gui_item_id_hash): use it.
13188         (gui_item_hash): hash the eval'ed gui_item.
13189
13190         * gui-x.c (popup_selection_callback): send an eval event to call
13191         Fupdate_widget_instances.
13192
13193         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13194         to call Fupdate_widget_instances.
13195
13196         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13197         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13198
13199         * glyphs.c: (update_frame_subwindows): deleted.
13200         (Fupdate_widget_instances): new function for updating the dirty
13201         state of widgets that might have changed.
13202         (syms_of_glyphs): add Qupdate_widget_instances.
13203         (full_list_hash): hash a list completely.
13204         (image_instance_hash): use it for items and properties.
13205
13206         * frame-msw.c (mswindows_size_frame_internal): remove unused
13207         variable.
13208
13209         * faces.h (struct face_cachel): fix comment.
13210
13211         * event-stream.c (Fdispatch_non_command_events): new
13212         function. Process non-command events, forcing an event cycle
13213         beforehand.
13214         (syms_of_event_stream): declare.
13215         (event_stream_force_event_pending): new function. Force an event
13216         on the native event queue so that an event cycle will occur next
13217         time we check.
13218
13219         * event-msw.c:
13220         (struct ntpipe_shove_stream):
13221         (mswindows_enqueue_dispatch_event):
13222         (mswindows_dequeue_dispatch_event):
13223         (mswindows_cancel_dispatch_event):
13224         (mswindows_pump_outstanding_events):
13225         (mswindows_drain_windows_queue):
13226         (mswindows_handle_paint):
13227         (mswindows_wnd_proc):
13228         (mswindows_key_to_emacs_keysym):
13229         (get_process_input_waitable):
13230         (emacs_mswindows_delete_stream_pair): re-indent file.
13231         (mswindows_need_event): do not process further fds if the windows
13232         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13233         fixes the 100% cpu problem.
13234         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13235
13236 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13237
13238         * alloc.h: New.
13239         * dumper.h: New.
13240         * dumper.c: New.
13241
13242         * emacs.c: Moved dump file searching to dumper.c.
13243         (Frunning_temacs_p): Fixed.
13244
13245         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13246         last_lrecord_type_index_assigned.
13247
13248 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13249
13250         * symsinit.h: Added reinit parameter to init_console_stream
13251         declaration.
13252
13253         * lisp.h: Added file parameter to pdump_load declaration.
13254
13255         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13256         support.  Added dump file searching.
13257
13258         * config.h.in: Added EMACS_PROGNAME.
13259
13260         * console-stream.c (init_console_stream): Fix reinitialisation
13261         when running from temacs.
13262
13263         * alloc.c (pdump): Add id support.
13264         (pdump_load): Add file parameter and signature/id support.
13265
13266         * Makefile.in.in: Add full pdump support.
13267
13268 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13269
13270         * postgresql.c: Update documentation to reflect latest code
13271         status.
13272         (print_result): Show tuple counts in printed representation when
13273         appropriate.
13274         (Fpq_put_nbytes): MULE-ize.
13275         (Fpq_get_line_async): Ditto.
13276
13277 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13278
13279         * postgresql.c (Fpq_lo_import): Fix return value.
13280         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13281
13282 2000-03-13  Ben Wing  <ben@xemacs.org>
13283
13284         * alloc.c (pdump_load):
13285         Fix compile warning under mswin.
13286
13287 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13288
13289         * postgresql.c: Mule-ization, bug fixes.
13290         Use PG_CODING to encapsulate coding system name changes.
13291         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13292         (pg-coding-system): Create.
13293
13294         (Fpq_conn_defaults): Mule-ize.
13295         (Fpq_connectdb): Mule-ize & bug fix.
13296         (Fpq_connect_start): Mule-ize.
13297         (Fpq_set_client_encoding): Mule-ize.
13298         (Fpq_finish): Document `DEAD' connection status.
13299         (Fpq_clear): Ditto.
13300         (Fpq_pgconn): Mule-ize.
13301         (Fpq_exec): Mule-ize & bug fix.
13302         (Fpq_send_query): Ditto.
13303         (Fpq_get_result): Ditto.
13304         (Fpq_res_status): Mule-ize.
13305         (Fpq_result_error_message): Mule-ize.
13306         (Fpq_ntuples): fix comments.
13307         (Fpq_fname): Mule-ize.
13308         (Fpq_fnumber): Mule-ize.
13309         (Fpq_ftype): fix comments.
13310         (Fpq_get_value): Mule-ize.
13311         (Fpq_cmd_status): Ditto.
13312         (Fpq_cmd_tuples): Ditto.
13313         (Fpq_oid_value): Ditto.
13314         (Fpq_notifies): Ditto.
13315         (Fpq_lo_import): Ditto.
13316         (Fpq_lo_export): Ditto.
13317         (Fpq_get_line): Ditto.
13318         (Fpq_put_line): Mule-ize and bug fix.
13319         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13320
13321 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13322
13323         * postgresql.c (vars_of_postgresql): Mule-ize.
13324         (Fpq_conn_defaults): Ditto.
13325
13326 2000-03-12  Ben Wing  <ben@xemacs.org>
13327
13328         * alloc.c (Fmake_byte_code):
13329         * alloc.c (debug_string_purity_print):
13330         * alloc.c (pdump_backtrace):
13331         * alloc.c (pdump_get_indirect_count):
13332         * alloc.c (pdump_register_sub):
13333         * alloc.c (pdump_register_object):
13334         * alloc.c (pdump_register_struct):
13335         * alloc.c (pdump_dump_data):
13336         * alloc.c (pdump_reloc_one):
13337         Minor cleanups.
13338
13339         * console-msw.c:
13340         * console-msw.c (GetConsoleHwnd):
13341         * console-msw.c (msw_hide_console):
13342         * console-msw.c (msw_show_console):
13343         * console-msw.c (msw_ensure_console_buffered):
13344         * console-msw.c (msw_output_console_string):
13345         * console-msw.c (console_type_create_mswindows):
13346
13347         a) Added functions to manipulate the console window for use with
13348         shell support.
13349
13350         b) Added support for writing text to the console, which is now
13351         used under Windows when xemacs is not being run non-interactively,
13352         to write text that would otherwise be destined for stdout because
13353         under these circumstances, text written to stdout tends to
13354         disappear and not be seen.
13355
13356         * console-msw.h:
13357         * event-Xt.c:
13358         * event-Xt.c (x_event_to_emacs_event):
13359         * event-Xt.c (describe_event_window):
13360         * events-mod.h (XEMACS_MOD_CONTROL):
13361         * events.c:
13362         * events.c (Fmake_event):
13363         * events.c (character_to_event):
13364         * events.c (event_to_character):
13365         * events.c (format_event_object):
13366         * events.c (Fevent_modifiers):
13367         * events.h:
13368         * events.h (struct key_data):
13369         * events.h (struct button_data):
13370         * events.h (struct misc_user_data):
13371         * frame-x.c (Fcde_start_drag_internal):
13372         * frame-x.c (Foffix_start_drag_internal):
13373         * gpmevent.c (Freceive_gpm_event):
13374         * keymap.c:
13375         * keymap.c (bucky_sym_to_bucky_bit):
13376         * keymap.c (control_meta_superify):
13377         * keymap.c (make_key_description):
13378         * keymap.c (keymap_lookup_directly):
13379         * keymap.c (create_bucky_submap):
13380         * keymap.c (keymap_store):
13381         * keymap.c (define_key_check_and_coerce_keysym):
13382         * keymap.c (define_key_parser):
13383         * keymap.c (define_key_alternate_name):
13384         * keymap.c (Fdefine_key):
13385         * keymap.c (raw_lookup_key_mapper):
13386         * keymap.c (struct map_keymap_unsorted_closure):
13387         * keymap.c (map_keymap_unsorted_mapper):
13388         * keymap.c (map_keymap_sort_predicate):
13389         * keymap.c (map_keymap_sorted):
13390         * keymap.c (accessible_keymaps_mapper_1):
13391         * keymap.c (where_is_recursive_mapper):
13392         * keymap.c (describe_map_mapper):
13393         * keymap.c (describe_map_sort_predicate):
13394         * keymap.c (describe_map):
13395         * keymap.c (complex_vars_of_keymap):
13396         And a number of other files, the key modifier preprocessor
13397         constants that xemacs uses have names that conflict with constants
13398         defined under MS Windows for other purposes, so they were renamed
13399         to begin with the prefix XEMACS_. The variables that hold such
13400         modifiers were changed to consistently be of type int to fix
13401         various compile warnings.
13402
13403         * console.c (complex_vars_of_console):
13404         * device.c:
13405         * device-msw.c:
13406         * device-msw.c (mswindows_finish_init_device):
13407         * device-msw.c (msw_get_workspace_coords):
13408         * device-msw.c (mswindows_device_system_metrics):
13409         and various other files, added support for a new
13410         device property called offset-workspace which returns the position
13411         of the upper left corner of the workspace area and goes along with
13412         the existing size-workspace property.
13413
13414         * dialog-msw.c:
13415         * dialog-msw.c (push_bufbyte_string_as_unicode):
13416         * dialog-msw.c (mswindows_popup_dialog_box):
13417         Added support for XEmacs-style accelerator specifications in
13418         button text.  Note: I didn't add support for this under X Windows,
13419         and somebody needs to do this.
13420
13421         * dialog.c:
13422         * dialog.c (Fpopup_dialog_box):
13423         Documented the support for accelerators that was just mentioned.
13424
13425         editfns.c (get_home_directory): Changed behavior under Windows
13426         when HOME not defined; former behavior was irretrievably broken.
13427
13428         * emacs.c:
13429         * emacs.c (main_1):
13430         * emacs.c (main):
13431         * minibuf.c (clear_echo_area_internal):
13432         * minibuf.c (echo_area_append):
13433         * print.c:
13434         * print.c (std_handle_out_external):
13435         * print.c (std_handle_out_va):
13436         * print.c (fatal):
13437         * print.c (write_string_to_stdio_stream):
13438         * print.c (output_string):
13439         * print.c (debug_print):
13440         * print.c (debug_backtrace):
13441         * print.c (debug_short_backtrace):
13442         Cleaned up the code that prints text to stdout so that this can be
13443         changed to output into a console window instead under MS Windows,
13444         as described above.
13445
13446         * eval.c:
13447         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13448         * eval.c (internal_catch):
13449         * eval.c (unwind_to_catch):
13450         * eval.c (throw_or_bomb_out):
13451         * eval.c (condition_case_1):
13452         * eval.c (signal_1):
13453         * eval.c (check_error_state_sanity):
13454         * eval.c (call_with_suspended_errors_1):
13455         * eval.c (call_with_suspended_errors):
13456         * eval.c (reinit_vars_of_eval):
13457         Added code to catch throw loops and check for a pesky bug that may
13458         be gone now.
13459
13460         * event-msw.c:
13461         * event-msw.c (key_needs_default_processing_p):
13462         * event-msw.c (mswindows_wnd_proc):
13463         * event-msw.c (mswindows_modifier_state):
13464         * event-msw.c (emacs_mswindows_quit_p):
13465         * event-msw.c (vars_of_event_mswindows):
13466         a) Added support for using the alt key to select menu items as is
13467         standard under MS Windows.  This is controlled using the variable
13468         menu-accelerator-enabled, just like under X Windows.  There is an
13469         option on the options menu to turn this support on.  I really
13470         think that it should be on by default under Windows, but I'm not
13471         going to make this change yet.
13472
13473         b)  Added support for dynamic display size changes under Windows.
13474
13475         * event-stream.c:
13476         * event-stream.c (maybe_echo_keys):
13477         * event-stream.c (Fnext_event):
13478         * event-stream.c (command_builder_find_leaf):
13479         * event-stream.c (lookup_command_event):
13480         * event-stream.c (execute_command_event):
13481         * event-stream.c (pre_command_hook):
13482         * event-stream.c (post_command_hook):
13483         * event-stream.c (syms_of_event_stream):
13484         * event-stream.c (vars_of_event_stream):
13485         * event-stream.c (complex_vars_of_event_stream):
13486         * events.h (struct command_builder):
13487
13488         a) Tried to clean up a little bit the horribly written x-specific
13489         accelerator code that crept into this file.  I moved this code
13490         into menubar-x.c where it belongs. I also needed to move the
13491         command builder structure into the file events.h because it is
13492         accessed directly by this accelerator code.  What I didn't do, but
13493         which should be done at some point, is to properly abstract this
13494         code using device methods instead of the kludgy way that it
13495         currently hooks into the event code.
13496
13497         b) Added the lisp variables this-command-properties and
13498         last-command- properties, which should be used to synchronize two
13499         adjacent commands in preference to playing games with the variable
13500         this-command, which is typically what happens.
13501
13502         c) Added some slightly nasty code to hook into the lisp support
13503         for shifted- motion-key selection.  This is actually necessary for
13504         somewhat complicated reasons, which are described in
13505         simple.el. (NB: I think the proper thing would be to have the code
13506         that calls the pre and post command hooks also call out to generic
13507         lisp functions in simple.el, where all built-in stuff could be
13508         added.  I will think about this more.)
13509
13510         * event-unixoid.c (poll_fds_for_input):
13511         * lread.c (readchar):
13512         * redisplay-tty.c (tty_clear_frame):
13513         * redisplay-x.c (x_get_gc):
13514         * signal.c (interrupt_signal):
13515         And a whole bunch of other files: fixed up places that printed
13516         directly to stderr to instead call the function stderr_out so that
13517         the changes I made under Windows work correctly.
13518
13519         * filemode.c (mode_string):
13520         Warning fixes.
13521
13522         * frame-msw.c:
13523         * frame-msw.c (mswindows_size_frame_internal):
13524         Fixed the computation of frame size and position to keep the frame
13525         within the workspace area, rather than within the physical
13526         dimensions of the screen, so that the frame doesn't overlap window
13527         manager decorations, such as the start menu and toolbar, typically
13528         at the bottom of the screen.
13529
13530         * frame.c (vars_of_frame):
13531         Changed the default frame title format under MS Windows to consist
13532         of buffername-XEmacs, which is standard under MS Windows.  I think
13533         it might be a good idea to change this everywhere because I think
13534         it is superior to the current frame title format, but this is the
13535         kind of change that is likely to cause some people to get annoyed,
13536         so I'm not making it.
13537
13538         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13539
13540         * gui-msw.c (mswindows_handle_gui_wm_command):
13541         Fixed compile warnings.
13542
13543         * gui-x.c:
13544         * gui-x.c (strdup_and_add_accel):
13545         * gui-x.c (button_item_to_widget_value):
13546         * gui-x.h:
13547         Added code to automatically put an accelerator onto the beginning
13548         of menu items that don't have one as is now the standard, and is
13549         described more later.  Also fixed things so that the menu item
13550         name can be an evaluated expression, again a new standard.
13551
13552         * gui.c:
13553         * gui.c (gui_item_add_keyval_pair):
13554         * gui.c (make_gui_item_from_keywords_internal):
13555         * gui.c (gui_add_item_keywords_to_plist):
13556         * gui.c (gui_item_accelerator):
13557         * gui.c (gui_name_accelerator):
13558         * gui.c (gui_item_included_p):
13559         * gui.c (gui_item_display_flush_left):
13560         * gui.c (gui_item_display_flush_right):
13561         * gui.c (parse_gui_item_tree_item):
13562         * gui.c (parse_gui_item_tree_children):
13563         * gui.c (parse_gui_item_tree_list):
13564         Mule-ized.  Cleanup.  GCPRO addition.
13565
13566         * line-number.c (buffer_line_number):
13567         * lisp.h:
13568         * lisp.h (EMACS_INT_MAX):
13569         Added the manifest constant EMACS_INT_MIN corresponding to the
13570         existing constant EMACS_INT_MAX.  This is partially to fix compile
13571         warnings under Windows, and partly for cleanliness.
13572
13573         * menubar-msw.c:
13574         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13575         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13576         * menubar-msw.c (displayable_menu_item):
13577         * menubar-msw.c (populate_menu_add_item):
13578         * menubar-msw.c (populate_or_checksum_helper):
13579         * menubar-msw.c (populate_menu):
13580         * menubar-msw.c (update_frame_menubar_maybe):
13581         * menubar-msw.c (prune_menubar):
13582         * menubar-msw.c (msw_char_is_accelerator):
13583         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13584         * menubar-msw.c (mswindows_handle_wm_command):
13585         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13586         * menubar-msw.c (mswindows_handle_wm_initmenu):
13587         * menubar-msw.c (mswindows_update_frame_menubars):
13588         * menubar-msw.c (mswindows_free_frame_menubars):
13589         * menubar-msw.c (mswindows_popup_menu):
13590         Fixed a bug in handling accelerators where an extra character
13591         would be displayed in the menu item.  Also generalized the
13592         function displayable_menu_item because it is now used by the
13593         dialog box code as well.  And finally, added code in the functions
13594         that create the menubar to extract a list of accelerators for the
13595         top level menubar, which is used in the event code to determine
13596         whether a particular alt-key combination should be used to invoke
13597         a menu item, or should be passed through to access the standard
13598         XEmacs keymap binding for this key combination.
13599
13600         Much needed GCPROing.
13601
13602         * menubar-x.c:
13603         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13604         * menubar-x.c (menu_item_descriptor_to_widget_value):
13605         * menubar-x.c (restore_in_menu_callback):
13606         * menubar-x.c (x_popup_menu):
13607         * menubar-x.c (menu_move_up):
13608         * menubar-x.c (menu_move_down):
13609         * menubar-x.c (menu_move_left):
13610         * menubar-x.c (menu_move_right):
13611         * menubar-x.c (menu_select_item):
13612         * menubar-x.c (command_builder_operate_menu_accelerator):
13613         * menubar-x.c (menu_accelerator_junk_on_error):
13614         * menubar-x.c (command_builder_find_menu_accelerator):
13615         * menubar-x.c (Faccelerate_menu):
13616         * menubar.h:
13617         Moved a whole bunch of code here that was previously in
13618         event-stream.c as described above.  There is also code connected
13619         to the new standard of adding an accelerator to the beginning of
13620         menu items that don't have one as described above and below.
13621
13622         * menubar.c:
13623         * menubar.c (menu_parse_submenu_keywords):
13624         * menubar.c (Fmenu_find_real_submenu):
13625         * menubar.c (Fnormalize_menu_item_name):
13626         * menubar.c (syms_of_menubar):
13627         * menubar.c (vars_of_menubar):
13628         * menubar.c (complex_vars_of_menubar):
13629
13630         a) Cleaned up a bunch of documentation and improved it.
13631
13632         b) XEmacs now automatically adds an accelerator onto the beginning
13633         of any menu items that don't have one.  I did this because there
13634         will inevitably be some menu items on the main menubar that don't
13635         have accelerators on them because the package that adds that
13636         particular menu item hasn't yet been fixed up to have accelerators
13637         in them and it looked rather strange to have some items with and
13638         some items without accelerators, especially since even in items
13639         without accelerators, you can, at least under windows, still
13640         access the item through an accelerator corresponding to the first
13641         character in the item's name.  If people don't like this behavior,
13642         I can add a variable to turn it off optionally, but I'm not sure
13643         this is a good idea because we really do need to have accelerators
13644         on all of the menu items, and if a package doesn't like the
13645         accelerators being put on the first character, then it should put
13646         the accelerators where they belong.
13647
13648         c) I made a behavior change, which is that the descriptor that
13649         specifies the text of the menu item, which formerly was just a
13650         string, can now also be an evaluated expression.  This makes this
13651         descriptor parallel with all of the others, which could also be
13652         evaluated expressions.  This also obviates the need for the
13653         keyword :label, which was previously listed in the documentation
13654         as unimplemented, and which was for the same purpose.
13655
13656         d) GCPROing.
13657
13658         * ntproc.c:
13659         * ntproc.c (new_child):
13660         * ntproc.c (sys_spawnve):
13661         * ntproc.c (find_child_console):
13662         * ntproc.c (sys_kill):
13663         Fixed compile warnings.  By the way, this file should really go
13664         away entirely, and this will happen as soon as Kirill makes his
13665         final round of process cleanups, which affect the function
13666         call-process.
13667
13668         * process-nt.c:
13669         * process-nt.c (struct nt_process_data):
13670         * process-nt.c (find_process_from_pid):
13671         * process-nt.c (send_signal_the_nt_way):
13672         * process-nt.c (enable_child_signals):
13673         * process-nt.c (find_child_console):
13674         * process-nt.c (send_signal_the_95_way):
13675         * process-nt.c (nt_finalize_process_data):
13676         * process-nt.c (ensure_console_window_exists):
13677         * process-nt.c (nt_create_process):
13678         * process-nt.c (nt_kill_child_process):
13679         * process-nt.c (nt_kill_process_by_pid):
13680         * process-nt.c (nt_open_network_stream):
13681         * process-nt.c (vars_of_process_nt):
13682         Copied over code from Emacs 20.5 to correctly send signals to sub-
13683         processes under Windows 95.  Also added code to automatically
13684         create and hide console window when a sub-process is created under
13685         Windows 95, which obviates the need for the separate runemacs.exe
13686         executable, and finally implemented some variables that were
13687         implemented in Emacs 20.5, but previously not in XEmacs.  These
13688         include mswindows- start-process-share-console and
13689         mswindows-start-process-inherit-error-mode. (Both of these only
13690         apply to Windows 95.)
13691
13692         * regex.c (regex_compile): Fixed a compile warning.
13693
13694         * select-msw.c:
13695         * select-msw.c (mswindows_own_selection):
13696         * select-msw.c (mswindows_get_foreign_selection):
13697         * select-msw.c (mswindows_disown_selection):
13698         * select-msw.c (console_type_create_select_mswindows):
13699         * select-msw.c (syms_of_select_mswindows):
13700         Cleaned up the file and implemented the device method
13701         selection_exists_p, which had accidentally been left out.  Also
13702         removed four lisp functions that were remnants from before the
13703         time when the selection code was properly device abstracted.
13704         These functions are no longer needed because there are generic
13705         equivalents, and because they were added recently and don't exist
13706         in FSF Emacs, I don't think there's any problem with just deleting
13707         them.
13708
13709         * sysdep.c:
13710         * sysdep.c (sys_subshell):
13711         Fixed a compile warning, although in this case there's probably
13712         something wrong with this code, and it ought to be looked into
13713         more thoroughly by somebody who understands it.
13714
13715         * window.c:
13716         * window.c (Fwindow_text_area_height):
13717         * window.c (Fwindow_width):
13718         * window.c (Fwindow_full_width):
13719         * window.c (Fwindow_pixel_width):
13720         * window.c (debug_print_window):
13721         * window.c (syms_of_window):
13722         Added functions window-text-area-height and window-full-width,
13723         which are functions for returning various width and height
13724         characteristics of a window. (One of these functions is necessary
13725         for making the file dialog box work correctly, and the other one
13726         was added for completeness.)  Also added a table to the
13727         documentation for window-height which describes the entire scheme
13728         for accessing width and height characteristics of a window.
13729
13730 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13731
13732         * nt.c (fstat): Added a comment for another problem with
13733         non-encapsulated [f]stat(), reported by Adrian Aichner
13734         <aichner@ecf.teradyne.com>.
13735
13736 2000-03-11  Andy Piper  <andy@xemacs.org>
13737
13738         * window.c (make_dummy_parent): initialize subwindow instance
13739         cache.
13740         (Fset_window_configuration): zero extent_modiff.
13741
13742 2000-03-10  Andy Piper  <andy@xemacs.org>
13743
13744         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13745         more changes can be triggered.
13746         (Fredisplay_frame): ditto.
13747         (Fredraw_device): ditto.
13748         (Fredisplay_device): ditto.
13749         (redisplay_frame): make non-static.
13750         (redisplay_frame): call update_frame_gutter_geometry outside of
13751         display proper.
13752
13753         * gutter.h: declare update_frame_gutter_geometry.
13754
13755         * redisplay.h: declare redisplay_frame.
13756
13757         * gutter.c (update_frame_gutter_geometry): move geometry changes
13758         in update_frame_gutters here. Geometry changes can only occur
13759         outside of redisplay.
13760         (update_frame_gutters): remove geometry change code.
13761         (Fredisplay_gutter_area): make sure that we are in display when we
13762         update and that we have flushed any size changes.
13763
13764 2000-03-11  Andy Piper  <andy@xemacs.org>
13765
13766         * alloc.c (pdump_dump_data): remove i & count shadows.
13767
13768 2000-02-27  Mike Alexander  <mta@arbortext.com>
13769
13770         * sysdep.h: Declare pdump_read_file
13771
13772         * sysdep.c (pdump_read_file): New function
13773
13774         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13775         dump data
13776
13777 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13778
13779         * lrecord.h: add `lrecord_type_pgsetenv'.
13780
13781 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13782
13783         * symsinit.h: declare (vars|syms)_of* functions.
13784         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13785
13786 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13787
13788         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13789
13790         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13791         GCCs.
13792
13793         * emacs.c (main_1): Call postgres initialization code.
13794
13795         * postgresql.h: New file.  PostgreSQL RDBMS support.
13796         * postgresql.c: New file.
13797
13798 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13799
13800         * redisplay-output.c (redisplay_output_display_block): Disable
13801         redundant code.
13802
13803 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13804
13805         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13806         (Fcanna_henkan_next): Ditto.
13807         (Fcanna_bunsetu_henkou): Ditto.
13808         (Fcanna_henkan_kakutei): Ditto.
13809         (Fcanna_henkan_end): Ditto.
13810         (Fcanna_henkan_quit): Ditto.
13811         (Fcanna_henkan_next): Set retun value correctly.
13812         (c2mu): Use unsigned char instead of signed char.
13813
13814 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13815
13816         * emacs.c (main_1): Always call syms_of_gui.
13817         * inline.c: include gui.h
13818
13819 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13820
13821         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13822         converted to Lisp_Object.
13823         (Qtop_bottom): New variable.
13824         (syms_of_redisplay): Initialize it.
13825         * redisplay.h (Vvisible_bell): Ditto.
13826         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13827         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13828         only flash top and bottom.
13829
13830 2000-03-08  Andy Piper  <andy@xemacs.org>
13831
13832         * buffer.c (Frename_buffer): record new buffer name the right way.
13833
13834 2000-03-08  Andy Piper  <andy@xemacs.org>
13835
13836         * glyphs.c (update_subwindow): increase hash depth so that widget
13837         items get picked up properly.
13838
13839         * redisplay-output.c (compare_runes): increase hash depth so that
13840         widget items get picked up properly.
13841
13842 2000-03-08  Andy Piper  <andy@xemacs.org>
13843
13844         * gutter.c (output_gutter): add some debug.
13845
13846         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13847         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13848         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13849
13850         * redisplay-output.c (compare_runes): use display_hash to
13851         determine if glyphs really are not the same.
13852
13853         * glyphs.c (update_subwindow): check display_hash to see if
13854         anything really needs to be updated. If not then do
13855         nothing. Record the display_hash after updating.
13856         (image_instance_equal): compare the image_instance face also.
13857
13858 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13859
13860         * redisplay.h: Fix comment style.
13861
13862 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13863
13864         * consle-msw.h (struct mswindows_frame):
13865         Added new member paint_pending to indicate whether a WM_PAINT
13866         magic event has been queued for this frame.
13867
13868         * event-msw.c (mswindows_drain_windows_queue):
13869         Don't queue a WM_PAINT magic event if one is already queued.
13870         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13871
13872         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13873
13874 2000-03-07  Didier Verna  <didier@xemacs.org>
13875
13876         * dired.c: #include `regex.h' after `sysfile.h'.
13877
13878 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13879
13880         * sound.c (init_nas_sound): Fix compiler warning.
13881
13882         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13883         (FREE_STRUCT_P):
13884         (MARK_STRUCT_AS_FREE):
13885         (MARK_STRUCT_AS_NOT_FREE):
13886         Make `gcc -fstrict-aliasing' work properly.
13887
13888 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13889
13890         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13891         (mswindows_delete_device): Call CoUnnitialize().
13892
13893         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13894
13895 2000-02-25    <CraigL@DyCon.com>
13896
13897         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13898         <errno.h>.
13899
13900         * sysdep.c: This extern declaration for environ prevents MinGW
13901         from finding the variable in CRTDLL.DLL.
13902
13903         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13904         windows headers.
13905         (SHGFI_EXETYPE): ..
13906         (WM_MOUSEWHEEL): ..
13907         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13908         definitions.
13909         (MMRESULT): Removed, now defined in cygwin's windows headers.
13910         (TIMECAPS): ..
13911         (uid_t,gid_t,pid_t,ssize_t): ..
13912         (_timeb): Removed, MinGW defines both _timeb and timeb.
13913         (HAVE_H_ERRNO): Added.
13914         (HAVE_TZNAME): Added, configure is not detecting this.
13915
13916 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13917
13918         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13919         * syntax.c (syntax_match): Use it.
13920
13921         * cmds.c: Import auto-fill-chars from FSF Emacs.
13922         (Vauto_fill_chars): New variables.
13923         (internal_self_insert): Check Vauto_fill_chars.
13924         (vars_of_cmds):
13925         Declare auto-fill-chars as a Lisp variable and initialize it.
13926
13927 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13928
13929         * fileio.c (Fmake_symbolic_link):
13930         (Ffile_symlink_p):
13931         Run handlers even if local machine doesn't have symlinks.
13932
13933 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13934
13935         * event-msw.c (mswindows_drain_windows_queue):
13936         Don't generate paint magic events for non-XEmacs frames.
13937
13938 2000-03-05  Andy Piper  <andy@xemacs.org>
13939
13940         * redisplay.c (redisplay_frame): generate_displayable_area and
13941         friends assumes that we are not in GC, we therefore have to make
13942         sure that this doesn't happen.
13943
13944         * gutter.c (calculate_gutter_size): generate_displayable_area
13945         assumes that we are not in GC, we therefore have to make sure that
13946         this doesn't happen.
13947
13948 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13949
13950         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13951
13952 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13953
13954         * redisplay.c (regenerate_window): Make sure we set a sane value
13955         for end_pos even if we jump out of the loop.
13956         (regenerate_window): Answer Ben's question :-).
13957         (start_end_of_last_line): Add may_error argument.
13958         (start_of_last_line):
13959         (end_of_last_line): Pass may_error = 0.
13960         (end_of_last_line_may_error): New function.
13961         (pixel_to_glyph_translation): Use it, so we don't crash in
13962         event_to_glyph.
13963
13964 2000-03-04  Andy Piper  <andy@xemacs.org>
13965
13966         * window.h (struct window): add gutter_extent_modiff.
13967
13968         * window.c (allocate_window): zero out gutter_extent_modiff.
13969
13970         * redisplay.h: declare sync_display_line_structs.
13971
13972         * redisplay.c (add_glyph_rune): add a better comment.
13973
13974         * redisplay-output.c (sync_display_line_structs): made non-static.
13975         (compare_runes): remove unneccesary glyph cachel access.
13976
13977         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13978
13979         * gutter.c (output_gutter): don't output the gutter if extent
13980         changes only involve extents in buffers. use 4 sets of display
13981         lines.
13982         (gutter_extent_signal_changed_region_maybe): new function. Mark
13983         extents in gutters as changed.
13984         (update_frame_gutters): use 4 sets of display lines.
13985         (reset_gutter_display_lines): ditto.
13986         (free_frame_gutters): ditto.
13987         (redraw_exposed_gutter): force output of gutters.
13988
13989         * frame.h (struct frame): add 4 sets of gutter display lines.
13990
13991         * extents.c: (extent_changed_for_redisplay): signal changes to
13992         extents in strings in the gutter as well as extents in buffers.
13993
13994 2000-03-02  Andy Piper  <andy@xemacs.org>
13995
13996         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13997
13998         * frame.c (Fmake_frame): make sure the gutters get initialized
13999         after the frame is visible.
14000         (set_frame_selected_window): re-arrange compilation macros a
14001         little.
14002         (change_frame_size_1): mark gutters changed.
14003
14004         * device.c (Fset_device_class): mark gutters changed.
14005
14006 2000-03-01  Andy Piper  <andy@xemacs.org>
14007
14008         * window.c (window_top_frame_gutter_height): deleted.
14009         (window_bottom_frame_gutter_height): ditto.
14010         (window_left_frame_gutter_height): ditto.
14011         (window_right_frame_gutter_height): ditto.
14012         (window_top_gutter_height): don't use them.
14013         (window_bottom_gutter_height): ditto.
14014         (window_left_gutter_width): ditto.
14015         (window_right_gutter_width): ditto.
14016         (Fsplit_window): ditto.
14017         (Fwindow_pixel_edges): don't use border dimensions here.
14018
14019         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14020         (update_scrollbar_instance): ditto.
14021
14022         * redisplay.c (generate_modeline): don't take gutters into account.
14023         (generate_modeline): ditto.
14024         (redisplay_frame): small gutter display optimization.
14025
14026         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14027
14028         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14029         gutters into account.
14030
14031         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14032         for window position and type.
14033
14034         * gutter.c (get_gutter_coords): fix for frame gutters.
14035         (update_frame_gutters): update frame geometry if the gutters have
14036         changed.
14037         (init_frame_gutters): record current gutter geometries.
14038
14039         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14040         var.
14041         (mswindows_widget_instantiate): ditto.
14042
14043         * frame.h (struct frame): add current_gutter_bounds.
14044
14045         * frame.c (change_frame_size_1): position window and minibuffer
14046         appropriately taking into account the frame gutters.
14047
14048         * frame-x.c: (x_initialize_frame_size): take into account the
14049         frame gutters.
14050
14051 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14052
14053         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14054
14055 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14056
14057         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14058
14059 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14060
14061         * file-coding.c (reset_decoding_stream): Clear previous
14062         detection state when autodetect.
14063
14064 2000-02-29  Didier Verna  <didier@xemacs.org>
14065
14066         * extents.c (set_extent_glyph_1): don't require extents to be
14067         attached.
14068
14069 2000-02-27  Andy Piper  <andy@xemacs.org>
14070
14071         * gutter.c (Fset_default_gutter_position): don't default left and
14072         right gutter visibility to t.
14073         (Fset_default_gutter_position): run
14074         default-gutter-position-changed-hook.
14075         (syms_of_gutter): add default-gutter-position-changed-hook.
14076
14077 2000-02-26  Andy Piper  <andy@xemacs.org>
14078
14079         * specifier.c (Fmake_specifier): add gutter references.
14080
14081         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14082
14083         * lisp.h: declare Fvalid_plist_p.
14084
14085         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14086         as changed.
14087         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14088         well as its visibility so that it gets reconstructed.
14089         (construct_window_gutter_spec): new function. Construct a string
14090         to be displayed in the gutter from a plist of strings. Take care
14091         to only use elements that are declared as visible.
14092         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14093         WINDOW_GUTTER.
14094         (gutter_validate): allow plists of strings in the specifier.
14095         (gutter_specs_changed): construct the real_gutter from the gutter
14096         specs using construct_window_gutter_spec.
14097         (gutter_visible_validate): gutter-visible is a new specifier type.
14098         (Fgutter_visible_specifier_p): new function for the new specifier.
14099         (syms_of_gutter): declare gutter-visible and
14100         Fgutter_visible_specifier_p.
14101         (specifier_type_create_gutter): intitalize new gutter-visible
14102         specifier.
14103         (reinit_specifier_type_create_gutter): ditto.
14104         (specifier_vars_of_gutter): use new specifier type for gutter
14105         visibility.
14106         (init_frame_gutters): construct real_gutter correctly.
14107         (Fgutter_specifier_p): beef up documentation.
14108         (Fgutter_size_specifier_p): ditto.
14109
14110         * winslots.h: add real_gutter slots.
14111
14112 2000-02-25  Andy Piper  <andy@xemacs.org>
14113
14114         * device-msw.c: Be kind to older cygwin versions. From Raymond
14115         Toy <toy@rtp.ericsson.se>.
14116
14117         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14118         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14119
14120 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14121
14122         * elhash.c (MARK_OBJ): Practice macro hygiene.
14123
14124 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14125
14126         * miscplay.c: s/__inline__/inline/g;
14127         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14128         (get_device_compdc): INLINE ==> static inline
14129         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14130         find -name '*.h' | \
14131         xargs global-replace \
14132         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14133
14134 2000-02-25  Andy Piper  <andy@xemacs.org>
14135
14136         * window.c (window_top_frame_gutter_height): new function.
14137         (window_top_window_gutter_height): ditto.
14138         (window_top_gutter_height): use them.
14139         (window_bottom_frame_gutter_height): new function.
14140         (window_bottom_window_gutter_height): ditto.
14141         (window_bottom_gutter_height): use them.
14142         (window_left_window_gutter_width): new function.
14143         (window_left_frame_gutter_width): ditto.
14144         (window_left_gutter_width): use them.
14145         (window_right_window_gutter_width): new function.
14146         (window_right_frame_gutter_width): ditto.
14147         (window_right_gutter_width): use them.
14148         (window_pixel_height): new function. calulate window pixel height
14149         with frame gutter involvement.
14150         (Fsplit_window): calculate new sizes taking frame gutters into
14151         account.
14152         (window_char_height_to_pixel_height): don't include frame gutters.
14153         (window_char_height): use window_pixel_height.
14154         (window_pixheight): rename from window_pixel_height.
14155         (change_window_height): use it.
14156         (window_pixel_height_to_char_height): don't include frame gutters.
14157         (window_char_width_to_pixel_width): ditto.
14158
14159 2000-02-25  Andy Piper  <andy@xemacs.org>
14160
14161         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14162         if it is.
14163
14164 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14165
14166         * alloc.c (staticpro):
14167         (staticpro_nodump):
14168         (dumpstruct):
14169         (dumpopaque):
14170         (pdump_wire):
14171         (pdump_wire_list):
14172         (compact_string_chars):
14173         (pdump_dump_wired):
14174         Convert:  if (foo) abort();  ==>  assert (! foo);
14175
14176         * eldap.c (Fldap_search_basic):
14177         (Fldap_add):
14178         (Fldap_modify):
14179         (Fldap_delete):
14180         Fix compiler warnings, and possible crashes if (random) return
14181         value were to be used.
14182
14183 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14184
14185         * device-msw.c: Workaround ResetDC failure.
14186
14187         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14188         applying a devmode.
14189
14190         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14191         (mswindows_text_width): Do not start printer page.
14192
14193         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14194
14195         * glyphs-msw.c: Added image methods to msprinter console and
14196         msprinter-specific image instantiation.
14197
14198 2000-02-20  Mike Alexander  <mta@arbortext.com>
14199
14200         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14201         to avoid crashes when selection-sets-clipboard is on
14202         (mswindows_own_selection): ditto
14203
14204 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14205
14206         * glyphs-msw.c:
14207         * redisplay-msw.c (get_frame_dc):
14208         (get_frame_compdc):
14209         * console-msw.h:
14210         * device-msw.c (mswindows_init_device):
14211         (mswindows_delete_device):
14212         (msprinter_init_device):
14213         (msprinter_delete_device):
14214         * frame-msw.c (mswindows_init_frame_1):
14215         (mswindows_delete_frame):
14216         (msprinter_init_frame_3):
14217         (msprinter_delete_frame): Move compatible DC to device object from
14218         frame object, for both mswindows and msprinter. Only one at a time
14219         is needed, it is a real waste to have one per frame!
14220
14221 2000-02-23  Andy Piper  <andy@xemacs.org>
14222
14223         * glyphs.c: add dynamic width and height elements.
14224         (image_instance_equal): ditto.
14225
14226         * glyphs-widget.c (widget_query_geometry): calculate width and
14227         height dynamically if required.
14228         (initialize_widget_image_instance): initialize dynamic dimensions.
14229         (widget_instantiate): pick-up dynamic dimensions.
14230
14231         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14232         dynamic determination. Add appropriate macros.
14233
14234         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14235         dimensions safe.
14236         (WINDOW_GUTTER_SIZE): ditto.
14237         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14238
14239         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14240         inline.
14241         (get_frame_dc): ditto.
14242
14243         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14244         here.
14245
14246 2000-02-23  Martin Buchholz <martin@xemacs.org>
14247
14248         * XEmacs 21.2.31 is released.
14249
14250 2000-02-22  Ben Wing <ben@xemacs.org>
14251
14252         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14253
14254 2000-02-22  Andy Piper  <andy@xemacs.org>
14255
14256         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14257
14258 2000-02-21  Mike Sperber <mike@xemacs.org>
14259
14260         * .dbxrc:
14261         * .gdbinit:
14262         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14263         variables.
14264
14265 2000-02-21  Mike Sperber <mike@xemacs.org>
14266
14267         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14268
14269 2000-02-21  Martin Buchholz <martin@xemacs.org>
14270
14271         * XEmacs 21.2.30 is released.
14272
14273 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14274
14275         Performance hacking.
14276         * *.c (syms_of_*):
14277         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14278         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14279         * emacs.c (main_1):
14280         * lisp.h (DEFUN):
14281         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14282         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14283         * symeval.h (DEFVAR_SYMVAL_FWD):
14284         * symbols.c (guts_of_unbound_marker):
14285         Make all c_readonly objects also lisp_readonly and marked for life.
14286         * lrecord.h (struct lrecord_implementation):
14287         Document flags better.
14288         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14289         * lrecord.h (DECLARE_LRECORD):
14290         * lrecord.h (XSETRECORD):
14291         * lrecord.h (RECORDP):
14292         * lrecord.h (RECORD_TYPEP):
14293         * lrecord.h (RECORD_MARKER): New.
14294         * lrecord.h (error_check_*):
14295         * lrecord.h (CONCHECK_NONRECORD):
14296         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14297         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14298         * lrecord.h (set_lheader_implementation):
14299         * lrecord.h (enum lrecord_type): New.
14300         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14301         * alloc.c (disksave_object_finalization_1):
14302         * alloc.c (mark_object):
14303         * alloc.c (lrecord_type_index):
14304         * alloc.c (tick_lcrecord_stats):
14305         * alloc.c (Fgarbage_collect):
14306         * alloc.c (init_alloc_once_early):
14307         * alloc.c (pdump_load):
14308         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14309         * alloc.c (lrecord_type_index): Delete.
14310         Make lisp object type indexes be constant.
14311           Makes (byte-compile) 5% faster.
14312         Put all marker functions into their own array.
14313           Makes (garbage-collect) 5% faster.
14314         Optimize SYMBOL_VALUE_MAGIC_P.
14315           Makes (byte-compile) 2-3% faster.
14316         * config.h.in (gc_checking_assert): New.
14317         * alloc.c: Use gc_checking_assert().
14318         * .dbxrc: Make compatible with new object type implementation.
14319         * .gdbinit: Make compatible with new object type implementation.
14320         * alloc.c: Delete all symbols defined only for debugging, such as
14321         Lisp_Type_Vector and lrecord_charset.
14322
14323 2000-02-21  Andy Piper  <andy@xemacs.org>
14324
14325         * gui-msw.c (Fmswindows_shell_execute): fix file location
14326         problems.
14327
14328         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14329         unshowing so that set_window_buffer doesn't undo
14330         kill_buffer_hook's hard work.
14331
14332         * glyphs-widget.c (tab_control_query_geometry): don't count the
14333         first item when calculating geometry.
14334
14335         * glyphs.c (map_subwindow): remove redundant code.
14336         (update_frame_subwindows): be more circumspect about when to
14337         update subwindows.
14338
14339         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14340         when items haven't changed. Update faces if faces have changed as
14341         well as just the widget face.
14342         (x_tab_control_update): Update faces if faces have changed as well
14343         as just the widget face.
14344
14345 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14346
14347         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14348         registration.
14349         (build_syscolor_string): Use mswindows_color_to_string to try to
14350         get a named color.
14351         (mswindows_device_system_metrics): Reverse the foreground and
14352         background colors so that they match the documentation.
14353
14354         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14355         they match the default Windows palette.
14356         (mswindows_color_to_string): New function.
14357
14358 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14359
14360         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14361
14362 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14363
14364         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14365         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14366
14367         * symbols.c (init_symbols_once_early): Removed obsolete
14368         DATA_SEG_BITS related kludge.
14369         (defvar_magic): Ditto.
14370
14371         * malloc.c: Removed obsolete DATA_SEG_BITS
14372         * ralloc.c: Ditto.
14373         * mem-limits.h: Ditto.
14374
14375         * Makefile.in.in: Removed obsolete HAVE_SHM
14376         * emacs.c: Ditto.
14377
14378 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14379
14380         *  device-msw.c (mswindows_delete_device): Free DDE string
14381         handles.
14382
14383 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14384
14385         * keymap.c (get_keyelt):
14386         * unexnt.c (unexec):
14387         * vm-limit.c (memory_warnings):
14388         * ntheap.c (recreate_heap):
14389         * ntheap.h (UNINIT_PTR):
14390         * select-msw.c (Fmswindows_get_clipboard):
14391         (Fmswindows_set_clipboard):
14392         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14393         * objects-msw.c:
14394         * menubar-msw.c (displayable_menu_item):
14395         * glyphs-msw.c:
14396         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14397         * sysdep.c (sys_subshell):
14398         * process-nt.c (nt_create_process):
14399         * nt.c (normalize_filename):
14400         (dostounix_filename):
14401         (unixtodos_filename):
14402         * ntproc.c (win32_executable_type):
14403         * ntplay.c (play_sound_data_1):
14404         (play_sound_file):
14405         * editfns.c (get_home_directory):
14406         * event-msw.c (struct winsock_stream):
14407         (mswindows_dde_callback):
14408         * device-msw.c (msprinter_init_device):
14409         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14410
14411         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14412         mswindows_clear_toolbar were swapped!
14413
14414         * objects-msw.c:(colormap_t):
14415         (fontmap_t):
14416         * emacs.c (struct standard_args): Fixed const jumble.
14417
14418         * glyphs-widget.c (update_widget): Fixed comparison notation.
14419
14420         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14421
14422         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14423         __declspec(noreturn) syntax.
14424
14425 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14426
14427         * eldap.c (Fldap_open):
14428         (Fldap_search_basic):
14429         (Fldap_add):
14430         (Fldap_modify):
14431         Use new coding system conversion macros.
14432
14433 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14434
14435         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14436
14437 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14438
14439         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14440         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14441
14442         * eldap.c (Qadd, Qreplace): New constant symbols
14443         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14444         interruptions by XEmacs signals
14445         Remove unnecessary calls to slow_down_interrupts and
14446         speed_up_interrupts
14447         (Fldap_search_basic): Renamed from Fldap_search_internal
14448         Added new optional parameter VERBOSE that triggers the
14449         display of progress messages
14450         Remove unnecessary calls to slow_down_interrupts and
14451         speed_up_interrupts
14452         LDAP result code analysis rewritten
14453         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14454         (syms_of_eldap): Define the new symbols and functions
14455
14456
14457 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14458
14459         * realpath.c: Determine PATH_MAX maximally portably.
14460
14461         * insdel.c (bytecount_to_charcount): Optimize.
14462         The function used to be optimized for entirely ASCII sequences.
14463         Now it is optimized for successive characters from the same
14464         charset.  This also wins big for _mostly_ ASCII sequences.
14465
14466         * fileio.c (Ffile_truename): convert return from realpath() using
14467         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14468         - Rewrite GCPROing slightly.
14469
14470         * sysdep.c (sys_open): Do filename conversion, like all other
14471         sys_* functions.  Fixes bug:
14472         (let ((file-name-coding-system 'iso-8859-2))
14473            (write-region x y latin2-name))
14474         ==> writes filename using internal encoding.
14475
14476 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14477
14478         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14479         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14480         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14481         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14482         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14483         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14484         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14485         (CONST_IF_NOT_DEBUG): Delete.
14486         * alloc.c (this_one_is_unmarkable): Delete.
14487         (mark_object): Don't check for this_one_is_unmarkable. Use the
14488         c_readonly flag instead.
14489         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14490
14491 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14492
14493         * event-msw.c (mswindows_drain_windows_queue):
14494         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14495         away redundant repaint events.
14496
14497 2000-02-17  Andy Piper  <andy@xemacs.org>
14498
14499         * redisplay.h: declare mark_redisplay_structs.
14500
14501         * redisplay.c (redisplay_window):
14502         (redisplay_frame): don't check subwindows_state_changed.
14503         (mark_redisplay): mark gutters here.
14504
14505         * glyphs.c: (instantiate_image_instantiator): always layout if we
14506         haven't done so already.
14507         (allocate_image_instance): don't mark as dirty.
14508         (update_subwindow): bind inhibit_quit.
14509
14510         * gutter.c (mark_gutters): new function.
14511
14512         * glyphs-x.c (x_update_widget): Always resize to get round a
14513         widget bug.
14514
14515         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14516         breaking absolutely everything.
14517
14518         * gutter.h: declare mark_gutters.
14519
14520 2000-02-16  Martin Buchholz <martin@xemacs.org>
14521
14522         * XEmacs 21.2.29 is released.
14523
14524 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14525
14526         * fns.c (size_bit_vector): Fix computation of the size.
14527
14528 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14529
14530         * *.[ch]: Change CONST to const globally.
14531         find -name '*.[ch]' | \
14532         xargs global-replace \
14533         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14534         - Remove vestigial references to CONST_IS_LOSING
14535
14536 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14537
14538         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14539         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14540         events instead of dispatching them directly.
14541         (mswindows_handle_paint): New function to do repainting.
14542         (mswindows_wnd_proc):
14543         (emacs_mswindows_handle_magic_event): Call above function.
14544
14545 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14546
14547         * objects-msw.c (mswindows_create_font_variant): Return the new
14548         font handle.
14549         (initialize_font_instance): Get font metrics from the underlined
14550         variant of the font to cope with the case where the underlined
14551         font has a bigger descent.
14552
14553 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14554
14555         * gui.c (gui_item_accelerator): Return the first underlined
14556         character in item name.
14557
14558 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14559
14560         * lisp.h: Added Qprinter.
14561
14562         * general.c (syms_of_general): Initialized it.
14563
14564         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14565         (get_frame_dc):
14566         (get_frame_compdc): Made inline.
14567
14568         * console.h (struct console_methods): Added eject_page method.
14569
14570         * frame.h: Added FRAME_DISPLAY_P and friends.
14571         Aligned backslahes in many macros in more readable fashion.
14572         Added page_number to struct frame, and an accessor macro
14573         for it.
14574
14575         * defice.h: Added DEVICE_DISPLAY_P and friends.
14576
14577         * device.c (Fdevice_printer_p): Used these.
14578
14579         * frame.c (allocate_frame_core): Initialize page number.
14580         (Fprint_job_page_number):
14581         (Fprint_job_eject_page): Implemented.
14582
14583         * frame-msw.c (msprinter_eject_page): Added method.
14584         (msprinter_start_page): Added.
14585
14586         * window.c (Fwindow_truncated_p): Fixed docstring.
14587         (Fwindow_last_line_visible_height): Implemented.
14588
14589 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14590
14591         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14592
14593 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14594
14595         * syntax.c (scan_words): Always advance at least one character.
14596
14597 2000-02-13  Andy Piper  <andy@xemacs.org>
14598
14599         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14600         to make sure the glyph is in the cachels.
14601
14602         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14603         global image instance flag.
14604         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14605         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14606
14607         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14608         (Fset_image_instance_property): mark layout as changed.
14609         (invalidate_glyph_geometry_maybe): mark layout as changed.
14610         (glyph_width): use new NEEDS_LAYOUT macro.
14611         (glyph_ascent): ditto.
14612         (glyph_descent): ditto.
14613         (glyph_height): ditto.
14614         (image_instance_layout): mark layout as clean after laying out.
14615         (update_subwindow): don't mark layout as clean here.
14616
14617         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14618         should no longer be needed.
14619
14620         * glyphs-x.c (x_update_widget): sanitize asserts.
14621         (x_finalize_image_instance): sanitize assignment to widgets.
14622
14623         * glyphs-widget.c (widget_instantiate): don't need to clear the
14624         layout flag here.
14625
14626 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14627
14628         * sysdep.c (getcwd): Use standard prototype.
14629         * sysdep.h (getcwd): Use standard prototype.
14630
14631         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14632         (sequence, start, end).
14633         Remove redundant type checking.
14634         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14635         view of `caller-protects') to avoid a crash where the real fix was
14636         found elsewhere.
14637
14638 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14639
14640         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14641
14642         * s/sol2.h: Remove feature macro initialization.
14643
14644         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14645         (vector_hash): New.  Code from internal_hash.
14646         * lrecord.h:
14647         Fix up allocation subsystem comments.
14648
14649         * config.h.in: Add __EXTENSIONS__ for Solaris.
14650
14651         * systime.h (EMACS_GETTIMEOFDAY): New.
14652         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14653         Remove Solaris-specific code.
14654         Use void* for the (ignored) second arg for gettimeofday().
14655
14656         * elhash.c (hash_table_hash): Implement it, finally.
14657         * elhash.c:  Use hashcode_t.
14658
14659         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14660         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14661
14662         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14663         * fns.c (size_bit_vector):
14664         * alloc.c (size_vector):
14665         (make_vector_internal):
14666         (make_bit_vector_internal):
14667         (sweep_bit_vectors_1):
14668         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14669
14670 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14671
14672         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14673         Include strings.h to avoid warnings for bzero and strcasecmp.
14674
14675 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14676
14677         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14678         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14679
14680         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14681         sequence.
14682
14683 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14684
14685         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14686         use a value field instead.
14687         (symbol_value_forward_forward): Use value field.
14688         (DEFVAR_SYMVAL_FWD): Use value field.
14689         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14690         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14691         (DEFVAR_CONST_INT): Ditto.
14692         (DEFVAR_BOOL): Ditto.
14693         (DEFVAR_CONST_BOOL): Ditto.
14694         (DEFVAR_INT_MAGIC): Ditto.
14695         (DEFVAR_BOOL_MAGIC): Ditto.
14696
14697         * symbols.c (guts_of_unbound_marker): Use value field.
14698         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14699         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14700
14701         * lisp.h: Declare dumpopaque and noninteractive1.
14702
14703         * alloc.c (dumpopaque): Added.
14704         (pdump_dump_opaquevec): Added.
14705         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14706         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14707         noninteractive.
14708
14709 2000-02-10  Andy Piper  <andy@xemacs.org>
14710
14711         * glyphs.c (image_instance_layout): if the size changes, mark it
14712         as such.
14713
14714         * redisplay-output.c (redisplay_output_layout): Update the
14715         subwindow here.
14716         (redisplay_output_subwindow): ditto.
14717
14718         * glyphs.c (update_subwindow): make sure we reset flags for
14719         layouts as well as everything else.
14720
14721         * glyphs-widget.c (layout_layout): don't need to set the instances
14722         dimensions here.
14723
14724 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14725
14726         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14727         not HAVE_DLOPEN, which is a lower-level thing.
14728
14729         * .cvsignore: Ignore gmon.out
14730
14731 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14732
14733         * .cvsignore: Ignore portable dumper xemacs.dmp file
14734
14735 2000-02-09  Andy Piper  <andy@xemacs.org>
14736
14737         * redisplay-output.c (redisplay_output_layout): be more clever
14738         about when we output based on the changed flags.
14739
14740         * glyphs.h (struct image_instantiator_methods): add update_method.
14741         (struct Lisp_Image_Instance): add changed flags. Declare new
14742         macros for manipulating them.
14743
14744         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14745         (image_instance_parent_glyph): find an image_instance's parent
14746         glyph or image_instance.
14747         (image_instance_layout): mark the size as changed.
14748         (set_image_instance_dirty_p): new function. mark an image
14749         instance, plus all of its parents, as dirty.
14750         (Fset_image_instance_property): use it.
14751         (Fglyph_animated_timeout_handler): use it.
14752         (update_subwindow): call update_widget and device methods for
14753         update_subwindow. Mark all changed flags as clean.
14754         (Fresize_subwindow): mark size as changed.
14755
14756         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14757         failures.
14758         (x_update_subwindow): only resize subwindows here.
14759         (x_update_widget): new function. Update all changed properties of
14760         a widget.
14761         (x_resize_subwindow): deleted.
14762         (x_widget_set_property): deleted.
14763         (x_progress_gauge_set_property): deleted.
14764         (x_progress_gauge_update): new function. Implement recorded
14765         changes.
14766         (x_tab_control_update): ditto.
14767         (x_tab_control_set_property): deleted.
14768         (console_type_create_glyphs_x): declare new functions.
14769         (image_instantiator_format_create_glyphs_x): ditto.
14770
14771         * glyphs-widget.c (widget_set_property): mark text changed.
14772         (update_widget): new function. Update properties of a widget.
14773         (widget_instantiate): for layouts make sure we set their
14774         children's parent correctly.
14775         (tab_control_set_property): new function. Record changes that will
14776         take place under redisplay's control.
14777         (progress_gauge_set_property): ditto.
14778         (image_instantiator_progress_guage): declare new functions.
14779         (image_instantiator_tab_control): ditto.
14780
14781         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14782         now.
14783         (mswindows_update_widget): new function. Update all properties on
14784         a widget that have changed.
14785         (mswindows_button_update): new function. Update a button's set
14786         state.
14787         (mswindows_tab_control_update): new function. Update the items in
14788         a tab.
14789         (mswindows_tab_control_set_property): deleted.
14790         (mswindows_progress_gauge_update): new function. Update the
14791         progress gauge's progress.
14792         (mswindows_widget_set_property): deleted. This is all done
14793         asynchronously now.
14794         (mswindows_progress_gauge_set_property): ditto.
14795         (console_type_create_glyphs_mswindows): declare new methods.
14796         (image_instantiator_format_create_glyphs_mswindows): ditto.
14797
14798         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14799         (msprinter_set_frame_properties): ditto.
14800
14801         * console.h (struct console_methods): Add update_widget_method.
14802
14803 2000-02-09  Andy Piper  <andy@xemacs.org>
14804
14805         * gui-msw.c (Fmswindows_shell_execute): Make
14806         mswindows-shell-execute industrial strength.
14807
14808 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14809
14810         * lrecord.h: Make macro argument `props' match member function `plist'.
14811         * fns.c (Fget):
14812         * fns.c (Fput):
14813         * fns.c (Fremprop):
14814         * fns.c (Fobject_plist):
14815         * alloc.c:
14816         * symbols.c:
14817         Object property list frobbing cleanup.
14818         - Allow any lisp object (compared with `eq'), not just symbols, as
14819           keys in object plists.
14820         - Move symbol plist frobbing into symbols.c, where it belongs.
14821         - Move string plist frobbing into alloc.c, where it belongs.
14822         - Everything's an lrecord now, so no need to test for symbolp, etc.
14823         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14824
14825         * extents.c: Reorder code to remove declarations.
14826
14827         * frame.h (store_in_alist): Remove useless declaration.
14828
14829 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14830
14831         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14832         * config.h.in: Add HAVE_XCONVERTCASE.
14833
14834 2000-02-07  Andy Piper  <andy@xemacs.org>
14835
14836         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14837         it breaks many things.
14838
14839 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14840
14841         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14842         actually can start a common comment type.
14843         * src/syntax.h (SYNTAX_END_P): ditto for end.
14844
14845 2000-02-07  Martin Buchholz <martin@xemacs.org>
14846
14847         * XEmacs 21.2.28 is released.
14848
14849 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14850
14851         * event-Xt.c (x_keysym_to_character): New.
14852         (maybe_define_x_key_as_self_inserting_character): New.
14853         (x_has_keysym): New.
14854         Auto-define all keys on the keyboard as self-insert-key.
14855
14856 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14857
14858         * menubar.c (vars_of_menubar): A small code simplification.
14859
14860         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14861
14862         * ExternalShell.c:
14863         * ExternalClient.c:
14864         * EmacsShell-sub.c:
14865         * EmacsManager.c:
14866         * EmacsFrame.c:
14867         Use consistent style for specifying X resources.
14868
14869         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14870         This makes (dontusethis-set-symbol-value-handler) actually usable.
14871
14872         * lrecord.h (lrecord_decription_type):
14873         * alloc.c (pdump_register_sub):
14874         (pdump_dump_data):
14875         (pdump_reloc_one):
14876         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14877         Comply with XEmacs coding style.
14878         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14879         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14880
14881         * keymap.c (Faccessible_keymaps):
14882         Make (accessible-keymaps map "\C-h") do the Right Thing.
14883         Make (accessible-keymaps map []) do the Right Thing.
14884         Make (accessible-keymaps map "") do the Right Thing.
14885         (check_keymap_definition_loop): New function.
14886         (keymap_store_internal): Keep luser from shooting self in foot,
14887           via (define-key ctl-x-4-map "p" global-map).
14888         Remove fullness slot from struct Lisp_Keymap, since hash tables
14889         are now reliable.
14890         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14891
14892 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14893
14894         * redisplay.c (init_redisplay): Fix small memory leak.
14895         * elhash.h:
14896         * elhash.c (pdump_reorganize_hash_table):
14897         Rename from reorganize_hash_table. Change prototype.
14898         Reuse the original memory for hentries.  Save 100k.
14899         * alloc.c (PDUMP_READ): new macro.
14900         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14901         * alloc.c: No need to #ifndef before #undef.
14902
14903         * print.c: Allow debug_print() to print readably by modifying
14904         debug_print_readably.  Use consistent variable names.
14905
14906         * .dbxrc: Try to get things to work even if stopped in a function
14907         without source available by explicitly specifying source files.
14908 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14909
14910         * unexnt.c (_start): Removed bogus code which caused loading heap
14911         from differrent executable file.
14912         Removed bogus assignment to _fmode, which caused inconsistencies.
14913
14914 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14915
14916         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14917         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14918         Do not preliminary `#define signal sigset'.
14919
14920         * systime.h: Do not prototype environ on windows nt and cygwin,
14921         this conflicts with system header.
14922
14923         * syssignal.h: Use correct define for WINDOWSNT
14924
14925         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14926         with system header.
14927
14928         * sysdep.c (near start of file): Fixed commentary and rearranged
14929         ifdefs in readable order.
14930         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14931         (start_of_text):
14932         (end_of_text):
14933         (end_of_data): Do not compile in if using PDUMP.
14934
14935         * symsinit.h: Prototyped vars_of_nt().
14936
14937         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14938         (find_child_console): Use it.
14939         (sys_kill): Use it.
14940
14941         * ntheap.h: Do not extern os_subtype.
14942
14943         * ntheap.c (cache_system_info): Do not cache unneeded:
14944         nt_major_version, nt_minor_version and os_subtype.
14945         (recreate_heap): Do not compile in when PDUMPing.
14946
14947         * nt.c (geteuid and friends): Use the new varibale
14948         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14949         (init_user_info): Removed the above mentioned hackery.
14950         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14951         stat has been fixed in the C runtime.
14952         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14953
14954         * file-coding.c (struct file_coding_dump): Do not define
14955         ucs_to_mule_table in the struct if not MULE.
14956         (struct struct lrecord_description fcd_description_1): Do not dump
14957         the above.
14958
14959         * emacs.c (main_1): Call vars_of_nt().
14960         (right before Fdump_emacs_data): Don't need lastfile if using both
14961         portabe dumper and system malloc.
14962
14963         * alloc.c (Fmemory_limit): Conditionalized out.
14964         (pdump): Use OPEN_BINARY for the portable dump file.
14965         (pdump_load): Ditto.
14966
14967 2000-02-02  Mike Alexander  <mta@arbortext.com>
14968
14969         * nt.c (convert_time): Set tm_isdst before calling mktime and
14970         avoid calling it at all if the compiler supports 64 bit integers.
14971         Also initialize utc_base_ft before using it.
14972
14973 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14974
14975         * frame.c (change_frame_size_1): Take f->internal_border_width
14976         into consideration when calculating the width of the frame.
14977
14978 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14979
14980         * window.c (frame_min_height):
14981         (frame_size_valid_p):
14982         (frame_pixsize_valid_p): Added.
14983         (check_frame_size): Generalized.
14984
14985         * window.h: Prototyped the above.
14986
14987         * lisp.h:
14988         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14989         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14990         Deleted Vwin32_* and Vbinary_process_* unused variables.
14991
14992         * device-msw.c (msprinter_init_device): Do not get printer font
14993         list; Added DEVMODE functions.
14994
14995         * frame-msw.c: Added lots of printer code.
14996
14997         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14998         general.c.
14999
15000         * console-msw.h: Added more msprinter device private slots.
15001
15002 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15003
15004         * event-msw.c (key_needs_default_processing_p): Added.
15005         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15006
15007 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15008
15009         * glyphs.c (image_instance_layout): Mark image instance as clean
15010         after layout.
15011         (glyph_dirty_p): Removed redundant function.
15012         (invalidate_glyph_geometry_maybe): Added.
15013         (update_glyph_cachel_data): Call it.
15014
15015         * glyphs.h: Prototyped it.
15016
15017         * redisplay.c (add_glyph_rune): Call it.
15018         (redisplay_window): Reset glyphs cachels when frame faces have
15019         changed, thus forcing recomputation of built-in border glyphs.
15020
15021 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15022
15023         * Makefile.in.in: Make portable dumper and purify play well together.
15024         Add imperfect, but better than nothing, support for pdump.
15025         Remove xemacs.dmp when temacs is re-generated.
15026         Don't ignore errors when dumping xemacs.
15027
15028         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15029
15030 2000-01-28  Andy Piper  <andy@xemacs.org>
15031
15032         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15033         (setup_normal_frame): ditto.
15034         (setup_frame_without_minibuffer): ditto.
15035         (setup_minibuffer_frame): ditto.
15036         (delete_frame_internal): ditto.
15037         (Fmake_frame_invisible): ditto.
15038         (Ficonify_frame): ditto.
15039
15040         * window.h: change Fset_window_buffer signature.
15041
15042         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15043         (Fset_window_buffer): allow recording of buffer if the window is
15044         the selected window.
15045         (window_loop): Use new Fset_window signature.
15046
15047 2000-01-23  Daniel Pittman  <daniel@danann.net>
15048
15049         * config.h.in: Added template for `HAVE_ATHENA_3D'
15050
15051 2000-01-29  Andy Piper  <andy@xemacs.org>
15052
15053         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15054
15055         * gutter.c (output_gutter): Don't output if the window isn't live.
15056
15057 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15058
15059         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15060         of 01/12/00: Moved SetFocus back here where it belongs.
15061
15062 2000-01-23  Andy Piper  <andy@xemacs.org>
15063
15064         * s/cygwin32.h: declare printer things.
15065
15066 2000-01-26  Andy Piper  <andy@xemacs.org>
15067
15068         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15069         Alexander.
15070
15071 2000-01-24  Andy Piper  <andy@xemacs.org>
15072
15073         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15074         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15075
15076         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15077
15078         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15079
15080         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15081
15082         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15083         (mswindows_output_display_block): Avoid local shadows.
15084
15085         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15086         (mswindows_enqueue_mouse_button_event): ditto.
15087         (mswindows_handle_gui_wm_command): remove declaration.
15088
15089         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15090         warnings.
15091
15092         * console-msw.h: Avoid shadows.
15093         (mswindows_get_toolbar_button_text):
15094         (emacs_mswindows_create_stream_pair):
15095         (emacs_mswindows_delete_stream_pair):
15096         (mswindows_handle_toolbar_wm_command): declare.
15097
15098         * device-msw.c (build_syscolor_string): Avoid shadows.
15099
15100 2000-01-23  Andy Piper  <andy@xemacs.org>
15101
15102         * glyphs-widget.c (widget_instantiate): reverse the items for
15103         layouts so that children are in the expected order.
15104
15105 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15106
15107         * ralloc.c: safe_bcopy ==> memmove
15108         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15109         * s/msdos.h: Remove BCOPY macros.
15110         * insdel.c (gap_right): Remove BCOPY conditional code.
15111         * insdel.c (gap_left): Remove BCOPY conditional code.
15112         XEmacs demands a working ANSI C compiler - hence memmove.
15113
15114         * regex.c (regex_compile): Remove accidental use of trigraphs.
15115
15116 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15117
15118         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15119         event timestamp.
15120
15121 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15122
15123         * event-msw.c (mswindows_drain_windows_queue): Added the
15124         parameter.
15125         (mswindows_need_event): Commented the call to
15126         mswindows_drain_windows_queue().
15127         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15128         only.
15129
15130         * console-msw.h: Moved a few function prototypes here from
15131         event-msw.c.
15132
15133         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15134         parameter from unsigned short to unsigned long.
15135         (Fmswindows_shell_execute): Added return value.
15136
15137 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15138
15139         * sysdep.c (init_system_name):
15140           process-unix.c (unix_canonicalized_host_name):
15141         Don't call freeaddrinfo() if getaddrinfo() fails.
15142
15143         * process-unix.c (unix_open_unix_network_stream):
15144         Moved the code to get a port # into address loop.
15145
15146 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15147
15148         * buffer.c (reinit_vars_of_buffer):
15149         The right place to initialize conversion_in_dynarr and
15150         conversion_out_dynarr.
15151
15152         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15153
15154         * process-unix.c (unix_canonicalize_host_name): Muleize.
15155         (unix_open_network_stream): Muleize.
15156
15157         * buffer.h: Fix up prototypes for ralloc.c functions.
15158
15159 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15160         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15161         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15162                 instead of gethostbyname()
15163         * process-unix.c: In unix_canonicalize_host_name() and
15164                 unix_open_network_stream(), add code to use getaddrinfo()
15165                 instead of gethostbyname().
15166
15167 2000-01-27  Daniel Pittman <daniel@danann.net>
15168
15169         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15170         libs when built with flat Athena.
15171
15172 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15173
15174         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15175         Use coding standards for function prototypes.
15176
15177 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15178
15179         * dialog-msw.c (push_lisp_string_as_unicode):
15180         * doc.c (unparesseuxify_doc_string):
15181         * dired.c (Fuser_name_completion_1):
15182         * dired.c (Fuser_name_all_completions):
15183         * dired.c (free_user_cache):
15184         * dired.c (user_name_completion):
15185         * console-x.c (get_display_arg_connection):
15186         * minibuf.c (clear_echo_area_internal):
15187         * minibuf.c (echo_area_append):
15188         * eldap.c (Fldap_open):
15189         * eldap.c (Fldap_search_internal):
15190         * frame-x.c (x_set_frame_text_value):
15191         * frame-x.c (x_set_frame_properties):
15192         * frame-x.c (x_create_widgets):
15193         * redisplay-tty.c (term_get_fkeys_1):
15194         * objects-x.c (x_parse_nearest_color):
15195         * objects-x.c (x_valid_color_name_p):
15196         * objects-x.c (x_initialize_font_instance):
15197         * objects-x.c (x_list_fonts):
15198         * objects-x.c (x_find_charset_font):
15199         * tooltalk.c (Fadd_tooltalk_message_arg):
15200         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15201         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15202         * process-unix.c (unix_create_process):
15203         * ntproc.c (sys_spawnve):
15204         * sound.c (Fplay_sound_file):
15205         * sound.c (Fplay_sound):
15206         * buffer.c (init_initial_directory):
15207         * buffer.c (init_buffer):
15208         * editfns.c (init_editfns):
15209         * editfns.c (Ftemp_directory):
15210         * editfns.c (Fuser_full_name):
15211         * editfns.c (uncache_home_directory):
15212         * editfns.c (get_home_directory):
15213         * editfns.c (Fuser_home_directory):
15214         * editfns.c (Fformat_time_string):
15215         * editfns.c (Fcurrent_time_string):
15216         * gui-x.c (button_item_to_widget_value):
15217         * database.c (Fopen_database):
15218         * event-Xt.c (x_to_emacs_keysym):
15219         * event-Xt.c (x_event_to_emacs_event):
15220         * event-Xt.c (describe_event_window):
15221         * event-msw.c (mswindows_wnd_proc):
15222         * glyphs-eimage.c (jpeg_instantiate):
15223         * glyphs-eimage.c (gif_instantiate):
15224         * glyphs-eimage.c (png_instantiate):
15225         * glyphs-eimage.c (tiff_instantiate):
15226         * glyphs-x.c (xbm_instantiate_1):
15227         * glyphs-x.c (x_xbm_instantiate):
15228         * glyphs-x.c (x_xface_instantiate):
15229         * glyphs-x.c (autodetect_instantiate):
15230         * glyphs-x.c (cursor_font_instantiate):
15231         * glyphs-x.c (x_widget_instantiate):
15232         * glyphs-x.c (x_widget_set_property):
15233         * glyphs-x.c (x_widget_property):
15234         * glyphs-x.c (BUILD_GLYPH_INST):
15235         * print.c (write_string_to_stdio_stream):
15236         * print.c (output_string):
15237         * print.c (Falternate_debugging_output):
15238         * print.c (Fexternal_debugging_output):
15239         * glyphs-msw.c (extract_xpm_color_names):
15240         * glyphs-msw.c (mswindows_xpm_instantiate):
15241         * glyphs-msw.c (bmp_instantiate):
15242         * glyphs-msw.c (resource_name_to_resource):
15243         * glyphs-msw.c (mswindows_resource_instantiate):
15244         * glyphs-msw.c (xbm_instantiate_1):
15245         * glyphs-msw.c (mswindows_xbm_instantiate):
15246         * glyphs-msw.c (mswindows_xface_instantiate):
15247         * glyphs-msw.c (mswindows_widget_instantiate):
15248         * glyphs-msw.c (add_tree_item):
15249         * glyphs-msw.c (add_tab_item):
15250         * glyphs-msw.c (mswindows_combo_box_instantiate):
15251         * glyphs-msw.c (mswindows_widget_property):
15252         * glyphs-msw.c (mswindows_combo_box_property):
15253         * glyphs-msw.c (mswindows_widget_set_property):
15254         * console.c (stuff_buffered_input):
15255         * objects-msw.c (mswindows_initialize_color_instance):
15256         * objects-msw.c (mswindows_valid_color_name_p):
15257         * objects-msw.c (mswindows_list_fonts):
15258         * objects-msw.c (mswindows_font_instance_truename):
15259         * bytecode.c (optimize_compiled_function):
15260         * select-x.c (symbol_to_x_atom):
15261         * select-x.c (x_atom_to_symbol):
15262         * select-x.c (hack_motif_clipboard_selection):
15263         * select-x.c (selection_data_to_lisp_data):
15264         * select-x.c (lisp_data_to_selection_data):
15265         * select-x.c (Fx_get_cutbuffer_internal):
15266         * select-x.c (Fx_store_cutbuffer_internal):
15267         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15268         * buffer.h (TO_INTERNAL_FORMAT): New function.
15269         * emacs.c (make_arg_list_1):
15270         * emacs.c (make_argc_argv):
15271         * emacs.c (main_1):
15272         * emacs.c (Fdump_emacs):
15273         * emacs.c (split_string_by_emchar_1):
15274         * file-coding.h:
15275         * lisp.h:
15276         * lstream.h:
15277         * symsinit.h:
15278         * device-x.c (x_init_device):
15279         * device-x.c (Fx_valid_keysym_name_p):
15280         * device-x.c (Fx_get_font_path):
15281         * device-x.c (Fx_set_font_path):
15282         * glyphs.c (bitmap_to_lisp_data):
15283         * glyphs.c (pixmap_to_lisp_data):
15284         * alloc.c (make_ext_string): Use coding system arguments.  Update
15285         all callers.
15286         * alloc.c (build_string):
15287         * callproc.c (child_setup):
15288         * callproc.c (init_callproc):
15289         * fileio.c (lisp_strerror):
15290         * fileio.c (directory_file_name):
15291         * fileio.c (Fexpand_file_name):
15292         * fileio.c (Ffile_truename):
15293         * fileio.c (Fsysnetunam):
15294         * fileio.c (Fdo_auto_save):
15295         * sysdep.c (sys_readdir):
15296         * tests.c: New file.  Allow adding C tests.
15297         Replace GET_* macros with a more comprehensible and flexible
15298         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15299         Modify all calls.
15300         Any coding system can be used to do format conversion.
15301         Eliminate enum external_data_format.
15302         Eliminate convert_to_external_format.
15303         Eliminate convert_to_internal_format.
15304         Make sure file-name, keyboard, terminal, and ctext are always
15305         defined as coding systems or aliases.  Make
15306         file-name-coding-system, terminal-coding-system, and
15307         keyboard-coding-system magical variables that are equivalent to
15308         defining the corresponding coding system aliases.
15309
15310         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15311         * file-coding.c (Fcoding_system_alias_p): New function.
15312         * file-coding.c (Fcoding_system_aliasee): New function.
15313         * file-coding.c (append_suffix_to_symbol): New function.
15314         * file-coding.c (dangling_coding_system_alias_p): New function.
15315         * file-coding.c (Ffind_coding_system):
15316         * file-coding.c (Fcopy_coding_system):
15317         * file-coding.c (encode_coding_no_conversion):
15318         * file-coding.c (syms_of_file_coding):
15319         * file-coding.c (vars_of_file_coding):
15320         Rewrite coding system alias code.
15321         Allow nested aliases, like symbolic links.
15322         Allow redefinition of coding system aliases.
15323         Prevent existence of dangling coding system aliases.
15324
15325         * dired.c (Fuser_name_completion_1):
15326         * dired.c (Fuser_name_all_completions):
15327         A crash would happen if user did QUIT in the middle of building
15328         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15329
15330         * lisp.h:
15331         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15332
15333         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15334         an unsigned char *.  Update all callers.
15335
15336 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15337
15338         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15339
15340 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15341
15342         * elhash.c (hentry_description): Use more portable definition.
15343         (resize_hash_table): Initialize new hentries using
15344         xnew_array_and_zero, thereby simplifying the code.
15345
15346         * mule-charset.c (make_charset): Make sure entire object is
15347         initialized, to avoid Purify warnings.
15348
15349         * alloc.c (resize_string): Fix unlikely crash with big strings.
15350
15351 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15352
15353         * realpath.c (xrealpath):
15354         Don't call getwd().
15355
15356 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15357
15358         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15359
15360 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15361
15362         * unexelfsgi.c (unexec): Change the way we decide which segment
15363         should be extended.
15364
15365         Assumption that .bss section should be outside the PT_LOADable
15366         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15367         it's present) is inside the 'data' segment. This would fail the
15368         test which was used to find a segment to grow and cover new
15369         heap. Instead of this assumption, I created another one - on IRIX
15370         the segment to grow should start below .bss and it's address
15371         should extent above the end of .bss. Once this segment is
15372         identified, it's grown to accommodate the new heap and new
15373         zero-length .bss section is added at the end of .data2.
15374
15375 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15376
15377         * eval.c (Feval): Wrong number of arguments should use original
15378         function, not the indirect_function version of it.
15379
15380 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15381
15382         * glyphs-x.c (x_button_instantiate): Don't add image if
15383         it is not a pixmap.
15384         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15385         is relative.
15386
15387 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15388
15389         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15390         declaration.
15391         (DEFVAR_INT_MAGIC): Ditto.
15392         (DEFVAR_BOOL_MAGIC): Ditto.
15393         * glyphs.h: Reindent backslash.
15394
15395 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15396
15397         * glyphs-widget.c (layout_query_geometry):
15398         (layout_layout): Use correct types for gheight, gwidth.
15399
15400 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15401
15402         * EmacsManager.c (QueryGeometry): Purified.
15403
15404 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15405
15406         * alloc.c (make_float): Make sure entire object is initialized, to
15407         avoid Purify warnings.
15408         (pdump_register_sub): Remove useless assignment.
15409         (pdump): Use xmalloc, not malloc.
15410         (pdump_load): Use xmalloc, not malloc.
15411
15412 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15413
15414         * callproc.c:
15415         * dired-msw.c:
15416         * fileio.c:
15417         * process-nt.c:
15418         * redisplay-msw.c:
15419         * sysdep.c: Removed redundant #include <windows.h>
15420
15421 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15422
15423         * frame.c (delete_frame_internal): Do not delete device when its
15424         implementation so declares.
15425         (delete_frame_internal): Set device selected frame to nil when
15426         last frame goes away.
15427
15428         * device-msw.c (msprinter_device_system_metrics): Implemented.
15429         (mswindows_device_system_metrics): Added 'device-dpi property.
15430
15431         * device.c: (Fdevice_printer_p): Added.
15432         Added 'offset-workspace device metric.
15433
15434         * console.h (device_metrics): Declared DM_offset_workspace.
15435
15436 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15437
15438         * fileio.c (Ffile_truename): Remove pointless and confusing
15439         initialization of elen.
15440
15441         * glyphs-widget.c: Compiler warning fixes.
15442
15443 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15444
15445         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15446         instead of a Lisp_Object as argument to make it consistent with
15447         the other LIVE_P macros.
15448         (CHECK_LIVE_PROCESS): New macro.
15449
15450         * process.c: Declare Qprocess_live_p.
15451         (Fprocess_live_p): New function.
15452         (create_process): Use PROCESS_LIVE_P.
15453         (read_process_output): Ditto.
15454         (set_process_filter): Ditto.
15455         (Fdelete_process): Ditto.
15456         (kill_buffer_processes): Ditto
15457         (process_send_signal): Use CHECK_LIVE_PROCESS.
15458         (Fprocess_input_coding_system): Check whether process is still
15459         alive (fix PR#1061).
15460         (Fprocess_output_coding_system): Ditto.
15461         (Fprocess_coding_system): Ditto.
15462         (Fset_process_input_coding_system): Ditto.
15463         (Fset_process_output_coding_system): Ditto.
15464
15465 2000-01-23  Andy Piper  <andy@xemacs.org>
15466
15467         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15468         layout and widget.
15469
15470         * glyphs.c (mark_image_instance): take into account changed
15471         image_instance format.
15472         (image_instance_equal): ditto.
15473         (image_instance_hash): ditto.
15474
15475         * glyphs-widget.c (widget_instantiate): Incorporate layout
15476         instantiation here. Delay layout of the layout until later.
15477         (layout_instantiate): deleted.
15478         (layout_query_geometry): new function. get the geometry of a
15479         layout.
15480         (layout_layout): layout a layout dynamically.
15481         (image_instantiator_widget): New function - splitting up
15482         image_instantiator_format_create_glyphs_widget for netwinder
15483         compilation.
15484         (image_instantiator_buttons):
15485         (image_instantiator_edit_fields):
15486         (image_instantiator_combo_box):
15487         (image_instantiator_scrollbar):
15488         (image_instantiator_progress_guage):
15489         (image_instantiator_tree_view):
15490         (image_instantiator_tab_control):
15491         (image_instantiator_labels):
15492         (image_instantiator_layout): ditto.
15493         (image_instantiator_format_create_glyphs_widget): Call preceding
15494         functions.
15495
15496 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15497
15498         * process.c (Fset_process_coding_system):
15499         * device-x.c (Fx_keysym_hash_table):
15500         Docstring fixes.
15501
15502         * lstream.c (Lstream_write): Return documented value, not 0.
15503
15504         * fileio.c (directory_file_name):
15505         (Fsubstitute_in_file_name):
15506         (Fsubstitute_insert_file_contents_internal):
15507         (Fwrite_region_internal):
15508         * emacs.c:
15509         * sysdep.c:
15510         * getloadavg.c:
15511         * systty.h:
15512         Remove vestigial APOLLO-conditional code.
15513
15514 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15515
15516         * getpagesize.h: Add guard macros.
15517         * libsst.h: Add guard macros.
15518         * libst.h: Add guard macros.
15519         * line-number.h: Add guard macros.
15520         * ndir.h: Add guard macros.
15521         * sysfloat.h: Add guard macros.
15522         * sysfile.h: Add guard macros.
15523         * sysproc.h: Add guard macros.
15524         * syswait.h: Add guard macros.
15525         * xintrinsic.h: Add guard macros.
15526         * xintrinsicp.h: Add guard macros.
15527         * xmmanager.h: Add guard macros.
15528         * xmmanagerp.h: Add guard macros.
15529         * xmprimitive.h: Add guard macros.
15530         * xmu.h: Add guard macros.
15531         * gpmevent.h: Add copyright statement. Add guard macros.
15532         * miscplay.h: Add guard macros.
15533         * *.h: Use consistent C-standards-approved guard macro names.
15534
15535         * opaque.c (make_opaque): Switch parameter order.
15536         * opaque.h (make_opaque): Switch parameter order.
15537         Update all callers.
15538         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15539
15540         * config.h.in (type_checking_assert): Added.
15541         (bufpos_checking_assert): Added.
15542
15543 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15544
15545         * alloc.c: Harmless pdump changes.
15546         - Use countof().
15547         - spell alignment correctly.
15548         * sysdep.c: Use countof()
15549
15550 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15551
15552         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15553         initially_selected_for_input() console method, default to 0.
15554         (semi_canonicalize_console_connection): Try to delegate to
15555         canonicalize_console_connection if no such console method.
15556         (canonicalize_console_connection): Vice versa.
15557         (print_console): Do not print nil connection.
15558
15559         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15560         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15561         (XDEVIMPF_FRAMELESS_OK): Added.
15562         (CONSOLE_INHERITS_METHOD): Added.
15563
15564         * console-msw.c (mswindows_canonicalize_console_connection):
15565         Added.
15566         (mswindows_canonicalize_device_connection): Added.
15567
15568         * console-msw.h (struct msprinter_device): Added this struct and
15569         accessor macros.
15570         (mswindows_device): Made fontlist a lisp object.
15571
15572         * device.c (semi_canonicalize_device_connection):  Try to delegate
15573         to canonicalize_device_connection if no such console method.
15574         (canonicalize_device_connection): Vice versa.
15575         (print_device): Do not print nil connection.
15576
15577         * device-msw.c (mswindows_init_device): Call InitCommonControls
15578         when have widgets.
15579         (mswindows_delete_device): Removed fontlist deallocation.
15580         (mswindows_mark_device): Added.
15581
15582         * events.c (event_equal): Added abort() at unreached code.
15583         (event_hash): Ditto.
15584
15585         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15586         fallback tags of Windows devices.
15587
15588         * general.c (syms_of_general): Initialized Qmsprinter.
15589
15590         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15591         of fallback tags of Windows devices.
15592
15593         * lisp.h: Declared Qmsprinter.
15594
15595         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15596         of strings.
15597         (mswindows_list_fonts): Ditto.
15598         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15599         that it can be used by both mswindows and msprinter devices.
15600         (initialize_font_instance): Added.
15601         (mswindows_initialize_font_instance): Use it.
15602         (msprinter_initialize_font_instance): Added.
15603
15604         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15605         and implementation flags check.
15606         (redisplay_without_hooks): Changed the call to the above.
15607         (Fredraw_device): Ditto.
15608         (Fredisplay_device): Ditto.
15609
15610         * redisplay-msw.c (get_frame_dc): Implemented.
15611         (get_frame_compdc): Implemented.
15612         (many functions): Use the two functions above to get device
15613         contexts, ether for a window or a printer.
15614
15615 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15616
15617         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15618         initialization here.
15619         (init_symbols_once_early): Call it.
15620         * emacs.c (main_1): Call it.
15621         * symsinit.h: Declare it.
15622
15623 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15624
15625         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15626         Lisp_Object.
15627         (pdump_backtrace): Ditto.
15628         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15629         (pdump_get_entry): Abort if trying to register a null pointer.
15630         (pdump_dump_data): Cleanup types when relocating.
15631         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15632         (pdump_dump_rtables): Remove bad casts.
15633         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15634         Lisp_Object instead of a EMACS_INT for the hashtable
15635         reorganization.
15636
15637 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15638
15639         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15640
15641         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15642
15643         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15644
15645         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15646
15647 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15648
15649         * faces.h (FACE_STRIKETHRU_P): Added.
15650
15651         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15652         of font variants.
15653
15654         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15655         (mswindows_set_dc_font): New function, aware of font variants,
15656         separated from mswindows_update_dc.
15657
15658         * objects-msw.h (struct mswindows_font_instance_data): Added
15659         definition.
15660
15661         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15662         cached fonts and the data structure.
15663         (mswindows_initialize_font_instance): Added creation of font data
15664         structure.
15665         (mswindows_print_font_instance): Print at least something.
15666         (mswindows_create_font_variant): Implemented.
15667         (mswindows_get_hfont): Implemented.
15668
15669 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15670
15671         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15672         prototyping problem with msvc.
15673
15674         * emacs.c (main_1): added syms_of_gui_mswindows() call
15675
15676         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15677         syms_of_gui_mswindows() function
15678
15679         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15680
15681 2000-01-18  Martin Buchholz <martin@xemacs.org>
15682
15683         * XEmacs 21.2.27 is released.
15684
15685 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15686
15687         * glyphs-eimage.c (struct tiff_error_struct):
15688         (tiff_error_func):
15689         (tiff_warning_func):
15690         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15691
15692         * unexmips.c:
15693         * unexhp9k3.c:
15694         * unexfreebsd.c:
15695         * unexec.c: Remove vestigial Lucid C code.
15696         * unexalpha.c:
15697         * unexaix.c:
15698         * termcap.c:
15699         * libsst.c: Ansify.
15700         Remove declarations of errno and strerror().
15701
15702         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15703
15704         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15705
15706 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15707
15708         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15709         Optimize.
15710
15711 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15712
15713         * md5.c:
15714         * file-coding.c:
15715         * file-coding.h:
15716         Change enum eol_type to eol_type_t.
15717
15718 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15719
15720         * gui.c (get_gui_callback): Check cons before accessing car.
15721
15722 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15723
15724         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15725         (XSETSPECIFIER_TYPE): Ditto.
15726
15727 2000-01-17  Didier Verna  <didier@xemacs.org>
15728
15729         * redisplay.c (generate_fstring_runes): compute string size in
15730         characters, not bytes.
15731
15732 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15733
15734         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15735
15736 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15737
15738         * print.c (print_error_message): Call print_prepare().
15739
15740 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15741
15742         * .dbxrc: Renamed from dbxrc.
15743
15744         * events.c (event_to_character):
15745         Use `assert (foo)' instead of `if (!foo) abort()'
15746
15747         * .gdbinit (xtype): Add documentation.
15748         * .gdbinit (check-temacs): New function.
15749         * .gdbinit (check-xemacs): New function.
15750         * dbxrc (check-xemacs): New function.
15751         * dbxrc (check-xemacs): New function.
15752
15753 2000-01-14  Andy Piper  <andy@xemacs.org>
15754
15755         * glyphs-widget.c (widget_query_geometry): Make sure that we
15756         calculate default dimensions correctly.
15757
15758 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15759
15760         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15761
15762         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15763         pdump_wire'd variable.
15764
15765         * emacs.c: (main_1): Conditionalized calls to
15766         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15767
15768 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15769
15770         * window.c (Fset_window_configuration):
15771         * sysdep.c (_start):
15772         * input-method-motif.c (res):
15773         * event-Xt.c (Xt_process_to_emacs_event):
15774         Simple compiler warning fixes.
15775
15776         * bytecode.c (funcall_compiled_function): Use the original
15777         function symbol on the backtrace list in preference to the
15778         compiled_function object in error messages.
15779
15780 2000-01-13  Andy Piper  <andy@xemacs.org>
15781
15782         * glyphs-x.c (update_widget_face): Make sure we update the widget
15783         background as well as foreground.
15784
15785 2000-01-13  Andy Piper  <andy@xemacs.org>
15786
15787         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15788         fields to subwindow.
15789         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15790         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15791         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15792         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15793
15794         * glyphs-widget.c (check_valid_tab_orientation): new function.
15795         (initialize_widget_image_instance): zero orientation and
15796         justification.
15797         (widget_instantiate): pick up orientation.
15798         (tab_control_query_geometry): return appropriate values for
15799         vertical tabs.
15800
15801         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15802         appropriate creation flags for left, right and bottom tabs.
15803
15804         * s/cygwin32.h: add tab definitions.
15805
15806 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15807
15808         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15809         frame upon hiding a subwindow.
15810         (mswindows_button_instantiate): Changed the push button style to
15811         BS_PUSHBUTTON.
15812         (mswindows_button_instantiate): Removed button BS_NOTIFY
15813         style.
15814         (mswindows_button_instantiate): Removed redundant check for
15815         a disabled gui item.
15816         (mswindows_button_instantiate): Made use of WS_TABSTOP
15817         consistent: "operable" controls (edit, button, tree, scroll) have
15818         this style, "display-only" ones (static, progress gauge) do
15819         not. This style is currently ignored by XEmacs though. Also,
15820         removed the WS_EX_CONTROLPARENT style - it is not for children,
15821         it is for their parents!
15822         (mswindows_edit_field_instantiate): Ditto.
15823         (mswindows_progress_gauge_instantiate): Ditto.
15824         (mswindows_tree_view_instantiate): Ditto.
15825         (mswindows_tab_control_instantiate): Ditto.
15826         (mswindows_scrollbar_instantiate): Ditto.
15827         (mswindows_combo_box_instantiate): Ditto.
15828         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15829         style to the "clip" window.
15830         (mswindows_button_instantiate): Removed compilation warning by
15831         equally typing terms of the ?: operator.
15832
15833 2000-01-12  Didier Verna  <didier@xemacs.org>
15834
15835         * redisplay.c (generate_fstring_runes): new parameter holding the
15836         last modeline-format extent.
15837         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15838         extent, fill the glyph block with it.
15839         (generate_fstring_runes): handle these parameters.
15840         (generate_formatted_string_db): ditto.
15841
15842         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15843         glyphs'extents in the modeline.
15844
15845 1999-01-11  Mike Woolley  <mike@bulsara.com>
15846
15847         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15848         256Mb, as a workaround for the non-starting problem many people
15849         have experienced.
15850
15851 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15852
15853         * console-tty.c (Fset_console_tty_output_coding_system):
15854         Force redrawing tty frame.
15855
15856 2000-01-10  Didier Verna  <didier@xemacs.org>
15857
15858         * redisplay.c (generate_fstring_runes): fix size computation bug.
15859
15860 2000-01-09  William M. Perry <wmperry@aventail.com>
15861
15862         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15863
15864 2000-01-09  Andy Piper  <andy@xemacs.org>
15865
15866         * glyphs-msw.c: index -> i to avoid shadows.
15867         (xbm_create_bitmap_from_data): make static.
15868         (check_valid_string_or_int): deleted.
15869         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15870
15871         * glyphs-x.c (x_update_subwindow): remove unused args.
15872
15873         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15874         back pointer - this is done in allocate_image_instance.
15875         (query_string_font): return Qnil to make the compiler happy.
15876         (unmap_subwindow): set to ~0 to make the compiler happy.
15877         (glyph_query_geometry): comment out until used.
15878         (glyph_layout): ditto.
15879
15880 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15881
15882         * insdel.c (signal_after_change): Remove extraneous unbind_to().