update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Fsave_charset_mapping_table): Use
4         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
5         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
6         `chise_ccs_sync' instead of `chise_ccst_close'.
7         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
8
9         * chartab.c (open_chise_data_source_maybe): Modify for
10         `chise_open_data_source'.
11         (char_table_open_db_maybe): Modify for
12         `chise_ds_open_feature_table'.
13
14 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
15
16         * mule-charset.c (load_char_decoding_entry_maybe): Use
17         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
18         `chise_ccst_close'.
19
20 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
21
22         * mule-charset.c (Fsave_charset_mapping_table): Use
23         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
24         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
25         `chise_dt_put_char' and `chise_dt_close'.
26         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
27         `chise_ccs_decode' and `chise_ccst_close' instead of
28         `chise_ds_open_decoding_table', `chise_dt_get_char' and
29         `chise_dt_close'.
30
31         * chartab.c (char_table_get_db): Use
32         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
33         (load_char_attribute_table_map_func): Modify for
34         `chise_char_feature_value_iterate'.
35         (Fload_char_attribute_table): Use
36         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
37
38 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
39
40         * chartab.c (put_char_table): Modify for inherited coded-charsets
41         in XEmacs CHISE.
42
43 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
44
45         * chartab.c (Fput_char_table_map_function): Fixed.
46         (word_boundary_p): Don't check charset in XEmacs CHISE.
47
48 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
49
50         * mule-charset.c (Fsave_charset_mapping_table): Use
51         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
52         instead of `chise_open_decoding_table'; refer
53         `default_chise_data_source'; use `chise_dt_close' instead of
54         `chise_close_decoding_table'.
55         (load_char_decoding_entry_maybe): Likewise.
56
57         * chartab.c (default_chise_data_source): New variable when `CHISE'
58         is defined.
59         (Fcopy_char_table): `ct->ds' is deleted.
60         (open_chise_data_source_maybe): New function.
61         (Fclose_char_data_source): New function.
62         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
63         use `chise_ds_open_feature_table' instead of
64         `chise_open_feature_table'.
65         (char_table_close_db_maybe): Use `chise_ft_close' instead of
66         `chise_close_feature_table'; `cit->ds' is deleted.
67         (syms_of_chartab): Add new builtin function
68         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
69
70         * chartab.h (default_chise_data_source): New extern variable.
71         (open_chise_data_source_maybe): New prototype.
72         (struct Lisp_Char_Table): Delete `ds'.
73
74 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
75
76         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
77         `CHISE' is defined.
78
79 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
80
81         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
82         not defined; add code for non-libchise setting.
83         (char_table_close_db_maybe): Likewise.
84         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
85         defined.
86         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
87         even if `CHISE' is not defined.
88         (Freset_char_attribute_table): Likewise.
89         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
90         `char_table_close_db_maybe' even if `CHISE' is not defined; use
91         `char_table_get_db'.
92         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
93         `char_table_close_db_maybe' even if `CHISE' is not defined.
94
95 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
96
97         * chartab.c (char_table_open_db_maybe): New function.
98         (char_table_close_db_maybe): New function.
99         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
100         (Freset_char_attribute_table): Likewise.
101         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
102         `char_table_close_db_maybe'.
103         (Fload_char_attribute_table): Likewise.
104
105 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
106
107         * chartab.c: Don't include <chise.h> because it is included in
108         chartab.h.
109         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
110         defined.
111         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
112         `CHISE' is defined.
113         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
114         `CHISE' is defined.
115         (Fclose_char_attribute_table): Close `ct->feature_table' and
116         `ct->ds' when `CHISE' is defined.
117         (Freset_char_attribute_table): Likewise.
118         (load_char_attribute_maybe): Use `cit->ds' and
119         `cit->feature_table' when `CHISE' is defined.
120         (Fload_char_attribute_table): Likewise.
121
122         * chartab.h: Include <chise.h> when `CHISE' is defined.
123         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
124         when `CHISE' is defined.
125
126 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
127
128         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
129         is defined.
130         (char_table_description): Likewise.
131         (Fmake_char_table): Likewise.
132         (Fcopy_char_table): Likewise.
133         (Fmount_char_attribute_table): Likewise.
134         (Fclose_char_attribute_table): Likewise.
135         (Freset_char_attribute_table): Likewise.
136         (load_char_attribute_maybe): Likewise.
137         (Fload_char_attribute_table): Likewise.
138
139         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
140         defined.
141
142 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
143
144         * chartab.c (load_char_attribute_table_map_func): New function
145         when CHISE is defined.
146         (Qload_char_attribute_table_map_function): Don't define when CHISE
147         is defined.
148         (Fload_char_attribute_table_map_function): Likewise.
149         (Fload_char_attribute_table): Use libchise when `CHISE' is
150         defined.
151         (syms_of_chartab): Don't define
152         `load-char-attribute-table-map-function' when CHISE is defined.
153
154 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
155
156         * chartab.c: Include <chise.h> when `CHISE' is defined.
157         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
158
159 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
160
161         * mule-charset.c (charset_code_point): Fix problem when searching
162         in mother CCS fails with `defined_only' mode.
163
164 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
165
166         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
167         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
168         (put_char_composition): Likewise.
169         (Fput_char_attribute): Likewise.
170         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
171
172 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
173
174         * chartab.c (Q_ucs): Deleted.
175         (Fput_char_attribute): Don't refer `->ucs'.
176         (Fdefine_char): Likewise.
177         (Ffind_char): Likewise.
178         (syms_of_chartab): Delete `->ucs'.
179
180 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
181
182         * mule-charset.c (Qmap_cns11643_2): Renamed from
183         `Qchinese_cns11643_2'.
184         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
185         `chinese-cns11643-2'.
186         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
187         `=cns11643-2'.
188
189 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
190
191         * mule-charset.c (Qmap_cns11643_1): Renamed from
192         `Qchinese_cns11643_1'.
193         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
194         `chinese-cns11643-1'.
195         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
196         `=cns11643-1'.
197
198 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
199
200         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
201         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
202         `chinese-gb12345'.
203         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
204         `=gb12345'.
205
206 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
207
208         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
209         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
210         `chinese-gb2312'.
211         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
212         `=gb2312'.
213
214 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
215
216         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
217         (syms_of_mule_charset): Add new symbol `=big5' instead of
218         `chinese-big5'.
219         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
220
221 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
222
223         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
224         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
225         `korean-ksc5601'.
226         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
227         `=ks-x1001'.
228
229 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
230
231         * mule-charset.c (Qmap_jis_x0212): Renamed from
232         `Qjapanese_jisx0212'.
233         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
234         `japanese-jisx0212'.
235         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
236         `=jis-x0212'.
237
238 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
239
240         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
241         `Qjapanese_jisx0208'.
242         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
243         of `japanese-jisx0208'.
244         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
245         `=jis-x0208-1983'.
246
247 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
248
249         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
250         `Qjapanese_jisx0208_1978'.
251         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
252         of `japanese-jisx0208-1978'.
253         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
254         `=jis-x0208-1978'.
255
256 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
257
258         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
259         only for XEmacs CHISE.
260
261 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
262
263         * char-ucs.h: Compact non-ISO-IR charset-ids.
264         (LEADING_BYTE_UCS): Changed to -177.
265         (LEADING_BYTE_CONTROL_1): Changed to -77.
266         (LEADING_BYTE_UCS_BMP): Changed to -176.
267         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
268
269 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
270
271         * mule-charset.c (Qiso_ir): New variable.
272         (Fmake_charset): Recognise new property `iso-ir'.
273         (syms_of_mule_charset): Add new symbol `iso-ir'.
274
275 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
276
277         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
278         n to -n; charset-id of non ISO-IR sets are changed to positive
279         numbers.
280
281 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
282
283         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
284         for &MCS-XXXXXXXX; values.
285
286 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
287
288         * mule.c (Vxemacs_chise_version): Renamed from
289         `Vutf_2000_version'.
290         (vars_of_mule): Add new variable `xemacs-chise-version'; define
291         `utf-2000-version' as an alias for `xemacs-chise-version'.
292
293 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
294
295         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
296         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
297         defined.
298
299         * config.h.in (CHISE): New macro.
300
301 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
302
303         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
304         of `ucs'.
305         (Qmap_ucs): New variable.
306         (syms_of_mule_charset): Add new symbol `=ucs'.
307         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
308
309         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
310         (simplify_char_spec): Likewise.
311
312         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
313
314         * char-ucs.h (Qmap_ucs): New extern variable.
315
316 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
317
318         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
319         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
320         don't define it when UTF2000 is not defined.
321         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
322         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
323         when UTF2000 is not defined.
324         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
325         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
326
327 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
330
331         * mule-charset.c (Vcharset_ucs_gb): Deleted.
332         (Qucs_gb): Deleted.
333         (syms_of_mule_charset): Delete `ucs-gb'.
334         (complex_vars_of_mule_charset): Likewise.
335
336 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
337
338         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
339
340         * mule-charset.c (Vcharset_ucs_cns): Deleted.
341         (Qucs_cns): Deleted.
342         (syms_of_mule_charset): Delete `ucs-cns'.
343         (complex_vars_of_mule_charset): Likewise.
344
345 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
346
347         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
348
349         * mule-charset.c (Vcharset_ucs_jis): Deleted.
350         (Qucs_jis): Deleted.
351         (syms_of_mule_charset): Delete `ucs-jis'.
352         (complex_vars_of_mule_charset): Likewise.
353
354 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
355
356         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
357
358         * mule-charset.c (Vcharset_ucs_ks): Deleted.
359         (Qucs_ks): Deleted.
360         (syms_of_mule_charset): Delete `ucs-ks'.
361         (complex_vars_of_mule_charset): Likewise.
362
363 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
364
365         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
366         (Qideograph_daikanwa_2): Deleted.
367         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
368         (complex_vars_of_mule_charset): Likewise.
369
370         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
371         (LEADING_BYTE_DAIKANWA_1): Deleted.
372         (LEADING_BYTE_DAIKANWA_2): Deleted.
373         (MIN_CHAR_DAIKANWA): Deleted.
374         (MAX_CHAR_DAIKANWA): Deleted.
375
376 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
377
378         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
379         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
380         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
381
382         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
383         (Vcharset_ideograph_daikanwa): Deleted.
384         (Qideograph_hanziku_{1..12}): Deleted.
385         (Qideograph_daikanwa): Deleted.
386         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
387         Vcharset_ideograph_daikanwa.
388         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
389         `ideograph-hanziku-{1..12}'.
390         (complex_vars_of_mule_charset): Likewise.
391
392 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
393
394         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
395
396         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
397         (Qideograph_gt_pj_{1..11}): Deleted.
398         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
399         (complex_vars_of_mule_charset): Likewise.
400
401 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * mule-charset.c (Vcharset_ucs_big5): Deleted.
404         (Vcharset_ideograph_gt): Deleted.
405         (Qucs_big5): Deleted.
406         (Qideograph_gt): Deleted.
407         (syms_of_mule_charset): Delete symbol `ucs-big5' and
408         `ideograph-gt'.
409         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
410         and `ideograph-gt'.
411
412         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
413         (LEADING_BYTE_GT): Deleted.
414         (MIN_CHAR_GT): Deleted.
415         (MAX_CHAR_GT): Deleted.
416
417 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
418
419         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
420
421 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
422
423         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
424         (save_uint16_byte_table): Likewise.
425         (save_byte_table): Likewise; convert values by it.
426         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
427         for `ideographic-structure'.
428         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
429         as the filter for `ideographic-structure'.
430
431 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
432
433         * chartab.c (put_char_composition): New function.
434         (Fput_char_attribute): Use `put_char_composition'; use
435         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
436
437         * fns.c (simplify_char_spec): New function.
438         (char_ref_simplify_spec): New function.
439         (Fchar_refs_simplify_char_specs): New function.
440         (syms_of_fns): Add new builtin function
441         `char-refs-simplify-char-specs'.
442
443 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
444
445         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
446         (Qideograph_cbeta): Deleted.
447         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
448         (complex_vars_of_mule_charset): Likewise.
449
450         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
451         (MIN_CHAR_CBETA): Comment out.
452         (MAX_CHAR_CBETA): Likewise.
453
454 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
455
456         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
457         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
458         CHISE client feature.
459
460 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
461
462         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
463
464 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
465
466         * mule-charset.c (charset_lookup_description_1): Use
467         `NUM_LEADING_BYTES' in UTF-2000.
468
469 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
470
471         * char-ucs.h (GC_CHARSETP): Deleted.
472
473 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
474
475         * char-ucs.h (MAX_CHAR_GT): Updated.
476
477 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
478
479         * text-coding.c: Sync with XEmacs 21.4.10.
480
481 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
482
483         * mule-charset.c (Vcharset_china3_jef): Deleted.
484         (Qchina3_jef): Deleted.
485         (syms_of_mule_charset): Don't define `china3-jef'.
486         (complex_vars_of_mule_charset): Likewise.
487
488         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
489         (MIN_CHAR_CHINA3_JEF): Comment out.
490         (MAX_CHAR_CHINA3_JEF): Comment out.
491
492 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
493
494         * mule-charset.c (Vcharset_ucs_gb): New variable.
495         (Qucs_gb): New variable.
496         (syms_of_mule_charset): Add new symbol `ucs-gb'.
497         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
498
499         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
500
501 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * mule-charset.c (charset_code_point): if a coded-charset has a
504         final-byte, don't inherit the builtin range of the mother CCS.
505
506 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
507
508         * mule-charset.c (charset_code_point): Fix problem about
509         inheritance.
510
511 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
512
513         * mule-charset.c (decode_builtin_char): Reorganized.
514
515 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * text-coding.c (char_encode_as_entity_reference): Modify for
518         `charset_code_point'.
519         (char_encode_shift_jis): Likewise.
520         (char_encode_big5): Likewise.
521         (char_encode_utf8): Likewise.
522         (char_encode_iso2022): Likewise.
523
524         * mule-charset.c (charset_code_point): Add new argument
525         `defined_only'.
526         (Fencode_char): Add new optional argument `defined_only'.
527
528         * chartab.c (put_char_table): Modify for `charset_code_point'.
529
530         * char-ucs.h (charset_code_point): Add new argument
531         `defined_only'.
532         (encode_char_1): Modify for `charset_code_point'.
533
534 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
535
536         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
537         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
538
539 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
540
541         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
542         (Qjis_x0208): Likewise.
543         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
544         XCHARSET_FINAL(charset).
545         (charset_code_point): Modify condition for final-byte based
546         builtin-chars.
547         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
548         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
549         in UTF-2000; specify `=jis-x0208' as the mother of
550         `japanese-jisx0208-1978', `japanese-jisx0208' and
551         `japanese-jisx0208-1990' in UTF-2000.
552
553 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
554
555         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
556
557 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
558
559         * text-coding.c (decode_coding_utf16): Support UTF-16.
560         (char_encode_utf16): Fixed.
561
562 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
563
564         * text-coding.c (Qutf16): New variable in MULE.
565         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
566         (Fcoding_system_type): Add `utf-16' in MULE.
567         (struct detection_state): Add a structure for utf16 in MULE.
568         (detect_coding_type): Setup st->utf16.mask in MULE.
569         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
570         MULE.
571         (reset_encoding_stream): Use `char_encode_utf16' and
572         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
573         (detect_coding_utf16): New function [incomplete].
574         (decode_coding_utf16): New function [support only UCS-2].
575         (char_encode_utf16): New function.
576         (char_finish_utf16): New function.
577         (syms_of_file_coding): Add new symbol `utf-16'; setup
578         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
579
580         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
581         UTF-2000.
582         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
583         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
584
585 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
586
587         * chartab.c (put_char_table): When a charset is specified as a
588         range in UTF-2000, don't support builtin characters.
589
590 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
591
592         * mule-charset.c (decode_defined_char): Don't refer external
593         database if Qunbound or Qnil are found.
594         (Fsave_charset_mapping_table): Don't define it if
595         HAVE_CHISE_CLIENT is not defined.
596         (Freset_charset_mapping_table): New function.
597         (load_char_decoding_entry_maybe): Store Qnil if a character is not
598         found in external database.
599         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
600         if HAVE_CHISE_CLIENT is not defined; add new builtin function
601         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
602
603 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
604
605         * text-coding.c (decode_coding_utf8): Check CCS is specified or
606         not.
607
608 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
609
610         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
611         Q_lowercase, Q_uppercase in UTF-2000.
612
613         * chartab.c (get_char_table): Add special code for the standard
614         case table to use character attribute `->downcase' and
615         `->uppercase' for case operations in UTF-2000.
616
617         * casetab.c (Qflippedcase): New variable in UTF-2000.
618         (Q_lowercase): Likewise.
619         (Q_uppercase): Likewise.
620         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
621         and `->uppercase' in UTF-2000.
622         (complex_vars_of_casetab): Assign attribute name `downcase' to
623         downcase and CANON table of Vstandard_case_table in UTF-2000;
624         assign attribute name `flippedcase' to upcase and EQV table of
625         Vstandard_case_table in UTF-2000.
626
627 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
628
629         * text-coding.c (decode_add_er_char): Support isolated-chars.
630         (char_encode_as_entity_reference): Likewise.
631
632 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
633
634         * emacs.c (Vutf_2000_lisp_directory): New variable.
635         (Vconfigure_utf_2000_lisp_directory): Likewise.
636         (complex_vars_of_emacs): Add new variable
637         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
638
639 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
640
641         * char-ucs.h (DECODE_CHAR): Delete special code for
642         `chinese-big5-1' and `chinese-big5-2'.
643
644         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
645         (Qbig5_2): Likewise.
646         (decode_defined_char): Support CONVERSION_BIG5_1 and
647         CONVERSION_BIG5_2.
648         (decode_builtin_char): Likewise.
649         (charset_code_point): Likewise.
650         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
651         'conversion in UTF-2000.
652         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
653         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
654         `chinese-big5-2' as children of `chinese-big5'.
655
656         * char-ucs.h (CONVERSION_BIG5_1): New macro.
657         (CONVERSION_BIG5_2): New macro.
658
659 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
660
661         * text-coding.c (char_encode_big5): Support entity-reference.
662
663 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
664
665         * text-coding.c (char_encode_as_entity_reference): New function.
666         (char_encode_utf8): Use `char_encode_as_entity_reference'.
667
668 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
669
670         * text-coding.c (decode_coding_big5): Support entity-reference
671         decoding feature.
672
673 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
674
675         * text-coding.c (allocate_coding_system): Initialize initial
676         charsets for CODESYS_UTF8.
677         (Fmake_coding_system): Accept charset-g0, charset-g1 and
678         charset-g2 for CODESYS_UTF8.
679         (decode_coding_utf8): Use charset-g0.
680         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
681         to force variants to map to UCS.
682
683 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
684
685         * text-coding.c (Qutf_8_mcs): New variable.
686         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
687         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
688         instead of `utf-8' in UTF-2000.
689
690 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
691
692         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
693         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
694         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
695         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
696         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
697         CONVERSION_96x96x96x96 are introduced.
698         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
699         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
700         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
701
702         * char-ucs.h (CONVERSION_94): New macro.
703         (CONVERSION_96): New macro.
704         (CONVERSION_94x94): New macro.
705         (CONVERSION_96x96): New macro.
706         (CONVERSION_94x94x94): New macro.
707         (CONVERSION_96x96x96): New macro.
708         (CONVERSION_94x94x94x60): New macro.
709         (CONVERSION_94x94x94x94): New macro.
710         (CONVERSION_96x96x96x96): New macro.
711
712 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
713
714         * chartab.c (Vcharacter_variant_table): Deleted.
715         (Fchar_variants): Use character-attribute `->ucs-variants' instead
716         of `Vcharacter_variant_table'.
717         (Fput_char_attribute): Likewise.
718         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
719         (complex_vars_of_chartab): Likewise.
720
721 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
722
723         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
724
725         * fns.c (Qideographic_structure): New variable.
726         (Qkeyword_char): New variable.
727         (ids_format_unit): New function.
728         (Fideographic_structure_to_ids): New function.
729         (syms_of_fns): Add new symbols `ideographic-structure' and
730         `:char'; add new builtin function `ideographic-structure-to-ids'.
731
732         * data.c (Fchar_ref_p): New function.
733         (syms_of_data): Add new builtin function `char-ref-p'.
734
735         * chartab.h: Add an EXFUN for `Ffind_char'.
736
737 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
738
739         * text-coding.c (Vcharacter_composition_table): Deleted.
740         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
741         in every UTF-2000.
742
743         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
744         UTF-2000.
745         (Vcharacter_composition_table): Deleted.
746         (Fget_composite_char): Use the implementation for external-DB
747         support in every UTF-2000.
748         (Fput_char_attribute): Likewise.
749         (char_attribute_system_db_file): Don't define if external-DB
750         feature is not available.
751         (Fsave_char_attribute_table): Likewise.
752         (Fmount_char_attribute_table): Likewise.
753         (Fclose_char_attribute_table): Likewise.
754         (Freset_char_attribute_table): Likewise.
755         (Fload_char_attribute_table): Likewise.
756         (syms_of_chartab): Don't define `save-char-attribute-table',
757         `mount-char-attribute-table', `reset-char-attribute-table',
758         `close-char-attribute-table' and `load-char-attribute-table' if
759         external-DB feature is not available.
760         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
761
762 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
763
764         * text-coding.c (Qcomposition): Add extern if external-DB feature
765         is supported.
766         (Vcharacter_composition_table): Don't add extern if external-DB
767         feature is supported.
768         (COMPOSE_ADD_CHAR): Modify for new data-representation of
769         character composition rule if external-DB feature is supported.
770
771         * chartab.c (Vcharacter_composition_table): Don't define if
772         external-DB feature is supported.
773         (Qcomposition): New variable.
774         (Fget_composite_char): New implementation for external-DB support.
775         (Fput_char_attribute): Use `composition' property of each
776         character instead of `Vcharacter_composition_table' to store
777         character-composition rules if external-DB feature is supported.
778         (syms_of_chartab): Add new symbol `composition'.
779         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
780         external-DB feature is supported.
781
782 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
783
784         * chartab.c (Vchar_db_stingy_mode): New variable.
785         (load_char_attribute_maybe): Close database if
786         Vchar_db_stingy_mode is not NIL.
787         (Fload_char_attribute_table_map_function): Use
788         `get_char_id_table_0' instead of `get_char_id_table'.
789         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
790
791         * chartab.h (get_char_id_table_0): New inline function.
792         (get_char_id_table): Use `get_char_id_table_0'.
793
794 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
795
796         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
797         and `COMPOSE_ADD_CHAR'.
798         (decode_coding_iso2022): Use `decode_flush_er_chars'.
799
800 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
801
802         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
803         instead of `DECODE_ADD_UCS_CHAR'.
804         (COMPOSE_ADD_CHAR): Likewise.
805
806 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
807
808         * text-coding.c (decode_flush_er_chars): New inline function.
809         (decode_add_er_char): New function.
810         (decode_coding_utf8): Use `decode_flush_er_chars' and
811         `decode_add_er_char'.
812
813 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
814
815         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
816         done before `decode_output_utf8_partial_char'.
817
818         * mule-charset.c (complex_vars_of_mule_charset): Specify
819         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
820         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
821
822 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
823
824         * mule-charset.c (decode_defined_char): New function; search
825         mother.
826         (decode_builtin_char): Don't search mother if
827         XCHARSET_MAX_CODE(charset) == 0.
828         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
829         == 0 even if code >= XCHARSET_MAX_CODE(charset).
830         (Fdecode_char): Use `decode_defined_char' instead of
831         `DECODE_DEFINED_CHAR'.
832         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
833         mother of `Vcharset_ucs_jis'.
834
835         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
836         instead of `DECODE_DEFINED_CHAR'.
837
838         * char-ucs.h (decode_defined_char): Renamed from
839         `DECODE_DEFINED_CHAR'; changed to normal function.
840         (DECODE_CHAR): Use `decode_defined_char' instead of
841         `DECODE_DEFINED_CHAR'.
842
843         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
844
845 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
846
847         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
848
849         * text-coding.c (Vcoded_charset_entity_reference_alist): New
850         variable.
851         (Quse_entity_reference): New variable.
852         (Qd): New variable.
853         (Qx): New variable.
854         (QX): New variable.
855         (coding_system_description): Add description for
856         `ccs_priority_list'.
857         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
858         (allocate_coding_system): Initialize `ccs_priority_list' in
859         UTF-2000.
860         (Fmake_coding_system): Add description about
861         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
862         (codesys).
863         (Fcoding_system_property): Accept `disable-composition' and
864         `use-entity-reference' in UTF-2000.
865         (struct decoding_stream): Add new member `er_counter' and `er_buf'
866         in UTF-2000.
867         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
868         (decode_coding_utf8): Decode entity-reference if
869         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
870         (char_encode_utf8): Encode non-Unicode characters as
871         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
872         (str->codesys).
873         (syms_of_file_coding): Add new symbols `use-entity-reference',
874         `d', `x', `X'.
875         (vars_of_file_coding): Add new variable
876         `coded-charset-entity-reference-alist'.
877         (complex_vars_of_file_coding): Declare `disable-composition' and
878         `use-entity-reference' to be coding-system-properties in UTF-2000.
879
880         * file-coding.h (struct Lisp_Coding_System): Add new member
881         `use_entity_reference' and `ccs_priority_list'.
882         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
883         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
884         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
885
886 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
887
888         * chartab.c (save_uint8_byte_table): Don't clear the table.
889         (save_uint16_byte_table): Likewise.
890         (save_byte_table): Likewise.
891         (Fmount_char_attribute_table): New function.
892         (syms_of_chartab): Add new builtin function
893         `mount-char-attribute-table'.
894
895 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
896
897         * mule-charset.c (Fsave_charset_mapping_table): Open database as
898         "w+" mode.
899         (load_char_decoding_entry_maybe): Open database as read-only mode.
900
901         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
902         open database as "w+" mode.
903         (load_char_attribute_maybe): Open database as read-only mode.
904         (Fload_char_attribute_table): Likewise.
905
906 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
907
908         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
909         (char_table_description): Delete member `db_file'.
910         (Fmake_char_table): Don't refer `ct->db_file'.
911         (Fcopy_char_table): Likewise.
912         (Fsave_char_attribute_table): Likewise.
913         (Fclose_char_attribute_table): Likewise.
914         (Freset_char_attribute_table): Likewise.
915         (load_char_attribute_maybe): Likewise.
916         (Fload_char_attribute_table): Likewise.
917
918         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
919
920 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
921
922         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
923         (Fsave_char_attribute_table): Don't check `ct->db_file' if
924         `ct->db' is living.
925         (load_char_attribute_maybe): Likewise.
926         (Fload_char_attribute_table): Likewise.
927
928 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
929
930         * chartab.c (Fclose_char_attribute_table): Set Qnil on
931         `ct->db_file' unconditionally.
932
933 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
934
935         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
936         UTF-2000.
937         (char_table_description): Add description for `db_file' and `db'
938         in UTF-2000.
939         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
940         UTF-2000.
941         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
942         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
943         (Fclose_char_attribute_table): New function.
944         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
945         (load_char_attribute_maybe): Change interface; use `cit->db_file'
946         and `cit->db'.
947         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
948         (syms_of_chartab): Add new builtin function
949         `Fclose_char_attribute_table'.
950
951 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
952
953         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
954         `db' in UTF-2000.
955         (load_char_attribute_maybe): Change interface.
956         (get_char_id_table): Modify for `load_char_attribute_maybe'.
957
958 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
959
960         * database.h: Add an EXFUN for `Fdatabase_live_p'.
961
962 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
963
964         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
965         instead of `DECODE_CHAR' for mother; don't use special code for
966         chinese-big5 to use code space of chinese-big5-1 and
967         chinese-big5-2.
968         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
969         `MAX_CHAR_BIG5_CDP' for chinese-big5.
970
971         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
972         (MAX_CHAR_BIG5_CDP): Revival.
973
974 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
975
976         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
977         the XLFD registry-encoding name of `chinese-big5'.
978
979 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
980
981         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
982         (Qchinese_big5_cdp): Deleted.
983         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
984         (complex_vars_of_mule_charset): Delete coded-charset
985         `chinese-big5-cdp'.
986
987         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
988         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
989         `CHARSET_ID_OFFSET - n' for private CCS.
990         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
991         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
992         of `MIN_LEADING_BYTE'.
993         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
994         `(CHARSET_ID_OFFSET - 97)'.
995         (MIN_CHAR_BIG5_CDP): Deleted.
996         (MAX_CHAR_BIG5_CDP): Deleted.
997
998 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
999
1000         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1001
1002 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1003
1004         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1005         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1006         chartab.c].
1007
1008         * chartab.c (Vutf_2000_version): Moved to mule.c.
1009         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1010
1011 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1012
1013         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1014         when HAVE_CHISE_CLIENT is not defined.
1015
1016         * mule.c (vars_of_mule): Provide feature `chise' when
1017         HAVE_CHISE_CLIENT is defined.
1018
1019 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1020
1021         * config.h.in (UTF2000): Add comment.
1022         (HAVE_CHISE_CLIENT): New macro.
1023
1024 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1025
1026         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1027         CONSP.
1028         (Fput_char_attribute): Likewise.
1029         (char_attribute_system_db_file): Encode file-name of attribute.
1030         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1031         the initial value.
1032
1033 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1034
1035         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1036         (Fsave_charset_mapping_table): Use
1037         `char_attribute_system_db_file'.
1038         (load_char_decoding_entry_maybe): Likewise.
1039
1040         * chartab.h (Qsystem_char_id): New external variable.
1041         (char_attribute_system_db_file): New prototype.
1042
1043         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1044         (char_attribute_system_db_file): New function.
1045         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1046         (Freset_char_attribute_table): Likewise.
1047         (load_char_attribute_maybe): Likewise.
1048         (Fload_char_attribute_table): Likewise.
1049         (syms_of_chartab): Add new symbol `system-char-id'.
1050
1051 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1052
1053         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1054         `XCHARSET_GRAPHIC(ccs)'.
1055
1056 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1057
1058         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1059
1060 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1061
1062         * chartab.c (Q_ucs_variants): New variable.
1063         (syms_of_chartab): Add new symbol `->ucs-variants'.
1064         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1065         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1066         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1067
1068         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1069
1070         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1071         `HAVE_DATABASE' is defined.
1072         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1073         `HAVE_DATABASE' is defined.
1074
1075 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1076
1077         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1078         attribute-table.
1079         (Freset_char_attribute_table): New function.
1080         (syms_of_chartab): Add new builtin function
1081         `reset-char-attribute-table'.
1082
1083 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1084
1085         * chartab.c (load_char_attribute_maybe): Don't make directories.
1086
1087 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1088
1089         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1090
1091         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1092         for decoding-table.
1093
1094 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1095
1096         * mule-charset.c (Fsave_charset_mapping_table): Use
1097         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1098
1099         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1100         instead of `XCHARSET_CHARS'.
1101
1102 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1103
1104         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1105         (XCHARSET_BYTE_SIZE): Likewise.
1106
1107         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1108         mule-charset.c].
1109         (XCHARSET_BYTE_SIZE): Likewise.
1110
1111 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1112
1113         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1114         data-directory to store database.
1115         (Fsave_char_attribute_table): Likewise.
1116         (load_char_attribute_maybe): Likewise.
1117         (Fload_char_attribute_table): Likewise.
1118
1119 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1120
1121         * mule-charset.c (Fsave_charset_mapping_table): New function.
1122         (syms_of_mule_charset): Add new builtin function
1123         `save-charset-mapping-table'.
1124
1125 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1126
1127         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1128         (get_ccs_octet_table): New inline function.
1129         (put_ccs_octet_table): Likewise.
1130         (decoding_table_put_char): Use `get_ccs_octet_table' and
1131         `put_ccs_octet_table'.
1132         (decoding_table_remove_char): Use `decoding_table_put_char'.
1133         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1134
1135         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1136         into encoding_table.
1137         (make_charset): Use Qunbound instead Qnil as initial value of
1138         decoding_table.
1139
1140 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1141
1142         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1143         element is Qunloaded.
1144         (map_over_uint16_byte_table): Likewise.
1145         (map_over_byte_table): Likewise.
1146         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1147         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1148         database support, load encoding-table of the specified
1149         coded-charset if it is not loaded yet.
1150         (save_uint8_byte_table): New function of UTF-2000 with external
1151         database support.
1152         (save_uint16_byte_table): Likewise.
1153         (save_byte_table): Likewise.
1154         (Fput_char_attribute): Don't store value into external database
1155         even if the external database feature is supported in UTF-2000;
1156         set `attribute' as name of char-table if the external database
1157         feature is supported.
1158         (Fsave_char_attribute_table): New function in UTF-2000.
1159         (syms_of_chartab): Add new builtin function
1160         `save-char-attribute-table' in UTF-2000.
1161
1162 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1163
1164         * chartab.c (char_attribute_table_to_put): New variable in
1165         UTF-2000.
1166         (Qput_char_table_map_function): Likewise.
1167         (value_to_put): Likewise.
1168         (Fput_char_table_map_function): New function in UTF-2000.
1169         (put_char_table): Use `Fmap_char_attribute' for
1170         CHARTAB_RANGE_CHARSET in UTF-2000.
1171         (Fput_char_attribute): Store symbol instead of string in
1172         `XCHAR_TABLE_NAME (table)'.
1173         (load_char_attribute_maybe): Likewise.
1174         (syms_of_chartab): Add new symbol/function
1175         `put-char-table-map-function'.
1176
1177 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1178
1179         * database.h: Add new EXFUN for `Fmap_database'.
1180
1181         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1182         (syms_of_database): Likewise.
1183
1184         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1185         UTF-2000.
1186         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1187         (XCHAR_TABLE_UNLOADED): Likewise.
1188
1189         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1190         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1191         HAVE_DATABASE is defined.
1192         (char_attribute_table_to_load): New variable of UTF-2000 with
1193         external database support.
1194         (Qload_char_attribute_table_map_function): Likewise.
1195         (Fload_char_attribute_table_map_function): New function of
1196         UTF-2000 with external database support.
1197         (Fload_char_attribute_table): New function of UTF-2000.
1198         (Fmap_char_attribute): Call Fload_char_attribute_table if
1199         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1200         (syms_of_chartab): Add new symbol and function
1201         `load-char-attribute-table-map-function' in UTF-2000 with external
1202         database support; add new function `load-char-attribute-table' in
1203         UTF-2000.
1204
1205 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1206
1207         * chartab.h (load_char_attribute_maybe): New prototype for
1208         UTF-2000 with DATABASE support.
1209         (get_char_id_table): Use `load_char_attribute_maybe' if
1210         HAVE_DATABASE is defined.
1211
1212         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1213         with DATABASE support.
1214
1215 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1216
1217         * chartab.c (Fput_char_attribute): Use S-expression as key of
1218         external database.
1219
1220         * chartab.h (get_char_id_table): Use S-expression as key of
1221         external database.
1222
1223 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1224
1225         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1226         if an element is not loaded, load the corresponding attributes
1227         from an external database.
1228         (map_over_uint16_byte_table): Likewise.
1229         (map_over_byte_table): Likewise.
1230         (map_char_table): Modify for `map_over_uint8_byte_table',
1231         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1232         element is not loaded, load the corresponding attributes from an
1233         external database.
1234         (Fput_char_attribute): Change initial values to Qunloaded.
1235
1236         * chartab.h (get_char_id_table): If a character attribute is not
1237         loaded and the attribute value is not found in an external
1238         database, store Qunbound as the attribute value.
1239
1240 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1241
1242         * chartab.c (BT_UINT8_unloaded): New macro.
1243         (UINT8_VALUE_P): Accept Qunloaded.
1244         (UINT8_ENCODE): Likewise.
1245         (UINT8_DECODE): Likewise.
1246         (BT_UINT16_unloaded): New macro.
1247         (UINT16_VALUE_P): Accept Qunloaded.
1248         (UINT16_ENCODE): Likewise.
1249         (UINT16_DECODE): Likewise.
1250         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1251         BT_UINT16_unloaded.
1252         (mark_char_table): Mark `ct->name' in UTF-2000.
1253         (char_table_description): Add `name' in UTF-2000.
1254         (Fmake_char_table): Initialize `ct->name'.
1255         (Fcopy_char_table): Copy `ct->name'.
1256         (Fput_char_attribute): Store value into an external database if
1257         HAVE_DATABASE is defined.
1258
1259         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1260         UTF-2000.
1261         (CHAR_TABLE_NAME): New macro in UTF-2000.
1262         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1263         (get_char_id_table): Try to read an external database if Qunloaded
1264         is stored in a table.
1265
1266         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1267         Qunloaded.
1268
1269 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1270
1271         * database.h: Add EXFUN definitions for Fopen_database,
1272         Fput_database, Fget_database and Fclose_database.
1273
1274         * data.c (Qunloaded): New variable in UTF-2000.
1275
1276         * lisp.h (Qunloaded): New variable in UTF-2000.
1277
1278 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1279
1280         * mule-charset.c (put_char_ccs_code_point): Modify for
1281         `decoding_table_remove_char' and `decoding_table_put_char'.
1282         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1283
1284         * char-ucs.h (decoding_table_remove_char): Change arguments to
1285         hide decoding_table vector.
1286         (decoding_table_put_char): Likewise.
1287
1288 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1289
1290         * mule-charset.c (decoding_table_remove_char): Moved to
1291         char-ucs.h.
1292         (decoding_table_put_char): Likewise.
1293
1294         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1295         from mule-charset.c].
1296         (decoding_table_remove_char): New inline function [moved from
1297         mule-charset.c].
1298         (decoding_table_put_char): Likewise.
1299
1300 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1301
1302         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1303         extension.
1304
1305 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1306
1307         * mule-charset.c (decode_builtin_char): Support mother charsets.
1308
1309 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1310
1311         * mule-charset.c (Q94x94x60): New variable.
1312         (charset_code_point): Support conversion `94x94x60'.
1313         (Fmake_charset): Likewise.
1314         (syms_of_mule_charset): Add new symbol `94x94x60'.
1315
1316         * char-ucs.h (CONVERSION_94x94x60): New macro.
1317
1318 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1319
1320         * mule-charset.c (charset_code_point): Unify code about
1321         `code-offset'.
1322
1323 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1324
1325         * mule-charset.c (charset_code_point): Merge code about builtin
1326         characters into code about mother charsets; don't use
1327         `range_charset_code_point'.
1328         (range_charset_code_point): Deleted.
1329
1330 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1331
1332         * mule-charset.c (Qcode_offset): New variable.
1333         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1334         `max-code'; accept new property `code-offset'.
1335         (syms_of_mule_charset): Add new symbol `code-offset'.
1336
1337 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1338
1339         * mule-charset.c (range_charset_code_point): Fixed.
1340
1341 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1342
1343         * mule-charset.c (decode_builtin_char): Change semantics of
1344         code-offset of coded-charset.
1345         (charset_code_point): Likewise.
1346         (range_charset_code_point): Likewise.
1347         (complex_vars_of_mule_charset): Modify for the change.
1348
1349 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1350
1351         * mule-charset.c (Fencode_char): Reverse arguments.
1352
1353         * mule-charset.c (charset_code_point): Fixed.
1354
1355 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356
1357         * mule-charset.c (Vcharset_mojikyo): Deleted.
1358         (Vcharset_mojikyo_2022_1): Deleted.
1359         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1360         (Qmin_code): New variable in UTF-2000.
1361         (Qmax_code): Likewise.
1362         (Qmother): Likewise.
1363         (Qconversion): Likewise.
1364         (Q94x60): Likewise.
1365         (Qmojikyo): Deleted.
1366         (Qmojikyo_2022_1): Deleted.
1367         (Qmojikyo_pj_{1..22}): Deleted.
1368         (mark_charset): Mark `cs->mother'.
1369         (charset_description): Add description for `mother'.
1370         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1371         new arguments `mother' and `conversion'; use
1372         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1373         (charset_code_point): Moved from char-ucs.h; support `mother'
1374         charset feature.
1375         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1376         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1377         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1378         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1379         allow 2 as the value of `graphic' in UTF-2000; add new properties
1380         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1381         require `final' in UTF-2000; modify for `make_charset'.
1382         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1383         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1384         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1385         (Fencode_char): New function.
1386         (syms_of_mule_charset): Add new builtin function `encode-char' in
1387         UTF-2000; add new symbols `min-code', `max-code', `mother',
1388         `conversion' and `94x60'; delete symbols `mojikyo',
1389         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1390         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1391         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1392         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1393
1394         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1395         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1396
1397         * char-ucs.h (Vcharset_mojikyo): Deleted.
1398         (Vcharset_mojikyo_2022_1): Deleted.
1399         (LEADING_BYTE_MOJIKYO): Deleted.
1400         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1401         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1402         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1403         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1404         add new member `mother'; add new member `conversion'.
1405         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1406         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1407         (CHARSET_MOTHER): New macro.
1408         (CHARSET_CONVERSION): New macro.
1409         (CONVERSION_IDENTICAL): New macro.
1410         (CONVERSION_94x60): New macro.
1411         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1412         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1413         (XCHARSET_MOTHER): New macro.
1414         (XCHARSET_CONVERSION): New macro.
1415         (MIN_CHAR_MOJIKYO): Deleted.
1416         (MAX_CHAR_MOJIKYO): Deleted.
1417         (DECODE_MOJIKYO_2022): Deleted.
1418         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1419         (charset_code_point): Changed to non-inline function.
1420         (encode_char_1): Use `charset_code_point'.
1421         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1422
1423 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1424
1425         * lread.c (read_compiled_function): Fix prototype.
1426         (read_vector): Likewise.
1427
1428 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1429
1430         * lrecord.h (struct lrecord_header): Delete `older'.
1431         (set_lheader_implementation): Delete code for `older'.
1432         (set_lheader_older_implementation): Deleted.
1433         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1434         (OLDER_RECORD_P): Deleted.
1435         (OLDER_RECORD_HEADER_P): Deleted.
1436         (alloc_older_lcrecord): Deleted.
1437         (alloc_older_lcrecord_type): Deleted.
1438
1439         * alloc.c (all_older_lcrecords): Deleted.
1440         (alloc_older_lcrecord): Deleted.
1441         (disksave_object_finalization_1): Delete code for older objects.
1442         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1443         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1444
1445 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1446
1447         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1448         instead of `make_older_vector'.
1449         (put_char_ccs_code_point): Likewise.
1450         (mark_charset): Mark `cs->decoding_table'.
1451         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1452
1453         * lisp.h (make_older_vector): Deleted.
1454         (make_vector_newer): Deleted.
1455
1456         * config.h.in (HAVE_GGC): Deleted.
1457
1458         * alloc.c (make_older_vector): Deleted.
1459         (make_vector_newer_1): Deleted.
1460         (make_vector_newer): Deleted.
1461
1462 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1463
1464         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1465         (Qideograph_daikanwa_2): New variable.
1466         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1467         (complex_vars_of_mule_charset): Add new coded-charset
1468         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1469         `LEADING_BYTE_DAIKANWA'.
1470
1471         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1472         (LEADING_BYTE_DAIKANWA_1): New macro.
1473         (LEADING_BYTE_DAIKANWA_2): New macro.
1474         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1475
1476 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477
1478         * mule-charset.c (complex_vars_of_mule_charset): Change
1479         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1480         the second revised version.
1481
1482 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1483
1484         * mule-charset.c (Vcharset_ucs_smp): New variable.
1485         (Vcharset_ucs_sip): New variable.
1486         (Qucs_smp): New variable.
1487         (Qucs_sip): New variable.
1488         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1489         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1490         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1491         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1492         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1493         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1494
1495         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1496         (LEADING_BYTE_UCS_SIP): New macro.
1497         (MIN_CHAR_SMP): New macro.
1498         (MAX_CHAR_SMP): New macro.
1499         (MIN_CHAR_SIP): New macro.
1500         (MAX_CHAR_SIP): New macro.
1501
1502 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1503
1504         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1505         utf-2000.
1506
1507 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1508
1509         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1510         value; don't store value into `encoding_table' of `Lisp_Charset'.
1511         (mark_charset): `encoding_table' was deleted.
1512         (charset_description): Likewise.
1513         (make_charset): Likewise.
1514         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1515         `put_char_ccs_code_point'.
1516
1517         * chartab.h (Fput_char_attribute): New EXFUN.
1518
1519         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1520         is unified with normal symbol space.
1521         (Fget_char_attribute): Likewise.
1522         (Fput_char_attribute): Likewise; behavior of
1523         `put_char_ccs_code_point' is changed.
1524
1525         * char-ucs.h: Include "elhash.h".
1526         (Vchar_attribute_hash_table): New external variable.
1527         (struct Lisp_Charset): Delete `encoding_table'.
1528         (CHARSET_ENCODING_TABLE): New implementation; refer
1529         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1530         `Lisp_Charset'.
1531
1532 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1533
1534         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1535         (cs) == 0.
1536
1537 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1540         `chinese-big5'.
1541
1542 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1543
1544         * chartab.c (uint8_byte_table_description): New constant.
1545         (uint8-byte-table): Use `uint8_byte_table_description'.
1546         (uint16_byte_table_description): New constant.
1547         (uint16-byte-table): Use `uint16_byte_table_description'.
1548
1549 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1550
1551         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1552         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1553
1554 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1555
1556         * mule-charset.c (Vcharset_ucs_ks): New variable.
1557         (Qucs_ks): New variable.
1558         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1559         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1560
1561         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1562
1563 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1564
1565         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1566         (Fdecode_char): Likewise.
1567
1568         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1569         chartab.h.
1570         (Fdefine_char): Modify for Fdecode_char.
1571         (Ffind_char): Likewise.
1572
1573         * mule-charset.c (Fdecode_char): Add new optional argument
1574         `defined-only'.
1575         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1576
1577 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1578
1579         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1580         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1581         (allocate_coding_system): Initialize initial-charsets of
1582         CODESYS_BIG5 in XEmacs UTF-2000.
1583         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1584         CODESYS_BIG5 in XEmacs UTF-2000.
1585         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1586         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1587
1588         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1589         variables.
1590         (Qideograph_hanziku_{1 .. 12}): Likewise.
1591         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1592         .. 12}'.
1593         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1594         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1595         `ideograph-hanziku-{1 .. 12}'.
1596
1597         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1598         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1599         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1600         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1601         (DECODE_DEFINED_CHAR): New inline function.
1602         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1603
1604 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1605
1606         * mule-charset.c (Vcharset_china3_jef): Renamed from
1607         `Vcharset_japanese_jef_china3'.
1608         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1609         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1610         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1611         (syms_of_mule_charset): Rename `china3-jef' from
1612         `japanese-jef-china3'.
1613         (complex_vars_of_mule_charset): Likewise; rename
1614         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1615
1616         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1617         `LEADING_BYTE_JEF_CHINA3'.
1618         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1619         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1620
1621 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1622
1623         * mule-charset.c (encode_builtin_char_1): Comment out special code
1624         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1625
1626         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1627         (MAX_CHAR_MOJIKYO_0): Comment out.
1628         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1629         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1630         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1631         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1632
1633 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1634
1635         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1636         (Qideograph_cbeta): New variable.
1637         (encode_builtin_char_1): Comment out special code for
1638         coded-charset `mojikyo' and `japanese-jef-china3'.
1639         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1640         (complex_vars_of_mule_charset): Add new coded-charset
1641         `ideograph-cbeta'.
1642
1643         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1644         (MIN_CHAR_CBETA): New macro.
1645         (MAX_CHAR_CBETA): New macro.
1646
1647 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1648
1649         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1650         (LEADING_BYTE_JEF_CHINA3): New macro.
1651         (MIN_CHAR_JEF_CHINA3): New macro.
1652         (MAX_CHAR_JEF_CHINA3): Likewise.
1653         (DECODE_CHAR): Fixed.
1654
1655 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1656
1657         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1658         (Qjapanese_jef_china3): New variable.
1659         (encode_builtin_char_1): Support `japanese-jef-china3'.
1660         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1661         (complex_vars_of_mule_charset): Add new coded-charset
1662         `japanese-jef-china3'.
1663
1664 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1665
1666         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1667         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1668         94^4, 96^3, 96^4, 128^n and 256^n set.
1669         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1670         (map_char_table): Likewise.
1671
1672 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1673
1674         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1675         UTF-2000.
1676
1677 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1678
1679         * chartab.h (get_char_id_table): New inline function.
1680
1681         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1682         function.
1683
1684 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1685
1686         * chartab.h (decode_char_table_range): New prototype in XEmacs
1687         UTF-2000.
1688         (put_char_id_table): New inline function in XEmacs UTF-2000.
1689
1690         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1691         function.
1692         (decode_char_table_range): Delete static declaration in XEmacs
1693         UTF-2000.
1694
1695 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1696
1697         * chartab.c (put_char_id_table): Use `put_char_table'.
1698
1699 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1700
1701         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1702         (map_over_uint16_byte_table): Likewise.
1703         (map_over_byte_table): Likewise.
1704         (map_char_table): Modify for `map_over_uint8_byte_table',
1705         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1706         UTF-2000.
1707
1708 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1709
1710         * chartab.c (struct map_char_table_for_charset_arg): New
1711         structure.
1712         (map_char_table_for_charset_fun): New function.
1713         (map_char_table): Use `map_char_table' for encoding_table of
1714         `range->charset'.
1715
1716 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1717
1718         * chartab.c (map_char_table): Check a character is found in
1719         range->charset instead of non default value is defined in
1720         char-table when range is CHARTAB_RANGE_ROW.
1721
1722 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1723
1724         * chartab.c (map_char_id_table): Deleted.
1725         (Fmap_char_attribute): Use `map_char_table' instead of
1726         `map_char_id_table'.
1727
1728 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1729
1730         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1731         UTF-2000.
1732         (update_syntax_table): Deleted in XEmacs UTF-2000.
1733
1734         * syntax.c (find_defun_start): Use `syntax_table' instead of
1735         `mirror_syntax_table' in XEmacs UTF-2000.
1736         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1737         UTF-2000.
1738         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1739         XEmacs UTF-2000.
1740         (Fmatching_paren): Likewise.
1741         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1742         in XEmacs UTF-2000.
1743         (find_start_of_comment): Likewise.
1744         (find_end_of_comment): Likewise.
1745         (Fforward_comment): Likewise.
1746         (scan_lists): Likewise.
1747         (char_quoted): Likewise.
1748         (Fbackward_prefix_chars): Likewise.
1749         (scan_sexps_forward): Likewise.
1750         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1751         (update_syntax_table): Likewise.
1752
1753         * search.c (skip_chars): Use `syntax_table' instead of
1754         `mirror_syntax_table' in XEmacs UTF-2000.
1755         (wordify): Likewise.
1756         (Freplace_match): Likewise.
1757
1758         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1759         `mirror_syntax_table' in XEmacs UTF-2000.
1760         (WORDCHAR_P_UNSAFE): Likewise.
1761         (re_match_2_internal): Likewise.
1762
1763         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1764         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1765
1766         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1767         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1768
1769         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1770         XEmacs UTF-2000.
1771
1772         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1773         UTF-2000.
1774         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1775         (char_table_description): Delete `mirror_table' in XEmacs
1776         UTF-2000.
1777         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1778         UTF-2000.
1779         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1780         (Fcopy_char_table): Likewise.
1781         (put_char_table): Don't call `update_syntax_table' in XEmacs
1782         UTF-2000.
1783
1784         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1785         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1786         (casify_region_internal): Likewise.
1787
1788         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1789
1790         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1791         `mirror_syntax_table' in XEmacs UTF-2000.
1792
1793         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1794         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1795         (Fexpand_abbrev): Likewise.
1796
1797 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1798
1799         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1800
1801 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1802
1803         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1804         (map_over_uint16_byte_table): Likewise.
1805         (map_over_byte_table): Likewise.
1806         (get_char_id_table): Refer `cit->default_value'.
1807         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1808         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1809         of character-id ranges.
1810         (mark_char_table): Mark `ct->default_value'.
1811         (char_table_description): Add `default_value'.
1812         (fill_char_table): Use `default_value'.
1813         (decode_char_table_range): Decode `nil' as
1814         `CHARTAB_RANGE_DEFAULT'.
1815         (get_char_id_table): Refer `cit->default_value'.
1816         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1817         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1818         temporary hack; check value of char-table is bound or not.
1819         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1820
1821         * chartab.h (struct Lisp_Char_Table): Add new member
1822         `default_value' in XEmacs UTF-2000.
1823         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1824         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1825         UTF-2000.
1826
1827 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1828
1829         * chartab.h (Lisp_Char_ID_Table): Deleted.
1830
1831         * chartab.c (char_table_description): Fix typo.
1832         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1833         `Lisp_Char_ID_Table'.
1834
1835 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1836
1837         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1838         `CHAR_ID_TABLE_P'.
1839
1840         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1841         `CHAR_ID_TABLE_P'.
1842
1843         * chartab.h (XCHAR_ID_TABLE): Deleted.
1844         (XSETCHAR_ID_TABLE): Deleted.
1845         (CHAR_ID_TABLE_P): Deleted.
1846
1847         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1848         `CHAR_ID_TABLE_P'.
1849         (Fget_composite_char): Likewise.
1850         (put_char_table): Likewise.
1851         (add_char_attribute_alist_mapper): Fixed.
1852         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1853         `CHAR_ID_TABLE_P'.
1854         (Fget_char_attribute): Likewise.
1855         (Fget_char_attribute): Likewise.
1856         (Fmap_char_attribute): Likewise.
1857
1858         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1859         `CHAR_ID_TABLE_P'.
1860         (encode_char_1): Likewise.
1861
1862 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1863
1864         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1865         `XCHAR_ID_TABLE'.
1866
1867         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1868         instead of `XCHAR_ID_TABLE'.
1869         (remove_char_ccs): Likewise.
1870
1871         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1872         `XCHAR_ID_TABLE'.
1873         (Fget_composite_char): Likewise.
1874         (Fchar_variants): Likewise.
1875         (put_char_table): Likewise.
1876         (add_char_attribute_alist_mapper): Likewise.
1877         (Fchar_attribute_alist): Likewise.
1878         (Fget_char_attribute): Likewise.
1879         (Fput_char_attribute): Likewise.
1880         (Fmap_char_attribute): Likewise.
1881         (Fmap_char_attribute): Likewise.
1882
1883         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1884         `XCHAR_ID_TABLE'.
1885         (encode_char_1): Likewise.
1886
1887 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1888
1889         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1890         `Lisp_Char_ID_Table'.
1891         (mark_char_id_table): Deleted.
1892         (print_char_id_table): Likewise.
1893         (char_id_table_equal): Likewise.
1894         (char_id_table_hash): Likewise.
1895         (char_id_table_description): Likewise.
1896         (char_id_table): Likewise.
1897         (make_char_id_table): Use `Fmake_char_table' and
1898         `fill_char_table'.
1899         (get_char_id_table): Use `Lisp_Char_Table' instead of
1900         `Lisp_Char_ID_Table'.
1901         (put_char_id_table): Likewise.
1902         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1903         `XCHAR_ID_TABLE'.
1904         (Fremove_char_attribute): Likewise.
1905         (syms_of_chartab): Don't define type `char-id-table'.
1906
1907         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1908         (char_id_table): Likewise.
1909         (GC_CHAR_ID_TABLE_P): Likewise.
1910         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1911         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1912         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1913         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1914         (get_char_id_table): Use `Lisp_Char_Table' instead of
1915         `Lisp_Char_ID_Table'.
1916         (put_char_id_table_0): Likewise.
1917         (put_char_id_table): Likewise.
1918
1919 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1920
1921         * chartab.h: Lisp_Byte_Table related codes are moved from
1922         chartab.h.
1923
1924         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1925
1926 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1927
1928         * chartab.h: Don't include "chartab.h".
1929         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1930         (Lisp_Char_ID_Table): Likewise.
1931         (char_id_table): Likewise.
1932         (XCHAR_ID_TABLE): Likewise.
1933         (XSETCHAR_ID_TABLE): Likewise.
1934         (CHAR_ID_TABLE_P): Likewise.
1935         (GC_CHAR_ID_TABLE_P): Likewise.
1936         (get_char_id_table): Likewise.
1937
1938         * char-ucs.h: Include "chartab.h".
1939         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1940         (Lisp_Char_ID_Table): Likewise.
1941         (char_id_table): Likewise.
1942         (XCHAR_ID_TABLE): Likewise.
1943         (XSETCHAR_ID_TABLE): Likewise.
1944         (CHAR_ID_TABLE_P): Likewise.
1945         (GC_CHAR_ID_TABLE_P): Likewise.
1946         (get_char_id_table): Likewise.
1947
1948 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1949
1950         * chartab.c (copy_uint8_byte_table): New function.
1951         (copy_uint16_byte_table): New function.
1952         (copy_byte_table): New function.
1953         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1954         characters to call.
1955         (map_over_uint16_byte_table): Likewise.
1956         (map_over_byte_table): Likewise.
1957         (get_byte_table): Move prototype to chartab.h.
1958         (put_byte_table): Likewise.
1959         (put_char_id_table_0): Moved to chartab.h.
1960         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1961         (char_table_entry_equal): Likewise.
1962         (char_table_entry_hash): Likewise.
1963         (char_table_entry_description): Likewise.
1964         (char_table_entry): Likewise.
1965         (make_char_table_entry): Likewise.
1966         (copy_char_table_entry): Likewise.
1967         (get_non_ascii_char_table_value): Likewise.
1968         (map_over_charset_ascii): Likewise.
1969         (map_over_charset_control_1): Likewise.
1970         (map_over_charset_row): Likewise.
1971         (map_over_other_charset): Likewise.
1972         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1973         (print_char_table): Likewise.
1974         (char_table_equal): Likewise.
1975         (char_table_hash): Likewise.
1976         (char_table_description): Likewise.
1977         (fill_char_table): Likewise.
1978         (Fcopy_char_table): Likewise.
1979         (get_char_table): Likewise.
1980         (Fget_range_char_table): Likewise.
1981         (put_char_table): Likewise.
1982         (map_char_table): Likewise.
1983         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1984         UTF-2000.
1985
1986 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1987
1988         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1989         `Vauto_fill_chars' in XEmacs UTF-2000.
1990
1991         * chartab.h (get_byte_table): New prototype [moved from
1992         chartab.c].
1993         (put_byte_table): Likewise [moved from chartab.c].
1994         (put_char_id_table_0): New inline function [moved from chartab.c].
1995         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1996         (Lisp_Char_Table_Entry): Likewise.
1997         (char_table_entry): Likewise.
1998         (XCHAR_TABLE_ENTRY): Likewise.
1999         (XSETCHAR_TABLE_ENTRY): Likewise.
2000         (CHAR_TABLE_ENTRYP): Likewise.
2001         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2002         (NUM_ASCII_CHARS): Likewise.
2003         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2004         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2005
2006 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2007
2008         * chartab.c (get_char_id_table): Change interface.
2009         (put_char_id_table_0): New function.
2010         (put_char_id_table): Change interface; new implementation.
2011         (Fget_composite_char): Modify for interface change of
2012         `get_char_id_table'.
2013         (Fchar_variants): Likewise.
2014         (add_char_attribute_alist_mapper): Likewise.
2015         (Fchar_attribute_alist): Likewise.
2016         (Fget_char_attribute): Likewise.
2017         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2018         as same as character as the first argument like `put-char-table';
2019         modify for interface change of `put_char_id_table'.
2020         (Fremove_char_attribute): Modify for interface change of
2021         `put_char_id_table'.
2022
2023 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2024
2025         * text-coding.c: Sync up with XEmacs 21.2.41.
2026         (COMPOSE_ADD_CHAR): Modify for interface change of
2027         `get_char_id_table'.
2028
2029         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2030         change of `put_char_id_table'.
2031         (remove_char_ccs): Likewise.
2032
2033         * chartab.h (put_char_id_table): Change interface.
2034
2035         * char-ucs.h (get_char_id_table): Change interface.
2036         (charset_code_point): Modify for interface change of
2037         `get_char_id_table'.
2038         (encode_char_1): Likewise.
2039
2040 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2041
2042         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2043         argument `ccs'.
2044         (map_over_uint16_byte_table): Likewise.
2045         (map_over_byte_table): Likewise.
2046         (map_char_id_table): Add new argument `range' like
2047         `map_char_table'.
2048         (Fmap_char_attribute): Add new argument `range' like
2049         `Fmap_char_table'.
2050
2051 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2052
2053         * chartab.c (map_over_uint8_byte_table): Change interface of
2054         mapping function to use struct chartab_range instead of Emchar.
2055         (map_over_uint16_byte_table): Likewise.
2056         (map_over_byte_table): Likewise.
2057         (map_char_id_table): Likewise.
2058         (struct slow_map_char_id_table_arg): Deleted.
2059         (slow_map_char_id_table_fun): Deleted.
2060         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2061         function `slow_map_char_table_fun' instead of struct
2062         `slow_map_char_id_table_arg' and function
2063         `slow_map_char_id_table_fun'.
2064
2065 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * mule-charset.c: Move char-it-table related codes to chartab.c.
2068         (Vutf_2000_version): Moved to chartab.c.
2069         (Fdefine_char): Likewise.
2070         (Ffind_char): Likewise.
2071         (syms_of_mule_charset): Move types `uint8-byte-table',
2072         `uint16-byte-table', `byte-table' and `char-id-table' to
2073         chartab.c; move functions `char_attribute_list,
2074         `find_char_attribute_table, `char_attribute_alist,
2075         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2076         `map_char_attribute, `define_char, `find_char, `char_variants and
2077         `get_composite_char to chartab.c; move symbols `=>ucs',
2078         `->decomposition', `compat', `isolated', `initial', `medial',
2079         `final', `vertical', `noBreak', `fraction', `super', `sub',
2080         `circle', `square', `wide', `narrow', `small' and `font' to
2081         chartab.c.
2082         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2083         setting codes for `Vcharacter_composition_table' and
2084         `Vcharacter_variant_table' to chartab.c.
2085         (complex_vars_of_mule_charset): Move setting code for
2086         `Vchar_attribute_hash_table' to chartab.c.
2087
2088         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2089         (make_char_id_table): New prototype.
2090         (put_char_id_table): Likewise.
2091         (Fget_char_attribute): Likewise.
2092
2093         * chartab.c: Move char-id-table related code from mule-charset.c.
2094         (Vutf_2000_version): Moved from mule-charset.c.
2095
2096         * char-ucs.h (Qucs): New external variable.
2097         (put_char_ccs_code_point): New prototype.
2098         (remove_char_ccs): Likewise.
2099
2100 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2101
2102         * mule-charset.c (Vcharset_ucs_jis): New variable.
2103         (Qucs_jis): Likewise.
2104         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2105         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2106
2107         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2108
2109 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110
2111         * mule-charset.c (map_over_uint8_byte_table): New function.
2112         (map_over_uint16_byte_table): Likewise.
2113         (map_over_byte_table): Likewise.
2114         (map_char_id_table): Likewise.
2115         (slow_map_char_id_table_fun): Likewise.
2116         (Fmap_char_attribute): Likewise.
2117         (syms_of_mule_charset): Add new function `map-char-attribute'.
2118
2119 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2120
2121         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2122         (syms_of_mule_charset): Add new function `find-char'.
2123
2124 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2125
2126         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2127         XEmacs UTF-2000.
2128         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2129         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2130         XEmacs UTF-2000.
2131         (complex_vars_of_mule_charset): Add new coded-charset
2132         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2133         `ideograph-gt-pj-*'.
2134
2135         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2136
2137 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2138
2139         * mule-charset.c (encode_builtin_char_1): Purge codes about
2140         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2141         {MIN|MAX}_CHAR_HEBREW.
2142         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2143         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2144
2145         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2146         (MAX_CHAR_GREEK): Purged.
2147         (MIN_CHAR_CYRILLIC): Purged.
2148         (MAX_CHAR_CYRILLIC): Purged.
2149         (MIN_CHAR_HEBREW): Commented out.
2150         (MAX_CHAR_HEBREW): Likewise.
2151
2152 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2153
2154         * mule-charset.c (Qto_ucs): New variable.
2155         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2156         (Fdefine_char): Likewise.
2157         (syms_of_mule_charset): Add new symbol `=>ucs'.
2158
2159 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2160
2161         * mule-charset.c (Fdecode_char): Fixed.
2162
2163 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2164
2165         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2166         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2167         "tcvn5712-1".
2168
2169 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2170
2171         * mule-charset.c (Vcharset_ucs_big5): New variable.
2172         (Qucs_big5): Likewise.
2173         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2174         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2175
2176         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2177
2178 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2179
2180         * mule-charset.c (decode_builtin_char): Check Big5 code range
2181         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2182
2183 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2184
2185         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2186         (Qchinese_gb12345): Likewise.
2187         (Fdecode_builtin_char): Fixed.
2188         (syms_of_mule_charset): Add `chinese-gb12345'.
2189         (complex_vars_of_mule_charset): Add coded-charset
2190         `chinese-gb12345'.
2191
2192         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2193         (LEADING_BYTE_CHINESE_GB12345): New macro.
2194
2195 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2196
2197         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2198         and `latin-viscii-upper' for `latin-viscii'.
2199
2200 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2201
2202         * mule-charset.c (Fdecode_builtin_char): Comment out
2203         regularization code for ISO-IR GR representation.
2204
2205 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2206
2207         * mule-charset.c (decode_builtin_char): New function; renamed from
2208         `make_builtin_char'; return -1 instead of signal.
2209         (Fdecode_builtin_char): Use `decode_builtin_char'.
2210
2211         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2212         `make_builtin_char'.
2213         (DECODE_CHAR): Use `decode_builtin_char' instead of
2214         `make_builtin_char'; use mapping table of `chinese-big5' for
2215         `chinese-big5-{1,2}'.
2216
2217 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2218
2219         * text-coding.c (char_encode_big5): New function.
2220         (char_finish_big5): Likewise.
2221         (reset_encoding_stream): Use `char_encode_big5' and
2222         `char_finish_big5' for CODESYS_BIG5.
2223         (mule_encode): Don't use `encode_coding_big5'.
2224         (encode_coding_big5): Deleted.
2225
2226 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2227
2228         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2229         0x81- in XEmacs UTF-2000.
2230         (detect_coding_big5): Likewise.
2231
2232 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2233
2234         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2235         generate character-id if the CCS property does not have
2236         corresponding predefined character.
2237         (make_builtin_char): Return -1 if corresponding predefined
2238         character is not found.
2239         (Fdecode_char): Return nil if corresponding character is not
2240         found.
2241         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2242         don't map to builtin ucs space.
2243
2244 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2245
2246         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2247         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2248
2249 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2250
2251         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2252         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2253         (Qideograph_gt): Likewise.
2254         (Qideograph_gt_pj_{1..11}): Likewise.
2255         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2256         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2257         `ideograph-gt-pj-11'.
2258         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2259         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2260         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2261
2262         * char-ucs.h (LEADING_BYTE_GT): New macro.
2263         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2264         (MIN_CHAR_GT): Likewise.
2265         (MAX_CHAR_GT): Likewise.
2266
2267 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2268
2269         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2270         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2271
2272         * doprnt.c (unsigned_int_converters): Add `c'.
2273         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2274
2275         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2276         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2277         `MIN_CHAR_MOJIKYO'.
2278         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2279         (MAX_CHAR_MOJIKYO_0): New macro.
2280         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2281
2282 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2283
2284         * mule-charset.c (Fdefine_char): Delete cemented out code.
2285         (encode_builtin_char_1): Modify for new allocation of builtin
2286         Mojikyo characters.
2287
2288         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2289
2290 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2291
2292         * mule-charset.c (Vcharset_ucs_cns): New variable.
2293         (Qucs_cns): New variable.
2294         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2295         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2296
2297 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2298
2299         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2300
2301 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2302
2303         * search.c (search_buffer): Make `charset_base_code' as
2304         character-id >> 6 to eliminate the corresponding last byte in
2305         UTF-8 representation [I'm not sure it is right thing].
2306         (boyer_moore): Likewise.
2307
2308 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2309
2310         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2311         representation in MULE.
2312
2313 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2314
2315         * text-coding.c (Fmake_coding_system): Use
2316         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2317         `EXTERNAL_PROPERTY_LIST_LOOP'.
2318
2319 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2320
2321         * text-coding.c (decode_output_utf8_partial_char): New function.
2322         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2323
2324 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2325
2326         * text-coding.c (decode_coding_utf8): Output original byte
2327         sequence if it is broken; change order of conditions.
2328
2329         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2330         of conditions.
2331
2332         * mb-multibyte.h (BYTE_ASCII_P):
2333         Use bit ops for char-signedness safety.
2334         (BYTE_C0_P): Use bit ops for char-signedness safety.
2335         (BYTE_C1_P): Use bit ops for char-signedness safety.
2336
2337         * character.h: (XCHAR_OR_CHAR_INT):
2338         Always use inline function.
2339         Remove redundant type checking assert() - XINT will abort quite
2340         nicely.
2341
2342 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2343
2344         * text-coding.c: (Fencode_shift_jis_char):
2345         (Fencode_big5_char):
2346         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2347         Replace 0 with '\0' when working with bytes.
2348         Replace initial "(" with "\(" in docstrings.
2349
2350         (Fmake_coding_system):
2351         When type is ccl and value is vector, register it with a proper
2352         symbol.  And checks whether the given ccl program is valid.
2353         (mule_decode): When calling ccl_driver, if src indicates
2354         NULL pointer, set an empty string instead.
2355         (mule_encode): Likewise.
2356
2357         (detect_eol_type):
2358         (detect_coding_sjis):
2359         (decode_coding_sjis):
2360         (detect_coding_big5):
2361         (decode_coding_big5):
2362         (detect_coding_ucs4):
2363         (decode_coding_ucs4):
2364         (detect_coding_utf8):
2365         (decode_coding_utf8):
2366         (detect_coding_iso2022):
2367         (decode_coding_iso2022):
2368         (decode_coding_no_conversion):
2369         (mule_decode):
2370         Make all detecting and decoding functions take an Extbyte * arg.
2371         (text_encode_generic):
2372         (encode_coding_big5):
2373         (encode_coding_no_conversion):
2374         (mule_encode):
2375         Make all encoding functions take a Bufbyte * arg.
2376         Use size_t instead of unsigned int for memory sizes.
2377         Only cast to unsigned char whenever dereferencing Extbyte *.
2378
2379         (struct lrecord_description fcd_description_1): Use countof.
2380         (complex_vars_of_file_coding):
2381         Use countof instead of sizeof.
2382         Use CHECK_NATNUM instead of CHECK_INT.
2383
2384 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2385
2386         * mule-charset.c (Fget_char_attribute): Add new optional argument
2387         `default-value'.
2388         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2389         (remove_char_ccs): Likewise.
2390
2391 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2392
2393         * text-coding.c (char_encode_shift_jis): New implementation in
2394         UTF-2000.
2395         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2396         ...)'.
2397
2398         * mule-charset.c (Vcharset_chinese_big5): New variable in
2399         UTF-2000.
2400         (Qchinese_big5): New variable in UTF-2000.
2401         (BIG5_SAME_ROW): New macro in UTF-2000.
2402         (make_builtin_char): Use builtin characters of
2403         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2404         characters of `Vcharset_chinese_big5'.
2405         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2406         (complex_vars_of_mule_charset): Add new coded-charset
2407         `chinese-big5' in UTF-2000.
2408
2409         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2410         (Vcharset_chinese_big5): New external variable declaration.
2411         (Vcharset_japanese_jisx0208_1990): Likewise.
2412
2413 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2414
2415         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2416         function.
2417         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2418
2419 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2420
2421         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2422         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2423         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2424         `mojikyo-pj-*'.
2425
2426 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2427
2428         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2429
2430 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2431
2432         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2433         to 0.17.
2434
2435 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2436
2437         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2438         for `CHARSET_BY_ATTRIBUTES'.
2439         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2440         `CHARSET_BY_ATTRIBUTES'.
2441
2442         * text-coding.c (struct decoding_stream): Rename member `CH' to
2443         `CPOS'.
2444         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2445         (decode_coding_sjis): Likewise.
2446         (decode_coding_big5): Likewise.
2447         (decode_coding_ucs4): Likewise.
2448         (decode_coding_utf8): Likewise.
2449         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2450         `CHARSET_BY_ATTRIBUTES'.
2451         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2452         `str->counter'; decode 3, 4 bytes sets.
2453         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2454         sets.
2455         (decode_coding_no_conversion): Use `str->cpos' instead of
2456         `str->ch'.
2457
2458         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2459         (Qmojikyo_2022_1): New variable.
2460         (make_charset): Don't use `CHARSET_TYPE_*'.
2461         (range_charset_code_point): Support coded-charset
2462         `mojikyo-2022-1'.
2463         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2464         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2465         `CHARSET_BY_ATTRIBUTES'.
2466         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2467         `CHARSET_BY_ATTRIBUTES'.
2468         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2469         (complex_vars_of_mule_charset): Add new coded-charset
2470         `mojikyo-2022-1'.
2471
2472         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2473         interface; changed to inline function.
2474
2475         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2476         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2477         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2478         (CHARSET_TYPE_94): Deleted.
2479         (CHARSET_TYPE_94X94): Deleted.
2480         (CHARSET_TYPE_96): Deleted.
2481         (CHARSET_TYPE_96X96): Deleted.
2482         (CHARSET_TYPE_128): Deleted.
2483         (CHARSET_TYPE_128X128): Deleted.
2484         (CHARSET_TYPE_256): Deleted.
2485         (CHARSET_TYPE_256X256): Deleted.
2486         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2487         to inline function.
2488         (DECODE_MOJIKYO_2022): New inline function.
2489         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2490         `Vcharset_mojikyo_2022_1'.
2491
2492 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2493
2494         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2495         instead of `EQ'.
2496         (put_byte_table): Likewise.
2497         (char_id_table_equal): Use `get_byte_table' [new implementation].
2498
2499 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2500
2501         * mule-charset.c: Include <limits.h> in UTF-2000.
2502         (BT_UINT8_MIN): New macro in UTF-2000.
2503         (BT_UINT8_MAX): New macro in UTF-2000.
2504         (BT_UINT8_t): New macro in UTF-2000.
2505         (BT_UINT8_nil): New macro in UTF-2000.
2506         (BT_UINT8_unbound): New macro in UTF-2000.
2507         (INT_UINT8_P): New inline function in UTF-2000.
2508         (UINT8_VALUE_P): New inline function in UTF-2000.
2509         (UINT8_ENCODE): New inline function in UTF-2000.
2510         (UINT8_DECODE): New inline function in UTF-2000.
2511         (mark_uint8_byte_table): New function in UTF-2000.
2512         (print_uint8_byte_table): New function in UTF-2000.
2513         (uint8_byte_table_equal): New function in UTF-2000.
2514         (uint8_byte_table_hash): New function in UTF-2000.
2515         (make_uint8_byte_table): New function in UTF-2000.
2516         (uint8_byte_table_same_value_p): New function in UTF-2000.
2517         (BT_UINT16_MIN): New macro in UTF-2000.
2518         (BT_UINT16_MAX): New macro in UTF-2000.
2519         (BT_UINT16_t): New macro in UTF-2000.
2520         (BT_UINT16_nil): New macro in UTF-2000.
2521         (BT_UINT16_unbound): New macro in UTF-2000.
2522         (INT_UINT16_P): New inline function in UTF-2000.
2523         (UINT16_VALUE_P): New inline function in UTF-2000.
2524         (UINT16_ENCODE): New inline function in UTF-2000.
2525         (UINT16_DECODE): New inline function in UTF-2000.
2526         (UINT8_TO_UINT16): New inline function in UTF-2000.
2527         (mark_uint16_byte_table): New function in UTF-2000.
2528         (print_uint16_byte_table): New function in UTF-2000.
2529         (uint16_byte_table_equal): New function in UTF-2000.
2530         (uint16_byte_table_hash): New function in UTF-2000.
2531         (make_uint16_byte_table): New function in UTF-2000.
2532         (uint16_byte_table_same_value_p): New function in UTF-2000.
2533         (print_byte_table): New function in UTF-2000.
2534         (byte-table): Use `print_byte_table' as printer.
2535         (make_byte_table): Delete second argument `older'.
2536         (byte_table_same_value_p): New function in UTF-2000.
2537         (copy_byte_table): Deleted.
2538         (get_byte_table): New function in UTF-2000.
2539         (put_byte_table): New function in UTF-2000.
2540         (print_char_id_table): New function in UTF-2000.
2541         (char-id-table): Use `print_char_id_table' as printer.
2542         (make_char_id_table): Delete second argument `older'.
2543         (get_char_id_table): Use `get_byte_table [new implementation].
2544         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2545         implementation].
2546         (Ffind_char_attribute_table): New function in UTF-2000.
2547         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2548         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2549         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2550         (syms_of_mule_charset): Add new function
2551         `find-char-attribute-table' in UTF-2000.
2552
2553         * lrecord.h (enum lrecord_type): Add
2554         `lrecord_type_uint16_byte_table' and
2555         `lrecord_type_uint8_byte_table'.
2556
2557         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2558         (Lisp_Uint8_Byte_Table): New type.
2559         (XUINT8_BYTE_TABLE): New macro.
2560         (XSETUINT8_BYTE_TABLE): New macro.
2561         (UINT8_BYTE_TABLE_P): New macro.
2562         (GC_UINT8_BYTE_TABLE_P): New macro.
2563         (struct Lisp_Uint16_Byte_Table): New structure.
2564         (Lisp_Uint16_Byte_Table): New type.
2565         (XUINT16_BYTE_TABLE): New macro.
2566         (XSETUINT16_BYTE_TABLE): New macro.
2567         (UINT16_BYTE_TABLE_P): New macro.
2568         (GC_UINT16_BYTE_TABLE_P): New macro.
2569
2570 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2571
2572         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2573         (Vcharacter_ideographic_strokes_table): Deleted.
2574         (Vcharacter_total_strokes_table): Deleted.
2575         (Vcharacter_morohashi_daikanwa_table): Deleted.
2576         (Vcharacter_decomposition_table): Deleted.
2577         (Qname): Deleted because it is duplicated.
2578         (Qideographic_radical): Deleted.
2579         (Qideographic_strokes): Deleted.
2580         (Qtotal_strokes): Deleted.
2581         (Qmorohashi_daikanwa): Deleted.
2582         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2583         `ideographic-radical', `ideographic-strokes', `total-strokes',
2584         `morohashi-daikanwa' and `->decomposition'.
2585         (Fget_char_attribute): Likewise.
2586         (Fput_char_attribute): Likewise; use `make-vector' instead of
2587         `make_older_vector' for `->decomposition' value.
2588         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2589         `ideograph-daikanwa'.
2590         (syms_of_mule_charset): Delete builtin symbols `name',
2591         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2592         `morohashi-daikanwa'.
2593         (vars_of_mule_charset): Don't setup
2594         `Vcharacter_ideographic_radical_table',
2595         `Vcharacter_ideographic_strokes_table',
2596         `Vcharacter_total_strokes_table',
2597         `Vcharacter_morohashi_daikanwa_table' and
2598         `Vcharacter_decomposition_table'.
2599
2600 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2601
2602         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2603         `make_older_vector', `make_vector_newer_1' and
2604         `make_vector_newer'.
2605
2606         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2607         `make_older_vector' and `make_vector_newer'.
2608
2609         * config.h.in (HAVE_GGC): New macro.
2610
2611 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2612
2613         * mule-charset.c (struct char_attribute_list_closure): New
2614         structure in UTF-2000.
2615         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2616         (Fchar_attribute_list): Likewise.
2617         (Fset_charset_mapping_table): Use `make_vector_newer'.
2618         (Fdecode_builtin_char): New function in UTF-2000.
2619         (syms_of_mule_charset): Add new function `char-attribute-list' and
2620         `decode-builtin-char' in UTF-2000.
2621
2622         * lisp.h (make_vector_newer): New prototype.
2623
2624         * alloc.c (make_vector_newer_1): New function.
2625         (make_vector_newer): New function.
2626
2627 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2628
2629         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2630         50100)'.
2631
2632 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2633
2634         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2635         (Vcharacter_attribute_table): Deleted.
2636         (Vcharacter_name_table): Deleted.
2637         (put_char_attribute): Deleted.
2638         (remove_char_attribute): Deleted.
2639         (struct char_attribute_alist_closure): New structure.
2640         (add_char_attribute_alist_mapper): New function.
2641         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2642         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2643         (Fget_char_attribute): Likewise.
2644         (Fput_char_attribute): Likewise.
2645         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2646         of `remove_char_attribute'.
2647         (Fdefine_char): Return character.
2648         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2649         and `Vcharacter_name_table'.
2650         (complex_vars_of_mule_charset): Likewise
2651         `Vchar_attribute_hash_table'.
2652
2653 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2654
2655         * character.h (CHARC_CHARSET): New macro.
2656         (CHARC_CHARSET_ID): New macro.
2657         (CHARC_CODE_POINT): New macro.
2658         (CHARC_COLUMNS): New macro.
2659         (CHARC_TO_CHAR): New inline function.
2660         (CHARC_EQ): New inline function.
2661         (CHARC_ASCII_EQ): New inline function.
2662         (CHARC_IS_SPACE): New inline function.
2663         (ASCII_TO_CHARC): New inline function.
2664
2665         * char-ucs.h (encode_char_2): Deleted.
2666         (ENCODE_CHAR): Use `encode_char_1' again.
2667         (breakup_char_1): Likewise.
2668         (CHAR_TO_CHARC): New inline function.
2669
2670         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2671
2672 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2673
2674         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2675         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2676         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2677         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2678         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2679         `CHARC_IS_SPACE'.
2680         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2681
2682         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2683         `CHARC_CODE_POINT'.
2684         (x_output_display_block): Use `CHARC_CHARSET' and
2685         `CHARC_ASCII_EQ'.
2686
2687         * redisplay-tty.c (tty_output_display_block): Use
2688         `CHARC_ASCII_EQ'.
2689         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2690
2691         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2692
2693         * insdel.c (find_charsets_in_charc_string): Use
2694         `CHARC_CHARSET_ID'.
2695         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2696         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2697         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2698         (convert_charc_string_into_malloced_string): Likewise.
2699
2700 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2701
2702         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2703         instead of <Emchar_dynarr *> for buf; use
2704         `convert_bufbyte_string_into_charc_dynarr' instead of
2705         `convert_bufbyte_string_into_emchar_dynarr'; use
2706         `find_charsets_in_charc_string' instead of
2707         `find_charsets_in_emchar_string'.
2708
2709         * redisplay.h:
2710         - Include "character.h".
2711         (struct rune): New member `cglyph'; delete member `chr'.
2712
2713         * redisplay.c (redisplay_text_width_charc_string): New function;
2714         delete `redisplay_text_width_emchar_string'.
2715         (rtw_charc_dynarr): New variable; renamed from
2716         `rtw_emchar_dynarr'.
2717         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2718         `rtw_emchar_dynarr'; use
2719         `convert_bufbyte_string_into_charc_dynarr' instead of
2720         `convert_bufbyte_string_into_emchar_dynarr'; use
2721         `redisplay_text_width_charc_string' instead of
2722         `redisplay_text_width_emchar_string'.
2723         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2724         instead of `rtw_emchar_dynarr'; use
2725         `convert_bufbyte_string_into_charc_dynarr' instead of
2726         `convert_bufbyte_string_into_emchar_dynarr'.
2727         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2728         `redisplay_text_width_charc_string' instead of
2729         `redisplay_text_width_emchar_string'.
2730         (create_text_block): Modify for <struct rune> change.
2731         (generate_formatted_string_db): Likewise.
2732         (create_string_text_block): Likewise.
2733         (pixel_to_glyph_translation): Likewise.
2734
2735         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2736         instead of <const Emchar *>.
2737         (x_text_width): Likewise.
2738         (x_output_display_block): Use <Charc_dynarr *> instead
2739         <Emchar_dynarr *>; modify for <structure rune> change.
2740         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2741         *>.
2742
2743         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2744         <const Emchar *>; use `charc_string_displayed_columns' instead of
2745         `emchar_string_displayed_columns'.
2746         (tty_output_display_block): Use <Charc_dynarr *> instead of
2747         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2748         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2749         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2750         `tty_output_emchar_dynarr_dynarr'.
2751         (tty_output_charc_dynarr): New function; delete
2752         `tty_output_charc_dynarr'.
2753
2754         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2755         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2756         <Emchar_dynarr *> for buf; use
2757         `convert_bufbyte_string_into_charc_dynarr' instead of
2758         `convert_bufbyte_string_into_emchar_dynarr'.
2759
2760         * frame.c (title_string_charc_dynarr): New variable; renamed from
2761         `title_string_emchar_dynarr'.
2762         (generate_title_string): Use `title_string_charc_dynarr' instead
2763         of `title_string_emchar_dynarr'; use
2764         `convert_charc_string_into_malloced_string' instead of
2765         `convert_emchar_string_into_malloced_string'.
2766         (init_frame): Use `title_string_charc_dynarr' instead of
2767         `title_string_emchar_dynarr'.
2768
2769         * console.h:
2770         - Include "character.h".
2771         (struct console_methods): Use <const Charc *> instead of <const
2772         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2773         <Emchar_dynarr *> in output_string_method.
2774
2775         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2776         <Emchar_dynarr *>.
2777
2778         * console-stream.c (stream_text_width): Use <const Charc *>
2779         instead of <const Emchar *>.
2780
2781         * character.h (Charc_dynarr): New type.
2782
2783         * char-ucs.h (structure Charc): New structure; define new type
2784         `Charc'.
2785
2786         * char-lb.h (DECODE_CHAR): New inline function.
2787         (encode_char_1): New inline function.
2788         (ENCODE_CHAR): New macro.
2789         (structure Charc): New structure; define new type `Charc'.
2790
2791         * char-1byte.h (Vcharset_control_1): New macro.
2792         (Vcharset_latin_iso8859_1): New macro.
2793         (DECODE_CHAR): New inline function.
2794         (encode_char_1): New inline function.
2795         (ENCODE_CHAR): New macro.
2796         (structure Charc): New structure; define new type `Charc'.
2797
2798         * insdel.c (find_charsets_in_charc_string): New function; delete
2799         `find_charsets_in_emchar_string'.
2800         (charc_string_displayed_columns): New function; delete
2801         `emchar_string_displayed_columns'.
2802         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2803         `convert_bufbyte_string_into_emchar_dynarr'.
2804         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2805         `convert_charc_string_into_bufbyte_dynarr'.
2806         (convert_charc_string_into_malloced_string): New function; delete
2807         `convert_charc_string_into_malloced_string'.
2808
2809         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2810         `find_charsets_in_emchar_string'.
2811         (charc_string_displayed_columns): New prototype; delete
2812         `emchar_string_displayed_columns'.
2813         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2814         `convert_charc_string_into_bufbyte_dynarr'.
2815         (convert_charc_string_into_malloced_string): New prototype; delete
2816         `convert_charc_string_into_malloced_string'.
2817
2818 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2819
2820         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2821
2822 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2823
2824         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2825
2826         * char-ucs.h: Use <short> for <Charset_ID>.
2827
2828         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2829         <Charset_ID>.
2830
2831 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2832
2833         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2834         to 0.16.
2835
2836 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2837
2838         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2839         variable.
2840         (Qmorohashi_daikanwa): New variable.
2841         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2842         for `morohashi-daikanwa' attribute.
2843         (Fget_char_attribute): Likewise.
2844         (Fput_char_attribute): Likewise.
2845         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2846         has the same value of `ideograph-daikanwa'.
2847         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2848         (vars_of_mule_charset): Setup
2849         `Vcharacter_morohashi_daikanwa_table'.
2850
2851 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2852
2853         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2854         attributes.
2855         (add_charset_to_list_mapper): Add `key' instead of
2856         `XCHARSET_NAME (value)' to return aliases.
2857
2858 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2859
2860         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2861         variable.
2862         (Vcharacter_ideographic_strokes_table): New variable.
2863         (Qideographic_radical): New variable.
2864         (Qideographic_strokes): New variable.
2865         (Fchar_attribute_alist): Use
2866         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2867         attribute; use `Vcharacter_ideographic_strokes_table' for
2868         `ideographic-strokes' attribute.
2869         (Fget_char_attribute): Likewise.
2870         (Fput_char_attribute): Likewise.
2871         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2872         `ideographic-strokes'.
2873         (vars_of_mule_charset): Setup
2874         `Vcharacter_ideographic_radical_table' and
2875         `Vcharacter_ideographic_strokes_table'.
2876
2877 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2878
2879         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2880         (Qtotal_strokes): New variable.
2881         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2882         `total-strokes' attribute.
2883         (Fget_char_attribute): Likewise.
2884         (Fput_char_attribute): Likewise.
2885         (syms_of_mule_charset): Add new symbol `total-strokes'.
2886         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2887
2888 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2889
2890         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2891         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2892         are found.
2893         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2894         `->decomposition' attribute.
2895         (Fput_char_attribute): Likewise.
2896         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2897
2898 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2899
2900         * mule-charset.c (decoding_table_check_elements): New function.
2901         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2902
2903 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2904
2905         * mule-charset.c (Fset_charset_mapping_table): Use
2906         `put_char_ccs_code_point'.
2907
2908 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2909
2910         * mule-charset.c (decoding_table_put_char): New inline function.
2911         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2912
2913 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2914
2915         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2916         (XCHARSET_BYTE_SIZE): New macro.
2917         (decoding_table_remove_char): New inline function.
2918         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2919         `decoding_table_remove_char'.
2920         (remove_char_ccs): Use `decoding_table_remove_char'.
2921         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2922
2923 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2924
2925         * mule-charset.c (Vcharacter_name_table): New variable.
2926         (Qname): New variable.
2927         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2928         attribute.
2929         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2930         `Vcharacter_name_table' for `name' attribute.
2931         (Fremove_char_attribute): Use function `remove_char_ccs'.
2932         (put_char_ccs_code_point): New function.
2933         (remove_char_ccs): New function.
2934         (syms_of_mule_charset): Add new symbol `name'.
2935         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2936
2937 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2938
2939         * mule-charset.c (make_byte_table): Add new argument `older'.
2940         (make_char_id_table): Likewise.
2941         (copy_char_id_table): Comment out because it is not used.
2942         (put_char_id_table): Modify for `make_byte_table'.
2943         (Fput_char_attribute): Make encoding_table as older object;
2944         inherit older bit of `Vcharacter_composition_table'.
2945         (mark_charset): Don't mark `cs->encoding_table'.
2946         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2947         normal object; make `Vcharacter_composition_table' as an older
2948         object; delete staticpro for `Vcharacter_composition_table'; make
2949         `Vcharacter_variant_table' as a normal object.
2950
2951         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2952         (mark_object): Don't check older object in UTF-2000.
2953
2954         * lrecord.h (struct lrecord_header): Add new member `older' in
2955         UTF-2000.
2956         (set_lheader_implementation): Setup `SLI_header->older' in
2957         UTF-2000.
2958         (set_lheader_older_implementation): New macro in UTF-2000.
2959         (OLDER_RECORD_P): New macro in UTF-2000.
2960         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2961         (alloc_older_lcrecord): New prototype in UTF-2000.
2962         (alloc_older_lcrecord_type): New macro in UTF-2000.
2963
2964 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2965
2966         * mule-charset.c (byte_table_description): Use
2967         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2968         (char_id_table_description): Delete bogus `, 1'.
2969         (Fget_char_attribute): Refer encoding_table of each coded-charset
2970         to get value of coded-charset attribute of a character.
2971         (Fput_char_attribute): Use `make_older_vector' instead of
2972         `make_vector'; use encoding_table of each coded-charset to store
2973         value of coded-charset attribute of a character.
2974         (Fremove_char_attribute): Use encoding_table of each coded-charset
2975         to store value of coded-charset attribute of a character.
2976         (mark_charset): Mark `cs->encoding_table'; don't mark
2977         `cs->decoding_table'.
2978         (charset_description): Add description of new member
2979         `encoding_table'.
2980         (make_charset): Initialize `encoding_table'.
2981
2982         * char-ucs.h (struct Lisp_Charset): Add new member
2983         `encoding_table'.
2984         (CHARSET_ENCODING_TABLE): New macro.
2985         (XCHARSET_ENCODING_TABLE): New macro.
2986         (charset_code_point): New implementation.
2987         (encode_char_1): Likewise.
2988
2989         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2990         (disksave_object_finalization_1): Call finalizers of
2991         `all_older_lcrecords' in UTF-2000.
2992         (make_older_vector): New function in UTF-2000.
2993         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2994         UTF-2000.
2995
2996         * lisp.h (make_older_vector): New prototype in UTF-2000.
2997
2998 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2999
3000         * lrecord.h (enum lrecord_type): Rename
3001         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3002
3003         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3004         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3005         `get_char_code_table'.
3006
3007         * mule-charset.c (mark_char_id_table): Renamed from
3008         `mark_char_code_table'.
3009         (char_id_table_equal): Renamed from `char_code_table_equal'.
3010         (char_id_table_hash): Renamed from `char_code_table_hash'.
3011         (make_char_id_table): Renamed from `make_char_code_table'.
3012         (copy_char_id_table): Renamed from `copy_char_code_table'.
3013         (get_char_id_table): Renamed from `get_char_code_table'.
3014         (put_char_id_table): Renamed from `put_char_code_table'.
3015         (to_char_id): Renamed from `to_char_code'.
3016
3017         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3018         `Lisp_Char_Code_Table'.
3019         (char_id_table): Renamed from `char_code_table'.
3020         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3021         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3022         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3023         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3024         (get_char_id_table): Renamed from `get_char_code_table'.
3025
3026 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3027
3028         * lrecord.h (enum lrecord_type): Rename
3029         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3030
3031         * mule-charset.c (mark_byte_table): Renamed from
3032         `mark_char_byte_table'.
3033         (byte_table_equal): Renamed from `char_byte_table_equal'.
3034         (byte_table_hash): Renamed from `byte_table_hash'.
3035         (make_byte_table): Renamed from `make_byte_table'.
3036         (copy_byte_table): Renamed from `copy_char_byte_table'.
3037
3038         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3039         `Lisp_Char_Byte_Table'.
3040         (byte_table): Renamed from `char_byte_table'.
3041         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3042         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3043         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3044         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3045
3046 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3047
3048         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3049         (dfc_convert_to_internal_format): Likewise.
3050         
3051         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3052         * text-coding.c (Fcoding_system_alias_p): New function.
3053         * text-coding.c (Fcoding_system_aliasee): New function.
3054         * text-coding.c (append_suffix_to_symbol): New function.
3055         * text-coding.c (dangling_coding_system_alias_p): New function.
3056         * text-coding.c (Ffind_coding_system):
3057         * text-coding.c (Fcopy_coding_system):
3058         * text-coding.c (encode_coding_no_conversion):
3059         * text-coding.c (syms_of_file_coding):
3060         * text-coding.c (vars_of_file_coding):
3061         Rewrite coding system alias code.
3062         Allow nested aliases, like symbolic links.
3063         Allow redefinition of coding system aliases.
3064         Prevent existence of dangling coding system aliases.
3065         Eliminate convert_to_external_format.
3066         Eliminate convert_to_internal_format.
3067         
3068         * text-coding.c: Change enum eol_type to eol_type_t.
3069
3070 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3071
3072         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3073         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3074
3075         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3076         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3077
3078 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3079
3080         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3081         `ideograph-daikanwa'.
3082
3083         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3084         (Vcharset_ucs_bmp): Likewise.
3085         (Vcharset_mojikyo): Add new extern variable definition.
3086         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3087         (Vcharset_latin_iso8859_3): Likewise.
3088         (Vcharset_latin_iso8859_4): Likewise.
3089         (Vcharset_latin_iso8859_9): Likewise.
3090         (Vcharset_latin_viscii_lower): Likewise.
3091         (Vcharset_latin_viscii_upper): Likewise.
3092         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3093         `mojikyo' code-point is used to decode.
3094         (encode_char_2): New function [to convert `mojikyo' code-point to
3095         Mojikyo font encoding].
3096         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3097         (breakup_char_1): Likewise.
3098         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3099
3100 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3101
3102         * text-coding.c (Fmake_coding_system): Add document about
3103         `disable-composition' property.
3104
3105 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3106
3107         * text-coding.c (Qdisable_composition): New variable; delete
3108         `Qcomposite'.
3109         (Fmake_coding_system): Add new property `disable-composite';
3110         delete property `composite'.
3111         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3112         instead of `!CODING_SYSTEM_COMPOSITE'.
3113         (syms_of_file_coding): Add new symbol `disable-composition';
3114         delete symbol `composite'.
3115
3116         * file-coding.h (struct Lisp_Coding_System): Add
3117         `disable_composition'; delete `enable_composition'.
3118         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3119         `CODING_SYSTEM_COMPOSITE'.
3120         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3121         `XCODING_SYSTEM_COMPOSITE'.
3122
3123 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3124
3125         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3126         to 0.15.
3127
3128 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3129
3130         * text-coding.c (Qcomposite): New variable.
3131         (Fmake_coding_system): Add new property `composite'.
3132         (struct decoding_stream): Add `combined_char_count',
3133         `combined_chars' and `combining_table' in UTF-2000.
3134         (COMPOSE_FLUSH_CHARS): New macro.
3135         (COMPOSE_ADD_CHAR): New macro.
3136         (reset_decoding_stream): Reset `str->combined_char_count' and
3137         `str->combining_table' in UTF-2000.
3138         (decode_coding_iso2022): Modify for character-decomposition.
3139         (syms_of_file_coding): Add new symbol `composite'.
3140
3141 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3142
3143         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3144         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3145         of `Vcharacter_composition_table' if `->decomposition' property
3146         has only 1 element.
3147         (Qlatin_tcvn5712): New variable.
3148         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3149         (complex_vars_of_mule_charset): Add new coded-charset
3150         `latin-tcvn5712'.
3151
3152         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3153
3154 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3155
3156         * file-coding.h (struct Lisp_Coding_System): Add
3157         `enable_composition'.
3158         (CODING_SYSTEM_COMPOSITE): New macro.
3159         (XCODING_SYSTEM_COMPOSITE): New macro.
3160
3161 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3162
3163         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3164
3165 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3166
3167         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3168         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3169
3170 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3171
3172         * mule-charset.c (Vcharset_mojikyo): New variable.
3173         (Fdefine_char): Don't use coded-charset which does not have
3174         non-builtin character range to allocate character-id.
3175         (Qmojikyo): New variable.
3176         (syms_of_mule_charset): Add new symbol `mojikyo'.
3177         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3178
3179         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3180         (LEADING_BYTE_MOJIKYO): New macro.
3181         (MIN_CHAR_MOJIKYO): New macro.
3182         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3183         (MAX_CHAR_MOJIKYO): New macro.
3184
3185 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3186
3187         * mule-charset.c (remove_char_attribute): Fixed.
3188
3189 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3190
3191         * mule-charset.c (remove_char_attribute): New function.
3192         (Fremove_char_attribute): New function.
3193         (encode_builtin_char_1): Comment out builtin-support for
3194         greek-iso8859-7 and cyrillic-iso8859-5.
3195         (Fdecode_char): Check `code' is an integer.
3196         (syms_of_mule_charset): Add `remove-char-attribute'.
3197         (MIN_CHAR_GREEK): Deleted.
3198         (MAX_CHAR_GREEK): Likewise.
3199         (MIN_CHAR_CYRILLIC): Likewise.
3200         (MAX_CHAR_CYRILLIC): Likewise.
3201         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3202         MAX_CHAR_GREEK for `greek-iso8859-7'.
3203
3204         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3205         (MAX_CHAR_GREEK): Likewise.
3206         (MIN_CHAR_CYRILLIC): Likewise.
3207         (MAX_CHAR_CYRILLIC): Likewise.
3208
3209 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3210
3211         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3212         format is used without `ucs' property.
3213         (Fdecode_char): Fix problem with GR representation.
3214         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3215         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3216
3217 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3218
3219         * mule-charset.c (make_builtin_char): New function.
3220         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3221         (Fset_charset_mapping_table): Modify for new representation of
3222         code-point.
3223         (Fdecode_char): New function.
3224         (syms_of_mule_charset): Add new builtin function `decode-char' in
3225         UTF-2000.
3226
3227         * char-ucs.h (make_builtin_char): New prototype.
3228         (DECODE_CHAR): New inline function.
3229         (MAKE_CHAR): Use `DECODE_CHAR'.
3230
3231 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3232
3233         * text-coding.c (parse_charset_conversion_specs): Use
3234         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3235         `XCHARSET_TYPE'.
3236         (iso2022_designate): Likewise.
3237
3238         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3239         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3240
3241         * mule-charset.c (Vcharset_ucs): New variable.
3242         (print_charset): Change design; use `CHARSET_CHARS' and
3243         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3244         (make_charset): Change signature to specify `chars' and
3245         `dimension' instead of `type'.
3246         (range_charset_code_point): Modify for 256^n-set.
3247         (encode_builtin_char_1): Encode as `ucs' in default.
3248         (Fmake_charset): Modify for `make_charset'.
3249         (Fmake_reverse_direction_charset): Likewise.
3250         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3251         UTF-2000.
3252         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3253         for `make_charset'.
3254
3255         * char-ucs.h (Vcharset_ucs): New variable.
3256         (LEADING_BYTE_UCS): New macro.
3257         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3258         and `chars' to `unsigned short' from `unsigned int'.
3259         (CHARSET_TYPE): Deleted.
3260         (XCHARSET_TYPE): Deleted.
3261
3262 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3263
3264         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3265
3266         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3267         (ENCODE_CHAR): New macro.
3268
3269 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3270
3271         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3272         to 0.14 (Kawachi-Katakami).
3273
3274 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3275
3276         * text-coding.c (char_encode_shift_jis): Modify for
3277         `charset_code_point'.
3278         (char_encode_iso2022): Likewise.
3279
3280         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3281         (integer) instead of list of <Lisp_Object>s (integers) as the
3282         format of code-point of a coded-charset.
3283         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3284         (encode_builtin_char_1): New function; delete
3285         `split_builtin_char'.
3286         (charset_code_point): Return <int> instead of <Lisp_Object>.
3287         (Fsplit_char): Don't use `SPLIT_CHAR'.
3288
3289         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3290         prototype for `split_builtin_char'.
3291         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3292         (charset_code_point): Likewise.
3293         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3294         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3295
3296 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3297
3298         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3299         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3300
3301 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3302
3303         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3304
3305         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3306         (MAX_CHAR_OBS_94x94): Deleted.
3307
3308 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3309
3310         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3311
3312         * char-ucs.h (MAX_CHAR_BMP): New macro.
3313
3314 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3315
3316         * text-coding.c: Sync with r21-2-24.
3317
3318 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3319
3320         * file-coding.c: Modify for UTF-2000.
3321
3322 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3323
3324         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3325         to 0.13 (Takaida).
3326
3327 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3328
3329         * mule-charset.c (split_builtin_char): Delete builtin support for
3330         `katakana-jisx0201'.
3331         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3332         BMP area in builtin representation.
3333
3334         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3335         `Vcharset_katakana_jisx0201'.
3336
3337 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3338
3339         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3340         (Qisolated): New variable.
3341         (Qinitial): New variable.
3342         (Qmedial): New variable.
3343         (Qfinal): New variable.
3344         (Qvertical): New variable.
3345         (Qsmall): New variable.
3346         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3347         `Qvertical' and `Qsmall'.
3348         (Qmojikyo_pj_[1 .. 21]): New variable.
3349         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3350         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3351         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3352         .. 21]'.
3353
3354 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3355
3356         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3357         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3358         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3359
3360 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3361
3362         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3363         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3364         BMP.
3365         (Qjapanese_jisx0208_1990): New variable.
3366         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3367         (complex_vars_of_mule_charset): Add new coded-charset
3368         `japanese-jisx0208-1990'.
3369
3370         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3371         (MIN_CHAR_JIS_X0208_1990): New macro.
3372         (MAX_CHAR_JIS_X0208_1990): New macro.
3373
3374 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3375
3376         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3377         coded-charset is not found.
3378
3379 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3380
3381         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3382         (Fdefine_char): Use `Fmake_char'.
3383
3384 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3385
3386         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3387         (Vcharset_hiragana_jisx0208): Deleted.
3388         (Vcharset_katakana_jisx0208): Deleted.
3389         (Qideograph_daikanwa): New variable.
3390         (Qhiragana_jisx0208): Deleted.
3391         (Qkatakana_jisx0208): Deleted.
3392         (split_builtin_char): Split `ideograph-daikanwa'.
3393         (Fsplit_char): New implementation for UTF-2000.
3394         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3395         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3396         (complex_vars_of_mule_charset): Add new coded-charset
3397         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3398         `katakana-jisx0208'.
3399
3400         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3401         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3402         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3403         (MIN_CHAR_DAIKANWA): New macro.
3404         (MAX_CHAR_DAIKANWA): New macro.
3405
3406 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3407
3408         * data.c (Fstring_to_number): Don't recognize floating point if
3409         base is not 10.
3410
3411 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3412
3413         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3414
3415 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3416
3417         * mule-charset.c (Qsquare): New variable.
3418         (to_char_code): Add `Qsquare'.
3419         (syms_of_mule_charset): Add new symbol `square'.
3420
3421 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3422
3423         * mule-charset.c (Qcircle): New variable.
3424         (to_char_code): Add `Qcircle'.
3425         (syms_of_mule_charset): Add new symbol `circle'.
3426
3427 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3428
3429         * mule-charset.c (Qfont): New variable.
3430         (to_char_code): Add `Qfont'.
3431         (syms_of_mule_charset): Add new symbol `font'.
3432
3433 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3434
3435         * mule-charset.c (Qsub): New variable.
3436         (to_char_code): Add `Qsub'.
3437         (syms_of_mule_charset): Add new symbol `sub'.
3438
3439 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3440
3441         * mule-charset.c (Fput_char_attribute): Convert each element of
3442         VALUE to GL position if ATTRIBUTE is a GR-set,
3443
3444 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3445
3446         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3447         coded-charset is a GR-set.
3448
3449 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3450
3451         * mule-charset.c (Fput_char_attribute): Check each element of
3452         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3453
3454 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3455
3456         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3457         UTF-2000.
3458         (Qethiopic_ucs): New variable in UTF-2000.
3459         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3460         (complex_vars_of_mule_charset): Add new coded-charset
3461         `ethiopic-ucs' in UTF-2000.
3462
3463         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3464         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3465         9)'.
3466         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3467         10)'.
3468         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3469
3470 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3471
3472         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3473         `ascii'.
3474
3475 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3476
3477         * mule-charset.c (Vcharacter_variant_table): New variable.
3478         (Q_ucs): New variable.
3479         (Fchar_variants): New function.
3480         (Fput_char_attribute): Register `->ucs' value to
3481         `Vcharacter_variant_table'.
3482         (syms_of_mule_charset): Add new function `char-variants' and new
3483         symbol `->ucs'.
3484         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3485
3486 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3487
3488         * mule-charset.c (get_char_code_table): Allow negative character
3489         code.
3490         (put_char_code_table): Likewise.
3491         (Vcharacter_composition_table): New variable.
3492         (Q_decomposition): New variable.
3493         (Qwide): New variable.
3494         (Qnarrow): New variable.
3495         (Qcompat): New variable.
3496         (QnoBreak): New variable.
3497         (Qsuper): New variable.
3498         (Qfraction): New variable.
3499         (to_char_code): New function.
3500         (Fget_composite_char): New function.
3501         (Fput_char_attribute): Register `->decomposition' value to
3502         `Vcharacter_composition_table'.
3503         (syms_of_mule_charset): Add new function `get-composite-char', new
3504         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3505         `super' and `fraction'.
3506         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3507
3508 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3509
3510         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3511         character; copy the return value.
3512
3513 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3514
3515         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3516
3517         * mule-charset.c (range_charset_code_point): Must use make_int.
3518         (split_builtin_char): New function.
3519
3520 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3521
3522         * mule-charset.c (char_byte_table): Change name from
3523         "char-code-table" to "char-byte-table".
3524         (mark_char_code_table): New function.
3525         (char_code_table_equal): New function.
3526         (char_code_table_hash): New function.
3527         (char_code_table_description): New constant.
3528         (char_code_table): New type.
3529         (make_char_code_table): New function.
3530         (copy_char_code_table): New function.
3531         (get_char_code_table): Modify for `char_code_table' type.
3532         (put_char_code_table): Likewise.
3533         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3534         (Kashiwara).
3535
3536         * char-ucs.h (char_code_table): New type.
3537         (XCHAR_CODE_TABLE): New macro.
3538         (XSETCHAR_CODE_TABLE): New macro.
3539         (CHAR_CODE_TABLE_P): New macro.
3540         (GC_CHAR_CODE_TABLE_P): New macro.
3541         (struct Lisp_Char_Code_Table): New structure.
3542
3543 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3544
3545         * mule-charset.c (Fmake_charset): Setup byte_offset for
3546         {94|96}^n-set.
3547
3548 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3549
3550         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3551         character.
3552
3553 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3554
3555         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3556         is found.
3557
3558 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3559
3560         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3561         charset, it is regarded as a charset.
3562         (put_char_attribute): New function in UTF-2000.
3563         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3564         charset, mapping-table of the charset is modified.
3565         (Fdefine_char): New function in UTF-2000.
3566         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3567         `Fput_char_attribute'.
3568         (syms_of_mule_charset): Add new function `define-char' and new
3569         symbol `ucs' in UTF-2000.
3570         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3571
3572 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3573
3574         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3575         non-UTF-2000 configuration.
3576
3577 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3578
3579         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3580         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3581
3582         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3583         deleted.
3584         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3585         (Fset_charset_mapping_table): Likewise.
3586
3587         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3588         (CHARSET_ENCODING_TABLE): Delete.
3589         (XCHARSET_ENCODING_TABLE): Delete.
3590         (charset_code_point): New interface.
3591
3592 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3593
3594         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3595         instead of `charset_get_byte1' and `charset_get_byte2'.
3596
3597         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3598         (charset_get_byte2): Deleted.
3599
3600 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3601
3602         * char-ucs.h (SPLIT_CHAR): New inline function.
3603         (breakup_char_1): Use `SPLIT_CHAR'.
3604
3605         * mule-charset.c (range_charset_code_point): New function.
3606         (charset_code_point): New function.
3607
3608         * char-ucs.h (range_charset_code_point): New interface.
3609         (breakup_char_1): Use `range_charset_code_point'.
3610
3611 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3612
3613         * mule-charset.c (Fmake_charset): Delete unused local variable
3614         `code_offset'.
3615
3616         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3617         (breakup_char_1): Find a charset and code-point in
3618         `Vcharacter_attribute_table'.
3619
3620 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3621
3622         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3623         to 0.10 (Yao).
3624
3625 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3626
3627         * mule-charset.c (Vcharacter_attribute_table): New variable.
3628         (Fchar_attribute_alist): New function.
3629         (Fget_char_attribute): New function.
3630         (Fput_char_attribute): New function.
3631         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3632         too.
3633         (syms_of_mule_charset): Add new function `char-attribute-alist',
3634         `get-char-attribute' and `put-char-attribute'.
3635         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3636
3637 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3638
3639         * mule-charset.c (Fmake_charset): Just use
3640         `get_unallocated_leading_byte'.
3641
3642         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3643         sets; don't use final-byte based number for private sets.
3644
3645 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3646
3647         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3648         integer.
3649
3650 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3651
3652         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3653         to 0.9.
3654
3655 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3656
3657         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3658         of `CHAR_LEADING_BYTE' in UTF-2000.
3659
3660         * insdel.c (find_charsets_in_bufbyte_string): Use
3661         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3662         (find_charsets_in_emchar_string): Likewise.
3663
3664         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3665         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3666
3667         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3668         (CHAR_CHARSET_ID): New macro.
3669
3670 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3671
3672         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3673         charset-id - MIN_LEADING_BYTE.
3674         (put_char_table): Likewise.
3675
3676 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3677
3678         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3679         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3680         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3681         (CHARSET_ID_OFFSET): New macro.
3682         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3683         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3684         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3685         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3686         4).
3687         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3688         5).
3689         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3690         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3691         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3692         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3693         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3694
3695 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3696
3697         * mule-charset.c (next_allocated_leading_byte): New variable in
3698         UTF-2000.
3699         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3700         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3701         (get_unallocated_leading_byte): Simply use
3702         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3703         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3704         UTF-2000.
3705
3706         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3707         (MAX_LEADING_BYTE_PRIVATE): New macro.
3708         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3709         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3710
3711 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3712
3713         * mule-charset.c (Fmake_charset): Allocate final-byte based
3714         charset-id for 94-set, 96-set and 94x94-set.
3715
3716 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3717
3718         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3719         ambiguous `else'.
3720         (Fmake_charset): Likewise.
3721         (complex_vars_of_mule_charset): Modify the font registry of
3722         `ucs-bmp' not to match `Ethiopic-Unicode'.
3723
3724 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3725
3726         * mule-charset.c (complex_vars_of_mule_charset): Add font
3727         registory of `ucs-bmp'.
3728
3729 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3730
3731         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3732         coded-charsets in `default-coded-charset-priority-list' when
3733         breaking up a character.
3734
3735         * mule-charset.c (Vcharset_latin_viscii): New variable.
3736         (Qlatin_viscii): New variable.
3737         (make_charset): Don't use `decoding_table'.
3738         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3739         byte_offset.
3740         (Fset_charset_mapping_table): New implementation.
3741         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3742         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3743         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3744         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3745         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3746         charset `latin_viscii'.
3747
3748         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3749         (CHARSET_TYPE_94X94): Change to 1 from 2.
3750         (CHARSET_TYPE_96): Change to 2 from 1.
3751         (CHARSET_TYPE_128): New macro.
3752         (CHARSET_TYPE_128X128): Change to 5 from 4.
3753         (CHARSET_TYPE_256): New macro.
3754         (CHARSET_TYPE_256X256): Change to 7 from 5.
3755         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3756
3757 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3758
3759         * text-coding.c (char_encode_shift_jis): Refer
3760         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3761         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3762
3763         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3764         (char_byte_table_equal): New function in UTF-2000.
3765         (char_byte_table_hash): New function in UTF-2000.
3766         (char_byte_table_description): New constant in UTF-2000.
3767         (char_byte_table): New type in UTF-2000.
3768         (make_char_byte_table): New function in UTF-2000.
3769         (copy_char_byte_table): New function in UTF-2000.
3770         (make_char_code_table): New macro in UTF-2000.
3771         (get_char_code_table): New function in UTF-2000.
3772         (put_char_code_table): New function in UTF-2000.
3773         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3774         (charset_description): Add setting in UTF-2000.
3775         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3776         `CHARSET_TO_BYTE1_TABLE(cs)'.
3777         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3778         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3779         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3780         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3781         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3782         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3783         `CHARSET_TO_BYTE2_TABLE(cs)'.
3784
3785         * char-ucs.h (char_byte_table): New type.
3786         (XCHAR_BYTE_TABLE): New macro.
3787         (XSETCHAR_BYTE_TABLE): New macro.
3788         (CHAR_BYTE_TABLE_P): New macro.
3789         (GC_CHAR_BYTE_TABLE_P): New macro.
3790         (struct Lisp_Char_Byte_Table): New structure.
3791         (get_char_code_table): New interface.
3792         (Emchar_to_byte_table): Deleted.
3793         (get_byte_from_character_table): Deleted.
3794         (struct Lisp_Charset): Add `encoding_table'; delete
3795         `to_byte1_table' and `to_byte2_table'.
3796         (CHARSET_ENCODING_TABLE): New macro.
3797         (CHARSET_TO_BYTE1_TABLE): Deleted.
3798         (CHARSET_TO_BYTE2_TABLE): Deleted.
3799         (XCHARSET_ENCODING_TABLE): New macro.
3800         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3801         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3802
3803 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3804
3805         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3806         `vietnamese-viscii-*'.
3807
3808 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3809
3810         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3811         (Qvietnamese_viscii_upper): New variable.
3812         (Fdefine_charset_alias): New function.
3813         (syms_of_mule_charset): Add new function `define-charset-alias'.
3814         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3815         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3816         `latin-viscii-*'.
3817
3818 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3819
3820         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3821         (MAX_CHAR_OBS_94x94): New macro.
3822         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3823         for 94x94 sets.
3824
3825         * mule-charset.c (put_byte_from_character_table): Change unit size
3826         from 128 to 256.
3827         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3828         not defined.
3829         (Fmake_reverse_direction_charset): Modify dummy argument of
3830         `make_charset' for non-UTF-2000 environment.
3831
3832 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3833
3834         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3835
3836         * mule-charset.c (destroy_byte_from_character_table): New macro.
3837         (latin_jisx0201_to_ucs): Deleted.
3838         (latin_iso8859_2_to_ucs): Deleted.
3839         (latin_iso8859_3_to_ucs): Deleted.
3840         (latin_iso8859_4_to_ucs): Deleted.
3841         (latin_iso8859_9_to_ucs): Deleted.
3842         (latin_viscii_lower_to_ucs): Deleted.
3843         (latin_viscii_upper_to_ucs): Deleted.
3844         (mark_charset): Mark `cs->decoding_table'.
3845         (Fcharset_mapping_table): Fix DOC-string.
3846         (Fset_charset_mapping_table): New function.
3847         (syms_of_mule_charset): Add nwe function
3848         `set-charset-mapping-table'.
3849         (complex_vars_of_mule_charset): Don't setup and use
3850         `latin_*_to_ucs'.
3851
3852 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3853
3854         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3855         charset.
3856
3857 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3858
3859         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3860         (Vcharset_katakana_jisx0208): New variable.
3861         (Qhiragana_jisx0208): New variable.
3862         (Qkatakana_jisx0208): New variable.
3863         (make_charset): Add new argument `byte_offset'.
3864         (charset_get_byte1): Modify for new coded-charset definition; use
3865         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3866         `XCHARSET_BYTE_OFFSET'.
3867         (Fmake_charset): Modify for `make_charset'.
3868         (Fmake_reverse_direction_charset): Likewise.
3869         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3870         `katakana-jisx0208'.
3871         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3872         `.'  in font registry of charset `katakana-jisx0201',
3873         `latin-jisx0201', `vietnamese-viscii-lower' and
3874         `vietnamese-viscii-upper'; modify DOC-string of charset
3875         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3876         registry of charset `japanese-jisx0208' not to use font for JIS
3877         X0208:1990; add new charset `hiragana-jisx0208' and
3878         `katakana-jisx0208'.
3879
3880         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3881         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3882         (struct Lisp_Charset): Add `byte_offset'.
3883         (CHARSET_BYTE_OFFSET): New macro.
3884         (XCHARSET_UCS_MIN): New macro.
3885         (XCHARSET_UCS_MAX): New macro.
3886         (XCHARSET_CODE_OFFSET): New macro.
3887         (XCHARSET_BYTE_OFFSET): New macro.
3888         (MIN_CHAR_HIRAGANA): New macro.
3889         (MAX_CHAR_HIRAGANA): New macro.
3890         (MIN_CHAR_KATAKANA): New macro.
3891         (MAX_CHAR_KATAKANA): New macro.
3892         (MAKE_CHAR): Modify for new coded-charset definition; use
3893         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3894         `XCHARSET_BYTE_OFFSET'.
3895
3896 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3897
3898         * mule-charset.c (CHAR96): Deleted.
3899         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3900         <Lisp_Object>.
3901         (latin_iso8859_2_to_ucs): Likewise.
3902         (latin_iso8859_3_to_ucs): Likewise.
3903         (latin_iso8859_4_to_ucs): Likewise.
3904         (latin_iso8859_9_to_ucs): Likewise.
3905         (latin_viscii_lower_to_ucs): Likewise.
3906         (latin_viscii_upper_to_ucs): Likewise.
3907         (latin_tcvn5712_to_ucs): Commented out.
3908         (make_charset): Change type of argument `decoding_table' from
3909         <Emchar*> to <Lisp_Object> [vector of characters].
3910         (Fmake_charset): Modify for `make_charset'.
3911         (Fmake_reverse_direction_charset): Likewise.
3912         (Fcharset_mapping_table): New function in UTF-2000.
3913         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3914         UTF-2000.
3915         (complex_vars_of_mule_charset): Modify for type change of
3916         `*_to_ucs'; modify for `make_charset'.
3917
3918         * char-ucs.h (struct Lisp_Charset): Change type of
3919         `decoding_table' from <Emchar*> to <Lisp_Object>.
3920         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3921
3922 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3923
3924         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3925         error with non-UTF-2000-Mule.
3926
3927 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3928
3929         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3930         in lisp again].
3931         (Vcharset_chinese_cns11643_4): Likewise.
3932         (Vcharset_chinese_cns11643_5): Likewise.
3933         (Vcharset_chinese_cns11643_6): Likewise.
3934         (Vcharset_chinese_cns11643_7): Likewise.
3935         (Qchinese_cns11643_3): Likewise.
3936         (Qchinese_cns11643_4): Likewise.
3937         (Qchinese_cns11643_5): Likewise.
3938         (Qchinese_cns11643_6): Likewise.
3939         (Qchinese_cns11643_7): Likewise.
3940         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3941         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3942         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3943         (complex_vars_of_mule_charset): Likewise.
3944
3945 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3946
3947         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3948         96-set.
3949         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3950         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3951
3952 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3953
3954         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3955         0xFF60.
3956         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3957         (breakup_char_1): Likewise.
3958
3959         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3960         one of them includes the specified character.
3961
3962 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3963
3964         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3965
3966 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3967
3968         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3969
3970 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3971
3972         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3973         definition for non-UTF-2000 Mule.
3974         (latin_iso8859_3_to_ucs): Likewise.
3975         (latin_iso8859_4_to_ucs): Likewise.
3976         (latin_iso8859_9_to_ucs): Likewise.
3977         (latin_jisx0201_to_ucs): Likewise.
3978         (MIN_CHAR_THAI): Likewise.
3979         (MAX_CHAR_THAI): Likewise.
3980         (MIN_CHAR_GREEK): Likewise.
3981         (MAX_CHAR_GREEK): Likewise.
3982         (MIN_CHAR_HEBREW): Likewise.
3983         (MAX_CHAR_HEBREW): Likewise.
3984         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3985         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3986         (MIN_CHAR_CYRILLIC): Likewise.
3987         (MAX_CHAR_CYRILLIC): Likewise.
3988
3989 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3990
3991         * char-ucs.h (breakup_char_1): Use
3992         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3993         thai-tis620 and katakana-jisx0201 area.
3994
3995 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3996
3997         * char-ucs.h (breakup_char_1): Use
3998         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3999         area.
4000
4001         * text-coding.c (reset_encoding_stream): Fixed.
4002         (char_encode_ucs4): Delete `& 255'.
4003
4004         * char-ucs.h (breakup_char_1): Use
4005         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4006
4007 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4008
4009         * file-coding.c (Fmake_coding_system): Don't set up
4010         `codesys->fixed.size'.
4011         (encode_coding_no_conversion): Don't refer
4012         `str->codesys->fixed.size'.
4013
4014 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4015
4016         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4017         (latin_a_char_to_byte1): Deleted.
4018         (latin_a_char_to_byte2): Deleted.
4019
4020 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4021
4022         * mule-charset.c (make_charset): Add new argument `ucs_min',
4023         `ucs_max' and `code_offset'.
4024         (charset_get_byte1): New implementation [delete specific charset
4025         depended implementations].
4026         (Fmake_charset): Modify for `make_charset'.
4027         (Fmake_reverse_direction_charset): Likewise.
4028         (complex_vars_of_mule_charset): Likewise.
4029
4030         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4031         `code_offset'.
4032         (CHARSET_UCS_MIN): New macro.
4033         (CHARSET_UCS_MAX): New macro.
4034         (CHARSET_CODE_OFFSET): New macro.
4035         (MAKE_CHAR): Delete charset depended definitions [except
4036         katakana-jisx0201].
4037
4038 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4039
4040         * char-ucs.h (breakup_char_1): Use
4041         `Vdefault_coded_charset_priority_list' for C0-Controls,
4042         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4043
4044 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4045
4046         * char-ucs.h (charset_get_byte1): New function.
4047         (XCHARSET_GET_BYTE1): Deleted.
4048         (charset_get_byte2): New function.
4049         (XCHARSET_GET_BYTE2): Deleted.
4050         (Vdefault_coded_charset_priority_list): New external variable.
4051         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4052         `Vdefault_preferred_coded_charset_list'.
4053
4054         * mule-charset.c (charset_get_byte1): New function.
4055         (charset_get_byte2): New function.
4056         (Vdefault_coded_charset_priority_list): New variable.
4057         (vars_of_mule_charset): Add new variable
4058         `default-coded-charset-priority-list'.
4059
4060 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4061
4062         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4063         (XCHARSET_GET_BYTE2): New inline function.
4064         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4065         `XCHARSET_GET_BYTE2'.
4066
4067 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4068
4069         * mule-charset.c (make_charset): Initialize
4070         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4071         NULL if table is not defined.
4072
4073 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4074
4075         * text-coding.c (char_encode_shift_jis): Use
4076         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4077         `ucs_to_latin_jisx0201'.
4078
4079         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4080         (ucs_to_latin_iso8859_2): Deleted.
4081         (ucs_to_latin_iso8859_3): Deleted.
4082         (ucs_to_latin_iso8859_4): Deleted.
4083         (ucs_to_latin_iso8859_9): Deleted.
4084         (ucs_to_latin_viscii_lower): Deleted.
4085         (ucs_to_latin_viscii_upper): Deleted.
4086         (ucs_to_latin_tcvn5712): Deleted.
4087         (make_charset): Add new argument `decoding_table'; set up
4088         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4089         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4090         `decoding_table' is defined in UTF-2000.
4091         (Fmake_charset): Modify for `make_charset'.
4092         (Fmake_reverse_direction_charset): Likewise.
4093         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4094         and `GENERATE_96_SET'.
4095
4096         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4097         (ucs_to_latin_jisx0201): Deleted.
4098         (latin_iso8859_2_to_ucs): Deleted.
4099         (ucs_to_latin_iso8859_2): Deleted.
4100         (latin_iso8859_3_to_ucs): Deleted.
4101         (ucs_to_latin_iso8859_3): Deleted.
4102         (latin_iso8859_4_to_ucs): Deleted.
4103         (ucs_to_latin_iso8859_4): Deleted.
4104         (latin_iso8859_9_to_ucs): Deleted.
4105         (ucs_to_latin_iso8859_9): Deleted.
4106         (latin_viscii_lower_to_ucs): Deleted.
4107         (ucs_to_latin_viscii_lower): Deleted.
4108         (latin_viscii_upper_to_ucs): Deleted.
4109         (ucs_to_latin_viscii_upper): Deleted.
4110         (struct Lisp_Charset): Renamed `encoding_table' to
4111         `to_byte1_table'; add `to_byte2_table'.
4112         (CHARSET_DECODING_TABLE): New macro.
4113         (CHARSET_TO_BYTE1_TABLE): New macro.
4114         (CHARSET_TO_BYTE2_TABLE): New macro.
4115         (XCHARSET_DECODING_TABLE): New macro.
4116         (XCHARSET_TO_BYTE1_TABLE): New macro.
4117         (XCHARSET_TO_BYTE2_TABLE): New macro.
4118         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4119         tables.
4120         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4121         don't use `ucs_to_*' tables.
4122
4123 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4124
4125         * text-coding.c (Fmake_coding_system): Don't set up
4126         `codesys->fixed.size'.
4127         (encode_coding_no_conversion): Use `if' instead of `switch'.
4128
4129         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4130
4131 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4132
4133         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4134         (Fmake_charset): Modify for `make_charset'.
4135         (Fmake_reverse_direction_charset): Likewise.
4136         (complex_vars_of_mule_charset): Likewise.
4137
4138 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4139
4140         * text-coding.c (char_encode_shift_jis): Use table
4141         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4142
4143 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4144
4145         * text-coding.c (text_encode_generic): Use `if' instead of
4146         `switch'.
4147         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4148         decode JIS-Latin.
4149
4150 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4151
4152         * text-coding.c (encode_coding_sjis): Deleted.
4153         (char_encode_shift_jis): New function.
4154         (char_finish_shift_jis): New function.
4155         (reset_encoding_stream): Set up `encode_char' and `finish' for
4156         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4157         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4158         (char_encode_utf8): Treat `eol_type'.
4159
4160 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4161
4162         * file-coding.c (decode_coding_iso2022): Use
4163         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4164
4165 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4166
4167         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4168         to 0.7 (Hirano).
4169
4170 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4171
4172         * char-lb.h (CHAR_COLUMNS): New macro.
4173
4174 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4175
4176         * text-coding.c (char_encode_ucs4): New function.
4177         (char_finish_ucs4): New function.
4178         (encode_coding_ucs4): Deleted.
4179         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4180         (text_encode_generic): Delete local variable `charset' and `half'.
4181         (ucs_to_mule_table): Deleted.
4182         (mule_to_ucs_table): Deleted.
4183         (Fset_ucs_char): Deleted.
4184         (ucs_to_char): Deleted.
4185         (Fucs_char): Deleted.
4186         (Fset_char_ucs): Deleted.
4187         (Fchar_ucs): Deleted.
4188         (decode_ucs4): Deleted.
4189         (mule_char_to_ucs4): Deleted.
4190         (encode_ucs4): Deleted.
4191         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4192         (decode_coding_utf8): Likewise.
4193         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4194         (char_encode_iso2022): Fixed.
4195         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4196         `Fset_char_ucs' and `Fchar_ucs'.
4197         (complex_vars_of_file_coding): Don't initialize
4198         `ucs_to_mule_table'.
4199
4200         * objects-tty.c (tty_initialize_font_instance): Don't use
4201         `XCHARSET_COLUMNS'.
4202
4203         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4204         UTF-2000.
4205
4206         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4207         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4208
4209         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4210         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4211         (emchar_string_displayed_columns): Likewise.
4212
4213         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4214         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4215         (string_column_at_point): Likewise.
4216         (Fmove_to_column): Likewise.
4217
4218         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4219         `encoding_table' and `decoding_table'.
4220         (CHARSET_REP_BYTES): Deleted.
4221         (XCHARSET_REP_BYTES): Deleted.
4222         (XCHARSET_COLUMNS): Deleted.
4223         (CHAR_COLUMNS): New macro.
4224         (lookup_composite_char): Deleted unconditionally.
4225         (composite_char_string): Likewise.
4226
4227 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4228
4229         * char-ucs.h (Emchar_to_byte_table): New type.
4230         (get_byte_from_character_table): New function interface.
4231         (Vcharset_latin_jisx0201): New variable.
4232         (latin_jisx0201_to_ucs): New variable.
4233         (ucs_to_latin_jisx0201): New variable.
4234         (Vcharset_latin_iso8859_2): New variable.
4235         (latin_iso8859_2_to_ucs): New variable.
4236         (ucs_to_latin_iso8859_2): New variable.
4237         (Vcharset_latin_iso8859_3): New variable.
4238         (latin_iso8859_3_to_ucs): New variable.
4239         (ucs_to_latin_iso8859_3): New variable.
4240         (Vcharset_latin_iso8859_4): New variable.
4241         (latin_iso8859_4_to_ucs): New variable.
4242         (ucs_to_latin_iso8859_4): New variable.
4243         (Vcharset_latin_iso8859_9): New variable.
4244         (latin_iso8859_9_to_ucs): New variable.
4245         (ucs_to_latin_iso8859_9): New variable.
4246         (Vcharset_latin_viscii_lower): New variable.
4247         (latin_viscii_lower_to_ucs): New variable.
4248         (ucs_to_latin_viscii_lower): New variable.
4249         (Vcharset_latin_viscii_upper): New variable.
4250         (latin_viscii_upper_to_ucs): New variable.
4251         (ucs_to_latin_viscii_upper): New variable.
4252         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4253         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4254         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4255         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4256         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4257         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4258         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4259         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4260         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4261         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4262
4263         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4264         (Vcharset_latin_viscii_upper): New variable.
4265         (make_byte_from_character_table): New function.
4266         (put_byte_from_character_table): New function.
4267         (get_byte_from_character_table): New function.
4268         (CHAR96): New macro.
4269         (ucs_to_latin_jisx0201): New variable.
4270         (latin_jisx0201_to_ucs): New variable.
4271         (ucs_to_latin_iso8859_2): New variable.
4272         (latin_iso8859_2_to_ucs): New variable.
4273         (ucs_to_latin_iso8859_3): New variable.
4274         (latin_iso8859_3_to_ucs): New variable.
4275         (ucs_to_latin_iso8859_4): New variable.
4276         (latin_iso8859_4_to_ucs): New variable.
4277         (ucs_to_latin_iso8859_9): New variable.
4278         (latin_iso8859_9_to_ucs): New variable.
4279         (ucs_to_latin_viscii_lower): New variable.
4280         (latin_viscii_lower_to_ucs): New variable.
4281         (ucs_to_latin_viscii_upper): New variable.
4282         (latin_viscii_upper_to_ucs): New variable.
4283         (ucs_to_latin_tcvn5712): New variable.
4284         (latin_tcvn5712_to_ucs): New variable.
4285         (Qlatin_viscii_lower): New variable.
4286         (Qlatin_viscii_upper): New variable.
4287         (syms_of_mule_charset): Set up new symbol
4288         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4289         (complex_vars_of_mule_charset): Set up new charset
4290         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4291         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4292         `ucs_to_<CHARSET>' tables.
4293
4294 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4295
4296         * text-coding.c: New file.
4297
4298 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4299
4300         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4301
4302         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4303         (MAKE_CHAR): Modify for `ucs-bmp'.
4304         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4305         non-MULE characters of BMP.
4306
4307 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4308
4309         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4310         to 0.6.
4311
4312 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4313
4314         * lstream.h:
4315         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4316         - Include character.h for `CHAR_ASCII_P'.
4317
4318         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4319
4320         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4321         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4322
4323         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4324         (BYTE_C0_P): Likewise.
4325         (BYTE_C1_P): Likewise.
4326         (Lstream_get_emchar_1): Likewise.
4327         (Lstream_fput_emchar): Likewise.
4328         (Lstream_funget_emchar): Likewise.
4329         (copy_internal_to_external): Likewise.
4330         (copy_external_to_internal): Likewise.
4331
4332         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4333         (BYTE_C0_P): Likewise.
4334         (BYTE_C1_P): Likewise.
4335         (Lstream_get_emchar_1): Likewise.
4336         (Lstream_fput_emchar): Likewise.
4337         (Lstream_funget_emchar): Likewise.
4338         (copy_internal_to_external): Likewise.
4339         (copy_external_to_internal): Likewise.
4340
4341         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4342         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4343
4344         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4345         (BYTE_ASCII_P): Moved to mb-1byte.h.
4346
4347 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4348
4349         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4350
4351         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4352         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4353         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4354         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4355         (VALIDATE_CHARPTR_FORWARD): Likewise.
4356         (simple_charptr_emchar): Moved to mb-multibyte.h.
4357         (simple_set_charptr_emchar): Likewise.
4358         (simple_charptr_copy_char): Likewise.
4359         (non_ascii_charptr_emchar): Likewise.
4360         (non_ascii_set_charptr_emchar): Likewise.
4361         (non_ascii_charptr_copy_char): Likewise.
4362         (charptr_emchar): Moved to mb-*byte.h.
4363         (set_charptr_emchar): Likewise.
4364         (charptr_copy_char): Likewise.
4365
4366         * mb-1byte.h, mb-multibyte.h: New files.
4367
4368 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4369
4370         * mb-utf-8.h (MULTIBYTE): New macro.
4371         (MAX_EMCHAR_LEN): Moved from buffer.h.
4372         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4373
4374         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4375
4376         * mb-lb.h, multibyte.h: New files.
4377
4378         * char-1byte.h (Charset_ID): Moved from buffer.h.
4379         (MIN_LEADING_BYTE): Likewise.
4380         (LEADING_BYTE_ASCII): Likewise.
4381         (NUM_LEADING_BYTES): Likewise.
4382         (CHARSETP): Likewise.
4383         (CHARSET_BY_LEADING_BYTE): Likewise.
4384         (XCHARSET_LEADING_BYTE): Likewise.
4385         (XCHARSET_GRAPHIC): Likewise.
4386         (XCHARSET_COLUMNS): Likewise.
4387         (XCHARSET_DIMENSION): Likewise.
4388         (CHAR_CHARSET): Likewise.
4389         (CHAR_LEADING_BYTE): Likewise.
4390         (BREAKUP_CHAR): Likewise.
4391         (Vcharset_ascii): Likewise.
4392
4393         * buffer.h: Include multibyte.h unconditionally.
4394         (VALID_CHARPTR_P): Moved to multibyte.h.
4395         (ASSERT_VALID_CHARPTR): Likewise.
4396         (REAL_INC_CHARPTR): Likewise.
4397         (REAL_INC_CHARBYTIND): Likewise.
4398         (REAL_DEC_CHARPTR): Likewise.
4399         (INC_CHARPTR): Likewise.
4400         (INC_CHARBYTIND): Likewise.
4401         (DEC_CHARPTR): Likewise.
4402         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4403         (VALIDATE_CHARPTR_FORWARD): Likewise.
4404         (charptr_n_addr): Likewise.
4405         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4406         (simple_charptr_emchar): Moved to multibyte.h.
4407         (simple_set_charptr_emchar): Likewise.
4408         (simple_charptr_copy_char): Likewise.
4409         (non_ascii_charptr_emchar): Likewise.
4410         (non_ascii_set_charptr_emchar): Likewise.
4411         (non_ascii_charptr_copy_char): Likewise.
4412         (charptr_emchar): Likewise.
4413         (set_charptr_emchar): Likewise.
4414         (charptr_copy_char): Likewise.
4415         (charptr_emchar_n): Likewise.
4416         (Charset_ID): Moved to char-1byte.h.
4417         (Vcharset_ascii): Likewise.
4418         (CHAR_CHARSET): Likewise.
4419         (CHAR_LEADING_BYTE): Likewise.
4420         (LEADING_BYTE_ASCII): Likewise.
4421         (NUM_LEADING_BYTES): Likewise.
4422         (MIN_LEADING_BYTE): Likewise.
4423         (CHARSETP): Likewise.
4424         (CHARSET_BY_LEADING_BYTE): Likewise.
4425         (XCHARSET_LEADING_BYTE): Likewise.
4426         (XCHARSET_GRAPHIC): Likewise.
4427         (XCHARSET_COLUMNS): Likewise.
4428         (XCHARSET_DIMENSION): Likewise.
4429         (BREAKUP_CHAR): Likewise.
4430
4431 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4432
4433         * character.h: Add document about interface for characters.
4434
4435         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4436         (MAKE_CHAR): Delete comment about
4437         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4438         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4439         (BREAKUP_CHAR): Modify name of arguments.
4440         (CHAR_CHARSET): Modify name of argument.
4441
4442         * buffer.h: Delete document about Emchar accessors.
4443
4444 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4445
4446         * character.h (CHAR_INTP): Moved from buffer.h
4447         (CHAR_OR_CHAR_INTP): Likewise.
4448         (XCHAR_OR_CHAR_INT): Likewise.
4449         (CHECK_CHAR_COERCE_INT): Likewise.
4450
4451         * buffer.h (CHAR_INTP): Moved to character.h
4452         (CHAR_OR_CHAR_INTP): Likewise.
4453         (XCHAR_OR_CHAR_INT): Likewise.
4454         (CHECK_CHAR_COERCE_INT): Likewise.
4455
4456 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4457
4458         * character.h:
4459         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4460         - Include char-1byte.h, char-lb.h or char-ucs.h.
4461
4462         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4463
4464         * buffer.h: Include character unconditionally.
4465         (valid_char_p): Moved to char-*.h.
4466         (non_ascii_valid_char_p): Moved to char-lb.h.
4467
4468         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4469
4470 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4471
4472         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4473         in UTF-2000 because it is not ported yet and not to use
4474         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4475         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4476         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4477
4478         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4479         (CHAR_ASCII_P): Moved from character.h.
4480
4481         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4482         (CHAR_ASCII_P): Likewise.
4483         (CHAR_FIELD1_MASK): Deleted.
4484         (CHAR_FIELD2_MASK): Deleted.
4485         (CHAR_FIELD3_MASK): Deleted.
4486         (MAX_CHAR_BASIC_LATIN): New macro.
4487         (CHAR_FIELD1): Deleted.
4488         (CHAR_FIELD2_INTERNAL): Deleted.
4489         (CHAR_FIELD3_INTERNAL): Deleted.
4490         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4491         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4492         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4493         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4494         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4495         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4496         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4497         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4498         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4499         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4500         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4501         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4502         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4503         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4504         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4505         (MIN_CHAR_COMPOSITION): Deleted.
4506         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4507         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4508
4509 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4510
4511         * buffer.h: Include mb-utf-8.h in UTF-2000.
4512
4513         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4514
4515         * mb-utf-8.h: New file.
4516
4517 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4518
4519         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4520         instead of `int'.
4521
4522         * mule-charset.h, buffer.h (Charset_ID): New type.
4523
4524 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4525
4526         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4527         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4528         instead of `MULE_CHAR_PRIVATE_OFFSET',
4529         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4530         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4531         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4532
4533         * character.h (Vcharset_japanese_jisx0212): New variable
4534         definition.
4535
4536 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4537
4538         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4539         (charset_by_attributes): Delete array about direction.
4540         (latin_a_char_to_charset): New variable in UTF-2000.
4541         (latin_a_char_to_byte1): New variable in UTF-2000.
4542         (latin_a_char_to_byte2): New variable in UTF-2000.
4543         (Qucs_bmp): New variable.
4544         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4545         `Bufbyte'.
4546         (next_allocated_2_byte_leading_byte): Likewise.
4547         (non_ascii_set_charptr_emchar): Likewise.
4548         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4549         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4550         `charset_by_attributes'.
4551         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4552         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4553         and `CHARSET_BY_LEADING_BYTE'.
4554         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4555         `utf-2000-version' to `vars_of_mule_charset'.
4556         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4557         define `leading-code-private-11' in UTF-2000; move setting of
4558         `utf-2000-version' from `syms_of_mule_charset'.
4559         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4560         UTF-2000.
4561
4562         * character.h (Charset_ID): New type.
4563         (LEADING_BYTE_UCS_BMP): New macro.
4564         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4565         (CHARSET_ID_OFFSET_94): New macro.
4566         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4567         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4568         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4569         final-byte.
4570         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4571         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4572         (CHARSET_ID_OFFSET_96): New macro.
4573         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4574         CHARSET_ID_OFFSET_96 and final-byte.
4575         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4576         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4577         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4578         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4579         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4580         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4581         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4582         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4583         (LEADING_BYTE_THAI_TIS620): Likewise.
4584         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4585         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4586         (CHARSET_ID_OFFSET_94x94): New macro.
4587         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4588         CHARSET_ID_OFFSET_94x94 and final-byte.
4589         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4590         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4591         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4592         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4593         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4594         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4595         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4596         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4597         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4598         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4599         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4600         (CHARSET_TYPE_128X128): New macro.
4601         (CHARSET_TYPE_256X256): New macro.
4602         (XCHARSET_PRIVATE_P): Delete unconditionally.
4603         (charset_by_attributes): Delete array about direction.
4604         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4605         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4606         (MIN_CHAR_94): New macro.
4607         (MAX_CHAR_94): New macro.
4608         (MIN_CHAR_96): New macro.
4609         (MAX_CHAR_96): New macro.
4610         (MIN_CHAR_94x94): New macro.
4611         (MAX_CHAR_94x94): New macro.
4612         (MIN_CHAR_96x96): New macro.
4613         (MAX_CHAR_96x96): New macro.
4614         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4615         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4616         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4617         - 32)'.
4618         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4619         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4620         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4621         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4622         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4623         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4624         `XCHARSET_LEADING_BYTE' to make code-point.
4625         (latin_a_char_to_charset): New variable.
4626         (latin_a_char_to_byte1): New variable.
4627         (latin_a_char_to_byte2): New variable.
4628         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4629         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4630         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4631
4632         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4633         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4634         (find_charsets_in_emchar_string): Likewise.
4635         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4636
4637         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4638         `int'.
4639         (decode_coding_iso2022): Likewise.
4640
4641         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4642         of `unsigned char'.
4643
4644         * redisplay.c (redisplay_text_width_emchar_string): Use
4645         `Charset_ID' instead of `unsigned char'.
4646         (redisplay_frame_text_width_string): Likewise.
4647
4648         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4649         `unsigned char'.
4650
4651         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4652         instead of `unsigned char'.
4653         (face_cachel_charset_font_metric_info): Likewise.
4654
4655         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4656         (get_non_ascii_char_table_value): Likewise.
4657         (get_char_table): Likewise.
4658         (put_char_table): Likewise.
4659         (map_over_other_charset): Likewise.
4660         (map_char_table): Likewise.
4661
4662         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4663         instead of `unsigned char'.
4664
4665 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4666
4667         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4668         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4669
4670         * mule-charset.c (leading_code_private_11): Don't define in
4671         UTF-2000.
4672
4673         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4674         in UTF-2000 because it is not ported yet and not to use
4675         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4676
4677 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4678
4679         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4680
4681 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4682
4683         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4684         in UTF-2000.
4685
4686         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4687         of unsigned char to store leading-byte.
4688
4689         * chartab.c (get_non_ascii_char_table_value): Don't use
4690         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4691
4692         * file-coding.c (encode_coding_big5): Delete bogus implementation
4693         in UTF2000.
4694
4695         * character.h (LEADING_BYTE_*): Delete definition for
4696         non-UTF-2000.
4697         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4698         (LEADING_BYTE_PREFIX_P): Deleted.
4699         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4700         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4701         (BUFBYTE_LEADING_BYTE_P): Deleted.
4702         (CHARSET_PRIVATE_P): Deleted unconditionally.
4703         (rep_bytes_by_first_byte): Deleted unconditionally.
4704         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4705         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4706         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4707         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4708         (CHAR_FIELD2): Deleted.
4709         (CHAR_FIELD3): Deleted.
4710         (MAKE_CHAR): Delete definition for non-UTF-2000.
4711         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4712         (breakup_char_1): New implementation.
4713         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4714         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4715
4716 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4717
4718         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4719         condition.
4720
4721 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4722
4723         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4724         (CHARSET_PRIVATE_P): Likewise.
4725         (XCHARSET_PRIVATE_P): Likewise.
4726         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4727
4728         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4729         UTF2000.
4730         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4731
4732 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4733
4734         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4735         (NUM_LEADING_BYTES): Changed from 128 to 256.
4736         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4737         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4738         UTF2000.
4739         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4740
4741         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4742         UTF2000.
4743         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4744         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4745         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4746         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4747         (Qchinese_cns11643_3): New variable in UTF2000.
4748         (Qchinese_cns11643_4): New variable in UTF2000.
4749         (Qchinese_cns11643_5): New variable in UTF2000.
4750         (Qchinese_cns11643_6): New variable in UTF2000.
4751         (Qchinese_cns11643_7): New variable in UTF2000.
4752         (syms_of_mule_charset): Define `chinese-cns11643-3',
4753         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4754         and `chinese-cns11643-7' in UTF2000.
4755         (vars_of_mule_charset): Initialize
4756         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4757         + 1 in UTF2000.
4758         (complex_vars_of_mule_charset): Setup charset
4759         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4760         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4761
4762 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4763
4764         * mule-charset.c: Move setting for `leading-code-private-11' from
4765         `syms_of_mule_charset' to `vars_of_mule_charset'.
4766
4767 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4768
4769         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4770         and `NUM_LEADING_BYTES' in assert.
4771
4772 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4773
4774         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4775         instead of 128.
4776         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4777         `NUM_LEADING_BYTES' instead of 128.
4778
4779 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4780
4781         * mule-charset.h (charset_by_leading_byte): Use
4782         `NUM_LEADING_BYTES' instead of 128.
4783         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4784
4785         * mule-charset.c (charset_by_leading_byte): Use
4786         `NUM_LEADING_BYTES' instead of 128.
4787         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4788
4789         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4790         128.
4791
4792 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4793
4794         * mule-charset.c (syms_of_mule_charset): Update to
4795         0.4 (Shin-Imamiya).
4796
4797 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4798
4799         * file-coding.c (encode_coding_sjis): New implementation for
4800         UTF2000.  (decode_coding_sjis): Ditto.
4801
4802 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4803
4804         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4805         Don't define in UTF2000.
4806
4807         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4808         defined.
4809
4810         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4811         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4812         MULE.
4813
4814 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4815
4816         * config.h.in (CHAR_IS_UCS4): New macro.
4817
4818         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4819         conventional MULE representation.
4820         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4821
4822         * mule-charset.h: Reverted to original.
4823
4824         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4825         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4826         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4827
4828         * character.h: New file.
4829
4830         * file-coding.c (Fmake_coding_system): Set 1 to
4831         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4832         defined.
4833         (encode_coding_no_conversion): New implementation for UTF2000.
4834
4835         * file-coding.h (struct Lisp_Coding_System): Add new member
4836         `fixed.size'.
4837
4838 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4839
4840         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4841         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4842         (encode_coding_iso2022): New implementation for UTF2000.
4843
4844 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4845
4846         * mule-canna.c (c2mu): New implementation for UTF2000.
4847         (m2c): Likewise.
4848
4849 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4850
4851         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4852
4853 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4854
4855         * file-coding.c (reset_encoding_stream): Set 0 to
4856         `str->iso2022.current_char_boundary' in UTF2000.
4857         (encode_utf8): Don't define in UTF2000.
4858         (encode_coding_utf8): New implementation for UTF-8 representation
4859         of UTF2000.
4860         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4861
4862 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4863
4864         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4865
4866         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4867         UTF2000.
4868         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4869
4870         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4871
4872         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4873         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4874         as UTF-8 in UTF2000.
4875         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4876         (non_ascii_valid_char_p): Don't define in UTF2000.
4877         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4878         (Lstream_get_emchar_1): Likewise.
4879         (utf-2000-version): New variable in UTF2000.
4880
4881         * lread.c (read_escape): Add new reader `u'.
4882
4883         * insdel.c (three_to_one_table): Don't define in UTF2000.
4884         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4885         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4886         UTF2000.
4887         (bytind_to_bufpos_func): Likewise.
4888         (buffer_mule_signal_inserted_region): Likewise.
4889         (vars_of_insdel): Don't initialize `three_to_one_table'.
4890         (init_buffer_text): Use `buf->text->mule_size' instead of
4891         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4892         UTF2000.
4893
4894         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4895         UTF-8 representation in UTF2000.
4896         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4897         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4898         (decode_coding_iso2022): Don't define local variable `lb' in
4899         UTF2000; don't use LEADING_BYTE in UTF2000; use
4900         `DECODE_ADD_UCS_CHAR' in UTF2000.
4901         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4902
4903         * config.h.in (UTF2000): New macro.
4904
4905         * buffer.h (struct buffer_text): Add new member `mule_size' and
4906         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4907         (valid_char_p): Return always 1 in UTF2000.
4908         (MAX_EMCHAR_LEN): 6 in UTF2000.
4909         (three_to_one_table): Don't define in UTF2000.
4910         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4911         UTF2000.
4912         (real_bytind_to_bufpos): Likewise.
4913
4914         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4915
4916 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4917
4918         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4919         representation change.
4920         (Vutf_2000_version): New variable.
4921         (leading_code_private_11): New variable.
4922         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4923         `leading-code-private-11'.
4924
4925         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4926         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4927         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4928         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4929         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4930         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4931         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4932         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4933         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4934         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4935         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4936         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4937         (MIN_CHAR_GREEK): New macro.
4938         (MAX_CHAR_GREEK): New macro.
4939         (MIN_CHAR_CYRILLIC): New macro.
4940         (MAX_CHAR_CYRILLIC): New macro.
4941         (MIN_CHAR_HEBREW): New macro.
4942         (MAX_CHAR_HEBREW): New macro.
4943         (MIN_CHAR_THAI): New macro.
4944         (MAX_CHAR_THAI): New macro.
4945         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4946         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4947         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4948         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4949         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4950         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4951         (CHAR_FIELD2): New inline function.
4952         (CHAR_FIELD3): New inline function.
4953         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4954         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4955         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4956         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4957         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4958         (MIN_CHAR_COMPOSITION): Likewise.
4959         (CHAR_LEADING_BYTE): Modified for character representation change.
4960         (MAKE_CHAR): Likewise.
4961
4962         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4963         (Vcharset_greek_iso8859_7): Likewise.
4964         (Vcharset_cyrillic_iso8859_5): Likewise.
4965         (Vcharset_hebrew_iso8859_8): Likewise.
4966         (Vcharset_thai_tis620): Likewise.
4967         (Vcharset_katakana_jisx0201): Likewise.
4968
4969 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
4970
4971         * XEmacs 21.4.12 "Portable Code" is released.
4972
4973 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
4974
4975         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
4976         * s/cygwin.sc: new linker file.
4977
4978 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
4979
4980         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
4981
4982         * redisplay-x.c (x_output_string): Use X11-specified types.
4983         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
4984         * emacs.c (__free_hook): Use typeof with Intel compiler.
4985         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
4986
4987 2003-01-08  Andy Piper  <andy@xemacs.org>
4988
4989         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
4990         reserve size during unexec().
4991
4992 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
4993
4994         * process-unix.c (unix_create_process): Don't let outchannel block.
4995
4996 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
4997
4998         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
4999         Needed for IsBadReadPtr().
5000
5001 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5002
5003         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5004
5005 2002-12-14  Ben Wing  <ben@xemacs.org>
5006
5007         * callint.c: Declaration error.
5008         * dumper.c (pdump):
5009         * dumper.c (pdump_load): Warning fix.
5010         * process.c: GCPRO error.
5011         * glyphs.c (unmap_subwindow):
5012         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5013         * event-stream.c (maybe_kbd_translate): Wrong argument to
5014         character_to_event().
5015
5016         * alloc.c (garbage_collect_1):
5017         * emacs.c:
5018         * emacs.c (debug_can_access_memory):
5019         * emacs.c (fatal_error_signal):
5020         * emacs.c (mswindows_handle_hardware_exceptions):
5021         * emacs.c (main_1):
5022         * emacs.c (main):
5023         * emacs.c (assert_failed):
5024         * emacs.c (syms_of_emacs):
5025         * lisp.h:
5026         * print.c:
5027         * print.c (std_handle_out_va):
5028         * print.c (write_string_to_stdio_stream):
5029         * print.c (write_fmt_string):
5030         * print.c (printing_badness):
5031         * print.c (printing_major_badness):
5032         * print.c (print_internal):
5033         * print.c (debug_print_no_newline):
5034         * print.c (debug_backtrace):
5035         Be more defensive in handling bad values when printing.  Add code
5036         from trunk involving inhibit_non_essential_printing_operations.
5037         When going down or in debug_print(), don't do external conversion
5038         and such and try really, really hard when printing to avoid core
5039         dumping.  Add force-debugging-signal, debug_break().
5040
5041 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5042
5043         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5044         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5045
5046 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5047
5048         * database.c: Fix open_database. Berkeley DB API has changed in
5049         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5050
5051 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5052
5053         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5054
5055 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5056
5057         * event-Xt.c (Xt_timeout):
5058         (Xt_timeout_callback):
5059         (emacs_Xt_add_timeout):
5060         (emacs_Xt_remove_timeout):
5061         (Xt_timeout_to_emacs_event):
5062         Turn completed_timeouts from a stack into a queue.  Fixes
5063         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5064
5065 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5066
5067         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5068         * emacs.c (main): Assert that mmap'd allocation is disabled.
5069
5070 2002-10-14  Andy Piper  <andy@xemacs.org>
5071
5072         * glyphs-widget.c (layout_query_geometry): add in fiddle
5073         factor. Include border text in width layout calculation.
5074         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5075
5076 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5077
5078         * XEmacs 21.4.10 "Military Intelligence" is released.
5079
5080 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5081
5082         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5083         using the NAS private array SoundFileInfo that no longer exists in
5084         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5085         and earlier.  This is broken for some versions between 1.5a and
5086         1.5f.
5087
5088 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5089
5090         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5091
5092         * emacs.c (shut_down_emacs): Improve crash message.
5093
5094 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5095
5096         * file-coding.c (determine_real_coding_system): Check for coding
5097         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5098         shebangs and Python PEP 263.
5099
5100 2002-10-08  Andy Piper  <andy@xemacs.org>
5101
5102         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5103         if static sizes haven't been set.
5104
5105 2002-08-30  Mike Alexander  <mta@arbortext.com>
5106
5107         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5108         to close a socket.
5109
5110 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5111
5112         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5113
5114 2002-09-20  Mike Sperber <mike@xemacs.org>
5115
5116         (This partially gets back my patch from 2002-07-20 without the
5117         bug.)
5118         * callproc.c (child_setup): Remove Ben's comment noting confusion
5119         over the file descriptors >= 3: close_process_descs() doesn't
5120         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5121         * process-unix.c (unix_create_process): Call
5122         begin_dont_check_for_quit to inhibit unwanted interaction (and
5123         thus breaking of X event synchronicity) in the child.
5124
5125 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5126
5127         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5128         widget.
5129
5130 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5131
5132         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5133         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5134         the xemacs process did not exit, but looped infinitely here.  This
5135         fixes that problem.
5136
5137 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5138
5139         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5140         (find_context): Improve comments.
5141
5142         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5143         (re_match_2): An XCHAR_TABLE operation was missing.
5144
5145         Many of the following changes were inspired by Andy Piper's (now
5146         obsolete) patch to make syntax-table text property lookup optional.
5147
5148         [Documentation]
5149
5150         * syntax.h (top level): Document semantics of syntax flags.
5151         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5152         * syntax.c, syntax.h (top level): Document syntax cache better in
5153         comments.
5154
5155         [Instrument syntax caching (temporary change)]
5156
5157         * syntax.h (enum syntax_cache_statistics_functions, struct
5158         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5159         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5160         * syntax.c (scan_words, Fforward_comment, scan_lists,
5161         Fbackward_prefix_characters):
5162         * font-lock.c (find_context):
5163         Use them to instrument syntax caching. 
5164         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5165         syntax_cache_statistics_function_names): New type and variables.
5166         * syntax.c (update_syntax_cache): Update and report statistics.
5167
5168         [Major syntax cache optimizations]
5169
5170         syntax.c (lookup_syntax_properties): Default off.
5171
5172         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5173         * syntax.c (update_syntax_cache):
5174         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5175
5176         [Minor syntax cache optimizations and code clarifications]
5177
5178         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5179         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5180         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5181         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5182         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5183         (Code clarification.)
5184
5185         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5186         scan_lists): Compute code from syncode, use Boolean macros instead
5187         of redundant masking operations.  (Code clarification; any decent
5188         compiler can do this optimization.)
5189
5190         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5191         for clarity.
5192
5193         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5194         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5195         use F*_single_property_change instead of F*_extent_change.
5196         Currently F*_single_property_change is _much_ less efficient.
5197
5198         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5199         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5200         syntax_cache.object properly, don't leave Qt or Qnil.
5201         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5202         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5203         tests for Qt or Qnil.
5204
5205 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5206
5207         * redisplay.c (point_in_line_start_cache): 
5208         * extents.c (print_extent_1):
5209         Fix warnings.
5210
5211         * extents.c (Fset_extent_property): Document `syntax-table' property.
5212
5213         * extents.h (Fnext_single_property_change): EXFUN it.
5214
5215 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5216
5217         * search.c (clear_unused_search_regs): New static function.
5218         (search_buffer): 
5219         (simple_search): 
5220         (boyer_moore):
5221         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5222         Minor clarifications in comments.
5223
5224         * regex.c (re_match_2_internal): Ensure no stale submatches.
5225
5226 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5227
5228         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5229
5230 2002-08-29  Jerry James  <james@xemacs.org>
5231
5232         * lisp.h: structrures -> structures.
5233
5234 2002-06-03  Andy Piper  <andy@xemacs.org>
5235
5236         * frame.c (frame_conversion_internal): add conversion appropriate
5237         for setting frame dimensions in pixels.
5238
5239         * console.h (struct console_methods): add device-specific widget
5240         layout functions.
5241
5242         * emacs.c (main_1): initialize glyph vars.
5243
5244         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5245         (handle_focus_event_2): new function. Allow focus to
5246         be set to a particular window and widget.
5247         (enqueue_focus_event): new function. Create a
5248         synthetic focus event.
5249         (emacs_Xt_handle_magic_event): call
5250         handle_focus_event_2.
5251
5252         * frame.c (Fset_frame_pixel_height): new function. Allow
5253         pixel-based sizing. Does the right thing on character-oriented
5254         displays.
5255         (Fset_frame_pixel_width): ditto.
5256         (Fset_frame_pixel_size): ditto.
5257         (syms_of_frame): declare.
5258
5259         * general-slots.h: add :vertically-justify and
5260         :horizontally-justify.
5261
5262         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5263         (mswindows_widget_border_width): new function.
5264         (mswindows_combo_box_instantiate): set border widths.
5265         (console_type_create_glyphs_mswindows): declare.
5266
5267         * glyphs-widget.c:
5268         (check_valid_justification): allow vertical and horizontal
5269         justification.
5270         (widget_border_width): new function. Call device methods.
5271         (widget_instance_border_width): ditto.
5272         (logical_unit_height): new function. Determine the height of a
5273         logical-unit. Logical units are intended to provide grid-like
5274         layout for subcontrols in a layout. If the layout is
5275         :vertically-justify top then subcontrols will be positioned on
5276         logical-unit boundaries, thus allowing adjacent subcontrols to
5277         line up.
5278         (widget_logical_unit_height): ditto for widgets.
5279         (redisplay_widget): misc cleanup.
5280         (widget_spacing): new function. Call device specific
5281         methods. Intended to be the default gap between adjacent widgets.
5282         (widget_query_geometry): use new spacing functions to determine
5283         appropriate geometry.
5284         (initialize_widget_image_instance): initialize horizontal and
5285         vertical justification.
5286         (widget_instantiate): use logica-units where appropriate for
5287         sizing large widgets.
5288         (button_query_geometry): use widget_instance_border_width.
5289         (tree_view_query_geometry): ditto.
5290         (tab_control_query_geometry): ditto.
5291         (edit_field_query_geometry): new function.
5292         (layout_update): pick up :justify, :horizontally-justify and
5293         :vertically-justify none of which worked previously. :justify is
5294         used as a fallback for both horizontal and vertical justification.
5295         (layout_query_geometry): use logical units to size appropriately.
5296         (layout_layout): ditto.
5297         (Fwidget_logical_to_character_width): new function. Allow users to
5298         convert from logical units to characters so that frame sizes can
5299         be set appropriately.
5300         (Fwidget_logical_to_character_height): ditto.
5301         (syms_of_glyphs_widget): declare.
5302         (image_instantiator_edit_fields): add edit_field_query_geometry.
5303         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5304         :horizontally-justify.
5305         (specifier_vars_of_glyphs_widget): new function. Declare
5306         Vwidget_border_width which is not yet used.
5307
5308         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5309         (x_widget_border_width): new function.
5310         (x_widget_instantiate): create a sensible name for widgets.
5311         (console_type_create_glyphs_x): declare x_widget_border_width.
5312
5313         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5314         (struct Lisp_Image_Instance): add :vertically-justify and
5315         :horizontally-justify.
5316         (LAYOUT_JUSTIFY_TOP): new.
5317         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5318         (ROUND_UP): new macro. Round argument up to next integral
5319         interval.
5320
5321         * redisplay-output.c (redisplay_output_layout): misc formatting.
5322
5323         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5324
5325 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5326
5327         * XEmacs 21.4.9 "Informed Management" is released.
5328
5329 2002-08-19  Andy Piper  <andy@xemacs.org>
5330
5331         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5332         win32 format.
5333
5334         * realpath.c (xrealpath): normalize drive spec also so that dir
5335         sep chars are not mixed on cygwin.
5336
5337 2002-08-06  Jerry James  <james@xemacs.org>
5338
5339         * window.c (Fsplit_window): Count only half of the divider width
5340         against the left window when splitting horizontally. 
5341
5342 2002-06-24  Andy Piper  <andy@xemacs.org>
5343
5344         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5345         toolbar was cleared.
5346
5347         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5348         function. Split out from mswindows_output_frame_toolbars.
5349         (mswindows_output_frame_toolbars): move clear pieces to
5350         mswindows_output_frame_toolbars.
5351
5352         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5353         out from gtk_output_frame_toolbars.
5354         (gtk_output_frame_toolbars): move clear pieces to
5355         gtk_clear_frame_toolbars.
5356
5357         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5358         the frame is cleared. How this ever worked before is a mystery.
5359         (x_output_frame_toolbars): Only output toolbars.
5360         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5361
5362         * gutter.c (update_gutter_geometry):
5363         Mark frame layout changed.
5364         (update_frame_gutter_geometry, update_frame_gutters):
5365         Respect frame_layout_changed.
5366
5367         * console.h (struct console_methods): add
5368         clear_frame_toolbars_method.
5369
5370         * redisplay.c (redisplay_frame): call
5371         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5372
5373         * toolbar.h: declare update_frame_toolbars_geometry.
5374
5375         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5376         out from update_frame_toolbars.  Call clear_frame_toolbars.
5377         (update_frame_toolbars): only output, do not change geometry.
5378
5379         * redisplay.c: add frame_layout_changed.
5380
5381         * redisplay.h: add frame_layout_changed.
5382         (CLASS_RESET_CHANGED_FLAGS): set it.
5383         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5384         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5385         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5386
5387         * device.h (struct device): add frame_layout_changed.
5388         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5389
5390         * frame.h (struct frame): add frame_layout_changed.
5391         (MARK_FRAME_LAYOUT_CHANGED): new.
5392
5393 2002-06-30  Mike Alexander  <mta@arbortext.com>
5394
5395         * event-msw.c (mswindows_need_event): Don't wait for a new message
5396         if the queue is not empty.  Suggested by Paul Moore.
5397
5398 2002-06-12  Andy Piper  <andy@xemacs.org>
5399
5400         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5401         for printing on accurately.
5402
5403 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5404
5405         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5406         WM_ACTIVATE message. Make sure that the frame is visible if the
5407         window is visible. This seemss to fix the problem where XEmacs
5408         appears to freeze after switching desktops with certain virtual
5409         window managers.
5410         (debug_output_mswin_message): Added code to output message
5411         parameters for WM_WINDOWPOSCHANGED, 
5412         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5413
5414 2002-05-25  Andy Piper  <andy@xemacs.org>
5415
5416         * select-x.c (vars_of_select_x): Fix docstring of
5417         x-selection-strict-motif-ownership
5418
5419 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5420
5421         * keymap.c (get_keymap):
5422         Add comment about do_autoload GCPROs own args.
5423
5424 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5425
5426         * bytecode.c (execute_optimized_program): check_opcode ifdef
5427         ERROR_CHECK_BYTE_CODE.
5428
5429 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5430
5431         Thanks to Ben Wing and Michael Sperber.
5432
5433         * eval.c (Fcommand_execute):
5434         (Feval):
5435         (Ffuncall):
5436         (Fmacroexpand_internal):
5437         (function_argcount):
5438         callint.c (Fcall_interactively):
5439         Add comment about do_autoload GCPROs own args.
5440
5441         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5442
5443         * eval.c (Ffuncall): Extra braces to placate GCC.
5444
5445 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5446
5447         * backtrace.h (grow_specpdl):
5448         (SPECPDL_RESERVE):
5449         * EmacsFrame.c (EmacsFrameSetValues):
5450         * eval.c (grow_specpdl):
5451         * ExternalShell.c (hack_event_masks_1):
5452         * glyphs-x.c (convert_EImage_to_XImage): 
5453         (x_finalize_image_instance):
5454         * ralloc.c (page_size):
5455         (r_alloc_sbrk):
5456         * xgccache.c (gc_cache_hash):
5457         Fix unsigned comparison warnings.
5458
5459 2002-07-29  Jerry James  <james@xemacs.org>
5460
5461         * lread.c (locate_file): Any nonnegative return value indicates
5462         success if MODE is nonnegative.
5463
5464 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5465
5466         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5467         argument. 
5468
5469 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5470
5471         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5472
5473         * dumper.c (pdump_get_indirect_count):
5474         (pdump_scan_by_alignment):
5475         (pdump_dump_root_struct_ptrs):
5476         (pdump_dump_rtables):
5477         (pdump_dump_root_objects):
5478         (pdump):
5479         * nas.c (WaveOpenDataForReading):
5480         * fns.c (print_bit_vector):
5481         * font-lock.c (SINGLE_SYNTAX_STYLE):
5482         * glyphs.c (check_for_ignored_expose):
5483         (find_matching_subwindow):
5484         * glyphs-eimage.c:
5485         * imgproc.c (get_histogram):
5486         * redisplay.c (point_in_line_start_cache):
5487         * redisplay-output.c (redisplay_unmap_subwindows):
5488         * symbols.c (defsymbol_massage_name_1):
5489         (defkeyword_massage_name):
5490         (deferror_massage_name_and_message):
5491         * redisplay-x.c (x_output_string): 
5492         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5493         * frame.h (struct frame):
5494         * filelock.c (current_lock_owner):
5495         * doprnt.c (emacs_doprnt_1):
5496         * lisp.h (struct Lisp_Bit_Vector):
5497         (DO_REALLOC):
5498         Fix warnings.
5499
5500 2002-02-13  Ben Wing  <ben@xemacs.org>
5501
5502         * event-stream.c (reset_key_echo):
5503         * event-stream.c (reset_this_command_keys):
5504         * event-stream.c (execute_command_event):
5505         If console is dead as a result of C-x 5 0, then post-command stuff
5506         needs to be careful and do only non-console-specific stuff.
5507
5508 2002-07-01  Mike Sperber <mike@xemacs.org>
5509
5510         * process-unix.c (unix_send_process): Mark coding_outstream as
5511         non-open upon SIGPIPE.
5512
5513         * event-stream.c (Fnext_event): Reorder switch cases to something
5514         that makes sense.
5515
5516 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5517
5518         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5519         Don't bogusly reinitialize ascii_character property.
5520
5521 2002-07-08  Mike Sperber <mike@xemacs.org>
5522
5523         * process.c (Fstart_process_internal): Do error checking before we
5524         fork off the child, so the child can't muck with the state of the
5525         parent.
5526
5527 2002-07-08  Mike Sperber <mike@xemacs.org>
5528
5529         * ralloc.c (init_ralloc): Allocate properly for pdump.
5530
5531 2002-06-12  Andy Piper  <andy@xemacs.org>
5532
5533         * glyphs.c (query_string_geometry): check the string.
5534
5535         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5536         widget names.
5537
5538 2002-06-17  Jerry James  <james@xemacs.org>
5539
5540         * sysdll.c: Remove RTLD_GLOBAL initialization.
5541         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5542
5543 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5544
5545         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5546
5547 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5548
5549         * sysdep.c (sys_rename): Make sys_rename work for the case where
5550         Windows rename sets errno to EACCES if target file exists.
5551
5552 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5553
5554         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5555         Fix detection of metric units to work on Win95
5556
5557 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5558
5559         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5560
5561 2002-04-25  Andy Piper  <andy@xemacs.org>
5562
5563         * redisplay.c (create_text_block): Remove extra comment trailer.
5564
5565 2002-04-24  Andy Piper  <andy@xemacs.org>
5566
5567         * redisplay.c (create_text_block): Don't actually add propagation
5568         data if the line ends after we have added a glyph.
5569
5570 2002-04-22  Andy Piper  <andy@xemacs.org>
5571
5572         * extents.c (extent_fragment_update): check for glyphs we have
5573         previously displayed.
5574         * extents.c (print_extent_1): warning removal.
5575         * extents.h: change prototype.
5576         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5577         widths correctly for wide glyphs.
5578         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5579         * redisplay.c (prop_type): add PROP_GLYPH.
5580         * redisplay.c (struct prop_block): add glyph type
5581         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5582         to the propagation data.
5583         * redisplay.c (create_text_block): if there is a glyph in the
5584         propagation data use it to salt extent_fragment_update.
5585         * redisplay.c (create_string_text_block): ditto.
5586
5587 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5588
5589         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5590         * redisplay-output.c (compare_runes): Compare them.
5591         * redisplay.c: Update copyright date.
5592         * redisplay.c (pos_data): Add need_baseline_computation field.
5593         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5594         need_baseline_computation; zero yoffset. Set max_pixmap_height
5595         for all pixmaps, not just automatically positioned ones.
5596         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5597         * redisplay.c (calculate_baseline): New, compute textual baseline.
5598         * redisplay.c (add_glyph_rune): Call them.
5599         * redisplay.c (create_text_block): Likewise.
5600         * redisplay.c (create_overlay_glyph_block): Likewise.
5601         * redisplay.c (add_margin_runes): Likewise.
5602         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5603
5604         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5605         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5606         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5607         * redisplay-msw.c (mswindows_output_string): Likewise.
5608         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5609         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5610         * redisplay-x.c (x_output_display_block): Likewise.
5611
5612 2002-03-28  Ben Wing  <ben@xemacs.org>
5613
5614         * redisplay.c: Fixed bug in redisplay
5615         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5616         and down of the lines, since they're bigger than the line
5617         size. (It was seen most obviously when there's a horizontal scroll
5618         bar, e.g. do C-h a glyph or something like that.) The problem was
5619         that the glyph-contrib-p setting on glyphs was ignored even if it
5620         was set properly, which it wasn't until now.
5621
5622 2002-04-24  Andy Piper  <andy@xemacs.org>
5623
5624         * lisp.h (Dynarr_end): Fix definition.
5625
5626 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5627
5628         * redisplay.c (mark_redisplay): Remove call to
5629         update_frame_window_mirror.
5630
5631 2001-11-15  Andy Piper  <andy@xemacs.org>
5632
5633         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5634         cygwin (again).
5635
5636 2002-02-13  Andy Piper  <andy@xemacs.org>
5637
5638         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5639         we did in fact enqueue the XM_MAPFRAME event.
5640
5641 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5642
5643         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5644         to fix problem switching between virtual desktops under virtuawin
5645         virtual window manager.
5646
5647 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5648
5649         * event-msw.c: Typo fix.
5650         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5651         magic XM_MAPFRAME event has been sent.
5652
5653 2001-11-23  Andy Piper  <andy@xemacs.org>
5654
5655         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5656
5657 2001-11-21  Andy Piper  <andy@xemacs.org>
5658
5659         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5660         mouse events outside the frame.
5661
5662 2002-03-20  Andy Piper  <andy@xemacs.org>
5663
5664         * menubar-msw.c (mswindows_popup_menu): warning removal.
5665         * dialog-msw.c (dialog_popped_down): ditto.
5666
5667 2001-12-11  Andy Piper  <andy@xemacs.org>
5668
5669         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5670         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5671         popup_up_p.
5672         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5673         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5674         * menubar-msw.c (mswindows_popup_menu): ditto.
5675
5676 2001-10-29  Andy Piper  <andy@xemacs.org>
5677
5678         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5679         cancels.
5680
5681 2002-01-03  Andy Piper  <andy@xemacs.org>
5682
5683         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5684         letters.
5685         (xrealpath): ditto.
5686
5687 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5688
5689         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5690         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5691         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5692         Detect and handle case where machine is set up for metric units
5693
5694 2002-04-02  Andy Piper  <andy@xemacs.org>
5695
5696         * dired-msw.c (mswindows_get_files): 
5697         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5698         completely handled by XEmacs. Suggested by Thomas Vogler
5699         <mail@thomas-vogler.de>.
5700
5701 2001-11-14  Andy Piper  <andy@xemacs.org>
5702
5703         * nt.c (REG_ROOT): change registry key to XEmacs.
5704
5705 2002-04-27  Andy Piper  <andy@xemacs.org>
5706
5707         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5708
5709 2002-04-26  Andy Piper  <andy@xemacs.org>
5710
5711         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5712         behavior.
5713
5714 2002-03-14  Mike Alexander  <mta@arbortext.com>
5715
5716         * event-msw.c (mswindows_unwait_process): New, remove process from
5717         wait list
5718         * process-nt.c (nt_finalize_process_data): Call
5719         mswindows_unwait_process
5720         * console-msw.h: Declare mswindows_unwait_process
5721
5722 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5723
5724         * editfns.c (Fdecode_time):
5725         (Fformat_time_string):
5726         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5727         (make_time): Warning elimination (change arg name).
5728
5729 2001-11-24  Andy Piper  <andy@xemacs.org>
5730
5731         * window.c (Fsplit_window): Doc return type.
5732
5733 2002-04-01  Andy Piper  <andy@xemacs.org>
5734
5735         * emacs.c (Fkill_emacs): Only output message box in interactive
5736         mode.
5737
5738 2002-04-26  Andy Piper  <andy@xemacs.org>
5739  
5740         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5741         cygwin.
5742
5743 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5744
5745         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5746         bit platform.
5747
5748 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5749
5750         * XEmacs 21.4.8 "Honest Recruiter" is released.
5751
5752 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5753
5754         Supersedes 2002-04-17 patch.
5755
5756         * process.h (PROCESS_LIVE_P): Use the process status as
5757         evidence of health, not the state of the input stream.
5758         (PROCESS_READABLE_P): Say if the process is readable
5759         from. (It may be dead nonetheless.)
5760         (CHECK_READABLE_PROCESS): Test for that condition.
5761
5762         * process.c (create_process): Use PROCESS_READABLE_P.
5763         (read_process_output, set_process_filter): Likewise.
5764
5765         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5766         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5767
5768         This code is #if 0'd, this is not the time to add new functions:
5769
5770         * process.c (Fprocess_readable_p): Report readability status.
5771         * process.c (Qprocess_readable_p): New, associated symbol...
5772         * process.c (syms_of_process): ... initialize it.
5773
5774 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5775
5776         * XEmacs 21.4.7 "Economic Science" is released.
5777
5778 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5779
5780         * process.h (PROCESS_LIVE_P): Use the process status as
5781         evidence of health, not the state of the input stream.
5782
5783 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5784
5785         * sysdep.c (sys_siglist): change "signum" to "signal"
5786
5787 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5788
5789         * s/darwin.h: New file.
5790         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5791         
5792 2002-04-23  Andreas Jaeger  <aj@suse.de>
5793
5794         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5795         which use lib64 for 64-bit libs.
5796         (START_FILES): Likewise.
5797
5798 2002-02-11  Mike Sperber  <mike@xemacs.org>
5799
5800         * device-x.c: 
5801         (x_IO_error_handler):
5802         (x_init_device): Temporarily keep device in static variable
5803         `device_being_initialized' so we can recover gracefully from
5804         internal XOpenDevice failure.  (XOpenDevice is documented to
5805         return NULL on failure, but sometimes calls the IO error handler
5806         instead.)
5807
5808 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5809
5810         * dired.c (Ffile_name_all_completions): Change documentation --
5811         remove reference to completion-ignored-extensions.
5812         * dired.c (vars_of_dired): Change documentation for
5813         completion-ignored-extensions -- remove reference to
5814         file-name-all-completions.
5815
5816 2002-03-06  Jerry James  <james@xemacs.org>
5817
5818         * emodules.c (emodules_load): Fix multiple loading of same module.
5819
5820 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5821         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5822         RTLD_LAZY to avoid incorrect symbol binding when using nested
5823         shared libraries on Solaris.
5824
5825 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5826
5827         * fileio.c (Ffind_file_name_handler): Improve docstring.
5828
5829 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5830
5831         * fns.c (Fmapconcat): Improve docstring.
5832
5833 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5834
5835         * device-gtk.c: Add prototype for
5836         emacs_gtk_selection_clear_event_handle.
5837         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5838         selection.  Setup signal handler for "selection_clear_event"
5839         (emacs_gtk_selection_clear_event_handle).
5840
5841         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5842         other applications owning the clipboard (based on
5843         x_handle_selection_clear).
5844
5845 2001-12-23  William M. Perry  <wmperry@gnu.org>
5846
5847         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5848         
5849 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5850
5851         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5852
5853 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5854
5855         * XEmacs 21.4.6 "Common Lisp" is released.
5856
5857 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5858
5859         * search.c (Freplace_match): Add missing sub-expression functionality.
5860
5861         * buffer.c (decode_buffer): Add a check for pointer type to
5862         decode_buffer, before gcc's CSE optimization reorders a
5863         dereference in front of the allow_string test.
5864
5865 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5866
5867         * window.c (window_loop): Fix bug that sometimes prevented
5868         window_loop() from iterating across multiple devices.  Also, at
5869         Ben's request, changed infloop-detecting code to abort() instead
5870         of silently terminating window_loop().
5871
5872 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5873
5874         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5875         * editfns.c (make_time): New function.
5876         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5877         * lisp.h (make_time): Prototype and comment it.
5878         * dired.c (wasteful_word_to_lisp): Deprecate.
5879         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5880
5881 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5882
5883         * fileio.c (auto_save_1): Use current coding system, not
5884         escape-quoted.
5885
5886 2001-11-13  Ben Wing  <ben@xemacs.org>
5887
5888         * window.c:
5889         * window.c (window_truncation_on):
5890         * window.c (syms_of_window):
5891         truncate-partial-width-windows should respect the buffer being
5892         displayed, like other redisplay vars.
5893
5894 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5895
5896         * event-stream.c (Fread_key_sequence): save current buffer.
5897
5898 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5899
5900         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5901
5902 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5903
5904         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5905
5906 2001-10-26  Mike Alexander  <mta@arbortext.com>
5907
5908         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5909
5910 2001-10-25  Andy Piper  <andy@xemacs.org>
5911
5912         * ChangeLog:
5913         * dialog-msw.c (handle_directory_proc): new function.
5914          (handle_directory_dialog_box): new fucntion.
5915          (handle_file_dialog_box): use new directory dialog support.
5916          (mswindows_make_dialog_box_internal): ditto.
5917         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5918         handling.
5919         (mswindows_find_frame): make global.
5920         * fileio.c (Fexpand_file_name): build fix.
5921         * general-slots.h: add Qdirectory.
5922         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5923         handling.
5924         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5925         cygwin not leaving win32 paths unchanged.
5926         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5927         cygwin runtime to do path conversion.
5928         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5929         (syms_of_win32): add new function.
5930         * window.c (window_loop): build fix.
5931
5932 2001-10-15  Andy Piper  <andy@xemacs.org>
5933
5934         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5935
5936 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5937
5938         * XEmacs 21.4.5 "Civil Service" is released.
5939
5940 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5941
5942         * glyphs-x.c: Force buffer-tab highlight update when moving the
5943         buffer, avoiding an ugly black border, used for keyboard focus
5944         indication, on a widget that can never have keyboard focus, the
5945         buffer tab.
5946
5947 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5948
5949         * process-unix.c (unix_open_multicast_group): Remove too much
5950         conversion between host and network byte order.
5951
5952 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5953
5954         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5955         before replacing them.
5956
5957         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5958         operation.
5959
5960         * src/window.c (undedicate_windows): Use it.
5961         * src/window.h: Add prototype.
5962
5963 2001-09-17  Ben Wing  <ben@xemacs.org>
5964
5965         * fileio.c (normalize_filename):
5966         * fileio.c (Fexpand_file_name):
5967         Fix various C++ compile errors in Andy's recent code.
5968         
5969         * callint.c (Fcall_interactively):
5970         * editfns.c (Ftemp_directory):
5971         * editfns.c (Fuser_full_name):
5972         * emacs.c (argmatch):
5973         * lread.c (locate_file_map_suffixes):
5974         * redisplay-x.c (x_ring_bell):
5975         Fix sign-compare warnings.
5976         
5977 2001-09-08  Andy Piper  <andy@xemacs.org>
5978
5979         * fileio.c (normalize_filename): copied from nt.c
5980         * (Ffile_name_directory): enable win32 paths under cygwin.
5981         * (Ffile_name_nondirectory): ditto.
5982         * (directory_file_name): ditto.
5983         * (Fexpand_file_name): ditto.
5984         * (Ffile_truename): ditto.
5985         * (Fsubstitute_in_file_name): ditto.
5986         * (Ffile_name_absolute_p): ditto.
5987         * (Ffile_readable_p): ditto.
5988
5989 2001-09-08  Andy Piper  <andy@xemacs.org>
5990
5991         * device-msw.c (mswindows_finish_init_device): remove dde
5992         initialization.
5993         * device-msw.c (mswindows_init_dde): factor out from
5994         mswindows_finish_init_device()
5995         * device-msw.c (init_mswindows_very_early): new function
5996         initialize but don't enable dde.
5997         * emacs.c (main_1): call init_mswindows_very_early.
5998         * event-msw.c:
5999         * event-msw.c (mswindows_dde_callback): only execute when we are
6000         ready.
6001         * symsinit.h: declare init_mswindows_very_early.
6002
6003 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6004
6005         [sjt: This has been in 21.5 for months with no complaints.]
6006
6007         * console.h (struct console_methods): Added flags member.
6008         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6009         (CONMETH_IMPL_FLAG):
6010         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6011         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6012
6013         * device.c (window_system_pixelated_geometry): Use the above macros.
6014
6015         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6016         implememntation flag.
6017         * device.h (DEVICE_DISPLAY_P): Use it.
6018
6019         * frame.c (delete_frame_internal): Use the above macro.
6020
6021         * redisplay.c (redisplay_device): Use it.
6022         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6023         (redisplay_frame): Ditto.
6024
6025         * device-msw.c (mswindows_device_implementation_flags): Removed.
6026         (msprinter_device_implementation_flags): Removed.
6027         (console_type_create_device_mswindows): Removed references to
6028         implementation_flags methods, set implementation flags here.
6029         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6030
6031         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6032         (console_type_create_device_gtk): Removed method declaration.
6033         Added commented out statement which semantically matches the
6034         commented out statement in the above removed method.
6035
6036 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6037
6038         The attached patch fixes a few warnings. 
6039
6040         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6041         * src/frame-gtk.c: guard against GNOME calls in GTK only
6042         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6043         * src/select-gtk.c: prototype lisp_to_time
6044
6045 2001-06-08  Ben Wing  <ben@xemacs.org>
6046
6047         ------ gc-in-window-procedure fixes ------
6048         
6049         * alloc.c:
6050         * alloc.c (struct post_gc_action):
6051         * alloc.c (register_post_gc_action):
6052         * alloc.c (run_post_gc_actions):
6053         * alloc.c (garbage_collect_1):
6054         Create "post-gc actions", to avoid those dreaded "GC during window
6055         procedure" problems.
6056
6057         * event-msw.c:
6058         Abort, clean and simple, when GC in window procedure.  We want
6059         to flush these puppies out.
6060
6061         * glyphs-msw.c:
6062         * glyphs-msw.c (finalize_destroy_window):
6063         * glyphs-msw.c (mswindows_finalize_image_instance):
6064         Use a post-gc action when destroying subwindows.
6065
6066         * lisp.h:
6067         Declare register_post_gc_action().
6068
6069         * scrollbar-msw.c:
6070         * scrollbar-msw.c (unshow_that_mofo):
6071         Use a post-gc action when unshowing scrollbar windows, if in gc.
6072
6073         * redisplay.c (mark_redisplay):
6074         Add comment about the utter evilness of what's going down here.
6075
6076         ------ cygwin setitimer fixes ------
6077         
6078         * Makefile.in.in (sheap_objs):
6079         * Makefile.in.in (profile_objs):
6080         * Makefile.in.in (objs):
6081         Compile profile.c only when HAVE_SETITIMER.
6082         
6083         * nt.c (mswindows_sigset):
6084         * nt.c (mswindows_sighold):
6085         * nt.c (mswindows_sigrelse):
6086         * nt.c (mswindows_sigpause):
6087         * nt.c (mswindows_raise):
6088         * nt.c (close_file_data):
6089         Style fixes.
6090         
6091         * nt.c:
6092         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6093         
6094         * profile.c:
6095         * profile.c (Fstart_profiling):
6096         * profile.c (Fstop_profiling):
6097         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6098         instead of just plain setitimer().
6099         
6100         * signal.c:
6101         * signal.c (set_one_shot_timer):
6102         * signal.c (alarm):
6103         Define qxe_setitimer() as an encapsulation around setitimer() --
6104         call setitimer() directly unless Cygwin or MS Win, in which case
6105         we use our simulated version in win32.c.
6106         
6107         * systime.h:
6108         * systime.h (struct itimerval):
6109         * systime.h (ITIMER_REAL):
6110         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6111         comment about "qxe" and the policy regarding encapsulation.
6112
6113         * win32.c:
6114         * win32.c (setitimer_helper_proc):
6115         * win32.c (setitimer_helper_period):
6116         * win32.c (setitimer_helper):
6117         * win32.c (mswindows_setitimer):
6118         Move setitimer() emulation here, so Cygwin can use it.
6119         Rename a couple of functions and variables to be longer and more
6120         descriptive.  In setitimer_helper_proc(), send the signal
6121         using either mswindows_raise() or (on Cygwin) kill().  If for
6122         some reason we are still getting lockups, we'll change the kill()
6123         to directly invoke the signal handlers.
6124
6125         ------ windows shell fixes ------
6126         
6127         * callproc.c:
6128         * ntproc.c:
6129         Comments about how these two files must die.
6130
6131         * callproc.c (init_callproc):
6132         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6133         not just COMSPEC. (more correct and closer to FSF.) Don't
6134         force a value for SHELL into the environment. (Comments added
6135         to explain why not.)
6136         
6137         * nt.c (init_user_info):
6138         Don't shove a fabricated SHELL into the environment.  See above.
6139
6140 2001-06-01  Ben Wing  <ben@xemacs.org>
6141
6142         * Makefile.in.in (ldflags):
6143         eliminate that pesky "defaulting to 00401000" warning.
6144         * nt.h:
6145         eliminate warnings.
6146
6147 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6148
6149         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6150         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6151
6152 2001-04-24  Jerry James <james@xemacs.org>
6153
6154         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6155         correct order.
6156
6157 2001-06-01  Ben Wing  <ben@xemacs.org>
6158
6159         * event-msw.c (debug_mswin_messages):
6160         conditionalize the messages that were causing compile errors.
6161         (if only macros could generate #ifdef statements ...)
6162
6163 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6164
6165         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6166
6167 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6168
6169         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6170
6171 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6172
6173         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6174         * process-unix.c (unix_canonicalize_host_name):
6175         sysdep.c (init_system_name):
6176         Use it to conditionally support IPv6 canonicalization.
6177
6178 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6179
6180         * event-msw.c:
6181         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6182
6183 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6184
6185         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6186         attempt is made to scroll when no scroll bar is available.
6187
6188 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6189
6190         * input-method-motif.c (XIM_delete_frame): New callback.
6191         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6192         got deleted from 21.4.3.)
6193
6194 2001-06-01  Ben Wing  <ben@xemacs.org>
6195
6196         * nt.c (mswindows_utime):
6197         * nt.c (close_file_data):
6198         fix off-by-one-indirection error.
6199
6200 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6201
6202         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6203         because set_file_times() now takes Lisp_Object path, instead of
6204         char*.
6205         * nt.c: Include buffer.h.
6206         * nt.c (convert_from_time_t): New.
6207         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6208         not set mtime correctly.
6209         * nt.h: Declare mswindows_utime().
6210         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6211         path, instead of char*.
6212         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6213
6214 2001-05-30  Ben Wing  <ben@xemacs.org>
6215
6216         For 21.4:
6217
6218         (Stephen, just take all event-msw.c patches.  This includes
6219         the "iconify" fix below.)
6220
6221         * event-msw.c:
6222         * event-msw.c (mswindows_dequeue_dispatch_event):
6223         * event-msw.c (assert):
6224         * event-msw.c (emacs_mswindows_quit_p):
6225         * event-msw.c (debug_mswin_messages):
6226         * event-msw.c (debug_output_mswin_message):
6227         * event-msw.c (vars_of_event_mswindows):
6228         Fix yet more problems with C-g handling.
6229         Implement debug-mswindows-events.
6230         
6231 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6232
6233         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6234         
6235 2001-05-23  Ben Wing  <ben@xemacs.org>
6236
6237         * event-msw.c (winsock_writer):
6238         * event-msw.c (winsock_closer):
6239         prior kludgy code was clobbering the buffer, thinking it was
6240         "unused" space to store an unneeded return value; instead, use
6241         the variable we've already got staring us in the face.
6242
6243 2001-05-17  Andy Piper  <andy@xemacs.org>
6244
6245         * sysfile.h: don't assume that file attributes are boolean
6246
6247 2001-05-23  Ben Wing  <ben@xemacs.org>
6248
6249         * device-msw.c (msprinter_init_device):
6250         signal an error rather than crash with an unavailable network
6251         printer (from Mike Alexander).
6252         
6253         * event-msw.c:
6254         * event-msw.c (struct winsock_stream):
6255         * event-msw.c (winsock_writer):
6256         * event-msw.c (winsock_closer):
6257         * event-msw.c (make_winsock_stream_1):
6258         cleanup headers.  fix (hopefully) an error with data corruption
6259         when sending to a network connection.
6260
6261         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6262         to handle the ~user prefix by (a) always assuming we're referencing
6263         ourselves and not even verifying the user -- hence any file with
6264         a tilde as its first char is invalid! (b) if there wasn't a slash
6265         following the filename, the pointer was set *past* the end of
6266         file and we started reading from uninitialized memory.  Now we
6267         simply treat these as files, always.
6268
6269         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6270         
6271 2001-05-19  Ben Wing  <ben@xemacs.org>
6272
6273         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6274
6275         * process-nt.c:
6276         * process-nt.c (vars_of_process_nt):
6277         remove unused mswindows-quote-process-args.  rec for 21.4.
6278         
6279 2001-05-12  Ben Wing  <ben@xemacs.org>
6280
6281         * event-msw.c (mswindows_dde_callback):
6282         * event-msw.c (mswindows_wnd_proc):
6283         eliminate cygwin warnings.
6284
6285 2001-05-06  Ben Wing  <ben@xemacs.org>
6286
6287         * console-msw.h:
6288         * device-msw.c:
6289         * device-msw.c (print_dialog_worker):
6290         * device-msw.c (mswindows_handle_print_dialog_box):
6291         * device-msw.c (syms_of_device_mswindows):
6292         * dialog-msw.c (mswindows_make_dialog_box_internal):
6293         * general-slots.h:
6294         implement printing the selection when it's selected.
6295
6296 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6297
6298         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6299
6300 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6301
6302         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6303         EMACS_INT is signed.
6304
6305 2001-04-15  Michael Lausch  <mla@1012surf.net>
6306
6307         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6308         gtk_widget_request_size() to give scrollbar >0 width for
6309         GTK >1.2.8.
6310
6311 2001-05-30  William M. Perry  <wmperry@gnu.org>
6312
6313         * event-gtk.c: Check for buttons as modifier keys.
6314
6315 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6316
6317         * s\mingw32.h:
6318         Properly find MinGW's <process.h> inside Cygwin's restructured
6319         include directories.  Don't try to include <cygwin/version.h>
6320         since we are dropping support for MinGW in versions of Cygwin
6321         earlier than b21.
6322         * nt.c:
6323         Drop support for MinGW in versions of Cygwin before b21.
6324         * sysdep.c:
6325         Properly find MinGW's <process.h> inside Cygwin's restructured
6326         include directories.
6327         * syswindows.h:
6328         Drop support for MinGW in versions of Cygwin before b21.
6329         * unexcw.c:
6330         Even though a.out.h is no longer detected by configure, allow
6331         MinGW to use it until we figure out how to do the job with Win32.
6332
6333 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6334
6335         * syntax.c (find_start_of_comment):
6336         Fix `unbalanced parentheses' bug when dealing with mixed comment
6337         styles in c++/java/etc. mode
6338
6339 2001-05-29  Mike Alexander  <mta@arbortext.com>
6340
6341         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6342         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6343
6344 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6345
6346         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6347
6348 2001-03-31  Mike Sperber <mike@xemacs.org>
6349
6350         * search.c (Freplace_match): Support FSF-style specification of
6351         match subexpression when applied to a buffer.
6352
6353 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6354
6355         * event-stream.c (is_scrollbar_event): add missing semicolon
6356
6357 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6358
6359         * Makefile.in.in: Use TAR macro instead of hardcoding
6360           tar.  Allows use of GNU tar instead of system tar
6361
6362 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6363
6364         * event-stream.c (is_scrollbar_event): add missing semicolon
6365
6366 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6367
6368         * XEmacs 21.4.3 "Academic Rigor" is released.
6369
6370 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6371
6372         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6373
6374 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6375
6376         * buffer.c (Vcase_fold_search): Remove obsolete
6377           comment about non ASCII case-fold-search.  This
6378           bug has been fixed by case-table changes.
6379
6380 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6381
6382         * event-msw.c: Restore include of events-mod.h.
6383
6384 2001-04-22   zhaoway  <zw@debian.org>
6385
6386         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6387         !HAVE_SCROLLBARS.
6388
6389 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6390
6391         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6392
6393 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6394
6395         * mule-charset.c (Fmake_charset): Add missing else.
6396
6397 2001-04-23  Ben Wing  <ben@xemacs.org>
6398
6399         * event-msw.c (FAKE_MOD_QUIT):
6400         * event-msw.c (mswindows_dequeue_dispatch_event):
6401         * event-msw.c (mswindows_wnd_proc):
6402         * event-msw.c (emacs_mswindows_quit_p):
6403         Get critical quit working.
6404
6405 2001-05-05  Ben Wing  <ben@xemacs.org>
6406
6407         * console-msw.h:
6408         * device-msw.c:
6409         * device-msw.c (mswindows_get_default_margin):
6410         * frame-msw.c (mswindows_size_frame_internal):
6411         * frame-msw.c (msprinter_init_frame_1):
6412         * frame-msw.c (vars_of_frame_mswindows):
6413         Change top/bottom margin defaults to 0.5 inches.
6414
6415 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6416
6417         Fix link error with gcc 3.0 on Linux.
6418         * terminfo.c (UP): Remove.
6419         * terminfo.c (BC): Remove.
6420         * terminfo.c (PC): Remove.
6421         They weren't used, and in any case, these symbols should be
6422         defined in the *library*.
6423
6424 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6425
6426         * s/aix4.h: Fix crash with xlc -O3.
6427         Improve comment explaining how -O3 works.
6428
6429 2001-04-15  Ben Wing  <ben@xemacs.org>
6430
6431         * event-stream.c:
6432         * event-stream.c (Fnext_event):
6433         * event-stream.c (is_scrollbar_event):
6434         * event-stream.c (execute_command_event):
6435         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6436         crash' problem.  His fix introduces other problems.  We filter
6437         out scrollbar events specifically, making them somewhat invisible
6438         to command-building, and not appearing in `this-command-keys'.
6439         More work is still needed (see comments in event-stream.c), but
6440         this fixes all the major problems.
6441
6442 2001-04-20  Ben Wing  <ben@xemacs.org>
6443
6444         * .cvsignore: Added stuff for Windows.
6445
6446 2001-04-28  Ben Wing  <ben@xemacs.org>
6447
6448         * buffer.c (Ferase_buffer):
6449         * editfns.c (buffer_insert1):
6450         * editfns.c (Finsert_before_markers):
6451         * editfns.c (Finsert_string):
6452         * editfns.c (Finsert_char):
6453         * editfns.c (Fdelete_region):
6454         * editfns.c (Fwiden):
6455         * editfns.c (Fnarrow_to_region):
6456         remove bogus lines setting zmacs_region_stays to 0.
6457         
6458 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6459
6460         * process-unix.c (unix_open_network_stream): If connect() fails
6461         invalidate file descriptor after closing it.
6462
6463 2001-03-08  Mike Alexander  <mta@arbortext.com>
6464
6465         * event-msw.c (mswindows_need_event_in_modal_loop):
6466         Don't dispatch a message if we didn't get one.
6467         (mswindows_need_event):
6468         Terminate the correct process when one exits instead of the first
6469         one on Vprocess_list and look for process termination when in
6470         mswindows_protect_modal_loop.
6471
6472 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6473
6474         * XEmacs 21.4.1 "Copyleft" is released.
6475
6476 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6477
6478         * input-method-motif.c (XIM_delete_frame): New callback.
6479         (XIM_init_frame): Register it.
6480
6481 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6482
6483         * XEmacs 21.4.0 "Solid Vapor" is released.
6484
6485 2001-04-15  Ben Wing  <ben@xemacs.org>
6486
6487         * cmdloop.c (call_command_loop):
6488         Fix braino in bit-rotting code.
6489         
6490 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6491
6492         * extents.c (Fset_extent_endpoints): Force creation of extent info
6493         in buffer_or_string.
6494
6495         * extents.c (process_extents_for_insertion_mapper): Correctly
6496         check for open-open zero-length extents.
6497
6498 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6499
6500         * lisp.h: New typedefs Memory_count, Element_count.
6501         * regex.c:
6502         * regex.h:
6503         Sign-compare warning elimination: several unsigned -> signed.
6504         Based on work by Ben Wing <ben@xemacs.org>.
6505
6506 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6507
6508         * XEmacs 21.2.47 "Zephir" is released.
6509
6510 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6511
6512         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6513
6514 2001-04-03  Mike Sperber <mike@xemacs.org>
6515
6516         * search.c: Revert previous patch due because of release.
6517
6518 2001-03-30  Ben Wing  <ben@xemacs.org>
6519
6520         * s\cygwin32.h:
6521         Add missing killpg prototype.
6522
6523         * elhash.c:
6524         Add a comment about fixing problems when a new entry is added
6525         while mapping.
6526
6527         * frame-msw.c (mswindows_init_frame_1):
6528         Fix compile warnings.
6529
6530         * menubar.c (vars_of_menubar):
6531         Provide `menu-accelerator-support' to indicate that we properly
6532         support %_ in menu specifications, so that package code can
6533         conditionalize on this (and remove %_ from menu specifications
6534         on older versions).
6535
6536         * event-msw.c:
6537         * scrollbar-msw.c:
6538         * scrollbar-msw.c (can_scroll):
6539         * scrollbar-msw.h:
6540         Fix handling of mouse wheel under Windows to follow standards --
6541         now scrolls window under pointer, not selected window.
6542
6543 2001-03-31  Mike Sperber <mike@xemacs.org>
6544
6545         * search.c (Freplace_match): Support FSF-style specification of
6546         match subexpression when applied to a buffer.
6547
6548 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6549
6550         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6551         function to modify KEYMAP, so map over a copy of the hash table.
6552
6553 2001-03-21  Martin Buchholz <martin@xemacs.org>
6554
6555         * XEmacs 21.2.46 "Urania" is released.
6556
6557 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6558
6559         * realpath.c (xrealpath): Make file-truename work with symlinks to
6560         /cygdrive paths on cygwin. Always lowercase drive-letters on
6561         native windows.
6562         (cygwin_readlink): Don't try to find canonical filename unless
6563         file exists.
6564
6565 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6566
6567         * ChangeLog: Log GTK merge.
6568
6569         * dumper.c:
6570         * select-x.c:
6571         * specifier.c:
6572         * symeval.h:
6573         Revert gratuitous whitespace changes from GTK merge.
6574
6575         * emacs.c: Document end of complex #ifdef @ l. 1495.
6576
6577
6578 2001-03-12  Andy Piper  <andy@xemacs.org>
6579
6580         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6581         have to do likewise.
6582
6583 2001-03-12  Andy Piper  <andy@xemacs.org>
6584
6585         * sysdep.c: we only support mingw now.
6586
6587 2001-03-09  Andy Piper  <andy@xemacs.org>
6588
6589         * unexcw.c (copy_executable_and_dump_data_section): making approx
6590         overrun a warning only.
6591
6592 2001-03-10  William M. Perry  <wmperry@aventail.com>
6593
6594         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6595         satisfy Stephen's identical-after-cpp plea.
6596
6597 2001-03-02  Ben Wing  <ben@xemacs.org>
6598
6599         * cmds.c:
6600         * cmds.c (Fforward_char):
6601         * syntax.c:
6602         * window.c:
6603
6604         Augment documentation of the most common motion commands to make
6605         note of the shifted-motion support.
6606         
6607 2001-03-02  Ben Wing  <ben@xemacs.org>
6608
6609         * nt.c (mswindows_fstat):
6610         * nt.c (mswindows_stat):
6611         * search.c (boyer_moore):
6612         Fix compile warnings under Windows.
6613         
6614         * sysdep.c (sys_readdir):
6615         Fix buggy filename-conversion code under Mule.
6616
6617 2001-03-09  William M. Perry  <wmperry@aventail.com>
6618
6619         * Makefile.in.in:
6620         * config.h.in:
6621         * console.c:
6622         * console.h:
6623         * device.c:
6624         * device.h:
6625         * dragdrop.c:
6626         * emacs.c:
6627         * event-stream.c:
6628         * events.c:
6629         * events.h:
6630         * faces.c:
6631         * frame.h:
6632         * general-slots.h:
6633         * glyphs.c:
6634         * gutter.c:
6635         * inline.c:
6636         * lisp.h:
6637         * lrecord.h:
6638         * make-src-depend:
6639         * redisplay-output.c:
6640         * redisplay.c:
6641         * symsinit.h:
6642         * sysfile.h:
6643         * toolbar.c:
6644         * window.c:
6645         The Great GTK Merge.
6646
6647         * ChangeLog.GTK:
6648         * console-gtk.c:
6649         * console-gtk.h:
6650         * device-gtk.c:
6651         * emacs-marshals.c:
6652         * emacs-widget-accessors.c:
6653         * event-gtk.c:
6654         * frame-gtk.c:
6655         * gccache-gtk.c:
6656         * gccache-gtk.h:
6657         * glade.c:
6658         * glyphs-gtk.c:
6659         * glyphs-gtk.h:
6660         * gtk-glue.c:
6661         * gtk-xemacs.c:
6662         * gtk-xemacs.h:
6663         * gui-gtk.c:
6664         * gui-gtk.h:
6665         * menubar-gtk.c:
6666         * native-gtk-toolbar.c:
6667         * objects-gtk.c:
6668         * objects-gtk.h:
6669         * redisplay-gtk.c:
6670         * scrollbar-gtk.c:
6671         * scrollbar-gtk.h:
6672         * select-gtk.c:
6673         * toolbar-gtk.c:
6674         * ui-byhand.c:
6675         * ui-gtk.c:
6676         * ui-gtk.h:
6677         The Great GTK Merge: new files.
6678
6679 2001-02-26  Ben Wing  <ben@xemacs.org>
6680
6681         Reapplied Lstream change.
6682
6683 2001-02-26  Ben Wing  <ben@xemacs.org>
6684
6685         Undid the last change, since it is more controversial than I
6686         thought.  It should be back in at some point soon.
6687         
6688 2001-02-25  Ben Wing  <ben@xemacs.org>
6689
6690         * buffer.c:
6691         * callproc.c (Fold_call_process_internal):
6692         * event-msw.c (ntpipe_slurp_reader):
6693         * event-msw.c (ntpipe_shove_writer):
6694         * event-msw.c (winsock_reader):
6695         * event-msw.c (winsock_writer):
6696         * file-coding.c:
6697         * file-coding.c (detect_eol_type):
6698         * file-coding.c (detect_coding_type):
6699         * file-coding.c (determine_real_coding_system):
6700         * file-coding.c (Fdetect_coding_region):
6701         * file-coding.c (decoding_reader):
6702         * file-coding.c (decoding_writer):
6703         * file-coding.c (mule_decode):
6704         * file-coding.c (Fdecode_coding_region):
6705         * file-coding.c (encoding_reader):
6706         * file-coding.c (encoding_writer):
6707         * file-coding.c (mule_encode):
6708         * file-coding.c (Fencode_coding_region):
6709         * file-coding.c (detect_coding_sjis):
6710         * file-coding.c (decode_coding_sjis):
6711         * file-coding.c (encode_coding_sjis):
6712         * file-coding.c (detect_coding_big5):
6713         * file-coding.c (decode_coding_big5):
6714         * file-coding.c (encode_coding_big5):
6715         * file-coding.c (detect_coding_ucs4):
6716         * file-coding.c (decode_coding_ucs4):
6717         * file-coding.c (encode_coding_ucs4):
6718         * file-coding.c (detect_coding_utf8):
6719         * file-coding.c (decode_coding_utf8):
6720         * file-coding.c (encode_coding_utf8):
6721         * file-coding.c (detect_coding_iso2022):
6722         * file-coding.c (decode_coding_iso2022):
6723         * file-coding.c (encode_coding_iso2022):
6724         * file-coding.c (decode_coding_no_conversion):
6725         * file-coding.c (encode_coding_no_conversion):
6726         * glyphs-x.c (write_lisp_string_to_temp_file):
6727         * gpmevent.c (tty_get_foreign_selection):
6728         * lisp.h:
6729         * lstream.c:
6730         * lstream.c (Lstream_flush_out):
6731         * lstream.c (Lstream_adding):
6732         * lstream.c (Lstream_write_1):
6733         * lstream.c (Lstream_write):
6734         * lstream.c (Lstream_raw_read):
6735         * lstream.c (Lstream_read_more):
6736         * lstream.c (Lstream_read):
6737         * lstream.c (Lstream_unread):
6738         * lstream.c (Lstream_fputc):
6739         * lstream.c (stdio_reader):
6740         * lstream.c (stdio_writer):
6741         * lstream.c (filedesc_reader):
6742         * lstream.c (filedesc_writer):
6743         * lstream.c (lisp_string_reader):
6744         * lstream.c (struct fixed_buffer_stream):
6745         * lstream.c (make_fixed_buffer_input_stream):
6746         * lstream.c (make_fixed_buffer_output_stream):
6747         * lstream.c (fixed_buffer_reader):
6748         * lstream.c (fixed_buffer_writer):
6749         * lstream.c (struct resizing_buffer_stream):
6750         * lstream.c (resizing_buffer_writer):
6751         * lstream.c (dynarr_writer):
6752         * lstream.c (lisp_buffer_reader):
6753         * lstream.c (lisp_buffer_writer):
6754         * lstream.h:
6755         * lstream.h (lstream_implementation):
6756         * lstream.h (struct lstream):
6757         * md5.c (Fmd5):
6758         * process-nt.c (nt_send_process):
6759         * process-unix.c (unix_send_process):
6760         
6761         Correct Lstream lossage due to mixing of signed and unsigned
6762         quantities.  All Lstream uses of size_t and ssize_t are now a
6763         single signed data type Lstream_data_count.  This fixes problems
6764         under Windows with sending large quantities of data to a process,
6765         and may well fix other subtle bugs.
6766
6767 2001-02-23  Martin Buchholz <martin@xemacs.org>
6768
6769         * XEmacs 21.2.45 "Thelxepeia" is released.
6770
6771 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6772
6773         * lisp-union.h (XSETINT): 
6774         (XSETCHAR):
6775         (XSETOBJ): 
6776         Reverse previous change of 2001-02-06.
6777
6778 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6779
6780         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6781         buffers.
6782         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6783         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6784         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6785         * regex.c (POS_AS_IN_BUFFER): removed
6786         * regex.c (re_search_2):
6787         * regex.c (re_match_2):
6788         Don't use an offset of 1 when calculating buffer positions, since
6789         `BI_BUF_BEGV' does it already.
6790
6791 2001-02-18  Wim Dumon  <wim@easics.be>
6792
6793         * insdel.c (prepare_to_modify_buffer): Also check for
6794         supersession when clash-detection is enabled. 
6795
6796 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6797
6798         * regex.c (re_match_2_internal):
6799         Convert temp characters from 'const unsigned char' to 're_char'.
6800         Fix crashing bug with extended characters under mule.
6801         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6802         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6803         font-lock, pdump, and new syntax-table code.
6804         * syntax.c (find_start_of_comment):
6805         (find_end_of_comment):
6806         (forward-comment):
6807         Fix crashing bugs involving moving beyond end of buffer.
6808         * syntax.c (find_start_of_comment):
6809         Fixed logic to allow proper detection of cases where the same
6810         character is used to end both a two-char comment start and a
6811         two-char comment end sequence. Fixes `(forward-comment -1)'.
6812         * syntax.c (find_start_of_comment):
6813         Return position just past last comment-end character for all cases
6814         (previously was only done for two-char comment-end sequences).
6815         * syntax.c (forward-comment):
6816         Take value returned from `find_end_of_comment', rather than
6817         incrementing it.
6818         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6819         Properly deal with BUFFERP (syntax_cache.object)
6820
6821 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6822
6823         * alloc.c (Fgarbage_collect): 
6824         * alloc.c (make_bit_vector_from_byte_vector):
6825         -Wsign-compare-correctness.
6826
6827 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6828
6829         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6830         (XSETCHAR): Likewise.
6831         (XSETOBJ): Likewise.
6832
6833 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6834
6835         * mule-canna.c (canna-func-delete_previous): 
6836         Rename to canna-func-delete-previous.
6837
6838 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6839
6840         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6841
6842 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6843
6844         * font-lock.c (find_context): Fix C++ compile errors introduced by
6845         recent patch
6846
6847 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6848
6849         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6850         pragma, but earlier ones barf on the same pragma.
6851
6852 2001-02-06  Mike Sperber <mike@xemacs.org>
6853
6854         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6855         `configure-mule-lisp-directory'.
6856
6857 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6858
6859         Make sure dump-id.c is compiled in the same way as other .c's.
6860         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6861         * dump-id.h: Remove.
6862         * emacs.c: Move dump-id.h into dumper.h.
6863         * dumper.h: Move dump-id.h into dumper.h.
6864         * Makefile.in.in:
6865         Use standard .c.o rule for building dump-id.o.
6866         Remove preprocessor flags from link command.
6867         Add dump-id.o to ${otherobjs} if PDUMP.
6868
6869 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6870
6871         Port FSF 20.7 syntax table improvements.
6872         * syntax.c.
6873         * syntax.h.
6874
6875         Fixups for new syntax table stuff.
6876         * dired.c: Include syntax.c.
6877         (Fdirectory_files): Initialize regex_match_object and
6878         regex_emacs_buffer.
6879         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6880         and Fget_char_property.
6881
6882         Use ported FSF 20.7 syntax table improvements.
6883         * font-lock.c.
6884         * regex.c.
6885         * search.c.
6886         
6887 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6888
6889         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6890         Unixware's enum boolean from sys/types.h.
6891
6892 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6893
6894         Fix support for building with latest Purify.
6895         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6896         (PURIFY_FLAGS): Likewise.
6897
6898 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6899
6900         * fileio.c (lisp_string_set_file_times): New.
6901         * fileio.c (Fcopy_file): Use it.
6902         Fixes bug:
6903         (copy-file filename non-ascii-filename t t)
6904         ==> No such file or directory, non-ascii-filename
6905
6906 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6907
6908         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6909         USHRT_MAX seems clearer than ~0 anyways.
6910
6911 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6912
6913         dumper improvements.  Inspired by Olivier.
6914         * dumper.c (pdump_max_align): New.
6915         * dumper.c (pdump_add_entry): Use pdump_max_align.
6916         * dumper.c (pdump_get_entry_list): Likewise.
6917         * dumper.c (pdump_scan_by_alignment): Likewise.
6918         Don't iterate through unnecessary alignments.
6919         * dumper.c (pdump_file_get): No need to align result of malloc().
6920         * dumper.c (pdump_mallocadr): Remove.  
6921         The result of malloc() is guaranteed to be maximally aligned.
6922         * dumper.c: s/elmt/elt/g;
6923         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6924         * dumper.c (pdump_alert_undump_object): Likewise.
6925         * dumper.c (pdump_align_table): 
6926         Don't support alignments > 64.
6927         Store ALIGNOF's, not shift counts, in table.
6928
6929 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6930
6931         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6932         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6933         * systime.h: Use HAVE_UTIME.
6934         * sysdep.c (struct utimbuf): Remove.
6935         * sysdep.c (set_file_times): Prefer utime() to utimes().
6936         * config.h.in (HAVE_UTIME): New.
6937         * config.h.in (HAVE_UTIME_H): Remove.
6938         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6939
6940 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6941
6942         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6943
6944 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6945
6946         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6947
6948 2001-02-08  Martin Buchholz <martin@xemacs.org>
6949
6950         * XEmacs 21.2.44 "Thalia" is released.
6951
6952 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6953
6954         Fixes crashes in kill-emacs on some systems.
6955         * process-unix.c (unix_kill_child_process):
6956         It's OK for kill() to fail with ESRCH.
6957
6958 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6959
6960         Contortions to make .gdbinit tricks work on most systems.
6961         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6962         * alloc.c (dbg_valmask): Make non-const.
6963         * alloc.c (dbg_typemask): Make non-const.
6964         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6965         * alloc.c (dbg_valbits): Make non-const.
6966         * alloc.c (dbg_gctypebits): Make non-const.
6967         * .gdbinit (decode_object): Make it work with AIX cc.
6968
6969 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6970
6971         * elhash.c (make_general_lisp_hash_table):
6972         Use simpler and more efficient calloc to clear entries.
6973
6974 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6975
6976         * window.c (window_scroll): Work around an AIX C compiler bug.
6977         Fixes 'scroll-up' does nothing problem with xlC.
6978
6979 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6980
6981         * .gdbinit: Remove obsolete comment.
6982
6983 2001-01-31  Mike Alexander  <mta@arbortext.com>
6984
6985         * select.c (Fown_selection_internal): Set owned_p for device
6986         method correctly.
6987
6988 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6989
6990         Port to g++ 2.97.
6991         "not" cannot be used as a macro name as it is an operator in C++
6992         * config.h.in: Stop #defining `not'.
6993         * chartab.c (check_category_char): not ==> not_p
6994         * chartab.h: Likewise.
6995         * regex.c (re_match_2_internal): Likewise.
6996
6997 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6998
6999         * lisp-disunion.h: Fix up comments.
7000
7001 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7002
7003         * keymap.c (define_key_check_and_coerce_keysym):
7004         (syms_of_keymap):
7005         Support mouse-6 and mouse-7 bindings in the obvious way.
7006
7007 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7008
7009         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7010
7011 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7012
7013         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7014         Previous patch missed DEFVAR_INT_MAGIC.
7015         Make sure future DEFVAR_foo use correct types.
7016         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7017         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7018         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7019         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7020         * (DEFVAR_INT): Likewise.
7021         * redisplay.c (vertical_clip): Should be of type Fixnum.
7022         * redisplay.c (horizontal_clip): Likewise.
7023         * lisp.h (dump_add_opaque_int): New.
7024         (dump_add_opaque_fixnum): New.
7025
7026 2001-01-29  Andy Piper  <andy@xemacs.org>
7027
7028         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7029         since they can be eval'ed
7030
7031 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7032
7033         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7034         Oops, XEmacs redefines `class'.  Use `typename' instead.
7035
7036 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7037
7038         * dumper.c: Fix C++ compile errors.
7039
7040 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7041
7042         * tparam.c: Use correct prototypes.
7043
7044 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7045
7046         * sysproc.h: #include util.h for NetBSD's openpty.
7047
7048 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7049
7050         More 64-bit correctness.
7051         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7052         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7053         Fix up comments.
7054         This finally finishes the 64-bit SGI port.
7055         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7056         * symbols.c: Fix up comments and type casts.
7057         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7058         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7059         * symeval.h (Fixnum): New type.
7060         * symeval.h (symbol_value_type): Fix up comment.
7061
7062         * commands.h:
7063         * nt.c:
7064         * emacs.c:
7065         * data.c:
7066         * redisplay.c:
7067         * abbrev.c:
7068         * dired-msw.c:
7069         * event-Xt.c:
7070         * eldap.c:
7071         * window.c:
7072         * sound.c:
7073         * event-stream.c:
7074         * eval.c:
7075         * buffer.c:
7076         * mule-canna.c: A million DEFVAR_INTs here...
7077         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7078         * extents.c:
7079         * cmdloop.c:
7080         * lisp.h:
7081         * select-x.c:
7082         * console-x.h:
7083         * event-msw.c:
7084         * mule-wnnfns.c:
7085         * hpplay.c:
7086         * ralloc.c:
7087         * alloc.c:
7088         * keymap.c:
7089         * profile.c:
7090         s/int/Fixnum/g in DEFVAR_INT declarations.
7091
7092 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7093
7094         Port pdump to SGI alignment-sensitive environment.
7095         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7096         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7097         properly aligned.
7098         Define and use aligned reading and writing macros.
7099         Use buffered stdio instead of posix i/o for faster dumping.
7100         Eliminate kludgy 256 byte space for header.
7101         Read and write from dump file using structs for alignment safety.
7102         * dumper.c (pdump_align_stream): New.
7103         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7104         * dumper.c (PDUMP_READ_ALIGNED): New.
7105         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7106         * dumper.c (pdump_static_Lisp_Object): New struct.
7107         * dumper.c (pdump_static_pointer): New struct.
7108         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7109         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7110         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7111         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7112
7113         * dumper.c (pdump_backtrace):
7114         * dumper.c (pdump_get_indirect_count):
7115         * dumper.c (pdump_register_object):
7116         * dumper.c (pdump_register_struct):
7117         * dumper.c (pdump_reloc_one):
7118         * dumper.c (pdump_scan_by_alignment):
7119         * dumper.c (pdump_dump_from_root_struct_ptrs):
7120         * dumper.c (pdump_dump_opaques):
7121         * dumper.c (pdump_dump_rtables):
7122         * dumper.c (pdump_dump_from_root_objects):
7123         * dumper.c (pdump):
7124         * dumper.c (pdump_load_finish):
7125         Use aligned reading and writing.
7126
7127         * dumper.c (pdump_free): Make static.
7128         * dumper.c (pdump_hFile): Likewise.
7129         * dumper.c (pdump_hMap): Likewise.
7130
7131 2001-01-26  Martin Buchholz <martin@xemacs.org>
7132
7133         * XEmacs 21.2.43 "Terspichore" is released.
7134
7135 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7136
7137         Type fiddling for window_config.saved_windows_count
7138         * window.c (struct window_config): 
7139         Make saved_windows_count member unsigned.
7140         * window.c (sizeof_window_config_for_n_windows): 
7141         Make parameter unsigned.
7142         * window.c (mark_window_config):
7143         * window.c (window_config_equal):
7144         * window.c (free_window_configuration):
7145         * window.c (Fset_window_configuration):
7146         * window.c (count_windows):
7147         * window.c (Fcurrent_window_configuration):
7148         * window.c (reinit_vars_of_window):
7149         Update all callers and users.
7150
7151 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7152
7153         Alignment correctness for flexible arrays.
7154         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7155         Make alignment-correct. Add interesting comments.
7156         * alloc.c (size_vector):
7157         * alloc.c (make_vector_internal):
7158         * alloc.c (make_bit_vector_internal):
7159         * alloc.c (sweep_bit_vectors_1):
7160         * fns.c (size_bit_vector):
7161         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7162         * window.c (sizeof_window_config_for_n_windows): 
7163         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7164
7165 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7166
7167         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7168
7169 2001-01-23  Andy Piper  <andy@xemacs.org>
7170
7171         * select.c (Fown_selection_internal): pass owned_p
7172
7173         * select-msw.c (mswindows_own_selection): New Signature.
7174
7175         * console.h (struct console_methods): add owned_p to
7176         _own_selection.
7177
7178         * select-x.c (x_own_selection): pass owned_p
7179         (hack_motif_clipboard_selection): use owned_p
7180         (vars_of_select_x): new variable -
7181         x_selection_strict_motif_ownership.
7182
7183 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7184
7185         * specifier.h (specifier_data_offset): Remove pointless parens.
7186         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7187
7188 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7189
7190         Make Lisp_Object sizeof methods be alignment-correct.
7191         pdump must restore objects to the same alignment as the C compiler
7192         assumes.  It really matters on SGIs.
7193         * lstream.c (aligned_sizeof_lstream): New.
7194         (sizeof_lstream): Use aligned_sizeof_lstream.
7195         (Lstream_new): Likewise.
7196         * opaque.c (aligned_sizeof_opaque): New.
7197         (sizeof_opaque): Use aligned_sizeof_opaque.
7198         (make_opaque): Likewise.
7199         * specifier.c (aligned_sizeof_specifier): New.
7200         (sizeof_specifier): Use aligned_sizeof_specifier.
7201         (make_specifier_internal): Likewise.
7202
7203 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7204
7205         * lstream.h (struct lstream): Use max_align_t for trailing data.
7206         * specifier.h (struct Lisp_Specifier): Likewise.
7207
7208 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7209
7210         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7211         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7212         (CCL_SUSPEND): Likewise.
7213         (CCL_INVALID_CMD): Likewise.
7214         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7215         (ccl_driver): Likewise.
7216         (CCL_WRITE_CHAR): Macro hygiene.
7217         (CCL_WRITE_STRING): Macro hygiene.
7218
7219 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7220
7221         Port "portable" dumper to SunOS 4 and HP-UX.
7222         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7223         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7224         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7225
7226 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7227
7228         * lisp.h (ALIGNOF): A better definition for C++.
7229
7230 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7231
7232         Macro hygiene.
7233         Fix printf warnings: int format, long int arg.
7234         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7235         (PUSH_FAILURE_POINT): Use correct printf formats.
7236         (POP_FAILURE_POINT): Use correct printf formats.  
7237         Use do {...} while (0)
7238
7239 2001-01-20  Martin Buchholz <martin@xemacs.org>
7240
7241         * XEmacs 21.2.42 "Poseidon" is released.
7242
7243 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7244
7245         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7246
7247 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7248
7249         De-kludgify FIXED_TYPE free list frobbing.
7250         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7251         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7252         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7253         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7254         * alloc.c (LRECORD_FREE_P): New.
7255         * alloc.c (MARK_LRECORD_AS_FREE): New.
7256         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7257         * alloc.c (STRUCT_FREE_P): Deleted.
7258         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7259         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7260         * alloc.c (STRING_CHARS_FREE_P): New.
7261         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7262         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7263         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7264         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7265         * alloc.c (resize_string): Use new definitions.
7266         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7267         * alloc.c (verify_string_chars_integrity): Use new definitions.
7268         * alloc.c (compact_string_chars): Use new definitions.
7269         * alloc.c: Update monster comments.
7270         * lrecord.h (lrecord_type): Add some new lrecord types for
7271         alloc.c's use.
7272
7273 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7274
7275         Improve alignment hackery.
7276         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7277         (max_align_t): Moved from opaque.h - general purpose.
7278         (ALIGN_PTR): Use size_t, not long.
7279         * opaque.h (max_align_t): Move to lisp.h.
7280
7281 2001-01-18  Norbert Koch  <nk@LF.net>
7282
7283         * gui.h: Fix and add prototypes to fix build problems.
7284
7285 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7286
7287         temacs is going away, so `dump-temacs' is now a bad name.
7288         * .dbxrc (dump-temacs): Rename to `dmp'.
7289         * .gdbinit (dump-temacs): Rename to `dmp'.
7290
7291 2001-01-17  Andy Piper  <andy@xemacs.org>
7292
7293         * glyphs.c (print_image_instance): comment to make martin happy.
7294
7295         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7296         change.
7297
7298         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7299         activation.
7300         (mswindows_tab_control_redisplay): warning suppression.
7301
7302         * glyphs-widget.c (widget_update): re-write to cope with updated
7303         items.
7304         (widget_instantiate): use new gui_item functions.
7305         (tab_control_update): deleted.
7306         (progress_gauge_update): deleted.
7307         (image_instantiator_progress_guage): take out update reference.
7308         (image_instantiator_tree_view): ditto.
7309         (image_instantiator_tab_control): ditto.
7310
7311         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7312         Right the new way.
7313         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7314         return whether anything was changed.
7315         (update_gui_item_keywords): as it sounds.
7316
7317         * gui.h: declare widget_gui_parse_item_keywords.
7318
7319         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7320         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7321
7322 2001-01-17  Martin Buchholz <martin@xemacs.org>
7323
7324         * XEmacs 21.2.41 "Polyhymnia" is released.
7325
7326 2001-01-16  Didier Verna  <didier@xemacs.org>
7327
7328         * glyphs.c (image_instantiate): don't use fallbacks when
7329         instantiating a face's background pixmap by inheritance.
7330
7331 2001-01-14  Mike Sperber <mike@xemacs.org>
7332
7333         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7334         Conditionalize accordingly.
7335
7336 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7337
7338         * dumper.c (pdump_file_get): Fix a compiler warning.
7339
7340 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7341
7342         Make Purify happy when pdumping.
7343         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7344         iniitalizing all bits of new lisp object memory.
7345         * symbols.c (Fmake_local_variable): Likewise.
7346         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7347         * symbols.c (Fdefvaralias): Likewise.
7348         * mule-charset.c (vars_of_mule_charset): Likewise.
7349
7350 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7351         Add the `-nd' flag when running pre-dump operations under the debugger.
7352         * .dbxrc (run-temacs): Add `-nd'.
7353         * .dbxrc (update-elc): Likewise.
7354         * .dbxrc (dump-temacs): Likewise.
7355         * .gdbinit (run-temacs): Likewise.
7356         * .gdbinit (check-temacs): Likewise.
7357         * .gdbinit (update-elc): Likewise.
7358         * .gdbinit (dump-temacs): Likewise.
7359
7360 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7361
7362         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7363         export OBJECT_MODE=64
7364         configure --pdump --use-union-type=no
7365         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7366         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7367
7368         * miscplay.c (sndcnv8U_2mono):
7369         Avoid two uses of `++' in the same expression.
7370         Suppresses a GCC warning.
7371
7372 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7373
7374         Make sure future compilers don't miscompile alloc.c.
7375         * alloc.c:
7376         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7377         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7378
7379 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7380
7381         * dumper.c: A little post-pdump-rename comment fixup.
7382
7383 2001-01-09  Jerry James  <james@eecs.ku.edu>
7384
7385         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7386
7387 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7388
7389         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7390         script:
7391         #!/bin/sh
7392         replace_symbol () {
7393           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7394         }
7395
7396         replace_symbol pdump_wire_lists pdump_weak_object_chains
7397         replace_symbol pdump_wire_list dump_add_weak_object_chain
7398
7399         replace_symbol pdump_wires pdump_root_objects
7400         replace_symbol pdump_wire dump_add_root_object
7401
7402         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7403         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7404
7405         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7406         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7407         replace_symbol dumpstructinfo pdump_root_struct_ptr
7408         replace_symbol dumpstruct dump_add_root_struct_ptr
7409
7410         replace_symbol dumpopaque dump_add_opaque
7411         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7412         replace_symbol dumpopaqueinfos pdump_opaques
7413         replace_symbol dumpopaqueinfo pdump_opaque
7414
7415         replace_symbol nb_structdump nb_root_struct_ptrs
7416         replace_symbol nb_opaquedump nb_opaques
7417
7418         replace_symbol align_table pdump_align_table
7419         replace_symbol dump_header pdump_header
7420
7421         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7422         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7423
7424
7425 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7426
7427         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7428         optimizing bytecount_to_charcount().
7429
7430 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7431
7432         * config.h.in:
7433         (HAVE_DLFCN_H): Removed.
7434         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7435
7436 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7437
7438         Portable dumper maintainability improvements.
7439         * alloc.c (staticpro):
7440         * alloc.c (staticpro_nodump):
7441         * alloc.c (garbage_collect_1):
7442         * alloc.c (reinit_alloc_once_early):
7443         * alloc.c (init_alloc_once_early):
7444         * alloc.c: Move dumper functions to alloc.c.
7445         * dumper.c (pdump_backtrace):
7446         * dumper.c (pdump_dump_structs):
7447         * dumper.c (pdump_dump_opaques):
7448         * dumper.c (pdump_dump_rtables):
7449         * dumper.c (pdump_dump_wired):
7450         * dumper.c (pdump):
7451         * dumper.c (pdump_load_check):
7452         * dumper.c (pdump_load_finish):
7453         * dumper.c (pdump_file_unmap):
7454         * dumper.c (pdump_file_get):
7455         * dumper.c (pdump_resource_free):
7456         * dumper.c (pdump_resource_get):
7457         * dumper.c (pdump_file_free):
7458         * dumper.c (pdump_file_try):
7459         * dumper.c (pdump_load):
7460         Remove fixed size limits on staticpro(), staticpro_nodump(),
7461         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7462         Remove custom code for dumping lrecord_implementations_table - use
7463         dumpopaque instead.
7464         Remove (most of the) custom code for dumping staticpros - dump it
7465         like any other dynarr.
7466
7467         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7468         * dumper.c: Moved functions from alloc.c.
7469         * alloc.c (dumpstruct): Moved to dumper.c.
7470         * alloc.c (dumpopaque): Likewise.
7471         * alloc.c (pdump_wire): Likewise.
7472         * alloc.c (pdump_wire_list): Likewise.
7473
7474         * lisp.h (Dynarr_sizeof): New.
7475         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7476         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7477         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7478
7479         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7480         * lisp.h (dumpopaque): ditto.
7481         * lisp.h (pdump_wire): ditto.
7482         * lisp.h (pdump_wire_list): ditto.
7483
7484 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7485
7486         * make-src-depend (PrintPatternDeps):
7487         Use `sort' to make output independent of perl version.
7488
7489 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7490
7491         Port to Netbsd 1.5.
7492         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7493         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7494
7495 2001-01-03  Didier Verna  <didier@xemacs.org>
7496
7497         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7498         that `focus_frame' is alive before thinking of calling
7499         `redisplay_redraw_cursor' on it.
7500
7501 2001-01-08  Martin Buchholz <martin@xemacs.org>
7502
7503         * XEmacs 21.2.40 is released.
7504
7505 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7506
7507         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7508
7509 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7510
7511         * alloc.c (dbg_valmask): Make const.
7512         * alloc.c (dbg_typemask): Make const.
7513         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7514         * alloc.c (dbg_valbits): Make const.
7515         * alloc.c (dbg_gctypebits): Make const.
7516
7517 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7518
7519         * redisplay-x.c (x_bevel_area):
7520         redisplay.h (struct rune):
7521         Typo fixes in comments.
7522
7523 2001-01-05  Andy Piper  <andy@xemacs.org>
7524
7525         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7526         adjustment.
7527
7528         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7529
7530 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7531
7532         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7533
7534         * mule-ccl.c (stack_idx_of_map_multiple):
7535         Non const global data must not be initialized!
7536         Found by MIYASHITA Hisashi.
7537
7538 2001-01-02  Andy Piper  <andy@xemacs.org>
7539
7540         * frame.c (change_frame_size): make sure frame size is always
7541         marked as changed.
7542
7543         * glyphs.c (image_instance_layout): minor code reuse.
7544
7545         * window.c (Fcurrent_window_configuration): revert previous
7546         change.
7547
7548 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7549
7550         * glyphs.h:
7551         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7552
7553 2000-12-31  Andy Piper  <andy@xemacs.org>
7554
7555         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7556         when widget gets unmapped.
7557
7558         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7559         function. Make sure widgets losing focus don't just drop it.
7560         (handle_focus_event_1): record the widget with focus.
7561
7562 2000-12-31  Andy Piper  <andy@xemacs.org>
7563
7564         * window.c (allocate_window): use
7565         make_image_instance_cache_hash_table.
7566         (make_dummy_parent): ditto.
7567         (Fset_window_configuration): ditto.
7568
7569         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7570
7571         * glyphs.c (process_image_string_instantiator): use
7572         INSTANTIATOR_TYPE.
7573         (get_image_instantiator_governing_domain): ditto.
7574         (normalize_image_instantiator): ditto.
7575         (instantiate_image_instantiator): ditto.
7576         (make_image_instance_1): ditto.
7577         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7578         (instantiator_eq_equal): new function for use with instance hash
7579         tables.
7580         (instantiator_eq_hash): ditto.
7581         (make_image_instance_cache_hash_table): create a suitable hash
7582         table for storing image instances.
7583
7584         * elhash.h (hash_table_weakness): new internal weakness type
7585         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7586         declare new functions.
7587
7588         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7589         another weakness type for glyphs.
7590         (make_standard_lisp_hash_table): new function split out from
7591         make_general_lisp_hash_table.
7592         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7593         (hash_table_instantiate): ditto.
7594         (Fmake_hash_table): ditto.
7595
7596 2000-12-31  Martin Buchholz <martin@xemacs.org>
7597
7598         * XEmacs 21.2.39 is released.
7599
7600 2000-12-29  Andy Piper  <andy@xemacs.org>
7601
7602         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7603
7604         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7605         the frame has changed so that we pick up geometry changes such as
7606         menubar visibility.
7607
7608 2000-12-28  Andy Piper  <andy@xemacs.org>
7609
7610         * lastfile.c (my_ebss): make a char array so we can pad the
7611         bss. Fixes cygwin unexec.
7612
7613         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7614
7615 2000-12-26  Andy Piper  <andy@xemacs.org>
7616
7617         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7618         comments and try and be more precise about a non-/SIGIO world.
7619         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7620         SIGIO.
7621
7622         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7623         we don't normalize to zero width or height.
7624
7625 2000-12-24  Andy Piper  <andy@xemacs.org>
7626
7627         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7628
7629 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7630
7631         * s/sco5.h: SCO 5 has pty support.
7632
7633 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7634
7635         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7636         input-method-xlib.c contains whole contents of input-method-xfs.c,
7637         so we can use input-method-xlib.c's code for USE_XFONTSET
7638         using #ifdefs.
7639         * input-method-xfs.c: removed.
7640
7641 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7642
7643         * file-coding.h (enum coding_category_type): reorder enumerators to
7644         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7645         (now one greater than largest real coding_category_type enumerator).
7646         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7647         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7648         Fcoding_category_list, Fset_coding_priority_list,
7649         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7650         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7651
7652 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7653
7654         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7655         * redisplay-output.c (redisplay_output_window): Clear top of window
7656         when face is changed.
7657         * redisplay-x.c (x_redraw_exposed_window): Call
7658         redisplay_clear_top_of_window.
7659         * redisplay.h: Publish redisplay_clear_top_of_window.
7660
7661 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7662
7663         * buffer.c (Fkill_buffer): Map over all devices.
7664         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7665         (list_windows): New function.
7666         (list_all_windows): Ditto.
7667         (Freplace_buffer_in_windows): Use them.
7668
7669 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7670
7671         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7672         (Fopen_database): Use `db_create' instead of `db_open'.
7673         (syms_of_database): Initialize Qqueue.
7674
7675 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7676
7677         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7678         buffer_local_face_property.
7679         * buffer.h (struct buffer): New member buffer_local_face_property.
7680         * window.c (Fset_window_buffer):  Mark window's face as changed
7681         when buffer has buffer local face.
7682         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7683         * objects.c (color_after_change): Set buffer_local_face_property
7684         when locale of face specifier is buffer.
7685         * objects.c (font_after_change): Ditto.
7686         * objects.c (face_boolean_after_change): Ditto.
7687         * glyphs.c (image_after_change): Ditto.
7688
7689 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7690
7691         * nt.c (mswindows_fstat): Report file permissions, volume serial
7692         number, etc. Code adapted from FSF Emacs 20.7.
7693
7694 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7695
7696         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7697         of stat when we don't have symbolic links, to make sure
7698         mswindows_stat is called on mswindows.
7699
7700 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7701
7702         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7703
7704 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7705
7706         * doprnt.c (emacs_doprnt_1): More printing fixes.
7707         Make printing of numbers compatible with libc and FSF Emacs.
7708         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7709         Use the system printf to do most of the hard work of formatting,
7710         instead of doprnt_1().
7711         Calculate memory to allocate for format string.
7712         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7713         (doprnt_1): Cleaner code and documentation.
7714
7715 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7716
7717         * Makefile.in.in: Use the loop variable to install headers.
7718
7719 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7720
7721         * window.c (Fsplit_window): Don't invalidate face cache.
7722
7723 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7724
7725         * minibuf.c (Fall_completions): Undo the previous change
7726         which removed checking elements start with space.
7727
7728 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7729
7730         * mule-canna.c: Didier suppression.
7731
7732 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7733
7734         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7735         (warning suppression).  Add English comment translations.
7736
7737 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7738
7739         * unexelfsgi.c (unexec): Better test for mmap failure.
7740
7741 2000-12-05  Martin Buchholz <martin@xemacs.org>
7742
7743         * XEmacs 21.2.38 is released.
7744
7745 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7746
7747         * redisplay.c (bar-cursor): Make a user variable.
7748
7749         * symsinit.h: Add init_postgresql_from_environment.
7750
7751 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7752
7753         * regex.c: Convert to clean C.
7754
7755 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7756
7757         * realpath.c:
7758         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7759         initialization.
7760         (sys_readlink): renamed to system_readlink to avoid conflict with
7761         the other sys_readlink.
7762
7763 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7764
7765         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7766
7767 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7768
7769         * postgresql.c (init_postgresql_from_environment): new function.
7770         (vars_of_postgresql): Move code initializing Lisp variables out and
7771         into init_postgresql_from_environment.
7772         emacs.c (main_1): Call init_postgresql_from_environment if and only
7773         if running a dumped XEmacs.
7774
7775 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7776
7777         * buffer.c: Make find-file-compare-truenames default to true on
7778         windows.
7779
7780         * realpath.c (win32_abs_start):
7781         (cygwin_readlink):
7782         (win32_readlink): New functions.
7783         (xrealpath): Return really real filenames on windows.
7784
7785         * fileio.c (Ffile_truename): Make file-truename work on windows.
7786
7787 2000-11-29  Didier Verna  <didier@xemacs.org>
7788
7789         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7790         * faces.c (update_face_cachel_data): use it.
7791         * faces.c (add_face_cachel): use it. Complete background pixmap
7792         frobbing in face cache if `update_face_cachel_data' has not done so.
7793
7794 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7795
7796         * search.c (string_match_1): Don't set last_thing_searched
7797         when search failed.
7798
7799 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7800
7801         * buffer.c: Include casetab.h
7802         (common_init_complex_vars_of_buffer): Use new case-table object.
7803         * buffer.h: Include casetab.h
7804         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7805         (DOWNCASE_TABLE_OF): Ditto.
7806         * bufslots.h: Remove char-tables and add case-table.
7807         * casetab.c: Include casetab.h
7808         (CASE_TABLE_P): Removed.
7809         (mark_case_table): New function.
7810         (allocate_case_table): New function.
7811         (Fcase_table_p): Use new case-table.
7812         (case_table_char): New function.
7813         (Fget_case_table): Ditto.
7814         (Fput_case_table): Ditto.
7815         (Fput_case_table_pair): Ditto.
7816         (Fcopy_case_table): Ditto.
7817         (Fcurrent_case_table): Return case-table.
7818         (Fstandard_case_table): Return case-table.
7819         (Fset_case_table): Fix doc-string.
7820         (set_case_table): Use case-table
7821         (syms_of_casetab): DEFSUBR new functions.
7822         (complex_vars_of_casetab): Set up standard case-table.
7823         * casetab.h: New file.
7824         * editfns.c: Include casetab.h
7825         (Fcompare_buffer_substrings): Use case-table.
7826         * inline.c: Include casetab.h
7827         * lisp.h: Remove bogus extern.
7828         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7829         * search.c: Include casetab.h
7830         (TRANSLATE_ASCII): Removed.
7831         (TRANSLATE): Unconditionally translate character.
7832         (looking_at_1): Use case-table.
7833         (string_match_1): Ditto.
7834         (fast_string_match): Ditto.
7835         (search_command): Ditto.
7836         (search_buffer): Separate boyer_moore.  Check whether
7837         boyer_moore is possible.
7838         (simple_search): New function.
7839         (boyer_moore): Separated from search_buffer. Translate char.
7840
7841 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7842
7843         * regex.c (RE_TR_ASCII): Removed.
7844         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7845         (PATFETCH): Call PATFETCH_RAW.
7846         (PATFETCH_RAW): Fetch Emchar.
7847         (PATUNFETCH): Decrement charptr.
7848         (GET_BUFFER_SPACE): Rename b to buf_end.
7849         (BUF_PUSH): Ditto.
7850         (BUF_PUSH_2): Ditto.
7851         (BUF_PUSH_3): Ditto.
7852         (EXTEND_BUFFER): Ditto.
7853         (SET_LIST_BIT): Ditto.
7854         (regex_compile): Ditto.  Translate non ASCII char.
7855         (compile_range): Ditto.
7856         (re_search_2): Ditto.
7857         (re_match_2_internal): Compare Emchar.
7858         (bcmp_translate): Ditto.
7859
7860 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7861
7862         * lisp.h (basic char/int typedefs):  comment improvement.
7863
7864 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7865
7866         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7867         unstomp inhibit_site_lisp.  Improve comments.
7868
7869 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7870
7871         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7872
7873 2000-11-28  Andy Piper  <andy@xemacs.org>
7874
7875         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7876         clipped display for windows in the gutter also.
7877         (redisplay_display_boxes_in_window_p): change semantics of return
7878         codes to be more intuitive.
7879
7880         * gutter.h: declare display_boxes_in_gutter_p.
7881
7882         * gutter.c (display_boxes_in_gutter_p): new function for
7883         redisplay.
7884
7885 2000-11-22  Andy Piper  <andy@xemacs.org>
7886
7887         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7888         autodetect domain.
7889
7890 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7891
7892         * callproc.c (Fold_call_process_internal):
7893         * gpm.c (Freceive_gpm_event):
7894         (tty_get_foreign_selection): Might be just warning supression.
7895         * fileio.c (Fwrite_region_internal):
7896         (Fset_visited_file_modtime):
7897         * keymap.c (event_matches_key_specifier_p):
7898         Initialize GCPROed variable.
7899
7900         * menubar-x.c (command_builder_find_menu_accelerator):
7901         Initialize before use.
7902
7903 2000-11-23  Andy Piper  <andy@xemacs.org>
7904
7905         * unexcw.c (unexec): make the resulting executable executable.
7906
7907 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7908
7909         * doc.c (get_doc_string):
7910         Use size_t, not int, for result of XSTRING_LENGTH.
7911
7912         * cmds.c (Fdelete_char):
7913         * cmds.c (Fpoint_at_eol):
7914         * cmds.c (Fself_insert_command):
7915         Use EMACS_INT, not int, for result of XINT.
7916         Someday, someone will want to insert more than 2**31 identical characters.
7917
7918         * cmds.c (Fdelete_char):
7919         * cmds.c (Fdelete_backward_char):
7920         * syntax.c (Fforward_word):
7921         * syntax.c (Fforward_comment):
7922         Make COUNT argument optional, for consistency with forward-char et al.
7923
7924 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7925
7926         * lisp.h:
7927         * print.c (long_to_string):
7928         Return a useful value: the pointer at end of data written.
7929
7930         * doprnt.c:
7931         Use `static const char * const' for constant strings.
7932         (union printf_arg): Delete `i', `ui' members.
7933         (get_doprnt_args):
7934         (emacs_doprnt_1):
7935         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7936         Do all printf-ing via the `l' specifier.
7937         Use EMACS_INT instead of int.
7938         Optimize.
7939
7940 2000-11-20  Didier Verna  <didier@xemacs.org>
7941
7942         * faces.c (update_face_cachel_data): don't frob the background
7943         pixmap when the window is being created. The face is needed but
7944         does not exist yet.
7945
7946 2000-11-20  Andy Piper  <andy@xemacs.org>
7947
7948         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7949         messing with a debug environment.
7950
7951 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7952
7953         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7954
7955 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7956
7957         * casetab.c (Fcase_table_p): Fix compile error and crash.
7958
7959 2000-11-18  Philip Aston  <philipa@mail.com>
7960
7961         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7962
7963 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7964
7965         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7966         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7967
7968 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7969
7970         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7971         * unexelf.c: Use HAVE_ELF_H.
7972         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7973         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7974         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7975         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7976         for testing.
7977         So this is an unexelfsgi.c from a different line of development.
7978
7979 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7980
7981         * regex.c (RE_TR_ASCII): New function.
7982         (RE_TRANSLATE): Call it.
7983
7984 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7985
7986         * buffer.h (TRT_TABLE_OF): Remove assert.
7987         (IN_TRT_TABLE_DOMAIN): Removed.
7988
7989 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7990
7991         * free-hook.c (log_gcpro):
7992         (show_gcprohist): Add support for GCPRO5.
7993
7994 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7995
7996         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7997
7998 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7999
8000         * symeval.h: Declare flush_all_buffer_local_cache.
8001
8002         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8003         (flush_buffer_local_cache): Added.
8004         (flush_all_buffer_local_cache): Added.
8005
8006         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8007
8008         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8009         (pdump_dump_data): Ditto.
8010         (pdump_reloc_one): Ditto.
8011         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8012         before dumping.
8013
8014
8015 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8016
8017         * buffer.c: Remove if 0'ed entry.
8018         * buffer.h: Rewrite TRT to use char-table.
8019         * bufslots.h: Remove mirror tables.
8020         * casetab.c: Remove mirror tables.
8021         (CASE_TABLE_P): New macro.
8022         (Fcase_table_p): Element of a case table is string or char-table.
8023         (make_mirror_trt_table): Removed.
8024         (set_case_table): Setup char-table from strings for backward
8025         compatibility.
8026         * dired.c (Fdirectory_files):
8027         * dired-msw.c: (mswindows_get_files):
8028         * lisp.h: Change prototype of re_pattern_buffer.
8029         * regex.c: (RE_TRANSLATE): New macro.
8030         (TRANSLATE_P): Ditto.
8031         Change translate to type RE_TRANSLATE_TYPE.
8032         * regex.h: Define RE_TRANSLATE_TYPE
8033         * search.c (TRANSLATE): New macro.
8034         (TRANSLATE_ASCII): New macro.
8035         Translate table is changed to Lisp_Object.
8036         (signal_failure): Inhibit return.
8037
8038 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8039
8040         * device-msw.c:
8041         * eldap.c:
8042         * event-Xt.c:
8043         * event-stream.c:
8044         * print.c:
8045         Do UNGCPRO before return.
8046
8047 2000-11-14  Martin Buchholz <martin@xemacs.org>
8048
8049         * XEmacs 21.2.37 is released.
8050
8051 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8052
8053         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8054         Add comments about discarded return value.
8055
8056 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8057
8058         * callint.c:
8059         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8060
8061 2000-10-27  Andy Piper  <andy@xemacs.org>
8062
8063         * gutter.c (Fset_default_gutter_position): default left and right
8064         gutters to visible.
8065         (calculate_gutter_size): calculate resonable heuristic for left
8066         and right gutter sizes.
8067         (specifier_vars_of_gutter): change left and right gutter sizes to
8068         autodetect.
8069         (calculate_gutter_size_from_display_lines): new function.
8070         (output_gutter): check for resizing on left and right gutters.
8071         (clear_gutter): don't special case top and left gutters.
8072         (specifier_vars_of_gutter): use new signature for
8073         set_specifier_caching.
8074
8075         * glyphs-x.c (x_redisplay_widget): spelling fix.
8076         * glyphs.c (specifier_vars_of_glyphs):
8077         * menubar.c (specifier_vars_of_menubar):
8078         * redisplay.c (specifier_vars_of_redisplay):
8079         * toolbar.c (specifier_vars_of_toolbar):
8080         * window.c (specifier_vars_of_window):
8081         * scrollbar.c (specifier_vars_of_scrollbar):
8082         (complex_vars_of_scrollbar): use new signature for
8083         set_specifier_caching.
8084
8085         * specifier.c (set_specifier_caching): include recompute flag.
8086         (recompute_one_cached_specifier_in_window): always recompute if
8087         flag set.
8088         (recompute_one_cached_specifier_in_frame): ditto.
8089
8090         * specifier.h (struct specifier_caching): add recompute flag.
8091
8092 2000-10-24  Andy Piper  <andy@xemacs.org>
8093
8094         * unexcw.c (copy_executable_and_dump_data_section): add new
8095         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8096         5.0 happy.
8097
8098 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8099
8100         * console-x.h (x_device): New member modifier_release_time.
8101         * event-Xt.c (x_handle_sticky_modifiers):
8102         Bound interval modifier keys are sticky.
8103         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8104         * events.h: extern it.
8105
8106 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8107
8108         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8109
8110 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8111
8112         * event-stream.c (execute_command_event): Preserve current_events
8113         and the like when event is misc-user-event.
8114         Inhibit quit during the call to maybe_echo_keys.
8115
8116 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8117
8118         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8119         symlink when buffer is killed.
8120         (inhibit_clash_detection): New variable.
8121
8122 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8123
8124         * console.c (Fset_input_method): Trigger redisplay on tty.
8125
8126 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8127
8128         * process.c (Fprocess_status): Revert to previous behavior:
8129         (process-status "nosuchprocess") ==> nil
8130
8131 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8132
8133         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8134         Work around another GCC 2.95.2 optimizer bug.
8135
8136 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8137
8138         * process.c (Fget_process): Use LIST_LOOP_2.
8139         (kill_buffer_processes): Use LIST_LOOP_2.
8140
8141         * minibuf.c (Fall_completions):
8142         Delete old non-functional code for FSF fourth argument.
8143
8144         * frame.c (frame_matches_frame_spec):
8145         Renamed from `frame_matches_frametype'.  Update all callers.
8146         (device_matches_device_spec):
8147         Renamed from 'device_matches_console_spec'.  Update all callers.
8148
8149         * doc.c (Fsubstitute_command_keys):
8150         Remove buffer overflow crash.  Small code cleanups.
8151
8152         * casetab.c (check_case_table): Simpler code.
8153
8154         * window.c (Freplace_buffer_in_windows):
8155         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8156         (and similar implementation) as Fdelete_windows_on.
8157         Update all callers.
8158
8159         * alloc.c (Fmake_list):
8160         * alloc.c (make_vector):
8161         * alloc.c (Fmake_vector):
8162         * alloc.c (make_bit_vector):
8163         * alloc.c (Fmake_bit_vector):
8164         * alloc.c (Fbit_vector):
8165         * alloc.c (Fmake_string):
8166         * alloc.c (Fpurecopy):
8167         * alloc.c (Fmemory_limit):
8168         * buffer.c:
8169         * buffer.c (Fget_buffer):
8170         * buffer.c (Fkill_buffer):
8171         * buffer.c (complex_vars_of_buffer):
8172         * bytecode.c (Fcompiled_function_stack_depth):
8173         * callint.c (Fprefix_numeric_value):
8174         * event-stream.c:
8175         * event-stream.c (Fread_key_sequence):
8176         * casetab.c:
8177         * casetab.c (Fcase_table_p):
8178         * casetab.c (check_case_table):
8179         * casetab.c (Fset_case_table):
8180         * casetab.c (Fset_standard_case_table):
8181         * chartab.c:
8182         * chartab.c (Fchar_table_type):
8183         * chartab.c (Freset_char_table):
8184         * chartab.c (Fget_char_table):
8185         * chartab.c (Fget_range_char_table):
8186         * chartab.c (Fput_char_table):
8187         * chartab.c (Fmap_char_table):
8188         * chartab.c (Fcategory_table_p):
8189         * chartab.c (Fcheck_category_at):
8190         * chartab.c (Fchar_in_category_p):
8191         * chartab.c (Fcategory_table):
8192         * chartab.c (Fcopy_category_table):
8193         * chartab.c (Fset_category_table):
8194         * chartab.c (Fcategory_designator_p):
8195         * chartab.c (Fcategory_table_value_p):
8196         * cmds.c (Fdelete_char):
8197         * cmds.c (Fdelete_backward_char):
8198         * cmds.c (Fself_insert_command):
8199         * cmds.c (Fself_insert_internal):
8200         * console.c (Fvalid_console_type_p):
8201         * console.c (Fcdfw_console):
8202         * console.c (Fconsole_type):
8203         * console.c (Fconsole_name):
8204         * console.c (Fconsole_device_list):
8205         * console.c (Fconsole_on_window_system_p):
8206         * data.c:
8207         * data.c (Feq):
8208         * data.c (Fold_eq):
8209         * data.c (Fsubr_interactive):
8210         * data.c (Fchar_to_int):
8211         * data.c (Fint_to_char):
8212         * data.c (Fsetcar):
8213         * data.c (Fsetcdr):
8214         * data.c (Fnumber_to_string):
8215         * data.c (Fstring_to_number):
8216         * data.c (Frem):
8217         * database.c (mark_database):
8218         * database.c (finalize_database):
8219         * database.c (Fdatabase_live_p):
8220         * database.c (Fdatabasep):
8221         * device-x.c (Fx_get_resource):
8222         * device.c (Fdfw_device):
8223         * dired.c:
8224         * dired.c (Ffile_name_completion):
8225         * dired.c (Ffile_name_all_completions):
8226         * dired.c (Fuser_name_completion):
8227         * dired.c (Fuser_name_completion_1):
8228         * dired.c (Fuser_name_all_completions):
8229         * doc.c (Fdocumentation):
8230         * doc.c (Fdocumentation_property):
8231         * doc.c (Fsubstitute_command_keys):
8232         * editfns.c:
8233         * editfns.c (Fchar_to_string):
8234         * editfns.c (Fstring_to_char):
8235         * editfns.c (Ftemp_directory):
8236         * editfns.c (Finsert_char):
8237         * editfns.c (Fbuffer_substring_no_properties):
8238         * editfns.c (Fnarrow_to_region):
8239         * editfns.c (Fchar_equal):
8240         * editfns.c (Fchar_Equal):
8241         * editfns.c (Ftranspose_regions):
8242         * emacs.c (Fdump_emacs):
8243         * eval.c (Fthrow):
8244         * eval.c (Fcommand_execute):
8245         * eval.c (Fautoload):
8246         * eval.c (Fbacktrace):
8247         * eval.c (Fbacktrace_frame):
8248         * events.c:
8249         * events.c (Fcopy_event):
8250         * events.c (Fcharacter_to_event):
8251         * events.c (Fevent_button):
8252         * events.c (Fevent_process):
8253         * extents.c:
8254         * extents.c (Fnext_extent_change):
8255         * extents.c (Fextent_property):
8256         * faces.c (Ffacep):
8257         * faces.c (Fmake_face):
8258         * file-coding.c:
8259         * file-coding.c (Fencode_shift_jis_char):
8260         * file-coding.c (Fencode_big5_char):
8261         * fileio.c (Ffile_name_directory):
8262         * fileio.c (Ffile_name_nondirectory):
8263         * fileio.c (Ffile_name_as_directory):
8264         * fileio.c (Fdirectory_file_name):
8265         * fileio.c (Ffile_truename):
8266         * fileio.c (Fsubstitute_in_file_name):
8267         * fileio.c (Ffile_modes):
8268         * fileio.c (Fset_file_modes):
8269         * fileio.c (Fset_default_file_modes):
8270         * fileio.c (Fverify_visited_file_modtime):
8271         * floatfns.c (Facos):
8272         * floatfns.c (Fasin):
8273         * floatfns.c (Fatan):
8274         * floatfns.c (Fcos):
8275         * floatfns.c (Fsin):
8276         * floatfns.c (Ftan):
8277         * floatfns.c (Fbessel_j0):
8278         * floatfns.c (Fbessel_j1):
8279         * floatfns.c (Fbessel_jn):
8280         * floatfns.c (Fbessel_y0):
8281         * floatfns.c (Fbessel_y1):
8282         * floatfns.c (Fbessel_yn):
8283         * floatfns.c (Ferf):
8284         * floatfns.c (Ferfc):
8285         * floatfns.c (Flog_gamma):
8286         * floatfns.c (Fexp):
8287         * floatfns.c (Fexpt):
8288         * floatfns.c (Flog):
8289         * floatfns.c (Flog10):
8290         * floatfns.c (Fsqrt):
8291         * floatfns.c (Fcube_root):
8292         * floatfns.c (Facosh):
8293         * floatfns.c (Fasinh):
8294         * floatfns.c (Fatanh):
8295         * floatfns.c (Fcosh):
8296         * floatfns.c (Fsinh):
8297         * floatfns.c (Ftanh):
8298         * floatfns.c (Fabs):
8299         * floatfns.c (Ffloat):
8300         * floatfns.c (Flogb):
8301         * floatfns.c (Fceiling):
8302         * floatfns.c (Ffloor):
8303         * floatfns.c (Fround):
8304         * floatfns.c (Ftruncate):
8305         * floatfns.c (Ffceiling):
8306         * floatfns.c (Fffloor):
8307         * floatfns.c (Ffround):
8308         * floatfns.c (Fftruncate):
8309         * fns.c (Fstring_equal):
8310         * fns.c (Fstring_lessp):
8311         * fns.c (concat2):
8312         * fns.c (concat3):
8313         * fns.c (vconcat2):
8314         * fns.c (vconcat3):
8315         * fns.c (Fsubstring):
8316         * fns.c (Fassoc):
8317         * fns.c (Fold_assoc):
8318         * fns.c (assoc_no_quit):
8319         * fns.c (Fassq):
8320         * fns.c (Fold_assq):
8321         * fns.c (assq_no_quit):
8322         * fns.c (Frassoc):
8323         * fns.c (Fold_rassoc):
8324         * fns.c (Frassq):
8325         * fns.c (Fold_rassq):
8326         * fns.c (rassq_no_quit):
8327         * fns.c (Fremassoc):
8328         * fns.c (remassoc_no_quit):
8329         * fns.c (Fremassq):
8330         * fns.c (remassq_no_quit):
8331         * fns.c (Fremrassoc):
8332         * fns.c (Fremrassq):
8333         * fns.c (remrassq_no_quit):
8334         * fns.c (Fsort):
8335         * fns.c (Fplist_get):
8336         * fns.c (Fplist_put):
8337         * fns.c (Fplist_remprop):
8338         * fns.c (Fplist_member):
8339         * fns.c (Flax_plist_get):
8340         * fns.c (Flax_plist_put):
8341         * fns.c (Flax_plist_remprop):
8342         * fns.c (Flax_plist_member):
8343         * fns.c (Fequal):
8344         * fns.c (Fold_equal):
8345         * fns.c (Frequire):
8346         * fns.c (Fbase64_encode_region):
8347         * fns.c (Fbase64_encode_string):
8348         * fns.c (Fbase64_decode_region):
8349         * frame.c:
8350         * frame.c (frame_matches_frame_spec):
8351         * frame.c (device_matches_device_spec):
8352         * frame.c (next_frame):
8353         * frame.c (previous_frame):
8354         * frame.c (Fnext_frame):
8355         * frame.c (Fprevious_frame):
8356         * frame.c (Fframe_property):
8357         * frame.c (Fset_frame_height):
8358         * frame.c (Fset_frame_size):
8359         * frame.h:
8360         * glyphs.c:
8361         * glyphs.c (if):
8362         * glyphs.c (decode_error_behavior_flag):
8363         * glyphs.c (Fmake_image_instance):
8364         * indent.c (Findent_to):
8365         * intl.c (Fignore_defer_gettext):
8366         * keymap.c (Fkeymapp):
8367         * keymap.c (Flookup_key):
8368         * lread.c:
8369         * lread.c (Fload_internal):
8370         * lread.c (Feval_buffer):
8371         * lread.c (Feval_region):
8372         * macros.c (Fexecute_kbd_macro):
8373         * marker.c (set_marker_internal):
8374         * marker.c (Fset_marker):
8375         * marker.c (set_marker_restricted):
8376         * marker.c (Fcopy_marker):
8377         * marker.c (noseeum_copy_marker):
8378         * menubar.c:
8379         * menubar.c (Fpopup_menu):
8380         * minibuf.c:
8381         * mule-charset.c (Fcharset_name):
8382         * mule-charset.c (Fchar_charset):
8383         * mule-charset.c (Fchar_octet):
8384         * mule-charset.c (Fsplit_char):
8385         * mule-wnnfns.c (Fwnn_open):
8386         * mule-wnnfns.c (Fwnn_dict_comment):
8387         * mule-wnnfns.c (Fwnn_quit_henkan):
8388         * mule-wnnfns.c (Fwnn_word_toroku):
8389         * mule-wnnfns.c (Fwnn_word_sakujo):
8390         * mule-wnnfns.c (Fwnn_word_use):
8391         * mule-wnnfns.c (Fwnn_hindo_set):
8392         * objects.c:
8393         * objects.c (Fmake_color_instance):
8394         * objects.c (Fmake_font_instance):
8395         * print.c (Fwrite_char):
8396         * process.c:
8397         * process.c (mark_process):
8398         * process.c (print_process):
8399         * process.c (get_process_from_usid):
8400         * process.c (Fprocessp):
8401         * process.c (Fprocess_live_p):
8402         * process.c (Fget_process):
8403         * process.c (Fget_buffer_process):
8404         * process.c (get_process):
8405         * process.c (Fprocess_id):
8406         * process.c (Fprocess_name):
8407         * process.c (Fprocess_command):
8408         * process.c (init_process_io_handles):
8409         * process.c (start_process_unwind):
8410         * process.c (Fstart_process_internal):
8411         * process.c (Fopen_multicast_group_internal):
8412         * process.c (Fset_process_window_size):
8413         * process.c (read_process_output):
8414         * process.c (send_process):
8415         * process.c (Fprocess_tty_name):
8416         * process.c (Fset_process_buffer):
8417         * process.c (Fprocess_buffer):
8418         * process.c (Fprocess_mark):
8419         * process.c (set_process_filter):
8420         * process.c (Fset_process_filter):
8421         * process.c (Fprocess_filter):
8422         * process.c (Fprocess_send_region):
8423         * process.c (Fprocess_send_string):
8424         * process.c (exec_sentinel):
8425         * process.c (Fset_process_sentinel):
8426         * process.c (Fprocess_sentinel):
8427         * process.c (status_notify):
8428         * process.c (Fprocess_status):
8429         * process.c (Fprocess_exit_status):
8430         * process.c (process_send_signal):
8431         * process.c (Fprocess_send_eof):
8432         * process.c (deactivate_process):
8433         * process.c (remove_process):
8434         * process.c (Fdelete_process):
8435         * process.c (kill_buffer_processes):
8436         * process.c (Fprocess_kill_without_query):
8437         * process.c (Fprocess_kill_without_query_p):
8438         * rangetab.c:
8439         * rangetab.c (Fget_range_table):
8440         * rangetab.c (Fput_range_table):
8441         * rangetab.c (Fremove_range_table):
8442         * rangetab.c (Fclear_range_table):
8443         * search.c:
8444         * search.c (Fskip_chars_forward):
8445         * search.c (Fskip_chars_backward):
8446         * search.c (Fskip_syntax_forward):
8447         * search.c (Fskip_syntax_backward):
8448         * search.c (search_command):
8449         * search.c (Freplace_match):
8450         * search.c (Fregexp_quote):
8451         * select.c (Fown_selection_internal):
8452         * select.c (Fselection_owner_p):
8453         * select.c (Fselection_exists_p):
8454         * select.c (Fget_selection_internal):
8455         * specifier.c:
8456         * symbols.c:
8457         * symbols.c (Fintern):
8458         * symbols.c (Fintern_soft):
8459         * symbols.c (Funintern):
8460         * symbols.c (Fapropos_internal):
8461         * symbols.c (Fset_default):
8462         * syntax.c:
8463         * syntax.c (Fsyntax_table_p):
8464         * syntax.c (Fcopy_syntax_table):
8465         * syntax.c (Fset_syntax_table):
8466         * syntax.c (Fchar_syntax):
8467         * syntax.c (syntax_match):
8468         * syntax.c (Fmatching_paren):
8469         * syntax.c (Fforward_word):
8470         * syntax.c (scan_lists):
8471         * syntax.c (Fscan_lists):
8472         * syntax.c (Fscan_sexps):
8473         * syntax.c (Fparse_partial_sexp):
8474         * toolbar.c (Fcheck_toolbar_button_syntax):
8475         * tooltalk.doc:
8476         * window.c:
8477         * window.c (Fwindowp):
8478         * window.c (Fwindow_live_p):
8479         * window.c (Fwindow_point):
8480         * window.c (Fdelete_window):
8481         * window.c (Fnext_window):
8482         * window.c (Fprevious_window):
8483         * window.c (Fother_window):
8484         * window.c (window_loop):
8485         * window.c (Fget_lru_window):
8486         * window.c (Fsplit_window):
8487         * window.c (Fenlarge_window):
8488         * window.c (Fenlarge_window_pixels):
8489         * window.c (Fshrink_window):
8490         * window.c (Fshrink_window_pixels):
8491         * window.c (change_window_height):
8492         * window.c (Fwindow_configuration_p):
8493         * window.c (Fcurrent_window_configuration):
8494         * window.h:
8495         * casefiddle.c (casify_object):
8496         * casefiddle.c (Fupcase):
8497         * casefiddle.c (Fdowncase):
8498         * casefiddle.c (Fcapitalize):
8499         * casefiddle.c (Fupcase_initials):
8500         * casefiddle.c (casify_region_internal):
8501         * casefiddle.c (casify_region):
8502         * casefiddle.c (Fupcase_region):
8503         * casefiddle.c (Fdowncase_region):
8504         * casefiddle.c (Fcapitalize_region):
8505         * casefiddle.c (Fupcase_initials_region):
8506         * casefiddle.c (Fupcase_word):
8507         * casefiddle.c (Fdowncase_word):
8508         * casefiddle.c (Fcapitalize_word):
8509         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8510         Replace 0 with '\0' when working with bytes.
8511         Replace initial "(" with "\(" in docstrings.
8512
8513 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8514
8515         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8516
8517         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8518
8519 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8520
8521         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8522
8523 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8524
8525         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8526         correctly.
8527
8528 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8529
8530         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8531         (inhibit_auto_save_session): New variable.
8532         (vars_of_fileio): Declare and initialize them.
8533         * fileio.c (Fdo_auto_save): Don't create session file if
8534         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8535
8536 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8537
8538         * sgiplay.c (play_internal): C++ compilability.
8539         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8540         * callproc.c (Fold_call_process_internal):
8541         Remove unused vars `env', `first'.
8542         * scrollbar.c (update_scrollbar_instance):
8543         #### unused var `current_window'.
8544         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8545         etc. within #ifdef NOT_YET.
8546         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8547         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8548         * specifier.c (specifier_instance):
8549         #### unused var `tag'.
8550         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8551
8552 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8553
8554         * fns.c (Fbutlast):
8555         * fns.c (list_sort):
8556         * fns.c (Ffillarray):
8557         * fns.c (bytecode_nconc2):
8558         * fns.c (Fnconc):
8559         * fns.c (mapcar1):
8560         * fns.c (Fmapconcat):
8561         Be pedantically 64-bit correct.  For the time when someone will
8562         want to have a list with length > 2**32.
8563
8564         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8565         Work around MIPSpro compiler bug.
8566
8567         * process-unix.c (unix_kill_child_process): Add snarky comment.
8568         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8569
8570         * config.h.in: Oops, _getpt ==> _getpty
8571
8572 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8573
8574         * config.h.in:
8575         * regex.c:
8576         Use void*, not char*, as return type of alloca().
8577
8578         * alloc.c (free_marker): Side effect inside assert expression!
8579
8580 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8581
8582         * mule-charset.c (Fset_charset_ccl_program): To check
8583         if the given ccl program is valid, use setup_ccl_program()
8584         instead of CHECK_VECTOR().
8585         (Fmake_charset): Likewise.
8586
8587 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8588
8589         * faces.c (get_extent_fragment_face_cache_index):
8590         Fix cachel.merged_faces memory leak.
8591
8592 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8593
8594         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8595         Reset MSB of octets obtained by DECODE_SJIS
8596         because of the incompatibility with Emacs.
8597         (ccl_driver)<CCL_ENCODE_SJIS>:
8598         Set MSB of octets before passing them to
8599         ENCODE_SJIS because of the incompatibility
8600         with Emacs.
8601
8602 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8603
8604         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8605         (DECLARE_LRECORD): Undo the last change.
8606         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8607
8608 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8609
8610         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8611         the implementation to lrecord_implementations_table.
8612
8613 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8614
8615         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8616         initial value of `lrecord_type_##c_name' and
8617         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8618         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8619         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8620         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8621         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8622
8623 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8624
8625         * miscplay.c (sndcnv8S_2mono):
8626         (sndcnv2monounsigned):
8627         (sndcnvULaw_2linear):
8628         (sndcnv16swap):
8629         Remove implementation-defined behavior.
8630
8631 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8632
8633         * input-method-xlib.c: Warning suppression.
8634
8635 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8636
8637         * mule-ccl.c: Sync up with Emacs 21.0.90.
8638         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8639         Do nothing.
8640         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8641         Likewise.
8642         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8643         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8644         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8645         leading char belongs to official 2-dimensional charset.
8646         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8647         write the given character as is.  Otherwise,
8648         if it is a multibyte char, convert it by
8649         non_ascii_set_charptr_emchar, then write it.
8650         (CCL_WRITE_STRING): Likewise.
8651         (ccl_get_compiled_code): New function.
8652         (setup_ccl_program): When ccl_prog is invalid,
8653         return -1.
8654         (Fregister_code_conversion_map): New function.
8655         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8656
8657         * mule-ccl.h: Sync up with Emacs 21.0.90.
8658         (Fregister_ccl_program): export it.
8659
8660         * redisplay-msw.c (separate_textual_runs):
8661         If ccl program is not valid, don't do ccl conversion.
8662
8663         * redisplay-x.c (separate_textual_runs): Ditto.
8664
8665         * file-coding.c (Fmake_coding_system):
8666         When type is ccl and value is vector, register it
8667         with a proper symbol.  And checks whether the
8668         given ccl program is valid.
8669         (mule_decode): When calling ccl_driver, if src indicates
8670         NULL pointer, set an empty string instead.
8671         (mule_encode): Likewise.
8672
8673 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8674
8675         The following large batch of changes gets us back to a state of
8676         C++ compilability.  Extbyte is now a char, which means that
8677         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8678
8679         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8680
8681         * sound.c (Fplay_sound): Type correctness.
8682
8683         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8684         (x_get_window_property): Type correctness.
8685         (receive_incremental_selection): unsigned char ==> Extbyte
8686         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8687         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8688         (Fx_store_cutbuffer_internal): Type correctness.
8689
8690         * process-unix.c (try_to_initialize_subtty): Type correctness.
8691
8692         * objects-x.c (x_print_color_instance): Type correctness.
8693         (x_print_font_instance): Type correctness.
8694         (x_list_fonts): SExtbyte ==> Extbyte.
8695         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8696         (x_find_charset_font): SExtbyte ==> Extbyte.
8697         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8698         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8699         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8700         Use bufbyte_strcmp.
8701
8702         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8703         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8704         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8705         (BYTE_C0_P): Use bit ops for char-signedness safety.
8706         (BYTE_C1_P): Use bit ops for char-signedness safety.
8707         (CHARSET_BY_LEADING_BYTE):
8708         (CHARSET_BY_ATTRIBUTES):
8709         Always use inline function.
8710         Use type_checking_assert.
8711         Hide chlook.
8712
8713         * mule-charset.c (non_ascii_charptr_copy_char):
8714         Modify to work with both ASCII and non-ASCII characters.
8715         Improve docs and variable names.
8716         Replace over-clever fall-through switch with a simple loop.
8717         (Lstream_get_emchar_1):
8718         Replace over-clever fall-through switch with a simple loop.
8719
8720         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8721         Warning suppression.
8722
8723         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8724         the return value of Lstream_getc, which could be EOF as well.
8725
8726         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8727
8728         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8729         APIs can be used on Extbytes without casts.  Risky!
8730         (SExtbyte): Remove.
8731         (UExtbyte): Remove.
8732
8733         * input-method-xlib.c (XIM_init_device):
8734         Use Xlib.h instead of IntrinsicP.h.
8735         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8736         which will break in X11R7.
8737         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8738         to call XRegisterIMInstantiateCallback with correct types.
8739
8740         * gui-x.c (button_item_to_widget_value): Type correctness.
8741
8742         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8743
8744         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8745         (xbm_instantiate_1): Type correctness.
8746         (BUILD_GLYPH_INST):  Type correctness.
8747
8748         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8749
8750         * file-coding.c:
8751         (decode_coding_sjis):
8752         (decode_coding_big5):
8753         (decode_coding_ucs4):
8754         (decode_coding_utf8):
8755         (decode_coding_iso2022):
8756         (decode_coding_no_conversion):
8757         Make all decoding functions take an Extbyte * arg.
8758         (encode_coding_sjis):
8759         (encode_coding_big5):
8760         (encode_coding_ucs4):
8761         (encode_coding_utf8):
8762         (encode_coding_iso2022):
8763         (encode_coding_no_conversion):
8764         Make all encoding functions take a Bufbyte * arg.
8765         Use size_t instead of unsigned int for memory sizes.
8766         Only cast to unsigned char whenever dereferencing Extbyte *.
8767
8768         * doc.c (unparesseuxify_doc_string): Type correctness.
8769
8770         * console-x.c (split_up_display_spec):
8771         Rewrite without using details of internal string representation.
8772         (x_semi_canonicalize_device_connection): Type correctness.
8773
8774         * config.h.in:
8775         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8776         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8777         (HAVE_XFREE386): Removed.
8778
8779         * buffer.h (DEC_CHARPTR): `const' correctness.
8780         (bufbyte_strcmp): New.
8781         (bufbyte_memcmp): New.
8782
8783         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8784
8785         * buffer.h (XCHAR_OR_CHAR_INT):
8786         Always use inline function.
8787         Remove redundant type checking assert() - XINT will abort quite nicely.
8788
8789 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8790
8791         * search.c (Freplace_match): Set newtext to an empty string.
8792
8793 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8794
8795         * s/decosf1-3.h: Remove #include of stropts.h
8796         * s/ptx.h: Remove #include of stropts.h
8797         * s/usg5-4.h: Remove #include of stropts.h
8798         * sysproc.h:
8799         * config.h.in:
8800         Use stropts.h, not sys/stropts.h.
8801         Use strtio.h, not sys/strtio.h.
8802
8803 2000-10-04  Martin Buchholz <martin@xemacs.org>
8804
8805         * XEmacs 21.2.36 is released.
8806
8807 2000-09-21  Andy Piper  <andy@xemacs.org>
8808
8809         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8810         changes still involve copying the widget tree.
8811         (update_widget_face): make sure a change is register in the widget
8812         tree. Call update_tab_widget_face appropriately.
8813         (update_tab_widget_face): ditto.
8814         (x_tab_control_redisplay): make sure non-structural changes still
8815         involve copying the widget tree.
8816
8817 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8818
8819         * lread.c (locate_file): Check the path element is non-nil.
8820
8821 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8822
8823         * lisp.h: Warning suppression for SCO compilers.
8824
8825         * redisplay-tty.c (reset_tty_modes): Fix crash.
8826         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8827
8828 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8829
8830         Big signal/process handling overhaul.  Bugs fixed:
8831         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8832         M-x comint-kill-subjob should work for both values nil and t of
8833         process-connection-type. It was broken on most platforms.
8834         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8835         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8836         * process-unix.c: Signal/Process handling overhaul.
8837         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8838         (allocate_pty): Use all available modern methods of allocating
8839         ptys, falling back to old style BSD allocation as a last resort.
8840         Use allegedly more secure Unix98 pty allocation by default.
8841         (allocate_pty_the_old_fashioned_way): New. the last resort.
8842         (unix_create_process): Push ptem, ldterm, ttcompat where
8843         available.  Autoconfiscate.
8844         (try_to_initialize_subtty): New.
8845         (unix_kill_child_process): Proper signal handling for ptys on most
8846         platforms, using special knowledge of AIX, BSD, etc...
8847         (unix_create_process): Always disconnect_controlling_terminal() for
8848         subprocesses, whether using ptys or not.
8849         * process.h: Remove old getpt-dependent PTY code.
8850         * process.c (Fprocess_send_signal): New, obvious generic function.
8851         (decode_signal): New.
8852         (Finterrupt_process):
8853         (Fkill_process):
8854         (Fquit_process):
8855         (Fstop_process):
8856         (Fcontinue_process):
8857         (Fsignal_process): Use decode_signal.
8858         (process_send_signal):
8859         Many docstring corrections.
8860         Allow any signal to be sent to a process object.
8861         * config.h.in: Add symbols for big signal/process overhaul.
8862         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8863         * sysproc.h: Include process-related headers, where available:
8864         sys/stropts.h sys/strtio.h pty.h libutil.h
8865         * s/irix4-0.h:
8866         * s/irix5-0.h:
8867         * s/cygwin32.h:
8868         * s/gnu.h:
8869         * s/linux.h:
8870         * s/hpux.h:
8871         * s/aix3-1.h:
8872         Remove old S&M pty stuff.
8873         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8874         * systty.h: Simplify cpp hackery, improve comments.
8875         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8876
8877         * editfns.c (Fformat_time_string):
8878         Be a little more paranoid with the return value of ctime.
8879
8880         * fileio.c (check_executable):
8881         (check_writable):
8882         Use symbolic constants X_OK, W_OK.
8883
8884         * console-x.c (split_up_display_spec): Fix a warning.
8885
8886 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8887
8888         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8889         * ntproc.c (sys_spawnve): make_string ==> build_string
8890         Small clarity improvements.
8891
8892 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8893
8894         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8895
8896         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8897
8898         * config.h.in (HAVE_STRCASECMP): Remove.
8899
8900 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8901
8902         * redisplay-output.c (redisplay_output_pixmap):
8903         Cleaner and possibly more 64-bit correct code.
8904
8905 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8906
8907         * dumper.c (pdump_load_finish): move restoration of
8908         `noninteractive1' to emacs.c (main_1).
8909         * emacs.c (main_1): protect LISP-visible command-line flags
8910         from pdump_load().
8911
8912 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8913
8914         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8915         DUMP_TARGET instead of literal program names.
8916
8917 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8918
8919         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8920
8921 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8922
8923         * *: Spelling mega-patch
8924
8925 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8926
8927         * fns.c (bad_bad_turtle):
8928         Delete "Eek!" comment, since we fixed the bug to which it refers.
8929
8930 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8931
8932         * alloca.c: Replace REGISTER with register.
8933
8934 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8935
8936         * file-coding.c (ucs_to_char): Use countof.
8937
8938 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8939
8940         * file-coding.c: (ucs_to_char):
8941         (complex_vars_of_file_coding):
8942         Use countof instead of sizeof.
8943         Use CHECK_NATNUM instead of CHECK_INT.
8944
8945         * sysdep.c (strcasecmp): Remove.
8946         * device-x.c (ascii_strcasecmp): New.
8947         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8948         Avoid using non-standard non-portable strcasecmp.
8949
8950 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8951
8952         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8953         * font-lock.c: remove reference to emacsfns.h.
8954         * search.c: small doc improvement.
8955         * event-Xt.c: correct file names in comments.
8956         * console-x.h Correct file names in comments.
8957         * frame.c: Correct file names in comments.
8958         * event-stream.c: remove Energize from comments.
8959
8960 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8961
8962         * symeval.h (DEFERROR_STANDARD):
8963         (DEFERROR):
8964         (DEFSYMBOL):
8965         (DEFSYMBOL_NO_DUMP):
8966         (DEFSYMBOL_MULTIWORD_PREDICATE):
8967         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8968         (DEFKEYWORD):
8969         The construct &##name is not sensible C.
8970         Fixes compilation errors with Unixware native compiler.
8971
8972 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8973
8974         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8975         (next_frame_internal): Removed.  We now just have next_frame.
8976         (next_frame):
8977         Write a simpler and cleaner one-pass algorithm.
8978         Remove called_from_delete_device arg and #ifdefed-out code.
8979         (previous_frame):
8980         Renamed from prev_frame.  Update callers.
8981         Cleaned up to have an analogous implementation to next_frame.
8982         (other_visible_frames_internal): Remove the
8983         called_from_delete_device bogus arg, and hence, remove this
8984         function.  Just use other_visible_frames().
8985
8986         * window.c (Fnext_window):
8987         Prettify docstring.
8988         Since next_frame() is guaranteed to return a frame, remove check
8989         for nil inserted in previous patch.
8990         (Fprevious_window):
8991         Prettify docstring.
8992         Make code look more like Fnext_window.
8993         (window_loop):
8994         Respect the `console' arg when iterating through windows.
8995         Fixes bug: (get-buffer-window buffer t device) not respecting
8996         the `device' arg.
8997         This function needs more work, as others have pointed out.
8998
8999         * frame.h: Rename prev_frame to previous_frame.
9000         device_matches_console_spec no longer takes a `frame' arg.
9001
9002         * s/gnu.h:
9003         * s/linux.h:
9004         * s/hpux.h:
9005         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9006         From "Golubev I. N." <gin@mo.msk.ru>.
9007
9008         * make-src-depend: Fix typo.
9009
9010 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9011
9012         * window.c (Fnext_window):
9013         next_frame() might return nil, not a frame.
9014         Fixes this crash:
9015         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9016
9017         * frame.c (next_frame_internal):
9018         We've passed a frame if we've passed its device.
9019         Fixes this crash:
9020         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9021 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9022
9023 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9024
9025         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9026         Allow option to suppress accelerators in menu/dialog items.
9027         (populate_or_checksum_helper): Pass dialog title through above.
9028
9029 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9030
9031         * event-msw.c (mswindows_key_to_emacs_keysym):
9032         Add "pause" key, fix "menu" key.
9033
9034 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9035
9036         * eval.c (reinit_vars_of_eval):
9037         Increase max_lisp_eval_depth to 1000,
9038         required for thai-xtis.el to byte-compile under some circumstances.
9039
9040 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9041
9042         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9043         From Kenichi Handa.
9044
9045 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9046
9047         * make-src-depend: Make the generated Makefiles smaller.
9048
9049         * s/hpux.h (SETUP_SLAVE_PTY):
9050         Provide a %d in the format string for the errno argument.
9051
9052         * editfns.c (Ftemp_directory):
9053         Warning fix.
9054         Avoid buffer overrun on very long file name.
9055
9056         * input-method-xlib.c (XIM_init_device):
9057         6th parameter of XRegisterIMInstantiateCallback has different
9058         pointer types on different OSes, so simply cast to (void *).
9059
9060         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9061
9062         * sysdll.c (dll_open):
9063         shl_load will hang hard if passed a NULL filename.
9064         Simply return NULL for compatibility with dlopen.
9065         * sysdll.c: Conform to XEmacs coding standards.
9066
9067         * sysdep.c (get_pty_max_bytes):
9068         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9069
9070 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9071
9072         * tooltalk.c: Add #include <syssignal.h>
9073
9074 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9075
9076         * s/hpux.h: Don't use undefined function sigunblock().
9077
9078 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9079
9080         * config.h.in: Add HAVE_BALLOON_HELP.
9081         * emacs.c: Use HAVE_BALLOON_HELP.
9082         * Makefile.in.in (x_objs):
9083         Make Balloon Help conditional on finding shape.h.
9084
9085 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9086
9087         * syntax.c (regex_emacs_buffer_p): New variable.
9088         * syntax.h (regex_emacs_buffer_p): extern.
9089         * search.c (looking_at_1):
9090         (string_match_1):
9091         (fast_string_match):
9092         (search_buffer): Set regex_emacs_buffer_p.
9093         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9094         when before_dot, at_dot, after_dot.
9095
9096 2000-08-23  Andy Piper  <andy@xemacs.org>
9097
9098         * gui-x.c (popup_selection_callback): Only set action_occurred
9099         when we really have an image instance.
9100         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9101
9102 2000-08-23  Andy Piper  <andy@xemacs.org>
9103
9104         * gui-msw.c (mswindows_handle_gui_wm_command): set
9105         action_occurred.
9106         * gui-x.c (popup_selection_callback): ditto.
9107
9108         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9109         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9110         (struct Lisp_Image_Instance): add action_occurred flag.
9111
9112         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9113         (image_instance_changed): ditto.
9114         (reset_frame_subwindow_instance_cache): only unmap windows - do
9115         not remove them from the cache also.
9116
9117         * glyphs-widget.c (tab_control_update): better debug.
9118         (progress_gauge_update): ditto.
9119         (layout_update): ditto.
9120         (layout_instantiate): ditto.
9121         (tab_control_order_only_changed): cope with null pending items.
9122
9123         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9124         debug. Force selection of an item when an action occurred. Cope
9125         with null pending_items.
9126         (mswindows_progress_gauge_redisplay): better debug.
9127         * glyphs-x.c (x_tab_control_redisplay): ditto.
9128
9129         * redisplay.c (redisplay_frame): reset the frame cache if the
9130         frame is garbaged.
9131
9132         * window.c (Fset_window_configuration): potentially re-enable
9133         frame cache reset.
9134         (window_unmap_subwindows): need to finalize instances here since
9135         it is only used in mark_window_as_deleted.
9136
9137 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9138
9139         * nas.c (SndOpenDataForReading):
9140         nas.c (WaveOpenDataForReading):
9141         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9142         Somehow escaped from the 2000-08-14 patch.
9143
9144 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9145
9146         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9147         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9148
9149 2000-08-21  Andy Piper  <andy@xemacs.org>
9150
9151         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9152         window if it is not already displayed.
9153
9154         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9155         it is not already displayed.
9156
9157         * window.c (Fset_window_configuration): don't reset the frame
9158         cache.
9159
9160         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9161         instances from the frame cache if we are actually finalizing them.
9162         (reset_frame_subwindow_instance_cache): reset frame cache only
9163         after unmapping everything.
9164         (map_subwindow): set displayed flag after mapping.
9165
9166 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9167
9168         * data.c (indirect_function):
9169         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9170
9171         * eval.c (function_argcount):
9172         Use original function when signaling errors.
9173
9174 2000-08-18  Andy Piper  <andy@xemacs.org>
9175
9176         * frame.c (delete_frame_internal): use new
9177         free_frame_subwindow_instances name.
9178
9179         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9180         (add_tab_item): make return type correct.
9181         (mswindows_tab_control_instantiate): assert index of tab.
9182         (mswindows_tab_control_redisplay): Re-code to use
9183         gui_item_equal_sans_selected and gui_item_list_find_selected.
9184
9185         * glyphs-widget.c (tab_control_update): Correct comment.
9186
9187         * window.c (window_unmap_subwindows): use new
9188         unmap_subwindow_instance_cache_mapper.
9189         (window_unmap_subwindows_cache_mapper): deleted.
9190         (Fset_window_configuration): comparisons should now be with
9191         EQ. Preserve the subwindow instance cache across configuration
9192         changes.
9193         (allocate_window): ditto.
9194         (make_dummy_parent): ditto.
9195
9196         * glyphs.c (free_frame_subwindow_instances): rename from
9197         free_frame_subwindow_instance_cache. finalize all instances rather
9198         than just those in the display cache.
9199         (finalize_all_subwindow_instances): walk windows unmapping and
9200         finalizing subwindows.
9201         (unmap_subwindow_instance_cache_mapper): moved from
9202         window.c. Allow finalization as well as unmapping.
9203
9204         * gui.c (gui_item_list_find_selected): new function.
9205
9206         * gui.h (gui_item_list_find_selected): declare.
9207
9208         * glyphs-x.c (x_tab_control_redisplay): pick tab
9209         explicitly. Re-code to use gui_item_equal_sans_selected and
9210         gui_item_list_find_selected.
9211
9212         * glyphs-x.h: add lwlib-utils.h
9213
9214         * buffer.c (Frecord_buffer): undo previous change.
9215
9216 2000-08-09  Vin Shelton  <acs@xemacs.org>
9217
9218         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9219         possible.  Create temporary files more securely.  The patch was
9220         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9221         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9222         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9223         for details.
9224
9225 2000-08-07  Ben Wing  <ben@xemacs.org>
9226
9227         * getloadavg.c: remove duplicate (and windows-breaking)
9228         includes of fcntl.h and sys/file.h.
9229
9230         * nt.c: remove duplicate getloadavg() definition.
9231
9232         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9233         encodings.
9234
9235 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9236
9237         * eval.c (function_argcount): If function needs to be autoloaded
9238         actually use the loaded definition.
9239         GCPRO function.
9240
9241 2000-08-05  Ben Wing  <ben@xemacs.org>
9242
9243         * getloadavg.c: add prototype for getloadavg().  remove
9244         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9245         of the code).  remove duplicate header includes.
9246
9247         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9248
9249         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9250         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9251         useful load average.
9252
9253         * alloc.c (reinit_alloc_once_early): removed references to
9254         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9255         the lisp vars are the only things referencing the malloc_sbrk_*
9256         vars, and they were already if 0'd out.  these vars only exist
9257         in the older malloc.c, which is basically unused, and they're
9258         only for informational purposes.
9259
9260         * m\*.h: removed useless VIRT_ADDR_VARIES.
9261
9262         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9263
9264 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9265
9266         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9267         color if the image is a mono pixmap.
9268
9269 2000-07-30  Ben Wing  <ben@xemacs.org>
9270
9271         * Makefile.in.in (release):
9272         Remove stray @.
9273
9274         * buffer.c (directory_is_current_directory):
9275         * dired-msw.c (mswindows_get_files):
9276         * dired.c:
9277         * dired.c (Fdirectory_files):
9278         * dired.c (file_name_completion_stat):
9279         * dired.c (Ffile_attributes):
9280         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9281         preprocessor tricks, to avoid problems on some machines
9282         (e.g. SCO).
9283
9284         * callproc.c (egetenv): GC docs.
9285
9286         * console-msw.h:
9287         * console-msw.h (struct mswindows_dialog_id):
9288         * lrecord.h (lrecord_type):
9289         New object for use with MSW dialogs.
9290
9291         * console.h (struct console_methods):
9292         New enable/disable frame methods, for proper modal dialogs.
9293
9294         * device-msw.c (msprinter_default_printer): Fix to follow
9295         proper Mule conventions.
9296
9297         * device-msw.c:
9298         * device-msw.c (signal_open_printer_error):
9299         * device-msw.c (msprinter_init_device):
9300         * device-msw.c (ensure_not_printing):
9301         * device-msw.c (plist_get_margin):
9302         * device-msw.c (Fmsprinter_select_settings):
9303         * device-msw.c (finalize_devmode):
9304         * device-msw.c (Fmsprinter_settings_despecialize):
9305         * device-msw.c (signal_enum_priner_error):
9306         * extents.c (decode_extent):
9307         * extents.c (decode_map_extents_flags):
9308         * extents.c (decode_extent_at_flag):
9309         * extents.c (Fextent_at):
9310         * extents.c (Fextents_at):
9311         * extents.c (symbol_to_glyph_layout):
9312         [[[[2]]]] Use structured errors.
9313
9314         * dialog-msw.c:
9315         * dialog-msw.c (mswindows_is_dialog_msg):
9316         * dialog-msw.c (mark_mswindows_dialog_id):
9317         * dialog-msw.c (dialog_proc):
9318         * dialog-msw.c (handle_question_dialog_box):
9319         * dialog-msw.c (syms_of_dialog_mswindows):
9320         Define new object to clean up marking; use it as a dialog identifier.
9321         Call new delete-dialog-box-hook.
9322
9323         * dialog-x.c (dbox_selection_callback):
9324         * dialog-x.c (dbox_descriptor_to_widget_value):
9325         * dialog-x.c (x_make_dialog_box_internal):
9326         Call new delete-dialog-box-hook.
9327         Return an id.
9328
9329         * dialog.c:
9330         * dialog.c (syms_of_dialog):
9331         * dialog.c (vars_of_dialog):
9332         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9333
9334         * eval.c:
9335         * eval.c (signal_call_debugger):
9336         when noninteractive, output stack traces on the console instead
9337         of in a (never-seen) buffer.
9338
9339         * eval.c (signal_type_error):
9340         * eval.c (invalid_argument_2):
9341         * lisp.h:
9342         new funs for use w/structured errors.
9343
9344         * event-Xt.c:
9345         * event-Xt.c (x_to_emacs_keysym):
9346         * event-Xt.c (describe_event):
9347         * event-Xt.c (emacs_Xt_event_handler):
9348         * event-Xt.c (vars_of_event_Xt):
9349         * event-msw.c:
9350         * event-msw.c (mswindows_wnd_proc):
9351         * event-msw.c (vars_of_event_mswindows):
9352         rename {x,mswindows}-debug-events to debug-{}-events for
9353         consistency with other debug-foo variables.
9354
9355         * event-stream.c:
9356         document next-event more clearly.
9357
9358         * fileio.c (Ffile_name_directory):
9359         * fileio.c (Ffile_name_nondirectory):
9360         * fileio.c (Funhandled_file_name_directory):
9361         * fileio.c (file_name_as_directory):
9362         * fileio.c (Ffile_name_as_directory):
9363         * fileio.c (directory_file_name):
9364         * fileio.c (Fdirectory_file_name):
9365         * fileio.c (Fmake_temp_name):
9366         * fileio.c (Ffile_truename):
9367         * fileio.c (Fsubstitute_in_file_name):
9368         * fileio.c (expand_and_dir_to_file):
9369         * fileio.c (barf_or_query_if_file_exists):
9370         * fileio.c (check_executable):
9371         * fileio.c (Ffile_exists_p):
9372         * fileio.c (Ffile_writable_p):
9373         * fileio.c (Ffile_directory_p):
9374         * fileio.c (Ffile_regular_p):
9375         * fileio.c (Ffile_modes):
9376         * fileio.c (Ffile_newer_than_file_p):
9377         * fileio.c (Fverify_visited_file_modtime):
9378         * fileio.c (Fset_visited_file_modtime):
9379         * fileio.c (auto_save_1):
9380         (1). (2).
9381         fix up gcpro's.
9382
9383         * frame-msw.c:
9384         * frame-msw.c (mswindows_init_frame_1):
9385         * frame-msw.c (mswindows_enable_frame):
9386         * frame-msw.c (error_frame_unsizable):
9387         * frame-msw.c (msprinter_init_frame_1):
9388         * frame-msw.c (msprinter_init_frame_3):
9389         * frame-msw.c (console_type_create_frame_mswindows):
9390         (2).
9391         implement new enable/disable frame methods.
9392
9393         * frame-x.c:
9394         * frame-x.c (x_enable_frame):
9395         * frame-x.c (console_type_create_frame_x):
9396         implement new enable/disable frame methods.
9397
9398         * frame.c:
9399         * frame.c (Fdisable_frame):
9400         * frame.c (syms_of_frame):
9401         * frame.h (struct frame):
9402         implement new enable/disable frame methods/functions.
9403
9404         * general-slots.h:
9405         add initial-focus.
9406
9407         * glyphs-msw.c (mswindows_widget_instantiate):
9408         comment that initial-focus should be implemented.
9409
9410         * glyphs-widget.c:
9411         * glyphs-widget.c (check_valid_instantiator):
9412         * glyphs-widget.c (check_valid_orientation):
9413         * glyphs-widget.c (check_valid_tab_orientation):
9414         * glyphs-widget.c (check_valid_justification):
9415         * glyphs-widget.c (check_valid_border):
9416         * glyphs-widget.c (check_valid_callback):
9417         * glyphs-widget.c (check_valid_int_or_function):
9418         * glyphs-widget.c (check_valid_string_or_vector):
9419         * glyphs-widget.c (check_valid_item_list_1):
9420         * glyphs-widget.c (widget_validate):
9421         * glyphs-widget.c (combo_box_validate):
9422         * glyphs-widget.c (widget_instantiate):
9423         * glyphs-widget.c (syms_of_glyphs_widget):
9424         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9425         * glyphs-widget.c (image_instantiator_combo_box):
9426         * glyphs-widget.c (image_instantiator_scrollbar):
9427         * glyphs-widget.c (image_instantiator_tab_control):
9428         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9429         (2).
9430         support (unimplemented) keyword initial-focus.
9431         reindent long macros.
9432
9433         * glyphs-x.c (x_redisplay_widget):
9434         * glyphs-x.c (x_button_instantiate):
9435         * glyphs-x.c (x_button_redisplay):
9436         * glyphs-x.c (x_progress_gauge_instantiate):
9437         * glyphs-x.c (x_edit_field_instantiate):
9438         * glyphs-x.c (x_combo_box_instantiate):
9439         * glyphs-x.c (x_tab_control_instantiate):
9440         * glyphs-x.c (x_label_instantiate):
9441         * gui-x.c:
9442         * gui-x.c (button_item_to_widget_value):
9443         * gui-x.c (gui_items_to_widget_values_1):
9444         * gui-x.c (gui_item_children_to_widget_values):
9445         * gui-x.c (gui_items_to_widget_values):
9446         * gui-x.h:
9447         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9448         add new flag to gui-parsing routines to indicate whether
9449         accelerator specs should be supported.
9450
9451         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9452
9453         * glyphs.h (struct Lisp_Image_Instance):
9454         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9455         add initial-focus flag.
9456
9457         * gui.c:
9458         * gui.c (syms_of_gui):
9459         * gui.c (vars_of_gui):
9460         clean up menu-no-selection-hook.
9461
9462         * gui.h:
9463         support delete-dialog-box-hook.
9464
9465         * lread.c (Fload_internal):
9466         * lread.c (locate_file_in_directory_mapper):
9467         (1).
9468
9469         * lrecord.h:
9470         * lrecord.h (struct toolbar_button):
9471         * lrecord.h (syms_of_toolbar):
9472         document how to create a new object.
9473
9474         * menubar-msw.c (mswindows_char_is_accelerator):
9475         may be called on frames w/o menus.
9476
9477         * menubar.c (vars_of_menubar):
9478         clean up :filter docs.
9479
9480         * nt.c (readdir):
9481         * ntproc.c:
9482         (1).
9483
9484         * process-nt.c:
9485         * process-nt.c (validate_signal_number):
9486         * process-nt.c (signal_cannot_launch):
9487         * process-nt.c (nt_create_process):
9488         * process-nt.c (nt_send_process):
9489         * process-nt.c (nt_kill_child_process):
9490         * process-nt.c (nt_open_network_stream):
9491         * process-nt.c (syms_of_process_nt):
9492         (2).
9493         delete quote-handling.  call new lisp code that does it better.
9494
9495         * process-unix.c (connect_to_file_descriptor):
9496         * process-unix.c (allocate_pty):
9497         * process-unix.c (unix_send_process):
9498         * process-unix.c (unix_kill_child_process):
9499         * process-unix.c (unix_open_network_stream):
9500         * process-unix.c (unix_open_multicast_group):
9501         (1). (2).
9502
9503         * process.c:
9504         * process.c (Fstart_process_internal):
9505         (2).  need to canonicalize process path even if absolute.
9506
9507         * select-msw.c (symbol_to_ms_cf):
9508         * select-msw.c (ms_cf_to_symbol):
9509         * select-msw.c (cf_is_autofreed):
9510         * select-msw.c (mswindows_destroy_selection):
9511         * select.c:
9512         * select.c (syms_of_select):
9513         * select.h:
9514         support dibv5, fix bugs. (from Mike Alexander)
9515
9516         * select.c (Fget_selection_internal):
9517         * select.c (select_convert_out):
9518
9519         * sysdep.c:
9520         * sysdep.c (xemacs_stat):
9521         renamed.
9522
9523         * sysdep.c (mkdir):
9524         * sysdep.c (rmdir):
9525         but keep original stat() here because we provide encapsulation
9526         around these funs.
9527
9528         * sysfile.h:
9529         * sysfile.h (fstat):
9530         remove stat garbage.
9531
9532         * syswindows.h:
9533         fix X/MSW conflict.
9534         don't include tchar.h.  it's inappropriate because it makes
9535         compile-time distinctions when we want runtime distinctions.
9536         (we provide our own tchar replacements)
9537
9538         * toolbar.c:
9539         use default object printer for toolbar-button.
9540
9541         * unexcw.c:
9542         make sure we don't encapsulate.
9543
9544         * window.c (vars_of_window):
9545         emphasize that temp-buffer-show-hook is obsolete.
9546
9547 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9548
9549         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9550         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9551
9552         * events.c (Fevent_timestamp_lessp):
9553         Not 64-bit clean.  Use EMACS_INT, not int.
9554
9555 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9556
9557         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9558         unsigned int and changed the last enum to
9559         lrecord_type_last_built_in_type.
9560         (lrecord_implementations_table): changed prototype to know how
9561         long the array is supposed to be.
9562         (lrecord_type_count): new unsigned int to keep track of the
9563         current number of lisp lrecord types.
9564         (DEFINE_EXTERNAL_LRECORD):
9565         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9566         dynamic-modules to declare new lisp types. They are the same
9567         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9568         int for each new type, and increment lrecord_type_count by 1.
9569
9570         * alloc.c (lrecord_implementations_table): Changed to reference
9571         lrecord_type_last_built_in_type for the size of the array.
9572         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9573
9574 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9575
9576         * glyphs.h (check_valid_item_list): Renamed from
9577         check_valid_item_list_1.
9578
9579 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9580
9581         * select.c (Qselect_coerce): New.
9582         * select.c (Vselection_coercion_alist): New.
9583         * select.c (syms_of_select): Declare.
9584         * select.c (get-selection-internal): Use it.
9585         Use the new select-coerce functionality.
9586
9587         * select.c (select_coerce): New.
9588         * select.h (select_coerce): Declare.
9589         New function to coerce one type of data into another.
9590
9591 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9592
9593         * callproc.c (Fcall_process_internal):
9594         (Fcall_process_internal):
9595         * process-unix.c (unix_create_process):
9596         Save and restore the value of errno, so that error messages are accurate.
9597
9598 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9599
9600         * elhash.c (print_hash_table):
9601         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9602         Prettify docstrings and indentation.
9603
9604 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9605
9606         * window.c (Fwindow_pixel_edges): Subtract frame border and
9607         gutter size.
9608
9609 2000-07-31  Andy Piper  <andy@xemacs.org>
9610
9611         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9612         will acknowledge the change.
9613
9614         * glyphs.h: declare tab_control_order_only_changed.
9615
9616         * glyphs-x.c (x_tab_control_redisplay): use
9617         tab_control_order_only_changed.
9618
9619         * glyphs-widget.c (tab_control_order_only_changed): new function.
9620
9621         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9622         tab_control_order_only_changed.
9623
9624         * gui.c (gui_item_equal_sans_selected): new function.
9625         (gui_item_equal): use it.
9626
9627         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9628         :properties in favor of :items..
9629
9630         * glyphs-widget.c (check_valid_item_list): rename from
9631         check_valid_item_list_1.
9632         (check_valid_item_list_1): renamed.
9633         (combo_box_validate): deprecate :properties in favor of :items.
9634         (widget_instantiate): ditto.
9635         (tab_control_update): ditto.
9636         (image_instantiator_combo_box): ditto.
9637         (image_instantiator_tree_view): ditto.
9638         (image_instantiator_tab_control): ditto.
9639         (layout_post_instantiate): remove dead code.
9640
9641         * print.c (debug_print_no_newline): only write to debugger if in
9642         WIN32_NATIVE.
9643
9644         * elhash.c (Fmake_hash_table): update doc string.
9645
9646         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9647         messages whilst in GC. This at least stops XEmacs crashing but has
9648         the potential for wierd behaviour.
9649
9650 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9651
9652         * config.h.in:
9653         Make existence of s&m files optional.
9654
9655         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9656         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9657         * s/gnu.h: Remove HAVE_GETLOADAVG.
9658         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9659         * s/sol2.h: Remove HAVE_GETLOADAVG.
9660         * lisp.h: Remove getloadavg() declaration.
9661         * fns.c:
9662         Include <sys/loadavg.h> if available.
9663         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9664         * config.h.in:  Group together getloadavg()-related macros.
9665         Use only configure-time tests to detect getloadavg().
9666
9667 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9668
9669         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9670
9671 2000-07-25  Andy Piper  <andy@xemacs.org>
9672
9673         * syswindows.h: add tchar.h for native builds.
9674
9675         * frame.c (syms_of_frame): remove set-glyph-image.
9676
9677         * general-slots.h: add Qset_glyph_image.
9678
9679         * glyphs-widget.c (layout_update): add domain arg to
9680         set-glyph-image.
9681         (syms_of_glyphs_widget): remove set-glyph-image.
9682
9683 2000-07-23  Ben Wing  <ben@xemacs.org>
9684
9685         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9686         Vpopup_frame_list.
9687
9688 2000-07-22  Andy Piper  <andy@xemacs.org>
9689
9690         * symsinit.h: add syms_of_win32().
9691
9692         * gui-msw.c (syms_of_gui_mswindows): remove
9693         Fmswindows_shell_execute.
9694         (Fmswindows_shell_execute): moved to win32.c.
9695
9696         * emacs.c (main_1): add syms_of_win32 ().
9697
9698         * win32.c (init_potentially_nonexistent_functions): rewrite in
9699         compiler-friendly terms.
9700         (Fmswindows_shell_execute): move here from gui-msw.c.
9701         (syms_of_win32): new.
9702
9703         * device-msw.c (Fmswindows_printer_list): clean up args to
9704         EnumPrinters.
9705         Don't include tchar under cygwin or mingw.
9706         (msprinter_default_printer): make cygwin-friendly.
9707
9708 2000-07-21  Andy Piper  <andy@xemacs.org>
9709
9710         * glyphs-widget.c (image_instantiator_tree_view): use tab
9711         control's update function.
9712         (layout_property): new function. Retrieve items.
9713
9714         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9715         function. Re-populate the tree view from the pending items.
9716
9717         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9718         is designated the parent if the domain is an image instance. This
9719         is needed so that dirtiness can be cascade up the hierarchy and
9720         thus for layout children to be redisplayed correctly.
9721         (allocate_image_instance): rename glyph -> parent.
9722
9723         * redisplay.h: change redisplay_output_layout signature.
9724
9725         * redisplay-msw.c (mswindows_output_display_block): use domain
9726         arg.
9727
9728         * redisplay-x.c (x_output_display_block): use domain arg.
9729
9730 2000-07-10  Andy Piper  <andy@xemacs.org>
9731
9732         * window.c (Fset_window_configuration): add comment.
9733
9734         * redisplay-output.c (compare_runes):
9735         (redisplay_output_subwindow): redisplay rather than update subwindow.
9736         (redisplay_output_layout): ditto.
9737
9738         * redisplay-msw.c (mswindows_frame_output_end):
9739         (mswindows_frame_output_end): make defer window pos optional.
9740
9741         * lisp.h: add Flast.
9742
9743         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9744         normalize method. Change update method to be for changed
9745         instantiators. Add redisplay method. Change signature of layout
9746         method.
9747         (struct Lisp_Image_Instance): add instantiator.
9748         (IMAGE_INSTANCE_INSTANTIATOR): new.
9749         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9750         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9751         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9752
9753         * glyphs.c:
9754         (find_instantiator_differences): new function.
9755         (Fset_instantiator_property): new convenience function.
9756         (check_image_instance_structure): strictly check for vector
9757         instantiators.
9758         (normalize_image_instantiator): make non-static.
9759         (instantiate_image_instantiator): pass on dest_mask and use new
9760         signatures for image_instance_layout and friends.
9761         (mark_image_instance): mark the instantiator. Mark the subwindow
9762         face not the widget face.
9763         (image_instance_equal): add instantiator.
9764         (image_instance_hash): ditto.
9765         (allocate_image_instance): ditto.
9766         (Fset_image_instance_property): removed.
9767         (Fimage_instance_file_name): ditto.
9768         (Fcolorize_image_instance): ditto.
9769         (image_instance_layout): add offsets to be set.
9770         (update_image_instance): new function. update an image instance
9771         from its changed instantiator.
9772         (inherit_normalize): add dest_mask.
9773         (xbm_normalize): ditto.
9774         (xface_normalize): ditto.
9775         (xpm_normalize): ditto.
9776         (text_update): set_property -> update.
9777         (image_instantiate): use the glyph identity as a hash key, not the
9778         instantiator.
9779         (glyph_width): use new image_instance_layout signature.
9780         (glyph_ascent): ditto.
9781         (glyph_descent): ditto.
9782         (glyph_height): ditto.
9783         (glyph_query_geometry): ressurrect.
9784         (glyph_layout): ditto.
9785         (redisplay_subwindow): update -> redisplay.
9786         (syms_of_glyphs): add Fset_instantiator_property.
9787         (image_instantiator_format_create): set_property -> update.
9788
9789         * glyphs-x.c:
9790         (autodetect_normalize): add dest_maks to signature.
9791         (x_redisplay_subwindow): update -> redisplay.
9792         (x_redisplay_widget): ditto.
9793         (x_button_redisplay): ditto.
9794         (x_progress_gauge_redisplay): ditto.
9795         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9796         stacking order.
9797         (console_type_create_glyphs_x): update -> redisplay.
9798         (image_instantiator_format_create_glyphs_x): ditto.
9799
9800         * glyphs-widget.c:
9801         (check_valid_instantiator): disallow glyphs in the instantiator,
9802         they must now be vectors.
9803         (check_valid_instantiator_list): ditto.
9804         (glyph_instantiator_to_glyph): use internal symbol rather than
9805         intern.
9806         (widget_update): renamed from widget_set_property. Call cascaded
9807         update methods.
9808         (redisplay_widget): renamed from update_widget.
9809         (widget_layout): image_instance_layout now takes position as well
9810         as size.
9811         (widget_normalize): ditto.
9812         (widget_instantiate): ditto.
9813         (tab_control_query_geometry) ditto.:
9814         (tab_control_update): renamed from tab_control_set_property.
9815         (progress_gauge_update): set_property -> update.
9816         (layout_normalize): rewrite so that child instantiators are
9817         normalized also.
9818         (layout_update): new function. Create glyphs from the normalized
9819         children and cope with any other layout keywords. We do not
9820         instantiate children here that will be take care of by
9821         redisplay_output_layout.
9822         (layout_instantiate): call layout_update and not much else.
9823         (layout_post_instantiate): not sure whether this is needed
9824         anymore.
9825         (layout_query_geometry): query glyph geometry rather than
9826         image_instance geometry.
9827         (layout_layout): set offsets from pass in parameters. Use glyph
9828         geometry and layout functions rather than image instance ones.
9829         (native_layout_layout): ditto.
9830         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9831         (image_instantiator_widget): set_property -> update.
9832         (image_instantiator_buttons): ditto.
9833         (image_instantiator_progress_guage): ditto.
9834         (image_instantiator_tab_control): ditto.
9835         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9836         (image_instantiator_layout): add update method.
9837
9838         * glyphs-msw.c (bmp_normalize):
9839         (mswindows_resource_normalize): add dest_mask so that it can be
9840         proprogated by layout_normalize.
9841         (begin_defer_window_pos): make optional because it may not be the
9842         right thing to do and it introduces differences with X.
9843         (mswindows_unmap_subwindow): ditto.
9844         (mswindows_map_subwindow): ditto.
9845         (mswindows_redisplay_subwindow): renamed from
9846         mswindows_update_subwindow.
9847         (mswindows_redisplay_widget): ditto.
9848         (mswindows_button_redisplay): renamed from
9849         mswindows_button_update. Update is now what the instantiation
9850         function does for a changed instantiator.
9851         (mswindows_progress_gauge_instantiate): set the progress value
9852         here if appropriate.
9853         (mswindows_tab_control_redisplay): cope with re-ordering of the
9854         members of the tab widget by simply selecting the new top
9855         widget. This makes things appear ok if you click on a tab.
9856         (mswindows_combo_box_instantiate): image_instance_layout now takes
9857         position as well as size.
9858         (mswindows_progress_gauge_redisplay): renamed from
9859         mswindows_progress_gauge_update.
9860         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9861         (image_instantiator_format_create_glyphs_mswindows): ditto.
9862
9863         * glyphs-eimage.c (jpeg_normalize):
9864         (gif_normalize):
9865         (png_normalize):
9866         (tiff_normalize): add dest_mask so that it can be proprogated by
9867         layout_normalize.
9868
9869         * elhash.c:
9870         (print_hash_table):
9871         (hash_table_weakness_validate):
9872         (decode_hash_table_weakness):
9873         (Fhash_table_weakness):
9874         (Fhash_table_type):
9875         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9876
9877         * console.h (struct console_methods): move update_* to
9878         redisplay_*.
9879
9880 2000-07-20  Ben Wing  <ben@xemacs.org>
9881
9882         * *.[ch] (XSETOBJ): remove unused middle argument.
9883         lisp-disunion.h: correct wrap_object() to one argument.
9884
9885 2000-07-15  Ben Wing  <ben@xemacs.org>
9886
9887         * s/cygwin32.h:
9888         * s/cygwin32.h (CYGWIN_CONV_PATH):
9889         Add missing logb prototype for v1.1.
9890         Use post-b20 names and alias to pre-b20 names when pre-b20.
9891
9892         * s/windowsnt.h: [5].
9893
9894 2000-07-15  Ben Wing  <ben@xemacs.org>
9895
9896         * Makefile.in.in (x_objs):
9897         * Makefile.in.in (sheap_objs):
9898         * Makefile.in.in (objs):
9899         added win32.o, cosmetic cleanups.
9900
9901         * alloc.c (Fmake_byte_code):
9902         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9903         etc. macros which declare their own args now.
9904
9905         * alloc.c (syms_of_alloc):
9906         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9907
9908         * buffer.c:
9909         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9910
9911         * buffer.c (Fget_file_buffer):
9912         Fixed GCPRO problem.
9913
9914         * buffer.c (get_truename_buffer):
9915         Fixed comment about GC checking.
9916
9917         * buffer.c (syms_of_buffer):
9918         Undeclared those dedicated frame funs.
9919         [2].
9920
9921         * buffer.h:
9922         Define convenience macros for internal/external conversions.
9923         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9924         and Qenvironment_variable_encoding for cleaner code.
9925
9926         * bufslots.h:
9927         Remove dedicated-frame; in lisp.
9928
9929         * bytecode.c (funcall_compiled_function):
9930         [1].
9931
9932         * bytecode.c (syms_of_bytecode):
9933         [2].
9934
9935         * console-msw.c:
9936         * console-msw.c (mswindows_show_console): Rewrote.
9937
9938         * console-msw.c (Fmswindows_debugging_output): New.
9939         Sends to OutputDebugString (special MSWin debugger interface).
9940
9941         * console-msw.c (Fmswindows_message_box):
9942         Fixed stupid bugs so it works when called from kill-emacs.
9943
9944         * console-msw.c (syms_of_console_mswindows):
9945         Declare Fmswindows_debugging_output.
9946
9947         * console-msw.h:
9948         New MSWin prototypes.
9949
9950         * console-msw.h (struct mswindows_frame):
9951         New entry last-click-mods for improved button-modifier support.
9952
9953         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9954         New struct entry `popup' with corresponding accessor.
9955
9956         * console-x.c:
9957         * console-x.c (split_up_display_spec):
9958         * console-x.c (get_display_arg_connection):
9959         * console-x.c (x_semi_canonicalize_console_connection):
9960         * console-x.c (x_canonicalize_device_connection):
9961         [[[6]]]: Change char to more specific type.
9962         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9963
9964         * console-x.c (x_semi_canonicalize_console_connection):
9965         * console-x.c (x_canonicalize_device_connection):
9966         [[[9]]]: Fix up error signalling to use new structured error system.
9967
9968         * console-x.h:
9969         [[[4]]]: Define codesys aliases:
9970         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9971         Qx_color_name_encoding, Qx_display_name_encoding.
9972
9973         * console.h (struct console_methods):
9974         New method make_dialog_box_internal supersedes older
9975         popup_dialog_box method.
9976
9977         * data.c:
9978         Define many new errors, part of new structured errors.
9979
9980         * data.c (init_errors_once_early):
9981         * data.c (syms_of_data):
9982         [2].
9983
9984         * device-msw.c (mswindows_init_device):
9985         [[[5]]]: Cleanup to support NT 3.51.
9986
9987         * device-msw.c (decode_devmode): Cleanup.
9988
9989         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9990         * device-msw.c (mswindows_handle_print_dialog_box):
9991         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9992         * device-msw.c (syms_of_device_mswindows):
9993         Delete the dialog box primitives recently introduced by Kirill and
9994         instead interface to general dialog box interface.
9995
9996         * device-x.c:
9997         * device-x.c (compute_x_app_name):
9998         * device-x.c (x_init_device):
9999         * device-x.c (Fx_valid_keysym_name_p):
10000         * device-x.c (Fx_set_font_path):
10001         [6].
10002         [7].
10003
10004         * device.h (wrap_device): New.
10005         First of its kind; meant to replace XSETDEVICE.
10006
10007         * dialog-msw.c: Many file-dialog symbols.
10008
10009         * dialog-msw.c (mswindows_register_popup_frame): New.
10010         * dialog-msw.c (mswindows_is_dialog_msg): New.
10011         For supporting kbd traversal in dialog boxes.
10012
10013         * dialog-msw.c (dialog_proc):
10014         Support hitting ESC in dialogs.
10015
10016         * dialog-msw.c (struct):
10017         Common dialog box errors.
10018
10019         * dialog-msw.c (handle_file_dialog_box): New.
10020         Add file dialog code.
10021
10022         * dialog-msw.c (handle_question_dialog_box):
10023         Redo existing code to support new question dialog syntax.
10024
10025         * dialog-msw.c (console_type_create_dialog_mswindows):
10026         We support new dialog console method.
10027
10028         * dialog-msw.c (syms_of_dialog_mswindows):
10029         * dialog-msw.c (vars_of_dialog_mswindows):
10030         New file dialog symbols, vars.
10031
10032         * dialog-x.c:
10033         * dialog-x.c (maybe_run_dbox_text_callback):
10034         * dialog-x.c (dbox_descriptor_to_widget_value):
10035         * dialog-x.c (x_make_dialog_box_internal):
10036         * dialog-x.c (console_type_create_dialog_x):
10037         Mule-ize entire file.
10038         Redo to support question dialog syntax.
10039         [6].
10040
10041         * dialog.c:
10042         * dialog.c (Fmake_dialog_box_internal):
10043         * dialog.c (syms_of_dialog):
10044         Kill old popup-dialog-box, replace with new primitive.
10045         Just call device method or signal error.
10046
10047         * eldap.c (Fldap_open):
10048         * eldap.c (Fldap_search_basic):
10049         * eldap.c (Fldap_add):
10050         * eldap.c (Fldap_modify):
10051         [1].
10052         [7].
10053
10054         * emacs.c:
10055         * emacs.c (make_arg_list_1):
10056         * emacs.c (make_arg_list):
10057         Mule-ize call to dll_init().
10058         [6].
10059         [8].
10060
10061         * emacs.c (make_argc_argv):
10062         * emacs.c (free_argc_argv):
10063         * emacs.c (init_cmdargs):
10064         * emacs.c (main_1):
10065         * emacs.c (Fkill_emacs):
10066         * emacs.c (Fdump_emacs):
10067         Update comments about what can be used in syms_* etc.
10068         Call init_win32() when necessary.
10069         Fix up MS Win dialog box in kill-buffer to actually work right.
10070         [7].
10071
10072         * eval.c:
10073         * eval.c (For):
10074         * eval.c (Fand):
10075         * eval.c (Fprogn):
10076         * eval.c (Fprog1):
10077         * eval.c (Fprog2):
10078         * eval.c (FletX):
10079         * eval.c (Flet):
10080         * eval.c (condition_case_3):
10081         * eval.c (Feval):
10082         * eval.c (function_argcount):
10083         * eval.c (funcall_lambda):
10084         [1].
10085
10086         * eval.c (type_error): New.
10087         * eval.c (maybe_type_error): New.
10088         * eval.c (continuable_type_error): New.
10089         * eval.c (maybe_continuable_type_error): New.
10090         * eval.c (type_error_with_frob): New.
10091         * eval.c (maybe_type_error_with_frob): New.
10092         * eval.c (continuable_type_error_with_frob): New.
10093         * eval.c (maybe_continuable_type_error_with_frob): New.
10094         New functions for use with structured errors.
10095
10096         * event-Xt.c:
10097         * event-Xt.c (x_event_to_emacs_event):
10098         Buttons are now modifiers too.
10099
10100         * event-Xt.c (emacs_Xt_current_event_timestamp):
10101         Implement new event method.
10102         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10103
10104         * event-msw.c:
10105         * event-msw.c (ntpipe_shove_writer): [5].
10106         * event-msw.c (mswindows_enqueue_mouse_button_event):
10107         * event-msw.c (mswindows_drain_windows_queue):
10108         * event-msw.c (mswindows_wnd_proc): [7].
10109         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10110         * event-msw.c (mswindows_modifier_state):
10111         Throughout: support new button modifiers.
10112
10113         * event-msw.c (emacs_mswindows_current_event_timestamp):
10114         Implement new event method.
10115         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10116
10117         * event-stream.c:
10118         * event-stream.c (event_stream_current_event_timestamp): New.
10119         * event-stream.c (maybe_kbd_translate): New functionality.
10120         * event-stream.c (vars_of_event_stream):
10121         Document new kbd-translate-table functionality.
10122
10123         * event-stream.c (Fcurrent_event_timestamp): New.
10124         New primitive for use in fabricated events.
10125         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10126
10127         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10128
10129         * events.c:
10130         * events.c (Fmake_event):
10131         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10132         [1].
10133         [9].
10134
10135         * events.c (format_event_object): fix gcc warnings.
10136
10137         * events.c (Fevent_timestamp): Document new primitives.
10138
10139         * events.c (TIMESTAMP_HALFSPACE): New.
10140
10141         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10142         comparing timestamps correctly (half-space algorithm).
10143
10144         * events.c (Fevent_modifier_bits): Doc fix.
10145
10146         * events.c (Fevent_modifiers): Major doc addition.
10147         * events.c (event_x_y_pixel_internal): Typo fix.
10148         * events.c (syms_of_events): Declare new primitives.
10149
10150         * events.h:
10151         Update long comment for button modifiers, timestamps.
10152
10153         * events.h (struct event_stream):
10154         New current_event_timestamp method.
10155
10156         * extents.c:
10157         * extents.c (extent_in_region_p):
10158         * extents.c (decode_extent):
10159         * extents.c (Fset_extent_parent):
10160         * extents.c (decode_map_extents_flags):
10161         Fix gcc warnings.
10162         [9].
10163
10164         * extents.c (struct extent_at_arg):
10165         * extents.c (decode_extent_at_flag):
10166         * extents.c (extent_at_mapper):
10167         * extents.c (extent_at_bytind):
10168         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10169         * extents.c (Fextents_at): New primitive. [9].
10170         * extents.c (symbol_to_glyph_layout): [9].
10171         Support new primitive `extents-at'.
10172
10173
10174         * extents.c (get_text_property_bytind):
10175         extent_at_bytind has another arg.
10176         [9].
10177
10178         * extents.c (syms_of_extents): New primitive.
10179
10180         * file-coding.c (Fmake_coding_system): [1].
10181         * file-coding.c (subsidiary_coding_system): fix gcc warning
10182         * file-coding.c (syms_of_file_coding): [2].
10183
10184         * fileio.c (Fexpand_file_name):
10185         * fileio.c (Fsysnetunam):
10186         * fileio.c (Ffile_exists_p):
10187         * fileio.c (Ffile_executable_p):
10188         * fileio.c (Fverify_visited_file_modtime):
10189         Clean up GCPROing.
10190
10191         * fileio.c (syms_of_fileio): [2].
10192
10193         * filelock.c (lock_file_1):
10194         * filelock.c (current_lock_owner):
10195         * filelock.c (lock_if_free):
10196         * filelock.c (lock_file):
10197         * filelock.c (unlock_file):
10198         Clean up GCPROing.
10199
10200         * fns.c (concat): Fix gcc warning.
10201
10202         * fns.c (Fmember):
10203         * fns.c (Fold_member):
10204         * fns.c (Fmemq):
10205         * fns.c (Fold_memq):
10206         * fns.c (memq_no_quit):
10207         * fns.c (Fassoc):
10208         * fns.c (Fold_assoc):
10209         * fns.c (Fassq):
10210         * fns.c (Fold_assq):
10211         * fns.c (assq_no_quit):
10212         * fns.c (Frassoc):
10213         * fns.c (Fold_rassoc):
10214         * fns.c (Frassq):
10215         * fns.c (Fold_rassq):
10216         * fns.c (rassq_no_quit):
10217         * fns.c (Fdelete):
10218         * fns.c (Fold_delete):
10219         * fns.c (Fdelq):
10220         * fns.c (Fold_delq):
10221         * fns.c (delq_no_quit):
10222         * fns.c (Fremassoc):
10223         * fns.c (Fremassq):
10224         * fns.c (remassq_no_quit):
10225         * fns.c (Fremrassoc):
10226         * fns.c (Fremrassq):
10227         * fns.c (remrassq_no_quit):
10228         * fns.c (Freverse):
10229         * fns.c (mapcar1):
10230         [1].
10231
10232         * frame-msw.c (mswindows_init_frame_1):
10233         * frame-msw.c (mswindows_delete_frame):
10234         Register popups with dialog code so keyboard traversing works.
10235
10236         * frame-tty.c (tty_raise_frame_no_select): [1].
10237
10238         * frame-x.c:
10239         * frame-x.c (x_set_frame_text_value):
10240         * frame-x.c (x_set_frame_properties):
10241         * frame-x.c (x_create_widgets):
10242         [7].
10243
10244         * frame.c:
10245         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10246
10247         * frame.h (wrap_frame): New.
10248         Macro like wrap_device.
10249
10250         * general.c:
10251         * general.c (SYMBOL):
10252         * general.c (syms_of_general):
10253         Major reorg.  This is now just a wrapper and symbols themselves
10254         are listed in general-slots.h.
10255
10256         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10257         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10258
10259         * glyphs-msw.c (mswindows_native_layout_instantiate):
10260         Add DS_CONTROL so keyboard traversal will work.
10261
10262         * glyphs-widget.c:
10263         * glyphs-widget.c (syms_of_glyphs_widget):
10264         Move some symbols to general-slots.h.
10265
10266         * glyphs-x.c:
10267         * glyphs-x.c (xbm_instantiate_1):
10268         * glyphs-x.c (x_xbm_instantiate):
10269         * glyphs-x.c (x_xface_instantiate):
10270         * glyphs-x.c (autodetect_instantiate):
10271         * glyphs-x.c (cursor_font_instantiate):
10272         * glyphs-x.c (x_update_widget):
10273         * glyphs-x.c (x_widget_instantiate):
10274         * glyphs.c (bitmap_to_lisp_data):
10275         * glyphs.c (pixmap_to_lisp_data):
10276         [7].
10277
10278         * glyphs.c (syms_of_glyphs):
10279         [2].
10280
10281         * gui-x.c:
10282         * gui-x.c (print_widget_value):
10283         * gui-x.c (menu_separator_style_and_to_external):
10284         * gui-x.c (add_accel_and_to_external):
10285         * gui-x.c (button_item_to_widget_value):
10286         * gui-x.c (gui_items_to_widget_values_1):
10287         * gui-x.c (gui_items_to_widget_values):
10288         * gui-x.c (syms_of_gui_x):
10289         * gui-x.c (vars_of_gui_x):
10290         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10291         [9].
10292
10293         * gui-x.h:
10294         Muleize, prototype changes matching gui-x.c.
10295
10296         * gui.c:
10297         * gui.c (separator_string_p):
10298         * gui.c (gui_item_add_keyval_pair):
10299         * gui.c (make_gui_item_from_keywords_internal):
10300         * gui.c (signal_too_long_error):
10301         * gui.c (parse_gui_item_tree_item):
10302         * gui.c (syms_of_gui):
10303         * gui.c (vars_of_gui):
10304         * gui.h:
10305         menu-no-selection-hook moved here (used by MSWin).
10306         Move some symbols to general-slots.h.
10307         [6].
10308         [9].
10309
10310         * insdel.c (get_buffer_pos_char):
10311         * insdel.c (get_buffer_range_char):
10312         Add GC comments.
10313
10314         * keymap.c (keymap_lookup_directly):
10315         * keymap.c (keymap_store):
10316         * keymap.c (ensure_meta_prefix_char_keymapp):
10317         * keymap.c (describe_map):
10318         * keymap.h:
10319         Support new button modifiers.
10320
10321         * lisp-disunion.h (wrap_object):
10322         * lisp-disunion.h (XSETOBJ):
10323         Rename make_obj to wrap_object.
10324
10325         * lisp-union.h:
10326         * lisp-union.h (make_int):
10327         * lisp-union.h (make_char):
10328         Support wrap_object.
10329
10330         * lisp.h:
10331         * lisp.h (LIST_LOOP):
10332         * lisp.h (EXTERNAL_LIST_LOOP):
10333         * lisp.h (LIST_LOOP_2):
10334         * lisp.h (EXTERNAL_LIST_LOOP_1):
10335         * lisp.h (EXTERNAL_LIST_LOOP_2):
10336         * lisp.h (EXTERNAL_LIST_LOOP_3):
10337         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10338         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10339         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10340         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10341         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10342         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10343         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10344         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10345         * lisp.h (struct Lisp_Symbol):
10346         * lisp.h (maybe_continuable_error_with_frob):
10347         Fix up section comments.
10348         Add new types for char to indicate usage.
10349         Delete symbols auto-generated from general-slots.h.
10350         Add prototypes for structured error functions.
10351         Add long comments describing looping macros and change interface
10352         so that lvalues are automatically declared.
10353         Add NO_DECLARE macro in case callers want to declare lvalues
10354         themselves.
10355
10356         * lread.c (read_syntax_error):
10357         * lread.c (continuable_read_syntax_error):
10358         * lread.c (read_structure):
10359         * lread.c (sequence_reader):
10360         * lread.c (read_list_conser):
10361         * lread.c (read_compiled_function):
10362         Rename syntax_error and continuable_syntax_error to avoid clash
10363         with same-named structured error functions.
10364
10365         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10366         * menubar-msw.c (populate_menu_add_item):
10367         * menubar-msw.c (populate_or_checksum_helper):
10368         [5].
10369         [9].
10370
10371         * menubar-x.c:
10372         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10373         Mule-ize whole file.
10374
10375         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10376
10377         * mule-charset.c (Fmake_charset):
10378         * mule-wnnfns.c (Fwnn_set_param):
10379         [1].
10380
10381         * ntproc.c (create_child):
10382         * ntproc.c (Fwin32_set_current_locale):
10383         Add comments portending doom.
10384
10385         * objects-msw.c:
10386         * objects-msw.c (old_font_enum_callback_2):
10387         * objects-msw.c (font_enum_callback_1):
10388         * objects-msw.c (mswindows_enumerate_fonts):
10389         [5].
10390
10391         * objects-x.c:
10392         * objects-x.c (allocate_nearest_color):
10393         * objects-x.c (x_parse_nearest_color):
10394         * objects-x.c (x_initialize_color_instance):
10395         * objects-x.c (x_print_color_instance):
10396         * objects-x.c (x_finalize_color_instance):
10397         * objects-x.c (x_valid_color_name_p):
10398         * objects-x.c (x_initialize_font_instance):
10399         * objects-x.c (x_print_font_instance):
10400         * objects-x.c (valid_x_font_name_p):
10401         * objects-x.c (truename_via_FONT_prop):
10402         * objects-x.c (truename_via_random_props):
10403         * objects-x.c (truename_via_XListFonts):
10404         * objects-x.c (x_font_truename):
10405         * objects-x.c (x_font_instance_truename):
10406         * objects-x.c (x_font_instance_properties):
10407         * objects-x.c (x_list_fonts):
10408         * objects-x.c (x_find_charset_font):
10409         Mule-ize entire file.
10410         [7].
10411
10412         * objects-x.h:
10413         Mule-verify.
10414
10415         * print.c:
10416         * print.c (std_handle_out_external):
10417         * print.c (debug_print_no_newline):
10418         * print.c (syms_of_print):
10419         Output to all debugger kinds in debug-print.
10420         Fix console-output code under MSWin to actually work.
10421
10422         * process-nt.c (send_signal):
10423         * process-nt.c (nt_create_process):
10424         Use newer Unicode macros.
10425
10426         * process-unix.c (unix_create_process):
10427         * process-unix.c (unix_canonicalize_host_name):
10428         * process-unix.c (unix_open_network_stream):
10429         [7].
10430
10431         * scrollbar-x.c:
10432         Mule-verify.
10433
10434         * search.c (syms_of_search):
10435         [2].
10436
10437         * select-msw.c (mswindows_destroy_selection):
10438         Use LIST_LOOP_2.
10439
10440         * select-x.c (symbol_to_x_atom):
10441         [7].
10442
10443         * select.c (syms_of_select):
10444         [2].
10445
10446         * sound.c (Fplay_sound_file):
10447         [7].
10448
10449         * specifier.c:
10450         * specifier.c (decode_specifier_type):
10451         * specifier.c (Fvalid_specifier_locale_type_p):
10452         * specifier.c (check_valid_locale_or_locale_type):
10453         * specifier.c (decode_locale):
10454         * specifier.c (decode_locale_type):
10455         * specifier.c (decode_locale_list):
10456         * specifier.c (check_valid_domain):
10457         * specifier.c (decode_specifier_tag_set):
10458         * specifier.c (Fcanonicalize_tag_set):
10459         * specifier.c (Fdefine_specifier_tag):
10460         * specifier.c (Fspecifier_tag_predicate):
10461         * specifier.c (check_valid_inst_list):
10462         * specifier.c (check_valid_spec_list):
10463         * specifier.c (decode_how_to_add_specification):
10464         * specifier.c (check_modifiable_specifier):
10465         * specifier.c (specifier_add_spec):
10466         * specifier.c (boolean_validate):
10467         * specifier.c (display_table_validate):
10468         [9].
10469
10470         * specifier.c (syms_of_specifier):
10471         Move some symbols to general-slots.h.
10472         [2].
10473
10474         * symbols.c:
10475         * symbols.c (Fmapatoms):
10476         * symbols.c (Fapropos_internal):
10477         Add GCPROs.
10478
10479         * symbols.c (set_default_buffer_slot_variable):
10480         * symbols.c (set_default_console_slot_variable):
10481         [1].
10482
10483         * symbols.c (defsymbol_massage_name_1):
10484         * symbols.c (defkeyword_massage_name):
10485         * symbols.c (deferror_1):
10486         * symbols.c (deferror):
10487         * symbols.c (deferror_massage_name_and_message):
10488         * symeval.h:
10489         * symeval.h (DEFSYMBOL):
10490         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10491
10492         * symbols.c (syms_of_symbols):
10493         [2].
10494
10495         * symsinit.h:
10496         * symsinit.h (init_win32): New.
10497         Also new is syms_of_dialog_mswindows.
10498
10499         * syswindows.h:
10500         Add new Unicode macros, missing Cygwin wide-char functions,
10501         convenience conversion macros for Qmswindows_tstr, macros for
10502         encapsulating required MSWin <-> Cygwin filename conversions,
10503         prototype for dynamically-extracted (not in NT 3.51) functions.
10504
10505         * toolbar-x.c:
10506         Mule-verify.
10507
10508         * tooltalk.c (Fadd_tooltalk_message_arg):
10509         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10510         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10511         [7].
10512
10513         * tooltalk.c (syms_of_tooltalk):
10514         [2].
10515
10516         * unexnt.c:
10517         * unexnt.c (unexec):
10518         Fix up headers, declaration of unexec() to be more standard.
10519
10520 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10521
10522         * offix.h: Revert change to guard macros - they're used in offix.c!
10523
10524 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10525
10526         * lisp.h: Defsubred Fdelete.
10527
10528         * console-msw.h:  (msprinter_default_printer): Added.
10529
10530         * console-msw.c (msprinter_canonicalize_console_connection):
10531         (msprinter_canonicalize_device_connection): Added.
10532
10533         * device-msw.c (msprinter_default_printer):
10534         (Fmswingows_get_default_printer):
10535         (signal_enum_priner_error):
10536         (Fmswingows_printer_list): Added.
10537
10538 2000-07-19  Martin Buchholz <martin@xemacs.org>
10539
10540         * XEmacs 21.2.35 is released.
10541
10542 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10543
10544         * select-x.c (x_handle_selection_request):
10545         Text selected in xemacs and pasted into xterm failed to appear.
10546         Spelling fixes and cosmetic changes.
10547
10548 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10549
10550         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10551         XEmacs frame (fix for doubling chars in dialog boxes).
10552
10553 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10554
10555         * select.c (select_convert_in, select_convert_out):
10556         Don't call intern() every time.
10557
10558         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10559         * select.c (vars_of_select): Initialise them.
10560
10561 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10562
10563         * select.c (selection-coercible-types): New.
10564
10565         * select.c (own-selection-internal):
10566         * select.c (get-selection-internal):
10567         MULE bug fix - these should default to COMPOUND_TEXT and not
10568         STRING for MULE. I think.
10569
10570         * select.c (select_convert_out): Use selection-coercible-types
10571         to find types that we can attempt to perform coercions on.
10572
10573 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10574
10575         * mule-wnnfns.c:
10576         * mule-canna.c:
10577         Add coding: cookie to identify encoding.
10578
10579         * mule-canna.c (CANNA_mode_keys): make static.
10580         Use proper prototypes, even for functions of no arguments.
10581         Remove external prototype for Fding().
10582
10583         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10584
10585         * select.c (syms_of_select): Add missing DEFSUBR.
10586
10587 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10588
10589         * select.c (get_selection_internal, own_selection_internal):
10590         Make the type default to STRING, rather than placing a nil type
10591         into Vselection_alist.
10592
10593 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10594
10595         * gpmevent.c (tty_selection_exists_p):
10596         * gpmevent.c (tty_own_selection):
10597         Updated parameter lists.
10598
10599 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10600
10601         * select.h (selection-alist): Removed declaration.
10602
10603         * select.h (get_local_selection):
10604         * select.c (get_local_selection):
10605         Made static.
10606
10607         * select.h (convert_selection): Removed declaration.
10608         * select.c (convert_selection): Removed.
10609         This function belongs in Lisp.
10610
10611         * select.h (select_convert_in): Declare.
10612         * select.h (select_convert_out): Declare.
10613         * select.c (select_convert_in): New.
10614         * select.c (select_convert_out): New.
10615         New conversion functions for other files to call.
10616
10617         * select.h (select_notify_buffer_kill): Declare.
10618         * select.c (select_notify_buffer_kill): New.
10619         New functions that get called from kill-buffer.
10620
10621         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10622         X-specific lisp code.
10623
10624         * select.h: Declare some of the lisp-visible functions for
10625         external use.
10626
10627         * select.c (clean_local_selection_data): Removed. This was
10628         a disgusting function, and previously should have been in
10629         select-x.c in any case. The functionality is now provided
10630         in select-convert-from-integer (select.el).
10631
10632         * select.c (available-selection-types): Fixed stupidity where
10633         INTEGER and ATOM got added twice. Also add STRING when we see an
10634         extent.
10635
10636         * select.c (get-selection-internal): Removed symbol stripping. No
10637         longer causes conversion when data comes from the internal cache.
10638
10639         * select.c (syms_of_select): Added new functions.
10640
10641         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10642         error checking - previously this called abort!
10643
10644         * select-x.c (x_own_selection): Changed comment.
10645
10646         * select-x.c (x_handle_selection_request): Use select_convert_out.
10647         Don't mess with selection-alist; it's an internal variable of select.c.
10648
10649         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10650
10651         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10652         rather than messing with selection-alist.
10653
10654         * select-msw.c (mswindows_get_foreign_selection):
10655         Use TO_INTERNAL_FORMAT rather than hacking.
10656
10657 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10658
10659         * process-unix.c (unix_open_multicast_group):
10660         (unix_open_multicast_group): Remove useless casts.
10661
10662 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10663
10664         * sound.c (Fplay_sound): Fix `unused variable' warning.
10665
10666         * emacs.c (main): Use correct type for _environ on SCO5.
10667
10668 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10669
10670         * console.h (own_selection_method):
10671         * console.h (selection_exists_p_method):
10672         * console.h (available_selection_types_method): New.
10673         * console.h (register_selection_data_type_method): New.
10674         * console.h (selection_data_type_name): New.
10675
10676         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10677         function & alist to track GlobalAlloc()'d handles that need
10678         releasing when the clipboard data gets replaced or emptied.
10679
10680         * event-msw.c (mswindows_wnd_proc): Call it.
10681
10682         * lisp.h, general.c (Qappend): New symbol representing a
10683         `how-to-add' mode.
10684
10685         * select.c (own-selection-internal):
10686         * select.c (selection-exists-p):
10687         * select.c (available-selection-types): New.
10688         * select.c (register-selection-data-type): New.
10689         * select.c (selection-data-type-name): New.  New functions to deal
10690         with device-specific selection data formats.
10691         * select.c (selection-converter-out-alist): Renamed.
10692         * select.c (selection-converter-in-alist): New.
10693         * select.c (selection-appender-alist): New.  Added new alists.
10694         * select.c (syms_of_select, vars_of_select): Added new symbols &
10695         variables.
10696         * select.c (get_local_selection): Split.
10697         * select.c: Removed spurious type checking - selections may now be
10698         of any type, not just strings.
10699         * select.c (own-selection-internal):
10700
10701         * select.h, select.c (convert_selection): New. Created
10702         convert_selection() function based on get_local_selection().
10703         * select.h, select.c (QCF_*): New symbols representing mswindows
10704         clipboard formats.
10705         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10706         symbols representing `how-to-add' modes.
10707
10708         * select-msw.c (x_sym_p): New.
10709         * select-msw.c (symbol_to_ms_cf): New.
10710         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10711         symbols & clipboard formats. Can also handle string names.
10712         * select-msw.c (mswindows_own_selection):
10713         * select-msw.c (mswindows_selection_exists_p):
10714         Added `data-type' parameter. Use it.
10715         * select-msw.c (mswindows_available_selection_types): New.
10716         * select-msw.c (mswindows_register_selection_data_type): New.
10717         * select-msw.c (mswindows_selection_data_type_name): New.
10718         * select-msw.c (mswindows_own_selection):
10719         * select-msw.c (mswindows_get_foreign_selection):
10720         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10721         * select-msw.c (console_create_select_mswindows): Added new methods.
10722         * select-msw.c (mswindows_destroy_selection): New.
10723         * select-msw.c (Vhandle_alist): New list.
10724         * select-msw.c (mswindows_own_selection):
10725
10726         * select-x.c (x_own_selection):
10727         * select-x.c (x_selection_exists_p):
10728         * select-x.c: Added some comments about maybe using new
10729         functionality.
10730         * select-x.c (x_own_selection):
10731
10732         * specifier.c: Remove definition of Qappend (now in general.c)
10733         * specifier.c (syms_of_specifier): Remove Qappend.
10734
10735 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10736
10737         * config.h.in: Add socklen_t.
10738
10739         * s/decosf4-0.h: No special compiler flags needed or desired.
10740         In particular, undefine _BSD for DEC OSF 4.0.
10741
10742 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10743
10744         * redisplay-msw.c (msprinter_frame_output_end): Added.
10745         (console_type_create_redisplay_mswindows): Referred the above.
10746
10747         * frame.c (setup_frame_without_minibuffer): Do not create a
10748         default minibuffer frame on a printer device.
10749
10750         * frame-msw.c (apply_dc_geometry): Added.
10751         (msprinter_start_page):
10752         (msprinter_init_frame_3):
10753         (msprinter_eject_page): Use it.
10754
10755         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10756         and removed residual duplex and orientation properties.
10757
10758 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10759
10760         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10761
10762         * unexalpha.c: Remove system prototypes from C sources!
10763
10764 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10765
10766         * eval.c: Remove references to M-x edit-options in DEFUNs for
10767         `defvar' and `defconst'.
10768
10769 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10770
10771         * config.h.in: Remove SMART_INCLUDE hackery.
10772
10773         PostgreSQL hacking:
10774         * config.h.in: Don't use SMART_INCLUDE.
10775
10776         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10777         * inline.c: Simply #include "postgresql.h"
10778         * postgresql.c:
10779         - Don't use SMART_INCLUDE
10780         - Use simply "const".
10781         - Use standard doc string conventions.
10782         - Use correct type for result of PQstatus.
10783
10784 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10785
10786         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10787
10788         C++ compilation changes.
10789         * config.h.in (EXTERN_C): Define.
10790         * config.h.in (not): This is also a C++ keyword.
10791         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10792         * cm.c: Use EXTERN_C.
10793         * redisplay-tty.c: Use EXTERN_C.
10794         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10795
10796 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10797
10798         * general.c: Remove duplicate definition for Qfunction.
10799
10800 2000-07-08  Ben Wing  <ben@xemacs.org>
10801
10802         * device-msw.c (msprinter_init_device):
10803         * device-msw.c (sync_printer_with_devmode):
10804         * device-msw.c (handle_devmode_changes):
10805         * device-msw.c (print_dialog_worker):
10806         * device-msw.c (Fmsprinter_apply_settings):
10807         * device-msw.c (hash_devmode):
10808         * device-msw.c (Fmsprinter_settings_despecialize):
10809         use Qmswindows_tstr, not Qctext.
10810
10811         * vm-limit.c (check_memory_limits):
10812         avoid infinite loop printing warning messages.
10813
10814 2000-07-05  Craig Lanning  <lanning@scra.org>
10815
10816         * Makefile.in.in: Add support for including the Windows resources
10817         when building with the cygwin and mingw targets.
10818
10819         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10820         not set or not correct.
10821         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10822         (init_initial_directory): Don't try to use $PWD on the
10823         WIN32_NATIVE target.
10824
10825         * s\cygwin32.h:
10826         [[Add -mwindows to eliminate console window.]] not required --ben
10827         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10828         (MAIL_USE_POP): removed; now handled by configure.
10829
10830         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10831         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10832         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10833         (MAIL_USE_POP): removed; now handled by configure.
10834         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10835         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10836         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10837         constant string.
10838         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10839         up from <winsock.h> via systime.h.
10840         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10841         (getpagesize): from Dan Holmsand, added.
10842         Added #endif which was left dangling by Ben's mega patch; added
10843         comment to help prevent this in the future.
10844
10845         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10846
10847 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10848
10849         * console-msw.h (struct mswindows_device): Removed unnecessary
10850         cached device geometry values.
10851         Added update_tick and an accessor macro.
10852         (Lisp_Devmode): Added lrecord declaration.
10853         (struct msprinter_device): Contain devmode as a Lisp object.
10854         Added mswindows_get_selected_frame_hwnd();
10855
10856         * console.h (struct console_methods): Indentation nitpicking.
10857
10858         * device-msw.c (mswindows_init_device): Do not initialize geometry
10859         cache. Initialize update tick.
10860         (mswindows_device_system_metrics): Ask the device for its geometry.
10861         (global_free_2_maybe):
10862         (devmode_to_hglobal):
10863         (handle_printer_changes):
10864         (ensure_not_printing):
10865         (print_dialog_worker):
10866         (Fmsprinter_print_setup_dialog):
10867         (Fmsprinter_print_dialog):
10868         (plist_get_margin):
10869         (plist_set_margin):
10870         (Fmsprinter_page_setup_dialog): Added functions.
10871         (sync_printer_with_devmode):
10872         (handle_devmode_changes):
10873         (Fmsprinter_get_settings):
10874         (Fmsprinter_select_settings):
10875         (Fmsprinter_apply_settings):
10876         (allocate_devmode):
10877         (Fmsprinter_settings_copy):
10878         (Fmsprinter_settings_despecialize):
10879         (print_devmode):
10880         (finalize_devmode):
10881         (equal_devmode):
10882         (hash_devmode): Added functions
10883         (syms_of_device_mswindows): Init devmode lrecord class.
10884
10885         * device.h: Added an exfun for find-device.
10886
10887         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10888         geometry; although, recreate the device compatible DC.
10889
10890         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10891         (msprinter_init_frame_3):
10892         (msprinter_frame_property):
10893         (msprinter_internal_frame_property_p):
10894         (msprinter_frame_properties):
10895         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10896         print job properties (will move to device settings).
10897
10898         * lisp.h: Added symbols.
10899
10900         * general.c (syms_of_general): Declared them.
10901
10902         * hash.c (string_hash): Added.
10903
10904         * lrecord.h (lrecord_type): Added devmode lrecord type.
10905
10906 2000-07-02  Mike Sperber <mike@xemacs.org>
10907
10908         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10909         FreeBSD 4.0.
10910
10911 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10912
10913         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10914         integer.
10915
10916 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10917
10918         * data.c (Fstring_to_number): Don't recognize floating point if
10919         base is not 10.
10920
10921 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10922
10923         * glyphs-widget.c (tab_control_query_geometry):
10924         (widget_query_geometry):
10925         (button_query_geometry):
10926         * glyphs.c (text_query_geometry):
10927         Enforce type correctness.
10928
10929 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10930
10931         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10932         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10933
10934 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10935
10936         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10937         conflicts with gcc's fixincluded version of FOO.h.
10938
10939         * glyphs.h (image_instance_geometry): Remove trailing `,'
10940
10941 2000-06-08  Mike Alexander  <mta@arbortext.com>
10942
10943         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10944         (shove_thread): Don't write the same output twice
10945         (make_ntpipe_output_stream): Increase priority of shove thread
10946         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10947         chance to run
10948         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10949         it.
10950
10951 2000-06-12  Ben Wing  <ben@xemacs.org>
10952
10953         * s\mingw32.h (sigset):
10954         * s\windowsnt.h (sigset):
10955         rename msw_ to mswindows_ for consistency with general convention.
10956
10957 2000-06-12  Ben Wing  <ben@xemacs.org>
10958
10959         * console-msw.c:
10960         * console-msw.c (mswindows_get_console_hwnd):
10961         * console-msw.c (mswindows_ensure_console_allocated):
10962         * console-msw.c (mswindows_hide_console):
10963         * console-msw.c (mswindows_show_console):
10964         * console-msw.c (mswindows_ensure_console_buffered):
10965         * console-msw.c (mswindows_output_console_string):
10966         * console-msw.c (mswindows_windows9x_p):
10967         * console-msw.h:
10968         * device-msw.c (mswindows_get_workspace_coords):
10969         * device-msw.c (mswindows_device_system_metrics):
10970         * dialog-msw.c (mswindows_popup_dialog_box):
10971         * event-msw.c (mswindows_wnd_proc):
10972         * frame-msw.c (mswindows_size_frame_internal):
10973         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10974         * menubar-msw.c (displayable_menu_item):
10975         * menubar-msw.c (mswindows_char_is_accelerator):
10976         * nt.c:
10977         * nt.c (mswindows_sigset):
10978         * nt.c (mswindows_sigrelse):
10979         * nt.c (mswindows_sigpause):
10980         * nt.c (mswindows_raise):
10981         * nt.c (timer_proc):
10982         * ntproc.c:
10983         * ntproc.c (find_child_console):
10984         * ntproc.c (sys_kill):
10985         * print.c:
10986         * print.c (std_handle_out_external):
10987         * process-nt.c (find_child_console):
10988         * process-nt.c (send_signal_the_95_way):
10989         * process-nt.c (ensure_console_window_exists):
10990         * process-nt.c (nt_create_process):
10991         * syssignal.h:
10992         rename msw_ to mswindows_ for consistency with general convention.
10993
10994         * emacs.c:
10995         * dumper.c:
10996         include nt.h, not syswindows.h.
10997
10998         * nt.c (mswindows_fstat):
10999         * nt.c (mswindows_stat):
11000         prefix mswindows_ instead of attempting to directly override the
11001         library functions.  fix declarations.
11002
11003         * nt.h:
11004         include syswindows.h.  move some sysdep.h stuff here.
11005
11006         * ntheap.h:
11007         include syswindows.h, not <windows.h>.
11008
11009         * ntplay.c:
11010         clean up headers.
11011
11012         * sysdep.c:
11013         clean up headers.
11014
11015         * sysdep.c (sys_fstat):
11016         * sysdep.c (sys_stat):
11017         call mswindows versions when appropriate.
11018
11019         * sysdep.h:
11020         move mswin decls to nt.h.
11021
11022         * syswindows.h:
11023         add long comment describing appropriate use of the various windows
11024         headers.
11025
11026 2000-06-11  Ben Wing  <ben@xemacs.org>
11027
11028         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11029
11030 2000-06-10  Ben Wing  <ben@xemacs.org>
11031
11032         * Makefile.in.in (release):
11033         Correction to make sure xemacs.exe always dumped when correct.
11034
11035         * alloca.c:
11036         * balloon_help.c:
11037         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11038
11039         * buffer.c (set_buffer_internal):
11040         [[[[2]]]]: Remove HAVE_FEP code.
11041
11042         * buffer.c (init_initial_directory):
11043         [3].
11044
11045         * bytecode.c:
11046         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11047         individual files.
11048
11049         * callproc.c:
11050         * callproc.c (call_process_cleanup):
11051         * callproc.c (Fold_call_process_internal):
11052         * callproc.c (child_setup):
11053         * callproc.c (getenv_internal):
11054         * callproc.c (init_callproc):
11055         * callproc.c (vars_of_callproc):
11056         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11057         __CYGWIN32__ -> CYGWIN.
11058         DOS_NT -> WIN32_NATIVE.
11059         Remove MSDOS support/references, converting to WIN32_NATIVE
11060           where correct.
11061         __MINGW32__ -> MINGW.
11062         Fix windows.h includes.
11063         Remove bogus HAVE_NTGUI.
11064
11065         * config.h.in:
11066         [2].
11067
11068         * console-msw.c:
11069         mswindows_message_outputted added for use in allowing startup
11070         errors on the console to be seen.
11071
11072         * console-msw.c (msw_ensure_console_allocated):
11073         * console-msw.c (msw_output_console_string):
11074         * console-msw.c (DHEADER):
11075         * console-msw.c (DOPAQUE_DATA):
11076         * console-msw.c (DEVENT):
11077         * console-msw.c (DCONS):
11078         * console-msw.c (DCONSCDR):
11079         * console-msw.c (DSTRING):
11080         * console-msw.c (DVECTOR):
11081         * console-msw.c (DSYMBOL):
11082         * console-msw.c (DSYMNAME):
11083         Fix warnings.
11084
11085         * console-stream.c (stream_init_console):
11086         Fix text/binary problems.
11087
11088         * device-msw.c:
11089         * device-msw.c (mswindows_finish_init_device):
11090         * device-msw.c (mswindows_delete_device):
11091         [1].
11092
11093         * device.c (handle_asynch_device_change):
11094         [3].
11095
11096         * dgif_lib.c:
11097         * dgif_lib.c (DGifOpenFileName):
11098         * dgif_lib.c (DGifOpenFileHandle):
11099         * dgif_lib.c (DGifGetLine):
11100         * dgif_lib.c (DGifGetPixel):
11101         Added config.h/lisp.h, fix up includes.
11102         [1].
11103
11104         * dired-msw.c:
11105         [4].
11106
11107         * dired.c:
11108         * dired.c (file_name_completion):
11109         * dired.c (Ffile_attributes):
11110         * dired.c (syms_of_dired):
11111         [1].
11112
11113         * dumper.c:
11114         * dumper.c (pdump_file_unmap):
11115         * dumper.c (pdump_load):
11116         [1].
11117
11118         * editfns.c:
11119         * editfns.c (Ftemp_directory):
11120         * editfns.c (user_login_name):
11121         * editfns.c (Fuser_real_login_name):
11122         * editfns.c (get_home_directory):
11123         [1].
11124
11125         * elhash.c (finish_marking_weak_hash_tables):
11126         [[[[5]]]]: Fix GCC warnings.
11127
11128         * emacs.c:
11129         * emacs.c (mswindows_handle_hardware_exceptions):
11130         * emacs.c (make_arg_list_1):
11131         * emacs.c (main_1):
11132         * emacs.c (Fkill_emacs):
11133         * emacs.c (Fdump_emacs):
11134         [1].
11135         Fix problems with nested crashes, add long comment.
11136
11137         * event-Xt.c (init_event_Xt_late):
11138         [1].
11139
11140         * event-msw.c:
11141         * event-msw.c (mswindows_dde_callback):
11142         * event-msw.c (mswindows_handle_sticky_modifiers):
11143         * event-msw.c (mswindows_wnd_proc):
11144         [1].
11145         [5].
11146
11147         * events.c (character_to_event):
11148         [1].
11149
11150         * fileio.c:
11151         * fileio.c (Ffile_name_directory):
11152         * fileio.c (Ffile_name_nondirectory):
11153         * fileio.c (directory_file_name):
11154         * fileio.c (Fexpand_file_name):
11155         * fileio.c (Fsubstitute_in_file_name):
11156         * fileio.c (Ffile_name_absolute_p):
11157         * fileio.c (check_executable):
11158         * fileio.c (Ffile_readable_p):
11159         * fileio.c (Ffile_accessible_directory_p):
11160         * fileio.c (Ffile_modes):
11161         * fileio.c (Funix_sync):
11162         * fileio.c (vars_of_fileio):
11163         [1]. [4].
11164
11165         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11166
11167         Expand getdefdir defn.
11168         Fix bogus rename() comment.
11169
11170         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11171         to use standard XEmacs include files, e.g. sysfile.h, rather
11172         than system-specific includes.
11173
11174         * fns.c:
11175         * fns.c (Fsubseq):
11176         [5]. [6].
11177
11178         * frame.c (vars_of_frame):
11179         [1].
11180
11181         * getloadavg.c:
11182         * getloadavg.c (getloadavg):
11183         [1]. [6].
11184         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11185         (We don't use it elsewhere in the code; just add a comment.)
11186
11187         * gif_io.c:
11188         [6].
11189         Add config.h.
11190
11191         * glyphs-msw.c:
11192         * glyphs-msw.c (mswindows_resource_instantiate):
11193         [1].
11194
11195         * glyphs-x.c (x_native_layout_instantiate):
11196         [5].
11197
11198         * gui-msw.c (Fmswindows_shell_execute):
11199         [1].
11200
11201         * insdel.c:
11202         [4].
11203
11204         * lisp.h:
11205         [4]. [5].
11206
11207         * lread.c (locate_file_in_directory_mapper):
11208         [1].
11209
11210         * lstream.c:
11211         [4].
11212
11213         * mem-limits.h:
11214         * mem-limits.h (get_lim_data):
11215         [1].
11216
11217         * menubar-msw.c:
11218         [4].
11219
11220         * ndir.h:
11221         [1].
11222
11223         * nt.c:
11224         * nt.c (getwd):
11225         * nt.c (closedir):
11226         * nt.c (rva_to_section):
11227         * nt.c (mswindows_executable_type):
11228         [1]. [6].
11229         Fix closedir() defn.
11230
11231         * nt.h:
11232         [[[[8]]]]: *_OK defs moved to sysfile.h.
11233
11234         * ntproc.c:
11235         [6]. [7].
11236
11237         * objects-x.c:
11238         [4].
11239
11240         * print.c:
11241         * print.c (std_handle_out_external):
11242         [1]. [4].
11243
11244         * process-nt.c:
11245         * process-nt.c (nt_create_process):
11246         [6].
11247         try to fix process quoting somewhat.
11248
11249         * process-unix.c (unix_create_process):
11250         [1].
11251
11252         * process.c:
11253         * process.c (vars_of_process):
11254         Add Vnull_device.
11255
11256         * process.h:
11257         [1].
11258
11259         * realpath.c:
11260         * realpath.c (xrealpath):
11261         [1].
11262
11263         * redisplay-tty.c (init_tty_for_redisplay):
11264         [3].
11265
11266         * redisplay.c:
11267         [4]. [6].
11268
11269         * scrollbar-msw.c:
11270         [4].
11271
11272         * sheap.c:
11273         * sheap.c (more_static_core):
11274         * sheap.c (report_sheap_usage):
11275         [5]. [6].
11276
11277         * signal.c:
11278         * signal.c (alarm_signal):
11279         [1]. [6].
11280
11281         * sound.c:
11282         [6].
11283
11284         * strftime.c:
11285         * strftime.c (zone_name):
11286         [1]. [5].
11287
11288         * symsinit.h (init_sunpro):
11289         [1].
11290
11291         * syscommctrl.h:
11292         commctrl.h not in Cygwin b20.1.
11293
11294         * sysdep.c:
11295         * sysdep.c (endif):
11296         * sysdep.c (sys_subshell):
11297         * sysdep.c (init_baud_rate):
11298         * sysdep.c (emacs_get_tty):
11299         * sysdep.c (emacs_set_tty):
11300         * sysdep.c (tty_init_sys_modes_on_device):
11301         * sysdep.c (init_system_name):
11302         * sysdep.c (sys_open):
11303         * sysdep.c (interruptible_open):
11304         * sysdep.c (sys_fopen):
11305         * sysdep.c (sys_mkdir):
11306         * sysdep.c (sys_rename):
11307         * sysdep.c (get_process_times_1):
11308         [1]. [6].
11309
11310         * sysdep.h:
11311         [1].
11312
11313         * sysdir.h:
11314         * sysdir.h (DIRENTRY_NONEMPTY):
11315         [1]. [6].
11316
11317         * sysdll.c (dll_init):
11318         * sysdll.h:
11319         [1].
11320
11321         * sysfile.h:
11322         [1]. [6]. [8].
11323         added text/binary defs.
11324
11325         * sysfloat.h:
11326         [1].
11327
11328         * sysproc.h:
11329         * sysproc.h (EDESTADDRREQ):
11330         * sysproc.h (poll_fds_for_input):
11331         [1]. [6].
11332
11333         * syspwd.h:
11334         [6].
11335
11336         * syssignal.h:
11337         [1].
11338
11339         * systime.h:
11340         [1]. [6].
11341
11342         * systty.h:
11343         [1].
11344
11345         * syswindows.h:
11346         [1].
11347         Always define WIN32_LEAN_AND_MEAN.
11348
11349         * unexcw.c (unexec):
11350         [5].
11351
11352         * unexec.c:
11353         * unexec.c (copy_text_and_data):
11354         * unexec.c (adjust_lnnoptrs):
11355         [1].
11356
11357         * unexnt.c:
11358         * unexnt.c (_start):
11359         [1].
11360
11361 2000-06-07  Ben Wing  <ben@xemacs.org>
11362
11363         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11364         was used only as a model.  We've long since extracted any useful
11365         logic or code out of this. (I just did an exhaustive search.)
11366
11367         * s\msdos.h: Removed.
11368
11369         * s\windows95.h: Removed.
11370
11371 2000-06-10  Ben Wing  <ben@xemacs.org>
11372
11373         * s\cygwin32.h:
11374         [1]. [5].
11375         Don't use extern with fun defs.
11376
11377         * s\mingw32.h:
11378         [1]. [7].
11379         Remove nt\inc include.
11380         Remove getdisk, getdefdir. (The former is unused, the latter
11381         expanded in fileio.h.)
11382
11383         * s\windowsnt.h:
11384         * s\windowsnt.h (WIN32_NATIVE):
11385         * s\windowsnt.h (HAVE_STRCASECMP):
11386         [1]. [7].
11387         Add long comment about preprocessor changes.
11388         Remove getdisk, getdefdir. (The former is unused, the latter
11389         expanded in fileio.h.)
11390
11391 2000-06-10  Ben Wing  <ben@xemacs.org>
11392
11393         * m\arm.h:
11394         * m\delta.h:
11395         * m\intel386.h:
11396         * m\sequent.h:
11397         * m\template.h:
11398         * m\windowsnt.h:
11399         [1].
11400         Remove bogus/unused NO_SOCK_SIGIO.
11401
11402 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11403
11404         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11405         not an Emchar.
11406
11407 2000-06-04  Mike Sperber <mike@xemacs.org>
11408
11409         * casetab.c (set_case_table): For `set-standard-case-table',
11410         actually deposit the new case tables where the rest of XEmacs can
11411         see them.
11412
11413 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11414
11415         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11416
11417 2000-06-05  Ben Wing  <ben@xemacs.org>
11418
11419         * callproc.c (child_setup): Don't do close_load_descs() under
11420         MS Windows.  Put in a comment explaining why.
11421
11422 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11423
11424         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11425         Toolkit shell" which breaks `kill-compilation' on Windows NT
11426         native, retaining STDERR handling improvements.
11427
11428 2000-06-01  Andreas Jaeger  <aj@suse.de>
11429
11430         * s/s390.h: Support for S390, based on a patch by Martin
11431         Schwidefsky <schwidefsky@de.ibm.com>.
11432
11433 2000-05-30  Andy Piper  <andy@xemacs.org>
11434
11435         * window.c (allocate_window):
11436         (make_dummy_parent):
11437         (Fset_window_configuration): use new hashtable type.
11438
11439         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11440         (struct image_instantiator_methods):
11441         (struct Lisp_Image_Instance): make instance geometry signed.
11442
11443         * glyphs.c (instantiate_image_instantiator):
11444         (image_instance_query_geometry):
11445         (image_instance_layout):
11446         (image_instance_layout):
11447         (query_string_geometry):
11448         (text_query_geometry):
11449         (image_instantiate):
11450         (image_instantiate):
11451         (cache_subwindow_instance_in_frame_maybe):
11452         (subwindow_query_geometry): make instance geometry signed.
11453
11454         * glyphs-widget.c (widget_query_geometry):
11455         (widget_layout):
11456         (button_query_geometry):
11457         (tree_view_query_geometry):
11458         (tab_control_query_geometry):
11459         (layout_query_geometry):
11460         (layout_layout):
11461         (native_layout_layout): make instance geometry signed.
11462
11463 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11464
11465         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11466         constant.
11467
11468         * general.c (syms_of_general): Add Qfull_assoc symbol.
11469
11470         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11471         correctly.
11472         (decode_weak_list_type): Decode full-assoc type.
11473         (encode_weak_list_type): Encode full-assoc type.
11474         (Fmake_weak_list): Update doc string.
11475
11476 2000-05-30  Andy Piper  <andy@xemacs.org>
11477
11478         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11479
11480         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11481         (decode_hash_table_weakness): ditto.
11482         (Fhash_table_weakness): ditto.
11483         (Fhash_table_type): ditto.
11484         (finish_marking_weak_hash_tables): ditto.
11485         (hash_table_weakness_validate): ditto.
11486         (syms_of_elhash): ditto.
11487
11488 2000-05-28  Martin Buchholz <martin@xemacs.org>
11489
11490         * XEmacs 21.2.34 is released.
11491
11492 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11493
11494         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11495         start cache.
11496         (updating_line_start_cache): Gone.
11497         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11498         generic code to force a minimum of 1 line laid out in the
11499         CMOTION_DISP case.
11500
11501 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11502
11503         * glyphs.c (instantiate_image_instantiator): Check for initialized
11504         height & width no longer special cases IMAGE_NOTHING.
11505         (nothing_instantiate): Set height and width of instance.
11506
11507 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11508
11509         * unexelf.c (unexec): Search for ".data" section.
11510         Initialize new_data2_offset from old_data_index.
11511         Remove redundant check for ElfW.
11512
11513 2000-05-23  Andy Piper  <andy@xemacs.org>
11514
11515         * glyphs.c (get_image_instantiator_governing_domain): allow more
11516         specific domains as the governing domain rather than expecting an
11517         exact match. This fixes problems with layouts.
11518
11519 2000-05-22  Andy Piper  <andy@xemacs.org>
11520
11521         * redisplay-output.c (compare_runes): check for non-images
11522
11523         * glyphs.c (set_glyph_dirty_p): ditto.
11524         (update_glyph_cachel_data): ditto.
11525
11526         * glyphs-widget.c (layout_post_instantiate): ditto.
11527         (layout_post_instantiate): ditto.
11528
11529         * event-msw.c (mswindows_wnd_proc): warning removal.
11530
11531 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11532
11533         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11534
11535         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11536
11537         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11538
11539         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11540         (mswindows_executable_type): mingw32 now has enough headers for
11541         this to work.
11542
11543 2000-05-20  Andy Piper  <andy@xemacs.org>
11544
11545         * console-msw.c (mswindows_output_last_error): ; -> ,
11546
11547 2000-05-12  Andy Piper  <andy@xemacs.org>
11548
11549         * console-msw.c (FROB): compare ints with ints.
11550
11551 2000-05-11  Andy Piper  <andy@xemacs.org>
11552
11553         * glyphs-x.c (x_finalize_image_instance): make minimal build
11554         happy.
11555
11556 2000-05-20  Ben Wing  <ben@xemacs.org>
11557
11558         * event-Xt.c:
11559         * event-Xt.c (vars_of_event_Xt):
11560         move modifier-keys-are-sticky to event-stream.c.
11561
11562         * event-msw.c:
11563         * event-msw.c (mswindows_enqueue_mouse_button_event):
11564         * event-msw.c (key_needs_default_processing_p):
11565         * event-msw.c (XEMSW_LCONTROL):
11566         * event-msw.c (mswindows_handle_sticky_modifiers):
11567         * event-msw.c (FROB):
11568         * event-msw.c (clear_sticky_modifiers):
11569         * event-msw.c (output_modifier_keyboard_state):
11570         * event-msw.c (output_alt_keyboard_state):
11571         * event-msw.c (mswindows_wnd_proc):
11572         * event-msw.c (mswindows_modifier_state):
11573         * event-msw.c (emacs_mswindows_handle_magic_event):
11574         implement sticky modifiers.
11575
11576         * event-stream.c:
11577         * event-stream.c (vars_of_event_stream):
11578         move modifier-keys-are-sticky here.
11579
11580         * lisp.h:
11581         add CHECK_FUNCTION.
11582
11583         * rangetab.c:
11584         implement map-range-table.
11585
11586
11587 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11588
11589         * redisplay-tty.c (reset_tty_modes):
11590         (tty_redisplay_shutdown): Adjust argument type to
11591         tty_frame_output_end.
11592
11593 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11594
11595         * eval.c (Fbacktrace): Don't output a line with only right
11596         parenthesis.
11597
11598 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11599
11600         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11601         (Fpq_reset_poll): Ditto.
11602
11603 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11604
11605         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11606
11607 2000-05-16  Ben Wing  <ben@xemacs.org>
11608
11609         * buffer.c:
11610         * buffer.c (dfc_convert_to/from_internal_format):
11611         * buffer.c (reinit_vars_of_buffer):
11612         Fix conversion functions to allow reentrancy.
11613
11614         * console-msw.c:
11615         * console-msw.c (mswindows_output_last_error):
11616         New fun, generally useful -- output a human-readable
11617         version of GetLastError() on the console.
11618
11619         * console-msw.h:
11620         * console-msw.h (struct mswindows_frame):
11621         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11622
11623         * console-stream.c (stream_output_begin):
11624         * console-stream.c (stream_output_end):
11625         * console-stream.c (stream_output_vertical_divider):
11626         * console-stream.c (stream_clear_region):
11627         * console-stream.c (stream_flash):
11628         * console-stream.c (console_type_create_stream):
11629         Delete blank stream methods, not needed.
11630
11631         * console.h (struct console_methods):
11632         Split begin/end methods into window and frame.
11633
11634         * event-msw.c:
11635         * event-msw.c (mswindows_handle_paint):
11636         * event-msw.c (output_alt_keyboard_state):
11637         * event-msw.c (mswindows_wnd_proc):
11638         * event-msw.c (vars_of_event_mswindows):
11639         Comment about problems with ignored-expose.
11640         Define mswindows-debug-events; not really implemented.
11641
11642         * frame-msw.c (mswindows_init_frame_1):
11643         random cleanups.
11644
11645         * glyphs-msw.c:
11646         * glyphs-msw.c (begin_defer_window_pos):
11647         * glyphs-msw.c (mswindows_unmap_subwindow):
11648         * glyphs-msw.c (mswindows_map_subwindow):
11649         * glyphs-msw.c (mswindows_resize_subwindow):
11650         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11651
11652         * glyphs.c (make_image_instance_1):
11653         Fix crash.
11654
11655         * gutter.c (Fredisplay_gutter_area):
11656         Use new begin/end methods.
11657
11658         * lisp.h (Dynarr_new2):
11659         New creation fun.
11660
11661         * redisplay-msw.c:
11662         * redisplay-msw.c (mswindows_frame_output_begin):
11663         * redisplay-msw.c (mswindows_frame_output_end):
11664         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11665         New begin/end methods -- handle DeferWindowPos.
11666
11667         * redisplay-output.c (redisplay_move_cursor):
11668         * redisplay-output.c (redraw_cursor_in_window):
11669         * redisplay-output.c (redisplay_update_line):
11670         * redisplay-output.c (redisplay_output_window):
11671         New begin/end methods.
11672
11673         * redisplay-tty.c:
11674         * redisplay-tty.c (tty_frame_output_begin):
11675         * redisplay-tty.c (tty_frame_output_end):
11676         * redisplay-tty.c (console_type_create_redisplay_tty):
11677         New begin/end methods.
11678
11679         * redisplay-x.c:
11680         * redisplay-x.c (x_window_output_begin):
11681         * redisplay-x.c (x_window_output_end):
11682         * redisplay-x.c (console_type_create_redisplay_x):
11683         New begin/end methods.
11684
11685         * redisplay.c (redisplay_frame):
11686         * redisplay.c (Fredisplay_echo_area):
11687         New begin/end methods.
11688         use MAYBE_DEVMETH for clear_frame; it may not exist.
11689
11690         * window.h (WINDOW_XFRAME):
11691         WINDOW_XFOO macros -- get locale and decode struct pointer.
11692
11693
11694 2000-05-12  Ben Wing  <ben@xemacs.org>
11695
11696         * emacs.c:
11697         * emacs.c (ensure_no_quitting_from_now_on):
11698         * emacs.c (fatal_error_signal):
11699         * emacs.c (mswindows_handle_hardware_exceptions):
11700         * emacs.c (main):
11701         * emacs.c (Fkill_emacs):
11702         * emacs.c (shut_down_emacs):
11703         * emacs.c (assert_failed):
11704         various improvements in fatal error handling.
11705
11706         * eval.c:
11707         move preparing_for_armageddon to emacs.c.
11708
11709         * lisp.h:
11710         declare fatal_error_in_progress.
11711
11712         * print.c:
11713         * print.c (std_handle_out_external):
11714         * print.c (std_handle_out_va):
11715         * print.c (stderr_out):
11716         * print.c (stdout_out):
11717         use console under mswin when no standard output.
11718         don't do code conversion during fatal error.
11719
11720         * scrollbar.c (Fscrollbar_page_up):
11721         * scrollbar.c (Fscrollbar_page_down):
11722         fix missing else.  reindent.
11723
11724 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11725
11726         Emergency fix.
11727
11728         * glyphs.h (GLYPH_CACHEL_DESCENT):
11729         (GLYPH_CACHEL_DESCENT):
11730         (GLYPH_CACHEL_DESCENT):
11731         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11732         used in case these are inline functions.
11733         Use more absurd values to error check.
11734
11735         include window.h for error check functions.
11736
11737 2000-05-11  Ben Wing  <ben@xemacs.org>
11738
11739         * cmdloop.c (Freally_early_error_handler):
11740         Display message box under windows; otherwise, message will disappear
11741         before it can be viewed.
11742
11743         * console-msw.c:
11744         * console-msw.c (Fmswindows_message_box):
11745         * console-msw.c (FROB):
11746         * console-msw.c (syms_of_console_mswindows):
11747         Define new fun `mswindows-message-box'.
11748         #### I will merge this into `popup-dialog-box'; just give me
11749         a bit of time.
11750
11751         * general.c:
11752         * general.c (syms_of_general):
11753         Some new symbols used in `mswindows-message-box'.
11754
11755         * glyphs.c:
11756         * glyphs.c (Fset_image_instance_property):
11757         put warning in this fun.
11758
11759         * glyphs.h:
11760         * glyphs.h (GLYPH_CACHEL_WIDTH):
11761         * glyphs.h (GLYPH_CACHEL_ASCENT):
11762         * glyphs.h (GLYPH_CACHEL):
11763         * glyphs.h (GLYPH_CACHEL_GLYPH):
11764         define error-checking versions to try to catch a bug i've seen --
11765         redisplay gets in an infinite loop because the glyph width of the
11766         continuation glyph is 65535.
11767
11768         * lisp.h:
11769         Extern message-box stuff.
11770
11771         * window.c (allocate_window):
11772         * window.c (make_dummy_parent):
11773         * window.c (Fset_window_configuration):
11774         Use EQUAL not EQ for subwindow caches to make them work a bit
11775         better. (Something is still very broken.)
11776
11777
11778 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11779
11780         * glyphs.c (image_instantiate): Suppress gcc warnings.
11781         (Fmake_image_instance): Fix doc string.
11782         * specifier.c (Fmake_specifier): Ditto.
11783
11784 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11785
11786         * paths.h.in (PATH_LOCK): Removed.
11787         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11788         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11789
11790 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11791
11792         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11793         Document (featurep '(and xemacs 21.02)).
11794
11795 2000-05-09  Ben Wing  <ben@xemacs.org>
11796
11797         * buffer.c (complex_vars_of_buffer):
11798         update modeline-format doc.
11799
11800         * device.h:
11801         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11802
11803         * emacs.c:
11804         timeline of all released versions of Emacs, for use in creating
11805         authorship comments and in synching up.
11806
11807         * glyphs-widget.c (image_instantiator_buttons):
11808         * glyphs-widget.c (image_instantiator_edit_fields):
11809         * glyphs-widget.c (image_instantiator_combo_box):
11810         * glyphs-widget.c (image_instantiator_scrollbar):
11811         * glyphs-widget.c (image_instantiator_progress_guage):
11812         * glyphs-widget.c (image_instantiator_tree_view):
11813         * glyphs-widget.c (image_instantiator_tab_control):
11814         * glyphs-widget.c (image_instantiator_labels):
11815         * glyphs-widget.c (image_instantiator_layout):
11816         * glyphs-widget.c (image_instantiator_native_layout):
11817         rename decode_domain method to governing_domain.
11818
11819         * glyphs.c:
11820         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11821         * glyphs.c (add_entry_to_device_ii_format_list):
11822         make sure we don't put an entry more than once into the list.
11823         * glyphs.c (check_instance_cache_mapper):
11824         *************************************************************
11825         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11826         HAVE BEEN GETTING.
11827         *************************************************************
11828         * glyphs.c (get_image_instantiator_governing_domain):
11829         clean up, expand on new concept of governing domain.
11830         * glyphs.c (instantiate_image_instantiator):
11831         * glyphs.c (allocate_image_instance):
11832         use governing_domain instead of cache_domain in naming.
11833         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11834         * glyphs.c (make_image_instance_1):
11835         * glyphs.c (Fmake_image_instance):
11836         allow for any domain (not just device), and process the
11837         governing domain correctly.  very big doc fix.
11838         * glyphs.c (Fimage_instance_domain):
11839         new primitive, to retrieve the governing domain of an image instance.
11840         * glyphs.c (image_instantiate):
11841         use new governing_domain stuff.  this fixes a crash you could get
11842         by instantiating certain widget glyphs in frame locales. (should
11843         signal an error instead of crashing.)
11844         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11845         * glyphs.c (Fglyphp): clean up doc.
11846         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11847         * glyphs.c (syms_of_glyphs):
11848         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11849         * glyphs.c (image_instantiator_format_create): add some comments about
11850         bogus code.
11851         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11852         for current-display-table. (Apparently Hrjove implemented in 1998 a
11853         design I wrote up in 1996, but didn't update the doc string.)
11854
11855         * glyphs.h: clean up a doc string.
11856         * glyphs.h (governing_domain):
11857         * glyphs.h (struct image_instantiator_methods):
11858         changes for governing_domain stuff.
11859
11860         * gutter.c:
11861         * gutter.c (Fgutter_specifier_p):
11862         * gutter.c (Fgutter_size_specifier_p):
11863         * gutter.c (Fgutter_visible_specifier_p):
11864         * objects.c:
11865         * objects.c (Fcolor_specifier_p):
11866         * objects.c (Ffont_specifier_p):
11867         * objects.c (Fface_boolean_specifier_p):
11868         doc strings moved to make-*-specifier.
11869
11870         * redisplay.c (add_disp_table_entry_runes_1):
11871         * redisplay.c (generate_fstring_runes):
11872         * redisplay.c (screen):
11873         add random comments and doc strings.
11874
11875         * specifier.c:
11876         * specifier.c (Fmake_specifier):
11877         major overhaul of this doc string.
11878
11879         * specifier.c (Fvalid_specifier_domain_p):
11880         comment about the bogosity of image instances being domains.
11881         * specifier.c (decode_domain):
11882         now non-static, used in glyphs.c.
11883         * specifier.c (specifier_instance):
11884         comment about the bogosity of image instances being domains.
11885         * specifier.c (Fgeneric_specifier_p):
11886         move doc string to make-generic-specifier.
11887         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11888         rebackslashify.
11889
11890         * specifier.h:
11891         * specifier.h (DOMAIN_FRAME):
11892         * specifier.h (DOMAIN_LIVE_P):
11893         * specifier.h (DOMAIN_XDEVICE):
11894         rebackslashify.
11895         add comments about problems with these macros.
11896         prototype for decode_domain.
11897
11898         * toolbar.c:
11899         * toolbar.c (Ftoolbar_specifier_p):
11900         move doc string to `make-toolbar-specifier'.
11901
11902         * window.c (window_unmap_subwindows_cache_mapper):
11903         *************************************************************
11904         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11905         HAVE BEEN GETTING.
11906         *************************************************************
11907
11908 2000-05-09  Andy Piper  <andy@xemacs.org>
11909
11910         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11911
11912         * window.c (Fset_window_configuration): reset the frame subwindow
11913         cache and re-initialize the window subwindow caches.
11914
11915         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11916
11917 2000-05-09  Ben Wing  <ben@xemacs.org>
11918
11919         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11920         DWORD.
11921
11922 2000-04-26  Mike Woolley  <mike@bulsara.com>
11923
11924         * ntheap.c: Changed recreate_heap to limit the amount reserved
11925         for the heap to that which is actually available. Also now
11926         displays a message box (with some dignostics) in the event that
11927         it still can't start.
11928
11929 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11930
11931         * callproc.c (Fold_call_process_internal): GCPRO path
11932
11933 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11934
11935         Patch by Bill Perry.
11936
11937         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11938         back data instead of #ifdef.
11939         (Fscrollbar_page_down): ditto.
11940
11941 2000-05-07  Ben Wing  <ben@xemacs.org>
11942
11943         * buffer.h:
11944         Kludge for defining Qmswindows_tstr.
11945
11946         * nt.c:
11947         * nt.c (open_input_file):
11948         * nt.c (open_output_file):
11949         * nt.c (rva_to_section):
11950         * nt.c (mswindows_executable_type):
11951         Move all memory-mapped-file routines here (some were in unexnt.c,
11952         which is bad because they are used by process-nt.c, and unexnt
11953         won't be around when portable dumping).  Synched the above routines
11954         with FSF 20.6.
11955
11956         * nt.h:
11957         Removed ifdef'd out bogus code.
11958         Fixed some prototypes.
11959
11960         * nt.h (file_data):
11961         * nt.h (OFFSET_TO_RVA):
11962         * nt.h (RVA_TO_OFFSET):
11963         * nt.h (RVA_TO_PTR):
11964         Moved the memory-mapped-file structures, macros and prototypes
11965         here, to parallel nt.c.  ntheap.h should really be removed
11966         entirely, and it's a non-portable-dumper specific file.
11967
11968         * ntheap.h (round_to_next):
11969         Moved the memory-mapped-file structures, macros and prototypes
11970         to nt.h.
11971
11972         * ntproc.c (compare_env):
11973         Moved rva_to_section and mswindows_executable_type to nt.c.
11974         Moved compare_env to process-nt.c.
11975         ntproc.c will die, one day.
11976
11977         * ntproc.c (sys_spawnve):
11978         Account for win32_ -> mswindows_.
11979
11980         * process-nt.c:
11981         * process-nt.c (struct nt_process_data):
11982         * process-nt.c (ensure_console_window_exists):
11983         * process-nt.c (compare_env):
11984         * process-nt.c (nt_create_process):
11985         * process-nt.c (nt_kill_process_by_pid):
11986         * process-nt.c (syms_of_process_nt):
11987         * process-nt.c (vars_of_process_nt):
11988         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11989         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11990         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11991         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11992         Move compare_env here from ntproc.c.
11993
11994         * process.c (Fprocess_send_region):
11995         Takes an optional fourth argument, BUFFER, which should fix some
11996         problems with call-process.
11997
11998         * syscommctrl.h:
11999         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12000
12001         * syswindows.h:
12002         Move ICC_BAR_CLASSES to syscommctrl.h.
12003         Add preliminary macros for MSWindows/Mule.  More to come.
12004
12005         * unexnt.c:
12006         * unexnt.c (unexec):
12007         open_output_file moved to nt.c.
12008
12009
12010 2000-05-05  Andy Piper  <andy@xemacs.org>
12011
12012         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12013         instance from the frame cache also since GC may catch up too late
12014         to make frame deletion sane.
12015
12016 2000-05-04  Andy Piper  <andy@xemacs.org>
12017
12018         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12019         (x_finalize_image_instance): ungcpro on deletion.
12020
12021         * glyphs.c (image_instantiator_format_create): give pointers a
12022         query geometry method so that the geometry is at least set.
12023
12024         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12025         initialize layouts if using widgets.
12026
12027 2000-05-03  Andy Piper  <andy@xemacs.org>
12028
12029         * nt.c: remove bogus reference to sysmmsystem.h
12030
12031         * gui-x.c (popup_selection_callback): fix no selection abort.
12032
12033 2000-05-02  Andy Piper  <andy@xemacs.org>
12034
12035         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12036         (mswindows_widget_instantiate): ditto.
12037
12038         * glyphs-widget.c (initialize_widget_image_instance): initialize
12039         children correctly.
12040         (widget_instantiate): cope with children and items in the same
12041         instance.
12042
12043         * glyphs.c (mark_image_instance): cope with children as a first
12044         class member.
12045         (image_instance_equal): ditto.
12046         (image_instance_hash): ditto.
12047         (image_instance_changed): ditto.
12048
12049 2000-04-30  Andy Piper  <andy@xemacs.org>
12050
12051         * glyphs.c (subwindow_query_geometry): new function. Return some
12052         defaults.
12053         (subwindow_instantiate): don't assign dimensions if none have been
12054         given.
12055         (image_instantiator_format_create): add subwindow_query_geometry.
12056         (print_image_instance): cope with layouts as widgets.
12057
12058 2000-04-29  Andy Piper  <andy@xemacs.org>
12059
12060         * frame.c (delete_frame_internal): call
12061         free_frame_subwindow_instance_cache so that all subwindows are
12062         finalized before their parent.
12063         (mark_frame): remove subwindow_cachels.
12064         (Fmake_frame): remove subwindow_cachel manipulation.
12065         (allocate_frame_core): subwindow_instance_cache is a weak list.
12066         (delete_frame_internal): set subwindow_instance_cache to nil.
12067
12068         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12069         finalization safe.
12070         (mswindows_finalize_image_instance): use the device
12071         not the domain as the domain may have died already.
12072
12073         * glyphs-x.c (x_finalize_image_instance): ditto.
12074         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12075         HEIGHT.
12076
12077         * redisplay-output.c (redisplay_unmap_subwindows): update for
12078         subwindow instance cache as a weak list.
12079         (redisplay_unmap_subwindows_maybe): ditto.
12080         (redisplay_unmap_subwindows_except_us): ditto.
12081
12082         * glyphs.c (unmap_subwindow): error checking will check the domain
12083         so don't deal with it here. Don't use cachels anymore.
12084         (map_subwindow): ditto.
12085         (update_subwindow_cachel_data): remove old accessor names.
12086         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12087         (Fresize_subwindow): don't update cachel.
12088         (mark_subwindow_cachels):
12089         (update_subwindow_cachel_data):
12090         (add_subwindow_cachel):
12091         (get_subwindow_cachel_index):
12092         (update_subwindow_cachel):
12093         (reset_subwindow_cachels):
12094         (mark_subwindow_cachels_as_not_updated): deleted.
12095         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12096         subwindow instance to the frame cache.
12097         (find_matching_subwindow): update for subwindow instance cache as
12098         a weak list.
12099         (update_widget_instances): ditto.
12100         (image_instance_type_to_mask):inlined.
12101         (free_frame_subwindow_instance_cache): new function. finalize all
12102         subwindows that are instantiated.
12103
12104         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12105         of cachel information.
12106         (IMAGE_INSTANCE_DISPLAY_X):
12107         (IMAGE_INSTANCE_DISPLAY_Y):
12108         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12109         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12110         (XIMAGE_INSTANCE_DISPLAY_X):
12111         (XIMAGE_INSTANCE_DISPLAY_Y):
12112         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12113         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12114         remove subwindow_cachel structure and function references.
12115         (image_instance_type_to_mask): inline from glyphs.c
12116
12117         * redisplay.c (redisplay_frame): remove subwindow_cachel
12118         references.
12119
12120         * frame.h (struct frame): remove subwindow_cachels.
12121         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12122
12123         * frameslots.h: add subwindow_instance_cache.
12124
12125         * window.c (replace_window): check subwindow cache of replacement.
12126         (window_unmap_subwindows_cache_mapper):
12127         (window_unmap_subwindows): new functions. Unmap all subwindows
12128         cached on this window.
12129         (mark_window_as_deleted): unmap all subwindows.
12130
12131 2000-04-27  Andy Piper  <andy@xemacs.org>
12132
12133         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12134
12135         * glyphs-widget.c (widget_layout): return something.
12136         (layout_layout): return something. Fail if not initialized.
12137         (layout_query_geometry): ditto.
12138         (image_instantiator_native_layout): new function. Initialized the
12139         native layout type.
12140         (widget_instantiate): don't do layout stuff here.
12141
12142         * glyphs.c (instantiate_image_instantiator): reorded calling or
12143         instantiate and post_instantiate with layout in between.
12144         (image_instance_layout): be more selective about deciding whether
12145         the layout has been done or not.
12146
12147         * glyphs.h (struct image_instantiator_methods): return a value
12148         from layout_method.
12149
12150 2000-04-26  Andy Piper  <andy@xemacs.org>
12151
12152         * glyphs.c (allocate_image_instance): make initial width and
12153         height unspecified. Set initialized to 0.
12154
12155         * syscommctrl.h new file. Encapsulates commctrl.h.
12156
12157         * syswindows.h new file. Encapsulates windows.h.
12158
12159         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12160         * nt.c: ditto.
12161         * console-msw.h: ditto.
12162
12163         * redisplay-tty.c (tty_output_display_block): remove layout references.
12164
12165         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12166         window handle rather than just the frame.
12167
12168         * glyphs.c (mark_image_instance): remove layout references.
12169         (print_image_instance): ditto.
12170         (image_instance_equal): ditto.
12171         (image_instance_hash): ditto.
12172         (decode_image_instance_type): ditto.
12173         (encode_image_instance_type): ditto.
12174         (image_instantiate): ditto.
12175         (allocate_glyph): ditto.
12176         (Fimage_instance_height): ditto.
12177         (Fimage_instance_width): ditto.
12178         (update_subwindow): ditto.
12179
12180         * redisplay-x.c (x_output_display_block): recode for layouts as
12181         widgets.
12182
12183         * redisplay-output.c (redisplay_output_layout): recode for layouts
12184         as widgets.
12185         (compare_runes): remove layout references.
12186
12187         * redisplay-msw.c (mswindows_output_display_block): recode for
12188         layouts as widgets.
12189
12190         * glyphs-widget.c (image_instantiator_layout): remove
12191         layout_possible_dest_types.
12192         (layout_possible_dest_types): deleted.
12193
12194         * glyphs.h (image_instance_type): remove layout references.
12195         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12196         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12197         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12198
12199 2000-04-25  Andy Piper  <andy@xemacs.org>
12200
12201         * glyphs-widget.c (image_instantiator_buttons):
12202         (image_instantiator_edit_fields):
12203         (image_instantiator_combo_box):
12204         (image_instantiator_scrollbar):
12205         (image_instantiator_progress_guage):
12206         (image_instantiator_tree_view):
12207         (image_instantiator_tab_control):
12208         (image_instantiator_labels):
12209         (image_instantiator_layout): call default post_instantiate method.
12210         (widget_post_instantiate): new function. Simply lays out the
12211         widgets.
12212
12213         * glyphs.h (struct image_instantiator_methods): add
12214         post_instantiate method.
12215
12216         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12217         method calls.
12218
12219 2000-04-23  Andy Piper  <andy@xemacs.org>
12220
12221         * glyphs.h (struct image_instantiator_methods): add
12222         decode_domain_method.
12223         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12224         derived from the domain.
12225         (IMAGE_INSTANCE_FRAME): new accessor.
12226         (XIMAGE_INSTANCE_FRAME): ditto.
12227
12228         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12229         instead of _SUBWINDOW_FRAME.
12230         (finalize_image_instance): ditto.
12231         (Fimage_instance_foreground): ditto.
12232         (Fimage_instance_background): ditto.
12233         (image_instantiate): ditto.
12234         (update_subwindow_cachel): ditto.
12235         (update_subwindow): ditto.
12236         (unmap_subwindow): ditto.
12237         (map_subwindow): ditto
12238         (subwindow_instantiate): ditto.
12239         * glyphs-msw.c (mswindows_update_widget): ditto.
12240         (mswindows_progress_gauge_instantiate): ditto.
12241         (mswindows_tab_control_update): ditto.
12242         * glyphs-x.c (x_update_widget): ditto.
12243         (x_widget_instantiate): ditto.
12244         (x_tab_control_instantiate): ditto.
12245         (x_tab_control_update): ditto.
12246         * event-msw.c (mswindows_wnd_proc): ditto
12247
12248         * glyphs-widget.c (image_instantiator_layout): use
12249         subwindow_decode_domain.
12250         (image_instantiator_buttons): ditto.
12251         (image_instantiator_edit_fields): ditto.
12252         (image_instantiator_combo_box): ditto.
12253         (image_instantiator_scrollbar): ditto.
12254         (image_instantiator_progress_guage): ditto.
12255         (image_instantiator_tree_view): ditto.
12256         (image_instantiator_tab_control): ditto.
12257         (image_instantiator_labels): ditto.
12258         (image_instantiator_layout): ditto.
12259
12260         * glyphs.c: add instance error checking to many functions.
12261         (instantiate_image_instantiator): decode device from cache_domain.
12262         (image_instantiate): partially rewrite by using
12263         decode_image_instantiator_domain to determine what domain the
12264         instance needs to be cached in.
12265         (decode_image_instantiator_domain): new function. Determine what
12266         domain the image needs to be cached in.
12267         (check_window_subwindow_cache): new error checking function.
12268         (check_instance_cache_mapper): ditto.
12269         (check_image_instance_structure): ditto.
12270         (subwindow_decode_domain): new function. Encodes a window as a
12271         subwindow's cache domain.
12272         (image_instantiator_format_create): use it for text and
12273         subwindows.
12274
12275 2000-04-21  Andy Piper  <andy@xemacs.org>
12276
12277         * glyphs.c (image_instance_device): new function.
12278         (image_instance_frame): new function.
12279         (image_instance_window): new function.
12280         (image_instance_live_p): new function.
12281
12282         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12283         cache to nil.
12284
12285         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12286         (IMAGE_INSTANCE_DOMAIN): new accessor.
12287         (XIMAGE_INSTANCE_DOMAIN): ditto.
12288
12289         * glyphs-x.c (x_finalize_image_instance): device->domain.
12290
12291         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12292         (mswindows_finalize_image_instance): ditto.
12293
12294         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12295         (gif_instantiate): ditto.
12296         (png_instantiate): ditto.
12297         (tiff_instantiate): ditto.
12298
12299         * glyphs.c (instantiate_image_instantiator): use domain rather
12300         than device.
12301         (mark_image_instance): device -> domain.
12302         (print_image_instance): ditto.
12303         (finalize_image_instance): ditto.
12304         (image_instance_equal): ditto.
12305         (allocate_image_instance): ditto.
12306         (Fcolorize_image_instance): ditto.
12307         (query_string_geometry): ditto.
12308         (image_instantiate): ditto
12309         (query_string_font): ditto.
12310         (image_instantiate): ditto.
12311         (update_subwindow): ditto.
12312         (unmap_subwindow): ditto.
12313         (map_subwindow): ditto.
12314         (subwindow_instantiate): ditto.
12315
12316         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12317         (DOMAIN_FRAME): ditto.
12318         (DOMAIN_WINDOW): ditto.
12319         (DOMAIN_LIVE_P): ditto.
12320         (XDOMAIN_DEVICE): ditto.
12321         (XDOMAIN_FRAME): ditto.
12322         (XDOMAIN_WINDOW): ditto.
12323
12324         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12325         a valid specifier domain.
12326
12327 2000-04-19  Andy Piper  <andy@xemacs.org>
12328
12329         * glyphs-widget.c (syms_of_glyphs_widget): remove
12330         widget-callback-current-channel.
12331         (vars_of_glyphs_widget): ditto.
12332         * glyphs.h: ditto
12333
12334         * gui.c (get_gui_callback): revert to previous behaviour.
12335
12336 2000-04-18  Andy Piper  <andy@xemacs.org>
12337
12338         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12339         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12340         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12341
12342         * glyphs.c (image_instance_equal): add margin_width.
12343         (image_instance_hash): ditto.
12344
12345         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12346         (layout_query_geometry): ditto.
12347         (layout_layout): ditto.
12348         (syms_of_glyphs_widget): add margin-width.
12349         (image_instantiator_layout): allow margin-width.
12350
12351         * glyphs.c (update_widget_instances): make a normal function.
12352         (syms_of_glyphs): remove Qupdate_widget_instances.
12353         * glyphs.h: ditto.
12354
12355         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12356         so that we don't corrupt ideas about the last event or
12357         command. Remove widget-callback-current-channel fiddling.
12358         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12359
12360 2000-05-01  Martin Buchholz <martin@xemacs.org>
12361
12362         * XEmacs 21.2.33 is released.
12363
12364 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12365
12366         * make-src-depend: Allow dots in header file name.
12367
12368 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12369
12370         * mule-charset.h (struct charset_lookup): Add
12371         next_allocated_1_byte_leading_byte and
12372         next_allocated_2_byte_leading_byte.
12373         * mule-charset.c: Move above two variables so that those values
12374         will be dumped.
12375
12376 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12377
12378         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12379         when string length is zero.
12380         (find_charsets_in_emchar_string): Ditto.
12381
12382 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12383
12384         * lisp.h: extern Qdialog and Qmenubar.
12385
12386         * gui-x.c: added events.h.
12387                 also fixed typo which made the file uncompilable.
12388
12389         * general.c: Added Qmenubar and Qdialog
12390
12391 2000-04-28  Ben Wing  <ben@xemacs.org>
12392
12393         * frame-msw.c (mswindows_init_frame_1):
12394         * frame-msw.c (mswindows_mark_frame):
12395         * event-msw.c (mswindows_enqueue_dispatch_event):
12396         * console-msw.h:
12397         * console-msw.h (struct mswindows_frame):
12398         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12399         there are now three hash tables for callbacks.
12400         mswindows_enqueue_dispatch_event is no longer static.
12401
12402         * dialog-x.c (maybe_run_dbox_text_callback):
12403         * dialog-x.c (dbox_descriptor_to_widget_value):
12404         switch to new cons3 form for callbacks.
12405
12406         * glyphs-msw.c (mswindows_register_gui_item):
12407         * glyphs-msw.c (mswindows_widget_instantiate):
12408         * glyphs-msw.c (add_tree_item):
12409         * glyphs-msw.c (add_tab_item):
12410         new image instance parameter, so it can be passed to callback-ex.
12411         respect :callback-ex as well as :callback.
12412
12413         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12414         add :callback-ex.
12415
12416         * glyphs.c (print_image_instance):
12417         prettify, e.g. now prints widget type.
12418
12419         * gui-x.h:
12420         certain funs have new image instance parameter.
12421
12422         * gui.c:
12423         * gui.c (get_gui_callback):
12424         * gui.c (gui_item_add_keyval_pair):
12425         * gui.c (gui_item_init):
12426         * gui.c (gui_add_item_keywords_to_plist):
12427         * gui.c (mark_gui_item):
12428         * gui.c (gui_item_hash):
12429         * gui.c (gui_item_equal):
12430         * gui.c (copy_gui_item):
12431         * gui.c (syms_of_gui):
12432         recognize callback-ex in a number of places.
12433         also, fix the annoying "can't get out of yes-no dialog" bug.
12434
12435         * gui.h:
12436         * gui.h (struct Lisp_Gui_Item):
12437         recognize callback-ex in a number of places.
12438
12439         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12440         new parameter in button_item_to_widget_value.
12441
12442         * glyphs-x.c (x_update_widget):
12443         * glyphs-x.c (x_button_instantiate):
12444         * glyphs-x.c (x_button_update):
12445         * glyphs-x.c (x_progress_gauge_instantiate):
12446         * glyphs-x.c (x_edit_field_instantiate):
12447         * glyphs-x.c (x_combo_box_instantiate):
12448         * glyphs-x.c (x_tab_control_instantiate):
12449         * glyphs-x.c (x_label_instantiate):
12450         new image instance parameter in various places.
12451
12452         * event-Xt.c:
12453         * event-Xt.c (enqueue_Xt_dispatch_event):
12454         this fun gets exported.
12455
12456         * gui-msw.c:
12457         * gui-msw.c (mswindows_handle_gui_wm_command):
12458         handle both :callback and :callback-ex, and generate our own
12459         event because it's one of the callback-ex arguments.
12460
12461         * gui-x.c:
12462         * gui-x.c (popup_selection_callback):
12463         handle both :callback and :callback-ex, and generate our own
12464         event because it's one of the callback-ex arguments.
12465         * gui-x.c (button_item_to_widget_value):
12466         * gui-x.c (gui_items_to_widget_values_1):
12467         * gui-x.c (gui_item_children_to_widget_values):
12468         * gui-x.c (gui_items_to_widget_values):
12469         new image instance parameter in various places.
12470
12471         * fns.c (Freplace_list):
12472         fix small typo in doc string.
12473
12474         * lisp.h:
12475         declare enqueue_Xt_dispatch_event.
12476
12477 2000-04-28  Ben Wing  <ben@xemacs.org>
12478
12479         * buffer.c:
12480         * buffer.c (Frecord_buffer):
12481         * buffer.c (syms_of_buffer):
12482         delete record-buffer-hook.
12483
12484         * fns.c:
12485         * fns.c (Freplace_list):
12486         * fns.c (syms_of_fns):
12487         new primitive replace-list.
12488
12489         * frameslots.h:
12490         slot for old buffer-alist.
12491
12492         * lisp.h:
12493         exfun replace-list.
12494
12495         * redisplay.c:
12496         * redisplay.c (redisplay_frame):
12497         * redisplay.c (syms_of_redisplay):
12498         * redisplay.c (vars_of_redisplay):
12499         new hook buffer-list-changed-hook.
12500         call it.
12501
12502 2000-04-27  Ben Wing  <ben@xemacs.org>
12503
12504         * extents.h: extern in_modeline_generation.
12505
12506         * redisplay.c (generate_formatted_string_db): set
12507         in_modeline_generation.
12508
12509         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12510         flags if in modeline generation.  otherwise frame-modified-tick
12511         is ticked far too often.
12512         Declare in_modeline_generation.
12513
12514 2000-04-26  Ben Wing  <ben@xemacs.org>
12515
12516         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12517         option.
12518         (vars_of_emacs): add quick-build as an error-checking option.
12519         A bit kludgy, but there doesn't seem much point in creating
12520         a real var for this.
12521
12522         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12523
12524 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12525
12526         * redisplay.h (struct display_line): Add a new variable,
12527         line_continuation.
12528
12529         * redisplay.c (create_text_block): Set dl->line_continuation if
12530         the line continues.
12531         (create_string_text_block): Ditto.
12532         (regenerate_window_incrementally): Use line_continuation instead
12533         of searching continuation glyph.
12534         (add_margin_runes): Call add_glyph_rune.
12535         (add_glyph_rune): Handle margin glyph.
12536
12537 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12538
12539         * filelock.c (fill_in_lock_file_name):
12540         ANSIfy.
12541         Check for IS_ANY_SEP instead of '/'.
12542         (lock_file_1):
12543         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12544         Never check errno without first seeing that system call failed.
12545         (unlock_file): Add GCPRO.
12546         (Flock_buffer): Fix docstring.
12547         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12548
12549 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12550
12551         * sysdep.c (get_pty_max_bytes):
12552         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12553         strings longer than 252 bytes.
12554
12555         * md5.c: Unconditionally include ANSI header <limits.h>
12556
12557         * glyphs-x.c (convert_EImage_to_XImage):
12558         * lisp-union.h (union Lisp_Object):
12559         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12560
12561 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12562
12563         * filelock.c (current_lock_owner): Remove unused variable o, p.
12564
12565 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12566
12567         * callint.c: Remove multiply defined symbol Qlet
12568         (syms_of_callint): ditto.
12569
12570 2000-04-14  Andy Piper  <andy@xemacs.org>
12571
12572         * general.c (syms_of_general): add last-command, this-command, let
12573         and funcall.
12574
12575         * lisp.h: declare various symbols.
12576
12577         * glyphs.h: declare Qwidget_callback_current_channel;
12578
12579         * glyphs-widget.c (syms_of_glyphs_widget): add
12580         Qgui_callback_current_channel.
12581         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12582
12583         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12584         widget-callback-current-channel when invoking the interactive
12585         arg. Also bind last-command and next-command when invoking the
12586         widget updates.
12587         * gui-x.c (popup_selection_callback): ditto.
12588
12589         * gui.c (get_gui_callback): massage args so that we are always
12590         calling eval. This allows us to add our own variable bindings
12591         outside.
12592
12593         * glyphs-x.c (x_button_instantiate): use
12594         gui_items_to_widget_values since this is GC safe.
12595         (x_progress_gauge_instantiate): ditto.
12596         (x_edit_field_instantiate): ditto.
12597         (x_label_instantiate): ditto.
12598
12599         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12600         (emacs_Xt_event_widget_focus_out): new function
12601         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12602         focus.
12603         (emacs_Xt_event_add_widget_actions): new function. add focus
12604         functions as actions.
12605         (init_event_Xt_late): use it.
12606
12607 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12608
12609         * event-stream.c (Fdispatch_event): Doc fix.
12610
12611 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12612
12613         * postgresql.c: Remove all references to PQsetenv*.
12614
12615         * postgresql.h: Remove references to PGsetenvHandler object.
12616         * lrecord.h (lrecord_type): Ditto.
12617
12618 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12619
12620         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12621         real_heigh and real_width members, and accessor macros for these.
12622
12623         * glyphs-msw.c (init_image_instance_geometry): New function.
12624         (init_image_instance_from_dibitmap): Use it.
12625         (mswindows_resource_instantiate): Use it.
12626         (init_image_instance_from_xbm_inline): Use it.
12627         (mswindows_initialize_image_instance_mask): Use real bitmap
12628         geometry.
12629         (mswindows_create_resized_bitmap): Ditto.
12630         (mswindows_create_resized_mask): Ditto.
12631
12632         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12633         and bitmap to their surface size.
12634
12635 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12636
12637         * process-unix.c (unix_send_process): Guard against process MIA
12638         after Faccept_process_output.
12639
12640 2000-04-11  Ben Wing  <ben@xemacs.org>
12641
12642         * eval.c (unbind_to_hairy): fix brokenness introduced by
12643         nanosecond speed improvements.
12644
12645 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12646
12647         * sunplay.c (init_device): To play sounds correctly, the device
12648         apparently needs to be initialized at least once by XEmacs.  Make
12649         it so.
12650
12651 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12652
12653         * redisplay.c (add_margin_runes): Add text image glyph
12654           handling.
12655
12656 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12657
12658         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12659         gcc is newer than 2.5.
12660
12661 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12662
12663         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12664
12665         * fns.c (size_bit_vector):
12666         * alloc.c (size_vector):
12667         (make_vector_internal):
12668         (make_bit_vector_internal):
12669         (sweep_bit_vectors_1):
12670         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12671
12672 2000-04-06  Andy Piper  <andy@xemacs.org>
12673
12674         * gmalloc.c (malloc): undo previous change.
12675         (malloc): ditto.
12676         (free): ditto.
12677         (realloc): ditto.
12678
12679 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12680
12681         * line-number.c (buffer_line_number): Revert to former version.
12682
12683 2000-04-06  Andy Piper  <andy@xemacs.org>
12684
12685         * gmalloc.c (malloc): add error checking.
12686         (malloc): ditto.
12687         (free): ditto.
12688         (realloc): ditto.
12689
12690         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12691         button_item_to_widget_value arg.
12692
12693         * glyphs-x.c (x_button_instantiate): add extra
12694         button_item_to_widget_value arg.
12695         (x_progress_gauge_instantiate): ditto.
12696         (x_edit_field_instantiate): ditto.
12697         (x_label_instantiate): ditto.
12698
12699         * gui-x.c (gui_items_to_widget_values_1): add extra
12700         button_item_to_widget_value arg.
12701         (button_item_to_widget_value): add extra menu_item_p arg.
12702
12703         * gui-x.h: change signature of button_item_to_widget_value.
12704
12705         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12706         button_item_to_widget_value arg.
12707
12708 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12709
12710         * buffer.h (struct buffer): auto_save_modified should be long.
12711
12712 2000-04-05  Andy Piper  <andy@xemacs.org>
12713
12714         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12715         type.
12716         (button_query_geometry): give a little more room so that athena
12717         buttons fit.
12718
12719 2000-04-05  Andy Piper  <andy@xemacs.org>
12720
12721         * faces.c (complex_vars_of_faces): The widget face should inherit
12722         the font of the gui-element face.
12723
12724 2000-04-04  Andy Piper  <andy@xemacs.org>
12725
12726         * glyphs-x.c (x_button_update): new function. unconditionally
12727         update a button's state when the instance is dirty.
12728         (image_instantiator_format_create_glyphs_x): add x_button_update.
12729         (x_widget_instantiate): remove old resize cruft.
12730
12731 2000-04-02  Andy Piper  <andy@xemacs.org>
12732
12733         * frame.c (change_frame_size_1): The introduction of gutters means
12734         that we need to allow 0 as a potential frame dimension.
12735
12736 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12737
12738         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12739         image glyph if allow_cursor.
12740         (add_hscroll_rune): Don't allow cursor to border glyph.
12741         (create_text_block): Ditto.
12742
12743         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12744         text not in buffer.
12745         (redisplay_output_layout): Call ensure_face_cachel_complete for
12746         text image glyph.
12747
12748
12749 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12750
12751         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12752
12753         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12754         not in buffer
12755
12756         * redisplay-tty.c (tty_output_display_block): Delete the routine
12757         for text image glyph
12758         * redisplay-x.c (x_output_display_block): ditto
12759         * redisplay-msw.c (mswindows_output_display_block): ditto
12760
12761 2000-02-02  Mike Alexander  <mta@arbortext.com>
12762
12763         Note: Some of these were committed by accident as part of other
12764         patches.
12765
12766         * regex.c (regex_compile): Avoid compiler warnings.
12767
12768         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12769
12770         * nt.h: Declare term_ntproc correctly.
12771
12772         * nt.c: Remove incorrect declaration of get_home_directory which
12773         is declared correctly in lisp.h.
12774
12775         * keymap.c (get_keyelt): Avoid compiler warnings.
12776         (raw_lookup_key_mapper): Avoid compiler warnings.
12777
12778         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12779
12780         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12781
12782         * filemode.c (mode_string): Avoid compiler warnings.
12783
12784         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12785         avoid warning.
12786
12787         * events-mod.h: Undef some things that winuser.h defines differently.
12788
12789         * data.c (Faset): Avoid compiler warnings.
12790
12791         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12792
12793 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12794
12795         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12796         Fall through to simple beep on error.
12797         Replace "extern" by real header file.
12798
12799         * linuxplay.c: Use nativesound.h
12800         (play_sound_data): Return error code. Be less verbose on error.
12801
12802         * sunplay.c: Use nativesound.h
12803         (play_sound_data): Return error code. Be less verbose on error.
12804
12805         * ntplay.c: Use nativesound.h
12806         (play_sound_data): Return fake error code
12807
12808         * sgiplay.c: Use nativesound.h
12809         (play_sound_data): Return error code
12810
12811         * hpplay.c: Use nativesound.h, partially implement
12812         new error code. Break compilation until finished.
12813         (play_sound_data): error code.
12814
12815         * nativesound.h (play_sound_file):
12816           (play_sound_data): Prototype in new header.
12817
12818 2000-03-31  Andy Piper  <andy@xemacs.org>
12819
12820         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12821         for toggle and radio buttons.
12822         (image_instantiator_buttons): use it.
12823
12824 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12825
12826         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12827         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12828         found. Scrollbar event probably belonged to some old config.
12829
12830 2000-03-31  Andy Piper  <andy@xemacs.org>
12831
12832         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12833         than 1.
12834         (initialize_widget_image_instance): default layout to
12835         LAYOUT_HORIZONTAL rather than 0.
12836         (widget_instantiate): reverse the item list at the end rather than
12837         every iteration.
12838         (layout_layout): re-code for the border text at the front of the
12839         item list rather than at the end.
12840         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12841         provided by the user.
12842         (widget_query_geometry): comment.
12843
12844 2000-03-30  Andy Piper  <andy@xemacs.org>
12845
12846         * glyphs-widget.c (image_instantiator_layout): allow standard
12847         widget keywords in layouts.
12848
12849         * gutter.c (output_gutter): cope with nil gutter contents.
12850
12851         * frame.c (Fset_frame_properties): add gutter docs.
12852
12853 2000-03-29  Andy Piper  <andy@xemacs.org>
12854
12855         * toolbar-msw.c (TBSTYLE_FLAT): add.
12856         (mswindows_output_toolbar): minor fiddling.
12857
12858 2000-03-29  Andy Piper  <andy@xemacs.org>
12859
12860         * gutter.c (output_gutter): force gutter size recalculation if
12861         what we are trying to display won't fit.
12862         (update_gutter_geometry): new function. A per-gutter version of
12863         update_frame_gutter_geometry.
12864         (update_frame_gutter_geometry): use it.
12865         (redraw_exposed_gutter): add extra debugging output.
12866
12867 2000-03-28  Mike Alexander  <mta@arbortext.com>
12868
12869         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12870         (pdump_file_unmap): Implement it on Windows
12871         (pdump_file_get): Save alocated handles for pdump_file_unmap
12872
12873 2000-03-28  Andy Piper  <andy@xemacs.org>
12874
12875         * gui.c (get_gui_callback): treat Quit specially.
12876
12877 2000-03-27  Andy Piper  <andy@xemacs.org>
12878
12879         * glyphs.c (image_instantiate): be careful to check in the same
12880         way we assigned.
12881
12882 2000-03-27  Didier Verna  <didier@xemacs.org>
12883
12884         * config.h.in: define the proper SMART_INCLUDE macro.
12885         handle renaming of `foo_h_path' to `foo_h_file'.
12886
12887         * database.c: ditto.
12888
12889         * emacs.c: ditto.
12890
12891         * linuxplay.c: ditto.
12892
12893         * terminfo.c: ditto.
12894
12895         * tooltalk.h: ditto.
12896
12897 2000-03-27  Andy Piper  <andy@xemacs.org>
12898
12899         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12900         gets updated whenever the face might have changed.
12901
12902 2000-03-26  Mike Alexander  <mta@arbortext.com>
12903
12904         * dumper.c (pdump_resource_free): Fix the comment.
12905
12906 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12907
12908         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12909
12910 2000-03-22  Mike Alexander  <mta@arbortext.com>
12911
12912         * dumper.c: Include Windows headers on Windows
12913         (pdump_resource_free): Add a body to the function
12914         (pdump_load): exe_name -> exe_path and add some comments.
12915
12916 2000-03-25  Mike Alexander  <mta@arbortext.com>
12917
12918         * gui.c (copy_gui_item_tree): Return a value in all cases
12919
12920 2000-03-21  Didier Verna  <didier@xemacs.org>
12921
12922         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12923         lwlib/config.h.in.
12924         (SMART_INCLUDE): new macro.
12925         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12926         the proper location.
12927
12928         * postgresql.c: use it.
12929
12930         * inline.c: ditto.
12931
12932 2000-03-24  Andy Piper  <andy@xemacs.org>
12933
12934         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12935         do this.
12936
12937 2000-03-24  Andy Piper  <andy@xemacs.org>
12938
12939         * redisplay-output.c (compare_runes): use image_instance_changed
12940         to detect changes. Do not depend on glyphs_changed, only depend on
12941         dirtiness.
12942          (redisplay_output_layout): add debug messages.
12943         (compare_runes): ditto.
12944
12945         * glyphs.h: declare new functions.
12946         (struct Lisp_Image_Instance): remove percent and associated
12947         accessors.
12948
12949         * gui.h: declare new copying functions.
12950
12951         * gui.c (copy_gui_item_tree): new function.
12952         (copy_gui_item): new function.
12953         (gui_item_id_hash): revert to standard hash.
12954         (gui_item_hash): ditto.
12955         (gui_item_hash_internal): deleted.
12956         (mark_gui_item): mark value.
12957         (gui_item_add_keyval_pair): add value.
12958         (gui_item_init): ditto.
12959         (gui_add_item_keywords_to_plist): ditto.
12960         (gui_item_equal): ditto.
12961         (syms_of_gui): add Q_value.
12962
12963         * glyphs-x.c (x_progress_gauge_update): use pending items and
12964         value for setting the state.
12965         (x_update_widget): don't set items from pending here.
12966
12967         * glyphs-widget.c (update_widget): update items here.
12968         (progress_gauge_set_property): use items for storing value. Put
12969         new value in pending items.
12970
12971         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12972         items for new value. Convert percent -> value.
12973         (mswindows_tab_control_update): don't update items here.
12974
12975         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12976         (update_subwindow): ditto.
12977         (image_instance_changed): new function. Compare hash values and
12978         past and present widget items.
12979         (image_instantiate): We more careful about where we instantiate
12980         things.
12981         (image_instantiate): add error checking.
12982
12983         * gutter.c (syms_of_gutter): use -hook.
12984
12985 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12986
12987         * console-tty.c (Fset_console_tty_input_coding_system): Use
12988         Qkeyboard.
12989         (Fset_console_tty_output_coding_system): Use Qterminal.
12990         (tty_init_console): Use Qkeyboard and Qterminal.
12991
12992 2000-03-21  Ben Wing  <ben@xemacs.org>
12993
12994         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12995         From Mike Alexander <mta@arbortext.com>.
12996
12997 2000-03-21  Ben Wing  <ben@xemacs.org>
12998
12999         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13000         process brokenness.  Proper implementation to come.
13001         * callproc.c:
13002         Rename call-process-internal to old-call-process-internal.
13003         New impl. in process.el.
13004
13005 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13006
13007         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13008
13009 2000-03-20  Andy Piper  <andy@xemacs.org>
13010
13011         * glyphs.c (full_list_hash): make hashes of the same elements in
13012         different orders return different values.
13013
13014 2000-03-20  Martin Buchholz <martin@xemacs.org>
13015
13016         * XEmacs 21.2.32 is released.
13017
13018 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13019
13020         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13021         (DFC_MALLOC_USE_CONVERTED_DATA):
13022         Add aliasing-safe casts to allow use with char* or unsigned char*
13023         lvalues.
13024
13025         * eldap.c (Fldap_open):
13026         (Fldap_search_basic):
13027         (Fldap_add):
13028         (Fldap_modify):
13029         Make C++-compilable.
13030         Make sure GCPRO'ed variables are initialized.
13031         Use temp variables to avoid repeated calls to Flength.
13032
13033 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13034
13035         * sysfile.h:
13036         Make sure PATH_MAX is always defined.
13037         Include limits.h for PATH_MAX.
13038         Deprecate use of MAXPATHLEN.
13039
13040 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13041
13042         * emacs.c: Add reinit_vars_of_fileio.
13043         * symsinit.h: Add reinit_vars_of_fileio.
13044         * fileio.c (reinit_vars_of_fileio): New.
13045         * fileio.c (Fmake_temp_name):
13046         Initialize temp_name random number from microseconds to make
13047         collisions even less likely.  Initialize always at process startup
13048         time.  (make-temp-name) used to return the same file name twice in
13049         a row when PDUMP.
13050         Random stylistic fiddling.
13051         Comment fixes.
13052
13053 2000-03-20  Andy Piper  <andy@xemacs.org>
13054
13055         * glyphs.c (image_instantiate): allow text glyphs to be
13056         instantiated in the minibuffer window.
13057
13058 2000-03-19  Andy Piper  <andy@xemacs.org>
13059
13060         * glyphs.c (image_instance_hash): be careful about which items we
13061         hash on.
13062
13063         * glyphs-widget.c (tab_control_set_property): record into pending
13064         items rather than the actual items.
13065
13066         * glyphs-x.c (x_update_widget): use pending items to update with.
13067
13068         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13069         to update with.
13070
13071         * glyphs.c (mark_image_instance): mark pending items.
13072
13073         * window.c (Fset_window_configuration): record the buffer.
13074         (Fselect_window): totally revert previous change which breaks many
13075         things.
13076
13077 2000-03-18  Andy Piper  <andy@xemacs.org>
13078
13079         * glyphs-msw.c (mswindows_tab_control_update): force selected
13080         item.
13081
13082         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13083         window domain cache, otherwise we get inconsistencies at
13084         startup. There is something fishy at startup which can lead to the
13085         minibuffer being the selected window when the gutter content is
13086         instantiated.
13087
13088         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13089         gcpros.
13090         (parse_gui_item_tree_children): ditto.
13091         (parse_gui_item_tree_item): ditto.
13092
13093         * glyphs.c (Fupdate_widget_instances): return something.
13094
13095 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13096
13097         * window.c (Fselect_window): Undo 2000-03-17 change.
13098
13099 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13100
13101         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13102         against v7.0 libraries.  Insta-coredump city until the postgres
13103         folks fix it.
13104
13105 2000-03-17  Andy Piper  <andy@xemacs.org>
13106
13107         * faces.c (complex_vars_of_faces): don't give the widget face an
13108         inherited background pixmap.
13109
13110         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13111         selected item.
13112
13113         * event-stream.c (Fdispatch_non_command_events): return something.
13114
13115         * gutter.c (output_gutter): use widget face.
13116         (clear_gutter): ditto.
13117
13118         * NEWS: adjust again.
13119
13120         * window.c (Fselect_window): make sure this runs to completion to
13121         avoid oddities with Fset_window_configuration.
13122         (Fcurrent_window_configuration): in general do not save the
13123         minibuffer as the selected window.
13124
13125         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13126
13127 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13128
13129         * emacs.c (Frunning_temacs_p): Revert previous patch.
13130         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13131
13132 2000-03-16  Andy Piper  <andy@xemacs.org>
13133
13134         * glyphs-x.c (x_tab_control_update): if no widget values then
13135         return.
13136
13137         * NEWS: update for new features.
13138
13139         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13140         synthetic event to the native system.
13141         (reinit_vars_of_event_Xt): set force_event_pending to
13142         emacs_Xt_force_event_pending.
13143
13144         * events.h (struct event_stream): add force_event_pending.
13145
13146         * specifier.c (recompute_one_cached_specifier_in_window): add
13147         comment.
13148
13149         * redisplay.c (redisplay_frame): don't call
13150         update_frame_subwindows. Reset subwindow cachels when
13151         subwindows_changed, removing this was an optimization too far.
13152
13153         * redisplay-output.c (compare_runes): reorganize so that we catch
13154         glyph changes when we want them. Set optimize_output when this
13155         would help layouts.
13156         (redisplay_output_layout): remove frame_really_changed, use
13157         optimize_output instead.
13158
13159         * redisplay-msw.c (mswindows_output_display_block): reset
13160         optimize_output after outputting a glyph.
13161         * redisplay-x.c (x_output_display_block): ditto.
13162         * redisplay-tty.c (tty_output_display_block): ditto.
13163
13164         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13165         functions.
13166         (gutter_specs_changed): do specific gutter positions.
13167         (top_gutter_specs_changed): new function. Only update the
13168         specified gutter specs.
13169         (bottom_gutter_specs_changed): ditto.
13170         (left_gutter_specs_changed): ditto.
13171         (right_gutter_specs_changed): ditto.
13172
13173         * gui.c (gui_item_hash_internal): new function, does a real hash.
13174         (gui_item_id_hash): use it.
13175         (gui_item_hash): hash the eval'ed gui_item.
13176
13177         * gui-x.c (popup_selection_callback): send an eval event to call
13178         Fupdate_widget_instances.
13179
13180         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13181         to call Fupdate_widget_instances.
13182
13183         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13184         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13185
13186         * glyphs.c: (update_frame_subwindows): deleted.
13187         (Fupdate_widget_instances): new function for updating the dirty
13188         state of widgets that might have changed.
13189         (syms_of_glyphs): add Qupdate_widget_instances.
13190         (full_list_hash): hash a list completely.
13191         (image_instance_hash): use it for items and properties.
13192
13193         * frame-msw.c (mswindows_size_frame_internal): remove unused
13194         variable.
13195
13196         * faces.h (struct face_cachel): fix comment.
13197
13198         * event-stream.c (Fdispatch_non_command_events): new
13199         function. Process non-command events, forcing an event cycle
13200         beforehand.
13201         (syms_of_event_stream): declare.
13202         (event_stream_force_event_pending): new function. Force an event
13203         on the native event queue so that an event cycle will occur next
13204         time we check.
13205
13206         * event-msw.c:
13207         (struct ntpipe_shove_stream):
13208         (mswindows_enqueue_dispatch_event):
13209         (mswindows_dequeue_dispatch_event):
13210         (mswindows_cancel_dispatch_event):
13211         (mswindows_pump_outstanding_events):
13212         (mswindows_drain_windows_queue):
13213         (mswindows_handle_paint):
13214         (mswindows_wnd_proc):
13215         (mswindows_key_to_emacs_keysym):
13216         (get_process_input_waitable):
13217         (emacs_mswindows_delete_stream_pair): re-indent file.
13218         (mswindows_need_event): do not process further fds if the windows
13219         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13220         fixes the 100% cpu problem.
13221         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13222
13223 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13224
13225         * alloc.h: New.
13226         * dumper.h: New.
13227         * dumper.c: New.
13228
13229         * emacs.c: Moved dump file searching to dumper.c.
13230         (Frunning_temacs_p): Fixed.
13231
13232         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13233         last_lrecord_type_index_assigned.
13234
13235 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13236
13237         * symsinit.h: Added reinit parameter to init_console_stream
13238         declaration.
13239
13240         * lisp.h: Added file parameter to pdump_load declaration.
13241
13242         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13243         support.  Added dump file searching.
13244
13245         * config.h.in: Added EMACS_PROGNAME.
13246
13247         * console-stream.c (init_console_stream): Fix reinitialisation
13248         when running from temacs.
13249
13250         * alloc.c (pdump): Add id support.
13251         (pdump_load): Add file parameter and signature/id support.
13252
13253         * Makefile.in.in: Add full pdump support.
13254
13255 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13256
13257         * postgresql.c: Update documentation to reflect latest code
13258         status.
13259         (print_result): Show tuple counts in printed representation when
13260         appropriate.
13261         (Fpq_put_nbytes): MULE-ize.
13262         (Fpq_get_line_async): Ditto.
13263
13264 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13265
13266         * postgresql.c (Fpq_lo_import): Fix return value.
13267         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13268
13269 2000-03-13  Ben Wing  <ben@xemacs.org>
13270
13271         * alloc.c (pdump_load):
13272         Fix compile warning under mswin.
13273
13274 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13275
13276         * postgresql.c: Mule-ization, bug fixes.
13277         Use PG_CODING to encapsulate coding system name changes.
13278         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13279         (pg-coding-system): Create.
13280
13281         (Fpq_conn_defaults): Mule-ize.
13282         (Fpq_connectdb): Mule-ize & bug fix.
13283         (Fpq_connect_start): Mule-ize.
13284         (Fpq_set_client_encoding): Mule-ize.
13285         (Fpq_finish): Document `DEAD' connection status.
13286         (Fpq_clear): Ditto.
13287         (Fpq_pgconn): Mule-ize.
13288         (Fpq_exec): Mule-ize & bug fix.
13289         (Fpq_send_query): Ditto.
13290         (Fpq_get_result): Ditto.
13291         (Fpq_res_status): Mule-ize.
13292         (Fpq_result_error_message): Mule-ize.
13293         (Fpq_ntuples): fix comments.
13294         (Fpq_fname): Mule-ize.
13295         (Fpq_fnumber): Mule-ize.
13296         (Fpq_ftype): fix comments.
13297         (Fpq_get_value): Mule-ize.
13298         (Fpq_cmd_status): Ditto.
13299         (Fpq_cmd_tuples): Ditto.
13300         (Fpq_oid_value): Ditto.
13301         (Fpq_notifies): Ditto.
13302         (Fpq_lo_import): Ditto.
13303         (Fpq_lo_export): Ditto.
13304         (Fpq_get_line): Ditto.
13305         (Fpq_put_line): Mule-ize and bug fix.
13306         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13307
13308 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13309
13310         * postgresql.c (vars_of_postgresql): Mule-ize.
13311         (Fpq_conn_defaults): Ditto.
13312
13313 2000-03-12  Ben Wing  <ben@xemacs.org>
13314
13315         * alloc.c (Fmake_byte_code):
13316         * alloc.c (debug_string_purity_print):
13317         * alloc.c (pdump_backtrace):
13318         * alloc.c (pdump_get_indirect_count):
13319         * alloc.c (pdump_register_sub):
13320         * alloc.c (pdump_register_object):
13321         * alloc.c (pdump_register_struct):
13322         * alloc.c (pdump_dump_data):
13323         * alloc.c (pdump_reloc_one):
13324         Minor cleanups.
13325
13326         * console-msw.c:
13327         * console-msw.c (GetConsoleHwnd):
13328         * console-msw.c (msw_hide_console):
13329         * console-msw.c (msw_show_console):
13330         * console-msw.c (msw_ensure_console_buffered):
13331         * console-msw.c (msw_output_console_string):
13332         * console-msw.c (console_type_create_mswindows):
13333
13334         a) Added functions to manipulate the console window for use with
13335         shell support.
13336
13337         b) Added support for writing text to the console, which is now
13338         used under Windows when xemacs is not being run non-interactively,
13339         to write text that would otherwise be destined for stdout because
13340         under these circumstances, text written to stdout tends to
13341         disappear and not be seen.
13342
13343         * console-msw.h:
13344         * event-Xt.c:
13345         * event-Xt.c (x_event_to_emacs_event):
13346         * event-Xt.c (describe_event_window):
13347         * events-mod.h (XEMACS_MOD_CONTROL):
13348         * events.c:
13349         * events.c (Fmake_event):
13350         * events.c (character_to_event):
13351         * events.c (event_to_character):
13352         * events.c (format_event_object):
13353         * events.c (Fevent_modifiers):
13354         * events.h:
13355         * events.h (struct key_data):
13356         * events.h (struct button_data):
13357         * events.h (struct misc_user_data):
13358         * frame-x.c (Fcde_start_drag_internal):
13359         * frame-x.c (Foffix_start_drag_internal):
13360         * gpmevent.c (Freceive_gpm_event):
13361         * keymap.c:
13362         * keymap.c (bucky_sym_to_bucky_bit):
13363         * keymap.c (control_meta_superify):
13364         * keymap.c (make_key_description):
13365         * keymap.c (keymap_lookup_directly):
13366         * keymap.c (create_bucky_submap):
13367         * keymap.c (keymap_store):
13368         * keymap.c (define_key_check_and_coerce_keysym):
13369         * keymap.c (define_key_parser):
13370         * keymap.c (define_key_alternate_name):
13371         * keymap.c (Fdefine_key):
13372         * keymap.c (raw_lookup_key_mapper):
13373         * keymap.c (struct map_keymap_unsorted_closure):
13374         * keymap.c (map_keymap_unsorted_mapper):
13375         * keymap.c (map_keymap_sort_predicate):
13376         * keymap.c (map_keymap_sorted):
13377         * keymap.c (accessible_keymaps_mapper_1):
13378         * keymap.c (where_is_recursive_mapper):
13379         * keymap.c (describe_map_mapper):
13380         * keymap.c (describe_map_sort_predicate):
13381         * keymap.c (describe_map):
13382         * keymap.c (complex_vars_of_keymap):
13383         And a number of other files, the key modifier preprocessor
13384         constants that xemacs uses have names that conflict with constants
13385         defined under MS Windows for other purposes, so they were renamed
13386         to begin with the prefix XEMACS_. The variables that hold such
13387         modifiers were changed to consistently be of type int to fix
13388         various compile warnings.
13389
13390         * console.c (complex_vars_of_console):
13391         * device.c:
13392         * device-msw.c:
13393         * device-msw.c (mswindows_finish_init_device):
13394         * device-msw.c (msw_get_workspace_coords):
13395         * device-msw.c (mswindows_device_system_metrics):
13396         and various other files, added support for a new
13397         device property called offset-workspace which returns the position
13398         of the upper left corner of the workspace area and goes along with
13399         the existing size-workspace property.
13400
13401         * dialog-msw.c:
13402         * dialog-msw.c (push_bufbyte_string_as_unicode):
13403         * dialog-msw.c (mswindows_popup_dialog_box):
13404         Added support for XEmacs-style accelerator specifications in
13405         button text.  Note: I didn't add support for this under X Windows,
13406         and somebody needs to do this.
13407
13408         * dialog.c:
13409         * dialog.c (Fpopup_dialog_box):
13410         Documented the support for accelerators that was just mentioned.
13411
13412         editfns.c (get_home_directory): Changed behavior under Windows
13413         when HOME not defined; former behavior was irretrievably broken.
13414
13415         * emacs.c:
13416         * emacs.c (main_1):
13417         * emacs.c (main):
13418         * minibuf.c (clear_echo_area_internal):
13419         * minibuf.c (echo_area_append):
13420         * print.c:
13421         * print.c (std_handle_out_external):
13422         * print.c (std_handle_out_va):
13423         * print.c (fatal):
13424         * print.c (write_string_to_stdio_stream):
13425         * print.c (output_string):
13426         * print.c (debug_print):
13427         * print.c (debug_backtrace):
13428         * print.c (debug_short_backtrace):
13429         Cleaned up the code that prints text to stdout so that this can be
13430         changed to output into a console window instead under MS Windows,
13431         as described above.
13432
13433         * eval.c:
13434         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13435         * eval.c (internal_catch):
13436         * eval.c (unwind_to_catch):
13437         * eval.c (throw_or_bomb_out):
13438         * eval.c (condition_case_1):
13439         * eval.c (signal_1):
13440         * eval.c (check_error_state_sanity):
13441         * eval.c (call_with_suspended_errors_1):
13442         * eval.c (call_with_suspended_errors):
13443         * eval.c (reinit_vars_of_eval):
13444         Added code to catch throw loops and check for a pesky bug that may
13445         be gone now.
13446
13447         * event-msw.c:
13448         * event-msw.c (key_needs_default_processing_p):
13449         * event-msw.c (mswindows_wnd_proc):
13450         * event-msw.c (mswindows_modifier_state):
13451         * event-msw.c (emacs_mswindows_quit_p):
13452         * event-msw.c (vars_of_event_mswindows):
13453         a) Added support for using the alt key to select menu items as is
13454         standard under MS Windows.  This is controlled using the variable
13455         menu-accelerator-enabled, just like under X Windows.  There is an
13456         option on the options menu to turn this support on.  I really
13457         think that it should be on by default under Windows, but I'm not
13458         going to make this change yet.
13459
13460         b)  Added support for dynamic display size changes under Windows.
13461
13462         * event-stream.c:
13463         * event-stream.c (maybe_echo_keys):
13464         * event-stream.c (Fnext_event):
13465         * event-stream.c (command_builder_find_leaf):
13466         * event-stream.c (lookup_command_event):
13467         * event-stream.c (execute_command_event):
13468         * event-stream.c (pre_command_hook):
13469         * event-stream.c (post_command_hook):
13470         * event-stream.c (syms_of_event_stream):
13471         * event-stream.c (vars_of_event_stream):
13472         * event-stream.c (complex_vars_of_event_stream):
13473         * events.h (struct command_builder):
13474
13475         a) Tried to clean up a little bit the horribly written x-specific
13476         accelerator code that crept into this file.  I moved this code
13477         into menubar-x.c where it belongs. I also needed to move the
13478         command builder structure into the file events.h because it is
13479         accessed directly by this accelerator code.  What I didn't do, but
13480         which should be done at some point, is to properly abstract this
13481         code using device methods instead of the kludgy way that it
13482         currently hooks into the event code.
13483
13484         b) Added the lisp variables this-command-properties and
13485         last-command- properties, which should be used to synchronize two
13486         adjacent commands in preference to playing games with the variable
13487         this-command, which is typically what happens.
13488
13489         c) Added some slightly nasty code to hook into the lisp support
13490         for shifted- motion-key selection.  This is actually necessary for
13491         somewhat complicated reasons, which are described in
13492         simple.el. (NB: I think the proper thing would be to have the code
13493         that calls the pre and post command hooks also call out to generic
13494         lisp functions in simple.el, where all built-in stuff could be
13495         added.  I will think about this more.)
13496
13497         * event-unixoid.c (poll_fds_for_input):
13498         * lread.c (readchar):
13499         * redisplay-tty.c (tty_clear_frame):
13500         * redisplay-x.c (x_get_gc):
13501         * signal.c (interrupt_signal):
13502         And a whole bunch of other files: fixed up places that printed
13503         directly to stderr to instead call the function stderr_out so that
13504         the changes I made under Windows work correctly.
13505
13506         * filemode.c (mode_string):
13507         Warning fixes.
13508
13509         * frame-msw.c:
13510         * frame-msw.c (mswindows_size_frame_internal):
13511         Fixed the computation of frame size and position to keep the frame
13512         within the workspace area, rather than within the physical
13513         dimensions of the screen, so that the frame doesn't overlap window
13514         manager decorations, such as the start menu and toolbar, typically
13515         at the bottom of the screen.
13516
13517         * frame.c (vars_of_frame):
13518         Changed the default frame title format under MS Windows to consist
13519         of buffername-XEmacs, which is standard under MS Windows.  I think
13520         it might be a good idea to change this everywhere because I think
13521         it is superior to the current frame title format, but this is the
13522         kind of change that is likely to cause some people to get annoyed,
13523         so I'm not making it.
13524
13525         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13526
13527         * gui-msw.c (mswindows_handle_gui_wm_command):
13528         Fixed compile warnings.
13529
13530         * gui-x.c:
13531         * gui-x.c (strdup_and_add_accel):
13532         * gui-x.c (button_item_to_widget_value):
13533         * gui-x.h:
13534         Added code to automatically put an accelerator onto the beginning
13535         of menu items that don't have one as is now the standard, and is
13536         described more later.  Also fixed things so that the menu item
13537         name can be an evaluated expression, again a new standard.
13538
13539         * gui.c:
13540         * gui.c (gui_item_add_keyval_pair):
13541         * gui.c (make_gui_item_from_keywords_internal):
13542         * gui.c (gui_add_item_keywords_to_plist):
13543         * gui.c (gui_item_accelerator):
13544         * gui.c (gui_name_accelerator):
13545         * gui.c (gui_item_included_p):
13546         * gui.c (gui_item_display_flush_left):
13547         * gui.c (gui_item_display_flush_right):
13548         * gui.c (parse_gui_item_tree_item):
13549         * gui.c (parse_gui_item_tree_children):
13550         * gui.c (parse_gui_item_tree_list):
13551         Mule-ized.  Cleanup.  GCPRO addition.
13552
13553         * line-number.c (buffer_line_number):
13554         * lisp.h:
13555         * lisp.h (EMACS_INT_MAX):
13556         Added the manifest constant EMACS_INT_MIN corresponding to the
13557         existing constant EMACS_INT_MAX.  This is partially to fix compile
13558         warnings under Windows, and partly for cleanliness.
13559
13560         * menubar-msw.c:
13561         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13562         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13563         * menubar-msw.c (displayable_menu_item):
13564         * menubar-msw.c (populate_menu_add_item):
13565         * menubar-msw.c (populate_or_checksum_helper):
13566         * menubar-msw.c (populate_menu):
13567         * menubar-msw.c (update_frame_menubar_maybe):
13568         * menubar-msw.c (prune_menubar):
13569         * menubar-msw.c (msw_char_is_accelerator):
13570         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13571         * menubar-msw.c (mswindows_handle_wm_command):
13572         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13573         * menubar-msw.c (mswindows_handle_wm_initmenu):
13574         * menubar-msw.c (mswindows_update_frame_menubars):
13575         * menubar-msw.c (mswindows_free_frame_menubars):
13576         * menubar-msw.c (mswindows_popup_menu):
13577         Fixed a bug in handling accelerators where an extra character
13578         would be displayed in the menu item.  Also generalized the
13579         function displayable_menu_item because it is now used by the
13580         dialog box code as well.  And finally, added code in the functions
13581         that create the menubar to extract a list of accelerators for the
13582         top level menubar, which is used in the event code to determine
13583         whether a particular alt-key combination should be used to invoke
13584         a menu item, or should be passed through to access the standard
13585         XEmacs keymap binding for this key combination.
13586
13587         Much needed GCPROing.
13588
13589         * menubar-x.c:
13590         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13591         * menubar-x.c (menu_item_descriptor_to_widget_value):
13592         * menubar-x.c (restore_in_menu_callback):
13593         * menubar-x.c (x_popup_menu):
13594         * menubar-x.c (menu_move_up):
13595         * menubar-x.c (menu_move_down):
13596         * menubar-x.c (menu_move_left):
13597         * menubar-x.c (menu_move_right):
13598         * menubar-x.c (menu_select_item):
13599         * menubar-x.c (command_builder_operate_menu_accelerator):
13600         * menubar-x.c (menu_accelerator_junk_on_error):
13601         * menubar-x.c (command_builder_find_menu_accelerator):
13602         * menubar-x.c (Faccelerate_menu):
13603         * menubar.h:
13604         Moved a whole bunch of code here that was previously in
13605         event-stream.c as described above.  There is also code connected
13606         to the new standard of adding an accelerator to the beginning of
13607         menu items that don't have one as described above and below.
13608
13609         * menubar.c:
13610         * menubar.c (menu_parse_submenu_keywords):
13611         * menubar.c (Fmenu_find_real_submenu):
13612         * menubar.c (Fnormalize_menu_item_name):
13613         * menubar.c (syms_of_menubar):
13614         * menubar.c (vars_of_menubar):
13615         * menubar.c (complex_vars_of_menubar):
13616
13617         a) Cleaned up a bunch of documentation and improved it.
13618
13619         b) XEmacs now automatically adds an accelerator onto the beginning
13620         of any menu items that don't have one.  I did this because there
13621         will inevitably be some menu items on the main menubar that don't
13622         have accelerators on them because the package that adds that
13623         particular menu item hasn't yet been fixed up to have accelerators
13624         in them and it looked rather strange to have some items with and
13625         some items without accelerators, especially since even in items
13626         without accelerators, you can, at least under windows, still
13627         access the item through an accelerator corresponding to the first
13628         character in the item's name.  If people don't like this behavior,
13629         I can add a variable to turn it off optionally, but I'm not sure
13630         this is a good idea because we really do need to have accelerators
13631         on all of the menu items, and if a package doesn't like the
13632         accelerators being put on the first character, then it should put
13633         the accelerators where they belong.
13634
13635         c) I made a behavior change, which is that the descriptor that
13636         specifies the text of the menu item, which formerly was just a
13637         string, can now also be an evaluated expression.  This makes this
13638         descriptor parallel with all of the others, which could also be
13639         evaluated expressions.  This also obviates the need for the
13640         keyword :label, which was previously listed in the documentation
13641         as unimplemented, and which was for the same purpose.
13642
13643         d) GCPROing.
13644
13645         * ntproc.c:
13646         * ntproc.c (new_child):
13647         * ntproc.c (sys_spawnve):
13648         * ntproc.c (find_child_console):
13649         * ntproc.c (sys_kill):
13650         Fixed compile warnings.  By the way, this file should really go
13651         away entirely, and this will happen as soon as Kirill makes his
13652         final round of process cleanups, which affect the function
13653         call-process.
13654
13655         * process-nt.c:
13656         * process-nt.c (struct nt_process_data):
13657         * process-nt.c (find_process_from_pid):
13658         * process-nt.c (send_signal_the_nt_way):
13659         * process-nt.c (enable_child_signals):
13660         * process-nt.c (find_child_console):
13661         * process-nt.c (send_signal_the_95_way):
13662         * process-nt.c (nt_finalize_process_data):
13663         * process-nt.c (ensure_console_window_exists):
13664         * process-nt.c (nt_create_process):
13665         * process-nt.c (nt_kill_child_process):
13666         * process-nt.c (nt_kill_process_by_pid):
13667         * process-nt.c (nt_open_network_stream):
13668         * process-nt.c (vars_of_process_nt):
13669         Copied over code from Emacs 20.5 to correctly send signals to sub-
13670         processes under Windows 95.  Also added code to automatically
13671         create and hide console window when a sub-process is created under
13672         Windows 95, which obviates the need for the separate runemacs.exe
13673         executable, and finally implemented some variables that were
13674         implemented in Emacs 20.5, but previously not in XEmacs.  These
13675         include mswindows- start-process-share-console and
13676         mswindows-start-process-inherit-error-mode. (Both of these only
13677         apply to Windows 95.)
13678
13679         * regex.c (regex_compile): Fixed a compile warning.
13680
13681         * select-msw.c:
13682         * select-msw.c (mswindows_own_selection):
13683         * select-msw.c (mswindows_get_foreign_selection):
13684         * select-msw.c (mswindows_disown_selection):
13685         * select-msw.c (console_type_create_select_mswindows):
13686         * select-msw.c (syms_of_select_mswindows):
13687         Cleaned up the file and implemented the device method
13688         selection_exists_p, which had accidentally been left out.  Also
13689         removed four lisp functions that were remnants from before the
13690         time when the selection code was properly device abstracted.
13691         These functions are no longer needed because there are generic
13692         equivalents, and because they were added recently and don't exist
13693         in FSF Emacs, I don't think there's any problem with just deleting
13694         them.
13695
13696         * sysdep.c:
13697         * sysdep.c (sys_subshell):
13698         Fixed a compile warning, although in this case there's probably
13699         something wrong with this code, and it ought to be looked into
13700         more thoroughly by somebody who understands it.
13701
13702         * window.c:
13703         * window.c (Fwindow_text_area_height):
13704         * window.c (Fwindow_width):
13705         * window.c (Fwindow_full_width):
13706         * window.c (Fwindow_pixel_width):
13707         * window.c (debug_print_window):
13708         * window.c (syms_of_window):
13709         Added functions window-text-area-height and window-full-width,
13710         which are functions for returning various width and height
13711         characteristics of a window. (One of these functions is necessary
13712         for making the file dialog box work correctly, and the other one
13713         was added for completeness.)  Also added a table to the
13714         documentation for window-height which describes the entire scheme
13715         for accessing width and height characteristics of a window.
13716
13717 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13718
13719         * nt.c (fstat): Added a comment for another problem with
13720         non-encapsulated [f]stat(), reported by Adrian Aichner
13721         <aichner@ecf.teradyne.com>.
13722
13723 2000-03-11  Andy Piper  <andy@xemacs.org>
13724
13725         * window.c (make_dummy_parent): initialize subwindow instance
13726         cache.
13727         (Fset_window_configuration): zero extent_modiff.
13728
13729 2000-03-10  Andy Piper  <andy@xemacs.org>
13730
13731         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13732         more changes can be triggered.
13733         (Fredisplay_frame): ditto.
13734         (Fredraw_device): ditto.
13735         (Fredisplay_device): ditto.
13736         (redisplay_frame): make non-static.
13737         (redisplay_frame): call update_frame_gutter_geometry outside of
13738         display proper.
13739
13740         * gutter.h: declare update_frame_gutter_geometry.
13741
13742         * redisplay.h: declare redisplay_frame.
13743
13744         * gutter.c (update_frame_gutter_geometry): move geometry changes
13745         in update_frame_gutters here. Geometry changes can only occur
13746         outside of redisplay.
13747         (update_frame_gutters): remove geometry change code.
13748         (Fredisplay_gutter_area): make sure that we are in display when we
13749         update and that we have flushed any size changes.
13750
13751 2000-03-11  Andy Piper  <andy@xemacs.org>
13752
13753         * alloc.c (pdump_dump_data): remove i & count shadows.
13754
13755 2000-02-27  Mike Alexander  <mta@arbortext.com>
13756
13757         * sysdep.h: Declare pdump_read_file
13758
13759         * sysdep.c (pdump_read_file): New function
13760
13761         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13762         dump data
13763
13764 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13765
13766         * lrecord.h: add `lrecord_type_pgsetenv'.
13767
13768 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13769
13770         * symsinit.h: declare (vars|syms)_of* functions.
13771         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13772
13773 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13774
13775         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13776
13777         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13778         GCCs.
13779
13780         * emacs.c (main_1): Call postgres initialization code.
13781
13782         * postgresql.h: New file.  PostgreSQL RDBMS support.
13783         * postgresql.c: New file.
13784
13785 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13786
13787         * redisplay-output.c (redisplay_output_display_block): Disable
13788         redundant code.
13789
13790 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13791
13792         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13793         (Fcanna_henkan_next): Ditto.
13794         (Fcanna_bunsetu_henkou): Ditto.
13795         (Fcanna_henkan_kakutei): Ditto.
13796         (Fcanna_henkan_end): Ditto.
13797         (Fcanna_henkan_quit): Ditto.
13798         (Fcanna_henkan_next): Set retun value correctly.
13799         (c2mu): Use unsigned char instead of signed char.
13800
13801 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13802
13803         * emacs.c (main_1): Always call syms_of_gui.
13804         * inline.c: include gui.h
13805
13806 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13807
13808         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13809         converted to Lisp_Object.
13810         (Qtop_bottom): New variable.
13811         (syms_of_redisplay): Initialize it.
13812         * redisplay.h (Vvisible_bell): Ditto.
13813         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13814         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13815         only flash top and bottom.
13816
13817 2000-03-08  Andy Piper  <andy@xemacs.org>
13818
13819         * buffer.c (Frename_buffer): record new buffer name the right way.
13820
13821 2000-03-08  Andy Piper  <andy@xemacs.org>
13822
13823         * glyphs.c (update_subwindow): increase hash depth so that widget
13824         items get picked up properly.
13825
13826         * redisplay-output.c (compare_runes): increase hash depth so that
13827         widget items get picked up properly.
13828
13829 2000-03-08  Andy Piper  <andy@xemacs.org>
13830
13831         * gutter.c (output_gutter): add some debug.
13832
13833         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13834         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13835         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13836
13837         * redisplay-output.c (compare_runes): use display_hash to
13838         determine if glyphs really are not the same.
13839
13840         * glyphs.c (update_subwindow): check display_hash to see if
13841         anything really needs to be updated. If not then do
13842         nothing. Record the display_hash after updating.
13843         (image_instance_equal): compare the image_instance face also.
13844
13845 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13846
13847         * redisplay.h: Fix comment style.
13848
13849 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13850
13851         * consle-msw.h (struct mswindows_frame):
13852         Added new member paint_pending to indicate whether a WM_PAINT
13853         magic event has been queued for this frame.
13854
13855         * event-msw.c (mswindows_drain_windows_queue):
13856         Don't queue a WM_PAINT magic event if one is already queued.
13857         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13858
13859         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13860
13861 2000-03-07  Didier Verna  <didier@xemacs.org>
13862
13863         * dired.c: #include `regex.h' after `sysfile.h'.
13864
13865 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13866
13867         * sound.c (init_nas_sound): Fix compiler warning.
13868
13869         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13870         (FREE_STRUCT_P):
13871         (MARK_STRUCT_AS_FREE):
13872         (MARK_STRUCT_AS_NOT_FREE):
13873         Make `gcc -fstrict-aliasing' work properly.
13874
13875 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13876
13877         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13878         (mswindows_delete_device): Call CoUnnitialize().
13879
13880         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13881
13882 2000-02-25    <CraigL@DyCon.com>
13883
13884         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13885         <errno.h>.
13886
13887         * sysdep.c: This extern declaration for environ prevents MinGW
13888         from finding the variable in CRTDLL.DLL.
13889
13890         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13891         windows headers.
13892         (SHGFI_EXETYPE): ..
13893         (WM_MOUSEWHEEL): ..
13894         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13895         definitions.
13896         (MMRESULT): Removed, now defined in cygwin's windows headers.
13897         (TIMECAPS): ..
13898         (uid_t,gid_t,pid_t,ssize_t): ..
13899         (_timeb): Removed, MinGW defines both _timeb and timeb.
13900         (HAVE_H_ERRNO): Added.
13901         (HAVE_TZNAME): Added, configure is not detecting this.
13902
13903 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13904
13905         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13906         * syntax.c (syntax_match): Use it.
13907
13908         * cmds.c: Import auto-fill-chars from FSF Emacs.
13909         (Vauto_fill_chars): New variables.
13910         (internal_self_insert): Check Vauto_fill_chars.
13911         (vars_of_cmds):
13912         Declare auto-fill-chars as a Lisp variable and initialize it.
13913
13914 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13915
13916         * fileio.c (Fmake_symbolic_link):
13917         (Ffile_symlink_p):
13918         Run handlers even if local machine doesn't have symlinks.
13919
13920 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13921
13922         * event-msw.c (mswindows_drain_windows_queue):
13923         Don't generate paint magic events for non-XEmacs frames.
13924
13925 2000-03-05  Andy Piper  <andy@xemacs.org>
13926
13927         * redisplay.c (redisplay_frame): generate_displayable_area and
13928         friends assumes that we are not in GC, we therefore have to make
13929         sure that this doesn't happen.
13930
13931         * gutter.c (calculate_gutter_size): generate_displayable_area
13932         assumes that we are not in GC, we therefore have to make sure that
13933         this doesn't happen.
13934
13935 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13936
13937         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13938
13939 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13940
13941         * redisplay.c (regenerate_window): Make sure we set a sane value
13942         for end_pos even if we jump out of the loop.
13943         (regenerate_window): Answer Ben's question :-).
13944         (start_end_of_last_line): Add may_error argument.
13945         (start_of_last_line):
13946         (end_of_last_line): Pass may_error = 0.
13947         (end_of_last_line_may_error): New function.
13948         (pixel_to_glyph_translation): Use it, so we don't crash in
13949         event_to_glyph.
13950
13951 2000-03-04  Andy Piper  <andy@xemacs.org>
13952
13953         * window.h (struct window): add gutter_extent_modiff.
13954
13955         * window.c (allocate_window): zero out gutter_extent_modiff.
13956
13957         * redisplay.h: declare sync_display_line_structs.
13958
13959         * redisplay.c (add_glyph_rune): add a better comment.
13960
13961         * redisplay-output.c (sync_display_line_structs): made non-static.
13962         (compare_runes): remove unneccesary glyph cachel access.
13963
13964         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13965
13966         * gutter.c (output_gutter): don't output the gutter if extent
13967         changes only involve extents in buffers. use 4 sets of display
13968         lines.
13969         (gutter_extent_signal_changed_region_maybe): new function. Mark
13970         extents in gutters as changed.
13971         (update_frame_gutters): use 4 sets of display lines.
13972         (reset_gutter_display_lines): ditto.
13973         (free_frame_gutters): ditto.
13974         (redraw_exposed_gutter): force output of gutters.
13975
13976         * frame.h (struct frame): add 4 sets of gutter display lines.
13977
13978         * extents.c: (extent_changed_for_redisplay): signal changes to
13979         extents in strings in the gutter as well as extents in buffers.
13980
13981 2000-03-02  Andy Piper  <andy@xemacs.org>
13982
13983         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13984
13985         * frame.c (Fmake_frame): make sure the gutters get initialized
13986         after the frame is visible.
13987         (set_frame_selected_window): re-arrange compilation macros a
13988         little.
13989         (change_frame_size_1): mark gutters changed.
13990
13991         * device.c (Fset_device_class): mark gutters changed.
13992
13993 2000-03-01  Andy Piper  <andy@xemacs.org>
13994
13995         * window.c (window_top_frame_gutter_height): deleted.
13996         (window_bottom_frame_gutter_height): ditto.
13997         (window_left_frame_gutter_height): ditto.
13998         (window_right_frame_gutter_height): ditto.
13999         (window_top_gutter_height): don't use them.
14000         (window_bottom_gutter_height): ditto.
14001         (window_left_gutter_width): ditto.
14002         (window_right_gutter_width): ditto.
14003         (Fsplit_window): ditto.
14004         (Fwindow_pixel_edges): don't use border dimensions here.
14005
14006         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14007         (update_scrollbar_instance): ditto.
14008
14009         * redisplay.c (generate_modeline): don't take gutters into account.
14010         (generate_modeline): ditto.
14011         (redisplay_frame): small gutter display optimization.
14012
14013         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14014
14015         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14016         gutters into account.
14017
14018         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14019         for window position and type.
14020
14021         * gutter.c (get_gutter_coords): fix for frame gutters.
14022         (update_frame_gutters): update frame geometry if the gutters have
14023         changed.
14024         (init_frame_gutters): record current gutter geometries.
14025
14026         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14027         var.
14028         (mswindows_widget_instantiate): ditto.
14029
14030         * frame.h (struct frame): add current_gutter_bounds.
14031
14032         * frame.c (change_frame_size_1): position window and minibuffer
14033         appropriately taking into account the frame gutters.
14034
14035         * frame-x.c: (x_initialize_frame_size): take into account the
14036         frame gutters.
14037
14038 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14039
14040         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14041
14042 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14043
14044         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14045
14046 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14047
14048         * file-coding.c (reset_decoding_stream): Clear previous
14049         detection state when autodetect.
14050
14051 2000-02-29  Didier Verna  <didier@xemacs.org>
14052
14053         * extents.c (set_extent_glyph_1): don't require extents to be
14054         attached.
14055
14056 2000-02-27  Andy Piper  <andy@xemacs.org>
14057
14058         * gutter.c (Fset_default_gutter_position): don't default left and
14059         right gutter visibility to t.
14060         (Fset_default_gutter_position): run
14061         default-gutter-position-changed-hook.
14062         (syms_of_gutter): add default-gutter-position-changed-hook.
14063
14064 2000-02-26  Andy Piper  <andy@xemacs.org>
14065
14066         * specifier.c (Fmake_specifier): add gutter references.
14067
14068         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14069
14070         * lisp.h: declare Fvalid_plist_p.
14071
14072         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14073         as changed.
14074         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14075         well as its visibility so that it gets reconstructed.
14076         (construct_window_gutter_spec): new function. Construct a string
14077         to be displayed in the gutter from a plist of strings. Take care
14078         to only use elements that are declared as visible.
14079         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14080         WINDOW_GUTTER.
14081         (gutter_validate): allow plists of strings in the specifier.
14082         (gutter_specs_changed): construct the real_gutter from the gutter
14083         specs using construct_window_gutter_spec.
14084         (gutter_visible_validate): gutter-visible is a new specifier type.
14085         (Fgutter_visible_specifier_p): new function for the new specifier.
14086         (syms_of_gutter): declare gutter-visible and
14087         Fgutter_visible_specifier_p.
14088         (specifier_type_create_gutter): intitalize new gutter-visible
14089         specifier.
14090         (reinit_specifier_type_create_gutter): ditto.
14091         (specifier_vars_of_gutter): use new specifier type for gutter
14092         visibility.
14093         (init_frame_gutters): construct real_gutter correctly.
14094         (Fgutter_specifier_p): beef up documentation.
14095         (Fgutter_size_specifier_p): ditto.
14096
14097         * winslots.h: add real_gutter slots.
14098
14099 2000-02-25  Andy Piper  <andy@xemacs.org>
14100
14101         * device-msw.c: Be kind to older cygwin versions. From Raymond
14102         Toy <toy@rtp.ericsson.se>.
14103
14104         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14105         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14106
14107 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14108
14109         * elhash.c (MARK_OBJ): Practice macro hygiene.
14110
14111 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14112
14113         * miscplay.c: s/__inline__/inline/g;
14114         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14115         (get_device_compdc): INLINE ==> static inline
14116         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14117         find -name '*.h' | \
14118         xargs global-replace \
14119         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14120
14121 2000-02-25  Andy Piper  <andy@xemacs.org>
14122
14123         * window.c (window_top_frame_gutter_height): new function.
14124         (window_top_window_gutter_height): ditto.
14125         (window_top_gutter_height): use them.
14126         (window_bottom_frame_gutter_height): new function.
14127         (window_bottom_window_gutter_height): ditto.
14128         (window_bottom_gutter_height): use them.
14129         (window_left_window_gutter_width): new function.
14130         (window_left_frame_gutter_width): ditto.
14131         (window_left_gutter_width): use them.
14132         (window_right_window_gutter_width): new function.
14133         (window_right_frame_gutter_width): ditto.
14134         (window_right_gutter_width): use them.
14135         (window_pixel_height): new function. calulate window pixel height
14136         with frame gutter involvement.
14137         (Fsplit_window): calculate new sizes taking frame gutters into
14138         account.
14139         (window_char_height_to_pixel_height): don't include frame gutters.
14140         (window_char_height): use window_pixel_height.
14141         (window_pixheight): rename from window_pixel_height.
14142         (change_window_height): use it.
14143         (window_pixel_height_to_char_height): don't include frame gutters.
14144         (window_char_width_to_pixel_width): ditto.
14145
14146 2000-02-25  Andy Piper  <andy@xemacs.org>
14147
14148         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14149         if it is.
14150
14151 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14152
14153         * alloc.c (staticpro):
14154         (staticpro_nodump):
14155         (dumpstruct):
14156         (dumpopaque):
14157         (pdump_wire):
14158         (pdump_wire_list):
14159         (compact_string_chars):
14160         (pdump_dump_wired):
14161         Convert:  if (foo) abort();  ==>  assert (! foo);
14162
14163         * eldap.c (Fldap_search_basic):
14164         (Fldap_add):
14165         (Fldap_modify):
14166         (Fldap_delete):
14167         Fix compiler warnings, and possible crashes if (random) return
14168         value were to be used.
14169
14170 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14171
14172         * device-msw.c: Workaround ResetDC failure.
14173
14174         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14175         applying a devmode.
14176
14177         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14178         (mswindows_text_width): Do not start printer page.
14179
14180         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14181
14182         * glyphs-msw.c: Added image methods to msprinter console and
14183         msprinter-specific image instantiation.
14184
14185 2000-02-20  Mike Alexander  <mta@arbortext.com>
14186
14187         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14188         to avoid crashes when selection-sets-clipboard is on
14189         (mswindows_own_selection): ditto
14190
14191 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14192
14193         * glyphs-msw.c:
14194         * redisplay-msw.c (get_frame_dc):
14195         (get_frame_compdc):
14196         * console-msw.h:
14197         * device-msw.c (mswindows_init_device):
14198         (mswindows_delete_device):
14199         (msprinter_init_device):
14200         (msprinter_delete_device):
14201         * frame-msw.c (mswindows_init_frame_1):
14202         (mswindows_delete_frame):
14203         (msprinter_init_frame_3):
14204         (msprinter_delete_frame): Move compatible DC to device object from
14205         frame object, for both mswindows and msprinter. Only one at a time
14206         is needed, it is a real waste to have one per frame!
14207
14208 2000-02-23  Andy Piper  <andy@xemacs.org>
14209
14210         * glyphs.c: add dynamic width and height elements.
14211         (image_instance_equal): ditto.
14212
14213         * glyphs-widget.c (widget_query_geometry): calculate width and
14214         height dynamically if required.
14215         (initialize_widget_image_instance): initialize dynamic dimensions.
14216         (widget_instantiate): pick-up dynamic dimensions.
14217
14218         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14219         dynamic determination. Add appropriate macros.
14220
14221         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14222         dimensions safe.
14223         (WINDOW_GUTTER_SIZE): ditto.
14224         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14225
14226         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14227         inline.
14228         (get_frame_dc): ditto.
14229
14230         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14231         here.
14232
14233 2000-02-23  Martin Buchholz <martin@xemacs.org>
14234
14235         * XEmacs 21.2.31 is released.
14236
14237 2000-02-22  Ben Wing <ben@xemacs.org>
14238
14239         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14240
14241 2000-02-22  Andy Piper  <andy@xemacs.org>
14242
14243         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14244
14245 2000-02-21  Mike Sperber <mike@xemacs.org>
14246
14247         * .dbxrc:
14248         * .gdbinit:
14249         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14250         variables.
14251
14252 2000-02-21  Mike Sperber <mike@xemacs.org>
14253
14254         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14255
14256 2000-02-21  Martin Buchholz <martin@xemacs.org>
14257
14258         * XEmacs 21.2.30 is released.
14259
14260 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14261
14262         Performance hacking.
14263         * *.c (syms_of_*):
14264         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14265         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14266         * emacs.c (main_1):
14267         * lisp.h (DEFUN):
14268         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14269         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14270         * symeval.h (DEFVAR_SYMVAL_FWD):
14271         * symbols.c (guts_of_unbound_marker):
14272         Make all c_readonly objects also lisp_readonly and marked for life.
14273         * lrecord.h (struct lrecord_implementation):
14274         Document flags better.
14275         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14276         * lrecord.h (DECLARE_LRECORD):
14277         * lrecord.h (XSETRECORD):
14278         * lrecord.h (RECORDP):
14279         * lrecord.h (RECORD_TYPEP):
14280         * lrecord.h (RECORD_MARKER): New.
14281         * lrecord.h (error_check_*):
14282         * lrecord.h (CONCHECK_NONRECORD):
14283         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14284         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14285         * lrecord.h (set_lheader_implementation):
14286         * lrecord.h (enum lrecord_type): New.
14287         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14288         * alloc.c (disksave_object_finalization_1):
14289         * alloc.c (mark_object):
14290         * alloc.c (lrecord_type_index):
14291         * alloc.c (tick_lcrecord_stats):
14292         * alloc.c (Fgarbage_collect):
14293         * alloc.c (init_alloc_once_early):
14294         * alloc.c (pdump_load):
14295         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14296         * alloc.c (lrecord_type_index): Delete.
14297         Make lisp object type indexes be constant.
14298           Makes (byte-compile) 5% faster.
14299         Put all marker functions into their own array.
14300           Makes (garbage-collect) 5% faster.
14301         Optimize SYMBOL_VALUE_MAGIC_P.
14302           Makes (byte-compile) 2-3% faster.
14303         * config.h.in (gc_checking_assert): New.
14304         * alloc.c: Use gc_checking_assert().
14305         * .dbxrc: Make compatible with new object type implementation.
14306         * .gdbinit: Make compatible with new object type implementation.
14307         * alloc.c: Delete all symbols defined only for debugging, such as
14308         Lisp_Type_Vector and lrecord_charset.
14309
14310 2000-02-21  Andy Piper  <andy@xemacs.org>
14311
14312         * gui-msw.c (Fmswindows_shell_execute): fix file location
14313         problems.
14314
14315         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14316         unshowing so that set_window_buffer doesn't undo
14317         kill_buffer_hook's hard work.
14318
14319         * glyphs-widget.c (tab_control_query_geometry): don't count the
14320         first item when calculating geometry.
14321
14322         * glyphs.c (map_subwindow): remove redundant code.
14323         (update_frame_subwindows): be more circumspect about when to
14324         update subwindows.
14325
14326         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14327         when items haven't changed. Update faces if faces have changed as
14328         well as just the widget face.
14329         (x_tab_control_update): Update faces if faces have changed as well
14330         as just the widget face.
14331
14332 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14333
14334         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14335         registration.
14336         (build_syscolor_string): Use mswindows_color_to_string to try to
14337         get a named color.
14338         (mswindows_device_system_metrics): Reverse the foreground and
14339         background colors so that they match the documentation.
14340
14341         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14342         they match the default Windows palette.
14343         (mswindows_color_to_string): New function.
14344
14345 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14346
14347         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14348
14349 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14350
14351         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14352         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14353
14354         * symbols.c (init_symbols_once_early): Removed obsolete
14355         DATA_SEG_BITS related kludge.
14356         (defvar_magic): Ditto.
14357
14358         * malloc.c: Removed obsolete DATA_SEG_BITS
14359         * ralloc.c: Ditto.
14360         * mem-limits.h: Ditto.
14361
14362         * Makefile.in.in: Removed obsolete HAVE_SHM
14363         * emacs.c: Ditto.
14364
14365 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14366
14367         *  device-msw.c (mswindows_delete_device): Free DDE string
14368         handles.
14369
14370 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14371
14372         * keymap.c (get_keyelt):
14373         * unexnt.c (unexec):
14374         * vm-limit.c (memory_warnings):
14375         * ntheap.c (recreate_heap):
14376         * ntheap.h (UNINIT_PTR):
14377         * select-msw.c (Fmswindows_get_clipboard):
14378         (Fmswindows_set_clipboard):
14379         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14380         * objects-msw.c:
14381         * menubar-msw.c (displayable_menu_item):
14382         * glyphs-msw.c:
14383         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14384         * sysdep.c (sys_subshell):
14385         * process-nt.c (nt_create_process):
14386         * nt.c (normalize_filename):
14387         (dostounix_filename):
14388         (unixtodos_filename):
14389         * ntproc.c (win32_executable_type):
14390         * ntplay.c (play_sound_data_1):
14391         (play_sound_file):
14392         * editfns.c (get_home_directory):
14393         * event-msw.c (struct winsock_stream):
14394         (mswindows_dde_callback):
14395         * device-msw.c (msprinter_init_device):
14396         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14397
14398         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14399         mswindows_clear_toolbar were swapped!
14400
14401         * objects-msw.c:(colormap_t):
14402         (fontmap_t):
14403         * emacs.c (struct standard_args): Fixed const jumble.
14404
14405         * glyphs-widget.c (update_widget): Fixed comparison notation.
14406
14407         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14408
14409         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14410         __declspec(noreturn) syntax.
14411
14412 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14413
14414         * eldap.c (Fldap_open):
14415         (Fldap_search_basic):
14416         (Fldap_add):
14417         (Fldap_modify):
14418         Use new coding system conversion macros.
14419
14420 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14421
14422         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14423
14424 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14425
14426         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14427         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14428
14429         * eldap.c (Qadd, Qreplace): New constant symbols
14430         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14431         interruptions by XEmacs signals
14432         Remove unnecessary calls to slow_down_interrupts and
14433         speed_up_interrupts
14434         (Fldap_search_basic): Renamed from Fldap_search_internal
14435         Added new optional parameter VERBOSE that triggers the
14436         display of progress messages
14437         Remove unnecessary calls to slow_down_interrupts and
14438         speed_up_interrupts
14439         LDAP result code analysis rewritten
14440         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14441         (syms_of_eldap): Define the new symbols and functions
14442
14443
14444 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14445
14446         * realpath.c: Determine PATH_MAX maximally portably.
14447
14448         * insdel.c (bytecount_to_charcount): Optimize.
14449         The function used to be optimized for entirely ASCII sequences.
14450         Now it is optimized for successive characters from the same
14451         charset.  This also wins big for _mostly_ ASCII sequences.
14452
14453         * fileio.c (Ffile_truename): convert return from realpath() using
14454         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14455         - Rewrite GCPROing slightly.
14456
14457         * sysdep.c (sys_open): Do filename conversion, like all other
14458         sys_* functions.  Fixes bug:
14459         (let ((file-name-coding-system 'iso-8859-2))
14460            (write-region x y latin2-name))
14461         ==> writes filename using internal encoding.
14462
14463 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14464
14465         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14466         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14467         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14468         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14469         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14470         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14471         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14472         (CONST_IF_NOT_DEBUG): Delete.
14473         * alloc.c (this_one_is_unmarkable): Delete.
14474         (mark_object): Don't check for this_one_is_unmarkable. Use the
14475         c_readonly flag instead.
14476         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14477
14478 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14479
14480         * event-msw.c (mswindows_drain_windows_queue):
14481         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14482         away redundant repaint events.
14483
14484 2000-02-17  Andy Piper  <andy@xemacs.org>
14485
14486         * redisplay.h: declare mark_redisplay_structs.
14487
14488         * redisplay.c (redisplay_window):
14489         (redisplay_frame): don't check subwindows_state_changed.
14490         (mark_redisplay): mark gutters here.
14491
14492         * glyphs.c: (instantiate_image_instantiator): always layout if we
14493         haven't done so already.
14494         (allocate_image_instance): don't mark as dirty.
14495         (update_subwindow): bind inhibit_quit.
14496
14497         * gutter.c (mark_gutters): new function.
14498
14499         * glyphs-x.c (x_update_widget): Always resize to get round a
14500         widget bug.
14501
14502         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14503         breaking absolutely everything.
14504
14505         * gutter.h: declare mark_gutters.
14506
14507 2000-02-16  Martin Buchholz <martin@xemacs.org>
14508
14509         * XEmacs 21.2.29 is released.
14510
14511 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14512
14513         * fns.c (size_bit_vector): Fix computation of the size.
14514
14515 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14516
14517         * *.[ch]: Change CONST to const globally.
14518         find -name '*.[ch]' | \
14519         xargs global-replace \
14520         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14521         - Remove vestigial references to CONST_IS_LOSING
14522
14523 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14524
14525         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14526         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14527         events instead of dispatching them directly.
14528         (mswindows_handle_paint): New function to do repainting.
14529         (mswindows_wnd_proc):
14530         (emacs_mswindows_handle_magic_event): Call above function.
14531
14532 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14533
14534         * objects-msw.c (mswindows_create_font_variant): Return the new
14535         font handle.
14536         (initialize_font_instance): Get font metrics from the underlined
14537         variant of the font to cope with the case where the underlined
14538         font has a bigger descent.
14539
14540 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14541
14542         * gui.c (gui_item_accelerator): Return the first underlined
14543         character in item name.
14544
14545 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14546
14547         * lisp.h: Added Qprinter.
14548
14549         * general.c (syms_of_general): Initialized it.
14550
14551         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14552         (get_frame_dc):
14553         (get_frame_compdc): Made inline.
14554
14555         * console.h (struct console_methods): Added eject_page method.
14556
14557         * frame.h: Added FRAME_DISPLAY_P and friends.
14558         Aligned backslahes in many macros in more readable fashion.
14559         Added page_number to struct frame, and an accessor macro
14560         for it.
14561
14562         * defice.h: Added DEVICE_DISPLAY_P and friends.
14563
14564         * device.c (Fdevice_printer_p): Used these.
14565
14566         * frame.c (allocate_frame_core): Initialize page number.
14567         (Fprint_job_page_number):
14568         (Fprint_job_eject_page): Implemented.
14569
14570         * frame-msw.c (msprinter_eject_page): Added method.
14571         (msprinter_start_page): Added.
14572
14573         * window.c (Fwindow_truncated_p): Fixed docstring.
14574         (Fwindow_last_line_visible_height): Implemented.
14575
14576 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14577
14578         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14579
14580 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14581
14582         * syntax.c (scan_words): Always advance at least one character.
14583
14584 2000-02-13  Andy Piper  <andy@xemacs.org>
14585
14586         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14587         to make sure the glyph is in the cachels.
14588
14589         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14590         global image instance flag.
14591         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14592         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14593
14594         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14595         (Fset_image_instance_property): mark layout as changed.
14596         (invalidate_glyph_geometry_maybe): mark layout as changed.
14597         (glyph_width): use new NEEDS_LAYOUT macro.
14598         (glyph_ascent): ditto.
14599         (glyph_descent): ditto.
14600         (glyph_height): ditto.
14601         (image_instance_layout): mark layout as clean after laying out.
14602         (update_subwindow): don't mark layout as clean here.
14603
14604         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14605         should no longer be needed.
14606
14607         * glyphs-x.c (x_update_widget): sanitize asserts.
14608         (x_finalize_image_instance): sanitize assignment to widgets.
14609
14610         * glyphs-widget.c (widget_instantiate): don't need to clear the
14611         layout flag here.
14612
14613 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14614
14615         * sysdep.c (getcwd): Use standard prototype.
14616         * sysdep.h (getcwd): Use standard prototype.
14617
14618         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14619         (sequence, start, end).
14620         Remove redundant type checking.
14621         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14622         view of `caller-protects') to avoid a crash where the real fix was
14623         found elsewhere.
14624
14625 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14626
14627         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14628
14629         * s/sol2.h: Remove feature macro initialization.
14630
14631         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14632         (vector_hash): New.  Code from internal_hash.
14633         * lrecord.h:
14634         Fix up allocation subsystem comments.
14635
14636         * config.h.in: Add __EXTENSIONS__ for Solaris.
14637
14638         * systime.h (EMACS_GETTIMEOFDAY): New.
14639         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14640         Remove Solaris-specific code.
14641         Use void* for the (ignored) second arg for gettimeofday().
14642
14643         * elhash.c (hash_table_hash): Implement it, finally.
14644         * elhash.c:  Use hashcode_t.
14645
14646         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14647         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14648
14649         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14650         * fns.c (size_bit_vector):
14651         * alloc.c (size_vector):
14652         (make_vector_internal):
14653         (make_bit_vector_internal):
14654         (sweep_bit_vectors_1):
14655         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14656
14657 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14658
14659         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14660         Include strings.h to avoid warnings for bzero and strcasecmp.
14661
14662 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14663
14664         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14665         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14666
14667         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14668         sequence.
14669
14670 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14671
14672         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14673         use a value field instead.
14674         (symbol_value_forward_forward): Use value field.
14675         (DEFVAR_SYMVAL_FWD): Use value field.
14676         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14677         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14678         (DEFVAR_CONST_INT): Ditto.
14679         (DEFVAR_BOOL): Ditto.
14680         (DEFVAR_CONST_BOOL): Ditto.
14681         (DEFVAR_INT_MAGIC): Ditto.
14682         (DEFVAR_BOOL_MAGIC): Ditto.
14683
14684         * symbols.c (guts_of_unbound_marker): Use value field.
14685         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14686         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14687
14688         * lisp.h: Declare dumpopaque and noninteractive1.
14689
14690         * alloc.c (dumpopaque): Added.
14691         (pdump_dump_opaquevec): Added.
14692         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14693         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14694         noninteractive.
14695
14696 2000-02-10  Andy Piper  <andy@xemacs.org>
14697
14698         * glyphs.c (image_instance_layout): if the size changes, mark it
14699         as such.
14700
14701         * redisplay-output.c (redisplay_output_layout): Update the
14702         subwindow here.
14703         (redisplay_output_subwindow): ditto.
14704
14705         * glyphs.c (update_subwindow): make sure we reset flags for
14706         layouts as well as everything else.
14707
14708         * glyphs-widget.c (layout_layout): don't need to set the instances
14709         dimensions here.
14710
14711 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14712
14713         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14714         not HAVE_DLOPEN, which is a lower-level thing.
14715
14716         * .cvsignore: Ignore gmon.out
14717
14718 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14719
14720         * .cvsignore: Ignore portable dumper xemacs.dmp file
14721
14722 2000-02-09  Andy Piper  <andy@xemacs.org>
14723
14724         * redisplay-output.c (redisplay_output_layout): be more clever
14725         about when we output based on the changed flags.
14726
14727         * glyphs.h (struct image_instantiator_methods): add update_method.
14728         (struct Lisp_Image_Instance): add changed flags. Declare new
14729         macros for manipulating them.
14730
14731         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14732         (image_instance_parent_glyph): find an image_instance's parent
14733         glyph or image_instance.
14734         (image_instance_layout): mark the size as changed.
14735         (set_image_instance_dirty_p): new function. mark an image
14736         instance, plus all of its parents, as dirty.
14737         (Fset_image_instance_property): use it.
14738         (Fglyph_animated_timeout_handler): use it.
14739         (update_subwindow): call update_widget and device methods for
14740         update_subwindow. Mark all changed flags as clean.
14741         (Fresize_subwindow): mark size as changed.
14742
14743         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14744         failures.
14745         (x_update_subwindow): only resize subwindows here.
14746         (x_update_widget): new function. Update all changed properties of
14747         a widget.
14748         (x_resize_subwindow): deleted.
14749         (x_widget_set_property): deleted.
14750         (x_progress_gauge_set_property): deleted.
14751         (x_progress_gauge_update): new function. Implement recorded
14752         changes.
14753         (x_tab_control_update): ditto.
14754         (x_tab_control_set_property): deleted.
14755         (console_type_create_glyphs_x): declare new functions.
14756         (image_instantiator_format_create_glyphs_x): ditto.
14757
14758         * glyphs-widget.c (widget_set_property): mark text changed.
14759         (update_widget): new function. Update properties of a widget.
14760         (widget_instantiate): for layouts make sure we set their
14761         children's parent correctly.
14762         (tab_control_set_property): new function. Record changes that will
14763         take place under redisplay's control.
14764         (progress_gauge_set_property): ditto.
14765         (image_instantiator_progress_guage): declare new functions.
14766         (image_instantiator_tab_control): ditto.
14767
14768         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14769         now.
14770         (mswindows_update_widget): new function. Update all properties on
14771         a widget that have changed.
14772         (mswindows_button_update): new function. Update a button's set
14773         state.
14774         (mswindows_tab_control_update): new function. Update the items in
14775         a tab.
14776         (mswindows_tab_control_set_property): deleted.
14777         (mswindows_progress_gauge_update): new function. Update the
14778         progress gauge's progress.
14779         (mswindows_widget_set_property): deleted. This is all done
14780         asynchronously now.
14781         (mswindows_progress_gauge_set_property): ditto.
14782         (console_type_create_glyphs_mswindows): declare new methods.
14783         (image_instantiator_format_create_glyphs_mswindows): ditto.
14784
14785         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14786         (msprinter_set_frame_properties): ditto.
14787
14788         * console.h (struct console_methods): Add update_widget_method.
14789
14790 2000-02-09  Andy Piper  <andy@xemacs.org>
14791
14792         * gui-msw.c (Fmswindows_shell_execute): Make
14793         mswindows-shell-execute industrial strength.
14794
14795 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14796
14797         * lrecord.h: Make macro argument `props' match member function `plist'.
14798         * fns.c (Fget):
14799         * fns.c (Fput):
14800         * fns.c (Fremprop):
14801         * fns.c (Fobject_plist):
14802         * alloc.c:
14803         * symbols.c:
14804         Object property list frobbing cleanup.
14805         - Allow any lisp object (compared with `eq'), not just symbols, as
14806           keys in object plists.
14807         - Move symbol plist frobbing into symbols.c, where it belongs.
14808         - Move string plist frobbing into alloc.c, where it belongs.
14809         - Everything's an lrecord now, so no need to test for symbolp, etc.
14810         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14811
14812         * extents.c: Reorder code to remove declarations.
14813
14814         * frame.h (store_in_alist): Remove useless declaration.
14815
14816 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14817
14818         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14819         * config.h.in: Add HAVE_XCONVERTCASE.
14820
14821 2000-02-07  Andy Piper  <andy@xemacs.org>
14822
14823         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14824         it breaks many things.
14825
14826 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14827
14828         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14829         actually can start a common comment type.
14830         * src/syntax.h (SYNTAX_END_P): ditto for end.
14831
14832 2000-02-07  Martin Buchholz <martin@xemacs.org>
14833
14834         * XEmacs 21.2.28 is released.
14835
14836 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14837
14838         * event-Xt.c (x_keysym_to_character): New.
14839         (maybe_define_x_key_as_self_inserting_character): New.
14840         (x_has_keysym): New.
14841         Auto-define all keys on the keyboard as self-insert-key.
14842
14843 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14844
14845         * menubar.c (vars_of_menubar): A small code simplification.
14846
14847         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14848
14849         * ExternalShell.c:
14850         * ExternalClient.c:
14851         * EmacsShell-sub.c:
14852         * EmacsManager.c:
14853         * EmacsFrame.c:
14854         Use consistent style for specifying X resources.
14855
14856         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14857         This makes (dontusethis-set-symbol-value-handler) actually usable.
14858
14859         * lrecord.h (lrecord_decription_type):
14860         * alloc.c (pdump_register_sub):
14861         (pdump_dump_data):
14862         (pdump_reloc_one):
14863         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14864         Comply with XEmacs coding style.
14865         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14866         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14867
14868         * keymap.c (Faccessible_keymaps):
14869         Make (accessible-keymaps map "\C-h") do the Right Thing.
14870         Make (accessible-keymaps map []) do the Right Thing.
14871         Make (accessible-keymaps map "") do the Right Thing.
14872         (check_keymap_definition_loop): New function.
14873         (keymap_store_internal): Keep luser from shooting self in foot,
14874           via (define-key ctl-x-4-map "p" global-map).
14875         Remove fullness slot from struct Lisp_Keymap, since hash tables
14876         are now reliable.
14877         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14878
14879 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14880
14881         * redisplay.c (init_redisplay): Fix small memory leak.
14882         * elhash.h:
14883         * elhash.c (pdump_reorganize_hash_table):
14884         Rename from reorganize_hash_table. Change prototype.
14885         Reuse the original memory for hentries.  Save 100k.
14886         * alloc.c (PDUMP_READ): new macro.
14887         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14888         * alloc.c: No need to #ifndef before #undef.
14889
14890         * print.c: Allow debug_print() to print readably by modifying
14891         debug_print_readably.  Use consistent variable names.
14892
14893         * .dbxrc: Try to get things to work even if stopped in a function
14894         without source available by explicitly specifying source files.
14895 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14896
14897         * unexnt.c (_start): Removed bogus code which caused loading heap
14898         from differrent executable file.
14899         Removed bogus assignment to _fmode, which caused inconsistencies.
14900
14901 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14902
14903         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14904         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14905         Do not preliminary `#define signal sigset'.
14906
14907         * systime.h: Do not prototype environ on windows nt and cygwin,
14908         this conflicts with system header.
14909
14910         * syssignal.h: Use correct define for WINDOWSNT
14911
14912         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14913         with system header.
14914
14915         * sysdep.c (near start of file): Fixed commentary and rearranged
14916         ifdefs in readable order.
14917         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14918         (start_of_text):
14919         (end_of_text):
14920         (end_of_data): Do not compile in if using PDUMP.
14921
14922         * symsinit.h: Prototyped vars_of_nt().
14923
14924         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14925         (find_child_console): Use it.
14926         (sys_kill): Use it.
14927
14928         * ntheap.h: Do not extern os_subtype.
14929
14930         * ntheap.c (cache_system_info): Do not cache unneeded:
14931         nt_major_version, nt_minor_version and os_subtype.
14932         (recreate_heap): Do not compile in when PDUMPing.
14933
14934         * nt.c (geteuid and friends): Use the new varibale
14935         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14936         (init_user_info): Removed the above mentioned hackery.
14937         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14938         stat has been fixed in the C runtime.
14939         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14940
14941         * file-coding.c (struct file_coding_dump): Do not define
14942         ucs_to_mule_table in the struct if not MULE.
14943         (struct struct lrecord_description fcd_description_1): Do not dump
14944         the above.
14945
14946         * emacs.c (main_1): Call vars_of_nt().
14947         (right before Fdump_emacs_data): Don't need lastfile if using both
14948         portabe dumper and system malloc.
14949
14950         * alloc.c (Fmemory_limit): Conditionalized out.
14951         (pdump): Use OPEN_BINARY for the portable dump file.
14952         (pdump_load): Ditto.
14953
14954 2000-02-02  Mike Alexander  <mta@arbortext.com>
14955
14956         * nt.c (convert_time): Set tm_isdst before calling mktime and
14957         avoid calling it at all if the compiler supports 64 bit integers.
14958         Also initialize utc_base_ft before using it.
14959
14960 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14961
14962         * frame.c (change_frame_size_1): Take f->internal_border_width
14963         into consideration when calculating the width of the frame.
14964
14965 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14966
14967         * window.c (frame_min_height):
14968         (frame_size_valid_p):
14969         (frame_pixsize_valid_p): Added.
14970         (check_frame_size): Generalized.
14971
14972         * window.h: Prototyped the above.
14973
14974         * lisp.h:
14975         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14976         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14977         Deleted Vwin32_* and Vbinary_process_* unused variables.
14978
14979         * device-msw.c (msprinter_init_device): Do not get printer font
14980         list; Added DEVMODE functions.
14981
14982         * frame-msw.c: Added lots of printer code.
14983
14984         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14985         general.c.
14986
14987         * console-msw.h: Added more msprinter device private slots.
14988
14989 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14990
14991         * event-msw.c (key_needs_default_processing_p): Added.
14992         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14993
14994 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14995
14996         * glyphs.c (image_instance_layout): Mark image instance as clean
14997         after layout.
14998         (glyph_dirty_p): Removed redundant function.
14999         (invalidate_glyph_geometry_maybe): Added.
15000         (update_glyph_cachel_data): Call it.
15001
15002         * glyphs.h: Prototyped it.
15003
15004         * redisplay.c (add_glyph_rune): Call it.
15005         (redisplay_window): Reset glyphs cachels when frame faces have
15006         changed, thus forcing recomputation of built-in border glyphs.
15007
15008 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15009
15010         * Makefile.in.in: Make portable dumper and purify play well together.
15011         Add imperfect, but better than nothing, support for pdump.
15012         Remove xemacs.dmp when temacs is re-generated.
15013         Don't ignore errors when dumping xemacs.
15014
15015         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15016
15017 2000-01-28  Andy Piper  <andy@xemacs.org>
15018
15019         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15020         (setup_normal_frame): ditto.
15021         (setup_frame_without_minibuffer): ditto.
15022         (setup_minibuffer_frame): ditto.
15023         (delete_frame_internal): ditto.
15024         (Fmake_frame_invisible): ditto.
15025         (Ficonify_frame): ditto.
15026
15027         * window.h: change Fset_window_buffer signature.
15028
15029         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15030         (Fset_window_buffer): allow recording of buffer if the window is
15031         the selected window.
15032         (window_loop): Use new Fset_window signature.
15033
15034 2000-01-23  Daniel Pittman  <daniel@danann.net>
15035
15036         * config.h.in: Added template for `HAVE_ATHENA_3D'
15037
15038 2000-01-29  Andy Piper  <andy@xemacs.org>
15039
15040         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15041
15042         * gutter.c (output_gutter): Don't output if the window isn't live.
15043
15044 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15045
15046         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15047         of 01/12/00: Moved SetFocus back here where it belongs.
15048
15049 2000-01-23  Andy Piper  <andy@xemacs.org>
15050
15051         * s/cygwin32.h: declare printer things.
15052
15053 2000-01-26  Andy Piper  <andy@xemacs.org>
15054
15055         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15056         Alexander.
15057
15058 2000-01-24  Andy Piper  <andy@xemacs.org>
15059
15060         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15061         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15062
15063         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15064
15065         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15066
15067         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15068
15069         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15070         (mswindows_output_display_block): Avoid local shadows.
15071
15072         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15073         (mswindows_enqueue_mouse_button_event): ditto.
15074         (mswindows_handle_gui_wm_command): remove declaration.
15075
15076         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15077         warnings.
15078
15079         * console-msw.h: Avoid shadows.
15080         (mswindows_get_toolbar_button_text):
15081         (emacs_mswindows_create_stream_pair):
15082         (emacs_mswindows_delete_stream_pair):
15083         (mswindows_handle_toolbar_wm_command): declare.
15084
15085         * device-msw.c (build_syscolor_string): Avoid shadows.
15086
15087 2000-01-23  Andy Piper  <andy@xemacs.org>
15088
15089         * glyphs-widget.c (widget_instantiate): reverse the items for
15090         layouts so that children are in the expected order.
15091
15092 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15093
15094         * ralloc.c: safe_bcopy ==> memmove
15095         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15096         * s/msdos.h: Remove BCOPY macros.
15097         * insdel.c (gap_right): Remove BCOPY conditional code.
15098         * insdel.c (gap_left): Remove BCOPY conditional code.
15099         XEmacs demands a working ANSI C compiler - hence memmove.
15100
15101         * regex.c (regex_compile): Remove accidental use of trigraphs.
15102
15103 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15104
15105         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15106         event timestamp.
15107
15108 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15109
15110         * event-msw.c (mswindows_drain_windows_queue): Added the
15111         parameter.
15112         (mswindows_need_event): Commented the call to
15113         mswindows_drain_windows_queue().
15114         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15115         only.
15116
15117         * console-msw.h: Moved a few function prototypes here from
15118         event-msw.c.
15119
15120         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15121         parameter from unsigned short to unsigned long.
15122         (Fmswindows_shell_execute): Added return value.
15123
15124 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15125
15126         * sysdep.c (init_system_name):
15127           process-unix.c (unix_canonicalized_host_name):
15128         Don't call freeaddrinfo() if getaddrinfo() fails.
15129
15130         * process-unix.c (unix_open_unix_network_stream):
15131         Moved the code to get a port # into address loop.
15132
15133 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15134
15135         * buffer.c (reinit_vars_of_buffer):
15136         The right place to initialize conversion_in_dynarr and
15137         conversion_out_dynarr.
15138
15139         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15140
15141         * process-unix.c (unix_canonicalize_host_name): Muleize.
15142         (unix_open_network_stream): Muleize.
15143
15144         * buffer.h: Fix up prototypes for ralloc.c functions.
15145
15146 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15147         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15148         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15149                 instead of gethostbyname()
15150         * process-unix.c: In unix_canonicalize_host_name() and
15151                 unix_open_network_stream(), add code to use getaddrinfo()
15152                 instead of gethostbyname().
15153
15154 2000-01-27  Daniel Pittman <daniel@danann.net>
15155
15156         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15157         libs when built with flat Athena.
15158
15159 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15160
15161         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15162         Use coding standards for function prototypes.
15163
15164 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15165
15166         * dialog-msw.c (push_lisp_string_as_unicode):
15167         * doc.c (unparesseuxify_doc_string):
15168         * dired.c (Fuser_name_completion_1):
15169         * dired.c (Fuser_name_all_completions):
15170         * dired.c (free_user_cache):
15171         * dired.c (user_name_completion):
15172         * console-x.c (get_display_arg_connection):
15173         * minibuf.c (clear_echo_area_internal):
15174         * minibuf.c (echo_area_append):
15175         * eldap.c (Fldap_open):
15176         * eldap.c (Fldap_search_internal):
15177         * frame-x.c (x_set_frame_text_value):
15178         * frame-x.c (x_set_frame_properties):
15179         * frame-x.c (x_create_widgets):
15180         * redisplay-tty.c (term_get_fkeys_1):
15181         * objects-x.c (x_parse_nearest_color):
15182         * objects-x.c (x_valid_color_name_p):
15183         * objects-x.c (x_initialize_font_instance):
15184         * objects-x.c (x_list_fonts):
15185         * objects-x.c (x_find_charset_font):
15186         * tooltalk.c (Fadd_tooltalk_message_arg):
15187         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15188         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15189         * process-unix.c (unix_create_process):
15190         * ntproc.c (sys_spawnve):
15191         * sound.c (Fplay_sound_file):
15192         * sound.c (Fplay_sound):
15193         * buffer.c (init_initial_directory):
15194         * buffer.c (init_buffer):
15195         * editfns.c (init_editfns):
15196         * editfns.c (Ftemp_directory):
15197         * editfns.c (Fuser_full_name):
15198         * editfns.c (uncache_home_directory):
15199         * editfns.c (get_home_directory):
15200         * editfns.c (Fuser_home_directory):
15201         * editfns.c (Fformat_time_string):
15202         * editfns.c (Fcurrent_time_string):
15203         * gui-x.c (button_item_to_widget_value):
15204         * database.c (Fopen_database):
15205         * event-Xt.c (x_to_emacs_keysym):
15206         * event-Xt.c (x_event_to_emacs_event):
15207         * event-Xt.c (describe_event_window):
15208         * event-msw.c (mswindows_wnd_proc):
15209         * glyphs-eimage.c (jpeg_instantiate):
15210         * glyphs-eimage.c (gif_instantiate):
15211         * glyphs-eimage.c (png_instantiate):
15212         * glyphs-eimage.c (tiff_instantiate):
15213         * glyphs-x.c (xbm_instantiate_1):
15214         * glyphs-x.c (x_xbm_instantiate):
15215         * glyphs-x.c (x_xface_instantiate):
15216         * glyphs-x.c (autodetect_instantiate):
15217         * glyphs-x.c (cursor_font_instantiate):
15218         * glyphs-x.c (x_widget_instantiate):
15219         * glyphs-x.c (x_widget_set_property):
15220         * glyphs-x.c (x_widget_property):
15221         * glyphs-x.c (BUILD_GLYPH_INST):
15222         * print.c (write_string_to_stdio_stream):
15223         * print.c (output_string):
15224         * print.c (Falternate_debugging_output):
15225         * print.c (Fexternal_debugging_output):
15226         * glyphs-msw.c (extract_xpm_color_names):
15227         * glyphs-msw.c (mswindows_xpm_instantiate):
15228         * glyphs-msw.c (bmp_instantiate):
15229         * glyphs-msw.c (resource_name_to_resource):
15230         * glyphs-msw.c (mswindows_resource_instantiate):
15231         * glyphs-msw.c (xbm_instantiate_1):
15232         * glyphs-msw.c (mswindows_xbm_instantiate):
15233         * glyphs-msw.c (mswindows_xface_instantiate):
15234         * glyphs-msw.c (mswindows_widget_instantiate):
15235         * glyphs-msw.c (add_tree_item):
15236         * glyphs-msw.c (add_tab_item):
15237         * glyphs-msw.c (mswindows_combo_box_instantiate):
15238         * glyphs-msw.c (mswindows_widget_property):
15239         * glyphs-msw.c (mswindows_combo_box_property):
15240         * glyphs-msw.c (mswindows_widget_set_property):
15241         * console.c (stuff_buffered_input):
15242         * objects-msw.c (mswindows_initialize_color_instance):
15243         * objects-msw.c (mswindows_valid_color_name_p):
15244         * objects-msw.c (mswindows_list_fonts):
15245         * objects-msw.c (mswindows_font_instance_truename):
15246         * bytecode.c (optimize_compiled_function):
15247         * select-x.c (symbol_to_x_atom):
15248         * select-x.c (x_atom_to_symbol):
15249         * select-x.c (hack_motif_clipboard_selection):
15250         * select-x.c (selection_data_to_lisp_data):
15251         * select-x.c (lisp_data_to_selection_data):
15252         * select-x.c (Fx_get_cutbuffer_internal):
15253         * select-x.c (Fx_store_cutbuffer_internal):
15254         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15255         * buffer.h (TO_INTERNAL_FORMAT): New function.
15256         * emacs.c (make_arg_list_1):
15257         * emacs.c (make_argc_argv):
15258         * emacs.c (main_1):
15259         * emacs.c (Fdump_emacs):
15260         * emacs.c (split_string_by_emchar_1):
15261         * file-coding.h:
15262         * lisp.h:
15263         * lstream.h:
15264         * symsinit.h:
15265         * device-x.c (x_init_device):
15266         * device-x.c (Fx_valid_keysym_name_p):
15267         * device-x.c (Fx_get_font_path):
15268         * device-x.c (Fx_set_font_path):
15269         * glyphs.c (bitmap_to_lisp_data):
15270         * glyphs.c (pixmap_to_lisp_data):
15271         * alloc.c (make_ext_string): Use coding system arguments.  Update
15272         all callers.
15273         * alloc.c (build_string):
15274         * callproc.c (child_setup):
15275         * callproc.c (init_callproc):
15276         * fileio.c (lisp_strerror):
15277         * fileio.c (directory_file_name):
15278         * fileio.c (Fexpand_file_name):
15279         * fileio.c (Ffile_truename):
15280         * fileio.c (Fsysnetunam):
15281         * fileio.c (Fdo_auto_save):
15282         * sysdep.c (sys_readdir):
15283         * tests.c: New file.  Allow adding C tests.
15284         Replace GET_* macros with a more comprehensible and flexible
15285         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15286         Modify all calls.
15287         Any coding system can be used to do format conversion.
15288         Eliminate enum external_data_format.
15289         Eliminate convert_to_external_format.
15290         Eliminate convert_to_internal_format.
15291         Make sure file-name, keyboard, terminal, and ctext are always
15292         defined as coding systems or aliases.  Make
15293         file-name-coding-system, terminal-coding-system, and
15294         keyboard-coding-system magical variables that are equivalent to
15295         defining the corresponding coding system aliases.
15296
15297         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15298         * file-coding.c (Fcoding_system_alias_p): New function.
15299         * file-coding.c (Fcoding_system_aliasee): New function.
15300         * file-coding.c (append_suffix_to_symbol): New function.
15301         * file-coding.c (dangling_coding_system_alias_p): New function.
15302         * file-coding.c (Ffind_coding_system):
15303         * file-coding.c (Fcopy_coding_system):
15304         * file-coding.c (encode_coding_no_conversion):
15305         * file-coding.c (syms_of_file_coding):
15306         * file-coding.c (vars_of_file_coding):
15307         Rewrite coding system alias code.
15308         Allow nested aliases, like symbolic links.
15309         Allow redefinition of coding system aliases.
15310         Prevent existence of dangling coding system aliases.
15311
15312         * dired.c (Fuser_name_completion_1):
15313         * dired.c (Fuser_name_all_completions):
15314         A crash would happen if user did QUIT in the middle of building
15315         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15316
15317         * lisp.h:
15318         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15319
15320         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15321         an unsigned char *.  Update all callers.
15322
15323 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15324
15325         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15326
15327 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15328
15329         * elhash.c (hentry_description): Use more portable definition.
15330         (resize_hash_table): Initialize new hentries using
15331         xnew_array_and_zero, thereby simplifying the code.
15332
15333         * mule-charset.c (make_charset): Make sure entire object is
15334         initialized, to avoid Purify warnings.
15335
15336         * alloc.c (resize_string): Fix unlikely crash with big strings.
15337
15338 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15339
15340         * realpath.c (xrealpath):
15341         Don't call getwd().
15342
15343 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15344
15345         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15346
15347 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15348
15349         * unexelfsgi.c (unexec): Change the way we decide which segment
15350         should be extended.
15351
15352         Assumption that .bss section should be outside the PT_LOADable
15353         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15354         it's present) is inside the 'data' segment. This would fail the
15355         test which was used to find a segment to grow and cover new
15356         heap. Instead of this assumption, I created another one - on IRIX
15357         the segment to grow should start below .bss and it's address
15358         should extent above the end of .bss. Once this segment is
15359         identified, it's grown to accommodate the new heap and new
15360         zero-length .bss section is added at the end of .data2.
15361
15362 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15363
15364         * eval.c (Feval): Wrong number of arguments should use original
15365         function, not the indirect_function version of it.
15366
15367 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15368
15369         * glyphs-x.c (x_button_instantiate): Don't add image if
15370         it is not a pixmap.
15371         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15372         is relative.
15373
15374 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15375
15376         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15377         declaration.
15378         (DEFVAR_INT_MAGIC): Ditto.
15379         (DEFVAR_BOOL_MAGIC): Ditto.
15380         * glyphs.h: Reindent backslash.
15381
15382 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15383
15384         * glyphs-widget.c (layout_query_geometry):
15385         (layout_layout): Use correct types for gheight, gwidth.
15386
15387 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15388
15389         * EmacsManager.c (QueryGeometry): Purified.
15390
15391 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15392
15393         * alloc.c (make_float): Make sure entire object is initialized, to
15394         avoid Purify warnings.
15395         (pdump_register_sub): Remove useless assignment.
15396         (pdump): Use xmalloc, not malloc.
15397         (pdump_load): Use xmalloc, not malloc.
15398
15399 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15400
15401         * callproc.c:
15402         * dired-msw.c:
15403         * fileio.c:
15404         * process-nt.c:
15405         * redisplay-msw.c:
15406         * sysdep.c: Removed redundant #include <windows.h>
15407
15408 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15409
15410         * frame.c (delete_frame_internal): Do not delete device when its
15411         implementation so declares.
15412         (delete_frame_internal): Set device selected frame to nil when
15413         last frame goes away.
15414
15415         * device-msw.c (msprinter_device_system_metrics): Implemented.
15416         (mswindows_device_system_metrics): Added 'device-dpi property.
15417
15418         * device.c: (Fdevice_printer_p): Added.
15419         Added 'offset-workspace device metric.
15420
15421         * console.h (device_metrics): Declared DM_offset_workspace.
15422
15423 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15424
15425         * fileio.c (Ffile_truename): Remove pointless and confusing
15426         initialization of elen.
15427
15428         * glyphs-widget.c: Compiler warning fixes.
15429
15430 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15431
15432         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15433         instead of a Lisp_Object as argument to make it consistent with
15434         the other LIVE_P macros.
15435         (CHECK_LIVE_PROCESS): New macro.
15436
15437         * process.c: Declare Qprocess_live_p.
15438         (Fprocess_live_p): New function.
15439         (create_process): Use PROCESS_LIVE_P.
15440         (read_process_output): Ditto.
15441         (set_process_filter): Ditto.
15442         (Fdelete_process): Ditto.
15443         (kill_buffer_processes): Ditto
15444         (process_send_signal): Use CHECK_LIVE_PROCESS.
15445         (Fprocess_input_coding_system): Check whether process is still
15446         alive (fix PR#1061).
15447         (Fprocess_output_coding_system): Ditto.
15448         (Fprocess_coding_system): Ditto.
15449         (Fset_process_input_coding_system): Ditto.
15450         (Fset_process_output_coding_system): Ditto.
15451
15452 2000-01-23  Andy Piper  <andy@xemacs.org>
15453
15454         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15455         layout and widget.
15456
15457         * glyphs.c (mark_image_instance): take into account changed
15458         image_instance format.
15459         (image_instance_equal): ditto.
15460         (image_instance_hash): ditto.
15461
15462         * glyphs-widget.c (widget_instantiate): Incorporate layout
15463         instantiation here. Delay layout of the layout until later.
15464         (layout_instantiate): deleted.
15465         (layout_query_geometry): new function. get the geometry of a
15466         layout.
15467         (layout_layout): layout a layout dynamically.
15468         (image_instantiator_widget): New function - splitting up
15469         image_instantiator_format_create_glyphs_widget for netwinder
15470         compilation.
15471         (image_instantiator_buttons):
15472         (image_instantiator_edit_fields):
15473         (image_instantiator_combo_box):
15474         (image_instantiator_scrollbar):
15475         (image_instantiator_progress_guage):
15476         (image_instantiator_tree_view):
15477         (image_instantiator_tab_control):
15478         (image_instantiator_labels):
15479         (image_instantiator_layout): ditto.
15480         (image_instantiator_format_create_glyphs_widget): Call preceding
15481         functions.
15482
15483 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15484
15485         * process.c (Fset_process_coding_system):
15486         * device-x.c (Fx_keysym_hash_table):
15487         Docstring fixes.
15488
15489         * lstream.c (Lstream_write): Return documented value, not 0.
15490
15491         * fileio.c (directory_file_name):
15492         (Fsubstitute_in_file_name):
15493         (Fsubstitute_insert_file_contents_internal):
15494         (Fwrite_region_internal):
15495         * emacs.c:
15496         * sysdep.c:
15497         * getloadavg.c:
15498         * systty.h:
15499         Remove vestigial APOLLO-conditional code.
15500
15501 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15502
15503         * getpagesize.h: Add guard macros.
15504         * libsst.h: Add guard macros.
15505         * libst.h: Add guard macros.
15506         * line-number.h: Add guard macros.
15507         * ndir.h: Add guard macros.
15508         * sysfloat.h: Add guard macros.
15509         * sysfile.h: Add guard macros.
15510         * sysproc.h: Add guard macros.
15511         * syswait.h: Add guard macros.
15512         * xintrinsic.h: Add guard macros.
15513         * xintrinsicp.h: Add guard macros.
15514         * xmmanager.h: Add guard macros.
15515         * xmmanagerp.h: Add guard macros.
15516         * xmprimitive.h: Add guard macros.
15517         * xmu.h: Add guard macros.
15518         * gpmevent.h: Add copyright statement. Add guard macros.
15519         * miscplay.h: Add guard macros.
15520         * *.h: Use consistent C-standards-approved guard macro names.
15521
15522         * opaque.c (make_opaque): Switch parameter order.
15523         * opaque.h (make_opaque): Switch parameter order.
15524         Update all callers.
15525         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15526
15527         * config.h.in (type_checking_assert): Added.
15528         (bufpos_checking_assert): Added.
15529
15530 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15531
15532         * alloc.c: Harmless pdump changes.
15533         - Use countof().
15534         - spell alignment correctly.
15535         * sysdep.c: Use countof()
15536
15537 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15538
15539         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15540         initially_selected_for_input() console method, default to 0.
15541         (semi_canonicalize_console_connection): Try to delegate to
15542         canonicalize_console_connection if no such console method.
15543         (canonicalize_console_connection): Vice versa.
15544         (print_console): Do not print nil connection.
15545
15546         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15547         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15548         (XDEVIMPF_FRAMELESS_OK): Added.
15549         (CONSOLE_INHERITS_METHOD): Added.
15550
15551         * console-msw.c (mswindows_canonicalize_console_connection):
15552         Added.
15553         (mswindows_canonicalize_device_connection): Added.
15554
15555         * console-msw.h (struct msprinter_device): Added this struct and
15556         accessor macros.
15557         (mswindows_device): Made fontlist a lisp object.
15558
15559         * device.c (semi_canonicalize_device_connection):  Try to delegate
15560         to canonicalize_device_connection if no such console method.
15561         (canonicalize_device_connection): Vice versa.
15562         (print_device): Do not print nil connection.
15563
15564         * device-msw.c (mswindows_init_device): Call InitCommonControls
15565         when have widgets.
15566         (mswindows_delete_device): Removed fontlist deallocation.
15567         (mswindows_mark_device): Added.
15568
15569         * events.c (event_equal): Added abort() at unreached code.
15570         (event_hash): Ditto.
15571
15572         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15573         fallback tags of Windows devices.
15574
15575         * general.c (syms_of_general): Initialized Qmsprinter.
15576
15577         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15578         of fallback tags of Windows devices.
15579
15580         * lisp.h: Declared Qmsprinter.
15581
15582         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15583         of strings.
15584         (mswindows_list_fonts): Ditto.
15585         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15586         that it can be used by both mswindows and msprinter devices.
15587         (initialize_font_instance): Added.
15588         (mswindows_initialize_font_instance): Use it.
15589         (msprinter_initialize_font_instance): Added.
15590
15591         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15592         and implementation flags check.
15593         (redisplay_without_hooks): Changed the call to the above.
15594         (Fredraw_device): Ditto.
15595         (Fredisplay_device): Ditto.
15596
15597         * redisplay-msw.c (get_frame_dc): Implemented.
15598         (get_frame_compdc): Implemented.
15599         (many functions): Use the two functions above to get device
15600         contexts, ether for a window or a printer.
15601
15602 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15603
15604         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15605         initialization here.
15606         (init_symbols_once_early): Call it.
15607         * emacs.c (main_1): Call it.
15608         * symsinit.h: Declare it.
15609
15610 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15611
15612         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15613         Lisp_Object.
15614         (pdump_backtrace): Ditto.
15615         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15616         (pdump_get_entry): Abort if trying to register a null pointer.
15617         (pdump_dump_data): Cleanup types when relocating.
15618         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15619         (pdump_dump_rtables): Remove bad casts.
15620         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15621         Lisp_Object instead of a EMACS_INT for the hashtable
15622         reorganization.
15623
15624 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15625
15626         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15627
15628         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15629
15630         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15631
15632         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15633
15634 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15635
15636         * faces.h (FACE_STRIKETHRU_P): Added.
15637
15638         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15639         of font variants.
15640
15641         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15642         (mswindows_set_dc_font): New function, aware of font variants,
15643         separated from mswindows_update_dc.
15644
15645         * objects-msw.h (struct mswindows_font_instance_data): Added
15646         definition.
15647
15648         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15649         cached fonts and the data structure.
15650         (mswindows_initialize_font_instance): Added creation of font data
15651         structure.
15652         (mswindows_print_font_instance): Print at least something.
15653         (mswindows_create_font_variant): Implemented.
15654         (mswindows_get_hfont): Implemented.
15655
15656 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15657
15658         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15659         prototyping problem with msvc.
15660
15661         * emacs.c (main_1): added syms_of_gui_mswindows() call
15662
15663         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15664         syms_of_gui_mswindows() function
15665
15666         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15667
15668 2000-01-18  Martin Buchholz <martin@xemacs.org>
15669
15670         * XEmacs 21.2.27 is released.
15671
15672 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15673
15674         * glyphs-eimage.c (struct tiff_error_struct):
15675         (tiff_error_func):
15676         (tiff_warning_func):
15677         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15678
15679         * unexmips.c:
15680         * unexhp9k3.c:
15681         * unexfreebsd.c:
15682         * unexec.c: Remove vestigial Lucid C code.
15683         * unexalpha.c:
15684         * unexaix.c:
15685         * termcap.c:
15686         * libsst.c: Ansify.
15687         Remove declarations of errno and strerror().
15688
15689         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15690
15691         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15692
15693 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15694
15695         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15696         Optimize.
15697
15698 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15699
15700         * md5.c:
15701         * file-coding.c:
15702         * file-coding.h:
15703         Change enum eol_type to eol_type_t.
15704
15705 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15706
15707         * gui.c (get_gui_callback): Check cons before accessing car.
15708
15709 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15710
15711         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15712         (XSETSPECIFIER_TYPE): Ditto.
15713
15714 2000-01-17  Didier Verna  <didier@xemacs.org>
15715
15716         * redisplay.c (generate_fstring_runes): compute string size in
15717         characters, not bytes.
15718
15719 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15720
15721         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15722
15723 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15724
15725         * print.c (print_error_message): Call print_prepare().
15726
15727 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15728
15729         * .dbxrc: Renamed from dbxrc.
15730
15731         * events.c (event_to_character):
15732         Use `assert (foo)' instead of `if (!foo) abort()'
15733
15734         * .gdbinit (xtype): Add documentation.
15735         * .gdbinit (check-temacs): New function.
15736         * .gdbinit (check-xemacs): New function.
15737         * dbxrc (check-xemacs): New function.
15738         * dbxrc (check-xemacs): New function.
15739
15740 2000-01-14  Andy Piper  <andy@xemacs.org>
15741
15742         * glyphs-widget.c (widget_query_geometry): Make sure that we
15743         calculate default dimensions correctly.
15744
15745 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15746
15747         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15748
15749         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15750         pdump_wire'd variable.
15751
15752         * emacs.c: (main_1): Conditionalized calls to
15753         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15754
15755 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15756
15757         * window.c (Fset_window_configuration):
15758         * sysdep.c (_start):
15759         * input-method-motif.c (res):
15760         * event-Xt.c (Xt_process_to_emacs_event):
15761         Simple compiler warning fixes.
15762
15763         * bytecode.c (funcall_compiled_function): Use the original
15764         function symbol on the backtrace list in preference to the
15765         compiled_function object in error messages.
15766
15767 2000-01-13  Andy Piper  <andy@xemacs.org>
15768
15769         * glyphs-x.c (update_widget_face): Make sure we update the widget
15770         background as well as foreground.
15771
15772 2000-01-13  Andy Piper  <andy@xemacs.org>
15773
15774         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15775         fields to subwindow.
15776         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15777         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15778         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15779         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15780
15781         * glyphs-widget.c (check_valid_tab_orientation): new function.
15782         (initialize_widget_image_instance): zero orientation and
15783         justification.
15784         (widget_instantiate): pick up orientation.
15785         (tab_control_query_geometry): return appropriate values for
15786         vertical tabs.
15787
15788         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15789         appropriate creation flags for left, right and bottom tabs.
15790
15791         * s/cygwin32.h: add tab definitions.
15792
15793 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15794
15795         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15796         frame upon hiding a subwindow.
15797         (mswindows_button_instantiate): Changed the push button style to
15798         BS_PUSHBUTTON.
15799         (mswindows_button_instantiate): Removed button BS_NOTIFY
15800         style.
15801         (mswindows_button_instantiate): Removed redundant check for
15802         a disabled gui item.
15803         (mswindows_button_instantiate): Made use of WS_TABSTOP
15804         consistent: "operable" controls (edit, button, tree, scroll) have
15805         this style, "display-only" ones (static, progress gauge) do
15806         not. This style is currently ignored by XEmacs though. Also,
15807         removed the WS_EX_CONTROLPARENT style - it is not for children,
15808         it is for their parents!
15809         (mswindows_edit_field_instantiate): Ditto.
15810         (mswindows_progress_gauge_instantiate): Ditto.
15811         (mswindows_tree_view_instantiate): Ditto.
15812         (mswindows_tab_control_instantiate): Ditto.
15813         (mswindows_scrollbar_instantiate): Ditto.
15814         (mswindows_combo_box_instantiate): Ditto.
15815         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15816         style to the "clip" window.
15817         (mswindows_button_instantiate): Removed compilation warning by
15818         equally typing terms of the ?: operator.
15819
15820 2000-01-12  Didier Verna  <didier@xemacs.org>
15821
15822         * redisplay.c (generate_fstring_runes): new parameter holding the
15823         last modeline-format extent.
15824         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15825         extent, fill the glyph block with it.
15826         (generate_fstring_runes): handle these parameters.
15827         (generate_formatted_string_db): ditto.
15828
15829         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15830         glyphs'extents in the modeline.
15831
15832 1999-01-11  Mike Woolley  <mike@bulsara.com>
15833
15834         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15835         256Mb, as a workaround for the non-starting problem many people
15836         have experienced.
15837
15838 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15839
15840         * console-tty.c (Fset_console_tty_output_coding_system):
15841         Force redrawing tty frame.
15842
15843 2000-01-10  Didier Verna  <didier@xemacs.org>
15844
15845         * redisplay.c (generate_fstring_runes): fix size computation bug.
15846
15847 2000-01-09  William M. Perry <wmperry@aventail.com>
15848
15849         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15850
15851 2000-01-09  Andy Piper  <andy@xemacs.org>
15852
15853         * glyphs-msw.c: index -> i to avoid shadows.
15854         (xbm_create_bitmap_from_data): make static.
15855         (check_valid_string_or_int): deleted.
15856         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15857
15858         * glyphs-x.c (x_update_subwindow): remove unused args.
15859
15860         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15861         back pointer - this is done in allocate_image_instance.
15862         (query_string_font): return Qnil to make the compiler happy.
15863         (unmap_subwindow): set to ~0 to make the compiler happy.
15864         (glyph_query_geometry): comment out until used.
15865         (glyph_layout): ditto.
15866
15867 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15868
15869         * insdel.c (signal_after_change): Remove extraneous unbind_to().