update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
4         defined.
5         (save_uint16_byte_table): Likewise.
6         (save_byte_table): Likewise.
7         (char_table_get_db): Use `chise_ds_load_char_feature_value'
8         instead of `chise_char_load_feature_value'.
9         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
10
11 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * chartab.h (struct Lisp_Char_Table): Delete member
14         `feature_table' if CHISE is defined.
15
16         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
17         (Fcopy_char_table): Likewise.
18         (char_table_open_db_maybe): Likewise.
19         (char_table_close_db_maybe): Likewise.
20         (char_table_get_db): Likewise.
21         (Fmount_char_attribute_table): Likewise.
22         (Fload_char_attribute_table): Likewise.
23
24 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * mule-charset.c (load_char_decoding_entry_maybe): Use
27         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
28         `chise_ccs_decode'.
29
30 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
31
32         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
33         instead of `chise_open_data_source'.
34         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
35         `chise_ds_close'.
36
37 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
40         instead of `chise_ds_open_feature_table'.
41         (char_table_close_db_maybe): Don't use `chise_ft_close'.
42
43 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * mule-charset.c (Fsave_charset_mapping_table): Use
46         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
47         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
48         `chise_ccs_sync' instead of `chise_ccst_close'.
49         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
50
51         * chartab.c (open_chise_data_source_maybe): Modify for
52         `chise_open_data_source'.
53         (char_table_open_db_maybe): Modify for
54         `chise_ds_open_feature_table'.
55
56 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
57
58         * mule-charset.c (load_char_decoding_entry_maybe): Use
59         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
60         `chise_ccst_close'.
61
62 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
63
64         * mule-charset.c (Fsave_charset_mapping_table): Use
65         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
66         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
67         `chise_dt_put_char' and `chise_dt_close'.
68         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
69         `chise_ccs_decode' and `chise_ccst_close' instead of
70         `chise_ds_open_decoding_table', `chise_dt_get_char' and
71         `chise_dt_close'.
72
73         * chartab.c (char_table_get_db): Use
74         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
75         (load_char_attribute_table_map_func): Modify for
76         `chise_char_feature_value_iterate'.
77         (Fload_char_attribute_table): Use
78         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
79
80 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
81
82         * chartab.c (put_char_table): Modify for inherited coded-charsets
83         in XEmacs CHISE.
84
85 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
86
87         * chartab.c (Fput_char_table_map_function): Fixed.
88         (word_boundary_p): Don't check charset in XEmacs CHISE.
89
90 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
91
92         * mule-charset.c (Fsave_charset_mapping_table): Use
93         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
94         instead of `chise_open_decoding_table'; refer
95         `default_chise_data_source'; use `chise_dt_close' instead of
96         `chise_close_decoding_table'.
97         (load_char_decoding_entry_maybe): Likewise.
98
99         * chartab.c (default_chise_data_source): New variable when `CHISE'
100         is defined.
101         (Fcopy_char_table): `ct->ds' is deleted.
102         (open_chise_data_source_maybe): New function.
103         (Fclose_char_data_source): New function.
104         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
105         use `chise_ds_open_feature_table' instead of
106         `chise_open_feature_table'.
107         (char_table_close_db_maybe): Use `chise_ft_close' instead of
108         `chise_close_feature_table'; `cit->ds' is deleted.
109         (syms_of_chartab): Add new builtin function
110         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
111
112         * chartab.h (default_chise_data_source): New extern variable.
113         (open_chise_data_source_maybe): New prototype.
114         (struct Lisp_Char_Table): Delete `ds'.
115
116 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
117
118         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
119         `CHISE' is defined.
120
121 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
122
123         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
124         not defined; add code for non-libchise setting.
125         (char_table_close_db_maybe): Likewise.
126         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
127         defined.
128         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
129         even if `CHISE' is not defined.
130         (Freset_char_attribute_table): Likewise.
131         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
132         `char_table_close_db_maybe' even if `CHISE' is not defined; use
133         `char_table_get_db'.
134         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
135         `char_table_close_db_maybe' even if `CHISE' is not defined.
136
137 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
138
139         * chartab.c (char_table_open_db_maybe): New function.
140         (char_table_close_db_maybe): New function.
141         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
142         (Freset_char_attribute_table): Likewise.
143         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
144         `char_table_close_db_maybe'.
145         (Fload_char_attribute_table): Likewise.
146
147 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
148
149         * chartab.c: Don't include <chise.h> because it is included in
150         chartab.h.
151         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
152         defined.
153         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
154         `CHISE' is defined.
155         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
156         `CHISE' is defined.
157         (Fclose_char_attribute_table): Close `ct->feature_table' and
158         `ct->ds' when `CHISE' is defined.
159         (Freset_char_attribute_table): Likewise.
160         (load_char_attribute_maybe): Use `cit->ds' and
161         `cit->feature_table' when `CHISE' is defined.
162         (Fload_char_attribute_table): Likewise.
163
164         * chartab.h: Include <chise.h> when `CHISE' is defined.
165         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
166         when `CHISE' is defined.
167
168 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
169
170         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
171         is defined.
172         (char_table_description): Likewise.
173         (Fmake_char_table): Likewise.
174         (Fcopy_char_table): Likewise.
175         (Fmount_char_attribute_table): Likewise.
176         (Fclose_char_attribute_table): Likewise.
177         (Freset_char_attribute_table): Likewise.
178         (load_char_attribute_maybe): Likewise.
179         (Fload_char_attribute_table): Likewise.
180
181         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
182         defined.
183
184 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
185
186         * chartab.c (load_char_attribute_table_map_func): New function
187         when CHISE is defined.
188         (Qload_char_attribute_table_map_function): Don't define when CHISE
189         is defined.
190         (Fload_char_attribute_table_map_function): Likewise.
191         (Fload_char_attribute_table): Use libchise when `CHISE' is
192         defined.
193         (syms_of_chartab): Don't define
194         `load-char-attribute-table-map-function' when CHISE is defined.
195
196 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
197
198         * chartab.c: Include <chise.h> when `CHISE' is defined.
199         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
200
201 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
202
203         * mule-charset.c (charset_code_point): Fix problem when searching
204         in mother CCS fails with `defined_only' mode.
205
206 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
207
208         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
209         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
210         (put_char_composition): Likewise.
211         (Fput_char_attribute): Likewise.
212         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
213
214 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
215
216         * chartab.c (Q_ucs): Deleted.
217         (Fput_char_attribute): Don't refer `->ucs'.
218         (Fdefine_char): Likewise.
219         (Ffind_char): Likewise.
220         (syms_of_chartab): Delete `->ucs'.
221
222 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
223
224         * mule-charset.c (Qmap_cns11643_2): Renamed from
225         `Qchinese_cns11643_2'.
226         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
227         `chinese-cns11643-2'.
228         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
229         `=cns11643-2'.
230
231 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
232
233         * mule-charset.c (Qmap_cns11643_1): Renamed from
234         `Qchinese_cns11643_1'.
235         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
236         `chinese-cns11643-1'.
237         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
238         `=cns11643-1'.
239
240 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
241
242         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
243         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
244         `chinese-gb12345'.
245         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
246         `=gb12345'.
247
248 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
249
250         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
251         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
252         `chinese-gb2312'.
253         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
254         `=gb2312'.
255
256 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
257
258         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
259         (syms_of_mule_charset): Add new symbol `=big5' instead of
260         `chinese-big5'.
261         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
262
263 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
264
265         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
266         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
267         `korean-ksc5601'.
268         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
269         `=ks-x1001'.
270
271 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
272
273         * mule-charset.c (Qmap_jis_x0212): Renamed from
274         `Qjapanese_jisx0212'.
275         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
276         `japanese-jisx0212'.
277         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
278         `=jis-x0212'.
279
280 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
281
282         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
283         `Qjapanese_jisx0208'.
284         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
285         of `japanese-jisx0208'.
286         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
287         `=jis-x0208-1983'.
288
289 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
290
291         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
292         `Qjapanese_jisx0208_1978'.
293         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
294         of `japanese-jisx0208-1978'.
295         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
296         `=jis-x0208-1978'.
297
298 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
299
300         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
301         only for XEmacs CHISE.
302
303 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
304
305         * char-ucs.h: Compact non-ISO-IR charset-ids.
306         (LEADING_BYTE_UCS): Changed to -177.
307         (LEADING_BYTE_CONTROL_1): Changed to -77.
308         (LEADING_BYTE_UCS_BMP): Changed to -176.
309         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
310
311 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
312
313         * mule-charset.c (Qiso_ir): New variable.
314         (Fmake_charset): Recognise new property `iso-ir'.
315         (syms_of_mule_charset): Add new symbol `iso-ir'.
316
317 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
318
319         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
320         n to -n; charset-id of non ISO-IR sets are changed to positive
321         numbers.
322
323 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
324
325         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
326         for &MCS-XXXXXXXX; values.
327
328 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
329
330         * mule.c (Vxemacs_chise_version): Renamed from
331         `Vutf_2000_version'.
332         (vars_of_mule): Add new variable `xemacs-chise-version'; define
333         `utf-2000-version' as an alias for `xemacs-chise-version'.
334
335 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
336
337         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
338         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
339         defined.
340
341         * config.h.in (CHISE): New macro.
342
343 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
344
345         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
346         of `ucs'.
347         (Qmap_ucs): New variable.
348         (syms_of_mule_charset): Add new symbol `=ucs'.
349         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
350
351         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
352         (simplify_char_spec): Likewise.
353
354         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
355
356         * char-ucs.h (Qmap_ucs): New extern variable.
357
358 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
359
360         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
361         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
362         don't define it when UTF2000 is not defined.
363         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
364         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
365         when UTF2000 is not defined.
366         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
367         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
368
369 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
370
371         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
372
373         * mule-charset.c (Vcharset_ucs_gb): Deleted.
374         (Qucs_gb): Deleted.
375         (syms_of_mule_charset): Delete `ucs-gb'.
376         (complex_vars_of_mule_charset): Likewise.
377
378 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
379
380         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
381
382         * mule-charset.c (Vcharset_ucs_cns): Deleted.
383         (Qucs_cns): Deleted.
384         (syms_of_mule_charset): Delete `ucs-cns'.
385         (complex_vars_of_mule_charset): Likewise.
386
387 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
388
389         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
390
391         * mule-charset.c (Vcharset_ucs_jis): Deleted.
392         (Qucs_jis): Deleted.
393         (syms_of_mule_charset): Delete `ucs-jis'.
394         (complex_vars_of_mule_charset): Likewise.
395
396 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
397
398         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
399
400         * mule-charset.c (Vcharset_ucs_ks): Deleted.
401         (Qucs_ks): Deleted.
402         (syms_of_mule_charset): Delete `ucs-ks'.
403         (complex_vars_of_mule_charset): Likewise.
404
405 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
406
407         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
408         (Qideograph_daikanwa_2): Deleted.
409         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
410         (complex_vars_of_mule_charset): Likewise.
411
412         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
413         (LEADING_BYTE_DAIKANWA_1): Deleted.
414         (LEADING_BYTE_DAIKANWA_2): Deleted.
415         (MIN_CHAR_DAIKANWA): Deleted.
416         (MAX_CHAR_DAIKANWA): Deleted.
417
418 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
419
420         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
421         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
422         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
423
424         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
425         (Vcharset_ideograph_daikanwa): Deleted.
426         (Qideograph_hanziku_{1..12}): Deleted.
427         (Qideograph_daikanwa): Deleted.
428         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
429         Vcharset_ideograph_daikanwa.
430         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
431         `ideograph-hanziku-{1..12}'.
432         (complex_vars_of_mule_charset): Likewise.
433
434 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
435
436         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
437
438         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
439         (Qideograph_gt_pj_{1..11}): Deleted.
440         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
441         (complex_vars_of_mule_charset): Likewise.
442
443 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
444
445         * mule-charset.c (Vcharset_ucs_big5): Deleted.
446         (Vcharset_ideograph_gt): Deleted.
447         (Qucs_big5): Deleted.
448         (Qideograph_gt): Deleted.
449         (syms_of_mule_charset): Delete symbol `ucs-big5' and
450         `ideograph-gt'.
451         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
452         and `ideograph-gt'.
453
454         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
455         (LEADING_BYTE_GT): Deleted.
456         (MIN_CHAR_GT): Deleted.
457         (MAX_CHAR_GT): Deleted.
458
459 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
460
461         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
462
463 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
464
465         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
466         (save_uint16_byte_table): Likewise.
467         (save_byte_table): Likewise; convert values by it.
468         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
469         for `ideographic-structure'.
470         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
471         as the filter for `ideographic-structure'.
472
473 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
474
475         * chartab.c (put_char_composition): New function.
476         (Fput_char_attribute): Use `put_char_composition'; use
477         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
478
479         * fns.c (simplify_char_spec): New function.
480         (char_ref_simplify_spec): New function.
481         (Fchar_refs_simplify_char_specs): New function.
482         (syms_of_fns): Add new builtin function
483         `char-refs-simplify-char-specs'.
484
485 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
486
487         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
488         (Qideograph_cbeta): Deleted.
489         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
490         (complex_vars_of_mule_charset): Likewise.
491
492         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
493         (MIN_CHAR_CBETA): Comment out.
494         (MAX_CHAR_CBETA): Likewise.
495
496 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
497
498         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
499         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
500         CHISE client feature.
501
502 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
503
504         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
505
506 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
507
508         * mule-charset.c (charset_lookup_description_1): Use
509         `NUM_LEADING_BYTES' in UTF-2000.
510
511 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
512
513         * char-ucs.h (GC_CHARSETP): Deleted.
514
515 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * char-ucs.h (MAX_CHAR_GT): Updated.
518
519 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
520
521         * text-coding.c: Sync with XEmacs 21.4.10.
522
523 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
524
525         * mule-charset.c (Vcharset_china3_jef): Deleted.
526         (Qchina3_jef): Deleted.
527         (syms_of_mule_charset): Don't define `china3-jef'.
528         (complex_vars_of_mule_charset): Likewise.
529
530         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
531         (MIN_CHAR_CHINA3_JEF): Comment out.
532         (MAX_CHAR_CHINA3_JEF): Comment out.
533
534 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
535
536         * mule-charset.c (Vcharset_ucs_gb): New variable.
537         (Qucs_gb): New variable.
538         (syms_of_mule_charset): Add new symbol `ucs-gb'.
539         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
540
541         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
542
543 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
544
545         * mule-charset.c (charset_code_point): if a coded-charset has a
546         final-byte, don't inherit the builtin range of the mother CCS.
547
548 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
549
550         * mule-charset.c (charset_code_point): Fix problem about
551         inheritance.
552
553 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
554
555         * mule-charset.c (decode_builtin_char): Reorganized.
556
557 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
558
559         * text-coding.c (char_encode_as_entity_reference): Modify for
560         `charset_code_point'.
561         (char_encode_shift_jis): Likewise.
562         (char_encode_big5): Likewise.
563         (char_encode_utf8): Likewise.
564         (char_encode_iso2022): Likewise.
565
566         * mule-charset.c (charset_code_point): Add new argument
567         `defined_only'.
568         (Fencode_char): Add new optional argument `defined_only'.
569
570         * chartab.c (put_char_table): Modify for `charset_code_point'.
571
572         * char-ucs.h (charset_code_point): Add new argument
573         `defined_only'.
574         (encode_char_1): Modify for `charset_code_point'.
575
576 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
577
578         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
579         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
580
581 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
582
583         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
584         (Qjis_x0208): Likewise.
585         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
586         XCHARSET_FINAL(charset).
587         (charset_code_point): Modify condition for final-byte based
588         builtin-chars.
589         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
590         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
591         in UTF-2000; specify `=jis-x0208' as the mother of
592         `japanese-jisx0208-1978', `japanese-jisx0208' and
593         `japanese-jisx0208-1990' in UTF-2000.
594
595 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
596
597         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
598
599 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
600
601         * text-coding.c (decode_coding_utf16): Support UTF-16.
602         (char_encode_utf16): Fixed.
603
604 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
605
606         * text-coding.c (Qutf16): New variable in MULE.
607         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
608         (Fcoding_system_type): Add `utf-16' in MULE.
609         (struct detection_state): Add a structure for utf16 in MULE.
610         (detect_coding_type): Setup st->utf16.mask in MULE.
611         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
612         MULE.
613         (reset_encoding_stream): Use `char_encode_utf16' and
614         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
615         (detect_coding_utf16): New function [incomplete].
616         (decode_coding_utf16): New function [support only UCS-2].
617         (char_encode_utf16): New function.
618         (char_finish_utf16): New function.
619         (syms_of_file_coding): Add new symbol `utf-16'; setup
620         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
621
622         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
623         UTF-2000.
624         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
625         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
626
627 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
628
629         * chartab.c (put_char_table): When a charset is specified as a
630         range in UTF-2000, don't support builtin characters.
631
632 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
633
634         * mule-charset.c (decode_defined_char): Don't refer external
635         database if Qunbound or Qnil are found.
636         (Fsave_charset_mapping_table): Don't define it if
637         HAVE_CHISE_CLIENT is not defined.
638         (Freset_charset_mapping_table): New function.
639         (load_char_decoding_entry_maybe): Store Qnil if a character is not
640         found in external database.
641         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
642         if HAVE_CHISE_CLIENT is not defined; add new builtin function
643         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
644
645 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
646
647         * text-coding.c (decode_coding_utf8): Check CCS is specified or
648         not.
649
650 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
651
652         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
653         Q_lowercase, Q_uppercase in UTF-2000.
654
655         * chartab.c (get_char_table): Add special code for the standard
656         case table to use character attribute `->downcase' and
657         `->uppercase' for case operations in UTF-2000.
658
659         * casetab.c (Qflippedcase): New variable in UTF-2000.
660         (Q_lowercase): Likewise.
661         (Q_uppercase): Likewise.
662         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
663         and `->uppercase' in UTF-2000.
664         (complex_vars_of_casetab): Assign attribute name `downcase' to
665         downcase and CANON table of Vstandard_case_table in UTF-2000;
666         assign attribute name `flippedcase' to upcase and EQV table of
667         Vstandard_case_table in UTF-2000.
668
669 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
670
671         * text-coding.c (decode_add_er_char): Support isolated-chars.
672         (char_encode_as_entity_reference): Likewise.
673
674 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
675
676         * emacs.c (Vutf_2000_lisp_directory): New variable.
677         (Vconfigure_utf_2000_lisp_directory): Likewise.
678         (complex_vars_of_emacs): Add new variable
679         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
680
681 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
682
683         * char-ucs.h (DECODE_CHAR): Delete special code for
684         `chinese-big5-1' and `chinese-big5-2'.
685
686         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
687         (Qbig5_2): Likewise.
688         (decode_defined_char): Support CONVERSION_BIG5_1 and
689         CONVERSION_BIG5_2.
690         (decode_builtin_char): Likewise.
691         (charset_code_point): Likewise.
692         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
693         'conversion in UTF-2000.
694         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
695         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
696         `chinese-big5-2' as children of `chinese-big5'.
697
698         * char-ucs.h (CONVERSION_BIG5_1): New macro.
699         (CONVERSION_BIG5_2): New macro.
700
701 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
702
703         * text-coding.c (char_encode_big5): Support entity-reference.
704
705 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
706
707         * text-coding.c (char_encode_as_entity_reference): New function.
708         (char_encode_utf8): Use `char_encode_as_entity_reference'.
709
710 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
711
712         * text-coding.c (decode_coding_big5): Support entity-reference
713         decoding feature.
714
715 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
716
717         * text-coding.c (allocate_coding_system): Initialize initial
718         charsets for CODESYS_UTF8.
719         (Fmake_coding_system): Accept charset-g0, charset-g1 and
720         charset-g2 for CODESYS_UTF8.
721         (decode_coding_utf8): Use charset-g0.
722         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
723         to force variants to map to UCS.
724
725 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
726
727         * text-coding.c (Qutf_8_mcs): New variable.
728         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
729         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
730         instead of `utf-8' in UTF-2000.
731
732 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
733
734         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
735         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
736         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
737         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
738         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
739         CONVERSION_96x96x96x96 are introduced.
740         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
741         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
742         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
743
744         * char-ucs.h (CONVERSION_94): New macro.
745         (CONVERSION_96): New macro.
746         (CONVERSION_94x94): New macro.
747         (CONVERSION_96x96): New macro.
748         (CONVERSION_94x94x94): New macro.
749         (CONVERSION_96x96x96): New macro.
750         (CONVERSION_94x94x94x60): New macro.
751         (CONVERSION_94x94x94x94): New macro.
752         (CONVERSION_96x96x96x96): New macro.
753
754 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
755
756         * chartab.c (Vcharacter_variant_table): Deleted.
757         (Fchar_variants): Use character-attribute `->ucs-variants' instead
758         of `Vcharacter_variant_table'.
759         (Fput_char_attribute): Likewise.
760         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
761         (complex_vars_of_chartab): Likewise.
762
763 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
764
765         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
766
767         * fns.c (Qideographic_structure): New variable.
768         (Qkeyword_char): New variable.
769         (ids_format_unit): New function.
770         (Fideographic_structure_to_ids): New function.
771         (syms_of_fns): Add new symbols `ideographic-structure' and
772         `:char'; add new builtin function `ideographic-structure-to-ids'.
773
774         * data.c (Fchar_ref_p): New function.
775         (syms_of_data): Add new builtin function `char-ref-p'.
776
777         * chartab.h: Add an EXFUN for `Ffind_char'.
778
779 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
780
781         * text-coding.c (Vcharacter_composition_table): Deleted.
782         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
783         in every UTF-2000.
784
785         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
786         UTF-2000.
787         (Vcharacter_composition_table): Deleted.
788         (Fget_composite_char): Use the implementation for external-DB
789         support in every UTF-2000.
790         (Fput_char_attribute): Likewise.
791         (char_attribute_system_db_file): Don't define if external-DB
792         feature is not available.
793         (Fsave_char_attribute_table): Likewise.
794         (Fmount_char_attribute_table): Likewise.
795         (Fclose_char_attribute_table): Likewise.
796         (Freset_char_attribute_table): Likewise.
797         (Fload_char_attribute_table): Likewise.
798         (syms_of_chartab): Don't define `save-char-attribute-table',
799         `mount-char-attribute-table', `reset-char-attribute-table',
800         `close-char-attribute-table' and `load-char-attribute-table' if
801         external-DB feature is not available.
802         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
803
804 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
805
806         * text-coding.c (Qcomposition): Add extern if external-DB feature
807         is supported.
808         (Vcharacter_composition_table): Don't add extern if external-DB
809         feature is supported.
810         (COMPOSE_ADD_CHAR): Modify for new data-representation of
811         character composition rule if external-DB feature is supported.
812
813         * chartab.c (Vcharacter_composition_table): Don't define if
814         external-DB feature is supported.
815         (Qcomposition): New variable.
816         (Fget_composite_char): New implementation for external-DB support.
817         (Fput_char_attribute): Use `composition' property of each
818         character instead of `Vcharacter_composition_table' to store
819         character-composition rules if external-DB feature is supported.
820         (syms_of_chartab): Add new symbol `composition'.
821         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
822         external-DB feature is supported.
823
824 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
825
826         * chartab.c (Vchar_db_stingy_mode): New variable.
827         (load_char_attribute_maybe): Close database if
828         Vchar_db_stingy_mode is not NIL.
829         (Fload_char_attribute_table_map_function): Use
830         `get_char_id_table_0' instead of `get_char_id_table'.
831         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
832
833         * chartab.h (get_char_id_table_0): New inline function.
834         (get_char_id_table): Use `get_char_id_table_0'.
835
836 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
837
838         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
839         and `COMPOSE_ADD_CHAR'.
840         (decode_coding_iso2022): Use `decode_flush_er_chars'.
841
842 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
843
844         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
845         instead of `DECODE_ADD_UCS_CHAR'.
846         (COMPOSE_ADD_CHAR): Likewise.
847
848 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
849
850         * text-coding.c (decode_flush_er_chars): New inline function.
851         (decode_add_er_char): New function.
852         (decode_coding_utf8): Use `decode_flush_er_chars' and
853         `decode_add_er_char'.
854
855 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
856
857         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
858         done before `decode_output_utf8_partial_char'.
859
860         * mule-charset.c (complex_vars_of_mule_charset): Specify
861         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
862         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
863
864 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * mule-charset.c (decode_defined_char): New function; search
867         mother.
868         (decode_builtin_char): Don't search mother if
869         XCHARSET_MAX_CODE(charset) == 0.
870         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
871         == 0 even if code >= XCHARSET_MAX_CODE(charset).
872         (Fdecode_char): Use `decode_defined_char' instead of
873         `DECODE_DEFINED_CHAR'.
874         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
875         mother of `Vcharset_ucs_jis'.
876
877         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
878         instead of `DECODE_DEFINED_CHAR'.
879
880         * char-ucs.h (decode_defined_char): Renamed from
881         `DECODE_DEFINED_CHAR'; changed to normal function.
882         (DECODE_CHAR): Use `decode_defined_char' instead of
883         `DECODE_DEFINED_CHAR'.
884
885         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
886
887 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
888
889         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
890
891         * text-coding.c (Vcoded_charset_entity_reference_alist): New
892         variable.
893         (Quse_entity_reference): New variable.
894         (Qd): New variable.
895         (Qx): New variable.
896         (QX): New variable.
897         (coding_system_description): Add description for
898         `ccs_priority_list'.
899         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
900         (allocate_coding_system): Initialize `ccs_priority_list' in
901         UTF-2000.
902         (Fmake_coding_system): Add description about
903         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
904         (codesys).
905         (Fcoding_system_property): Accept `disable-composition' and
906         `use-entity-reference' in UTF-2000.
907         (struct decoding_stream): Add new member `er_counter' and `er_buf'
908         in UTF-2000.
909         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
910         (decode_coding_utf8): Decode entity-reference if
911         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
912         (char_encode_utf8): Encode non-Unicode characters as
913         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
914         (str->codesys).
915         (syms_of_file_coding): Add new symbols `use-entity-reference',
916         `d', `x', `X'.
917         (vars_of_file_coding): Add new variable
918         `coded-charset-entity-reference-alist'.
919         (complex_vars_of_file_coding): Declare `disable-composition' and
920         `use-entity-reference' to be coding-system-properties in UTF-2000.
921
922         * file-coding.h (struct Lisp_Coding_System): Add new member
923         `use_entity_reference' and `ccs_priority_list'.
924         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
925         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
926         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
927
928 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
929
930         * chartab.c (save_uint8_byte_table): Don't clear the table.
931         (save_uint16_byte_table): Likewise.
932         (save_byte_table): Likewise.
933         (Fmount_char_attribute_table): New function.
934         (syms_of_chartab): Add new builtin function
935         `mount-char-attribute-table'.
936
937 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
938
939         * mule-charset.c (Fsave_charset_mapping_table): Open database as
940         "w+" mode.
941         (load_char_decoding_entry_maybe): Open database as read-only mode.
942
943         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
944         open database as "w+" mode.
945         (load_char_attribute_maybe): Open database as read-only mode.
946         (Fload_char_attribute_table): Likewise.
947
948 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
949
950         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
951         (char_table_description): Delete member `db_file'.
952         (Fmake_char_table): Don't refer `ct->db_file'.
953         (Fcopy_char_table): Likewise.
954         (Fsave_char_attribute_table): Likewise.
955         (Fclose_char_attribute_table): Likewise.
956         (Freset_char_attribute_table): Likewise.
957         (load_char_attribute_maybe): Likewise.
958         (Fload_char_attribute_table): Likewise.
959
960         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
961
962 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
963
964         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
965         (Fsave_char_attribute_table): Don't check `ct->db_file' if
966         `ct->db' is living.
967         (load_char_attribute_maybe): Likewise.
968         (Fload_char_attribute_table): Likewise.
969
970 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
971
972         * chartab.c (Fclose_char_attribute_table): Set Qnil on
973         `ct->db_file' unconditionally.
974
975 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
976
977         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
978         UTF-2000.
979         (char_table_description): Add description for `db_file' and `db'
980         in UTF-2000.
981         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
982         UTF-2000.
983         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
984         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
985         (Fclose_char_attribute_table): New function.
986         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
987         (load_char_attribute_maybe): Change interface; use `cit->db_file'
988         and `cit->db'.
989         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
990         (syms_of_chartab): Add new builtin function
991         `Fclose_char_attribute_table'.
992
993 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
994
995         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
996         `db' in UTF-2000.
997         (load_char_attribute_maybe): Change interface.
998         (get_char_id_table): Modify for `load_char_attribute_maybe'.
999
1000 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1001
1002         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1003
1004 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1005
1006         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1007         instead of `DECODE_CHAR' for mother; don't use special code for
1008         chinese-big5 to use code space of chinese-big5-1 and
1009         chinese-big5-2.
1010         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1011         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1012
1013         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1014         (MAX_CHAR_BIG5_CDP): Revival.
1015
1016 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1017
1018         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1019         the XLFD registry-encoding name of `chinese-big5'.
1020
1021 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1022
1023         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1024         (Qchinese_big5_cdp): Deleted.
1025         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1026         (complex_vars_of_mule_charset): Delete coded-charset
1027         `chinese-big5-cdp'.
1028
1029         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1030         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1031         `CHARSET_ID_OFFSET - n' for private CCS.
1032         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1033         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1034         of `MIN_LEADING_BYTE'.
1035         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1036         `(CHARSET_ID_OFFSET - 97)'.
1037         (MIN_CHAR_BIG5_CDP): Deleted.
1038         (MAX_CHAR_BIG5_CDP): Deleted.
1039
1040 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1041
1042         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1043
1044 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1045
1046         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1047         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1048         chartab.c].
1049
1050         * chartab.c (Vutf_2000_version): Moved to mule.c.
1051         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1052
1053 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1054
1055         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1056         when HAVE_CHISE_CLIENT is not defined.
1057
1058         * mule.c (vars_of_mule): Provide feature `chise' when
1059         HAVE_CHISE_CLIENT is defined.
1060
1061 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1062
1063         * config.h.in (UTF2000): Add comment.
1064         (HAVE_CHISE_CLIENT): New macro.
1065
1066 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1067
1068         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1069         CONSP.
1070         (Fput_char_attribute): Likewise.
1071         (char_attribute_system_db_file): Encode file-name of attribute.
1072         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1073         the initial value.
1074
1075 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1076
1077         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1078         (Fsave_charset_mapping_table): Use
1079         `char_attribute_system_db_file'.
1080         (load_char_decoding_entry_maybe): Likewise.
1081
1082         * chartab.h (Qsystem_char_id): New external variable.
1083         (char_attribute_system_db_file): New prototype.
1084
1085         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1086         (char_attribute_system_db_file): New function.
1087         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1088         (Freset_char_attribute_table): Likewise.
1089         (load_char_attribute_maybe): Likewise.
1090         (Fload_char_attribute_table): Likewise.
1091         (syms_of_chartab): Add new symbol `system-char-id'.
1092
1093 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1094
1095         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1096         `XCHARSET_GRAPHIC(ccs)'.
1097
1098 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1099
1100         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1101
1102 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1103
1104         * chartab.c (Q_ucs_variants): New variable.
1105         (syms_of_chartab): Add new symbol `->ucs-variants'.
1106         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1107         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1108         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1109
1110         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1111
1112         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1113         `HAVE_DATABASE' is defined.
1114         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1115         `HAVE_DATABASE' is defined.
1116
1117 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1118
1119         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1120         attribute-table.
1121         (Freset_char_attribute_table): New function.
1122         (syms_of_chartab): Add new builtin function
1123         `reset-char-attribute-table'.
1124
1125 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1126
1127         * chartab.c (load_char_attribute_maybe): Don't make directories.
1128
1129 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1130
1131         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1132
1133         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1134         for decoding-table.
1135
1136 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1137
1138         * mule-charset.c (Fsave_charset_mapping_table): Use
1139         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1140
1141         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1142         instead of `XCHARSET_CHARS'.
1143
1144 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1145
1146         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1147         (XCHARSET_BYTE_SIZE): Likewise.
1148
1149         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1150         mule-charset.c].
1151         (XCHARSET_BYTE_SIZE): Likewise.
1152
1153 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1154
1155         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1156         data-directory to store database.
1157         (Fsave_char_attribute_table): Likewise.
1158         (load_char_attribute_maybe): Likewise.
1159         (Fload_char_attribute_table): Likewise.
1160
1161 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1162
1163         * mule-charset.c (Fsave_charset_mapping_table): New function.
1164         (syms_of_mule_charset): Add new builtin function
1165         `save-charset-mapping-table'.
1166
1167 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1168
1169         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1170         (get_ccs_octet_table): New inline function.
1171         (put_ccs_octet_table): Likewise.
1172         (decoding_table_put_char): Use `get_ccs_octet_table' and
1173         `put_ccs_octet_table'.
1174         (decoding_table_remove_char): Use `decoding_table_put_char'.
1175         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1176
1177         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1178         into encoding_table.
1179         (make_charset): Use Qunbound instead Qnil as initial value of
1180         decoding_table.
1181
1182 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1183
1184         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1185         element is Qunloaded.
1186         (map_over_uint16_byte_table): Likewise.
1187         (map_over_byte_table): Likewise.
1188         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1189         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1190         database support, load encoding-table of the specified
1191         coded-charset if it is not loaded yet.
1192         (save_uint8_byte_table): New function of UTF-2000 with external
1193         database support.
1194         (save_uint16_byte_table): Likewise.
1195         (save_byte_table): Likewise.
1196         (Fput_char_attribute): Don't store value into external database
1197         even if the external database feature is supported in UTF-2000;
1198         set `attribute' as name of char-table if the external database
1199         feature is supported.
1200         (Fsave_char_attribute_table): New function in UTF-2000.
1201         (syms_of_chartab): Add new builtin function
1202         `save-char-attribute-table' in UTF-2000.
1203
1204 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1205
1206         * chartab.c (char_attribute_table_to_put): New variable in
1207         UTF-2000.
1208         (Qput_char_table_map_function): Likewise.
1209         (value_to_put): Likewise.
1210         (Fput_char_table_map_function): New function in UTF-2000.
1211         (put_char_table): Use `Fmap_char_attribute' for
1212         CHARTAB_RANGE_CHARSET in UTF-2000.
1213         (Fput_char_attribute): Store symbol instead of string in
1214         `XCHAR_TABLE_NAME (table)'.
1215         (load_char_attribute_maybe): Likewise.
1216         (syms_of_chartab): Add new symbol/function
1217         `put-char-table-map-function'.
1218
1219 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1220
1221         * database.h: Add new EXFUN for `Fmap_database'.
1222
1223         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1224         (syms_of_database): Likewise.
1225
1226         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1227         UTF-2000.
1228         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1229         (XCHAR_TABLE_UNLOADED): Likewise.
1230
1231         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1232         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1233         HAVE_DATABASE is defined.
1234         (char_attribute_table_to_load): New variable of UTF-2000 with
1235         external database support.
1236         (Qload_char_attribute_table_map_function): Likewise.
1237         (Fload_char_attribute_table_map_function): New function of
1238         UTF-2000 with external database support.
1239         (Fload_char_attribute_table): New function of UTF-2000.
1240         (Fmap_char_attribute): Call Fload_char_attribute_table if
1241         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1242         (syms_of_chartab): Add new symbol and function
1243         `load-char-attribute-table-map-function' in UTF-2000 with external
1244         database support; add new function `load-char-attribute-table' in
1245         UTF-2000.
1246
1247 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1248
1249         * chartab.h (load_char_attribute_maybe): New prototype for
1250         UTF-2000 with DATABASE support.
1251         (get_char_id_table): Use `load_char_attribute_maybe' if
1252         HAVE_DATABASE is defined.
1253
1254         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1255         with DATABASE support.
1256
1257 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1258
1259         * chartab.c (Fput_char_attribute): Use S-expression as key of
1260         external database.
1261
1262         * chartab.h (get_char_id_table): Use S-expression as key of
1263         external database.
1264
1265 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1266
1267         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1268         if an element is not loaded, load the corresponding attributes
1269         from an external database.
1270         (map_over_uint16_byte_table): Likewise.
1271         (map_over_byte_table): Likewise.
1272         (map_char_table): Modify for `map_over_uint8_byte_table',
1273         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1274         element is not loaded, load the corresponding attributes from an
1275         external database.
1276         (Fput_char_attribute): Change initial values to Qunloaded.
1277
1278         * chartab.h (get_char_id_table): If a character attribute is not
1279         loaded and the attribute value is not found in an external
1280         database, store Qunbound as the attribute value.
1281
1282 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1283
1284         * chartab.c (BT_UINT8_unloaded): New macro.
1285         (UINT8_VALUE_P): Accept Qunloaded.
1286         (UINT8_ENCODE): Likewise.
1287         (UINT8_DECODE): Likewise.
1288         (BT_UINT16_unloaded): New macro.
1289         (UINT16_VALUE_P): Accept Qunloaded.
1290         (UINT16_ENCODE): Likewise.
1291         (UINT16_DECODE): Likewise.
1292         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1293         BT_UINT16_unloaded.
1294         (mark_char_table): Mark `ct->name' in UTF-2000.
1295         (char_table_description): Add `name' in UTF-2000.
1296         (Fmake_char_table): Initialize `ct->name'.
1297         (Fcopy_char_table): Copy `ct->name'.
1298         (Fput_char_attribute): Store value into an external database if
1299         HAVE_DATABASE is defined.
1300
1301         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1302         UTF-2000.
1303         (CHAR_TABLE_NAME): New macro in UTF-2000.
1304         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1305         (get_char_id_table): Try to read an external database if Qunloaded
1306         is stored in a table.
1307
1308         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1309         Qunloaded.
1310
1311 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1312
1313         * database.h: Add EXFUN definitions for Fopen_database,
1314         Fput_database, Fget_database and Fclose_database.
1315
1316         * data.c (Qunloaded): New variable in UTF-2000.
1317
1318         * lisp.h (Qunloaded): New variable in UTF-2000.
1319
1320 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1321
1322         * mule-charset.c (put_char_ccs_code_point): Modify for
1323         `decoding_table_remove_char' and `decoding_table_put_char'.
1324         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1325
1326         * char-ucs.h (decoding_table_remove_char): Change arguments to
1327         hide decoding_table vector.
1328         (decoding_table_put_char): Likewise.
1329
1330 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1331
1332         * mule-charset.c (decoding_table_remove_char): Moved to
1333         char-ucs.h.
1334         (decoding_table_put_char): Likewise.
1335
1336         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1337         from mule-charset.c].
1338         (decoding_table_remove_char): New inline function [moved from
1339         mule-charset.c].
1340         (decoding_table_put_char): Likewise.
1341
1342 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1343
1344         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1345         extension.
1346
1347 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1348
1349         * mule-charset.c (decode_builtin_char): Support mother charsets.
1350
1351 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1352
1353         * mule-charset.c (Q94x94x60): New variable.
1354         (charset_code_point): Support conversion `94x94x60'.
1355         (Fmake_charset): Likewise.
1356         (syms_of_mule_charset): Add new symbol `94x94x60'.
1357
1358         * char-ucs.h (CONVERSION_94x94x60): New macro.
1359
1360 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1361
1362         * mule-charset.c (charset_code_point): Unify code about
1363         `code-offset'.
1364
1365 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1366
1367         * mule-charset.c (charset_code_point): Merge code about builtin
1368         characters into code about mother charsets; don't use
1369         `range_charset_code_point'.
1370         (range_charset_code_point): Deleted.
1371
1372 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1373
1374         * mule-charset.c (Qcode_offset): New variable.
1375         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1376         `max-code'; accept new property `code-offset'.
1377         (syms_of_mule_charset): Add new symbol `code-offset'.
1378
1379 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1380
1381         * mule-charset.c (range_charset_code_point): Fixed.
1382
1383 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384
1385         * mule-charset.c (decode_builtin_char): Change semantics of
1386         code-offset of coded-charset.
1387         (charset_code_point): Likewise.
1388         (range_charset_code_point): Likewise.
1389         (complex_vars_of_mule_charset): Modify for the change.
1390
1391 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1392
1393         * mule-charset.c (Fencode_char): Reverse arguments.
1394
1395         * mule-charset.c (charset_code_point): Fixed.
1396
1397 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1398
1399         * mule-charset.c (Vcharset_mojikyo): Deleted.
1400         (Vcharset_mojikyo_2022_1): Deleted.
1401         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1402         (Qmin_code): New variable in UTF-2000.
1403         (Qmax_code): Likewise.
1404         (Qmother): Likewise.
1405         (Qconversion): Likewise.
1406         (Q94x60): Likewise.
1407         (Qmojikyo): Deleted.
1408         (Qmojikyo_2022_1): Deleted.
1409         (Qmojikyo_pj_{1..22}): Deleted.
1410         (mark_charset): Mark `cs->mother'.
1411         (charset_description): Add description for `mother'.
1412         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1413         new arguments `mother' and `conversion'; use
1414         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1415         (charset_code_point): Moved from char-ucs.h; support `mother'
1416         charset feature.
1417         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1418         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1419         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1420         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1421         allow 2 as the value of `graphic' in UTF-2000; add new properties
1422         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1423         require `final' in UTF-2000; modify for `make_charset'.
1424         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1425         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1426         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1427         (Fencode_char): New function.
1428         (syms_of_mule_charset): Add new builtin function `encode-char' in
1429         UTF-2000; add new symbols `min-code', `max-code', `mother',
1430         `conversion' and `94x60'; delete symbols `mojikyo',
1431         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1432         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1433         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1434         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1435
1436         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1437         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1438
1439         * char-ucs.h (Vcharset_mojikyo): Deleted.
1440         (Vcharset_mojikyo_2022_1): Deleted.
1441         (LEADING_BYTE_MOJIKYO): Deleted.
1442         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1443         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1444         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1445         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1446         add new member `mother'; add new member `conversion'.
1447         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1448         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1449         (CHARSET_MOTHER): New macro.
1450         (CHARSET_CONVERSION): New macro.
1451         (CONVERSION_IDENTICAL): New macro.
1452         (CONVERSION_94x60): New macro.
1453         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1454         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1455         (XCHARSET_MOTHER): New macro.
1456         (XCHARSET_CONVERSION): New macro.
1457         (MIN_CHAR_MOJIKYO): Deleted.
1458         (MAX_CHAR_MOJIKYO): Deleted.
1459         (DECODE_MOJIKYO_2022): Deleted.
1460         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1461         (charset_code_point): Changed to non-inline function.
1462         (encode_char_1): Use `charset_code_point'.
1463         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1464
1465 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1466
1467         * lread.c (read_compiled_function): Fix prototype.
1468         (read_vector): Likewise.
1469
1470 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1471
1472         * lrecord.h (struct lrecord_header): Delete `older'.
1473         (set_lheader_implementation): Delete code for `older'.
1474         (set_lheader_older_implementation): Deleted.
1475         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1476         (OLDER_RECORD_P): Deleted.
1477         (OLDER_RECORD_HEADER_P): Deleted.
1478         (alloc_older_lcrecord): Deleted.
1479         (alloc_older_lcrecord_type): Deleted.
1480
1481         * alloc.c (all_older_lcrecords): Deleted.
1482         (alloc_older_lcrecord): Deleted.
1483         (disksave_object_finalization_1): Delete code for older objects.
1484         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1485         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1486
1487 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1488
1489         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1490         instead of `make_older_vector'.
1491         (put_char_ccs_code_point): Likewise.
1492         (mark_charset): Mark `cs->decoding_table'.
1493         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1494
1495         * lisp.h (make_older_vector): Deleted.
1496         (make_vector_newer): Deleted.
1497
1498         * config.h.in (HAVE_GGC): Deleted.
1499
1500         * alloc.c (make_older_vector): Deleted.
1501         (make_vector_newer_1): Deleted.
1502         (make_vector_newer): Deleted.
1503
1504 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1505
1506         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1507         (Qideograph_daikanwa_2): New variable.
1508         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1509         (complex_vars_of_mule_charset): Add new coded-charset
1510         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1511         `LEADING_BYTE_DAIKANWA'.
1512
1513         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1514         (LEADING_BYTE_DAIKANWA_1): New macro.
1515         (LEADING_BYTE_DAIKANWA_2): New macro.
1516         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1517
1518 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1519
1520         * mule-charset.c (complex_vars_of_mule_charset): Change
1521         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1522         the second revised version.
1523
1524 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1525
1526         * mule-charset.c (Vcharset_ucs_smp): New variable.
1527         (Vcharset_ucs_sip): New variable.
1528         (Qucs_smp): New variable.
1529         (Qucs_sip): New variable.
1530         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1531         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1532         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1533         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1534         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1535         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1536
1537         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1538         (LEADING_BYTE_UCS_SIP): New macro.
1539         (MIN_CHAR_SMP): New macro.
1540         (MAX_CHAR_SMP): New macro.
1541         (MIN_CHAR_SIP): New macro.
1542         (MAX_CHAR_SIP): New macro.
1543
1544 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1545
1546         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1547         utf-2000.
1548
1549 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1550
1551         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1552         value; don't store value into `encoding_table' of `Lisp_Charset'.
1553         (mark_charset): `encoding_table' was deleted.
1554         (charset_description): Likewise.
1555         (make_charset): Likewise.
1556         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1557         `put_char_ccs_code_point'.
1558
1559         * chartab.h (Fput_char_attribute): New EXFUN.
1560
1561         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1562         is unified with normal symbol space.
1563         (Fget_char_attribute): Likewise.
1564         (Fput_char_attribute): Likewise; behavior of
1565         `put_char_ccs_code_point' is changed.
1566
1567         * char-ucs.h: Include "elhash.h".
1568         (Vchar_attribute_hash_table): New external variable.
1569         (struct Lisp_Charset): Delete `encoding_table'.
1570         (CHARSET_ENCODING_TABLE): New implementation; refer
1571         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1572         `Lisp_Charset'.
1573
1574 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1575
1576         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1577         (cs) == 0.
1578
1579 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1580
1581         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1582         `chinese-big5'.
1583
1584 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1585
1586         * chartab.c (uint8_byte_table_description): New constant.
1587         (uint8-byte-table): Use `uint8_byte_table_description'.
1588         (uint16_byte_table_description): New constant.
1589         (uint16-byte-table): Use `uint16_byte_table_description'.
1590
1591 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1592
1593         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1594         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1595
1596 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1597
1598         * mule-charset.c (Vcharset_ucs_ks): New variable.
1599         (Qucs_ks): New variable.
1600         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1601         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1602
1603         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1604
1605 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606
1607         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1608         (Fdecode_char): Likewise.
1609
1610         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1611         chartab.h.
1612         (Fdefine_char): Modify for Fdecode_char.
1613         (Ffind_char): Likewise.
1614
1615         * mule-charset.c (Fdecode_char): Add new optional argument
1616         `defined-only'.
1617         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1618
1619 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1620
1621         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1622         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1623         (allocate_coding_system): Initialize initial-charsets of
1624         CODESYS_BIG5 in XEmacs UTF-2000.
1625         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1626         CODESYS_BIG5 in XEmacs UTF-2000.
1627         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1628         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1629
1630         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1631         variables.
1632         (Qideograph_hanziku_{1 .. 12}): Likewise.
1633         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1634         .. 12}'.
1635         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1636         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1637         `ideograph-hanziku-{1 .. 12}'.
1638
1639         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1640         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1641         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1642         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1643         (DECODE_DEFINED_CHAR): New inline function.
1644         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1645
1646 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1647
1648         * mule-charset.c (Vcharset_china3_jef): Renamed from
1649         `Vcharset_japanese_jef_china3'.
1650         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1651         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1652         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1653         (syms_of_mule_charset): Rename `china3-jef' from
1654         `japanese-jef-china3'.
1655         (complex_vars_of_mule_charset): Likewise; rename
1656         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1657
1658         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1659         `LEADING_BYTE_JEF_CHINA3'.
1660         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1661         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1662
1663 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1664
1665         * mule-charset.c (encode_builtin_char_1): Comment out special code
1666         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1667
1668         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1669         (MAX_CHAR_MOJIKYO_0): Comment out.
1670         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1671         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1672         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1673         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1674
1675 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1676
1677         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1678         (Qideograph_cbeta): New variable.
1679         (encode_builtin_char_1): Comment out special code for
1680         coded-charset `mojikyo' and `japanese-jef-china3'.
1681         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1682         (complex_vars_of_mule_charset): Add new coded-charset
1683         `ideograph-cbeta'.
1684
1685         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1686         (MIN_CHAR_CBETA): New macro.
1687         (MAX_CHAR_CBETA): New macro.
1688
1689 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1690
1691         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1692         (LEADING_BYTE_JEF_CHINA3): New macro.
1693         (MIN_CHAR_JEF_CHINA3): New macro.
1694         (MAX_CHAR_JEF_CHINA3): Likewise.
1695         (DECODE_CHAR): Fixed.
1696
1697 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1698
1699         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1700         (Qjapanese_jef_china3): New variable.
1701         (encode_builtin_char_1): Support `japanese-jef-china3'.
1702         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1703         (complex_vars_of_mule_charset): Add new coded-charset
1704         `japanese-jef-china3'.
1705
1706 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1707
1708         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1709         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1710         94^4, 96^3, 96^4, 128^n and 256^n set.
1711         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1712         (map_char_table): Likewise.
1713
1714 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1715
1716         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1717         UTF-2000.
1718
1719 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1720
1721         * chartab.h (get_char_id_table): New inline function.
1722
1723         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1724         function.
1725
1726 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727
1728         * chartab.h (decode_char_table_range): New prototype in XEmacs
1729         UTF-2000.
1730         (put_char_id_table): New inline function in XEmacs UTF-2000.
1731
1732         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1733         function.
1734         (decode_char_table_range): Delete static declaration in XEmacs
1735         UTF-2000.
1736
1737 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1738
1739         * chartab.c (put_char_id_table): Use `put_char_table'.
1740
1741 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1742
1743         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1744         (map_over_uint16_byte_table): Likewise.
1745         (map_over_byte_table): Likewise.
1746         (map_char_table): Modify for `map_over_uint8_byte_table',
1747         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1748         UTF-2000.
1749
1750 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1751
1752         * chartab.c (struct map_char_table_for_charset_arg): New
1753         structure.
1754         (map_char_table_for_charset_fun): New function.
1755         (map_char_table): Use `map_char_table' for encoding_table of
1756         `range->charset'.
1757
1758 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1759
1760         * chartab.c (map_char_table): Check a character is found in
1761         range->charset instead of non default value is defined in
1762         char-table when range is CHARTAB_RANGE_ROW.
1763
1764 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1765
1766         * chartab.c (map_char_id_table): Deleted.
1767         (Fmap_char_attribute): Use `map_char_table' instead of
1768         `map_char_id_table'.
1769
1770 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1771
1772         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1773         UTF-2000.
1774         (update_syntax_table): Deleted in XEmacs UTF-2000.
1775
1776         * syntax.c (find_defun_start): Use `syntax_table' instead of
1777         `mirror_syntax_table' in XEmacs UTF-2000.
1778         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1779         UTF-2000.
1780         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1781         XEmacs UTF-2000.
1782         (Fmatching_paren): Likewise.
1783         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1784         in XEmacs UTF-2000.
1785         (find_start_of_comment): Likewise.
1786         (find_end_of_comment): Likewise.
1787         (Fforward_comment): Likewise.
1788         (scan_lists): Likewise.
1789         (char_quoted): Likewise.
1790         (Fbackward_prefix_chars): Likewise.
1791         (scan_sexps_forward): Likewise.
1792         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1793         (update_syntax_table): Likewise.
1794
1795         * search.c (skip_chars): Use `syntax_table' instead of
1796         `mirror_syntax_table' in XEmacs UTF-2000.
1797         (wordify): Likewise.
1798         (Freplace_match): Likewise.
1799
1800         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1801         `mirror_syntax_table' in XEmacs UTF-2000.
1802         (WORDCHAR_P_UNSAFE): Likewise.
1803         (re_match_2_internal): Likewise.
1804
1805         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1806         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1807
1808         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1809         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1810
1811         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1812         XEmacs UTF-2000.
1813
1814         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1815         UTF-2000.
1816         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1817         (char_table_description): Delete `mirror_table' in XEmacs
1818         UTF-2000.
1819         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1820         UTF-2000.
1821         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1822         (Fcopy_char_table): Likewise.
1823         (put_char_table): Don't call `update_syntax_table' in XEmacs
1824         UTF-2000.
1825
1826         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1827         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1828         (casify_region_internal): Likewise.
1829
1830         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1831
1832         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1833         `mirror_syntax_table' in XEmacs UTF-2000.
1834
1835         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1836         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1837         (Fexpand_abbrev): Likewise.
1838
1839 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1840
1841         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1842
1843 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1844
1845         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1846         (map_over_uint16_byte_table): Likewise.
1847         (map_over_byte_table): Likewise.
1848         (get_char_id_table): Refer `cit->default_value'.
1849         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1850         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1851         of character-id ranges.
1852         (mark_char_table): Mark `ct->default_value'.
1853         (char_table_description): Add `default_value'.
1854         (fill_char_table): Use `default_value'.
1855         (decode_char_table_range): Decode `nil' as
1856         `CHARTAB_RANGE_DEFAULT'.
1857         (get_char_id_table): Refer `cit->default_value'.
1858         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1859         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1860         temporary hack; check value of char-table is bound or not.
1861         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1862
1863         * chartab.h (struct Lisp_Char_Table): Add new member
1864         `default_value' in XEmacs UTF-2000.
1865         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1866         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1867         UTF-2000.
1868
1869 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1870
1871         * chartab.h (Lisp_Char_ID_Table): Deleted.
1872
1873         * chartab.c (char_table_description): Fix typo.
1874         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1875         `Lisp_Char_ID_Table'.
1876
1877 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1878
1879         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1880         `CHAR_ID_TABLE_P'.
1881
1882         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1883         `CHAR_ID_TABLE_P'.
1884
1885         * chartab.h (XCHAR_ID_TABLE): Deleted.
1886         (XSETCHAR_ID_TABLE): Deleted.
1887         (CHAR_ID_TABLE_P): Deleted.
1888
1889         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1890         `CHAR_ID_TABLE_P'.
1891         (Fget_composite_char): Likewise.
1892         (put_char_table): Likewise.
1893         (add_char_attribute_alist_mapper): Fixed.
1894         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1895         `CHAR_ID_TABLE_P'.
1896         (Fget_char_attribute): Likewise.
1897         (Fget_char_attribute): Likewise.
1898         (Fmap_char_attribute): Likewise.
1899
1900         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1901         `CHAR_ID_TABLE_P'.
1902         (encode_char_1): Likewise.
1903
1904 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1907         `XCHAR_ID_TABLE'.
1908
1909         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1910         instead of `XCHAR_ID_TABLE'.
1911         (remove_char_ccs): Likewise.
1912
1913         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1914         `XCHAR_ID_TABLE'.
1915         (Fget_composite_char): Likewise.
1916         (Fchar_variants): Likewise.
1917         (put_char_table): Likewise.
1918         (add_char_attribute_alist_mapper): Likewise.
1919         (Fchar_attribute_alist): Likewise.
1920         (Fget_char_attribute): Likewise.
1921         (Fput_char_attribute): Likewise.
1922         (Fmap_char_attribute): Likewise.
1923         (Fmap_char_attribute): Likewise.
1924
1925         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1926         `XCHAR_ID_TABLE'.
1927         (encode_char_1): Likewise.
1928
1929 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1930
1931         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1932         `Lisp_Char_ID_Table'.
1933         (mark_char_id_table): Deleted.
1934         (print_char_id_table): Likewise.
1935         (char_id_table_equal): Likewise.
1936         (char_id_table_hash): Likewise.
1937         (char_id_table_description): Likewise.
1938         (char_id_table): Likewise.
1939         (make_char_id_table): Use `Fmake_char_table' and
1940         `fill_char_table'.
1941         (get_char_id_table): Use `Lisp_Char_Table' instead of
1942         `Lisp_Char_ID_Table'.
1943         (put_char_id_table): Likewise.
1944         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1945         `XCHAR_ID_TABLE'.
1946         (Fremove_char_attribute): Likewise.
1947         (syms_of_chartab): Don't define type `char-id-table'.
1948
1949         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1950         (char_id_table): Likewise.
1951         (GC_CHAR_ID_TABLE_P): Likewise.
1952         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1953         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1954         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1955         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1956         (get_char_id_table): Use `Lisp_Char_Table' instead of
1957         `Lisp_Char_ID_Table'.
1958         (put_char_id_table_0): Likewise.
1959         (put_char_id_table): Likewise.
1960
1961 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1962
1963         * chartab.h: Lisp_Byte_Table related codes are moved from
1964         chartab.h.
1965
1966         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1967
1968 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1969
1970         * chartab.h: Don't include "chartab.h".
1971         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1972         (Lisp_Char_ID_Table): Likewise.
1973         (char_id_table): Likewise.
1974         (XCHAR_ID_TABLE): Likewise.
1975         (XSETCHAR_ID_TABLE): Likewise.
1976         (CHAR_ID_TABLE_P): Likewise.
1977         (GC_CHAR_ID_TABLE_P): Likewise.
1978         (get_char_id_table): Likewise.
1979
1980         * char-ucs.h: Include "chartab.h".
1981         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1982         (Lisp_Char_ID_Table): Likewise.
1983         (char_id_table): Likewise.
1984         (XCHAR_ID_TABLE): Likewise.
1985         (XSETCHAR_ID_TABLE): Likewise.
1986         (CHAR_ID_TABLE_P): Likewise.
1987         (GC_CHAR_ID_TABLE_P): Likewise.
1988         (get_char_id_table): Likewise.
1989
1990 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1991
1992         * chartab.c (copy_uint8_byte_table): New function.
1993         (copy_uint16_byte_table): New function.
1994         (copy_byte_table): New function.
1995         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1996         characters to call.
1997         (map_over_uint16_byte_table): Likewise.
1998         (map_over_byte_table): Likewise.
1999         (get_byte_table): Move prototype to chartab.h.
2000         (put_byte_table): Likewise.
2001         (put_char_id_table_0): Moved to chartab.h.
2002         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2003         (char_table_entry_equal): Likewise.
2004         (char_table_entry_hash): Likewise.
2005         (char_table_entry_description): Likewise.
2006         (char_table_entry): Likewise.
2007         (make_char_table_entry): Likewise.
2008         (copy_char_table_entry): Likewise.
2009         (get_non_ascii_char_table_value): Likewise.
2010         (map_over_charset_ascii): Likewise.
2011         (map_over_charset_control_1): Likewise.
2012         (map_over_charset_row): Likewise.
2013         (map_over_other_charset): Likewise.
2014         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2015         (print_char_table): Likewise.
2016         (char_table_equal): Likewise.
2017         (char_table_hash): Likewise.
2018         (char_table_description): Likewise.
2019         (fill_char_table): Likewise.
2020         (Fcopy_char_table): Likewise.
2021         (get_char_table): Likewise.
2022         (Fget_range_char_table): Likewise.
2023         (put_char_table): Likewise.
2024         (map_char_table): Likewise.
2025         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2026         UTF-2000.
2027
2028 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2029
2030         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2031         `Vauto_fill_chars' in XEmacs UTF-2000.
2032
2033         * chartab.h (get_byte_table): New prototype [moved from
2034         chartab.c].
2035         (put_byte_table): Likewise [moved from chartab.c].
2036         (put_char_id_table_0): New inline function [moved from chartab.c].
2037         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2038         (Lisp_Char_Table_Entry): Likewise.
2039         (char_table_entry): Likewise.
2040         (XCHAR_TABLE_ENTRY): Likewise.
2041         (XSETCHAR_TABLE_ENTRY): Likewise.
2042         (CHAR_TABLE_ENTRYP): Likewise.
2043         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2044         (NUM_ASCII_CHARS): Likewise.
2045         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2046         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2047
2048 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2049
2050         * chartab.c (get_char_id_table): Change interface.
2051         (put_char_id_table_0): New function.
2052         (put_char_id_table): Change interface; new implementation.
2053         (Fget_composite_char): Modify for interface change of
2054         `get_char_id_table'.
2055         (Fchar_variants): Likewise.
2056         (add_char_attribute_alist_mapper): Likewise.
2057         (Fchar_attribute_alist): Likewise.
2058         (Fget_char_attribute): Likewise.
2059         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2060         as same as character as the first argument like `put-char-table';
2061         modify for interface change of `put_char_id_table'.
2062         (Fremove_char_attribute): Modify for interface change of
2063         `put_char_id_table'.
2064
2065 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * text-coding.c: Sync up with XEmacs 21.2.41.
2068         (COMPOSE_ADD_CHAR): Modify for interface change of
2069         `get_char_id_table'.
2070
2071         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2072         change of `put_char_id_table'.
2073         (remove_char_ccs): Likewise.
2074
2075         * chartab.h (put_char_id_table): Change interface.
2076
2077         * char-ucs.h (get_char_id_table): Change interface.
2078         (charset_code_point): Modify for interface change of
2079         `get_char_id_table'.
2080         (encode_char_1): Likewise.
2081
2082 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2083
2084         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2085         argument `ccs'.
2086         (map_over_uint16_byte_table): Likewise.
2087         (map_over_byte_table): Likewise.
2088         (map_char_id_table): Add new argument `range' like
2089         `map_char_table'.
2090         (Fmap_char_attribute): Add new argument `range' like
2091         `Fmap_char_table'.
2092
2093 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2094
2095         * chartab.c (map_over_uint8_byte_table): Change interface of
2096         mapping function to use struct chartab_range instead of Emchar.
2097         (map_over_uint16_byte_table): Likewise.
2098         (map_over_byte_table): Likewise.
2099         (map_char_id_table): Likewise.
2100         (struct slow_map_char_id_table_arg): Deleted.
2101         (slow_map_char_id_table_fun): Deleted.
2102         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2103         function `slow_map_char_table_fun' instead of struct
2104         `slow_map_char_id_table_arg' and function
2105         `slow_map_char_id_table_fun'.
2106
2107 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2108
2109         * mule-charset.c: Move char-it-table related codes to chartab.c.
2110         (Vutf_2000_version): Moved to chartab.c.
2111         (Fdefine_char): Likewise.
2112         (Ffind_char): Likewise.
2113         (syms_of_mule_charset): Move types `uint8-byte-table',
2114         `uint16-byte-table', `byte-table' and `char-id-table' to
2115         chartab.c; move functions `char_attribute_list,
2116         `find_char_attribute_table, `char_attribute_alist,
2117         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2118         `map_char_attribute, `define_char, `find_char, `char_variants and
2119         `get_composite_char to chartab.c; move symbols `=>ucs',
2120         `->decomposition', `compat', `isolated', `initial', `medial',
2121         `final', `vertical', `noBreak', `fraction', `super', `sub',
2122         `circle', `square', `wide', `narrow', `small' and `font' to
2123         chartab.c.
2124         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2125         setting codes for `Vcharacter_composition_table' and
2126         `Vcharacter_variant_table' to chartab.c.
2127         (complex_vars_of_mule_charset): Move setting code for
2128         `Vchar_attribute_hash_table' to chartab.c.
2129
2130         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2131         (make_char_id_table): New prototype.
2132         (put_char_id_table): Likewise.
2133         (Fget_char_attribute): Likewise.
2134
2135         * chartab.c: Move char-id-table related code from mule-charset.c.
2136         (Vutf_2000_version): Moved from mule-charset.c.
2137
2138         * char-ucs.h (Qucs): New external variable.
2139         (put_char_ccs_code_point): New prototype.
2140         (remove_char_ccs): Likewise.
2141
2142 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2143
2144         * mule-charset.c (Vcharset_ucs_jis): New variable.
2145         (Qucs_jis): Likewise.
2146         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2147         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2148
2149         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2150
2151 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2152
2153         * mule-charset.c (map_over_uint8_byte_table): New function.
2154         (map_over_uint16_byte_table): Likewise.
2155         (map_over_byte_table): Likewise.
2156         (map_char_id_table): Likewise.
2157         (slow_map_char_id_table_fun): Likewise.
2158         (Fmap_char_attribute): Likewise.
2159         (syms_of_mule_charset): Add new function `map-char-attribute'.
2160
2161 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2162
2163         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2164         (syms_of_mule_charset): Add new function `find-char'.
2165
2166 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2167
2168         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2169         XEmacs UTF-2000.
2170         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2171         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2172         XEmacs UTF-2000.
2173         (complex_vars_of_mule_charset): Add new coded-charset
2174         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2175         `ideograph-gt-pj-*'.
2176
2177         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2178
2179 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2180
2181         * mule-charset.c (encode_builtin_char_1): Purge codes about
2182         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2183         {MIN|MAX}_CHAR_HEBREW.
2184         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2185         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2186
2187         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2188         (MAX_CHAR_GREEK): Purged.
2189         (MIN_CHAR_CYRILLIC): Purged.
2190         (MAX_CHAR_CYRILLIC): Purged.
2191         (MIN_CHAR_HEBREW): Commented out.
2192         (MAX_CHAR_HEBREW): Likewise.
2193
2194 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2195
2196         * mule-charset.c (Qto_ucs): New variable.
2197         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2198         (Fdefine_char): Likewise.
2199         (syms_of_mule_charset): Add new symbol `=>ucs'.
2200
2201 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2202
2203         * mule-charset.c (Fdecode_char): Fixed.
2204
2205 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2206
2207         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2208         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2209         "tcvn5712-1".
2210
2211 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2212
2213         * mule-charset.c (Vcharset_ucs_big5): New variable.
2214         (Qucs_big5): Likewise.
2215         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2216         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2217
2218         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2219
2220 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2221
2222         * mule-charset.c (decode_builtin_char): Check Big5 code range
2223         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2224
2225 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2226
2227         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2228         (Qchinese_gb12345): Likewise.
2229         (Fdecode_builtin_char): Fixed.
2230         (syms_of_mule_charset): Add `chinese-gb12345'.
2231         (complex_vars_of_mule_charset): Add coded-charset
2232         `chinese-gb12345'.
2233
2234         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2235         (LEADING_BYTE_CHINESE_GB12345): New macro.
2236
2237 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2238
2239         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2240         and `latin-viscii-upper' for `latin-viscii'.
2241
2242 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2243
2244         * mule-charset.c (Fdecode_builtin_char): Comment out
2245         regularization code for ISO-IR GR representation.
2246
2247 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2248
2249         * mule-charset.c (decode_builtin_char): New function; renamed from
2250         `make_builtin_char'; return -1 instead of signal.
2251         (Fdecode_builtin_char): Use `decode_builtin_char'.
2252
2253         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2254         `make_builtin_char'.
2255         (DECODE_CHAR): Use `decode_builtin_char' instead of
2256         `make_builtin_char'; use mapping table of `chinese-big5' for
2257         `chinese-big5-{1,2}'.
2258
2259 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2260
2261         * text-coding.c (char_encode_big5): New function.
2262         (char_finish_big5): Likewise.
2263         (reset_encoding_stream): Use `char_encode_big5' and
2264         `char_finish_big5' for CODESYS_BIG5.
2265         (mule_encode): Don't use `encode_coding_big5'.
2266         (encode_coding_big5): Deleted.
2267
2268 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2269
2270         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2271         0x81- in XEmacs UTF-2000.
2272         (detect_coding_big5): Likewise.
2273
2274 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2275
2276         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2277         generate character-id if the CCS property does not have
2278         corresponding predefined character.
2279         (make_builtin_char): Return -1 if corresponding predefined
2280         character is not found.
2281         (Fdecode_char): Return nil if corresponding character is not
2282         found.
2283         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2284         don't map to builtin ucs space.
2285
2286 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2287
2288         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2289         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2290
2291 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2292
2293         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2294         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2295         (Qideograph_gt): Likewise.
2296         (Qideograph_gt_pj_{1..11}): Likewise.
2297         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2298         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2299         `ideograph-gt-pj-11'.
2300         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2301         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2302         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2303
2304         * char-ucs.h (LEADING_BYTE_GT): New macro.
2305         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2306         (MIN_CHAR_GT): Likewise.
2307         (MAX_CHAR_GT): Likewise.
2308
2309 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2310
2311         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2312         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2313
2314         * doprnt.c (unsigned_int_converters): Add `c'.
2315         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2316
2317         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2318         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2319         `MIN_CHAR_MOJIKYO'.
2320         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2321         (MAX_CHAR_MOJIKYO_0): New macro.
2322         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2323
2324 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2325
2326         * mule-charset.c (Fdefine_char): Delete cemented out code.
2327         (encode_builtin_char_1): Modify for new allocation of builtin
2328         Mojikyo characters.
2329
2330         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2331
2332 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333
2334         * mule-charset.c (Vcharset_ucs_cns): New variable.
2335         (Qucs_cns): New variable.
2336         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2337         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2338
2339 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2340
2341         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2342
2343 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2344
2345         * search.c (search_buffer): Make `charset_base_code' as
2346         character-id >> 6 to eliminate the corresponding last byte in
2347         UTF-8 representation [I'm not sure it is right thing].
2348         (boyer_moore): Likewise.
2349
2350 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2351
2352         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2353         representation in MULE.
2354
2355 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2356
2357         * text-coding.c (Fmake_coding_system): Use
2358         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2359         `EXTERNAL_PROPERTY_LIST_LOOP'.
2360
2361 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2362
2363         * text-coding.c (decode_output_utf8_partial_char): New function.
2364         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2365
2366 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2367
2368         * text-coding.c (decode_coding_utf8): Output original byte
2369         sequence if it is broken; change order of conditions.
2370
2371         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2372         of conditions.
2373
2374         * mb-multibyte.h (BYTE_ASCII_P):
2375         Use bit ops for char-signedness safety.
2376         (BYTE_C0_P): Use bit ops for char-signedness safety.
2377         (BYTE_C1_P): Use bit ops for char-signedness safety.
2378
2379         * character.h: (XCHAR_OR_CHAR_INT):
2380         Always use inline function.
2381         Remove redundant type checking assert() - XINT will abort quite
2382         nicely.
2383
2384 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2385
2386         * text-coding.c: (Fencode_shift_jis_char):
2387         (Fencode_big5_char):
2388         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2389         Replace 0 with '\0' when working with bytes.
2390         Replace initial "(" with "\(" in docstrings.
2391
2392         (Fmake_coding_system):
2393         When type is ccl and value is vector, register it with a proper
2394         symbol.  And checks whether the given ccl program is valid.
2395         (mule_decode): When calling ccl_driver, if src indicates
2396         NULL pointer, set an empty string instead.
2397         (mule_encode): Likewise.
2398
2399         (detect_eol_type):
2400         (detect_coding_sjis):
2401         (decode_coding_sjis):
2402         (detect_coding_big5):
2403         (decode_coding_big5):
2404         (detect_coding_ucs4):
2405         (decode_coding_ucs4):
2406         (detect_coding_utf8):
2407         (decode_coding_utf8):
2408         (detect_coding_iso2022):
2409         (decode_coding_iso2022):
2410         (decode_coding_no_conversion):
2411         (mule_decode):
2412         Make all detecting and decoding functions take an Extbyte * arg.
2413         (text_encode_generic):
2414         (encode_coding_big5):
2415         (encode_coding_no_conversion):
2416         (mule_encode):
2417         Make all encoding functions take a Bufbyte * arg.
2418         Use size_t instead of unsigned int for memory sizes.
2419         Only cast to unsigned char whenever dereferencing Extbyte *.
2420
2421         (struct lrecord_description fcd_description_1): Use countof.
2422         (complex_vars_of_file_coding):
2423         Use countof instead of sizeof.
2424         Use CHECK_NATNUM instead of CHECK_INT.
2425
2426 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2427
2428         * mule-charset.c (Fget_char_attribute): Add new optional argument
2429         `default-value'.
2430         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2431         (remove_char_ccs): Likewise.
2432
2433 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2434
2435         * text-coding.c (char_encode_shift_jis): New implementation in
2436         UTF-2000.
2437         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2438         ...)'.
2439
2440         * mule-charset.c (Vcharset_chinese_big5): New variable in
2441         UTF-2000.
2442         (Qchinese_big5): New variable in UTF-2000.
2443         (BIG5_SAME_ROW): New macro in UTF-2000.
2444         (make_builtin_char): Use builtin characters of
2445         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2446         characters of `Vcharset_chinese_big5'.
2447         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2448         (complex_vars_of_mule_charset): Add new coded-charset
2449         `chinese-big5' in UTF-2000.
2450
2451         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2452         (Vcharset_chinese_big5): New external variable declaration.
2453         (Vcharset_japanese_jisx0208_1990): Likewise.
2454
2455 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2456
2457         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2458         function.
2459         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2460
2461 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2462
2463         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2464         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2465         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2466         `mojikyo-pj-*'.
2467
2468 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2469
2470         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2471
2472 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2473
2474         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2475         to 0.17.
2476
2477 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2478
2479         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2480         for `CHARSET_BY_ATTRIBUTES'.
2481         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2482         `CHARSET_BY_ATTRIBUTES'.
2483
2484         * text-coding.c (struct decoding_stream): Rename member `CH' to
2485         `CPOS'.
2486         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2487         (decode_coding_sjis): Likewise.
2488         (decode_coding_big5): Likewise.
2489         (decode_coding_ucs4): Likewise.
2490         (decode_coding_utf8): Likewise.
2491         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2492         `CHARSET_BY_ATTRIBUTES'.
2493         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2494         `str->counter'; decode 3, 4 bytes sets.
2495         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2496         sets.
2497         (decode_coding_no_conversion): Use `str->cpos' instead of
2498         `str->ch'.
2499
2500         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2501         (Qmojikyo_2022_1): New variable.
2502         (make_charset): Don't use `CHARSET_TYPE_*'.
2503         (range_charset_code_point): Support coded-charset
2504         `mojikyo-2022-1'.
2505         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2506         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2507         `CHARSET_BY_ATTRIBUTES'.
2508         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2509         `CHARSET_BY_ATTRIBUTES'.
2510         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2511         (complex_vars_of_mule_charset): Add new coded-charset
2512         `mojikyo-2022-1'.
2513
2514         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2515         interface; changed to inline function.
2516
2517         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2518         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2519         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2520         (CHARSET_TYPE_94): Deleted.
2521         (CHARSET_TYPE_94X94): Deleted.
2522         (CHARSET_TYPE_96): Deleted.
2523         (CHARSET_TYPE_96X96): Deleted.
2524         (CHARSET_TYPE_128): Deleted.
2525         (CHARSET_TYPE_128X128): Deleted.
2526         (CHARSET_TYPE_256): Deleted.
2527         (CHARSET_TYPE_256X256): Deleted.
2528         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2529         to inline function.
2530         (DECODE_MOJIKYO_2022): New inline function.
2531         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2532         `Vcharset_mojikyo_2022_1'.
2533
2534 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2535
2536         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2537         instead of `EQ'.
2538         (put_byte_table): Likewise.
2539         (char_id_table_equal): Use `get_byte_table' [new implementation].
2540
2541 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2542
2543         * mule-charset.c: Include <limits.h> in UTF-2000.
2544         (BT_UINT8_MIN): New macro in UTF-2000.
2545         (BT_UINT8_MAX): New macro in UTF-2000.
2546         (BT_UINT8_t): New macro in UTF-2000.
2547         (BT_UINT8_nil): New macro in UTF-2000.
2548         (BT_UINT8_unbound): New macro in UTF-2000.
2549         (INT_UINT8_P): New inline function in UTF-2000.
2550         (UINT8_VALUE_P): New inline function in UTF-2000.
2551         (UINT8_ENCODE): New inline function in UTF-2000.
2552         (UINT8_DECODE): New inline function in UTF-2000.
2553         (mark_uint8_byte_table): New function in UTF-2000.
2554         (print_uint8_byte_table): New function in UTF-2000.
2555         (uint8_byte_table_equal): New function in UTF-2000.
2556         (uint8_byte_table_hash): New function in UTF-2000.
2557         (make_uint8_byte_table): New function in UTF-2000.
2558         (uint8_byte_table_same_value_p): New function in UTF-2000.
2559         (BT_UINT16_MIN): New macro in UTF-2000.
2560         (BT_UINT16_MAX): New macro in UTF-2000.
2561         (BT_UINT16_t): New macro in UTF-2000.
2562         (BT_UINT16_nil): New macro in UTF-2000.
2563         (BT_UINT16_unbound): New macro in UTF-2000.
2564         (INT_UINT16_P): New inline function in UTF-2000.
2565         (UINT16_VALUE_P): New inline function in UTF-2000.
2566         (UINT16_ENCODE): New inline function in UTF-2000.
2567         (UINT16_DECODE): New inline function in UTF-2000.
2568         (UINT8_TO_UINT16): New inline function in UTF-2000.
2569         (mark_uint16_byte_table): New function in UTF-2000.
2570         (print_uint16_byte_table): New function in UTF-2000.
2571         (uint16_byte_table_equal): New function in UTF-2000.
2572         (uint16_byte_table_hash): New function in UTF-2000.
2573         (make_uint16_byte_table): New function in UTF-2000.
2574         (uint16_byte_table_same_value_p): New function in UTF-2000.
2575         (print_byte_table): New function in UTF-2000.
2576         (byte-table): Use `print_byte_table' as printer.
2577         (make_byte_table): Delete second argument `older'.
2578         (byte_table_same_value_p): New function in UTF-2000.
2579         (copy_byte_table): Deleted.
2580         (get_byte_table): New function in UTF-2000.
2581         (put_byte_table): New function in UTF-2000.
2582         (print_char_id_table): New function in UTF-2000.
2583         (char-id-table): Use `print_char_id_table' as printer.
2584         (make_char_id_table): Delete second argument `older'.
2585         (get_char_id_table): Use `get_byte_table [new implementation].
2586         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2587         implementation].
2588         (Ffind_char_attribute_table): New function in UTF-2000.
2589         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2590         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2591         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2592         (syms_of_mule_charset): Add new function
2593         `find-char-attribute-table' in UTF-2000.
2594
2595         * lrecord.h (enum lrecord_type): Add
2596         `lrecord_type_uint16_byte_table' and
2597         `lrecord_type_uint8_byte_table'.
2598
2599         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2600         (Lisp_Uint8_Byte_Table): New type.
2601         (XUINT8_BYTE_TABLE): New macro.
2602         (XSETUINT8_BYTE_TABLE): New macro.
2603         (UINT8_BYTE_TABLE_P): New macro.
2604         (GC_UINT8_BYTE_TABLE_P): New macro.
2605         (struct Lisp_Uint16_Byte_Table): New structure.
2606         (Lisp_Uint16_Byte_Table): New type.
2607         (XUINT16_BYTE_TABLE): New macro.
2608         (XSETUINT16_BYTE_TABLE): New macro.
2609         (UINT16_BYTE_TABLE_P): New macro.
2610         (GC_UINT16_BYTE_TABLE_P): New macro.
2611
2612 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2613
2614         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2615         (Vcharacter_ideographic_strokes_table): Deleted.
2616         (Vcharacter_total_strokes_table): Deleted.
2617         (Vcharacter_morohashi_daikanwa_table): Deleted.
2618         (Vcharacter_decomposition_table): Deleted.
2619         (Qname): Deleted because it is duplicated.
2620         (Qideographic_radical): Deleted.
2621         (Qideographic_strokes): Deleted.
2622         (Qtotal_strokes): Deleted.
2623         (Qmorohashi_daikanwa): Deleted.
2624         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2625         `ideographic-radical', `ideographic-strokes', `total-strokes',
2626         `morohashi-daikanwa' and `->decomposition'.
2627         (Fget_char_attribute): Likewise.
2628         (Fput_char_attribute): Likewise; use `make-vector' instead of
2629         `make_older_vector' for `->decomposition' value.
2630         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2631         `ideograph-daikanwa'.
2632         (syms_of_mule_charset): Delete builtin symbols `name',
2633         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2634         `morohashi-daikanwa'.
2635         (vars_of_mule_charset): Don't setup
2636         `Vcharacter_ideographic_radical_table',
2637         `Vcharacter_ideographic_strokes_table',
2638         `Vcharacter_total_strokes_table',
2639         `Vcharacter_morohashi_daikanwa_table' and
2640         `Vcharacter_decomposition_table'.
2641
2642 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2643
2644         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2645         `make_older_vector', `make_vector_newer_1' and
2646         `make_vector_newer'.
2647
2648         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2649         `make_older_vector' and `make_vector_newer'.
2650
2651         * config.h.in (HAVE_GGC): New macro.
2652
2653 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2654
2655         * mule-charset.c (struct char_attribute_list_closure): New
2656         structure in UTF-2000.
2657         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2658         (Fchar_attribute_list): Likewise.
2659         (Fset_charset_mapping_table): Use `make_vector_newer'.
2660         (Fdecode_builtin_char): New function in UTF-2000.
2661         (syms_of_mule_charset): Add new function `char-attribute-list' and
2662         `decode-builtin-char' in UTF-2000.
2663
2664         * lisp.h (make_vector_newer): New prototype.
2665
2666         * alloc.c (make_vector_newer_1): New function.
2667         (make_vector_newer): New function.
2668
2669 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2670
2671         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2672         50100)'.
2673
2674 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2675
2676         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2677         (Vcharacter_attribute_table): Deleted.
2678         (Vcharacter_name_table): Deleted.
2679         (put_char_attribute): Deleted.
2680         (remove_char_attribute): Deleted.
2681         (struct char_attribute_alist_closure): New structure.
2682         (add_char_attribute_alist_mapper): New function.
2683         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2684         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2685         (Fget_char_attribute): Likewise.
2686         (Fput_char_attribute): Likewise.
2687         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2688         of `remove_char_attribute'.
2689         (Fdefine_char): Return character.
2690         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2691         and `Vcharacter_name_table'.
2692         (complex_vars_of_mule_charset): Likewise
2693         `Vchar_attribute_hash_table'.
2694
2695 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2696
2697         * character.h (CHARC_CHARSET): New macro.
2698         (CHARC_CHARSET_ID): New macro.
2699         (CHARC_CODE_POINT): New macro.
2700         (CHARC_COLUMNS): New macro.
2701         (CHARC_TO_CHAR): New inline function.
2702         (CHARC_EQ): New inline function.
2703         (CHARC_ASCII_EQ): New inline function.
2704         (CHARC_IS_SPACE): New inline function.
2705         (ASCII_TO_CHARC): New inline function.
2706
2707         * char-ucs.h (encode_char_2): Deleted.
2708         (ENCODE_CHAR): Use `encode_char_1' again.
2709         (breakup_char_1): Likewise.
2710         (CHAR_TO_CHARC): New inline function.
2711
2712         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2713
2714 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2715
2716         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2717         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2718         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2719         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2720         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2721         `CHARC_IS_SPACE'.
2722         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2723
2724         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2725         `CHARC_CODE_POINT'.
2726         (x_output_display_block): Use `CHARC_CHARSET' and
2727         `CHARC_ASCII_EQ'.
2728
2729         * redisplay-tty.c (tty_output_display_block): Use
2730         `CHARC_ASCII_EQ'.
2731         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2732
2733         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2734
2735         * insdel.c (find_charsets_in_charc_string): Use
2736         `CHARC_CHARSET_ID'.
2737         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2738         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2739         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2740         (convert_charc_string_into_malloced_string): Likewise.
2741
2742 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2743
2744         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2745         instead of <Emchar_dynarr *> for buf; use
2746         `convert_bufbyte_string_into_charc_dynarr' instead of
2747         `convert_bufbyte_string_into_emchar_dynarr'; use
2748         `find_charsets_in_charc_string' instead of
2749         `find_charsets_in_emchar_string'.
2750
2751         * redisplay.h:
2752         - Include "character.h".
2753         (struct rune): New member `cglyph'; delete member `chr'.
2754
2755         * redisplay.c (redisplay_text_width_charc_string): New function;
2756         delete `redisplay_text_width_emchar_string'.
2757         (rtw_charc_dynarr): New variable; renamed from
2758         `rtw_emchar_dynarr'.
2759         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2760         `rtw_emchar_dynarr'; use
2761         `convert_bufbyte_string_into_charc_dynarr' instead of
2762         `convert_bufbyte_string_into_emchar_dynarr'; use
2763         `redisplay_text_width_charc_string' instead of
2764         `redisplay_text_width_emchar_string'.
2765         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2766         instead of `rtw_emchar_dynarr'; use
2767         `convert_bufbyte_string_into_charc_dynarr' instead of
2768         `convert_bufbyte_string_into_emchar_dynarr'.
2769         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2770         `redisplay_text_width_charc_string' instead of
2771         `redisplay_text_width_emchar_string'.
2772         (create_text_block): Modify for <struct rune> change.
2773         (generate_formatted_string_db): Likewise.
2774         (create_string_text_block): Likewise.
2775         (pixel_to_glyph_translation): Likewise.
2776
2777         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2778         instead of <const Emchar *>.
2779         (x_text_width): Likewise.
2780         (x_output_display_block): Use <Charc_dynarr *> instead
2781         <Emchar_dynarr *>; modify for <structure rune> change.
2782         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2783         *>.
2784
2785         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2786         <const Emchar *>; use `charc_string_displayed_columns' instead of
2787         `emchar_string_displayed_columns'.
2788         (tty_output_display_block): Use <Charc_dynarr *> instead of
2789         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2790         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2791         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2792         `tty_output_emchar_dynarr_dynarr'.
2793         (tty_output_charc_dynarr): New function; delete
2794         `tty_output_charc_dynarr'.
2795
2796         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2797         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2798         <Emchar_dynarr *> for buf; use
2799         `convert_bufbyte_string_into_charc_dynarr' instead of
2800         `convert_bufbyte_string_into_emchar_dynarr'.
2801
2802         * frame.c (title_string_charc_dynarr): New variable; renamed from
2803         `title_string_emchar_dynarr'.
2804         (generate_title_string): Use `title_string_charc_dynarr' instead
2805         of `title_string_emchar_dynarr'; use
2806         `convert_charc_string_into_malloced_string' instead of
2807         `convert_emchar_string_into_malloced_string'.
2808         (init_frame): Use `title_string_charc_dynarr' instead of
2809         `title_string_emchar_dynarr'.
2810
2811         * console.h:
2812         - Include "character.h".
2813         (struct console_methods): Use <const Charc *> instead of <const
2814         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2815         <Emchar_dynarr *> in output_string_method.
2816
2817         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2818         <Emchar_dynarr *>.
2819
2820         * console-stream.c (stream_text_width): Use <const Charc *>
2821         instead of <const Emchar *>.
2822
2823         * character.h (Charc_dynarr): New type.
2824
2825         * char-ucs.h (structure Charc): New structure; define new type
2826         `Charc'.
2827
2828         * char-lb.h (DECODE_CHAR): New inline function.
2829         (encode_char_1): New inline function.
2830         (ENCODE_CHAR): New macro.
2831         (structure Charc): New structure; define new type `Charc'.
2832
2833         * char-1byte.h (Vcharset_control_1): New macro.
2834         (Vcharset_latin_iso8859_1): New macro.
2835         (DECODE_CHAR): New inline function.
2836         (encode_char_1): New inline function.
2837         (ENCODE_CHAR): New macro.
2838         (structure Charc): New structure; define new type `Charc'.
2839
2840         * insdel.c (find_charsets_in_charc_string): New function; delete
2841         `find_charsets_in_emchar_string'.
2842         (charc_string_displayed_columns): New function; delete
2843         `emchar_string_displayed_columns'.
2844         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2845         `convert_bufbyte_string_into_emchar_dynarr'.
2846         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2847         `convert_charc_string_into_bufbyte_dynarr'.
2848         (convert_charc_string_into_malloced_string): New function; delete
2849         `convert_charc_string_into_malloced_string'.
2850
2851         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2852         `find_charsets_in_emchar_string'.
2853         (charc_string_displayed_columns): New prototype; delete
2854         `emchar_string_displayed_columns'.
2855         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2856         `convert_charc_string_into_bufbyte_dynarr'.
2857         (convert_charc_string_into_malloced_string): New prototype; delete
2858         `convert_charc_string_into_malloced_string'.
2859
2860 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2861
2862         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2863
2864 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2865
2866         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2867
2868         * char-ucs.h: Use <short> for <Charset_ID>.
2869
2870         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2871         <Charset_ID>.
2872
2873 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2874
2875         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2876         to 0.16.
2877
2878 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2879
2880         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2881         variable.
2882         (Qmorohashi_daikanwa): New variable.
2883         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2884         for `morohashi-daikanwa' attribute.
2885         (Fget_char_attribute): Likewise.
2886         (Fput_char_attribute): Likewise.
2887         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2888         has the same value of `ideograph-daikanwa'.
2889         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2890         (vars_of_mule_charset): Setup
2891         `Vcharacter_morohashi_daikanwa_table'.
2892
2893 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2894
2895         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2896         attributes.
2897         (add_charset_to_list_mapper): Add `key' instead of
2898         `XCHARSET_NAME (value)' to return aliases.
2899
2900 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2901
2902         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2903         variable.
2904         (Vcharacter_ideographic_strokes_table): New variable.
2905         (Qideographic_radical): New variable.
2906         (Qideographic_strokes): New variable.
2907         (Fchar_attribute_alist): Use
2908         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2909         attribute; use `Vcharacter_ideographic_strokes_table' for
2910         `ideographic-strokes' attribute.
2911         (Fget_char_attribute): Likewise.
2912         (Fput_char_attribute): Likewise.
2913         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2914         `ideographic-strokes'.
2915         (vars_of_mule_charset): Setup
2916         `Vcharacter_ideographic_radical_table' and
2917         `Vcharacter_ideographic_strokes_table'.
2918
2919 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2920
2921         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2922         (Qtotal_strokes): New variable.
2923         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2924         `total-strokes' attribute.
2925         (Fget_char_attribute): Likewise.
2926         (Fput_char_attribute): Likewise.
2927         (syms_of_mule_charset): Add new symbol `total-strokes'.
2928         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2929
2930 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2931
2932         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2933         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2934         are found.
2935         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2936         `->decomposition' attribute.
2937         (Fput_char_attribute): Likewise.
2938         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2939
2940 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2941
2942         * mule-charset.c (decoding_table_check_elements): New function.
2943         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2944
2945 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2946
2947         * mule-charset.c (Fset_charset_mapping_table): Use
2948         `put_char_ccs_code_point'.
2949
2950 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2951
2952         * mule-charset.c (decoding_table_put_char): New inline function.
2953         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2954
2955 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2956
2957         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2958         (XCHARSET_BYTE_SIZE): New macro.
2959         (decoding_table_remove_char): New inline function.
2960         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2961         `decoding_table_remove_char'.
2962         (remove_char_ccs): Use `decoding_table_remove_char'.
2963         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2964
2965 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2966
2967         * mule-charset.c (Vcharacter_name_table): New variable.
2968         (Qname): New variable.
2969         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2970         attribute.
2971         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2972         `Vcharacter_name_table' for `name' attribute.
2973         (Fremove_char_attribute): Use function `remove_char_ccs'.
2974         (put_char_ccs_code_point): New function.
2975         (remove_char_ccs): New function.
2976         (syms_of_mule_charset): Add new symbol `name'.
2977         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2978
2979 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2980
2981         * mule-charset.c (make_byte_table): Add new argument `older'.
2982         (make_char_id_table): Likewise.
2983         (copy_char_id_table): Comment out because it is not used.
2984         (put_char_id_table): Modify for `make_byte_table'.
2985         (Fput_char_attribute): Make encoding_table as older object;
2986         inherit older bit of `Vcharacter_composition_table'.
2987         (mark_charset): Don't mark `cs->encoding_table'.
2988         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2989         normal object; make `Vcharacter_composition_table' as an older
2990         object; delete staticpro for `Vcharacter_composition_table'; make
2991         `Vcharacter_variant_table' as a normal object.
2992
2993         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2994         (mark_object): Don't check older object in UTF-2000.
2995
2996         * lrecord.h (struct lrecord_header): Add new member `older' in
2997         UTF-2000.
2998         (set_lheader_implementation): Setup `SLI_header->older' in
2999         UTF-2000.
3000         (set_lheader_older_implementation): New macro in UTF-2000.
3001         (OLDER_RECORD_P): New macro in UTF-2000.
3002         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3003         (alloc_older_lcrecord): New prototype in UTF-2000.
3004         (alloc_older_lcrecord_type): New macro in UTF-2000.
3005
3006 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3007
3008         * mule-charset.c (byte_table_description): Use
3009         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3010         (char_id_table_description): Delete bogus `, 1'.
3011         (Fget_char_attribute): Refer encoding_table of each coded-charset
3012         to get value of coded-charset attribute of a character.
3013         (Fput_char_attribute): Use `make_older_vector' instead of
3014         `make_vector'; use encoding_table of each coded-charset to store
3015         value of coded-charset attribute of a character.
3016         (Fremove_char_attribute): Use encoding_table of each coded-charset
3017         to store value of coded-charset attribute of a character.
3018         (mark_charset): Mark `cs->encoding_table'; don't mark
3019         `cs->decoding_table'.
3020         (charset_description): Add description of new member
3021         `encoding_table'.
3022         (make_charset): Initialize `encoding_table'.
3023
3024         * char-ucs.h (struct Lisp_Charset): Add new member
3025         `encoding_table'.
3026         (CHARSET_ENCODING_TABLE): New macro.
3027         (XCHARSET_ENCODING_TABLE): New macro.
3028         (charset_code_point): New implementation.
3029         (encode_char_1): Likewise.
3030
3031         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3032         (disksave_object_finalization_1): Call finalizers of
3033         `all_older_lcrecords' in UTF-2000.
3034         (make_older_vector): New function in UTF-2000.
3035         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3036         UTF-2000.
3037
3038         * lisp.h (make_older_vector): New prototype in UTF-2000.
3039
3040 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3041
3042         * lrecord.h (enum lrecord_type): Rename
3043         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3044
3045         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3046         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3047         `get_char_code_table'.
3048
3049         * mule-charset.c (mark_char_id_table): Renamed from
3050         `mark_char_code_table'.
3051         (char_id_table_equal): Renamed from `char_code_table_equal'.
3052         (char_id_table_hash): Renamed from `char_code_table_hash'.
3053         (make_char_id_table): Renamed from `make_char_code_table'.
3054         (copy_char_id_table): Renamed from `copy_char_code_table'.
3055         (get_char_id_table): Renamed from `get_char_code_table'.
3056         (put_char_id_table): Renamed from `put_char_code_table'.
3057         (to_char_id): Renamed from `to_char_code'.
3058
3059         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3060         `Lisp_Char_Code_Table'.
3061         (char_id_table): Renamed from `char_code_table'.
3062         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3063         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3064         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3065         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3066         (get_char_id_table): Renamed from `get_char_code_table'.
3067
3068 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3069
3070         * lrecord.h (enum lrecord_type): Rename
3071         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3072
3073         * mule-charset.c (mark_byte_table): Renamed from
3074         `mark_char_byte_table'.
3075         (byte_table_equal): Renamed from `char_byte_table_equal'.
3076         (byte_table_hash): Renamed from `byte_table_hash'.
3077         (make_byte_table): Renamed from `make_byte_table'.
3078         (copy_byte_table): Renamed from `copy_char_byte_table'.
3079
3080         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3081         `Lisp_Char_Byte_Table'.
3082         (byte_table): Renamed from `char_byte_table'.
3083         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3084         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3085         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3086         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3087
3088 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3089
3090         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3091         (dfc_convert_to_internal_format): Likewise.
3092         
3093         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3094         * text-coding.c (Fcoding_system_alias_p): New function.
3095         * text-coding.c (Fcoding_system_aliasee): New function.
3096         * text-coding.c (append_suffix_to_symbol): New function.
3097         * text-coding.c (dangling_coding_system_alias_p): New function.
3098         * text-coding.c (Ffind_coding_system):
3099         * text-coding.c (Fcopy_coding_system):
3100         * text-coding.c (encode_coding_no_conversion):
3101         * text-coding.c (syms_of_file_coding):
3102         * text-coding.c (vars_of_file_coding):
3103         Rewrite coding system alias code.
3104         Allow nested aliases, like symbolic links.
3105         Allow redefinition of coding system aliases.
3106         Prevent existence of dangling coding system aliases.
3107         Eliminate convert_to_external_format.
3108         Eliminate convert_to_internal_format.
3109         
3110         * text-coding.c: Change enum eol_type to eol_type_t.
3111
3112 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3113
3114         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3115         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3116
3117         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3118         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3119
3120 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3121
3122         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3123         `ideograph-daikanwa'.
3124
3125         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3126         (Vcharset_ucs_bmp): Likewise.
3127         (Vcharset_mojikyo): Add new extern variable definition.
3128         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3129         (Vcharset_latin_iso8859_3): Likewise.
3130         (Vcharset_latin_iso8859_4): Likewise.
3131         (Vcharset_latin_iso8859_9): Likewise.
3132         (Vcharset_latin_viscii_lower): Likewise.
3133         (Vcharset_latin_viscii_upper): Likewise.
3134         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3135         `mojikyo' code-point is used to decode.
3136         (encode_char_2): New function [to convert `mojikyo' code-point to
3137         Mojikyo font encoding].
3138         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3139         (breakup_char_1): Likewise.
3140         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3141
3142 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3143
3144         * text-coding.c (Fmake_coding_system): Add document about
3145         `disable-composition' property.
3146
3147 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3148
3149         * text-coding.c (Qdisable_composition): New variable; delete
3150         `Qcomposite'.
3151         (Fmake_coding_system): Add new property `disable-composite';
3152         delete property `composite'.
3153         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3154         instead of `!CODING_SYSTEM_COMPOSITE'.
3155         (syms_of_file_coding): Add new symbol `disable-composition';
3156         delete symbol `composite'.
3157
3158         * file-coding.h (struct Lisp_Coding_System): Add
3159         `disable_composition'; delete `enable_composition'.
3160         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3161         `CODING_SYSTEM_COMPOSITE'.
3162         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3163         `XCODING_SYSTEM_COMPOSITE'.
3164
3165 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3166
3167         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3168         to 0.15.
3169
3170 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3171
3172         * text-coding.c (Qcomposite): New variable.
3173         (Fmake_coding_system): Add new property `composite'.
3174         (struct decoding_stream): Add `combined_char_count',
3175         `combined_chars' and `combining_table' in UTF-2000.
3176         (COMPOSE_FLUSH_CHARS): New macro.
3177         (COMPOSE_ADD_CHAR): New macro.
3178         (reset_decoding_stream): Reset `str->combined_char_count' and
3179         `str->combining_table' in UTF-2000.
3180         (decode_coding_iso2022): Modify for character-decomposition.
3181         (syms_of_file_coding): Add new symbol `composite'.
3182
3183 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3184
3185         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3186         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3187         of `Vcharacter_composition_table' if `->decomposition' property
3188         has only 1 element.
3189         (Qlatin_tcvn5712): New variable.
3190         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3191         (complex_vars_of_mule_charset): Add new coded-charset
3192         `latin-tcvn5712'.
3193
3194         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3195
3196 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3197
3198         * file-coding.h (struct Lisp_Coding_System): Add
3199         `enable_composition'.
3200         (CODING_SYSTEM_COMPOSITE): New macro.
3201         (XCODING_SYSTEM_COMPOSITE): New macro.
3202
3203 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3204
3205         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3206
3207 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3208
3209         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3210         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3211
3212 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3213
3214         * mule-charset.c (Vcharset_mojikyo): New variable.
3215         (Fdefine_char): Don't use coded-charset which does not have
3216         non-builtin character range to allocate character-id.
3217         (Qmojikyo): New variable.
3218         (syms_of_mule_charset): Add new symbol `mojikyo'.
3219         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3220
3221         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3222         (LEADING_BYTE_MOJIKYO): New macro.
3223         (MIN_CHAR_MOJIKYO): New macro.
3224         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3225         (MAX_CHAR_MOJIKYO): New macro.
3226
3227 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3228
3229         * mule-charset.c (remove_char_attribute): Fixed.
3230
3231 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3232
3233         * mule-charset.c (remove_char_attribute): New function.
3234         (Fremove_char_attribute): New function.
3235         (encode_builtin_char_1): Comment out builtin-support for
3236         greek-iso8859-7 and cyrillic-iso8859-5.
3237         (Fdecode_char): Check `code' is an integer.
3238         (syms_of_mule_charset): Add `remove-char-attribute'.
3239         (MIN_CHAR_GREEK): Deleted.
3240         (MAX_CHAR_GREEK): Likewise.
3241         (MIN_CHAR_CYRILLIC): Likewise.
3242         (MAX_CHAR_CYRILLIC): Likewise.
3243         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3244         MAX_CHAR_GREEK for `greek-iso8859-7'.
3245
3246         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3247         (MAX_CHAR_GREEK): Likewise.
3248         (MIN_CHAR_CYRILLIC): Likewise.
3249         (MAX_CHAR_CYRILLIC): Likewise.
3250
3251 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3252
3253         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3254         format is used without `ucs' property.
3255         (Fdecode_char): Fix problem with GR representation.
3256         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3257         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3258
3259 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3260
3261         * mule-charset.c (make_builtin_char): New function.
3262         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3263         (Fset_charset_mapping_table): Modify for new representation of
3264         code-point.
3265         (Fdecode_char): New function.
3266         (syms_of_mule_charset): Add new builtin function `decode-char' in
3267         UTF-2000.
3268
3269         * char-ucs.h (make_builtin_char): New prototype.
3270         (DECODE_CHAR): New inline function.
3271         (MAKE_CHAR): Use `DECODE_CHAR'.
3272
3273 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3274
3275         * text-coding.c (parse_charset_conversion_specs): Use
3276         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3277         `XCHARSET_TYPE'.
3278         (iso2022_designate): Likewise.
3279
3280         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3281         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3282
3283         * mule-charset.c (Vcharset_ucs): New variable.
3284         (print_charset): Change design; use `CHARSET_CHARS' and
3285         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3286         (make_charset): Change signature to specify `chars' and
3287         `dimension' instead of `type'.
3288         (range_charset_code_point): Modify for 256^n-set.
3289         (encode_builtin_char_1): Encode as `ucs' in default.
3290         (Fmake_charset): Modify for `make_charset'.
3291         (Fmake_reverse_direction_charset): Likewise.
3292         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3293         UTF-2000.
3294         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3295         for `make_charset'.
3296
3297         * char-ucs.h (Vcharset_ucs): New variable.
3298         (LEADING_BYTE_UCS): New macro.
3299         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3300         and `chars' to `unsigned short' from `unsigned int'.
3301         (CHARSET_TYPE): Deleted.
3302         (XCHARSET_TYPE): Deleted.
3303
3304 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3305
3306         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3307
3308         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3309         (ENCODE_CHAR): New macro.
3310
3311 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3312
3313         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3314         to 0.14 (Kawachi-Katakami).
3315
3316 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3317
3318         * text-coding.c (char_encode_shift_jis): Modify for
3319         `charset_code_point'.
3320         (char_encode_iso2022): Likewise.
3321
3322         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3323         (integer) instead of list of <Lisp_Object>s (integers) as the
3324         format of code-point of a coded-charset.
3325         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3326         (encode_builtin_char_1): New function; delete
3327         `split_builtin_char'.
3328         (charset_code_point): Return <int> instead of <Lisp_Object>.
3329         (Fsplit_char): Don't use `SPLIT_CHAR'.
3330
3331         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3332         prototype for `split_builtin_char'.
3333         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3334         (charset_code_point): Likewise.
3335         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3336         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3337
3338 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3339
3340         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3341         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3342
3343 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3344
3345         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3346
3347         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3348         (MAX_CHAR_OBS_94x94): Deleted.
3349
3350 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3351
3352         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3353
3354         * char-ucs.h (MAX_CHAR_BMP): New macro.
3355
3356 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3357
3358         * text-coding.c: Sync with r21-2-24.
3359
3360 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3361
3362         * file-coding.c: Modify for UTF-2000.
3363
3364 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3365
3366         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3367         to 0.13 (Takaida).
3368
3369 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3370
3371         * mule-charset.c (split_builtin_char): Delete builtin support for
3372         `katakana-jisx0201'.
3373         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3374         BMP area in builtin representation.
3375
3376         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3377         `Vcharset_katakana_jisx0201'.
3378
3379 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3380
3381         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3382         (Qisolated): New variable.
3383         (Qinitial): New variable.
3384         (Qmedial): New variable.
3385         (Qfinal): New variable.
3386         (Qvertical): New variable.
3387         (Qsmall): New variable.
3388         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3389         `Qvertical' and `Qsmall'.
3390         (Qmojikyo_pj_[1 .. 21]): New variable.
3391         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3392         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3393         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3394         .. 21]'.
3395
3396 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3397
3398         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3399         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3400         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3401
3402 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3403
3404         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3405         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3406         BMP.
3407         (Qjapanese_jisx0208_1990): New variable.
3408         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3409         (complex_vars_of_mule_charset): Add new coded-charset
3410         `japanese-jisx0208-1990'.
3411
3412         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3413         (MIN_CHAR_JIS_X0208_1990): New macro.
3414         (MAX_CHAR_JIS_X0208_1990): New macro.
3415
3416 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3417
3418         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3419         coded-charset is not found.
3420
3421 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3422
3423         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3424         (Fdefine_char): Use `Fmake_char'.
3425
3426 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3427
3428         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3429         (Vcharset_hiragana_jisx0208): Deleted.
3430         (Vcharset_katakana_jisx0208): Deleted.
3431         (Qideograph_daikanwa): New variable.
3432         (Qhiragana_jisx0208): Deleted.
3433         (Qkatakana_jisx0208): Deleted.
3434         (split_builtin_char): Split `ideograph-daikanwa'.
3435         (Fsplit_char): New implementation for UTF-2000.
3436         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3437         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3438         (complex_vars_of_mule_charset): Add new coded-charset
3439         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3440         `katakana-jisx0208'.
3441
3442         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3443         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3444         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3445         (MIN_CHAR_DAIKANWA): New macro.
3446         (MAX_CHAR_DAIKANWA): New macro.
3447
3448 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3449
3450         * data.c (Fstring_to_number): Don't recognize floating point if
3451         base is not 10.
3452
3453 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3454
3455         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3456
3457 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3458
3459         * mule-charset.c (Qsquare): New variable.
3460         (to_char_code): Add `Qsquare'.
3461         (syms_of_mule_charset): Add new symbol `square'.
3462
3463 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3464
3465         * mule-charset.c (Qcircle): New variable.
3466         (to_char_code): Add `Qcircle'.
3467         (syms_of_mule_charset): Add new symbol `circle'.
3468
3469 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3470
3471         * mule-charset.c (Qfont): New variable.
3472         (to_char_code): Add `Qfont'.
3473         (syms_of_mule_charset): Add new symbol `font'.
3474
3475 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3476
3477         * mule-charset.c (Qsub): New variable.
3478         (to_char_code): Add `Qsub'.
3479         (syms_of_mule_charset): Add new symbol `sub'.
3480
3481 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3482
3483         * mule-charset.c (Fput_char_attribute): Convert each element of
3484         VALUE to GL position if ATTRIBUTE is a GR-set,
3485
3486 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3487
3488         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3489         coded-charset is a GR-set.
3490
3491 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3492
3493         * mule-charset.c (Fput_char_attribute): Check each element of
3494         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3495
3496 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3497
3498         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3499         UTF-2000.
3500         (Qethiopic_ucs): New variable in UTF-2000.
3501         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3502         (complex_vars_of_mule_charset): Add new coded-charset
3503         `ethiopic-ucs' in UTF-2000.
3504
3505         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3506         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3507         9)'.
3508         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3509         10)'.
3510         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3511
3512 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3513
3514         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3515         `ascii'.
3516
3517 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3518
3519         * mule-charset.c (Vcharacter_variant_table): New variable.
3520         (Q_ucs): New variable.
3521         (Fchar_variants): New function.
3522         (Fput_char_attribute): Register `->ucs' value to
3523         `Vcharacter_variant_table'.
3524         (syms_of_mule_charset): Add new function `char-variants' and new
3525         symbol `->ucs'.
3526         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3527
3528 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3529
3530         * mule-charset.c (get_char_code_table): Allow negative character
3531         code.
3532         (put_char_code_table): Likewise.
3533         (Vcharacter_composition_table): New variable.
3534         (Q_decomposition): New variable.
3535         (Qwide): New variable.
3536         (Qnarrow): New variable.
3537         (Qcompat): New variable.
3538         (QnoBreak): New variable.
3539         (Qsuper): New variable.
3540         (Qfraction): New variable.
3541         (to_char_code): New function.
3542         (Fget_composite_char): New function.
3543         (Fput_char_attribute): Register `->decomposition' value to
3544         `Vcharacter_composition_table'.
3545         (syms_of_mule_charset): Add new function `get-composite-char', new
3546         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3547         `super' and `fraction'.
3548         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3549
3550 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3551
3552         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3553         character; copy the return value.
3554
3555 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3556
3557         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3558
3559         * mule-charset.c (range_charset_code_point): Must use make_int.
3560         (split_builtin_char): New function.
3561
3562 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3563
3564         * mule-charset.c (char_byte_table): Change name from
3565         "char-code-table" to "char-byte-table".
3566         (mark_char_code_table): New function.
3567         (char_code_table_equal): New function.
3568         (char_code_table_hash): New function.
3569         (char_code_table_description): New constant.
3570         (char_code_table): New type.
3571         (make_char_code_table): New function.
3572         (copy_char_code_table): New function.
3573         (get_char_code_table): Modify for `char_code_table' type.
3574         (put_char_code_table): Likewise.
3575         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3576         (Kashiwara).
3577
3578         * char-ucs.h (char_code_table): New type.
3579         (XCHAR_CODE_TABLE): New macro.
3580         (XSETCHAR_CODE_TABLE): New macro.
3581         (CHAR_CODE_TABLE_P): New macro.
3582         (GC_CHAR_CODE_TABLE_P): New macro.
3583         (struct Lisp_Char_Code_Table): New structure.
3584
3585 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3586
3587         * mule-charset.c (Fmake_charset): Setup byte_offset for
3588         {94|96}^n-set.
3589
3590 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3591
3592         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3593         character.
3594
3595 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3596
3597         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3598         is found.
3599
3600 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3601
3602         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3603         charset, it is regarded as a charset.
3604         (put_char_attribute): New function in UTF-2000.
3605         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3606         charset, mapping-table of the charset is modified.
3607         (Fdefine_char): New function in UTF-2000.
3608         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3609         `Fput_char_attribute'.
3610         (syms_of_mule_charset): Add new function `define-char' and new
3611         symbol `ucs' in UTF-2000.
3612         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3613
3614 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3615
3616         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3617         non-UTF-2000 configuration.
3618
3619 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3620
3621         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3622         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3623
3624         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3625         deleted.
3626         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3627         (Fset_charset_mapping_table): Likewise.
3628
3629         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3630         (CHARSET_ENCODING_TABLE): Delete.
3631         (XCHARSET_ENCODING_TABLE): Delete.
3632         (charset_code_point): New interface.
3633
3634 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3635
3636         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3637         instead of `charset_get_byte1' and `charset_get_byte2'.
3638
3639         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3640         (charset_get_byte2): Deleted.
3641
3642 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3643
3644         * char-ucs.h (SPLIT_CHAR): New inline function.
3645         (breakup_char_1): Use `SPLIT_CHAR'.
3646
3647         * mule-charset.c (range_charset_code_point): New function.
3648         (charset_code_point): New function.
3649
3650         * char-ucs.h (range_charset_code_point): New interface.
3651         (breakup_char_1): Use `range_charset_code_point'.
3652
3653 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3654
3655         * mule-charset.c (Fmake_charset): Delete unused local variable
3656         `code_offset'.
3657
3658         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3659         (breakup_char_1): Find a charset and code-point in
3660         `Vcharacter_attribute_table'.
3661
3662 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3663
3664         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3665         to 0.10 (Yao).
3666
3667 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3668
3669         * mule-charset.c (Vcharacter_attribute_table): New variable.
3670         (Fchar_attribute_alist): New function.
3671         (Fget_char_attribute): New function.
3672         (Fput_char_attribute): New function.
3673         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3674         too.
3675         (syms_of_mule_charset): Add new function `char-attribute-alist',
3676         `get-char-attribute' and `put-char-attribute'.
3677         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3678
3679 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3680
3681         * mule-charset.c (Fmake_charset): Just use
3682         `get_unallocated_leading_byte'.
3683
3684         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3685         sets; don't use final-byte based number for private sets.
3686
3687 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3688
3689         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3690         integer.
3691
3692 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3693
3694         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3695         to 0.9.
3696
3697 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3698
3699         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3700         of `CHAR_LEADING_BYTE' in UTF-2000.
3701
3702         * insdel.c (find_charsets_in_bufbyte_string): Use
3703         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3704         (find_charsets_in_emchar_string): Likewise.
3705
3706         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3707         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3708
3709         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3710         (CHAR_CHARSET_ID): New macro.
3711
3712 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3713
3714         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3715         charset-id - MIN_LEADING_BYTE.
3716         (put_char_table): Likewise.
3717
3718 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3719
3720         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3721         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3722         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3723         (CHARSET_ID_OFFSET): New macro.
3724         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3725         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3726         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3727         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3728         4).
3729         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3730         5).
3731         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3732         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3733         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3734         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3735         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3736
3737 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3738
3739         * mule-charset.c (next_allocated_leading_byte): New variable in
3740         UTF-2000.
3741         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3742         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3743         (get_unallocated_leading_byte): Simply use
3744         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3745         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3746         UTF-2000.
3747
3748         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3749         (MAX_LEADING_BYTE_PRIVATE): New macro.
3750         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3751         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3752
3753 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3754
3755         * mule-charset.c (Fmake_charset): Allocate final-byte based
3756         charset-id for 94-set, 96-set and 94x94-set.
3757
3758 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3759
3760         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3761         ambiguous `else'.
3762         (Fmake_charset): Likewise.
3763         (complex_vars_of_mule_charset): Modify the font registry of
3764         `ucs-bmp' not to match `Ethiopic-Unicode'.
3765
3766 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3767
3768         * mule-charset.c (complex_vars_of_mule_charset): Add font
3769         registory of `ucs-bmp'.
3770
3771 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3772
3773         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3774         coded-charsets in `default-coded-charset-priority-list' when
3775         breaking up a character.
3776
3777         * mule-charset.c (Vcharset_latin_viscii): New variable.
3778         (Qlatin_viscii): New variable.
3779         (make_charset): Don't use `decoding_table'.
3780         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3781         byte_offset.
3782         (Fset_charset_mapping_table): New implementation.
3783         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3784         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3785         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3786         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3787         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3788         charset `latin_viscii'.
3789
3790         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3791         (CHARSET_TYPE_94X94): Change to 1 from 2.
3792         (CHARSET_TYPE_96): Change to 2 from 1.
3793         (CHARSET_TYPE_128): New macro.
3794         (CHARSET_TYPE_128X128): Change to 5 from 4.
3795         (CHARSET_TYPE_256): New macro.
3796         (CHARSET_TYPE_256X256): Change to 7 from 5.
3797         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3798
3799 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3800
3801         * text-coding.c (char_encode_shift_jis): Refer
3802         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3803         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3804
3805         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3806         (char_byte_table_equal): New function in UTF-2000.
3807         (char_byte_table_hash): New function in UTF-2000.
3808         (char_byte_table_description): New constant in UTF-2000.
3809         (char_byte_table): New type in UTF-2000.
3810         (make_char_byte_table): New function in UTF-2000.
3811         (copy_char_byte_table): New function in UTF-2000.
3812         (make_char_code_table): New macro in UTF-2000.
3813         (get_char_code_table): New function in UTF-2000.
3814         (put_char_code_table): New function in UTF-2000.
3815         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3816         (charset_description): Add setting in UTF-2000.
3817         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3818         `CHARSET_TO_BYTE1_TABLE(cs)'.
3819         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3820         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3821         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3822         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3823         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3824         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3825         `CHARSET_TO_BYTE2_TABLE(cs)'.
3826
3827         * char-ucs.h (char_byte_table): New type.
3828         (XCHAR_BYTE_TABLE): New macro.
3829         (XSETCHAR_BYTE_TABLE): New macro.
3830         (CHAR_BYTE_TABLE_P): New macro.
3831         (GC_CHAR_BYTE_TABLE_P): New macro.
3832         (struct Lisp_Char_Byte_Table): New structure.
3833         (get_char_code_table): New interface.
3834         (Emchar_to_byte_table): Deleted.
3835         (get_byte_from_character_table): Deleted.
3836         (struct Lisp_Charset): Add `encoding_table'; delete
3837         `to_byte1_table' and `to_byte2_table'.
3838         (CHARSET_ENCODING_TABLE): New macro.
3839         (CHARSET_TO_BYTE1_TABLE): Deleted.
3840         (CHARSET_TO_BYTE2_TABLE): Deleted.
3841         (XCHARSET_ENCODING_TABLE): New macro.
3842         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3843         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3844
3845 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3846
3847         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3848         `vietnamese-viscii-*'.
3849
3850 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3851
3852         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3853         (Qvietnamese_viscii_upper): New variable.
3854         (Fdefine_charset_alias): New function.
3855         (syms_of_mule_charset): Add new function `define-charset-alias'.
3856         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3857         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3858         `latin-viscii-*'.
3859
3860 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3861
3862         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3863         (MAX_CHAR_OBS_94x94): New macro.
3864         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3865         for 94x94 sets.
3866
3867         * mule-charset.c (put_byte_from_character_table): Change unit size
3868         from 128 to 256.
3869         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3870         not defined.
3871         (Fmake_reverse_direction_charset): Modify dummy argument of
3872         `make_charset' for non-UTF-2000 environment.
3873
3874 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3875
3876         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3877
3878         * mule-charset.c (destroy_byte_from_character_table): New macro.
3879         (latin_jisx0201_to_ucs): Deleted.
3880         (latin_iso8859_2_to_ucs): Deleted.
3881         (latin_iso8859_3_to_ucs): Deleted.
3882         (latin_iso8859_4_to_ucs): Deleted.
3883         (latin_iso8859_9_to_ucs): Deleted.
3884         (latin_viscii_lower_to_ucs): Deleted.
3885         (latin_viscii_upper_to_ucs): Deleted.
3886         (mark_charset): Mark `cs->decoding_table'.
3887         (Fcharset_mapping_table): Fix DOC-string.
3888         (Fset_charset_mapping_table): New function.
3889         (syms_of_mule_charset): Add nwe function
3890         `set-charset-mapping-table'.
3891         (complex_vars_of_mule_charset): Don't setup and use
3892         `latin_*_to_ucs'.
3893
3894 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3895
3896         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3897         charset.
3898
3899 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3900
3901         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3902         (Vcharset_katakana_jisx0208): New variable.
3903         (Qhiragana_jisx0208): New variable.
3904         (Qkatakana_jisx0208): New variable.
3905         (make_charset): Add new argument `byte_offset'.
3906         (charset_get_byte1): Modify for new coded-charset definition; use
3907         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3908         `XCHARSET_BYTE_OFFSET'.
3909         (Fmake_charset): Modify for `make_charset'.
3910         (Fmake_reverse_direction_charset): Likewise.
3911         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3912         `katakana-jisx0208'.
3913         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3914         `.'  in font registry of charset `katakana-jisx0201',
3915         `latin-jisx0201', `vietnamese-viscii-lower' and
3916         `vietnamese-viscii-upper'; modify DOC-string of charset
3917         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3918         registry of charset `japanese-jisx0208' not to use font for JIS
3919         X0208:1990; add new charset `hiragana-jisx0208' and
3920         `katakana-jisx0208'.
3921
3922         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3923         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3924         (struct Lisp_Charset): Add `byte_offset'.
3925         (CHARSET_BYTE_OFFSET): New macro.
3926         (XCHARSET_UCS_MIN): New macro.
3927         (XCHARSET_UCS_MAX): New macro.
3928         (XCHARSET_CODE_OFFSET): New macro.
3929         (XCHARSET_BYTE_OFFSET): New macro.
3930         (MIN_CHAR_HIRAGANA): New macro.
3931         (MAX_CHAR_HIRAGANA): New macro.
3932         (MIN_CHAR_KATAKANA): New macro.
3933         (MAX_CHAR_KATAKANA): New macro.
3934         (MAKE_CHAR): Modify for new coded-charset definition; use
3935         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3936         `XCHARSET_BYTE_OFFSET'.
3937
3938 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3939
3940         * mule-charset.c (CHAR96): Deleted.
3941         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3942         <Lisp_Object>.
3943         (latin_iso8859_2_to_ucs): Likewise.
3944         (latin_iso8859_3_to_ucs): Likewise.
3945         (latin_iso8859_4_to_ucs): Likewise.
3946         (latin_iso8859_9_to_ucs): Likewise.
3947         (latin_viscii_lower_to_ucs): Likewise.
3948         (latin_viscii_upper_to_ucs): Likewise.
3949         (latin_tcvn5712_to_ucs): Commented out.
3950         (make_charset): Change type of argument `decoding_table' from
3951         <Emchar*> to <Lisp_Object> [vector of characters].
3952         (Fmake_charset): Modify for `make_charset'.
3953         (Fmake_reverse_direction_charset): Likewise.
3954         (Fcharset_mapping_table): New function in UTF-2000.
3955         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3956         UTF-2000.
3957         (complex_vars_of_mule_charset): Modify for type change of
3958         `*_to_ucs'; modify for `make_charset'.
3959
3960         * char-ucs.h (struct Lisp_Charset): Change type of
3961         `decoding_table' from <Emchar*> to <Lisp_Object>.
3962         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3963
3964 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3965
3966         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3967         error with non-UTF-2000-Mule.
3968
3969 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3970
3971         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3972         in lisp again].
3973         (Vcharset_chinese_cns11643_4): Likewise.
3974         (Vcharset_chinese_cns11643_5): Likewise.
3975         (Vcharset_chinese_cns11643_6): Likewise.
3976         (Vcharset_chinese_cns11643_7): Likewise.
3977         (Qchinese_cns11643_3): Likewise.
3978         (Qchinese_cns11643_4): Likewise.
3979         (Qchinese_cns11643_5): Likewise.
3980         (Qchinese_cns11643_6): Likewise.
3981         (Qchinese_cns11643_7): Likewise.
3982         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3983         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3984         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3985         (complex_vars_of_mule_charset): Likewise.
3986
3987 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3988
3989         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3990         96-set.
3991         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3992         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3993
3994 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3995
3996         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3997         0xFF60.
3998         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3999         (breakup_char_1): Likewise.
4000
4001         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4002         one of them includes the specified character.
4003
4004 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4005
4006         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4007
4008 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4009
4010         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4011
4012 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4013
4014         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4015         definition for non-UTF-2000 Mule.
4016         (latin_iso8859_3_to_ucs): Likewise.
4017         (latin_iso8859_4_to_ucs): Likewise.
4018         (latin_iso8859_9_to_ucs): Likewise.
4019         (latin_jisx0201_to_ucs): Likewise.
4020         (MIN_CHAR_THAI): Likewise.
4021         (MAX_CHAR_THAI): Likewise.
4022         (MIN_CHAR_GREEK): Likewise.
4023         (MAX_CHAR_GREEK): Likewise.
4024         (MIN_CHAR_HEBREW): Likewise.
4025         (MAX_CHAR_HEBREW): Likewise.
4026         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4027         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4028         (MIN_CHAR_CYRILLIC): Likewise.
4029         (MAX_CHAR_CYRILLIC): Likewise.
4030
4031 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4032
4033         * char-ucs.h (breakup_char_1): Use
4034         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4035         thai-tis620 and katakana-jisx0201 area.
4036
4037 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4038
4039         * char-ucs.h (breakup_char_1): Use
4040         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4041         area.
4042
4043         * text-coding.c (reset_encoding_stream): Fixed.
4044         (char_encode_ucs4): Delete `& 255'.
4045
4046         * char-ucs.h (breakup_char_1): Use
4047         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4048
4049 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4050
4051         * file-coding.c (Fmake_coding_system): Don't set up
4052         `codesys->fixed.size'.
4053         (encode_coding_no_conversion): Don't refer
4054         `str->codesys->fixed.size'.
4055
4056 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4057
4058         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4059         (latin_a_char_to_byte1): Deleted.
4060         (latin_a_char_to_byte2): Deleted.
4061
4062 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4063
4064         * mule-charset.c (make_charset): Add new argument `ucs_min',
4065         `ucs_max' and `code_offset'.
4066         (charset_get_byte1): New implementation [delete specific charset
4067         depended implementations].
4068         (Fmake_charset): Modify for `make_charset'.
4069         (Fmake_reverse_direction_charset): Likewise.
4070         (complex_vars_of_mule_charset): Likewise.
4071
4072         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4073         `code_offset'.
4074         (CHARSET_UCS_MIN): New macro.
4075         (CHARSET_UCS_MAX): New macro.
4076         (CHARSET_CODE_OFFSET): New macro.
4077         (MAKE_CHAR): Delete charset depended definitions [except
4078         katakana-jisx0201].
4079
4080 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4081
4082         * char-ucs.h (breakup_char_1): Use
4083         `Vdefault_coded_charset_priority_list' for C0-Controls,
4084         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4085
4086 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4087
4088         * char-ucs.h (charset_get_byte1): New function.
4089         (XCHARSET_GET_BYTE1): Deleted.
4090         (charset_get_byte2): New function.
4091         (XCHARSET_GET_BYTE2): Deleted.
4092         (Vdefault_coded_charset_priority_list): New external variable.
4093         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4094         `Vdefault_preferred_coded_charset_list'.
4095
4096         * mule-charset.c (charset_get_byte1): New function.
4097         (charset_get_byte2): New function.
4098         (Vdefault_coded_charset_priority_list): New variable.
4099         (vars_of_mule_charset): Add new variable
4100         `default-coded-charset-priority-list'.
4101
4102 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4103
4104         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4105         (XCHARSET_GET_BYTE2): New inline function.
4106         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4107         `XCHARSET_GET_BYTE2'.
4108
4109 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4110
4111         * mule-charset.c (make_charset): Initialize
4112         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4113         NULL if table is not defined.
4114
4115 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4116
4117         * text-coding.c (char_encode_shift_jis): Use
4118         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4119         `ucs_to_latin_jisx0201'.
4120
4121         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4122         (ucs_to_latin_iso8859_2): Deleted.
4123         (ucs_to_latin_iso8859_3): Deleted.
4124         (ucs_to_latin_iso8859_4): Deleted.
4125         (ucs_to_latin_iso8859_9): Deleted.
4126         (ucs_to_latin_viscii_lower): Deleted.
4127         (ucs_to_latin_viscii_upper): Deleted.
4128         (ucs_to_latin_tcvn5712): Deleted.
4129         (make_charset): Add new argument `decoding_table'; set up
4130         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4131         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4132         `decoding_table' is defined in UTF-2000.
4133         (Fmake_charset): Modify for `make_charset'.
4134         (Fmake_reverse_direction_charset): Likewise.
4135         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4136         and `GENERATE_96_SET'.
4137
4138         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4139         (ucs_to_latin_jisx0201): Deleted.
4140         (latin_iso8859_2_to_ucs): Deleted.
4141         (ucs_to_latin_iso8859_2): Deleted.
4142         (latin_iso8859_3_to_ucs): Deleted.
4143         (ucs_to_latin_iso8859_3): Deleted.
4144         (latin_iso8859_4_to_ucs): Deleted.
4145         (ucs_to_latin_iso8859_4): Deleted.
4146         (latin_iso8859_9_to_ucs): Deleted.
4147         (ucs_to_latin_iso8859_9): Deleted.
4148         (latin_viscii_lower_to_ucs): Deleted.
4149         (ucs_to_latin_viscii_lower): Deleted.
4150         (latin_viscii_upper_to_ucs): Deleted.
4151         (ucs_to_latin_viscii_upper): Deleted.
4152         (struct Lisp_Charset): Renamed `encoding_table' to
4153         `to_byte1_table'; add `to_byte2_table'.
4154         (CHARSET_DECODING_TABLE): New macro.
4155         (CHARSET_TO_BYTE1_TABLE): New macro.
4156         (CHARSET_TO_BYTE2_TABLE): New macro.
4157         (XCHARSET_DECODING_TABLE): New macro.
4158         (XCHARSET_TO_BYTE1_TABLE): New macro.
4159         (XCHARSET_TO_BYTE2_TABLE): New macro.
4160         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4161         tables.
4162         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4163         don't use `ucs_to_*' tables.
4164
4165 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4166
4167         * text-coding.c (Fmake_coding_system): Don't set up
4168         `codesys->fixed.size'.
4169         (encode_coding_no_conversion): Use `if' instead of `switch'.
4170
4171         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4172
4173 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4174
4175         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4176         (Fmake_charset): Modify for `make_charset'.
4177         (Fmake_reverse_direction_charset): Likewise.
4178         (complex_vars_of_mule_charset): Likewise.
4179
4180 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4181
4182         * text-coding.c (char_encode_shift_jis): Use table
4183         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4184
4185 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4186
4187         * text-coding.c (text_encode_generic): Use `if' instead of
4188         `switch'.
4189         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4190         decode JIS-Latin.
4191
4192 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4193
4194         * text-coding.c (encode_coding_sjis): Deleted.
4195         (char_encode_shift_jis): New function.
4196         (char_finish_shift_jis): New function.
4197         (reset_encoding_stream): Set up `encode_char' and `finish' for
4198         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4199         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4200         (char_encode_utf8): Treat `eol_type'.
4201
4202 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4203
4204         * file-coding.c (decode_coding_iso2022): Use
4205         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4206
4207 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4208
4209         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4210         to 0.7 (Hirano).
4211
4212 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4213
4214         * char-lb.h (CHAR_COLUMNS): New macro.
4215
4216 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4217
4218         * text-coding.c (char_encode_ucs4): New function.
4219         (char_finish_ucs4): New function.
4220         (encode_coding_ucs4): Deleted.
4221         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4222         (text_encode_generic): Delete local variable `charset' and `half'.
4223         (ucs_to_mule_table): Deleted.
4224         (mule_to_ucs_table): Deleted.
4225         (Fset_ucs_char): Deleted.
4226         (ucs_to_char): Deleted.
4227         (Fucs_char): Deleted.
4228         (Fset_char_ucs): Deleted.
4229         (Fchar_ucs): Deleted.
4230         (decode_ucs4): Deleted.
4231         (mule_char_to_ucs4): Deleted.
4232         (encode_ucs4): Deleted.
4233         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4234         (decode_coding_utf8): Likewise.
4235         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4236         (char_encode_iso2022): Fixed.
4237         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4238         `Fset_char_ucs' and `Fchar_ucs'.
4239         (complex_vars_of_file_coding): Don't initialize
4240         `ucs_to_mule_table'.
4241
4242         * objects-tty.c (tty_initialize_font_instance): Don't use
4243         `XCHARSET_COLUMNS'.
4244
4245         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4246         UTF-2000.
4247
4248         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4249         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4250
4251         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4252         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4253         (emchar_string_displayed_columns): Likewise.
4254
4255         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4256         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4257         (string_column_at_point): Likewise.
4258         (Fmove_to_column): Likewise.
4259
4260         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4261         `encoding_table' and `decoding_table'.
4262         (CHARSET_REP_BYTES): Deleted.
4263         (XCHARSET_REP_BYTES): Deleted.
4264         (XCHARSET_COLUMNS): Deleted.
4265         (CHAR_COLUMNS): New macro.
4266         (lookup_composite_char): Deleted unconditionally.
4267         (composite_char_string): Likewise.
4268
4269 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4270
4271         * char-ucs.h (Emchar_to_byte_table): New type.
4272         (get_byte_from_character_table): New function interface.
4273         (Vcharset_latin_jisx0201): New variable.
4274         (latin_jisx0201_to_ucs): New variable.
4275         (ucs_to_latin_jisx0201): New variable.
4276         (Vcharset_latin_iso8859_2): New variable.
4277         (latin_iso8859_2_to_ucs): New variable.
4278         (ucs_to_latin_iso8859_2): New variable.
4279         (Vcharset_latin_iso8859_3): New variable.
4280         (latin_iso8859_3_to_ucs): New variable.
4281         (ucs_to_latin_iso8859_3): New variable.
4282         (Vcharset_latin_iso8859_4): New variable.
4283         (latin_iso8859_4_to_ucs): New variable.
4284         (ucs_to_latin_iso8859_4): New variable.
4285         (Vcharset_latin_iso8859_9): New variable.
4286         (latin_iso8859_9_to_ucs): New variable.
4287         (ucs_to_latin_iso8859_9): New variable.
4288         (Vcharset_latin_viscii_lower): New variable.
4289         (latin_viscii_lower_to_ucs): New variable.
4290         (ucs_to_latin_viscii_lower): New variable.
4291         (Vcharset_latin_viscii_upper): New variable.
4292         (latin_viscii_upper_to_ucs): New variable.
4293         (ucs_to_latin_viscii_upper): New variable.
4294         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4295         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4296         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4297         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4298         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4299         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4300         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4301         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4302         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4303         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4304
4305         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4306         (Vcharset_latin_viscii_upper): New variable.
4307         (make_byte_from_character_table): New function.
4308         (put_byte_from_character_table): New function.
4309         (get_byte_from_character_table): New function.
4310         (CHAR96): New macro.
4311         (ucs_to_latin_jisx0201): New variable.
4312         (latin_jisx0201_to_ucs): New variable.
4313         (ucs_to_latin_iso8859_2): New variable.
4314         (latin_iso8859_2_to_ucs): New variable.
4315         (ucs_to_latin_iso8859_3): New variable.
4316         (latin_iso8859_3_to_ucs): New variable.
4317         (ucs_to_latin_iso8859_4): New variable.
4318         (latin_iso8859_4_to_ucs): New variable.
4319         (ucs_to_latin_iso8859_9): New variable.
4320         (latin_iso8859_9_to_ucs): New variable.
4321         (ucs_to_latin_viscii_lower): New variable.
4322         (latin_viscii_lower_to_ucs): New variable.
4323         (ucs_to_latin_viscii_upper): New variable.
4324         (latin_viscii_upper_to_ucs): New variable.
4325         (ucs_to_latin_tcvn5712): New variable.
4326         (latin_tcvn5712_to_ucs): New variable.
4327         (Qlatin_viscii_lower): New variable.
4328         (Qlatin_viscii_upper): New variable.
4329         (syms_of_mule_charset): Set up new symbol
4330         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4331         (complex_vars_of_mule_charset): Set up new charset
4332         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4333         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4334         `ucs_to_<CHARSET>' tables.
4335
4336 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4337
4338         * text-coding.c: New file.
4339
4340 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4341
4342         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4343
4344         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4345         (MAKE_CHAR): Modify for `ucs-bmp'.
4346         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4347         non-MULE characters of BMP.
4348
4349 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4350
4351         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4352         to 0.6.
4353
4354 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4355
4356         * lstream.h:
4357         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4358         - Include character.h for `CHAR_ASCII_P'.
4359
4360         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4361
4362         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4363         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4364
4365         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4366         (BYTE_C0_P): Likewise.
4367         (BYTE_C1_P): Likewise.
4368         (Lstream_get_emchar_1): Likewise.
4369         (Lstream_fput_emchar): Likewise.
4370         (Lstream_funget_emchar): Likewise.
4371         (copy_internal_to_external): Likewise.
4372         (copy_external_to_internal): Likewise.
4373
4374         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4375         (BYTE_C0_P): Likewise.
4376         (BYTE_C1_P): Likewise.
4377         (Lstream_get_emchar_1): Likewise.
4378         (Lstream_fput_emchar): Likewise.
4379         (Lstream_funget_emchar): Likewise.
4380         (copy_internal_to_external): Likewise.
4381         (copy_external_to_internal): Likewise.
4382
4383         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4384         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4385
4386         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4387         (BYTE_ASCII_P): Moved to mb-1byte.h.
4388
4389 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4390
4391         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4392
4393         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4394         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4395         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4396         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4397         (VALIDATE_CHARPTR_FORWARD): Likewise.
4398         (simple_charptr_emchar): Moved to mb-multibyte.h.
4399         (simple_set_charptr_emchar): Likewise.
4400         (simple_charptr_copy_char): Likewise.
4401         (non_ascii_charptr_emchar): Likewise.
4402         (non_ascii_set_charptr_emchar): Likewise.
4403         (non_ascii_charptr_copy_char): Likewise.
4404         (charptr_emchar): Moved to mb-*byte.h.
4405         (set_charptr_emchar): Likewise.
4406         (charptr_copy_char): Likewise.
4407
4408         * mb-1byte.h, mb-multibyte.h: New files.
4409
4410 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4411
4412         * mb-utf-8.h (MULTIBYTE): New macro.
4413         (MAX_EMCHAR_LEN): Moved from buffer.h.
4414         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4415
4416         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4417
4418         * mb-lb.h, multibyte.h: New files.
4419
4420         * char-1byte.h (Charset_ID): Moved from buffer.h.
4421         (MIN_LEADING_BYTE): Likewise.
4422         (LEADING_BYTE_ASCII): Likewise.
4423         (NUM_LEADING_BYTES): Likewise.
4424         (CHARSETP): Likewise.
4425         (CHARSET_BY_LEADING_BYTE): Likewise.
4426         (XCHARSET_LEADING_BYTE): Likewise.
4427         (XCHARSET_GRAPHIC): Likewise.
4428         (XCHARSET_COLUMNS): Likewise.
4429         (XCHARSET_DIMENSION): Likewise.
4430         (CHAR_CHARSET): Likewise.
4431         (CHAR_LEADING_BYTE): Likewise.
4432         (BREAKUP_CHAR): Likewise.
4433         (Vcharset_ascii): Likewise.
4434
4435         * buffer.h: Include multibyte.h unconditionally.
4436         (VALID_CHARPTR_P): Moved to multibyte.h.
4437         (ASSERT_VALID_CHARPTR): Likewise.
4438         (REAL_INC_CHARPTR): Likewise.
4439         (REAL_INC_CHARBYTIND): Likewise.
4440         (REAL_DEC_CHARPTR): Likewise.
4441         (INC_CHARPTR): Likewise.
4442         (INC_CHARBYTIND): Likewise.
4443         (DEC_CHARPTR): Likewise.
4444         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4445         (VALIDATE_CHARPTR_FORWARD): Likewise.
4446         (charptr_n_addr): Likewise.
4447         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4448         (simple_charptr_emchar): Moved to multibyte.h.
4449         (simple_set_charptr_emchar): Likewise.
4450         (simple_charptr_copy_char): Likewise.
4451         (non_ascii_charptr_emchar): Likewise.
4452         (non_ascii_set_charptr_emchar): Likewise.
4453         (non_ascii_charptr_copy_char): Likewise.
4454         (charptr_emchar): Likewise.
4455         (set_charptr_emchar): Likewise.
4456         (charptr_copy_char): Likewise.
4457         (charptr_emchar_n): Likewise.
4458         (Charset_ID): Moved to char-1byte.h.
4459         (Vcharset_ascii): Likewise.
4460         (CHAR_CHARSET): Likewise.
4461         (CHAR_LEADING_BYTE): Likewise.
4462         (LEADING_BYTE_ASCII): Likewise.
4463         (NUM_LEADING_BYTES): Likewise.
4464         (MIN_LEADING_BYTE): Likewise.
4465         (CHARSETP): Likewise.
4466         (CHARSET_BY_LEADING_BYTE): Likewise.
4467         (XCHARSET_LEADING_BYTE): Likewise.
4468         (XCHARSET_GRAPHIC): Likewise.
4469         (XCHARSET_COLUMNS): Likewise.
4470         (XCHARSET_DIMENSION): Likewise.
4471         (BREAKUP_CHAR): Likewise.
4472
4473 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4474
4475         * character.h: Add document about interface for characters.
4476
4477         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4478         (MAKE_CHAR): Delete comment about
4479         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4480         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4481         (BREAKUP_CHAR): Modify name of arguments.
4482         (CHAR_CHARSET): Modify name of argument.
4483
4484         * buffer.h: Delete document about Emchar accessors.
4485
4486 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4487
4488         * character.h (CHAR_INTP): Moved from buffer.h
4489         (CHAR_OR_CHAR_INTP): Likewise.
4490         (XCHAR_OR_CHAR_INT): Likewise.
4491         (CHECK_CHAR_COERCE_INT): Likewise.
4492
4493         * buffer.h (CHAR_INTP): Moved to character.h
4494         (CHAR_OR_CHAR_INTP): Likewise.
4495         (XCHAR_OR_CHAR_INT): Likewise.
4496         (CHECK_CHAR_COERCE_INT): Likewise.
4497
4498 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4499
4500         * character.h:
4501         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4502         - Include char-1byte.h, char-lb.h or char-ucs.h.
4503
4504         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4505
4506         * buffer.h: Include character unconditionally.
4507         (valid_char_p): Moved to char-*.h.
4508         (non_ascii_valid_char_p): Moved to char-lb.h.
4509
4510         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4511
4512 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4513
4514         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4515         in UTF-2000 because it is not ported yet and not to use
4516         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4517         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4518         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4519
4520         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4521         (CHAR_ASCII_P): Moved from character.h.
4522
4523         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4524         (CHAR_ASCII_P): Likewise.
4525         (CHAR_FIELD1_MASK): Deleted.
4526         (CHAR_FIELD2_MASK): Deleted.
4527         (CHAR_FIELD3_MASK): Deleted.
4528         (MAX_CHAR_BASIC_LATIN): New macro.
4529         (CHAR_FIELD1): Deleted.
4530         (CHAR_FIELD2_INTERNAL): Deleted.
4531         (CHAR_FIELD3_INTERNAL): Deleted.
4532         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4533         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4534         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4535         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4536         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4537         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4538         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4539         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4540         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4541         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4542         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4543         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4544         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4545         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4546         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4547         (MIN_CHAR_COMPOSITION): Deleted.
4548         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4549         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4550
4551 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4552
4553         * buffer.h: Include mb-utf-8.h in UTF-2000.
4554
4555         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4556
4557         * mb-utf-8.h: New file.
4558
4559 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4560
4561         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4562         instead of `int'.
4563
4564         * mule-charset.h, buffer.h (Charset_ID): New type.
4565
4566 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4567
4568         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4569         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4570         instead of `MULE_CHAR_PRIVATE_OFFSET',
4571         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4572         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4573         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4574
4575         * character.h (Vcharset_japanese_jisx0212): New variable
4576         definition.
4577
4578 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4579
4580         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4581         (charset_by_attributes): Delete array about direction.
4582         (latin_a_char_to_charset): New variable in UTF-2000.
4583         (latin_a_char_to_byte1): New variable in UTF-2000.
4584         (latin_a_char_to_byte2): New variable in UTF-2000.
4585         (Qucs_bmp): New variable.
4586         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4587         `Bufbyte'.
4588         (next_allocated_2_byte_leading_byte): Likewise.
4589         (non_ascii_set_charptr_emchar): Likewise.
4590         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4591         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4592         `charset_by_attributes'.
4593         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4594         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4595         and `CHARSET_BY_LEADING_BYTE'.
4596         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4597         `utf-2000-version' to `vars_of_mule_charset'.
4598         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4599         define `leading-code-private-11' in UTF-2000; move setting of
4600         `utf-2000-version' from `syms_of_mule_charset'.
4601         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4602         UTF-2000.
4603
4604         * character.h (Charset_ID): New type.
4605         (LEADING_BYTE_UCS_BMP): New macro.
4606         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4607         (CHARSET_ID_OFFSET_94): New macro.
4608         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4609         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4610         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4611         final-byte.
4612         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4613         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4614         (CHARSET_ID_OFFSET_96): New macro.
4615         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4616         CHARSET_ID_OFFSET_96 and final-byte.
4617         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4618         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4619         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4620         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4621         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4622         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4623         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4624         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4625         (LEADING_BYTE_THAI_TIS620): Likewise.
4626         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4627         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4628         (CHARSET_ID_OFFSET_94x94): New macro.
4629         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4630         CHARSET_ID_OFFSET_94x94 and final-byte.
4631         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4632         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4633         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4634         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4635         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4636         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4637         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4638         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4639         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4640         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4641         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4642         (CHARSET_TYPE_128X128): New macro.
4643         (CHARSET_TYPE_256X256): New macro.
4644         (XCHARSET_PRIVATE_P): Delete unconditionally.
4645         (charset_by_attributes): Delete array about direction.
4646         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4647         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4648         (MIN_CHAR_94): New macro.
4649         (MAX_CHAR_94): New macro.
4650         (MIN_CHAR_96): New macro.
4651         (MAX_CHAR_96): New macro.
4652         (MIN_CHAR_94x94): New macro.
4653         (MAX_CHAR_94x94): New macro.
4654         (MIN_CHAR_96x96): New macro.
4655         (MAX_CHAR_96x96): New macro.
4656         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4657         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4658         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4659         - 32)'.
4660         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4661         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4662         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4663         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4664         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4665         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4666         `XCHARSET_LEADING_BYTE' to make code-point.
4667         (latin_a_char_to_charset): New variable.
4668         (latin_a_char_to_byte1): New variable.
4669         (latin_a_char_to_byte2): New variable.
4670         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4671         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4672         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4673
4674         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4675         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4676         (find_charsets_in_emchar_string): Likewise.
4677         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4678
4679         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4680         `int'.
4681         (decode_coding_iso2022): Likewise.
4682
4683         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4684         of `unsigned char'.
4685
4686         * redisplay.c (redisplay_text_width_emchar_string): Use
4687         `Charset_ID' instead of `unsigned char'.
4688         (redisplay_frame_text_width_string): Likewise.
4689
4690         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4691         `unsigned char'.
4692
4693         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4694         instead of `unsigned char'.
4695         (face_cachel_charset_font_metric_info): Likewise.
4696
4697         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4698         (get_non_ascii_char_table_value): Likewise.
4699         (get_char_table): Likewise.
4700         (put_char_table): Likewise.
4701         (map_over_other_charset): Likewise.
4702         (map_char_table): Likewise.
4703
4704         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4705         instead of `unsigned char'.
4706
4707 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4708
4709         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4710         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4711
4712         * mule-charset.c (leading_code_private_11): Don't define in
4713         UTF-2000.
4714
4715         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4716         in UTF-2000 because it is not ported yet and not to use
4717         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4718
4719 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4720
4721         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4722
4723 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4724
4725         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4726         in UTF-2000.
4727
4728         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4729         of unsigned char to store leading-byte.
4730
4731         * chartab.c (get_non_ascii_char_table_value): Don't use
4732         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4733
4734         * file-coding.c (encode_coding_big5): Delete bogus implementation
4735         in UTF2000.
4736
4737         * character.h (LEADING_BYTE_*): Delete definition for
4738         non-UTF-2000.
4739         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4740         (LEADING_BYTE_PREFIX_P): Deleted.
4741         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4742         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4743         (BUFBYTE_LEADING_BYTE_P): Deleted.
4744         (CHARSET_PRIVATE_P): Deleted unconditionally.
4745         (rep_bytes_by_first_byte): Deleted unconditionally.
4746         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4747         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4748         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4749         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4750         (CHAR_FIELD2): Deleted.
4751         (CHAR_FIELD3): Deleted.
4752         (MAKE_CHAR): Delete definition for non-UTF-2000.
4753         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4754         (breakup_char_1): New implementation.
4755         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4756         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4757
4758 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4759
4760         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4761         condition.
4762
4763 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4764
4765         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4766         (CHARSET_PRIVATE_P): Likewise.
4767         (XCHARSET_PRIVATE_P): Likewise.
4768         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4769
4770         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4771         UTF2000.
4772         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4773
4774 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4775
4776         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4777         (NUM_LEADING_BYTES): Changed from 128 to 256.
4778         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4779         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4780         UTF2000.
4781         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4782
4783         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4784         UTF2000.
4785         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4786         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4787         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4788         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4789         (Qchinese_cns11643_3): New variable in UTF2000.
4790         (Qchinese_cns11643_4): New variable in UTF2000.
4791         (Qchinese_cns11643_5): New variable in UTF2000.
4792         (Qchinese_cns11643_6): New variable in UTF2000.
4793         (Qchinese_cns11643_7): New variable in UTF2000.
4794         (syms_of_mule_charset): Define `chinese-cns11643-3',
4795         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4796         and `chinese-cns11643-7' in UTF2000.
4797         (vars_of_mule_charset): Initialize
4798         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4799         + 1 in UTF2000.
4800         (complex_vars_of_mule_charset): Setup charset
4801         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4802         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4803
4804 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4805
4806         * mule-charset.c: Move setting for `leading-code-private-11' from
4807         `syms_of_mule_charset' to `vars_of_mule_charset'.
4808
4809 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4810
4811         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4812         and `NUM_LEADING_BYTES' in assert.
4813
4814 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4815
4816         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4817         instead of 128.
4818         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4819         `NUM_LEADING_BYTES' instead of 128.
4820
4821 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4822
4823         * mule-charset.h (charset_by_leading_byte): Use
4824         `NUM_LEADING_BYTES' instead of 128.
4825         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4826
4827         * mule-charset.c (charset_by_leading_byte): Use
4828         `NUM_LEADING_BYTES' instead of 128.
4829         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4830
4831         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4832         128.
4833
4834 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4835
4836         * mule-charset.c (syms_of_mule_charset): Update to
4837         0.4 (Shin-Imamiya).
4838
4839 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4840
4841         * file-coding.c (encode_coding_sjis): New implementation for
4842         UTF2000.  (decode_coding_sjis): Ditto.
4843
4844 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4845
4846         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4847         Don't define in UTF2000.
4848
4849         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4850         defined.
4851
4852         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4853         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4854         MULE.
4855
4856 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4857
4858         * config.h.in (CHAR_IS_UCS4): New macro.
4859
4860         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4861         conventional MULE representation.
4862         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4863
4864         * mule-charset.h: Reverted to original.
4865
4866         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4867         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4868         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4869
4870         * character.h: New file.
4871
4872         * file-coding.c (Fmake_coding_system): Set 1 to
4873         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4874         defined.
4875         (encode_coding_no_conversion): New implementation for UTF2000.
4876
4877         * file-coding.h (struct Lisp_Coding_System): Add new member
4878         `fixed.size'.
4879
4880 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4881
4882         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4883         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4884         (encode_coding_iso2022): New implementation for UTF2000.
4885
4886 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4887
4888         * mule-canna.c (c2mu): New implementation for UTF2000.
4889         (m2c): Likewise.
4890
4891 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4892
4893         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4894
4895 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4896
4897         * file-coding.c (reset_encoding_stream): Set 0 to
4898         `str->iso2022.current_char_boundary' in UTF2000.
4899         (encode_utf8): Don't define in UTF2000.
4900         (encode_coding_utf8): New implementation for UTF-8 representation
4901         of UTF2000.
4902         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4903
4904 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4905
4906         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4907
4908         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4909         UTF2000.
4910         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4911
4912         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4913
4914         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4915         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4916         as UTF-8 in UTF2000.
4917         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4918         (non_ascii_valid_char_p): Don't define in UTF2000.
4919         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4920         (Lstream_get_emchar_1): Likewise.
4921         (utf-2000-version): New variable in UTF2000.
4922
4923         * lread.c (read_escape): Add new reader `u'.
4924
4925         * insdel.c (three_to_one_table): Don't define in UTF2000.
4926         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4927         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4928         UTF2000.
4929         (bytind_to_bufpos_func): Likewise.
4930         (buffer_mule_signal_inserted_region): Likewise.
4931         (vars_of_insdel): Don't initialize `three_to_one_table'.
4932         (init_buffer_text): Use `buf->text->mule_size' instead of
4933         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4934         UTF2000.
4935
4936         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4937         UTF-8 representation in UTF2000.
4938         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4939         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4940         (decode_coding_iso2022): Don't define local variable `lb' in
4941         UTF2000; don't use LEADING_BYTE in UTF2000; use
4942         `DECODE_ADD_UCS_CHAR' in UTF2000.
4943         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4944
4945         * config.h.in (UTF2000): New macro.
4946
4947         * buffer.h (struct buffer_text): Add new member `mule_size' and
4948         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4949         (valid_char_p): Return always 1 in UTF2000.
4950         (MAX_EMCHAR_LEN): 6 in UTF2000.
4951         (three_to_one_table): Don't define in UTF2000.
4952         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4953         UTF2000.
4954         (real_bytind_to_bufpos): Likewise.
4955
4956         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4957
4958 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4959
4960         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4961         representation change.
4962         (Vutf_2000_version): New variable.
4963         (leading_code_private_11): New variable.
4964         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4965         `leading-code-private-11'.
4966
4967         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4968         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4969         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4970         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4971         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4972         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4973         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4974         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4975         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4976         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4977         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4978         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4979         (MIN_CHAR_GREEK): New macro.
4980         (MAX_CHAR_GREEK): New macro.
4981         (MIN_CHAR_CYRILLIC): New macro.
4982         (MAX_CHAR_CYRILLIC): New macro.
4983         (MIN_CHAR_HEBREW): New macro.
4984         (MAX_CHAR_HEBREW): New macro.
4985         (MIN_CHAR_THAI): New macro.
4986         (MAX_CHAR_THAI): New macro.
4987         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4988         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4989         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4990         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4991         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4992         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4993         (CHAR_FIELD2): New inline function.
4994         (CHAR_FIELD3): New inline function.
4995         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4996         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4997         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4998         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4999         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5000         (MIN_CHAR_COMPOSITION): Likewise.
5001         (CHAR_LEADING_BYTE): Modified for character representation change.
5002         (MAKE_CHAR): Likewise.
5003
5004         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5005         (Vcharset_greek_iso8859_7): Likewise.
5006         (Vcharset_cyrillic_iso8859_5): Likewise.
5007         (Vcharset_hebrew_iso8859_8): Likewise.
5008         (Vcharset_thai_tis620): Likewise.
5009         (Vcharset_katakana_jisx0201): Likewise.
5010
5011 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5012
5013         * XEmacs 21.4.12 "Portable Code" is released.
5014
5015 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5016
5017         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5018         * s/cygwin.sc: new linker file.
5019
5020 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5021
5022         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5023
5024         * redisplay-x.c (x_output_string): Use X11-specified types.
5025         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5026         * emacs.c (__free_hook): Use typeof with Intel compiler.
5027         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5028
5029 2003-01-08  Andy Piper  <andy@xemacs.org>
5030
5031         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5032         reserve size during unexec().
5033
5034 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5035
5036         * process-unix.c (unix_create_process): Don't let outchannel block.
5037
5038 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5039
5040         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5041         Needed for IsBadReadPtr().
5042
5043 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5044
5045         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5046
5047 2002-12-14  Ben Wing  <ben@xemacs.org>
5048
5049         * callint.c: Declaration error.
5050         * dumper.c (pdump):
5051         * dumper.c (pdump_load): Warning fix.
5052         * process.c: GCPRO error.
5053         * glyphs.c (unmap_subwindow):
5054         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5055         * event-stream.c (maybe_kbd_translate): Wrong argument to
5056         character_to_event().
5057
5058         * alloc.c (garbage_collect_1):
5059         * emacs.c:
5060         * emacs.c (debug_can_access_memory):
5061         * emacs.c (fatal_error_signal):
5062         * emacs.c (mswindows_handle_hardware_exceptions):
5063         * emacs.c (main_1):
5064         * emacs.c (main):
5065         * emacs.c (assert_failed):
5066         * emacs.c (syms_of_emacs):
5067         * lisp.h:
5068         * print.c:
5069         * print.c (std_handle_out_va):
5070         * print.c (write_string_to_stdio_stream):
5071         * print.c (write_fmt_string):
5072         * print.c (printing_badness):
5073         * print.c (printing_major_badness):
5074         * print.c (print_internal):
5075         * print.c (debug_print_no_newline):
5076         * print.c (debug_backtrace):
5077         Be more defensive in handling bad values when printing.  Add code
5078         from trunk involving inhibit_non_essential_printing_operations.
5079         When going down or in debug_print(), don't do external conversion
5080         and such and try really, really hard when printing to avoid core
5081         dumping.  Add force-debugging-signal, debug_break().
5082
5083 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5084
5085         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5086         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5087
5088 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5089
5090         * database.c: Fix open_database. Berkeley DB API has changed in
5091         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5092
5093 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5094
5095         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5096
5097 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5098
5099         * event-Xt.c (Xt_timeout):
5100         (Xt_timeout_callback):
5101         (emacs_Xt_add_timeout):
5102         (emacs_Xt_remove_timeout):
5103         (Xt_timeout_to_emacs_event):
5104         Turn completed_timeouts from a stack into a queue.  Fixes
5105         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5106
5107 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5108
5109         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5110         * emacs.c (main): Assert that mmap'd allocation is disabled.
5111
5112 2002-10-14  Andy Piper  <andy@xemacs.org>
5113
5114         * glyphs-widget.c (layout_query_geometry): add in fiddle
5115         factor. Include border text in width layout calculation.
5116         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5117
5118 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5119
5120         * XEmacs 21.4.10 "Military Intelligence" is released.
5121
5122 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5123
5124         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5125         using the NAS private array SoundFileInfo that no longer exists in
5126         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5127         and earlier.  This is broken for some versions between 1.5a and
5128         1.5f.
5129
5130 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5131
5132         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5133
5134         * emacs.c (shut_down_emacs): Improve crash message.
5135
5136 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5137
5138         * file-coding.c (determine_real_coding_system): Check for coding
5139         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5140         shebangs and Python PEP 263.
5141
5142 2002-10-08  Andy Piper  <andy@xemacs.org>
5143
5144         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5145         if static sizes haven't been set.
5146
5147 2002-08-30  Mike Alexander  <mta@arbortext.com>
5148
5149         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5150         to close a socket.
5151
5152 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5153
5154         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5155
5156 2002-09-20  Mike Sperber <mike@xemacs.org>
5157
5158         (This partially gets back my patch from 2002-07-20 without the
5159         bug.)
5160         * callproc.c (child_setup): Remove Ben's comment noting confusion
5161         over the file descriptors >= 3: close_process_descs() doesn't
5162         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5163         * process-unix.c (unix_create_process): Call
5164         begin_dont_check_for_quit to inhibit unwanted interaction (and
5165         thus breaking of X event synchronicity) in the child.
5166
5167 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5168
5169         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5170         widget.
5171
5172 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5173
5174         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5175         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5176         the xemacs process did not exit, but looped infinitely here.  This
5177         fixes that problem.
5178
5179 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5180
5181         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5182         (find_context): Improve comments.
5183
5184         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5185         (re_match_2): An XCHAR_TABLE operation was missing.
5186
5187         Many of the following changes were inspired by Andy Piper's (now
5188         obsolete) patch to make syntax-table text property lookup optional.
5189
5190         [Documentation]
5191
5192         * syntax.h (top level): Document semantics of syntax flags.
5193         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5194         * syntax.c, syntax.h (top level): Document syntax cache better in
5195         comments.
5196
5197         [Instrument syntax caching (temporary change)]
5198
5199         * syntax.h (enum syntax_cache_statistics_functions, struct
5200         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5201         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5202         * syntax.c (scan_words, Fforward_comment, scan_lists,
5203         Fbackward_prefix_characters):
5204         * font-lock.c (find_context):
5205         Use them to instrument syntax caching. 
5206         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5207         syntax_cache_statistics_function_names): New type and variables.
5208         * syntax.c (update_syntax_cache): Update and report statistics.
5209
5210         [Major syntax cache optimizations]
5211
5212         syntax.c (lookup_syntax_properties): Default off.
5213
5214         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5215         * syntax.c (update_syntax_cache):
5216         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5217
5218         [Minor syntax cache optimizations and code clarifications]
5219
5220         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5221         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5222         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5223         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5224         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5225         (Code clarification.)
5226
5227         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5228         scan_lists): Compute code from syncode, use Boolean macros instead
5229         of redundant masking operations.  (Code clarification; any decent
5230         compiler can do this optimization.)
5231
5232         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5233         for clarity.
5234
5235         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5236         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5237         use F*_single_property_change instead of F*_extent_change.
5238         Currently F*_single_property_change is _much_ less efficient.
5239
5240         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5241         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5242         syntax_cache.object properly, don't leave Qt or Qnil.
5243         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5244         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5245         tests for Qt or Qnil.
5246
5247 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5248
5249         * redisplay.c (point_in_line_start_cache): 
5250         * extents.c (print_extent_1):
5251         Fix warnings.
5252
5253         * extents.c (Fset_extent_property): Document `syntax-table' property.
5254
5255         * extents.h (Fnext_single_property_change): EXFUN it.
5256
5257 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5258
5259         * search.c (clear_unused_search_regs): New static function.
5260         (search_buffer): 
5261         (simple_search): 
5262         (boyer_moore):
5263         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5264         Minor clarifications in comments.
5265
5266         * regex.c (re_match_2_internal): Ensure no stale submatches.
5267
5268 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5269
5270         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5271
5272 2002-08-29  Jerry James  <james@xemacs.org>
5273
5274         * lisp.h: structrures -> structures.
5275
5276 2002-06-03  Andy Piper  <andy@xemacs.org>
5277
5278         * frame.c (frame_conversion_internal): add conversion appropriate
5279         for setting frame dimensions in pixels.
5280
5281         * console.h (struct console_methods): add device-specific widget
5282         layout functions.
5283
5284         * emacs.c (main_1): initialize glyph vars.
5285
5286         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5287         (handle_focus_event_2): new function. Allow focus to
5288         be set to a particular window and widget.
5289         (enqueue_focus_event): new function. Create a
5290         synthetic focus event.
5291         (emacs_Xt_handle_magic_event): call
5292         handle_focus_event_2.
5293
5294         * frame.c (Fset_frame_pixel_height): new function. Allow
5295         pixel-based sizing. Does the right thing on character-oriented
5296         displays.
5297         (Fset_frame_pixel_width): ditto.
5298         (Fset_frame_pixel_size): ditto.
5299         (syms_of_frame): declare.
5300
5301         * general-slots.h: add :vertically-justify and
5302         :horizontally-justify.
5303
5304         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5305         (mswindows_widget_border_width): new function.
5306         (mswindows_combo_box_instantiate): set border widths.
5307         (console_type_create_glyphs_mswindows): declare.
5308
5309         * glyphs-widget.c:
5310         (check_valid_justification): allow vertical and horizontal
5311         justification.
5312         (widget_border_width): new function. Call device methods.
5313         (widget_instance_border_width): ditto.
5314         (logical_unit_height): new function. Determine the height of a
5315         logical-unit. Logical units are intended to provide grid-like
5316         layout for subcontrols in a layout. If the layout is
5317         :vertically-justify top then subcontrols will be positioned on
5318         logical-unit boundaries, thus allowing adjacent subcontrols to
5319         line up.
5320         (widget_logical_unit_height): ditto for widgets.
5321         (redisplay_widget): misc cleanup.
5322         (widget_spacing): new function. Call device specific
5323         methods. Intended to be the default gap between adjacent widgets.
5324         (widget_query_geometry): use new spacing functions to determine
5325         appropriate geometry.
5326         (initialize_widget_image_instance): initialize horizontal and
5327         vertical justification.
5328         (widget_instantiate): use logica-units where appropriate for
5329         sizing large widgets.
5330         (button_query_geometry): use widget_instance_border_width.
5331         (tree_view_query_geometry): ditto.
5332         (tab_control_query_geometry): ditto.
5333         (edit_field_query_geometry): new function.
5334         (layout_update): pick up :justify, :horizontally-justify and
5335         :vertically-justify none of which worked previously. :justify is
5336         used as a fallback for both horizontal and vertical justification.
5337         (layout_query_geometry): use logical units to size appropriately.
5338         (layout_layout): ditto.
5339         (Fwidget_logical_to_character_width): new function. Allow users to
5340         convert from logical units to characters so that frame sizes can
5341         be set appropriately.
5342         (Fwidget_logical_to_character_height): ditto.
5343         (syms_of_glyphs_widget): declare.
5344         (image_instantiator_edit_fields): add edit_field_query_geometry.
5345         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5346         :horizontally-justify.
5347         (specifier_vars_of_glyphs_widget): new function. Declare
5348         Vwidget_border_width which is not yet used.
5349
5350         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5351         (x_widget_border_width): new function.
5352         (x_widget_instantiate): create a sensible name for widgets.
5353         (console_type_create_glyphs_x): declare x_widget_border_width.
5354
5355         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5356         (struct Lisp_Image_Instance): add :vertically-justify and
5357         :horizontally-justify.
5358         (LAYOUT_JUSTIFY_TOP): new.
5359         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5360         (ROUND_UP): new macro. Round argument up to next integral
5361         interval.
5362
5363         * redisplay-output.c (redisplay_output_layout): misc formatting.
5364
5365         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5366
5367 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5368
5369         * XEmacs 21.4.9 "Informed Management" is released.
5370
5371 2002-08-19  Andy Piper  <andy@xemacs.org>
5372
5373         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5374         win32 format.
5375
5376         * realpath.c (xrealpath): normalize drive spec also so that dir
5377         sep chars are not mixed on cygwin.
5378
5379 2002-08-06  Jerry James  <james@xemacs.org>
5380
5381         * window.c (Fsplit_window): Count only half of the divider width
5382         against the left window when splitting horizontally. 
5383
5384 2002-06-24  Andy Piper  <andy@xemacs.org>
5385
5386         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5387         toolbar was cleared.
5388
5389         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5390         function. Split out from mswindows_output_frame_toolbars.
5391         (mswindows_output_frame_toolbars): move clear pieces to
5392         mswindows_output_frame_toolbars.
5393
5394         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5395         out from gtk_output_frame_toolbars.
5396         (gtk_output_frame_toolbars): move clear pieces to
5397         gtk_clear_frame_toolbars.
5398
5399         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5400         the frame is cleared. How this ever worked before is a mystery.
5401         (x_output_frame_toolbars): Only output toolbars.
5402         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5403
5404         * gutter.c (update_gutter_geometry):
5405         Mark frame layout changed.
5406         (update_frame_gutter_geometry, update_frame_gutters):
5407         Respect frame_layout_changed.
5408
5409         * console.h (struct console_methods): add
5410         clear_frame_toolbars_method.
5411
5412         * redisplay.c (redisplay_frame): call
5413         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5414
5415         * toolbar.h: declare update_frame_toolbars_geometry.
5416
5417         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5418         out from update_frame_toolbars.  Call clear_frame_toolbars.
5419         (update_frame_toolbars): only output, do not change geometry.
5420
5421         * redisplay.c: add frame_layout_changed.
5422
5423         * redisplay.h: add frame_layout_changed.
5424         (CLASS_RESET_CHANGED_FLAGS): set it.
5425         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5426         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5427         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5428
5429         * device.h (struct device): add frame_layout_changed.
5430         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5431
5432         * frame.h (struct frame): add frame_layout_changed.
5433         (MARK_FRAME_LAYOUT_CHANGED): new.
5434
5435 2002-06-30  Mike Alexander  <mta@arbortext.com>
5436
5437         * event-msw.c (mswindows_need_event): Don't wait for a new message
5438         if the queue is not empty.  Suggested by Paul Moore.
5439
5440 2002-06-12  Andy Piper  <andy@xemacs.org>
5441
5442         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5443         for printing on accurately.
5444
5445 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5446
5447         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5448         WM_ACTIVATE message. Make sure that the frame is visible if the
5449         window is visible. This seemss to fix the problem where XEmacs
5450         appears to freeze after switching desktops with certain virtual
5451         window managers.
5452         (debug_output_mswin_message): Added code to output message
5453         parameters for WM_WINDOWPOSCHANGED, 
5454         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5455
5456 2002-05-25  Andy Piper  <andy@xemacs.org>
5457
5458         * select-x.c (vars_of_select_x): Fix docstring of
5459         x-selection-strict-motif-ownership
5460
5461 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5462
5463         * keymap.c (get_keymap):
5464         Add comment about do_autoload GCPROs own args.
5465
5466 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5467
5468         * bytecode.c (execute_optimized_program): check_opcode ifdef
5469         ERROR_CHECK_BYTE_CODE.
5470
5471 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5472
5473         Thanks to Ben Wing and Michael Sperber.
5474
5475         * eval.c (Fcommand_execute):
5476         (Feval):
5477         (Ffuncall):
5478         (Fmacroexpand_internal):
5479         (function_argcount):
5480         callint.c (Fcall_interactively):
5481         Add comment about do_autoload GCPROs own args.
5482
5483         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5484
5485         * eval.c (Ffuncall): Extra braces to placate GCC.
5486
5487 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5488
5489         * backtrace.h (grow_specpdl):
5490         (SPECPDL_RESERVE):
5491         * EmacsFrame.c (EmacsFrameSetValues):
5492         * eval.c (grow_specpdl):
5493         * ExternalShell.c (hack_event_masks_1):
5494         * glyphs-x.c (convert_EImage_to_XImage): 
5495         (x_finalize_image_instance):
5496         * ralloc.c (page_size):
5497         (r_alloc_sbrk):
5498         * xgccache.c (gc_cache_hash):
5499         Fix unsigned comparison warnings.
5500
5501 2002-07-29  Jerry James  <james@xemacs.org>
5502
5503         * lread.c (locate_file): Any nonnegative return value indicates
5504         success if MODE is nonnegative.
5505
5506 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5507
5508         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5509         argument. 
5510
5511 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5512
5513         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5514
5515         * dumper.c (pdump_get_indirect_count):
5516         (pdump_scan_by_alignment):
5517         (pdump_dump_root_struct_ptrs):
5518         (pdump_dump_rtables):
5519         (pdump_dump_root_objects):
5520         (pdump):
5521         * nas.c (WaveOpenDataForReading):
5522         * fns.c (print_bit_vector):
5523         * font-lock.c (SINGLE_SYNTAX_STYLE):
5524         * glyphs.c (check_for_ignored_expose):
5525         (find_matching_subwindow):
5526         * glyphs-eimage.c:
5527         * imgproc.c (get_histogram):
5528         * redisplay.c (point_in_line_start_cache):
5529         * redisplay-output.c (redisplay_unmap_subwindows):
5530         * symbols.c (defsymbol_massage_name_1):
5531         (defkeyword_massage_name):
5532         (deferror_massage_name_and_message):
5533         * redisplay-x.c (x_output_string): 
5534         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5535         * frame.h (struct frame):
5536         * filelock.c (current_lock_owner):
5537         * doprnt.c (emacs_doprnt_1):
5538         * lisp.h (struct Lisp_Bit_Vector):
5539         (DO_REALLOC):
5540         Fix warnings.
5541
5542 2002-02-13  Ben Wing  <ben@xemacs.org>
5543
5544         * event-stream.c (reset_key_echo):
5545         * event-stream.c (reset_this_command_keys):
5546         * event-stream.c (execute_command_event):
5547         If console is dead as a result of C-x 5 0, then post-command stuff
5548         needs to be careful and do only non-console-specific stuff.
5549
5550 2002-07-01  Mike Sperber <mike@xemacs.org>
5551
5552         * process-unix.c (unix_send_process): Mark coding_outstream as
5553         non-open upon SIGPIPE.
5554
5555         * event-stream.c (Fnext_event): Reorder switch cases to something
5556         that makes sense.
5557
5558 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5559
5560         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5561         Don't bogusly reinitialize ascii_character property.
5562
5563 2002-07-08  Mike Sperber <mike@xemacs.org>
5564
5565         * process.c (Fstart_process_internal): Do error checking before we
5566         fork off the child, so the child can't muck with the state of the
5567         parent.
5568
5569 2002-07-08  Mike Sperber <mike@xemacs.org>
5570
5571         * ralloc.c (init_ralloc): Allocate properly for pdump.
5572
5573 2002-06-12  Andy Piper  <andy@xemacs.org>
5574
5575         * glyphs.c (query_string_geometry): check the string.
5576
5577         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5578         widget names.
5579
5580 2002-06-17  Jerry James  <james@xemacs.org>
5581
5582         * sysdll.c: Remove RTLD_GLOBAL initialization.
5583         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5584
5585 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5586
5587         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5588
5589 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5590
5591         * sysdep.c (sys_rename): Make sys_rename work for the case where
5592         Windows rename sets errno to EACCES if target file exists.
5593
5594 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5595
5596         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5597         Fix detection of metric units to work on Win95
5598
5599 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5600
5601         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5602
5603 2002-04-25  Andy Piper  <andy@xemacs.org>
5604
5605         * redisplay.c (create_text_block): Remove extra comment trailer.
5606
5607 2002-04-24  Andy Piper  <andy@xemacs.org>
5608
5609         * redisplay.c (create_text_block): Don't actually add propagation
5610         data if the line ends after we have added a glyph.
5611
5612 2002-04-22  Andy Piper  <andy@xemacs.org>
5613
5614         * extents.c (extent_fragment_update): check for glyphs we have
5615         previously displayed.
5616         * extents.c (print_extent_1): warning removal.
5617         * extents.h: change prototype.
5618         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5619         widths correctly for wide glyphs.
5620         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5621         * redisplay.c (prop_type): add PROP_GLYPH.
5622         * redisplay.c (struct prop_block): add glyph type
5623         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5624         to the propagation data.
5625         * redisplay.c (create_text_block): if there is a glyph in the
5626         propagation data use it to salt extent_fragment_update.
5627         * redisplay.c (create_string_text_block): ditto.
5628
5629 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5630
5631         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5632         * redisplay-output.c (compare_runes): Compare them.
5633         * redisplay.c: Update copyright date.
5634         * redisplay.c (pos_data): Add need_baseline_computation field.
5635         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5636         need_baseline_computation; zero yoffset. Set max_pixmap_height
5637         for all pixmaps, not just automatically positioned ones.
5638         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5639         * redisplay.c (calculate_baseline): New, compute textual baseline.
5640         * redisplay.c (add_glyph_rune): Call them.
5641         * redisplay.c (create_text_block): Likewise.
5642         * redisplay.c (create_overlay_glyph_block): Likewise.
5643         * redisplay.c (add_margin_runes): Likewise.
5644         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5645
5646         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5647         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5648         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5649         * redisplay-msw.c (mswindows_output_string): Likewise.
5650         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5651         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5652         * redisplay-x.c (x_output_display_block): Likewise.
5653
5654 2002-03-28  Ben Wing  <ben@xemacs.org>
5655
5656         * redisplay.c: Fixed bug in redisplay
5657         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5658         and down of the lines, since they're bigger than the line
5659         size. (It was seen most obviously when there's a horizontal scroll
5660         bar, e.g. do C-h a glyph or something like that.) The problem was
5661         that the glyph-contrib-p setting on glyphs was ignored even if it
5662         was set properly, which it wasn't until now.
5663
5664 2002-04-24  Andy Piper  <andy@xemacs.org>
5665
5666         * lisp.h (Dynarr_end): Fix definition.
5667
5668 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5669
5670         * redisplay.c (mark_redisplay): Remove call to
5671         update_frame_window_mirror.
5672
5673 2001-11-15  Andy Piper  <andy@xemacs.org>
5674
5675         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5676         cygwin (again).
5677
5678 2002-02-13  Andy Piper  <andy@xemacs.org>
5679
5680         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5681         we did in fact enqueue the XM_MAPFRAME event.
5682
5683 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5684
5685         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5686         to fix problem switching between virtual desktops under virtuawin
5687         virtual window manager.
5688
5689 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5690
5691         * event-msw.c: Typo fix.
5692         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5693         magic XM_MAPFRAME event has been sent.
5694
5695 2001-11-23  Andy Piper  <andy@xemacs.org>
5696
5697         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5698
5699 2001-11-21  Andy Piper  <andy@xemacs.org>
5700
5701         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5702         mouse events outside the frame.
5703
5704 2002-03-20  Andy Piper  <andy@xemacs.org>
5705
5706         * menubar-msw.c (mswindows_popup_menu): warning removal.
5707         * dialog-msw.c (dialog_popped_down): ditto.
5708
5709 2001-12-11  Andy Piper  <andy@xemacs.org>
5710
5711         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5712         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5713         popup_up_p.
5714         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5715         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5716         * menubar-msw.c (mswindows_popup_menu): ditto.
5717
5718 2001-10-29  Andy Piper  <andy@xemacs.org>
5719
5720         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5721         cancels.
5722
5723 2002-01-03  Andy Piper  <andy@xemacs.org>
5724
5725         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5726         letters.
5727         (xrealpath): ditto.
5728
5729 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5730
5731         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5732         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5733         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5734         Detect and handle case where machine is set up for metric units
5735
5736 2002-04-02  Andy Piper  <andy@xemacs.org>
5737
5738         * dired-msw.c (mswindows_get_files): 
5739         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5740         completely handled by XEmacs. Suggested by Thomas Vogler
5741         <mail@thomas-vogler.de>.
5742
5743 2001-11-14  Andy Piper  <andy@xemacs.org>
5744
5745         * nt.c (REG_ROOT): change registry key to XEmacs.
5746
5747 2002-04-27  Andy Piper  <andy@xemacs.org>
5748
5749         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5750
5751 2002-04-26  Andy Piper  <andy@xemacs.org>
5752
5753         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5754         behavior.
5755
5756 2002-03-14  Mike Alexander  <mta@arbortext.com>
5757
5758         * event-msw.c (mswindows_unwait_process): New, remove process from
5759         wait list
5760         * process-nt.c (nt_finalize_process_data): Call
5761         mswindows_unwait_process
5762         * console-msw.h: Declare mswindows_unwait_process
5763
5764 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5765
5766         * editfns.c (Fdecode_time):
5767         (Fformat_time_string):
5768         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5769         (make_time): Warning elimination (change arg name).
5770
5771 2001-11-24  Andy Piper  <andy@xemacs.org>
5772
5773         * window.c (Fsplit_window): Doc return type.
5774
5775 2002-04-01  Andy Piper  <andy@xemacs.org>
5776
5777         * emacs.c (Fkill_emacs): Only output message box in interactive
5778         mode.
5779
5780 2002-04-26  Andy Piper  <andy@xemacs.org>
5781  
5782         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5783         cygwin.
5784
5785 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5786
5787         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5788         bit platform.
5789
5790 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5791
5792         * XEmacs 21.4.8 "Honest Recruiter" is released.
5793
5794 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5795
5796         Supersedes 2002-04-17 patch.
5797
5798         * process.h (PROCESS_LIVE_P): Use the process status as
5799         evidence of health, not the state of the input stream.
5800         (PROCESS_READABLE_P): Say if the process is readable
5801         from. (It may be dead nonetheless.)
5802         (CHECK_READABLE_PROCESS): Test for that condition.
5803
5804         * process.c (create_process): Use PROCESS_READABLE_P.
5805         (read_process_output, set_process_filter): Likewise.
5806
5807         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5808         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5809
5810         This code is #if 0'd, this is not the time to add new functions:
5811
5812         * process.c (Fprocess_readable_p): Report readability status.
5813         * process.c (Qprocess_readable_p): New, associated symbol...
5814         * process.c (syms_of_process): ... initialize it.
5815
5816 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5817
5818         * XEmacs 21.4.7 "Economic Science" is released.
5819
5820 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5821
5822         * process.h (PROCESS_LIVE_P): Use the process status as
5823         evidence of health, not the state of the input stream.
5824
5825 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5826
5827         * sysdep.c (sys_siglist): change "signum" to "signal"
5828
5829 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5830
5831         * s/darwin.h: New file.
5832         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5833         
5834 2002-04-23  Andreas Jaeger  <aj@suse.de>
5835
5836         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5837         which use lib64 for 64-bit libs.
5838         (START_FILES): Likewise.
5839
5840 2002-02-11  Mike Sperber  <mike@xemacs.org>
5841
5842         * device-x.c: 
5843         (x_IO_error_handler):
5844         (x_init_device): Temporarily keep device in static variable
5845         `device_being_initialized' so we can recover gracefully from
5846         internal XOpenDevice failure.  (XOpenDevice is documented to
5847         return NULL on failure, but sometimes calls the IO error handler
5848         instead.)
5849
5850 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5851
5852         * dired.c (Ffile_name_all_completions): Change documentation --
5853         remove reference to completion-ignored-extensions.
5854         * dired.c (vars_of_dired): Change documentation for
5855         completion-ignored-extensions -- remove reference to
5856         file-name-all-completions.
5857
5858 2002-03-06  Jerry James  <james@xemacs.org>
5859
5860         * emodules.c (emodules_load): Fix multiple loading of same module.
5861
5862 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5863         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5864         RTLD_LAZY to avoid incorrect symbol binding when using nested
5865         shared libraries on Solaris.
5866
5867 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5868
5869         * fileio.c (Ffind_file_name_handler): Improve docstring.
5870
5871 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5872
5873         * fns.c (Fmapconcat): Improve docstring.
5874
5875 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5876
5877         * device-gtk.c: Add prototype for
5878         emacs_gtk_selection_clear_event_handle.
5879         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5880         selection.  Setup signal handler for "selection_clear_event"
5881         (emacs_gtk_selection_clear_event_handle).
5882
5883         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5884         other applications owning the clipboard (based on
5885         x_handle_selection_clear).
5886
5887 2001-12-23  William M. Perry  <wmperry@gnu.org>
5888
5889         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5890         
5891 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5892
5893         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5894
5895 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5896
5897         * XEmacs 21.4.6 "Common Lisp" is released.
5898
5899 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5900
5901         * search.c (Freplace_match): Add missing sub-expression functionality.
5902
5903         * buffer.c (decode_buffer): Add a check for pointer type to
5904         decode_buffer, before gcc's CSE optimization reorders a
5905         dereference in front of the allow_string test.
5906
5907 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5908
5909         * window.c (window_loop): Fix bug that sometimes prevented
5910         window_loop() from iterating across multiple devices.  Also, at
5911         Ben's request, changed infloop-detecting code to abort() instead
5912         of silently terminating window_loop().
5913
5914 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5915
5916         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5917         * editfns.c (make_time): New function.
5918         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5919         * lisp.h (make_time): Prototype and comment it.
5920         * dired.c (wasteful_word_to_lisp): Deprecate.
5921         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5922
5923 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5924
5925         * fileio.c (auto_save_1): Use current coding system, not
5926         escape-quoted.
5927
5928 2001-11-13  Ben Wing  <ben@xemacs.org>
5929
5930         * window.c:
5931         * window.c (window_truncation_on):
5932         * window.c (syms_of_window):
5933         truncate-partial-width-windows should respect the buffer being
5934         displayed, like other redisplay vars.
5935
5936 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5937
5938         * event-stream.c (Fread_key_sequence): save current buffer.
5939
5940 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5941
5942         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5943
5944 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5945
5946         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5947
5948 2001-10-26  Mike Alexander  <mta@arbortext.com>
5949
5950         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5951
5952 2001-10-25  Andy Piper  <andy@xemacs.org>
5953
5954         * ChangeLog:
5955         * dialog-msw.c (handle_directory_proc): new function.
5956          (handle_directory_dialog_box): new fucntion.
5957          (handle_file_dialog_box): use new directory dialog support.
5958          (mswindows_make_dialog_box_internal): ditto.
5959         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5960         handling.
5961         (mswindows_find_frame): make global.
5962         * fileio.c (Fexpand_file_name): build fix.
5963         * general-slots.h: add Qdirectory.
5964         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5965         handling.
5966         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5967         cygwin not leaving win32 paths unchanged.
5968         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5969         cygwin runtime to do path conversion.
5970         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5971         (syms_of_win32): add new function.
5972         * window.c (window_loop): build fix.
5973
5974 2001-10-15  Andy Piper  <andy@xemacs.org>
5975
5976         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5977
5978 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5979
5980         * XEmacs 21.4.5 "Civil Service" is released.
5981
5982 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5983
5984         * glyphs-x.c: Force buffer-tab highlight update when moving the
5985         buffer, avoiding an ugly black border, used for keyboard focus
5986         indication, on a widget that can never have keyboard focus, the
5987         buffer tab.
5988
5989 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5990
5991         * process-unix.c (unix_open_multicast_group): Remove too much
5992         conversion between host and network byte order.
5993
5994 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5995
5996         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5997         before replacing them.
5998
5999         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6000         operation.
6001
6002         * src/window.c (undedicate_windows): Use it.
6003         * src/window.h: Add prototype.
6004
6005 2001-09-17  Ben Wing  <ben@xemacs.org>
6006
6007         * fileio.c (normalize_filename):
6008         * fileio.c (Fexpand_file_name):
6009         Fix various C++ compile errors in Andy's recent code.
6010         
6011         * callint.c (Fcall_interactively):
6012         * editfns.c (Ftemp_directory):
6013         * editfns.c (Fuser_full_name):
6014         * emacs.c (argmatch):
6015         * lread.c (locate_file_map_suffixes):
6016         * redisplay-x.c (x_ring_bell):
6017         Fix sign-compare warnings.
6018         
6019 2001-09-08  Andy Piper  <andy@xemacs.org>
6020
6021         * fileio.c (normalize_filename): copied from nt.c
6022         * (Ffile_name_directory): enable win32 paths under cygwin.
6023         * (Ffile_name_nondirectory): ditto.
6024         * (directory_file_name): ditto.
6025         * (Fexpand_file_name): ditto.
6026         * (Ffile_truename): ditto.
6027         * (Fsubstitute_in_file_name): ditto.
6028         * (Ffile_name_absolute_p): ditto.
6029         * (Ffile_readable_p): ditto.
6030
6031 2001-09-08  Andy Piper  <andy@xemacs.org>
6032
6033         * device-msw.c (mswindows_finish_init_device): remove dde
6034         initialization.
6035         * device-msw.c (mswindows_init_dde): factor out from
6036         mswindows_finish_init_device()
6037         * device-msw.c (init_mswindows_very_early): new function
6038         initialize but don't enable dde.
6039         * emacs.c (main_1): call init_mswindows_very_early.
6040         * event-msw.c:
6041         * event-msw.c (mswindows_dde_callback): only execute when we are
6042         ready.
6043         * symsinit.h: declare init_mswindows_very_early.
6044
6045 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6046
6047         [sjt: This has been in 21.5 for months with no complaints.]
6048
6049         * console.h (struct console_methods): Added flags member.
6050         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6051         (CONMETH_IMPL_FLAG):
6052         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6053         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6054
6055         * device.c (window_system_pixelated_geometry): Use the above macros.
6056
6057         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6058         implememntation flag.
6059         * device.h (DEVICE_DISPLAY_P): Use it.
6060
6061         * frame.c (delete_frame_internal): Use the above macro.
6062
6063         * redisplay.c (redisplay_device): Use it.
6064         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6065         (redisplay_frame): Ditto.
6066
6067         * device-msw.c (mswindows_device_implementation_flags): Removed.
6068         (msprinter_device_implementation_flags): Removed.
6069         (console_type_create_device_mswindows): Removed references to
6070         implementation_flags methods, set implementation flags here.
6071         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6072
6073         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6074         (console_type_create_device_gtk): Removed method declaration.
6075         Added commented out statement which semantically matches the
6076         commented out statement in the above removed method.
6077
6078 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6079
6080         The attached patch fixes a few warnings. 
6081
6082         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6083         * src/frame-gtk.c: guard against GNOME calls in GTK only
6084         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6085         * src/select-gtk.c: prototype lisp_to_time
6086
6087 2001-06-08  Ben Wing  <ben@xemacs.org>
6088
6089         ------ gc-in-window-procedure fixes ------
6090         
6091         * alloc.c:
6092         * alloc.c (struct post_gc_action):
6093         * alloc.c (register_post_gc_action):
6094         * alloc.c (run_post_gc_actions):
6095         * alloc.c (garbage_collect_1):
6096         Create "post-gc actions", to avoid those dreaded "GC during window
6097         procedure" problems.
6098
6099         * event-msw.c:
6100         Abort, clean and simple, when GC in window procedure.  We want
6101         to flush these puppies out.
6102
6103         * glyphs-msw.c:
6104         * glyphs-msw.c (finalize_destroy_window):
6105         * glyphs-msw.c (mswindows_finalize_image_instance):
6106         Use a post-gc action when destroying subwindows.
6107
6108         * lisp.h:
6109         Declare register_post_gc_action().
6110
6111         * scrollbar-msw.c:
6112         * scrollbar-msw.c (unshow_that_mofo):
6113         Use a post-gc action when unshowing scrollbar windows, if in gc.
6114
6115         * redisplay.c (mark_redisplay):
6116         Add comment about the utter evilness of what's going down here.
6117
6118         ------ cygwin setitimer fixes ------
6119         
6120         * Makefile.in.in (sheap_objs):
6121         * Makefile.in.in (profile_objs):
6122         * Makefile.in.in (objs):
6123         Compile profile.c only when HAVE_SETITIMER.
6124         
6125         * nt.c (mswindows_sigset):
6126         * nt.c (mswindows_sighold):
6127         * nt.c (mswindows_sigrelse):
6128         * nt.c (mswindows_sigpause):
6129         * nt.c (mswindows_raise):
6130         * nt.c (close_file_data):
6131         Style fixes.
6132         
6133         * nt.c:
6134         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6135         
6136         * profile.c:
6137         * profile.c (Fstart_profiling):
6138         * profile.c (Fstop_profiling):
6139         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6140         instead of just plain setitimer().
6141         
6142         * signal.c:
6143         * signal.c (set_one_shot_timer):
6144         * signal.c (alarm):
6145         Define qxe_setitimer() as an encapsulation around setitimer() --
6146         call setitimer() directly unless Cygwin or MS Win, in which case
6147         we use our simulated version in win32.c.
6148         
6149         * systime.h:
6150         * systime.h (struct itimerval):
6151         * systime.h (ITIMER_REAL):
6152         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6153         comment about "qxe" and the policy regarding encapsulation.
6154
6155         * win32.c:
6156         * win32.c (setitimer_helper_proc):
6157         * win32.c (setitimer_helper_period):
6158         * win32.c (setitimer_helper):
6159         * win32.c (mswindows_setitimer):
6160         Move setitimer() emulation here, so Cygwin can use it.
6161         Rename a couple of functions and variables to be longer and more
6162         descriptive.  In setitimer_helper_proc(), send the signal
6163         using either mswindows_raise() or (on Cygwin) kill().  If for
6164         some reason we are still getting lockups, we'll change the kill()
6165         to directly invoke the signal handlers.
6166
6167         ------ windows shell fixes ------
6168         
6169         * callproc.c:
6170         * ntproc.c:
6171         Comments about how these two files must die.
6172
6173         * callproc.c (init_callproc):
6174         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6175         not just COMSPEC. (more correct and closer to FSF.) Don't
6176         force a value for SHELL into the environment. (Comments added
6177         to explain why not.)
6178         
6179         * nt.c (init_user_info):
6180         Don't shove a fabricated SHELL into the environment.  See above.
6181
6182 2001-06-01  Ben Wing  <ben@xemacs.org>
6183
6184         * Makefile.in.in (ldflags):
6185         eliminate that pesky "defaulting to 00401000" warning.
6186         * nt.h:
6187         eliminate warnings.
6188
6189 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6190
6191         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6192         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6193
6194 2001-04-24  Jerry James <james@xemacs.org>
6195
6196         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6197         correct order.
6198
6199 2001-06-01  Ben Wing  <ben@xemacs.org>
6200
6201         * event-msw.c (debug_mswin_messages):
6202         conditionalize the messages that were causing compile errors.
6203         (if only macros could generate #ifdef statements ...)
6204
6205 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6206
6207         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6208
6209 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6210
6211         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6212
6213 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6214
6215         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6216         * process-unix.c (unix_canonicalize_host_name):
6217         sysdep.c (init_system_name):
6218         Use it to conditionally support IPv6 canonicalization.
6219
6220 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6221
6222         * event-msw.c:
6223         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6224
6225 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6226
6227         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6228         attempt is made to scroll when no scroll bar is available.
6229
6230 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6231
6232         * input-method-motif.c (XIM_delete_frame): New callback.
6233         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6234         got deleted from 21.4.3.)
6235
6236 2001-06-01  Ben Wing  <ben@xemacs.org>
6237
6238         * nt.c (mswindows_utime):
6239         * nt.c (close_file_data):
6240         fix off-by-one-indirection error.
6241
6242 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6243
6244         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6245         because set_file_times() now takes Lisp_Object path, instead of
6246         char*.
6247         * nt.c: Include buffer.h.
6248         * nt.c (convert_from_time_t): New.
6249         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6250         not set mtime correctly.
6251         * nt.h: Declare mswindows_utime().
6252         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6253         path, instead of char*.
6254         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6255
6256 2001-05-30  Ben Wing  <ben@xemacs.org>
6257
6258         For 21.4:
6259
6260         (Stephen, just take all event-msw.c patches.  This includes
6261         the "iconify" fix below.)
6262
6263         * event-msw.c:
6264         * event-msw.c (mswindows_dequeue_dispatch_event):
6265         * event-msw.c (assert):
6266         * event-msw.c (emacs_mswindows_quit_p):
6267         * event-msw.c (debug_mswin_messages):
6268         * event-msw.c (debug_output_mswin_message):
6269         * event-msw.c (vars_of_event_mswindows):
6270         Fix yet more problems with C-g handling.
6271         Implement debug-mswindows-events.
6272         
6273 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6274
6275         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6276         
6277 2001-05-23  Ben Wing  <ben@xemacs.org>
6278
6279         * event-msw.c (winsock_writer):
6280         * event-msw.c (winsock_closer):
6281         prior kludgy code was clobbering the buffer, thinking it was
6282         "unused" space to store an unneeded return value; instead, use
6283         the variable we've already got staring us in the face.
6284
6285 2001-05-17  Andy Piper  <andy@xemacs.org>
6286
6287         * sysfile.h: don't assume that file attributes are boolean
6288
6289 2001-05-23  Ben Wing  <ben@xemacs.org>
6290
6291         * device-msw.c (msprinter_init_device):
6292         signal an error rather than crash with an unavailable network
6293         printer (from Mike Alexander).
6294         
6295         * event-msw.c:
6296         * event-msw.c (struct winsock_stream):
6297         * event-msw.c (winsock_writer):
6298         * event-msw.c (winsock_closer):
6299         * event-msw.c (make_winsock_stream_1):
6300         cleanup headers.  fix (hopefully) an error with data corruption
6301         when sending to a network connection.
6302
6303         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6304         to handle the ~user prefix by (a) always assuming we're referencing
6305         ourselves and not even verifying the user -- hence any file with
6306         a tilde as its first char is invalid! (b) if there wasn't a slash
6307         following the filename, the pointer was set *past* the end of
6308         file and we started reading from uninitialized memory.  Now we
6309         simply treat these as files, always.
6310
6311         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6312         
6313 2001-05-19  Ben Wing  <ben@xemacs.org>
6314
6315         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6316
6317         * process-nt.c:
6318         * process-nt.c (vars_of_process_nt):
6319         remove unused mswindows-quote-process-args.  rec for 21.4.
6320         
6321 2001-05-12  Ben Wing  <ben@xemacs.org>
6322
6323         * event-msw.c (mswindows_dde_callback):
6324         * event-msw.c (mswindows_wnd_proc):
6325         eliminate cygwin warnings.
6326
6327 2001-05-06  Ben Wing  <ben@xemacs.org>
6328
6329         * console-msw.h:
6330         * device-msw.c:
6331         * device-msw.c (print_dialog_worker):
6332         * device-msw.c (mswindows_handle_print_dialog_box):
6333         * device-msw.c (syms_of_device_mswindows):
6334         * dialog-msw.c (mswindows_make_dialog_box_internal):
6335         * general-slots.h:
6336         implement printing the selection when it's selected.
6337
6338 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6339
6340         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6341
6342 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6343
6344         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6345         EMACS_INT is signed.
6346
6347 2001-04-15  Michael Lausch  <mla@1012surf.net>
6348
6349         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6350         gtk_widget_request_size() to give scrollbar >0 width for
6351         GTK >1.2.8.
6352
6353 2001-05-30  William M. Perry  <wmperry@gnu.org>
6354
6355         * event-gtk.c: Check for buttons as modifier keys.
6356
6357 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6358
6359         * s\mingw32.h:
6360         Properly find MinGW's <process.h> inside Cygwin's restructured
6361         include directories.  Don't try to include <cygwin/version.h>
6362         since we are dropping support for MinGW in versions of Cygwin
6363         earlier than b21.
6364         * nt.c:
6365         Drop support for MinGW in versions of Cygwin before b21.
6366         * sysdep.c:
6367         Properly find MinGW's <process.h> inside Cygwin's restructured
6368         include directories.
6369         * syswindows.h:
6370         Drop support for MinGW in versions of Cygwin before b21.
6371         * unexcw.c:
6372         Even though a.out.h is no longer detected by configure, allow
6373         MinGW to use it until we figure out how to do the job with Win32.
6374
6375 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6376
6377         * syntax.c (find_start_of_comment):
6378         Fix `unbalanced parentheses' bug when dealing with mixed comment
6379         styles in c++/java/etc. mode
6380
6381 2001-05-29  Mike Alexander  <mta@arbortext.com>
6382
6383         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6384         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6385
6386 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6387
6388         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6389
6390 2001-03-31  Mike Sperber <mike@xemacs.org>
6391
6392         * search.c (Freplace_match): Support FSF-style specification of
6393         match subexpression when applied to a buffer.
6394
6395 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6396
6397         * event-stream.c (is_scrollbar_event): add missing semicolon
6398
6399 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6400
6401         * Makefile.in.in: Use TAR macro instead of hardcoding
6402           tar.  Allows use of GNU tar instead of system tar
6403
6404 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6405
6406         * event-stream.c (is_scrollbar_event): add missing semicolon
6407
6408 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6409
6410         * XEmacs 21.4.3 "Academic Rigor" is released.
6411
6412 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6413
6414         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6415
6416 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6417
6418         * buffer.c (Vcase_fold_search): Remove obsolete
6419           comment about non ASCII case-fold-search.  This
6420           bug has been fixed by case-table changes.
6421
6422 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6423
6424         * event-msw.c: Restore include of events-mod.h.
6425
6426 2001-04-22   zhaoway  <zw@debian.org>
6427
6428         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6429         !HAVE_SCROLLBARS.
6430
6431 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6432
6433         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6434
6435 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6436
6437         * mule-charset.c (Fmake_charset): Add missing else.
6438
6439 2001-04-23  Ben Wing  <ben@xemacs.org>
6440
6441         * event-msw.c (FAKE_MOD_QUIT):
6442         * event-msw.c (mswindows_dequeue_dispatch_event):
6443         * event-msw.c (mswindows_wnd_proc):
6444         * event-msw.c (emacs_mswindows_quit_p):
6445         Get critical quit working.
6446
6447 2001-05-05  Ben Wing  <ben@xemacs.org>
6448
6449         * console-msw.h:
6450         * device-msw.c:
6451         * device-msw.c (mswindows_get_default_margin):
6452         * frame-msw.c (mswindows_size_frame_internal):
6453         * frame-msw.c (msprinter_init_frame_1):
6454         * frame-msw.c (vars_of_frame_mswindows):
6455         Change top/bottom margin defaults to 0.5 inches.
6456
6457 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6458
6459         Fix link error with gcc 3.0 on Linux.
6460         * terminfo.c (UP): Remove.
6461         * terminfo.c (BC): Remove.
6462         * terminfo.c (PC): Remove.
6463         They weren't used, and in any case, these symbols should be
6464         defined in the *library*.
6465
6466 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6467
6468         * s/aix4.h: Fix crash with xlc -O3.
6469         Improve comment explaining how -O3 works.
6470
6471 2001-04-15  Ben Wing  <ben@xemacs.org>
6472
6473         * event-stream.c:
6474         * event-stream.c (Fnext_event):
6475         * event-stream.c (is_scrollbar_event):
6476         * event-stream.c (execute_command_event):
6477         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6478         crash' problem.  His fix introduces other problems.  We filter
6479         out scrollbar events specifically, making them somewhat invisible
6480         to command-building, and not appearing in `this-command-keys'.
6481         More work is still needed (see comments in event-stream.c), but
6482         this fixes all the major problems.
6483
6484 2001-04-20  Ben Wing  <ben@xemacs.org>
6485
6486         * .cvsignore: Added stuff for Windows.
6487
6488 2001-04-28  Ben Wing  <ben@xemacs.org>
6489
6490         * buffer.c (Ferase_buffer):
6491         * editfns.c (buffer_insert1):
6492         * editfns.c (Finsert_before_markers):
6493         * editfns.c (Finsert_string):
6494         * editfns.c (Finsert_char):
6495         * editfns.c (Fdelete_region):
6496         * editfns.c (Fwiden):
6497         * editfns.c (Fnarrow_to_region):
6498         remove bogus lines setting zmacs_region_stays to 0.
6499         
6500 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6501
6502         * process-unix.c (unix_open_network_stream): If connect() fails
6503         invalidate file descriptor after closing it.
6504
6505 2001-03-08  Mike Alexander  <mta@arbortext.com>
6506
6507         * event-msw.c (mswindows_need_event_in_modal_loop):
6508         Don't dispatch a message if we didn't get one.
6509         (mswindows_need_event):
6510         Terminate the correct process when one exits instead of the first
6511         one on Vprocess_list and look for process termination when in
6512         mswindows_protect_modal_loop.
6513
6514 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6515
6516         * XEmacs 21.4.1 "Copyleft" is released.
6517
6518 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6519
6520         * input-method-motif.c (XIM_delete_frame): New callback.
6521         (XIM_init_frame): Register it.
6522
6523 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6524
6525         * XEmacs 21.4.0 "Solid Vapor" is released.
6526
6527 2001-04-15  Ben Wing  <ben@xemacs.org>
6528
6529         * cmdloop.c (call_command_loop):
6530         Fix braino in bit-rotting code.
6531         
6532 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6533
6534         * extents.c (Fset_extent_endpoints): Force creation of extent info
6535         in buffer_or_string.
6536
6537         * extents.c (process_extents_for_insertion_mapper): Correctly
6538         check for open-open zero-length extents.
6539
6540 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6541
6542         * lisp.h: New typedefs Memory_count, Element_count.
6543         * regex.c:
6544         * regex.h:
6545         Sign-compare warning elimination: several unsigned -> signed.
6546         Based on work by Ben Wing <ben@xemacs.org>.
6547
6548 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6549
6550         * XEmacs 21.2.47 "Zephir" is released.
6551
6552 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6553
6554         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6555
6556 2001-04-03  Mike Sperber <mike@xemacs.org>
6557
6558         * search.c: Revert previous patch due because of release.
6559
6560 2001-03-30  Ben Wing  <ben@xemacs.org>
6561
6562         * s\cygwin32.h:
6563         Add missing killpg prototype.
6564
6565         * elhash.c:
6566         Add a comment about fixing problems when a new entry is added
6567         while mapping.
6568
6569         * frame-msw.c (mswindows_init_frame_1):
6570         Fix compile warnings.
6571
6572         * menubar.c (vars_of_menubar):
6573         Provide `menu-accelerator-support' to indicate that we properly
6574         support %_ in menu specifications, so that package code can
6575         conditionalize on this (and remove %_ from menu specifications
6576         on older versions).
6577
6578         * event-msw.c:
6579         * scrollbar-msw.c:
6580         * scrollbar-msw.c (can_scroll):
6581         * scrollbar-msw.h:
6582         Fix handling of mouse wheel under Windows to follow standards --
6583         now scrolls window under pointer, not selected window.
6584
6585 2001-03-31  Mike Sperber <mike@xemacs.org>
6586
6587         * search.c (Freplace_match): Support FSF-style specification of
6588         match subexpression when applied to a buffer.
6589
6590 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6591
6592         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6593         function to modify KEYMAP, so map over a copy of the hash table.
6594
6595 2001-03-21  Martin Buchholz <martin@xemacs.org>
6596
6597         * XEmacs 21.2.46 "Urania" is released.
6598
6599 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6600
6601         * realpath.c (xrealpath): Make file-truename work with symlinks to
6602         /cygdrive paths on cygwin. Always lowercase drive-letters on
6603         native windows.
6604         (cygwin_readlink): Don't try to find canonical filename unless
6605         file exists.
6606
6607 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6608
6609         * ChangeLog: Log GTK merge.
6610
6611         * dumper.c:
6612         * select-x.c:
6613         * specifier.c:
6614         * symeval.h:
6615         Revert gratuitous whitespace changes from GTK merge.
6616
6617         * emacs.c: Document end of complex #ifdef @ l. 1495.
6618
6619
6620 2001-03-12  Andy Piper  <andy@xemacs.org>
6621
6622         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6623         have to do likewise.
6624
6625 2001-03-12  Andy Piper  <andy@xemacs.org>
6626
6627         * sysdep.c: we only support mingw now.
6628
6629 2001-03-09  Andy Piper  <andy@xemacs.org>
6630
6631         * unexcw.c (copy_executable_and_dump_data_section): making approx
6632         overrun a warning only.
6633
6634 2001-03-10  William M. Perry  <wmperry@aventail.com>
6635
6636         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6637         satisfy Stephen's identical-after-cpp plea.
6638
6639 2001-03-02  Ben Wing  <ben@xemacs.org>
6640
6641         * cmds.c:
6642         * cmds.c (Fforward_char):
6643         * syntax.c:
6644         * window.c:
6645
6646         Augment documentation of the most common motion commands to make
6647         note of the shifted-motion support.
6648         
6649 2001-03-02  Ben Wing  <ben@xemacs.org>
6650
6651         * nt.c (mswindows_fstat):
6652         * nt.c (mswindows_stat):
6653         * search.c (boyer_moore):
6654         Fix compile warnings under Windows.
6655         
6656         * sysdep.c (sys_readdir):
6657         Fix buggy filename-conversion code under Mule.
6658
6659 2001-03-09  William M. Perry  <wmperry@aventail.com>
6660
6661         * Makefile.in.in:
6662         * config.h.in:
6663         * console.c:
6664         * console.h:
6665         * device.c:
6666         * device.h:
6667         * dragdrop.c:
6668         * emacs.c:
6669         * event-stream.c:
6670         * events.c:
6671         * events.h:
6672         * faces.c:
6673         * frame.h:
6674         * general-slots.h:
6675         * glyphs.c:
6676         * gutter.c:
6677         * inline.c:
6678         * lisp.h:
6679         * lrecord.h:
6680         * make-src-depend:
6681         * redisplay-output.c:
6682         * redisplay.c:
6683         * symsinit.h:
6684         * sysfile.h:
6685         * toolbar.c:
6686         * window.c:
6687         The Great GTK Merge.
6688
6689         * ChangeLog.GTK:
6690         * console-gtk.c:
6691         * console-gtk.h:
6692         * device-gtk.c:
6693         * emacs-marshals.c:
6694         * emacs-widget-accessors.c:
6695         * event-gtk.c:
6696         * frame-gtk.c:
6697         * gccache-gtk.c:
6698         * gccache-gtk.h:
6699         * glade.c:
6700         * glyphs-gtk.c:
6701         * glyphs-gtk.h:
6702         * gtk-glue.c:
6703         * gtk-xemacs.c:
6704         * gtk-xemacs.h:
6705         * gui-gtk.c:
6706         * gui-gtk.h:
6707         * menubar-gtk.c:
6708         * native-gtk-toolbar.c:
6709         * objects-gtk.c:
6710         * objects-gtk.h:
6711         * redisplay-gtk.c:
6712         * scrollbar-gtk.c:
6713         * scrollbar-gtk.h:
6714         * select-gtk.c:
6715         * toolbar-gtk.c:
6716         * ui-byhand.c:
6717         * ui-gtk.c:
6718         * ui-gtk.h:
6719         The Great GTK Merge: new files.
6720
6721 2001-02-26  Ben Wing  <ben@xemacs.org>
6722
6723         Reapplied Lstream change.
6724
6725 2001-02-26  Ben Wing  <ben@xemacs.org>
6726
6727         Undid the last change, since it is more controversial than I
6728         thought.  It should be back in at some point soon.
6729         
6730 2001-02-25  Ben Wing  <ben@xemacs.org>
6731
6732         * buffer.c:
6733         * callproc.c (Fold_call_process_internal):
6734         * event-msw.c (ntpipe_slurp_reader):
6735         * event-msw.c (ntpipe_shove_writer):
6736         * event-msw.c (winsock_reader):
6737         * event-msw.c (winsock_writer):
6738         * file-coding.c:
6739         * file-coding.c (detect_eol_type):
6740         * file-coding.c (detect_coding_type):
6741         * file-coding.c (determine_real_coding_system):
6742         * file-coding.c (Fdetect_coding_region):
6743         * file-coding.c (decoding_reader):
6744         * file-coding.c (decoding_writer):
6745         * file-coding.c (mule_decode):
6746         * file-coding.c (Fdecode_coding_region):
6747         * file-coding.c (encoding_reader):
6748         * file-coding.c (encoding_writer):
6749         * file-coding.c (mule_encode):
6750         * file-coding.c (Fencode_coding_region):
6751         * file-coding.c (detect_coding_sjis):
6752         * file-coding.c (decode_coding_sjis):
6753         * file-coding.c (encode_coding_sjis):
6754         * file-coding.c (detect_coding_big5):
6755         * file-coding.c (decode_coding_big5):
6756         * file-coding.c (encode_coding_big5):
6757         * file-coding.c (detect_coding_ucs4):
6758         * file-coding.c (decode_coding_ucs4):
6759         * file-coding.c (encode_coding_ucs4):
6760         * file-coding.c (detect_coding_utf8):
6761         * file-coding.c (decode_coding_utf8):
6762         * file-coding.c (encode_coding_utf8):
6763         * file-coding.c (detect_coding_iso2022):
6764         * file-coding.c (decode_coding_iso2022):
6765         * file-coding.c (encode_coding_iso2022):
6766         * file-coding.c (decode_coding_no_conversion):
6767         * file-coding.c (encode_coding_no_conversion):
6768         * glyphs-x.c (write_lisp_string_to_temp_file):
6769         * gpmevent.c (tty_get_foreign_selection):
6770         * lisp.h:
6771         * lstream.c:
6772         * lstream.c (Lstream_flush_out):
6773         * lstream.c (Lstream_adding):
6774         * lstream.c (Lstream_write_1):
6775         * lstream.c (Lstream_write):
6776         * lstream.c (Lstream_raw_read):
6777         * lstream.c (Lstream_read_more):
6778         * lstream.c (Lstream_read):
6779         * lstream.c (Lstream_unread):
6780         * lstream.c (Lstream_fputc):
6781         * lstream.c (stdio_reader):
6782         * lstream.c (stdio_writer):
6783         * lstream.c (filedesc_reader):
6784         * lstream.c (filedesc_writer):
6785         * lstream.c (lisp_string_reader):
6786         * lstream.c (struct fixed_buffer_stream):
6787         * lstream.c (make_fixed_buffer_input_stream):
6788         * lstream.c (make_fixed_buffer_output_stream):
6789         * lstream.c (fixed_buffer_reader):
6790         * lstream.c (fixed_buffer_writer):
6791         * lstream.c (struct resizing_buffer_stream):
6792         * lstream.c (resizing_buffer_writer):
6793         * lstream.c (dynarr_writer):
6794         * lstream.c (lisp_buffer_reader):
6795         * lstream.c (lisp_buffer_writer):
6796         * lstream.h:
6797         * lstream.h (lstream_implementation):
6798         * lstream.h (struct lstream):
6799         * md5.c (Fmd5):
6800         * process-nt.c (nt_send_process):
6801         * process-unix.c (unix_send_process):
6802         
6803         Correct Lstream lossage due to mixing of signed and unsigned
6804         quantities.  All Lstream uses of size_t and ssize_t are now a
6805         single signed data type Lstream_data_count.  This fixes problems
6806         under Windows with sending large quantities of data to a process,
6807         and may well fix other subtle bugs.
6808
6809 2001-02-23  Martin Buchholz <martin@xemacs.org>
6810
6811         * XEmacs 21.2.45 "Thelxepeia" is released.
6812
6813 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6814
6815         * lisp-union.h (XSETINT): 
6816         (XSETCHAR):
6817         (XSETOBJ): 
6818         Reverse previous change of 2001-02-06.
6819
6820 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6821
6822         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6823         buffers.
6824         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6825         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6826         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6827         * regex.c (POS_AS_IN_BUFFER): removed
6828         * regex.c (re_search_2):
6829         * regex.c (re_match_2):
6830         Don't use an offset of 1 when calculating buffer positions, since
6831         `BI_BUF_BEGV' does it already.
6832
6833 2001-02-18  Wim Dumon  <wim@easics.be>
6834
6835         * insdel.c (prepare_to_modify_buffer): Also check for
6836         supersession when clash-detection is enabled. 
6837
6838 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6839
6840         * regex.c (re_match_2_internal):
6841         Convert temp characters from 'const unsigned char' to 're_char'.
6842         Fix crashing bug with extended characters under mule.
6843         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6844         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6845         font-lock, pdump, and new syntax-table code.
6846         * syntax.c (find_start_of_comment):
6847         (find_end_of_comment):
6848         (forward-comment):
6849         Fix crashing bugs involving moving beyond end of buffer.
6850         * syntax.c (find_start_of_comment):
6851         Fixed logic to allow proper detection of cases where the same
6852         character is used to end both a two-char comment start and a
6853         two-char comment end sequence. Fixes `(forward-comment -1)'.
6854         * syntax.c (find_start_of_comment):
6855         Return position just past last comment-end character for all cases
6856         (previously was only done for two-char comment-end sequences).
6857         * syntax.c (forward-comment):
6858         Take value returned from `find_end_of_comment', rather than
6859         incrementing it.
6860         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6861         Properly deal with BUFFERP (syntax_cache.object)
6862
6863 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6864
6865         * alloc.c (Fgarbage_collect): 
6866         * alloc.c (make_bit_vector_from_byte_vector):
6867         -Wsign-compare-correctness.
6868
6869 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6870
6871         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6872         (XSETCHAR): Likewise.
6873         (XSETOBJ): Likewise.
6874
6875 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6876
6877         * mule-canna.c (canna-func-delete_previous): 
6878         Rename to canna-func-delete-previous.
6879
6880 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6881
6882         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6883
6884 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6885
6886         * font-lock.c (find_context): Fix C++ compile errors introduced by
6887         recent patch
6888
6889 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6890
6891         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6892         pragma, but earlier ones barf on the same pragma.
6893
6894 2001-02-06  Mike Sperber <mike@xemacs.org>
6895
6896         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6897         `configure-mule-lisp-directory'.
6898
6899 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6900
6901         Make sure dump-id.c is compiled in the same way as other .c's.
6902         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6903         * dump-id.h: Remove.
6904         * emacs.c: Move dump-id.h into dumper.h.
6905         * dumper.h: Move dump-id.h into dumper.h.
6906         * Makefile.in.in:
6907         Use standard .c.o rule for building dump-id.o.
6908         Remove preprocessor flags from link command.
6909         Add dump-id.o to ${otherobjs} if PDUMP.
6910
6911 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6912
6913         Port FSF 20.7 syntax table improvements.
6914         * syntax.c.
6915         * syntax.h.
6916
6917         Fixups for new syntax table stuff.
6918         * dired.c: Include syntax.c.
6919         (Fdirectory_files): Initialize regex_match_object and
6920         regex_emacs_buffer.
6921         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6922         and Fget_char_property.
6923
6924         Use ported FSF 20.7 syntax table improvements.
6925         * font-lock.c.
6926         * regex.c.
6927         * search.c.
6928         
6929 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6930
6931         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6932         Unixware's enum boolean from sys/types.h.
6933
6934 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6935
6936         Fix support for building with latest Purify.
6937         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6938         (PURIFY_FLAGS): Likewise.
6939
6940 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6941
6942         * fileio.c (lisp_string_set_file_times): New.
6943         * fileio.c (Fcopy_file): Use it.
6944         Fixes bug:
6945         (copy-file filename non-ascii-filename t t)
6946         ==> No such file or directory, non-ascii-filename
6947
6948 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6949
6950         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6951         USHRT_MAX seems clearer than ~0 anyways.
6952
6953 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6954
6955         dumper improvements.  Inspired by Olivier.
6956         * dumper.c (pdump_max_align): New.
6957         * dumper.c (pdump_add_entry): Use pdump_max_align.
6958         * dumper.c (pdump_get_entry_list): Likewise.
6959         * dumper.c (pdump_scan_by_alignment): Likewise.
6960         Don't iterate through unnecessary alignments.
6961         * dumper.c (pdump_file_get): No need to align result of malloc().
6962         * dumper.c (pdump_mallocadr): Remove.  
6963         The result of malloc() is guaranteed to be maximally aligned.
6964         * dumper.c: s/elmt/elt/g;
6965         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6966         * dumper.c (pdump_alert_undump_object): Likewise.
6967         * dumper.c (pdump_align_table): 
6968         Don't support alignments > 64.
6969         Store ALIGNOF's, not shift counts, in table.
6970
6971 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6972
6973         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6974         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6975         * systime.h: Use HAVE_UTIME.
6976         * sysdep.c (struct utimbuf): Remove.
6977         * sysdep.c (set_file_times): Prefer utime() to utimes().
6978         * config.h.in (HAVE_UTIME): New.
6979         * config.h.in (HAVE_UTIME_H): Remove.
6980         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6981
6982 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6983
6984         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6985
6986 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6987
6988         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6989
6990 2001-02-08  Martin Buchholz <martin@xemacs.org>
6991
6992         * XEmacs 21.2.44 "Thalia" is released.
6993
6994 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6995
6996         Fixes crashes in kill-emacs on some systems.
6997         * process-unix.c (unix_kill_child_process):
6998         It's OK for kill() to fail with ESRCH.
6999
7000 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7001
7002         Contortions to make .gdbinit tricks work on most systems.
7003         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7004         * alloc.c (dbg_valmask): Make non-const.
7005         * alloc.c (dbg_typemask): Make non-const.
7006         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7007         * alloc.c (dbg_valbits): Make non-const.
7008         * alloc.c (dbg_gctypebits): Make non-const.
7009         * .gdbinit (decode_object): Make it work with AIX cc.
7010
7011 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7012
7013         * elhash.c (make_general_lisp_hash_table):
7014         Use simpler and more efficient calloc to clear entries.
7015
7016 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7017
7018         * window.c (window_scroll): Work around an AIX C compiler bug.
7019         Fixes 'scroll-up' does nothing problem with xlC.
7020
7021 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7022
7023         * .gdbinit: Remove obsolete comment.
7024
7025 2001-01-31  Mike Alexander  <mta@arbortext.com>
7026
7027         * select.c (Fown_selection_internal): Set owned_p for device
7028         method correctly.
7029
7030 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7031
7032         Port to g++ 2.97.
7033         "not" cannot be used as a macro name as it is an operator in C++
7034         * config.h.in: Stop #defining `not'.
7035         * chartab.c (check_category_char): not ==> not_p
7036         * chartab.h: Likewise.
7037         * regex.c (re_match_2_internal): Likewise.
7038
7039 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7040
7041         * lisp-disunion.h: Fix up comments.
7042
7043 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7044
7045         * keymap.c (define_key_check_and_coerce_keysym):
7046         (syms_of_keymap):
7047         Support mouse-6 and mouse-7 bindings in the obvious way.
7048
7049 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7050
7051         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7052
7053 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7054
7055         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7056         Previous patch missed DEFVAR_INT_MAGIC.
7057         Make sure future DEFVAR_foo use correct types.
7058         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7059         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7060         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7061         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7062         * (DEFVAR_INT): Likewise.
7063         * redisplay.c (vertical_clip): Should be of type Fixnum.
7064         * redisplay.c (horizontal_clip): Likewise.
7065         * lisp.h (dump_add_opaque_int): New.
7066         (dump_add_opaque_fixnum): New.
7067
7068 2001-01-29  Andy Piper  <andy@xemacs.org>
7069
7070         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7071         since they can be eval'ed
7072
7073 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7074
7075         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7076         Oops, XEmacs redefines `class'.  Use `typename' instead.
7077
7078 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7079
7080         * dumper.c: Fix C++ compile errors.
7081
7082 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7083
7084         * tparam.c: Use correct prototypes.
7085
7086 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7087
7088         * sysproc.h: #include util.h for NetBSD's openpty.
7089
7090 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7091
7092         More 64-bit correctness.
7093         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7094         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7095         Fix up comments.
7096         This finally finishes the 64-bit SGI port.
7097         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7098         * symbols.c: Fix up comments and type casts.
7099         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7100         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7101         * symeval.h (Fixnum): New type.
7102         * symeval.h (symbol_value_type): Fix up comment.
7103
7104         * commands.h:
7105         * nt.c:
7106         * emacs.c:
7107         * data.c:
7108         * redisplay.c:
7109         * abbrev.c:
7110         * dired-msw.c:
7111         * event-Xt.c:
7112         * eldap.c:
7113         * window.c:
7114         * sound.c:
7115         * event-stream.c:
7116         * eval.c:
7117         * buffer.c:
7118         * mule-canna.c: A million DEFVAR_INTs here...
7119         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7120         * extents.c:
7121         * cmdloop.c:
7122         * lisp.h:
7123         * select-x.c:
7124         * console-x.h:
7125         * event-msw.c:
7126         * mule-wnnfns.c:
7127         * hpplay.c:
7128         * ralloc.c:
7129         * alloc.c:
7130         * keymap.c:
7131         * profile.c:
7132         s/int/Fixnum/g in DEFVAR_INT declarations.
7133
7134 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7135
7136         Port pdump to SGI alignment-sensitive environment.
7137         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7138         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7139         properly aligned.
7140         Define and use aligned reading and writing macros.
7141         Use buffered stdio instead of posix i/o for faster dumping.
7142         Eliminate kludgy 256 byte space for header.
7143         Read and write from dump file using structs for alignment safety.
7144         * dumper.c (pdump_align_stream): New.
7145         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7146         * dumper.c (PDUMP_READ_ALIGNED): New.
7147         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7148         * dumper.c (pdump_static_Lisp_Object): New struct.
7149         * dumper.c (pdump_static_pointer): New struct.
7150         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7151         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7152         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7153         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7154
7155         * dumper.c (pdump_backtrace):
7156         * dumper.c (pdump_get_indirect_count):
7157         * dumper.c (pdump_register_object):
7158         * dumper.c (pdump_register_struct):
7159         * dumper.c (pdump_reloc_one):
7160         * dumper.c (pdump_scan_by_alignment):
7161         * dumper.c (pdump_dump_from_root_struct_ptrs):
7162         * dumper.c (pdump_dump_opaques):
7163         * dumper.c (pdump_dump_rtables):
7164         * dumper.c (pdump_dump_from_root_objects):
7165         * dumper.c (pdump):
7166         * dumper.c (pdump_load_finish):
7167         Use aligned reading and writing.
7168
7169         * dumper.c (pdump_free): Make static.
7170         * dumper.c (pdump_hFile): Likewise.
7171         * dumper.c (pdump_hMap): Likewise.
7172
7173 2001-01-26  Martin Buchholz <martin@xemacs.org>
7174
7175         * XEmacs 21.2.43 "Terspichore" is released.
7176
7177 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7178
7179         Type fiddling for window_config.saved_windows_count
7180         * window.c (struct window_config): 
7181         Make saved_windows_count member unsigned.
7182         * window.c (sizeof_window_config_for_n_windows): 
7183         Make parameter unsigned.
7184         * window.c (mark_window_config):
7185         * window.c (window_config_equal):
7186         * window.c (free_window_configuration):
7187         * window.c (Fset_window_configuration):
7188         * window.c (count_windows):
7189         * window.c (Fcurrent_window_configuration):
7190         * window.c (reinit_vars_of_window):
7191         Update all callers and users.
7192
7193 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7194
7195         Alignment correctness for flexible arrays.
7196         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7197         Make alignment-correct. Add interesting comments.
7198         * alloc.c (size_vector):
7199         * alloc.c (make_vector_internal):
7200         * alloc.c (make_bit_vector_internal):
7201         * alloc.c (sweep_bit_vectors_1):
7202         * fns.c (size_bit_vector):
7203         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7204         * window.c (sizeof_window_config_for_n_windows): 
7205         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7206
7207 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7208
7209         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7210
7211 2001-01-23  Andy Piper  <andy@xemacs.org>
7212
7213         * select.c (Fown_selection_internal): pass owned_p
7214
7215         * select-msw.c (mswindows_own_selection): New Signature.
7216
7217         * console.h (struct console_methods): add owned_p to
7218         _own_selection.
7219
7220         * select-x.c (x_own_selection): pass owned_p
7221         (hack_motif_clipboard_selection): use owned_p
7222         (vars_of_select_x): new variable -
7223         x_selection_strict_motif_ownership.
7224
7225 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7226
7227         * specifier.h (specifier_data_offset): Remove pointless parens.
7228         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7229
7230 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7231
7232         Make Lisp_Object sizeof methods be alignment-correct.
7233         pdump must restore objects to the same alignment as the C compiler
7234         assumes.  It really matters on SGIs.
7235         * lstream.c (aligned_sizeof_lstream): New.
7236         (sizeof_lstream): Use aligned_sizeof_lstream.
7237         (Lstream_new): Likewise.
7238         * opaque.c (aligned_sizeof_opaque): New.
7239         (sizeof_opaque): Use aligned_sizeof_opaque.
7240         (make_opaque): Likewise.
7241         * specifier.c (aligned_sizeof_specifier): New.
7242         (sizeof_specifier): Use aligned_sizeof_specifier.
7243         (make_specifier_internal): Likewise.
7244
7245 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7246
7247         * lstream.h (struct lstream): Use max_align_t for trailing data.
7248         * specifier.h (struct Lisp_Specifier): Likewise.
7249
7250 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7251
7252         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7253         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7254         (CCL_SUSPEND): Likewise.
7255         (CCL_INVALID_CMD): Likewise.
7256         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7257         (ccl_driver): Likewise.
7258         (CCL_WRITE_CHAR): Macro hygiene.
7259         (CCL_WRITE_STRING): Macro hygiene.
7260
7261 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7262
7263         Port "portable" dumper to SunOS 4 and HP-UX.
7264         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7265         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7266         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7267
7268 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7269
7270         * lisp.h (ALIGNOF): A better definition for C++.
7271
7272 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7273
7274         Macro hygiene.
7275         Fix printf warnings: int format, long int arg.
7276         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7277         (PUSH_FAILURE_POINT): Use correct printf formats.
7278         (POP_FAILURE_POINT): Use correct printf formats.  
7279         Use do {...} while (0)
7280
7281 2001-01-20  Martin Buchholz <martin@xemacs.org>
7282
7283         * XEmacs 21.2.42 "Poseidon" is released.
7284
7285 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7286
7287         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7288
7289 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7290
7291         De-kludgify FIXED_TYPE free list frobbing.
7292         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7293         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7294         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7295         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7296         * alloc.c (LRECORD_FREE_P): New.
7297         * alloc.c (MARK_LRECORD_AS_FREE): New.
7298         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7299         * alloc.c (STRUCT_FREE_P): Deleted.
7300         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7301         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7302         * alloc.c (STRING_CHARS_FREE_P): New.
7303         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7304         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7305         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7306         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7307         * alloc.c (resize_string): Use new definitions.
7308         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7309         * alloc.c (verify_string_chars_integrity): Use new definitions.
7310         * alloc.c (compact_string_chars): Use new definitions.
7311         * alloc.c: Update monster comments.
7312         * lrecord.h (lrecord_type): Add some new lrecord types for
7313         alloc.c's use.
7314
7315 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7316
7317         Improve alignment hackery.
7318         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7319         (max_align_t): Moved from opaque.h - general purpose.
7320         (ALIGN_PTR): Use size_t, not long.
7321         * opaque.h (max_align_t): Move to lisp.h.
7322
7323 2001-01-18  Norbert Koch  <nk@LF.net>
7324
7325         * gui.h: Fix and add prototypes to fix build problems.
7326
7327 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7328
7329         temacs is going away, so `dump-temacs' is now a bad name.
7330         * .dbxrc (dump-temacs): Rename to `dmp'.
7331         * .gdbinit (dump-temacs): Rename to `dmp'.
7332
7333 2001-01-17  Andy Piper  <andy@xemacs.org>
7334
7335         * glyphs.c (print_image_instance): comment to make martin happy.
7336
7337         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7338         change.
7339
7340         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7341         activation.
7342         (mswindows_tab_control_redisplay): warning suppression.
7343
7344         * glyphs-widget.c (widget_update): re-write to cope with updated
7345         items.
7346         (widget_instantiate): use new gui_item functions.
7347         (tab_control_update): deleted.
7348         (progress_gauge_update): deleted.
7349         (image_instantiator_progress_guage): take out update reference.
7350         (image_instantiator_tree_view): ditto.
7351         (image_instantiator_tab_control): ditto.
7352
7353         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7354         Right the new way.
7355         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7356         return whether anything was changed.
7357         (update_gui_item_keywords): as it sounds.
7358
7359         * gui.h: declare widget_gui_parse_item_keywords.
7360
7361         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7362         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7363
7364 2001-01-17  Martin Buchholz <martin@xemacs.org>
7365
7366         * XEmacs 21.2.41 "Polyhymnia" is released.
7367
7368 2001-01-16  Didier Verna  <didier@xemacs.org>
7369
7370         * glyphs.c (image_instantiate): don't use fallbacks when
7371         instantiating a face's background pixmap by inheritance.
7372
7373 2001-01-14  Mike Sperber <mike@xemacs.org>
7374
7375         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7376         Conditionalize accordingly.
7377
7378 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7379
7380         * dumper.c (pdump_file_get): Fix a compiler warning.
7381
7382 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7383
7384         Make Purify happy when pdumping.
7385         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7386         iniitalizing all bits of new lisp object memory.
7387         * symbols.c (Fmake_local_variable): Likewise.
7388         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7389         * symbols.c (Fdefvaralias): Likewise.
7390         * mule-charset.c (vars_of_mule_charset): Likewise.
7391
7392 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7393         Add the `-nd' flag when running pre-dump operations under the debugger.
7394         * .dbxrc (run-temacs): Add `-nd'.
7395         * .dbxrc (update-elc): Likewise.
7396         * .dbxrc (dump-temacs): Likewise.
7397         * .gdbinit (run-temacs): Likewise.
7398         * .gdbinit (check-temacs): Likewise.
7399         * .gdbinit (update-elc): Likewise.
7400         * .gdbinit (dump-temacs): Likewise.
7401
7402 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7403
7404         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7405         export OBJECT_MODE=64
7406         configure --pdump --use-union-type=no
7407         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7408         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7409
7410         * miscplay.c (sndcnv8U_2mono):
7411         Avoid two uses of `++' in the same expression.
7412         Suppresses a GCC warning.
7413
7414 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7415
7416         Make sure future compilers don't miscompile alloc.c.
7417         * alloc.c:
7418         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7419         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7420
7421 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7422
7423         * dumper.c: A little post-pdump-rename comment fixup.
7424
7425 2001-01-09  Jerry James  <james@eecs.ku.edu>
7426
7427         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7428
7429 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7430
7431         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7432         script:
7433         #!/bin/sh
7434         replace_symbol () {
7435           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7436         }
7437
7438         replace_symbol pdump_wire_lists pdump_weak_object_chains
7439         replace_symbol pdump_wire_list dump_add_weak_object_chain
7440
7441         replace_symbol pdump_wires pdump_root_objects
7442         replace_symbol pdump_wire dump_add_root_object
7443
7444         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7445         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7446
7447         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7448         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7449         replace_symbol dumpstructinfo pdump_root_struct_ptr
7450         replace_symbol dumpstruct dump_add_root_struct_ptr
7451
7452         replace_symbol dumpopaque dump_add_opaque
7453         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7454         replace_symbol dumpopaqueinfos pdump_opaques
7455         replace_symbol dumpopaqueinfo pdump_opaque
7456
7457         replace_symbol nb_structdump nb_root_struct_ptrs
7458         replace_symbol nb_opaquedump nb_opaques
7459
7460         replace_symbol align_table pdump_align_table
7461         replace_symbol dump_header pdump_header
7462
7463         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7464         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7465
7466
7467 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7468
7469         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7470         optimizing bytecount_to_charcount().
7471
7472 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7473
7474         * config.h.in:
7475         (HAVE_DLFCN_H): Removed.
7476         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7477
7478 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7479
7480         Portable dumper maintainability improvements.
7481         * alloc.c (staticpro):
7482         * alloc.c (staticpro_nodump):
7483         * alloc.c (garbage_collect_1):
7484         * alloc.c (reinit_alloc_once_early):
7485         * alloc.c (init_alloc_once_early):
7486         * alloc.c: Move dumper functions to alloc.c.
7487         * dumper.c (pdump_backtrace):
7488         * dumper.c (pdump_dump_structs):
7489         * dumper.c (pdump_dump_opaques):
7490         * dumper.c (pdump_dump_rtables):
7491         * dumper.c (pdump_dump_wired):
7492         * dumper.c (pdump):
7493         * dumper.c (pdump_load_check):
7494         * dumper.c (pdump_load_finish):
7495         * dumper.c (pdump_file_unmap):
7496         * dumper.c (pdump_file_get):
7497         * dumper.c (pdump_resource_free):
7498         * dumper.c (pdump_resource_get):
7499         * dumper.c (pdump_file_free):
7500         * dumper.c (pdump_file_try):
7501         * dumper.c (pdump_load):
7502         Remove fixed size limits on staticpro(), staticpro_nodump(),
7503         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7504         Remove custom code for dumping lrecord_implementations_table - use
7505         dumpopaque instead.
7506         Remove (most of the) custom code for dumping staticpros - dump it
7507         like any other dynarr.
7508
7509         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7510         * dumper.c: Moved functions from alloc.c.
7511         * alloc.c (dumpstruct): Moved to dumper.c.
7512         * alloc.c (dumpopaque): Likewise.
7513         * alloc.c (pdump_wire): Likewise.
7514         * alloc.c (pdump_wire_list): Likewise.
7515
7516         * lisp.h (Dynarr_sizeof): New.
7517         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7518         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7519         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7520
7521         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7522         * lisp.h (dumpopaque): ditto.
7523         * lisp.h (pdump_wire): ditto.
7524         * lisp.h (pdump_wire_list): ditto.
7525
7526 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7527
7528         * make-src-depend (PrintPatternDeps):
7529         Use `sort' to make output independent of perl version.
7530
7531 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7532
7533         Port to Netbsd 1.5.
7534         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7535         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7536
7537 2001-01-03  Didier Verna  <didier@xemacs.org>
7538
7539         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7540         that `focus_frame' is alive before thinking of calling
7541         `redisplay_redraw_cursor' on it.
7542
7543 2001-01-08  Martin Buchholz <martin@xemacs.org>
7544
7545         * XEmacs 21.2.40 is released.
7546
7547 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7548
7549         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7550
7551 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7552
7553         * alloc.c (dbg_valmask): Make const.
7554         * alloc.c (dbg_typemask): Make const.
7555         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7556         * alloc.c (dbg_valbits): Make const.
7557         * alloc.c (dbg_gctypebits): Make const.
7558
7559 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7560
7561         * redisplay-x.c (x_bevel_area):
7562         redisplay.h (struct rune):
7563         Typo fixes in comments.
7564
7565 2001-01-05  Andy Piper  <andy@xemacs.org>
7566
7567         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7568         adjustment.
7569
7570         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7571
7572 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7573
7574         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7575
7576         * mule-ccl.c (stack_idx_of_map_multiple):
7577         Non const global data must not be initialized!
7578         Found by MIYASHITA Hisashi.
7579
7580 2001-01-02  Andy Piper  <andy@xemacs.org>
7581
7582         * frame.c (change_frame_size): make sure frame size is always
7583         marked as changed.
7584
7585         * glyphs.c (image_instance_layout): minor code reuse.
7586
7587         * window.c (Fcurrent_window_configuration): revert previous
7588         change.
7589
7590 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7591
7592         * glyphs.h:
7593         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7594
7595 2000-12-31  Andy Piper  <andy@xemacs.org>
7596
7597         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7598         when widget gets unmapped.
7599
7600         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7601         function. Make sure widgets losing focus don't just drop it.
7602         (handle_focus_event_1): record the widget with focus.
7603
7604 2000-12-31  Andy Piper  <andy@xemacs.org>
7605
7606         * window.c (allocate_window): use
7607         make_image_instance_cache_hash_table.
7608         (make_dummy_parent): ditto.
7609         (Fset_window_configuration): ditto.
7610
7611         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7612
7613         * glyphs.c (process_image_string_instantiator): use
7614         INSTANTIATOR_TYPE.
7615         (get_image_instantiator_governing_domain): ditto.
7616         (normalize_image_instantiator): ditto.
7617         (instantiate_image_instantiator): ditto.
7618         (make_image_instance_1): ditto.
7619         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7620         (instantiator_eq_equal): new function for use with instance hash
7621         tables.
7622         (instantiator_eq_hash): ditto.
7623         (make_image_instance_cache_hash_table): create a suitable hash
7624         table for storing image instances.
7625
7626         * elhash.h (hash_table_weakness): new internal weakness type
7627         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7628         declare new functions.
7629
7630         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7631         another weakness type for glyphs.
7632         (make_standard_lisp_hash_table): new function split out from
7633         make_general_lisp_hash_table.
7634         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7635         (hash_table_instantiate): ditto.
7636         (Fmake_hash_table): ditto.
7637
7638 2000-12-31  Martin Buchholz <martin@xemacs.org>
7639
7640         * XEmacs 21.2.39 is released.
7641
7642 2000-12-29  Andy Piper  <andy@xemacs.org>
7643
7644         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7645
7646         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7647         the frame has changed so that we pick up geometry changes such as
7648         menubar visibility.
7649
7650 2000-12-28  Andy Piper  <andy@xemacs.org>
7651
7652         * lastfile.c (my_ebss): make a char array so we can pad the
7653         bss. Fixes cygwin unexec.
7654
7655         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7656
7657 2000-12-26  Andy Piper  <andy@xemacs.org>
7658
7659         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7660         comments and try and be more precise about a non-/SIGIO world.
7661         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7662         SIGIO.
7663
7664         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7665         we don't normalize to zero width or height.
7666
7667 2000-12-24  Andy Piper  <andy@xemacs.org>
7668
7669         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7670
7671 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7672
7673         * s/sco5.h: SCO 5 has pty support.
7674
7675 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7676
7677         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7678         input-method-xlib.c contains whole contents of input-method-xfs.c,
7679         so we can use input-method-xlib.c's code for USE_XFONTSET
7680         using #ifdefs.
7681         * input-method-xfs.c: removed.
7682
7683 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7684
7685         * file-coding.h (enum coding_category_type): reorder enumerators to
7686         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7687         (now one greater than largest real coding_category_type enumerator).
7688         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7689         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7690         Fcoding_category_list, Fset_coding_priority_list,
7691         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7692         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7693
7694 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7695
7696         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7697         * redisplay-output.c (redisplay_output_window): Clear top of window
7698         when face is changed.
7699         * redisplay-x.c (x_redraw_exposed_window): Call
7700         redisplay_clear_top_of_window.
7701         * redisplay.h: Publish redisplay_clear_top_of_window.
7702
7703 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7704
7705         * buffer.c (Fkill_buffer): Map over all devices.
7706         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7707         (list_windows): New function.
7708         (list_all_windows): Ditto.
7709         (Freplace_buffer_in_windows): Use them.
7710
7711 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7712
7713         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7714         (Fopen_database): Use `db_create' instead of `db_open'.
7715         (syms_of_database): Initialize Qqueue.
7716
7717 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7718
7719         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7720         buffer_local_face_property.
7721         * buffer.h (struct buffer): New member buffer_local_face_property.
7722         * window.c (Fset_window_buffer):  Mark window's face as changed
7723         when buffer has buffer local face.
7724         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7725         * objects.c (color_after_change): Set buffer_local_face_property
7726         when locale of face specifier is buffer.
7727         * objects.c (font_after_change): Ditto.
7728         * objects.c (face_boolean_after_change): Ditto.
7729         * glyphs.c (image_after_change): Ditto.
7730
7731 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7732
7733         * nt.c (mswindows_fstat): Report file permissions, volume serial
7734         number, etc. Code adapted from FSF Emacs 20.7.
7735
7736 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7737
7738         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7739         of stat when we don't have symbolic links, to make sure
7740         mswindows_stat is called on mswindows.
7741
7742 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7743
7744         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7745
7746 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7747
7748         * doprnt.c (emacs_doprnt_1): More printing fixes.
7749         Make printing of numbers compatible with libc and FSF Emacs.
7750         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7751         Use the system printf to do most of the hard work of formatting,
7752         instead of doprnt_1().
7753         Calculate memory to allocate for format string.
7754         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7755         (doprnt_1): Cleaner code and documentation.
7756
7757 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7758
7759         * Makefile.in.in: Use the loop variable to install headers.
7760
7761 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7762
7763         * window.c (Fsplit_window): Don't invalidate face cache.
7764
7765 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7766
7767         * minibuf.c (Fall_completions): Undo the previous change
7768         which removed checking elements start with space.
7769
7770 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7771
7772         * mule-canna.c: Didier suppression.
7773
7774 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7775
7776         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7777         (warning suppression).  Add English comment translations.
7778
7779 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7780
7781         * unexelfsgi.c (unexec): Better test for mmap failure.
7782
7783 2000-12-05  Martin Buchholz <martin@xemacs.org>
7784
7785         * XEmacs 21.2.38 is released.
7786
7787 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7788
7789         * redisplay.c (bar-cursor): Make a user variable.
7790
7791         * symsinit.h: Add init_postgresql_from_environment.
7792
7793 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7794
7795         * regex.c: Convert to clean C.
7796
7797 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7798
7799         * realpath.c:
7800         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7801         initialization.
7802         (sys_readlink): renamed to system_readlink to avoid conflict with
7803         the other sys_readlink.
7804
7805 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7806
7807         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7808
7809 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7810
7811         * postgresql.c (init_postgresql_from_environment): new function.
7812         (vars_of_postgresql): Move code initializing Lisp variables out and
7813         into init_postgresql_from_environment.
7814         emacs.c (main_1): Call init_postgresql_from_environment if and only
7815         if running a dumped XEmacs.
7816
7817 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7818
7819         * buffer.c: Make find-file-compare-truenames default to true on
7820         windows.
7821
7822         * realpath.c (win32_abs_start):
7823         (cygwin_readlink):
7824         (win32_readlink): New functions.
7825         (xrealpath): Return really real filenames on windows.
7826
7827         * fileio.c (Ffile_truename): Make file-truename work on windows.
7828
7829 2000-11-29  Didier Verna  <didier@xemacs.org>
7830
7831         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7832         * faces.c (update_face_cachel_data): use it.
7833         * faces.c (add_face_cachel): use it. Complete background pixmap
7834         frobbing in face cache if `update_face_cachel_data' has not done so.
7835
7836 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7837
7838         * search.c (string_match_1): Don't set last_thing_searched
7839         when search failed.
7840
7841 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7842
7843         * buffer.c: Include casetab.h
7844         (common_init_complex_vars_of_buffer): Use new case-table object.
7845         * buffer.h: Include casetab.h
7846         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7847         (DOWNCASE_TABLE_OF): Ditto.
7848         * bufslots.h: Remove char-tables and add case-table.
7849         * casetab.c: Include casetab.h
7850         (CASE_TABLE_P): Removed.
7851         (mark_case_table): New function.
7852         (allocate_case_table): New function.
7853         (Fcase_table_p): Use new case-table.
7854         (case_table_char): New function.
7855         (Fget_case_table): Ditto.
7856         (Fput_case_table): Ditto.
7857         (Fput_case_table_pair): Ditto.
7858         (Fcopy_case_table): Ditto.
7859         (Fcurrent_case_table): Return case-table.
7860         (Fstandard_case_table): Return case-table.
7861         (Fset_case_table): Fix doc-string.
7862         (set_case_table): Use case-table
7863         (syms_of_casetab): DEFSUBR new functions.
7864         (complex_vars_of_casetab): Set up standard case-table.
7865         * casetab.h: New file.
7866         * editfns.c: Include casetab.h
7867         (Fcompare_buffer_substrings): Use case-table.
7868         * inline.c: Include casetab.h
7869         * lisp.h: Remove bogus extern.
7870         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7871         * search.c: Include casetab.h
7872         (TRANSLATE_ASCII): Removed.
7873         (TRANSLATE): Unconditionally translate character.
7874         (looking_at_1): Use case-table.
7875         (string_match_1): Ditto.
7876         (fast_string_match): Ditto.
7877         (search_command): Ditto.
7878         (search_buffer): Separate boyer_moore.  Check whether
7879         boyer_moore is possible.
7880         (simple_search): New function.
7881         (boyer_moore): Separated from search_buffer. Translate char.
7882
7883 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7884
7885         * regex.c (RE_TR_ASCII): Removed.
7886         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7887         (PATFETCH): Call PATFETCH_RAW.
7888         (PATFETCH_RAW): Fetch Emchar.
7889         (PATUNFETCH): Decrement charptr.
7890         (GET_BUFFER_SPACE): Rename b to buf_end.
7891         (BUF_PUSH): Ditto.
7892         (BUF_PUSH_2): Ditto.
7893         (BUF_PUSH_3): Ditto.
7894         (EXTEND_BUFFER): Ditto.
7895         (SET_LIST_BIT): Ditto.
7896         (regex_compile): Ditto.  Translate non ASCII char.
7897         (compile_range): Ditto.
7898         (re_search_2): Ditto.
7899         (re_match_2_internal): Compare Emchar.
7900         (bcmp_translate): Ditto.
7901
7902 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7903
7904         * lisp.h (basic char/int typedefs):  comment improvement.
7905
7906 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7907
7908         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7909         unstomp inhibit_site_lisp.  Improve comments.
7910
7911 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7912
7913         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7914
7915 2000-11-28  Andy Piper  <andy@xemacs.org>
7916
7917         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7918         clipped display for windows in the gutter also.
7919         (redisplay_display_boxes_in_window_p): change semantics of return
7920         codes to be more intuitive.
7921
7922         * gutter.h: declare display_boxes_in_gutter_p.
7923
7924         * gutter.c (display_boxes_in_gutter_p): new function for
7925         redisplay.
7926
7927 2000-11-22  Andy Piper  <andy@xemacs.org>
7928
7929         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7930         autodetect domain.
7931
7932 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7933
7934         * callproc.c (Fold_call_process_internal):
7935         * gpm.c (Freceive_gpm_event):
7936         (tty_get_foreign_selection): Might be just warning supression.
7937         * fileio.c (Fwrite_region_internal):
7938         (Fset_visited_file_modtime):
7939         * keymap.c (event_matches_key_specifier_p):
7940         Initialize GCPROed variable.
7941
7942         * menubar-x.c (command_builder_find_menu_accelerator):
7943         Initialize before use.
7944
7945 2000-11-23  Andy Piper  <andy@xemacs.org>
7946
7947         * unexcw.c (unexec): make the resulting executable executable.
7948
7949 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7950
7951         * doc.c (get_doc_string):
7952         Use size_t, not int, for result of XSTRING_LENGTH.
7953
7954         * cmds.c (Fdelete_char):
7955         * cmds.c (Fpoint_at_eol):
7956         * cmds.c (Fself_insert_command):
7957         Use EMACS_INT, not int, for result of XINT.
7958         Someday, someone will want to insert more than 2**31 identical characters.
7959
7960         * cmds.c (Fdelete_char):
7961         * cmds.c (Fdelete_backward_char):
7962         * syntax.c (Fforward_word):
7963         * syntax.c (Fforward_comment):
7964         Make COUNT argument optional, for consistency with forward-char et al.
7965
7966 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7967
7968         * lisp.h:
7969         * print.c (long_to_string):
7970         Return a useful value: the pointer at end of data written.
7971
7972         * doprnt.c:
7973         Use `static const char * const' for constant strings.
7974         (union printf_arg): Delete `i', `ui' members.
7975         (get_doprnt_args):
7976         (emacs_doprnt_1):
7977         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7978         Do all printf-ing via the `l' specifier.
7979         Use EMACS_INT instead of int.
7980         Optimize.
7981
7982 2000-11-20  Didier Verna  <didier@xemacs.org>
7983
7984         * faces.c (update_face_cachel_data): don't frob the background
7985         pixmap when the window is being created. The face is needed but
7986         does not exist yet.
7987
7988 2000-11-20  Andy Piper  <andy@xemacs.org>
7989
7990         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7991         messing with a debug environment.
7992
7993 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7994
7995         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7996
7997 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7998
7999         * casetab.c (Fcase_table_p): Fix compile error and crash.
8000
8001 2000-11-18  Philip Aston  <philipa@mail.com>
8002
8003         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8004
8005 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8006
8007         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8008         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8009
8010 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8011
8012         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8013         * unexelf.c: Use HAVE_ELF_H.
8014         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8015         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8016         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8017         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8018         for testing.
8019         So this is an unexelfsgi.c from a different line of development.
8020
8021 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8022
8023         * regex.c (RE_TR_ASCII): New function.
8024         (RE_TRANSLATE): Call it.
8025
8026 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8027
8028         * buffer.h (TRT_TABLE_OF): Remove assert.
8029         (IN_TRT_TABLE_DOMAIN): Removed.
8030
8031 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8032
8033         * free-hook.c (log_gcpro):
8034         (show_gcprohist): Add support for GCPRO5.
8035
8036 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8037
8038         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8039
8040 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8041
8042         * symeval.h: Declare flush_all_buffer_local_cache.
8043
8044         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8045         (flush_buffer_local_cache): Added.
8046         (flush_all_buffer_local_cache): Added.
8047
8048         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8049
8050         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8051         (pdump_dump_data): Ditto.
8052         (pdump_reloc_one): Ditto.
8053         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8054         before dumping.
8055
8056
8057 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8058
8059         * buffer.c: Remove if 0'ed entry.
8060         * buffer.h: Rewrite TRT to use char-table.
8061         * bufslots.h: Remove mirror tables.
8062         * casetab.c: Remove mirror tables.
8063         (CASE_TABLE_P): New macro.
8064         (Fcase_table_p): Element of a case table is string or char-table.
8065         (make_mirror_trt_table): Removed.
8066         (set_case_table): Setup char-table from strings for backward
8067         compatibility.
8068         * dired.c (Fdirectory_files):
8069         * dired-msw.c: (mswindows_get_files):
8070         * lisp.h: Change prototype of re_pattern_buffer.
8071         * regex.c: (RE_TRANSLATE): New macro.
8072         (TRANSLATE_P): Ditto.
8073         Change translate to type RE_TRANSLATE_TYPE.
8074         * regex.h: Define RE_TRANSLATE_TYPE
8075         * search.c (TRANSLATE): New macro.
8076         (TRANSLATE_ASCII): New macro.
8077         Translate table is changed to Lisp_Object.
8078         (signal_failure): Inhibit return.
8079
8080 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8081
8082         * device-msw.c:
8083         * eldap.c:
8084         * event-Xt.c:
8085         * event-stream.c:
8086         * print.c:
8087         Do UNGCPRO before return.
8088
8089 2000-11-14  Martin Buchholz <martin@xemacs.org>
8090
8091         * XEmacs 21.2.37 is released.
8092
8093 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8094
8095         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8096         Add comments about discarded return value.
8097
8098 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8099
8100         * callint.c:
8101         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8102
8103 2000-10-27  Andy Piper  <andy@xemacs.org>
8104
8105         * gutter.c (Fset_default_gutter_position): default left and right
8106         gutters to visible.
8107         (calculate_gutter_size): calculate resonable heuristic for left
8108         and right gutter sizes.
8109         (specifier_vars_of_gutter): change left and right gutter sizes to
8110         autodetect.
8111         (calculate_gutter_size_from_display_lines): new function.
8112         (output_gutter): check for resizing on left and right gutters.
8113         (clear_gutter): don't special case top and left gutters.
8114         (specifier_vars_of_gutter): use new signature for
8115         set_specifier_caching.
8116
8117         * glyphs-x.c (x_redisplay_widget): spelling fix.
8118         * glyphs.c (specifier_vars_of_glyphs):
8119         * menubar.c (specifier_vars_of_menubar):
8120         * redisplay.c (specifier_vars_of_redisplay):
8121         * toolbar.c (specifier_vars_of_toolbar):
8122         * window.c (specifier_vars_of_window):
8123         * scrollbar.c (specifier_vars_of_scrollbar):
8124         (complex_vars_of_scrollbar): use new signature for
8125         set_specifier_caching.
8126
8127         * specifier.c (set_specifier_caching): include recompute flag.
8128         (recompute_one_cached_specifier_in_window): always recompute if
8129         flag set.
8130         (recompute_one_cached_specifier_in_frame): ditto.
8131
8132         * specifier.h (struct specifier_caching): add recompute flag.
8133
8134 2000-10-24  Andy Piper  <andy@xemacs.org>
8135
8136         * unexcw.c (copy_executable_and_dump_data_section): add new
8137         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8138         5.0 happy.
8139
8140 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8141
8142         * console-x.h (x_device): New member modifier_release_time.
8143         * event-Xt.c (x_handle_sticky_modifiers):
8144         Bound interval modifier keys are sticky.
8145         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8146         * events.h: extern it.
8147
8148 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8149
8150         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8151
8152 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8153
8154         * event-stream.c (execute_command_event): Preserve current_events
8155         and the like when event is misc-user-event.
8156         Inhibit quit during the call to maybe_echo_keys.
8157
8158 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8159
8160         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8161         symlink when buffer is killed.
8162         (inhibit_clash_detection): New variable.
8163
8164 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8165
8166         * console.c (Fset_input_method): Trigger redisplay on tty.
8167
8168 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8169
8170         * process.c (Fprocess_status): Revert to previous behavior:
8171         (process-status "nosuchprocess") ==> nil
8172
8173 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8174
8175         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8176         Work around another GCC 2.95.2 optimizer bug.
8177
8178 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8179
8180         * process.c (Fget_process): Use LIST_LOOP_2.
8181         (kill_buffer_processes): Use LIST_LOOP_2.
8182
8183         * minibuf.c (Fall_completions):
8184         Delete old non-functional code for FSF fourth argument.
8185
8186         * frame.c (frame_matches_frame_spec):
8187         Renamed from `frame_matches_frametype'.  Update all callers.
8188         (device_matches_device_spec):
8189         Renamed from 'device_matches_console_spec'.  Update all callers.
8190
8191         * doc.c (Fsubstitute_command_keys):
8192         Remove buffer overflow crash.  Small code cleanups.
8193
8194         * casetab.c (check_case_table): Simpler code.
8195
8196         * window.c (Freplace_buffer_in_windows):
8197         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8198         (and similar implementation) as Fdelete_windows_on.
8199         Update all callers.
8200
8201         * alloc.c (Fmake_list):
8202         * alloc.c (make_vector):
8203         * alloc.c (Fmake_vector):
8204         * alloc.c (make_bit_vector):
8205         * alloc.c (Fmake_bit_vector):
8206         * alloc.c (Fbit_vector):
8207         * alloc.c (Fmake_string):
8208         * alloc.c (Fpurecopy):
8209         * alloc.c (Fmemory_limit):
8210         * buffer.c:
8211         * buffer.c (Fget_buffer):
8212         * buffer.c (Fkill_buffer):
8213         * buffer.c (complex_vars_of_buffer):
8214         * bytecode.c (Fcompiled_function_stack_depth):
8215         * callint.c (Fprefix_numeric_value):
8216         * event-stream.c:
8217         * event-stream.c (Fread_key_sequence):
8218         * casetab.c:
8219         * casetab.c (Fcase_table_p):
8220         * casetab.c (check_case_table):
8221         * casetab.c (Fset_case_table):
8222         * casetab.c (Fset_standard_case_table):
8223         * chartab.c:
8224         * chartab.c (Fchar_table_type):
8225         * chartab.c (Freset_char_table):
8226         * chartab.c (Fget_char_table):
8227         * chartab.c (Fget_range_char_table):
8228         * chartab.c (Fput_char_table):
8229         * chartab.c (Fmap_char_table):
8230         * chartab.c (Fcategory_table_p):
8231         * chartab.c (Fcheck_category_at):
8232         * chartab.c (Fchar_in_category_p):
8233         * chartab.c (Fcategory_table):
8234         * chartab.c (Fcopy_category_table):
8235         * chartab.c (Fset_category_table):
8236         * chartab.c (Fcategory_designator_p):
8237         * chartab.c (Fcategory_table_value_p):
8238         * cmds.c (Fdelete_char):
8239         * cmds.c (Fdelete_backward_char):
8240         * cmds.c (Fself_insert_command):
8241         * cmds.c (Fself_insert_internal):
8242         * console.c (Fvalid_console_type_p):
8243         * console.c (Fcdfw_console):
8244         * console.c (Fconsole_type):
8245         * console.c (Fconsole_name):
8246         * console.c (Fconsole_device_list):
8247         * console.c (Fconsole_on_window_system_p):
8248         * data.c:
8249         * data.c (Feq):
8250         * data.c (Fold_eq):
8251         * data.c (Fsubr_interactive):
8252         * data.c (Fchar_to_int):
8253         * data.c (Fint_to_char):
8254         * data.c (Fsetcar):
8255         * data.c (Fsetcdr):
8256         * data.c (Fnumber_to_string):
8257         * data.c (Fstring_to_number):
8258         * data.c (Frem):
8259         * database.c (mark_database):
8260         * database.c (finalize_database):
8261         * database.c (Fdatabase_live_p):
8262         * database.c (Fdatabasep):
8263         * device-x.c (Fx_get_resource):
8264         * device.c (Fdfw_device):
8265         * dired.c:
8266         * dired.c (Ffile_name_completion):
8267         * dired.c (Ffile_name_all_completions):
8268         * dired.c (Fuser_name_completion):
8269         * dired.c (Fuser_name_completion_1):
8270         * dired.c (Fuser_name_all_completions):
8271         * doc.c (Fdocumentation):
8272         * doc.c (Fdocumentation_property):
8273         * doc.c (Fsubstitute_command_keys):
8274         * editfns.c:
8275         * editfns.c (Fchar_to_string):
8276         * editfns.c (Fstring_to_char):
8277         * editfns.c (Ftemp_directory):
8278         * editfns.c (Finsert_char):
8279         * editfns.c (Fbuffer_substring_no_properties):
8280         * editfns.c (Fnarrow_to_region):
8281         * editfns.c (Fchar_equal):
8282         * editfns.c (Fchar_Equal):
8283         * editfns.c (Ftranspose_regions):
8284         * emacs.c (Fdump_emacs):
8285         * eval.c (Fthrow):
8286         * eval.c (Fcommand_execute):
8287         * eval.c (Fautoload):
8288         * eval.c (Fbacktrace):
8289         * eval.c (Fbacktrace_frame):
8290         * events.c:
8291         * events.c (Fcopy_event):
8292         * events.c (Fcharacter_to_event):
8293         * events.c (Fevent_button):
8294         * events.c (Fevent_process):
8295         * extents.c:
8296         * extents.c (Fnext_extent_change):
8297         * extents.c (Fextent_property):
8298         * faces.c (Ffacep):
8299         * faces.c (Fmake_face):
8300         * file-coding.c:
8301         * file-coding.c (Fencode_shift_jis_char):
8302         * file-coding.c (Fencode_big5_char):
8303         * fileio.c (Ffile_name_directory):
8304         * fileio.c (Ffile_name_nondirectory):
8305         * fileio.c (Ffile_name_as_directory):
8306         * fileio.c (Fdirectory_file_name):
8307         * fileio.c (Ffile_truename):
8308         * fileio.c (Fsubstitute_in_file_name):
8309         * fileio.c (Ffile_modes):
8310         * fileio.c (Fset_file_modes):
8311         * fileio.c (Fset_default_file_modes):
8312         * fileio.c (Fverify_visited_file_modtime):
8313         * floatfns.c (Facos):
8314         * floatfns.c (Fasin):
8315         * floatfns.c (Fatan):
8316         * floatfns.c (Fcos):
8317         * floatfns.c (Fsin):
8318         * floatfns.c (Ftan):
8319         * floatfns.c (Fbessel_j0):
8320         * floatfns.c (Fbessel_j1):
8321         * floatfns.c (Fbessel_jn):
8322         * floatfns.c (Fbessel_y0):
8323         * floatfns.c (Fbessel_y1):
8324         * floatfns.c (Fbessel_yn):
8325         * floatfns.c (Ferf):
8326         * floatfns.c (Ferfc):
8327         * floatfns.c (Flog_gamma):
8328         * floatfns.c (Fexp):
8329         * floatfns.c (Fexpt):
8330         * floatfns.c (Flog):
8331         * floatfns.c (Flog10):
8332         * floatfns.c (Fsqrt):
8333         * floatfns.c (Fcube_root):
8334         * floatfns.c (Facosh):
8335         * floatfns.c (Fasinh):
8336         * floatfns.c (Fatanh):
8337         * floatfns.c (Fcosh):
8338         * floatfns.c (Fsinh):
8339         * floatfns.c (Ftanh):
8340         * floatfns.c (Fabs):
8341         * floatfns.c (Ffloat):
8342         * floatfns.c (Flogb):
8343         * floatfns.c (Fceiling):
8344         * floatfns.c (Ffloor):
8345         * floatfns.c (Fround):
8346         * floatfns.c (Ftruncate):
8347         * floatfns.c (Ffceiling):
8348         * floatfns.c (Fffloor):
8349         * floatfns.c (Ffround):
8350         * floatfns.c (Fftruncate):
8351         * fns.c (Fstring_equal):
8352         * fns.c (Fstring_lessp):
8353         * fns.c (concat2):
8354         * fns.c (concat3):
8355         * fns.c (vconcat2):
8356         * fns.c (vconcat3):
8357         * fns.c (Fsubstring):
8358         * fns.c (Fassoc):
8359         * fns.c (Fold_assoc):
8360         * fns.c (assoc_no_quit):
8361         * fns.c (Fassq):
8362         * fns.c (Fold_assq):
8363         * fns.c (assq_no_quit):
8364         * fns.c (Frassoc):
8365         * fns.c (Fold_rassoc):
8366         * fns.c (Frassq):
8367         * fns.c (Fold_rassq):
8368         * fns.c (rassq_no_quit):
8369         * fns.c (Fremassoc):
8370         * fns.c (remassoc_no_quit):
8371         * fns.c (Fremassq):
8372         * fns.c (remassq_no_quit):
8373         * fns.c (Fremrassoc):
8374         * fns.c (Fremrassq):
8375         * fns.c (remrassq_no_quit):
8376         * fns.c (Fsort):
8377         * fns.c (Fplist_get):
8378         * fns.c (Fplist_put):
8379         * fns.c (Fplist_remprop):
8380         * fns.c (Fplist_member):
8381         * fns.c (Flax_plist_get):
8382         * fns.c (Flax_plist_put):
8383         * fns.c (Flax_plist_remprop):
8384         * fns.c (Flax_plist_member):
8385         * fns.c (Fequal):
8386         * fns.c (Fold_equal):
8387         * fns.c (Frequire):
8388         * fns.c (Fbase64_encode_region):
8389         * fns.c (Fbase64_encode_string):
8390         * fns.c (Fbase64_decode_region):
8391         * frame.c:
8392         * frame.c (frame_matches_frame_spec):
8393         * frame.c (device_matches_device_spec):
8394         * frame.c (next_frame):
8395         * frame.c (previous_frame):
8396         * frame.c (Fnext_frame):
8397         * frame.c (Fprevious_frame):
8398         * frame.c (Fframe_property):
8399         * frame.c (Fset_frame_height):
8400         * frame.c (Fset_frame_size):
8401         * frame.h:
8402         * glyphs.c:
8403         * glyphs.c (if):
8404         * glyphs.c (decode_error_behavior_flag):
8405         * glyphs.c (Fmake_image_instance):
8406         * indent.c (Findent_to):
8407         * intl.c (Fignore_defer_gettext):
8408         * keymap.c (Fkeymapp):
8409         * keymap.c (Flookup_key):
8410         * lread.c:
8411         * lread.c (Fload_internal):
8412         * lread.c (Feval_buffer):
8413         * lread.c (Feval_region):
8414         * macros.c (Fexecute_kbd_macro):
8415         * marker.c (set_marker_internal):
8416         * marker.c (Fset_marker):
8417         * marker.c (set_marker_restricted):
8418         * marker.c (Fcopy_marker):
8419         * marker.c (noseeum_copy_marker):
8420         * menubar.c:
8421         * menubar.c (Fpopup_menu):
8422         * minibuf.c:
8423         * mule-charset.c (Fcharset_name):
8424         * mule-charset.c (Fchar_charset):
8425         * mule-charset.c (Fchar_octet):
8426         * mule-charset.c (Fsplit_char):
8427         * mule-wnnfns.c (Fwnn_open):
8428         * mule-wnnfns.c (Fwnn_dict_comment):
8429         * mule-wnnfns.c (Fwnn_quit_henkan):
8430         * mule-wnnfns.c (Fwnn_word_toroku):
8431         * mule-wnnfns.c (Fwnn_word_sakujo):
8432         * mule-wnnfns.c (Fwnn_word_use):
8433         * mule-wnnfns.c (Fwnn_hindo_set):
8434         * objects.c:
8435         * objects.c (Fmake_color_instance):
8436         * objects.c (Fmake_font_instance):
8437         * print.c (Fwrite_char):
8438         * process.c:
8439         * process.c (mark_process):
8440         * process.c (print_process):
8441         * process.c (get_process_from_usid):
8442         * process.c (Fprocessp):
8443         * process.c (Fprocess_live_p):
8444         * process.c (Fget_process):
8445         * process.c (Fget_buffer_process):
8446         * process.c (get_process):
8447         * process.c (Fprocess_id):
8448         * process.c (Fprocess_name):
8449         * process.c (Fprocess_command):
8450         * process.c (init_process_io_handles):
8451         * process.c (start_process_unwind):
8452         * process.c (Fstart_process_internal):
8453         * process.c (Fopen_multicast_group_internal):
8454         * process.c (Fset_process_window_size):
8455         * process.c (read_process_output):
8456         * process.c (send_process):
8457         * process.c (Fprocess_tty_name):
8458         * process.c (Fset_process_buffer):
8459         * process.c (Fprocess_buffer):
8460         * process.c (Fprocess_mark):
8461         * process.c (set_process_filter):
8462         * process.c (Fset_process_filter):
8463         * process.c (Fprocess_filter):
8464         * process.c (Fprocess_send_region):
8465         * process.c (Fprocess_send_string):
8466         * process.c (exec_sentinel):
8467         * process.c (Fset_process_sentinel):
8468         * process.c (Fprocess_sentinel):
8469         * process.c (status_notify):
8470         * process.c (Fprocess_status):
8471         * process.c (Fprocess_exit_status):
8472         * process.c (process_send_signal):
8473         * process.c (Fprocess_send_eof):
8474         * process.c (deactivate_process):
8475         * process.c (remove_process):
8476         * process.c (Fdelete_process):
8477         * process.c (kill_buffer_processes):
8478         * process.c (Fprocess_kill_without_query):
8479         * process.c (Fprocess_kill_without_query_p):
8480         * rangetab.c:
8481         * rangetab.c (Fget_range_table):
8482         * rangetab.c (Fput_range_table):
8483         * rangetab.c (Fremove_range_table):
8484         * rangetab.c (Fclear_range_table):
8485         * search.c:
8486         * search.c (Fskip_chars_forward):
8487         * search.c (Fskip_chars_backward):
8488         * search.c (Fskip_syntax_forward):
8489         * search.c (Fskip_syntax_backward):
8490         * search.c (search_command):
8491         * search.c (Freplace_match):
8492         * search.c (Fregexp_quote):
8493         * select.c (Fown_selection_internal):
8494         * select.c (Fselection_owner_p):
8495         * select.c (Fselection_exists_p):
8496         * select.c (Fget_selection_internal):
8497         * specifier.c:
8498         * symbols.c:
8499         * symbols.c (Fintern):
8500         * symbols.c (Fintern_soft):
8501         * symbols.c (Funintern):
8502         * symbols.c (Fapropos_internal):
8503         * symbols.c (Fset_default):
8504         * syntax.c:
8505         * syntax.c (Fsyntax_table_p):
8506         * syntax.c (Fcopy_syntax_table):
8507         * syntax.c (Fset_syntax_table):
8508         * syntax.c (Fchar_syntax):
8509         * syntax.c (syntax_match):
8510         * syntax.c (Fmatching_paren):
8511         * syntax.c (Fforward_word):
8512         * syntax.c (scan_lists):
8513         * syntax.c (Fscan_lists):
8514         * syntax.c (Fscan_sexps):
8515         * syntax.c (Fparse_partial_sexp):
8516         * toolbar.c (Fcheck_toolbar_button_syntax):
8517         * tooltalk.doc:
8518         * window.c:
8519         * window.c (Fwindowp):
8520         * window.c (Fwindow_live_p):
8521         * window.c (Fwindow_point):
8522         * window.c (Fdelete_window):
8523         * window.c (Fnext_window):
8524         * window.c (Fprevious_window):
8525         * window.c (Fother_window):
8526         * window.c (window_loop):
8527         * window.c (Fget_lru_window):
8528         * window.c (Fsplit_window):
8529         * window.c (Fenlarge_window):
8530         * window.c (Fenlarge_window_pixels):
8531         * window.c (Fshrink_window):
8532         * window.c (Fshrink_window_pixels):
8533         * window.c (change_window_height):
8534         * window.c (Fwindow_configuration_p):
8535         * window.c (Fcurrent_window_configuration):
8536         * window.h:
8537         * casefiddle.c (casify_object):
8538         * casefiddle.c (Fupcase):
8539         * casefiddle.c (Fdowncase):
8540         * casefiddle.c (Fcapitalize):
8541         * casefiddle.c (Fupcase_initials):
8542         * casefiddle.c (casify_region_internal):
8543         * casefiddle.c (casify_region):
8544         * casefiddle.c (Fupcase_region):
8545         * casefiddle.c (Fdowncase_region):
8546         * casefiddle.c (Fcapitalize_region):
8547         * casefiddle.c (Fupcase_initials_region):
8548         * casefiddle.c (Fupcase_word):
8549         * casefiddle.c (Fdowncase_word):
8550         * casefiddle.c (Fcapitalize_word):
8551         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8552         Replace 0 with '\0' when working with bytes.
8553         Replace initial "(" with "\(" in docstrings.
8554
8555 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8556
8557         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8558
8559         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8560
8561 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8562
8563         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8564
8565 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8566
8567         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8568         correctly.
8569
8570 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8571
8572         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8573         (inhibit_auto_save_session): New variable.
8574         (vars_of_fileio): Declare and initialize them.
8575         * fileio.c (Fdo_auto_save): Don't create session file if
8576         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8577
8578 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8579
8580         * sgiplay.c (play_internal): C++ compilability.
8581         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8582         * callproc.c (Fold_call_process_internal):
8583         Remove unused vars `env', `first'.
8584         * scrollbar.c (update_scrollbar_instance):
8585         #### unused var `current_window'.
8586         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8587         etc. within #ifdef NOT_YET.
8588         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8589         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8590         * specifier.c (specifier_instance):
8591         #### unused var `tag'.
8592         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8593
8594 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8595
8596         * fns.c (Fbutlast):
8597         * fns.c (list_sort):
8598         * fns.c (Ffillarray):
8599         * fns.c (bytecode_nconc2):
8600         * fns.c (Fnconc):
8601         * fns.c (mapcar1):
8602         * fns.c (Fmapconcat):
8603         Be pedantically 64-bit correct.  For the time when someone will
8604         want to have a list with length > 2**32.
8605
8606         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8607         Work around MIPSpro compiler bug.
8608
8609         * process-unix.c (unix_kill_child_process): Add snarky comment.
8610         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8611
8612         * config.h.in: Oops, _getpt ==> _getpty
8613
8614 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8615
8616         * config.h.in:
8617         * regex.c:
8618         Use void*, not char*, as return type of alloca().
8619
8620         * alloc.c (free_marker): Side effect inside assert expression!
8621
8622 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8623
8624         * mule-charset.c (Fset_charset_ccl_program): To check
8625         if the given ccl program is valid, use setup_ccl_program()
8626         instead of CHECK_VECTOR().
8627         (Fmake_charset): Likewise.
8628
8629 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8630
8631         * faces.c (get_extent_fragment_face_cache_index):
8632         Fix cachel.merged_faces memory leak.
8633
8634 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8635
8636         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8637         Reset MSB of octets obtained by DECODE_SJIS
8638         because of the incompatibility with Emacs.
8639         (ccl_driver)<CCL_ENCODE_SJIS>:
8640         Set MSB of octets before passing them to
8641         ENCODE_SJIS because of the incompatibility
8642         with Emacs.
8643
8644 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8645
8646         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8647         (DECLARE_LRECORD): Undo the last change.
8648         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8649
8650 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8651
8652         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8653         the implementation to lrecord_implementations_table.
8654
8655 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8656
8657         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8658         initial value of `lrecord_type_##c_name' and
8659         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8660         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8661         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8662         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8663         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8664
8665 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8666
8667         * miscplay.c (sndcnv8S_2mono):
8668         (sndcnv2monounsigned):
8669         (sndcnvULaw_2linear):
8670         (sndcnv16swap):
8671         Remove implementation-defined behavior.
8672
8673 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8674
8675         * input-method-xlib.c: Warning suppression.
8676
8677 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8678
8679         * mule-ccl.c: Sync up with Emacs 21.0.90.
8680         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8681         Do nothing.
8682         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8683         Likewise.
8684         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8685         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8686         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8687         leading char belongs to official 2-dimensional charset.
8688         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8689         write the given character as is.  Otherwise,
8690         if it is a multibyte char, convert it by
8691         non_ascii_set_charptr_emchar, then write it.
8692         (CCL_WRITE_STRING): Likewise.
8693         (ccl_get_compiled_code): New function.
8694         (setup_ccl_program): When ccl_prog is invalid,
8695         return -1.
8696         (Fregister_code_conversion_map): New function.
8697         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8698
8699         * mule-ccl.h: Sync up with Emacs 21.0.90.
8700         (Fregister_ccl_program): export it.
8701
8702         * redisplay-msw.c (separate_textual_runs):
8703         If ccl program is not valid, don't do ccl conversion.
8704
8705         * redisplay-x.c (separate_textual_runs): Ditto.
8706
8707         * file-coding.c (Fmake_coding_system):
8708         When type is ccl and value is vector, register it
8709         with a proper symbol.  And checks whether the
8710         given ccl program is valid.
8711         (mule_decode): When calling ccl_driver, if src indicates
8712         NULL pointer, set an empty string instead.
8713         (mule_encode): Likewise.
8714
8715 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8716
8717         The following large batch of changes gets us back to a state of
8718         C++ compilability.  Extbyte is now a char, which means that
8719         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8720
8721         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8722
8723         * sound.c (Fplay_sound): Type correctness.
8724
8725         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8726         (x_get_window_property): Type correctness.
8727         (receive_incremental_selection): unsigned char ==> Extbyte
8728         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8729         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8730         (Fx_store_cutbuffer_internal): Type correctness.
8731
8732         * process-unix.c (try_to_initialize_subtty): Type correctness.
8733
8734         * objects-x.c (x_print_color_instance): Type correctness.
8735         (x_print_font_instance): Type correctness.
8736         (x_list_fonts): SExtbyte ==> Extbyte.
8737         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8738         (x_find_charset_font): SExtbyte ==> Extbyte.
8739         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8740         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8741         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8742         Use bufbyte_strcmp.
8743
8744         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8745         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8746         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8747         (BYTE_C0_P): Use bit ops for char-signedness safety.
8748         (BYTE_C1_P): Use bit ops for char-signedness safety.
8749         (CHARSET_BY_LEADING_BYTE):
8750         (CHARSET_BY_ATTRIBUTES):
8751         Always use inline function.
8752         Use type_checking_assert.
8753         Hide chlook.
8754
8755         * mule-charset.c (non_ascii_charptr_copy_char):
8756         Modify to work with both ASCII and non-ASCII characters.
8757         Improve docs and variable names.
8758         Replace over-clever fall-through switch with a simple loop.
8759         (Lstream_get_emchar_1):
8760         Replace over-clever fall-through switch with a simple loop.
8761
8762         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8763         Warning suppression.
8764
8765         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8766         the return value of Lstream_getc, which could be EOF as well.
8767
8768         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8769
8770         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8771         APIs can be used on Extbytes without casts.  Risky!
8772         (SExtbyte): Remove.
8773         (UExtbyte): Remove.
8774
8775         * input-method-xlib.c (XIM_init_device):
8776         Use Xlib.h instead of IntrinsicP.h.
8777         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8778         which will break in X11R7.
8779         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8780         to call XRegisterIMInstantiateCallback with correct types.
8781
8782         * gui-x.c (button_item_to_widget_value): Type correctness.
8783
8784         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8785
8786         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8787         (xbm_instantiate_1): Type correctness.
8788         (BUILD_GLYPH_INST):  Type correctness.
8789
8790         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8791
8792         * file-coding.c:
8793         (decode_coding_sjis):
8794         (decode_coding_big5):
8795         (decode_coding_ucs4):
8796         (decode_coding_utf8):
8797         (decode_coding_iso2022):
8798         (decode_coding_no_conversion):
8799         Make all decoding functions take an Extbyte * arg.
8800         (encode_coding_sjis):
8801         (encode_coding_big5):
8802         (encode_coding_ucs4):
8803         (encode_coding_utf8):
8804         (encode_coding_iso2022):
8805         (encode_coding_no_conversion):
8806         Make all encoding functions take a Bufbyte * arg.
8807         Use size_t instead of unsigned int for memory sizes.
8808         Only cast to unsigned char whenever dereferencing Extbyte *.
8809
8810         * doc.c (unparesseuxify_doc_string): Type correctness.
8811
8812         * console-x.c (split_up_display_spec):
8813         Rewrite without using details of internal string representation.
8814         (x_semi_canonicalize_device_connection): Type correctness.
8815
8816         * config.h.in:
8817         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8818         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8819         (HAVE_XFREE386): Removed.
8820
8821         * buffer.h (DEC_CHARPTR): `const' correctness.
8822         (bufbyte_strcmp): New.
8823         (bufbyte_memcmp): New.
8824
8825         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8826
8827         * buffer.h (XCHAR_OR_CHAR_INT):
8828         Always use inline function.
8829         Remove redundant type checking assert() - XINT will abort quite nicely.
8830
8831 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8832
8833         * search.c (Freplace_match): Set newtext to an empty string.
8834
8835 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8836
8837         * s/decosf1-3.h: Remove #include of stropts.h
8838         * s/ptx.h: Remove #include of stropts.h
8839         * s/usg5-4.h: Remove #include of stropts.h
8840         * sysproc.h:
8841         * config.h.in:
8842         Use stropts.h, not sys/stropts.h.
8843         Use strtio.h, not sys/strtio.h.
8844
8845 2000-10-04  Martin Buchholz <martin@xemacs.org>
8846
8847         * XEmacs 21.2.36 is released.
8848
8849 2000-09-21  Andy Piper  <andy@xemacs.org>
8850
8851         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8852         changes still involve copying the widget tree.
8853         (update_widget_face): make sure a change is register in the widget
8854         tree. Call update_tab_widget_face appropriately.
8855         (update_tab_widget_face): ditto.
8856         (x_tab_control_redisplay): make sure non-structural changes still
8857         involve copying the widget tree.
8858
8859 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8860
8861         * lread.c (locate_file): Check the path element is non-nil.
8862
8863 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8864
8865         * lisp.h: Warning suppression for SCO compilers.
8866
8867         * redisplay-tty.c (reset_tty_modes): Fix crash.
8868         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8869
8870 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8871
8872         Big signal/process handling overhaul.  Bugs fixed:
8873         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8874         M-x comint-kill-subjob should work for both values nil and t of
8875         process-connection-type. It was broken on most platforms.
8876         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8877         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8878         * process-unix.c: Signal/Process handling overhaul.
8879         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8880         (allocate_pty): Use all available modern methods of allocating
8881         ptys, falling back to old style BSD allocation as a last resort.
8882         Use allegedly more secure Unix98 pty allocation by default.
8883         (allocate_pty_the_old_fashioned_way): New. the last resort.
8884         (unix_create_process): Push ptem, ldterm, ttcompat where
8885         available.  Autoconfiscate.
8886         (try_to_initialize_subtty): New.
8887         (unix_kill_child_process): Proper signal handling for ptys on most
8888         platforms, using special knowledge of AIX, BSD, etc...
8889         (unix_create_process): Always disconnect_controlling_terminal() for
8890         subprocesses, whether using ptys or not.
8891         * process.h: Remove old getpt-dependent PTY code.
8892         * process.c (Fprocess_send_signal): New, obvious generic function.
8893         (decode_signal): New.
8894         (Finterrupt_process):
8895         (Fkill_process):
8896         (Fquit_process):
8897         (Fstop_process):
8898         (Fcontinue_process):
8899         (Fsignal_process): Use decode_signal.
8900         (process_send_signal):
8901         Many docstring corrections.
8902         Allow any signal to be sent to a process object.
8903         * config.h.in: Add symbols for big signal/process overhaul.
8904         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8905         * sysproc.h: Include process-related headers, where available:
8906         sys/stropts.h sys/strtio.h pty.h libutil.h
8907         * s/irix4-0.h:
8908         * s/irix5-0.h:
8909         * s/cygwin32.h:
8910         * s/gnu.h:
8911         * s/linux.h:
8912         * s/hpux.h:
8913         * s/aix3-1.h:
8914         Remove old S&M pty stuff.
8915         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8916         * systty.h: Simplify cpp hackery, improve comments.
8917         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8918
8919         * editfns.c (Fformat_time_string):
8920         Be a little more paranoid with the return value of ctime.
8921
8922         * fileio.c (check_executable):
8923         (check_writable):
8924         Use symbolic constants X_OK, W_OK.
8925
8926         * console-x.c (split_up_display_spec): Fix a warning.
8927
8928 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8929
8930         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8931         * ntproc.c (sys_spawnve): make_string ==> build_string
8932         Small clarity improvements.
8933
8934 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8935
8936         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8937
8938         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8939
8940         * config.h.in (HAVE_STRCASECMP): Remove.
8941
8942 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8943
8944         * redisplay-output.c (redisplay_output_pixmap):
8945         Cleaner and possibly more 64-bit correct code.
8946
8947 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8948
8949         * dumper.c (pdump_load_finish): move restoration of
8950         `noninteractive1' to emacs.c (main_1).
8951         * emacs.c (main_1): protect LISP-visible command-line flags
8952         from pdump_load().
8953
8954 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8955
8956         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8957         DUMP_TARGET instead of literal program names.
8958
8959 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8960
8961         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8962
8963 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8964
8965         * *: Spelling mega-patch
8966
8967 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8968
8969         * fns.c (bad_bad_turtle):
8970         Delete "Eek!" comment, since we fixed the bug to which it refers.
8971
8972 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8973
8974         * alloca.c: Replace REGISTER with register.
8975
8976 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8977
8978         * file-coding.c (ucs_to_char): Use countof.
8979
8980 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8981
8982         * file-coding.c: (ucs_to_char):
8983         (complex_vars_of_file_coding):
8984         Use countof instead of sizeof.
8985         Use CHECK_NATNUM instead of CHECK_INT.
8986
8987         * sysdep.c (strcasecmp): Remove.
8988         * device-x.c (ascii_strcasecmp): New.
8989         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8990         Avoid using non-standard non-portable strcasecmp.
8991
8992 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8993
8994         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8995         * font-lock.c: remove reference to emacsfns.h.
8996         * search.c: small doc improvement.
8997         * event-Xt.c: correct file names in comments.
8998         * console-x.h Correct file names in comments.
8999         * frame.c: Correct file names in comments.
9000         * event-stream.c: remove Energize from comments.
9001
9002 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9003
9004         * symeval.h (DEFERROR_STANDARD):
9005         (DEFERROR):
9006         (DEFSYMBOL):
9007         (DEFSYMBOL_NO_DUMP):
9008         (DEFSYMBOL_MULTIWORD_PREDICATE):
9009         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9010         (DEFKEYWORD):
9011         The construct &##name is not sensible C.
9012         Fixes compilation errors with Unixware native compiler.
9013
9014 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9015
9016         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9017         (next_frame_internal): Removed.  We now just have next_frame.
9018         (next_frame):
9019         Write a simpler and cleaner one-pass algorithm.
9020         Remove called_from_delete_device arg and #ifdefed-out code.
9021         (previous_frame):
9022         Renamed from prev_frame.  Update callers.
9023         Cleaned up to have an analogous implementation to next_frame.
9024         (other_visible_frames_internal): Remove the
9025         called_from_delete_device bogus arg, and hence, remove this
9026         function.  Just use other_visible_frames().
9027
9028         * window.c (Fnext_window):
9029         Prettify docstring.
9030         Since next_frame() is guaranteed to return a frame, remove check
9031         for nil inserted in previous patch.
9032         (Fprevious_window):
9033         Prettify docstring.
9034         Make code look more like Fnext_window.
9035         (window_loop):
9036         Respect the `console' arg when iterating through windows.
9037         Fixes bug: (get-buffer-window buffer t device) not respecting
9038         the `device' arg.
9039         This function needs more work, as others have pointed out.
9040
9041         * frame.h: Rename prev_frame to previous_frame.
9042         device_matches_console_spec no longer takes a `frame' arg.
9043
9044         * s/gnu.h:
9045         * s/linux.h:
9046         * s/hpux.h:
9047         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9048         From "Golubev I. N." <gin@mo.msk.ru>.
9049
9050         * make-src-depend: Fix typo.
9051
9052 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9053
9054         * window.c (Fnext_window):
9055         next_frame() might return nil, not a frame.
9056         Fixes this crash:
9057         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9058
9059         * frame.c (next_frame_internal):
9060         We've passed a frame if we've passed its device.
9061         Fixes this crash:
9062         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9063 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9064
9065 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9066
9067         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9068         Allow option to suppress accelerators in menu/dialog items.
9069         (populate_or_checksum_helper): Pass dialog title through above.
9070
9071 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9072
9073         * event-msw.c (mswindows_key_to_emacs_keysym):
9074         Add "pause" key, fix "menu" key.
9075
9076 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9077
9078         * eval.c (reinit_vars_of_eval):
9079         Increase max_lisp_eval_depth to 1000,
9080         required for thai-xtis.el to byte-compile under some circumstances.
9081
9082 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9083
9084         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9085         From Kenichi Handa.
9086
9087 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9088
9089         * make-src-depend: Make the generated Makefiles smaller.
9090
9091         * s/hpux.h (SETUP_SLAVE_PTY):
9092         Provide a %d in the format string for the errno argument.
9093
9094         * editfns.c (Ftemp_directory):
9095         Warning fix.
9096         Avoid buffer overrun on very long file name.
9097
9098         * input-method-xlib.c (XIM_init_device):
9099         6th parameter of XRegisterIMInstantiateCallback has different
9100         pointer types on different OSes, so simply cast to (void *).
9101
9102         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9103
9104         * sysdll.c (dll_open):
9105         shl_load will hang hard if passed a NULL filename.
9106         Simply return NULL for compatibility with dlopen.
9107         * sysdll.c: Conform to XEmacs coding standards.
9108
9109         * sysdep.c (get_pty_max_bytes):
9110         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9111
9112 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9113
9114         * tooltalk.c: Add #include <syssignal.h>
9115
9116 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9117
9118         * s/hpux.h: Don't use undefined function sigunblock().
9119
9120 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9121
9122         * config.h.in: Add HAVE_BALLOON_HELP.
9123         * emacs.c: Use HAVE_BALLOON_HELP.
9124         * Makefile.in.in (x_objs):
9125         Make Balloon Help conditional on finding shape.h.
9126
9127 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9128
9129         * syntax.c (regex_emacs_buffer_p): New variable.
9130         * syntax.h (regex_emacs_buffer_p): extern.
9131         * search.c (looking_at_1):
9132         (string_match_1):
9133         (fast_string_match):
9134         (search_buffer): Set regex_emacs_buffer_p.
9135         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9136         when before_dot, at_dot, after_dot.
9137
9138 2000-08-23  Andy Piper  <andy@xemacs.org>
9139
9140         * gui-x.c (popup_selection_callback): Only set action_occurred
9141         when we really have an image instance.
9142         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9143
9144 2000-08-23  Andy Piper  <andy@xemacs.org>
9145
9146         * gui-msw.c (mswindows_handle_gui_wm_command): set
9147         action_occurred.
9148         * gui-x.c (popup_selection_callback): ditto.
9149
9150         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9151         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9152         (struct Lisp_Image_Instance): add action_occurred flag.
9153
9154         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9155         (image_instance_changed): ditto.
9156         (reset_frame_subwindow_instance_cache): only unmap windows - do
9157         not remove them from the cache also.
9158
9159         * glyphs-widget.c (tab_control_update): better debug.
9160         (progress_gauge_update): ditto.
9161         (layout_update): ditto.
9162         (layout_instantiate): ditto.
9163         (tab_control_order_only_changed): cope with null pending items.
9164
9165         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9166         debug. Force selection of an item when an action occurred. Cope
9167         with null pending_items.
9168         (mswindows_progress_gauge_redisplay): better debug.
9169         * glyphs-x.c (x_tab_control_redisplay): ditto.
9170
9171         * redisplay.c (redisplay_frame): reset the frame cache if the
9172         frame is garbaged.
9173
9174         * window.c (Fset_window_configuration): potentially re-enable
9175         frame cache reset.
9176         (window_unmap_subwindows): need to finalize instances here since
9177         it is only used in mark_window_as_deleted.
9178
9179 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9180
9181         * nas.c (SndOpenDataForReading):
9182         nas.c (WaveOpenDataForReading):
9183         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9184         Somehow escaped from the 2000-08-14 patch.
9185
9186 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9187
9188         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9189         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9190
9191 2000-08-21  Andy Piper  <andy@xemacs.org>
9192
9193         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9194         window if it is not already displayed.
9195
9196         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9197         it is not already displayed.
9198
9199         * window.c (Fset_window_configuration): don't reset the frame
9200         cache.
9201
9202         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9203         instances from the frame cache if we are actually finalizing them.
9204         (reset_frame_subwindow_instance_cache): reset frame cache only
9205         after unmapping everything.
9206         (map_subwindow): set displayed flag after mapping.
9207
9208 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9209
9210         * data.c (indirect_function):
9211         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9212
9213         * eval.c (function_argcount):
9214         Use original function when signaling errors.
9215
9216 2000-08-18  Andy Piper  <andy@xemacs.org>
9217
9218         * frame.c (delete_frame_internal): use new
9219         free_frame_subwindow_instances name.
9220
9221         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9222         (add_tab_item): make return type correct.
9223         (mswindows_tab_control_instantiate): assert index of tab.
9224         (mswindows_tab_control_redisplay): Re-code to use
9225         gui_item_equal_sans_selected and gui_item_list_find_selected.
9226
9227         * glyphs-widget.c (tab_control_update): Correct comment.
9228
9229         * window.c (window_unmap_subwindows): use new
9230         unmap_subwindow_instance_cache_mapper.
9231         (window_unmap_subwindows_cache_mapper): deleted.
9232         (Fset_window_configuration): comparisons should now be with
9233         EQ. Preserve the subwindow instance cache across configuration
9234         changes.
9235         (allocate_window): ditto.
9236         (make_dummy_parent): ditto.
9237
9238         * glyphs.c (free_frame_subwindow_instances): rename from
9239         free_frame_subwindow_instance_cache. finalize all instances rather
9240         than just those in the display cache.
9241         (finalize_all_subwindow_instances): walk windows unmapping and
9242         finalizing subwindows.
9243         (unmap_subwindow_instance_cache_mapper): moved from
9244         window.c. Allow finalization as well as unmapping.
9245
9246         * gui.c (gui_item_list_find_selected): new function.
9247
9248         * gui.h (gui_item_list_find_selected): declare.
9249
9250         * glyphs-x.c (x_tab_control_redisplay): pick tab
9251         explicitly. Re-code to use gui_item_equal_sans_selected and
9252         gui_item_list_find_selected.
9253
9254         * glyphs-x.h: add lwlib-utils.h
9255
9256         * buffer.c (Frecord_buffer): undo previous change.
9257
9258 2000-08-09  Vin Shelton  <acs@xemacs.org>
9259
9260         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9261         possible.  Create temporary files more securely.  The patch was
9262         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9263         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9264         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9265         for details.
9266
9267 2000-08-07  Ben Wing  <ben@xemacs.org>
9268
9269         * getloadavg.c: remove duplicate (and windows-breaking)
9270         includes of fcntl.h and sys/file.h.
9271
9272         * nt.c: remove duplicate getloadavg() definition.
9273
9274         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9275         encodings.
9276
9277 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9278
9279         * eval.c (function_argcount): If function needs to be autoloaded
9280         actually use the loaded definition.
9281         GCPRO function.
9282
9283 2000-08-05  Ben Wing  <ben@xemacs.org>
9284
9285         * getloadavg.c: add prototype for getloadavg().  remove
9286         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9287         of the code).  remove duplicate header includes.
9288
9289         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9290
9291         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9292         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9293         useful load average.
9294
9295         * alloc.c (reinit_alloc_once_early): removed references to
9296         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9297         the lisp vars are the only things referencing the malloc_sbrk_*
9298         vars, and they were already if 0'd out.  these vars only exist
9299         in the older malloc.c, which is basically unused, and they're
9300         only for informational purposes.
9301
9302         * m\*.h: removed useless VIRT_ADDR_VARIES.
9303
9304         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9305
9306 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9307
9308         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9309         color if the image is a mono pixmap.
9310
9311 2000-07-30  Ben Wing  <ben@xemacs.org>
9312
9313         * Makefile.in.in (release):
9314         Remove stray @.
9315
9316         * buffer.c (directory_is_current_directory):
9317         * dired-msw.c (mswindows_get_files):
9318         * dired.c:
9319         * dired.c (Fdirectory_files):
9320         * dired.c (file_name_completion_stat):
9321         * dired.c (Ffile_attributes):
9322         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9323         preprocessor tricks, to avoid problems on some machines
9324         (e.g. SCO).
9325
9326         * callproc.c (egetenv): GC docs.
9327
9328         * console-msw.h:
9329         * console-msw.h (struct mswindows_dialog_id):
9330         * lrecord.h (lrecord_type):
9331         New object for use with MSW dialogs.
9332
9333         * console.h (struct console_methods):
9334         New enable/disable frame methods, for proper modal dialogs.
9335
9336         * device-msw.c (msprinter_default_printer): Fix to follow
9337         proper Mule conventions.
9338
9339         * device-msw.c:
9340         * device-msw.c (signal_open_printer_error):
9341         * device-msw.c (msprinter_init_device):
9342         * device-msw.c (ensure_not_printing):
9343         * device-msw.c (plist_get_margin):
9344         * device-msw.c (Fmsprinter_select_settings):
9345         * device-msw.c (finalize_devmode):
9346         * device-msw.c (Fmsprinter_settings_despecialize):
9347         * device-msw.c (signal_enum_priner_error):
9348         * extents.c (decode_extent):
9349         * extents.c (decode_map_extents_flags):
9350         * extents.c (decode_extent_at_flag):
9351         * extents.c (Fextent_at):
9352         * extents.c (Fextents_at):
9353         * extents.c (symbol_to_glyph_layout):
9354         [[[[2]]]] Use structured errors.
9355
9356         * dialog-msw.c:
9357         * dialog-msw.c (mswindows_is_dialog_msg):
9358         * dialog-msw.c (mark_mswindows_dialog_id):
9359         * dialog-msw.c (dialog_proc):
9360         * dialog-msw.c (handle_question_dialog_box):
9361         * dialog-msw.c (syms_of_dialog_mswindows):
9362         Define new object to clean up marking; use it as a dialog identifier.
9363         Call new delete-dialog-box-hook.
9364
9365         * dialog-x.c (dbox_selection_callback):
9366         * dialog-x.c (dbox_descriptor_to_widget_value):
9367         * dialog-x.c (x_make_dialog_box_internal):
9368         Call new delete-dialog-box-hook.
9369         Return an id.
9370
9371         * dialog.c:
9372         * dialog.c (syms_of_dialog):
9373         * dialog.c (vars_of_dialog):
9374         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9375
9376         * eval.c:
9377         * eval.c (signal_call_debugger):
9378         when noninteractive, output stack traces on the console instead
9379         of in a (never-seen) buffer.
9380
9381         * eval.c (signal_type_error):
9382         * eval.c (invalid_argument_2):
9383         * lisp.h:
9384         new funs for use w/structured errors.
9385
9386         * event-Xt.c:
9387         * event-Xt.c (x_to_emacs_keysym):
9388         * event-Xt.c (describe_event):
9389         * event-Xt.c (emacs_Xt_event_handler):
9390         * event-Xt.c (vars_of_event_Xt):
9391         * event-msw.c:
9392         * event-msw.c (mswindows_wnd_proc):
9393         * event-msw.c (vars_of_event_mswindows):
9394         rename {x,mswindows}-debug-events to debug-{}-events for
9395         consistency with other debug-foo variables.
9396
9397         * event-stream.c:
9398         document next-event more clearly.
9399
9400         * fileio.c (Ffile_name_directory):
9401         * fileio.c (Ffile_name_nondirectory):
9402         * fileio.c (Funhandled_file_name_directory):
9403         * fileio.c (file_name_as_directory):
9404         * fileio.c (Ffile_name_as_directory):
9405         * fileio.c (directory_file_name):
9406         * fileio.c (Fdirectory_file_name):
9407         * fileio.c (Fmake_temp_name):
9408         * fileio.c (Ffile_truename):
9409         * fileio.c (Fsubstitute_in_file_name):
9410         * fileio.c (expand_and_dir_to_file):
9411         * fileio.c (barf_or_query_if_file_exists):
9412         * fileio.c (check_executable):
9413         * fileio.c (Ffile_exists_p):
9414         * fileio.c (Ffile_writable_p):
9415         * fileio.c (Ffile_directory_p):
9416         * fileio.c (Ffile_regular_p):
9417         * fileio.c (Ffile_modes):
9418         * fileio.c (Ffile_newer_than_file_p):
9419         * fileio.c (Fverify_visited_file_modtime):
9420         * fileio.c (Fset_visited_file_modtime):
9421         * fileio.c (auto_save_1):
9422         (1). (2).
9423         fix up gcpro's.
9424
9425         * frame-msw.c:
9426         * frame-msw.c (mswindows_init_frame_1):
9427         * frame-msw.c (mswindows_enable_frame):
9428         * frame-msw.c (error_frame_unsizable):
9429         * frame-msw.c (msprinter_init_frame_1):
9430         * frame-msw.c (msprinter_init_frame_3):
9431         * frame-msw.c (console_type_create_frame_mswindows):
9432         (2).
9433         implement new enable/disable frame methods.
9434
9435         * frame-x.c:
9436         * frame-x.c (x_enable_frame):
9437         * frame-x.c (console_type_create_frame_x):
9438         implement new enable/disable frame methods.
9439
9440         * frame.c:
9441         * frame.c (Fdisable_frame):
9442         * frame.c (syms_of_frame):
9443         * frame.h (struct frame):
9444         implement new enable/disable frame methods/functions.
9445
9446         * general-slots.h:
9447         add initial-focus.
9448
9449         * glyphs-msw.c (mswindows_widget_instantiate):
9450         comment that initial-focus should be implemented.
9451
9452         * glyphs-widget.c:
9453         * glyphs-widget.c (check_valid_instantiator):
9454         * glyphs-widget.c (check_valid_orientation):
9455         * glyphs-widget.c (check_valid_tab_orientation):
9456         * glyphs-widget.c (check_valid_justification):
9457         * glyphs-widget.c (check_valid_border):
9458         * glyphs-widget.c (check_valid_callback):
9459         * glyphs-widget.c (check_valid_int_or_function):
9460         * glyphs-widget.c (check_valid_string_or_vector):
9461         * glyphs-widget.c (check_valid_item_list_1):
9462         * glyphs-widget.c (widget_validate):
9463         * glyphs-widget.c (combo_box_validate):
9464         * glyphs-widget.c (widget_instantiate):
9465         * glyphs-widget.c (syms_of_glyphs_widget):
9466         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9467         * glyphs-widget.c (image_instantiator_combo_box):
9468         * glyphs-widget.c (image_instantiator_scrollbar):
9469         * glyphs-widget.c (image_instantiator_tab_control):
9470         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9471         (2).
9472         support (unimplemented) keyword initial-focus.
9473         reindent long macros.
9474
9475         * glyphs-x.c (x_redisplay_widget):
9476         * glyphs-x.c (x_button_instantiate):
9477         * glyphs-x.c (x_button_redisplay):
9478         * glyphs-x.c (x_progress_gauge_instantiate):
9479         * glyphs-x.c (x_edit_field_instantiate):
9480         * glyphs-x.c (x_combo_box_instantiate):
9481         * glyphs-x.c (x_tab_control_instantiate):
9482         * glyphs-x.c (x_label_instantiate):
9483         * gui-x.c:
9484         * gui-x.c (button_item_to_widget_value):
9485         * gui-x.c (gui_items_to_widget_values_1):
9486         * gui-x.c (gui_item_children_to_widget_values):
9487         * gui-x.c (gui_items_to_widget_values):
9488         * gui-x.h:
9489         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9490         add new flag to gui-parsing routines to indicate whether
9491         accelerator specs should be supported.
9492
9493         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9494
9495         * glyphs.h (struct Lisp_Image_Instance):
9496         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9497         add initial-focus flag.
9498
9499         * gui.c:
9500         * gui.c (syms_of_gui):
9501         * gui.c (vars_of_gui):
9502         clean up menu-no-selection-hook.
9503
9504         * gui.h:
9505         support delete-dialog-box-hook.
9506
9507         * lread.c (Fload_internal):
9508         * lread.c (locate_file_in_directory_mapper):
9509         (1).
9510
9511         * lrecord.h:
9512         * lrecord.h (struct toolbar_button):
9513         * lrecord.h (syms_of_toolbar):
9514         document how to create a new object.
9515
9516         * menubar-msw.c (mswindows_char_is_accelerator):
9517         may be called on frames w/o menus.
9518
9519         * menubar.c (vars_of_menubar):
9520         clean up :filter docs.
9521
9522         * nt.c (readdir):
9523         * ntproc.c:
9524         (1).
9525
9526         * process-nt.c:
9527         * process-nt.c (validate_signal_number):
9528         * process-nt.c (signal_cannot_launch):
9529         * process-nt.c (nt_create_process):
9530         * process-nt.c (nt_send_process):
9531         * process-nt.c (nt_kill_child_process):
9532         * process-nt.c (nt_open_network_stream):
9533         * process-nt.c (syms_of_process_nt):
9534         (2).
9535         delete quote-handling.  call new lisp code that does it better.
9536
9537         * process-unix.c (connect_to_file_descriptor):
9538         * process-unix.c (allocate_pty):
9539         * process-unix.c (unix_send_process):
9540         * process-unix.c (unix_kill_child_process):
9541         * process-unix.c (unix_open_network_stream):
9542         * process-unix.c (unix_open_multicast_group):
9543         (1). (2).
9544
9545         * process.c:
9546         * process.c (Fstart_process_internal):
9547         (2).  need to canonicalize process path even if absolute.
9548
9549         * select-msw.c (symbol_to_ms_cf):
9550         * select-msw.c (ms_cf_to_symbol):
9551         * select-msw.c (cf_is_autofreed):
9552         * select-msw.c (mswindows_destroy_selection):
9553         * select.c:
9554         * select.c (syms_of_select):
9555         * select.h:
9556         support dibv5, fix bugs. (from Mike Alexander)
9557
9558         * select.c (Fget_selection_internal):
9559         * select.c (select_convert_out):
9560
9561         * sysdep.c:
9562         * sysdep.c (xemacs_stat):
9563         renamed.
9564
9565         * sysdep.c (mkdir):
9566         * sysdep.c (rmdir):
9567         but keep original stat() here because we provide encapsulation
9568         around these funs.
9569
9570         * sysfile.h:
9571         * sysfile.h (fstat):
9572         remove stat garbage.
9573
9574         * syswindows.h:
9575         fix X/MSW conflict.
9576         don't include tchar.h.  it's inappropriate because it makes
9577         compile-time distinctions when we want runtime distinctions.
9578         (we provide our own tchar replacements)
9579
9580         * toolbar.c:
9581         use default object printer for toolbar-button.
9582
9583         * unexcw.c:
9584         make sure we don't encapsulate.
9585
9586         * window.c (vars_of_window):
9587         emphasize that temp-buffer-show-hook is obsolete.
9588
9589 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9590
9591         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9592         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9593
9594         * events.c (Fevent_timestamp_lessp):
9595         Not 64-bit clean.  Use EMACS_INT, not int.
9596
9597 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9598
9599         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9600         unsigned int and changed the last enum to
9601         lrecord_type_last_built_in_type.
9602         (lrecord_implementations_table): changed prototype to know how
9603         long the array is supposed to be.
9604         (lrecord_type_count): new unsigned int to keep track of the
9605         current number of lisp lrecord types.
9606         (DEFINE_EXTERNAL_LRECORD):
9607         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9608         dynamic-modules to declare new lisp types. They are the same
9609         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9610         int for each new type, and increment lrecord_type_count by 1.
9611
9612         * alloc.c (lrecord_implementations_table): Changed to reference
9613         lrecord_type_last_built_in_type for the size of the array.
9614         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9615
9616 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9617
9618         * glyphs.h (check_valid_item_list): Renamed from
9619         check_valid_item_list_1.
9620
9621 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9622
9623         * select.c (Qselect_coerce): New.
9624         * select.c (Vselection_coercion_alist): New.
9625         * select.c (syms_of_select): Declare.
9626         * select.c (get-selection-internal): Use it.
9627         Use the new select-coerce functionality.
9628
9629         * select.c (select_coerce): New.
9630         * select.h (select_coerce): Declare.
9631         New function to coerce one type of data into another.
9632
9633 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9634
9635         * callproc.c (Fcall_process_internal):
9636         (Fcall_process_internal):
9637         * process-unix.c (unix_create_process):
9638         Save and restore the value of errno, so that error messages are accurate.
9639
9640 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9641
9642         * elhash.c (print_hash_table):
9643         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9644         Prettify docstrings and indentation.
9645
9646 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9647
9648         * window.c (Fwindow_pixel_edges): Subtract frame border and
9649         gutter size.
9650
9651 2000-07-31  Andy Piper  <andy@xemacs.org>
9652
9653         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9654         will acknowledge the change.
9655
9656         * glyphs.h: declare tab_control_order_only_changed.
9657
9658         * glyphs-x.c (x_tab_control_redisplay): use
9659         tab_control_order_only_changed.
9660
9661         * glyphs-widget.c (tab_control_order_only_changed): new function.
9662
9663         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9664         tab_control_order_only_changed.
9665
9666         * gui.c (gui_item_equal_sans_selected): new function.
9667         (gui_item_equal): use it.
9668
9669         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9670         :properties in favor of :items..
9671
9672         * glyphs-widget.c (check_valid_item_list): rename from
9673         check_valid_item_list_1.
9674         (check_valid_item_list_1): renamed.
9675         (combo_box_validate): deprecate :properties in favor of :items.
9676         (widget_instantiate): ditto.
9677         (tab_control_update): ditto.
9678         (image_instantiator_combo_box): ditto.
9679         (image_instantiator_tree_view): ditto.
9680         (image_instantiator_tab_control): ditto.
9681         (layout_post_instantiate): remove dead code.
9682
9683         * print.c (debug_print_no_newline): only write to debugger if in
9684         WIN32_NATIVE.
9685
9686         * elhash.c (Fmake_hash_table): update doc string.
9687
9688         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9689         messages whilst in GC. This at least stops XEmacs crashing but has
9690         the potential for wierd behaviour.
9691
9692 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9693
9694         * config.h.in:
9695         Make existence of s&m files optional.
9696
9697         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9698         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9699         * s/gnu.h: Remove HAVE_GETLOADAVG.
9700         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9701         * s/sol2.h: Remove HAVE_GETLOADAVG.
9702         * lisp.h: Remove getloadavg() declaration.
9703         * fns.c:
9704         Include <sys/loadavg.h> if available.
9705         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9706         * config.h.in:  Group together getloadavg()-related macros.
9707         Use only configure-time tests to detect getloadavg().
9708
9709 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9710
9711         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9712
9713 2000-07-25  Andy Piper  <andy@xemacs.org>
9714
9715         * syswindows.h: add tchar.h for native builds.
9716
9717         * frame.c (syms_of_frame): remove set-glyph-image.
9718
9719         * general-slots.h: add Qset_glyph_image.
9720
9721         * glyphs-widget.c (layout_update): add domain arg to
9722         set-glyph-image.
9723         (syms_of_glyphs_widget): remove set-glyph-image.
9724
9725 2000-07-23  Ben Wing  <ben@xemacs.org>
9726
9727         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9728         Vpopup_frame_list.
9729
9730 2000-07-22  Andy Piper  <andy@xemacs.org>
9731
9732         * symsinit.h: add syms_of_win32().
9733
9734         * gui-msw.c (syms_of_gui_mswindows): remove
9735         Fmswindows_shell_execute.
9736         (Fmswindows_shell_execute): moved to win32.c.
9737
9738         * emacs.c (main_1): add syms_of_win32 ().
9739
9740         * win32.c (init_potentially_nonexistent_functions): rewrite in
9741         compiler-friendly terms.
9742         (Fmswindows_shell_execute): move here from gui-msw.c.
9743         (syms_of_win32): new.
9744
9745         * device-msw.c (Fmswindows_printer_list): clean up args to
9746         EnumPrinters.
9747         Don't include tchar under cygwin or mingw.
9748         (msprinter_default_printer): make cygwin-friendly.
9749
9750 2000-07-21  Andy Piper  <andy@xemacs.org>
9751
9752         * glyphs-widget.c (image_instantiator_tree_view): use tab
9753         control's update function.
9754         (layout_property): new function. Retrieve items.
9755
9756         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9757         function. Re-populate the tree view from the pending items.
9758
9759         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9760         is designated the parent if the domain is an image instance. This
9761         is needed so that dirtiness can be cascade up the hierarchy and
9762         thus for layout children to be redisplayed correctly.
9763         (allocate_image_instance): rename glyph -> parent.
9764
9765         * redisplay.h: change redisplay_output_layout signature.
9766
9767         * redisplay-msw.c (mswindows_output_display_block): use domain
9768         arg.
9769
9770         * redisplay-x.c (x_output_display_block): use domain arg.
9771
9772 2000-07-10  Andy Piper  <andy@xemacs.org>
9773
9774         * window.c (Fset_window_configuration): add comment.
9775
9776         * redisplay-output.c (compare_runes):
9777         (redisplay_output_subwindow): redisplay rather than update subwindow.
9778         (redisplay_output_layout): ditto.
9779
9780         * redisplay-msw.c (mswindows_frame_output_end):
9781         (mswindows_frame_output_end): make defer window pos optional.
9782
9783         * lisp.h: add Flast.
9784
9785         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9786         normalize method. Change update method to be for changed
9787         instantiators. Add redisplay method. Change signature of layout
9788         method.
9789         (struct Lisp_Image_Instance): add instantiator.
9790         (IMAGE_INSTANCE_INSTANTIATOR): new.
9791         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9792         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9793         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9794
9795         * glyphs.c:
9796         (find_instantiator_differences): new function.
9797         (Fset_instantiator_property): new convenience function.
9798         (check_image_instance_structure): strictly check for vector
9799         instantiators.
9800         (normalize_image_instantiator): make non-static.
9801         (instantiate_image_instantiator): pass on dest_mask and use new
9802         signatures for image_instance_layout and friends.
9803         (mark_image_instance): mark the instantiator. Mark the subwindow
9804         face not the widget face.
9805         (image_instance_equal): add instantiator.
9806         (image_instance_hash): ditto.
9807         (allocate_image_instance): ditto.
9808         (Fset_image_instance_property): removed.
9809         (Fimage_instance_file_name): ditto.
9810         (Fcolorize_image_instance): ditto.
9811         (image_instance_layout): add offsets to be set.
9812         (update_image_instance): new function. update an image instance
9813         from its changed instantiator.
9814         (inherit_normalize): add dest_mask.
9815         (xbm_normalize): ditto.
9816         (xface_normalize): ditto.
9817         (xpm_normalize): ditto.
9818         (text_update): set_property -> update.
9819         (image_instantiate): use the glyph identity as a hash key, not the
9820         instantiator.
9821         (glyph_width): use new image_instance_layout signature.
9822         (glyph_ascent): ditto.
9823         (glyph_descent): ditto.
9824         (glyph_height): ditto.
9825         (glyph_query_geometry): ressurrect.
9826         (glyph_layout): ditto.
9827         (redisplay_subwindow): update -> redisplay.
9828         (syms_of_glyphs): add Fset_instantiator_property.
9829         (image_instantiator_format_create): set_property -> update.
9830
9831         * glyphs-x.c:
9832         (autodetect_normalize): add dest_maks to signature.
9833         (x_redisplay_subwindow): update -> redisplay.
9834         (x_redisplay_widget): ditto.
9835         (x_button_redisplay): ditto.
9836         (x_progress_gauge_redisplay): ditto.
9837         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9838         stacking order.
9839         (console_type_create_glyphs_x): update -> redisplay.
9840         (image_instantiator_format_create_glyphs_x): ditto.
9841
9842         * glyphs-widget.c:
9843         (check_valid_instantiator): disallow glyphs in the instantiator,
9844         they must now be vectors.
9845         (check_valid_instantiator_list): ditto.
9846         (glyph_instantiator_to_glyph): use internal symbol rather than
9847         intern.
9848         (widget_update): renamed from widget_set_property. Call cascaded
9849         update methods.
9850         (redisplay_widget): renamed from update_widget.
9851         (widget_layout): image_instance_layout now takes position as well
9852         as size.
9853         (widget_normalize): ditto.
9854         (widget_instantiate): ditto.
9855         (tab_control_query_geometry) ditto.:
9856         (tab_control_update): renamed from tab_control_set_property.
9857         (progress_gauge_update): set_property -> update.
9858         (layout_normalize): rewrite so that child instantiators are
9859         normalized also.
9860         (layout_update): new function. Create glyphs from the normalized
9861         children and cope with any other layout keywords. We do not
9862         instantiate children here that will be take care of by
9863         redisplay_output_layout.
9864         (layout_instantiate): call layout_update and not much else.
9865         (layout_post_instantiate): not sure whether this is needed
9866         anymore.
9867         (layout_query_geometry): query glyph geometry rather than
9868         image_instance geometry.
9869         (layout_layout): set offsets from pass in parameters. Use glyph
9870         geometry and layout functions rather than image instance ones.
9871         (native_layout_layout): ditto.
9872         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9873         (image_instantiator_widget): set_property -> update.
9874         (image_instantiator_buttons): ditto.
9875         (image_instantiator_progress_guage): ditto.
9876         (image_instantiator_tab_control): ditto.
9877         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9878         (image_instantiator_layout): add update method.
9879
9880         * glyphs-msw.c (bmp_normalize):
9881         (mswindows_resource_normalize): add dest_mask so that it can be
9882         proprogated by layout_normalize.
9883         (begin_defer_window_pos): make optional because it may not be the
9884         right thing to do and it introduces differences with X.
9885         (mswindows_unmap_subwindow): ditto.
9886         (mswindows_map_subwindow): ditto.
9887         (mswindows_redisplay_subwindow): renamed from
9888         mswindows_update_subwindow.
9889         (mswindows_redisplay_widget): ditto.
9890         (mswindows_button_redisplay): renamed from
9891         mswindows_button_update. Update is now what the instantiation
9892         function does for a changed instantiator.
9893         (mswindows_progress_gauge_instantiate): set the progress value
9894         here if appropriate.
9895         (mswindows_tab_control_redisplay): cope with re-ordering of the
9896         members of the tab widget by simply selecting the new top
9897         widget. This makes things appear ok if you click on a tab.
9898         (mswindows_combo_box_instantiate): image_instance_layout now takes
9899         position as well as size.
9900         (mswindows_progress_gauge_redisplay): renamed from
9901         mswindows_progress_gauge_update.
9902         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9903         (image_instantiator_format_create_glyphs_mswindows): ditto.
9904
9905         * glyphs-eimage.c (jpeg_normalize):
9906         (gif_normalize):
9907         (png_normalize):
9908         (tiff_normalize): add dest_mask so that it can be proprogated by
9909         layout_normalize.
9910
9911         * elhash.c:
9912         (print_hash_table):
9913         (hash_table_weakness_validate):
9914         (decode_hash_table_weakness):
9915         (Fhash_table_weakness):
9916         (Fhash_table_type):
9917         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9918
9919         * console.h (struct console_methods): move update_* to
9920         redisplay_*.
9921
9922 2000-07-20  Ben Wing  <ben@xemacs.org>
9923
9924         * *.[ch] (XSETOBJ): remove unused middle argument.
9925         lisp-disunion.h: correct wrap_object() to one argument.
9926
9927 2000-07-15  Ben Wing  <ben@xemacs.org>
9928
9929         * s/cygwin32.h:
9930         * s/cygwin32.h (CYGWIN_CONV_PATH):
9931         Add missing logb prototype for v1.1.
9932         Use post-b20 names and alias to pre-b20 names when pre-b20.
9933
9934         * s/windowsnt.h: [5].
9935
9936 2000-07-15  Ben Wing  <ben@xemacs.org>
9937
9938         * Makefile.in.in (x_objs):
9939         * Makefile.in.in (sheap_objs):
9940         * Makefile.in.in (objs):
9941         added win32.o, cosmetic cleanups.
9942
9943         * alloc.c (Fmake_byte_code):
9944         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9945         etc. macros which declare their own args now.
9946
9947         * alloc.c (syms_of_alloc):
9948         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9949
9950         * buffer.c:
9951         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9952
9953         * buffer.c (Fget_file_buffer):
9954         Fixed GCPRO problem.
9955
9956         * buffer.c (get_truename_buffer):
9957         Fixed comment about GC checking.
9958
9959         * buffer.c (syms_of_buffer):
9960         Undeclared those dedicated frame funs.
9961         [2].
9962
9963         * buffer.h:
9964         Define convenience macros for internal/external conversions.
9965         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9966         and Qenvironment_variable_encoding for cleaner code.
9967
9968         * bufslots.h:
9969         Remove dedicated-frame; in lisp.
9970
9971         * bytecode.c (funcall_compiled_function):
9972         [1].
9973
9974         * bytecode.c (syms_of_bytecode):
9975         [2].
9976
9977         * console-msw.c:
9978         * console-msw.c (mswindows_show_console): Rewrote.
9979
9980         * console-msw.c (Fmswindows_debugging_output): New.
9981         Sends to OutputDebugString (special MSWin debugger interface).
9982
9983         * console-msw.c (Fmswindows_message_box):
9984         Fixed stupid bugs so it works when called from kill-emacs.
9985
9986         * console-msw.c (syms_of_console_mswindows):
9987         Declare Fmswindows_debugging_output.
9988
9989         * console-msw.h:
9990         New MSWin prototypes.
9991
9992         * console-msw.h (struct mswindows_frame):
9993         New entry last-click-mods for improved button-modifier support.
9994
9995         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9996         New struct entry `popup' with corresponding accessor.
9997
9998         * console-x.c:
9999         * console-x.c (split_up_display_spec):
10000         * console-x.c (get_display_arg_connection):
10001         * console-x.c (x_semi_canonicalize_console_connection):
10002         * console-x.c (x_canonicalize_device_connection):
10003         [[[6]]]: Change char to more specific type.
10004         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10005
10006         * console-x.c (x_semi_canonicalize_console_connection):
10007         * console-x.c (x_canonicalize_device_connection):
10008         [[[9]]]: Fix up error signalling to use new structured error system.
10009
10010         * console-x.h:
10011         [[[4]]]: Define codesys aliases:
10012         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10013         Qx_color_name_encoding, Qx_display_name_encoding.
10014
10015         * console.h (struct console_methods):
10016         New method make_dialog_box_internal supersedes older
10017         popup_dialog_box method.
10018
10019         * data.c:
10020         Define many new errors, part of new structured errors.
10021
10022         * data.c (init_errors_once_early):
10023         * data.c (syms_of_data):
10024         [2].
10025
10026         * device-msw.c (mswindows_init_device):
10027         [[[5]]]: Cleanup to support NT 3.51.
10028
10029         * device-msw.c (decode_devmode): Cleanup.
10030
10031         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10032         * device-msw.c (mswindows_handle_print_dialog_box):
10033         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10034         * device-msw.c (syms_of_device_mswindows):
10035         Delete the dialog box primitives recently introduced by Kirill and
10036         instead interface to general dialog box interface.
10037
10038         * device-x.c:
10039         * device-x.c (compute_x_app_name):
10040         * device-x.c (x_init_device):
10041         * device-x.c (Fx_valid_keysym_name_p):
10042         * device-x.c (Fx_set_font_path):
10043         [6].
10044         [7].
10045
10046         * device.h (wrap_device): New.
10047         First of its kind; meant to replace XSETDEVICE.
10048
10049         * dialog-msw.c: Many file-dialog symbols.
10050
10051         * dialog-msw.c (mswindows_register_popup_frame): New.
10052         * dialog-msw.c (mswindows_is_dialog_msg): New.
10053         For supporting kbd traversal in dialog boxes.
10054
10055         * dialog-msw.c (dialog_proc):
10056         Support hitting ESC in dialogs.
10057
10058         * dialog-msw.c (struct):
10059         Common dialog box errors.
10060
10061         * dialog-msw.c (handle_file_dialog_box): New.
10062         Add file dialog code.
10063
10064         * dialog-msw.c (handle_question_dialog_box):
10065         Redo existing code to support new question dialog syntax.
10066
10067         * dialog-msw.c (console_type_create_dialog_mswindows):
10068         We support new dialog console method.
10069
10070         * dialog-msw.c (syms_of_dialog_mswindows):
10071         * dialog-msw.c (vars_of_dialog_mswindows):
10072         New file dialog symbols, vars.
10073
10074         * dialog-x.c:
10075         * dialog-x.c (maybe_run_dbox_text_callback):
10076         * dialog-x.c (dbox_descriptor_to_widget_value):
10077         * dialog-x.c (x_make_dialog_box_internal):
10078         * dialog-x.c (console_type_create_dialog_x):
10079         Mule-ize entire file.
10080         Redo to support question dialog syntax.
10081         [6].
10082
10083         * dialog.c:
10084         * dialog.c (Fmake_dialog_box_internal):
10085         * dialog.c (syms_of_dialog):
10086         Kill old popup-dialog-box, replace with new primitive.
10087         Just call device method or signal error.
10088
10089         * eldap.c (Fldap_open):
10090         * eldap.c (Fldap_search_basic):
10091         * eldap.c (Fldap_add):
10092         * eldap.c (Fldap_modify):
10093         [1].
10094         [7].
10095
10096         * emacs.c:
10097         * emacs.c (make_arg_list_1):
10098         * emacs.c (make_arg_list):
10099         Mule-ize call to dll_init().
10100         [6].
10101         [8].
10102
10103         * emacs.c (make_argc_argv):
10104         * emacs.c (free_argc_argv):
10105         * emacs.c (init_cmdargs):
10106         * emacs.c (main_1):
10107         * emacs.c (Fkill_emacs):
10108         * emacs.c (Fdump_emacs):
10109         Update comments about what can be used in syms_* etc.
10110         Call init_win32() when necessary.
10111         Fix up MS Win dialog box in kill-buffer to actually work right.
10112         [7].
10113
10114         * eval.c:
10115         * eval.c (For):
10116         * eval.c (Fand):
10117         * eval.c (Fprogn):
10118         * eval.c (Fprog1):
10119         * eval.c (Fprog2):
10120         * eval.c (FletX):
10121         * eval.c (Flet):
10122         * eval.c (condition_case_3):
10123         * eval.c (Feval):
10124         * eval.c (function_argcount):
10125         * eval.c (funcall_lambda):
10126         [1].
10127
10128         * eval.c (type_error): New.
10129         * eval.c (maybe_type_error): New.
10130         * eval.c (continuable_type_error): New.
10131         * eval.c (maybe_continuable_type_error): New.
10132         * eval.c (type_error_with_frob): New.
10133         * eval.c (maybe_type_error_with_frob): New.
10134         * eval.c (continuable_type_error_with_frob): New.
10135         * eval.c (maybe_continuable_type_error_with_frob): New.
10136         New functions for use with structured errors.
10137
10138         * event-Xt.c:
10139         * event-Xt.c (x_event_to_emacs_event):
10140         Buttons are now modifiers too.
10141
10142         * event-Xt.c (emacs_Xt_current_event_timestamp):
10143         Implement new event method.
10144         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10145
10146         * event-msw.c:
10147         * event-msw.c (ntpipe_shove_writer): [5].
10148         * event-msw.c (mswindows_enqueue_mouse_button_event):
10149         * event-msw.c (mswindows_drain_windows_queue):
10150         * event-msw.c (mswindows_wnd_proc): [7].
10151         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10152         * event-msw.c (mswindows_modifier_state):
10153         Throughout: support new button modifiers.
10154
10155         * event-msw.c (emacs_mswindows_current_event_timestamp):
10156         Implement new event method.
10157         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10158
10159         * event-stream.c:
10160         * event-stream.c (event_stream_current_event_timestamp): New.
10161         * event-stream.c (maybe_kbd_translate): New functionality.
10162         * event-stream.c (vars_of_event_stream):
10163         Document new kbd-translate-table functionality.
10164
10165         * event-stream.c (Fcurrent_event_timestamp): New.
10166         New primitive for use in fabricated events.
10167         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10168
10169         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10170
10171         * events.c:
10172         * events.c (Fmake_event):
10173         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10174         [1].
10175         [9].
10176
10177         * events.c (format_event_object): fix gcc warnings.
10178
10179         * events.c (Fevent_timestamp): Document new primitives.
10180
10181         * events.c (TIMESTAMP_HALFSPACE): New.
10182
10183         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10184         comparing timestamps correctly (half-space algorithm).
10185
10186         * events.c (Fevent_modifier_bits): Doc fix.
10187
10188         * events.c (Fevent_modifiers): Major doc addition.
10189         * events.c (event_x_y_pixel_internal): Typo fix.
10190         * events.c (syms_of_events): Declare new primitives.
10191
10192         * events.h:
10193         Update long comment for button modifiers, timestamps.
10194
10195         * events.h (struct event_stream):
10196         New current_event_timestamp method.
10197
10198         * extents.c:
10199         * extents.c (extent_in_region_p):
10200         * extents.c (decode_extent):
10201         * extents.c (Fset_extent_parent):
10202         * extents.c (decode_map_extents_flags):
10203         Fix gcc warnings.
10204         [9].
10205
10206         * extents.c (struct extent_at_arg):
10207         * extents.c (decode_extent_at_flag):
10208         * extents.c (extent_at_mapper):
10209         * extents.c (extent_at_bytind):
10210         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10211         * extents.c (Fextents_at): New primitive. [9].
10212         * extents.c (symbol_to_glyph_layout): [9].
10213         Support new primitive `extents-at'.
10214
10215
10216         * extents.c (get_text_property_bytind):
10217         extent_at_bytind has another arg.
10218         [9].
10219
10220         * extents.c (syms_of_extents): New primitive.
10221
10222         * file-coding.c (Fmake_coding_system): [1].
10223         * file-coding.c (subsidiary_coding_system): fix gcc warning
10224         * file-coding.c (syms_of_file_coding): [2].
10225
10226         * fileio.c (Fexpand_file_name):
10227         * fileio.c (Fsysnetunam):
10228         * fileio.c (Ffile_exists_p):
10229         * fileio.c (Ffile_executable_p):
10230         * fileio.c (Fverify_visited_file_modtime):
10231         Clean up GCPROing.
10232
10233         * fileio.c (syms_of_fileio): [2].
10234
10235         * filelock.c (lock_file_1):
10236         * filelock.c (current_lock_owner):
10237         * filelock.c (lock_if_free):
10238         * filelock.c (lock_file):
10239         * filelock.c (unlock_file):
10240         Clean up GCPROing.
10241
10242         * fns.c (concat): Fix gcc warning.
10243
10244         * fns.c (Fmember):
10245         * fns.c (Fold_member):
10246         * fns.c (Fmemq):
10247         * fns.c (Fold_memq):
10248         * fns.c (memq_no_quit):
10249         * fns.c (Fassoc):
10250         * fns.c (Fold_assoc):
10251         * fns.c (Fassq):
10252         * fns.c (Fold_assq):
10253         * fns.c (assq_no_quit):
10254         * fns.c (Frassoc):
10255         * fns.c (Fold_rassoc):
10256         * fns.c (Frassq):
10257         * fns.c (Fold_rassq):
10258         * fns.c (rassq_no_quit):
10259         * fns.c (Fdelete):
10260         * fns.c (Fold_delete):
10261         * fns.c (Fdelq):
10262         * fns.c (Fold_delq):
10263         * fns.c (delq_no_quit):
10264         * fns.c (Fremassoc):
10265         * fns.c (Fremassq):
10266         * fns.c (remassq_no_quit):
10267         * fns.c (Fremrassoc):
10268         * fns.c (Fremrassq):
10269         * fns.c (remrassq_no_quit):
10270         * fns.c (Freverse):
10271         * fns.c (mapcar1):
10272         [1].
10273
10274         * frame-msw.c (mswindows_init_frame_1):
10275         * frame-msw.c (mswindows_delete_frame):
10276         Register popups with dialog code so keyboard traversing works.
10277
10278         * frame-tty.c (tty_raise_frame_no_select): [1].
10279
10280         * frame-x.c:
10281         * frame-x.c (x_set_frame_text_value):
10282         * frame-x.c (x_set_frame_properties):
10283         * frame-x.c (x_create_widgets):
10284         [7].
10285
10286         * frame.c:
10287         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10288
10289         * frame.h (wrap_frame): New.
10290         Macro like wrap_device.
10291
10292         * general.c:
10293         * general.c (SYMBOL):
10294         * general.c (syms_of_general):
10295         Major reorg.  This is now just a wrapper and symbols themselves
10296         are listed in general-slots.h.
10297
10298         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10299         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10300
10301         * glyphs-msw.c (mswindows_native_layout_instantiate):
10302         Add DS_CONTROL so keyboard traversal will work.
10303
10304         * glyphs-widget.c:
10305         * glyphs-widget.c (syms_of_glyphs_widget):
10306         Move some symbols to general-slots.h.
10307
10308         * glyphs-x.c:
10309         * glyphs-x.c (xbm_instantiate_1):
10310         * glyphs-x.c (x_xbm_instantiate):
10311         * glyphs-x.c (x_xface_instantiate):
10312         * glyphs-x.c (autodetect_instantiate):
10313         * glyphs-x.c (cursor_font_instantiate):
10314         * glyphs-x.c (x_update_widget):
10315         * glyphs-x.c (x_widget_instantiate):
10316         * glyphs.c (bitmap_to_lisp_data):
10317         * glyphs.c (pixmap_to_lisp_data):
10318         [7].
10319
10320         * glyphs.c (syms_of_glyphs):
10321         [2].
10322
10323         * gui-x.c:
10324         * gui-x.c (print_widget_value):
10325         * gui-x.c (menu_separator_style_and_to_external):
10326         * gui-x.c (add_accel_and_to_external):
10327         * gui-x.c (button_item_to_widget_value):
10328         * gui-x.c (gui_items_to_widget_values_1):
10329         * gui-x.c (gui_items_to_widget_values):
10330         * gui-x.c (syms_of_gui_x):
10331         * gui-x.c (vars_of_gui_x):
10332         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10333         [9].
10334
10335         * gui-x.h:
10336         Muleize, prototype changes matching gui-x.c.
10337
10338         * gui.c:
10339         * gui.c (separator_string_p):
10340         * gui.c (gui_item_add_keyval_pair):
10341         * gui.c (make_gui_item_from_keywords_internal):
10342         * gui.c (signal_too_long_error):
10343         * gui.c (parse_gui_item_tree_item):
10344         * gui.c (syms_of_gui):
10345         * gui.c (vars_of_gui):
10346         * gui.h:
10347         menu-no-selection-hook moved here (used by MSWin).
10348         Move some symbols to general-slots.h.
10349         [6].
10350         [9].
10351
10352         * insdel.c (get_buffer_pos_char):
10353         * insdel.c (get_buffer_range_char):
10354         Add GC comments.
10355
10356         * keymap.c (keymap_lookup_directly):
10357         * keymap.c (keymap_store):
10358         * keymap.c (ensure_meta_prefix_char_keymapp):
10359         * keymap.c (describe_map):
10360         * keymap.h:
10361         Support new button modifiers.
10362
10363         * lisp-disunion.h (wrap_object):
10364         * lisp-disunion.h (XSETOBJ):
10365         Rename make_obj to wrap_object.
10366
10367         * lisp-union.h:
10368         * lisp-union.h (make_int):
10369         * lisp-union.h (make_char):
10370         Support wrap_object.
10371
10372         * lisp.h:
10373         * lisp.h (LIST_LOOP):
10374         * lisp.h (EXTERNAL_LIST_LOOP):
10375         * lisp.h (LIST_LOOP_2):
10376         * lisp.h (EXTERNAL_LIST_LOOP_1):
10377         * lisp.h (EXTERNAL_LIST_LOOP_2):
10378         * lisp.h (EXTERNAL_LIST_LOOP_3):
10379         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10380         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10381         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10382         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10383         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10384         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10385         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10386         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10387         * lisp.h (struct Lisp_Symbol):
10388         * lisp.h (maybe_continuable_error_with_frob):
10389         Fix up section comments.
10390         Add new types for char to indicate usage.
10391         Delete symbols auto-generated from general-slots.h.
10392         Add prototypes for structured error functions.
10393         Add long comments describing looping macros and change interface
10394         so that lvalues are automatically declared.
10395         Add NO_DECLARE macro in case callers want to declare lvalues
10396         themselves.
10397
10398         * lread.c (read_syntax_error):
10399         * lread.c (continuable_read_syntax_error):
10400         * lread.c (read_structure):
10401         * lread.c (sequence_reader):
10402         * lread.c (read_list_conser):
10403         * lread.c (read_compiled_function):
10404         Rename syntax_error and continuable_syntax_error to avoid clash
10405         with same-named structured error functions.
10406
10407         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10408         * menubar-msw.c (populate_menu_add_item):
10409         * menubar-msw.c (populate_or_checksum_helper):
10410         [5].
10411         [9].
10412
10413         * menubar-x.c:
10414         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10415         Mule-ize whole file.
10416
10417         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10418
10419         * mule-charset.c (Fmake_charset):
10420         * mule-wnnfns.c (Fwnn_set_param):
10421         [1].
10422
10423         * ntproc.c (create_child):
10424         * ntproc.c (Fwin32_set_current_locale):
10425         Add comments portending doom.
10426
10427         * objects-msw.c:
10428         * objects-msw.c (old_font_enum_callback_2):
10429         * objects-msw.c (font_enum_callback_1):
10430         * objects-msw.c (mswindows_enumerate_fonts):
10431         [5].
10432
10433         * objects-x.c:
10434         * objects-x.c (allocate_nearest_color):
10435         * objects-x.c (x_parse_nearest_color):
10436         * objects-x.c (x_initialize_color_instance):
10437         * objects-x.c (x_print_color_instance):
10438         * objects-x.c (x_finalize_color_instance):
10439         * objects-x.c (x_valid_color_name_p):
10440         * objects-x.c (x_initialize_font_instance):
10441         * objects-x.c (x_print_font_instance):
10442         * objects-x.c (valid_x_font_name_p):
10443         * objects-x.c (truename_via_FONT_prop):
10444         * objects-x.c (truename_via_random_props):
10445         * objects-x.c (truename_via_XListFonts):
10446         * objects-x.c (x_font_truename):
10447         * objects-x.c (x_font_instance_truename):
10448         * objects-x.c (x_font_instance_properties):
10449         * objects-x.c (x_list_fonts):
10450         * objects-x.c (x_find_charset_font):
10451         Mule-ize entire file.
10452         [7].
10453
10454         * objects-x.h:
10455         Mule-verify.
10456
10457         * print.c:
10458         * print.c (std_handle_out_external):
10459         * print.c (debug_print_no_newline):
10460         * print.c (syms_of_print):
10461         Output to all debugger kinds in debug-print.
10462         Fix console-output code under MSWin to actually work.
10463
10464         * process-nt.c (send_signal):
10465         * process-nt.c (nt_create_process):
10466         Use newer Unicode macros.
10467
10468         * process-unix.c (unix_create_process):
10469         * process-unix.c (unix_canonicalize_host_name):
10470         * process-unix.c (unix_open_network_stream):
10471         [7].
10472
10473         * scrollbar-x.c:
10474         Mule-verify.
10475
10476         * search.c (syms_of_search):
10477         [2].
10478
10479         * select-msw.c (mswindows_destroy_selection):
10480         Use LIST_LOOP_2.
10481
10482         * select-x.c (symbol_to_x_atom):
10483         [7].
10484
10485         * select.c (syms_of_select):
10486         [2].
10487
10488         * sound.c (Fplay_sound_file):
10489         [7].
10490
10491         * specifier.c:
10492         * specifier.c (decode_specifier_type):
10493         * specifier.c (Fvalid_specifier_locale_type_p):
10494         * specifier.c (check_valid_locale_or_locale_type):
10495         * specifier.c (decode_locale):
10496         * specifier.c (decode_locale_type):
10497         * specifier.c (decode_locale_list):
10498         * specifier.c (check_valid_domain):
10499         * specifier.c (decode_specifier_tag_set):
10500         * specifier.c (Fcanonicalize_tag_set):
10501         * specifier.c (Fdefine_specifier_tag):
10502         * specifier.c (Fspecifier_tag_predicate):
10503         * specifier.c (check_valid_inst_list):
10504         * specifier.c (check_valid_spec_list):
10505         * specifier.c (decode_how_to_add_specification):
10506         * specifier.c (check_modifiable_specifier):
10507         * specifier.c (specifier_add_spec):
10508         * specifier.c (boolean_validate):
10509         * specifier.c (display_table_validate):
10510         [9].
10511
10512         * specifier.c (syms_of_specifier):
10513         Move some symbols to general-slots.h.
10514         [2].
10515
10516         * symbols.c:
10517         * symbols.c (Fmapatoms):
10518         * symbols.c (Fapropos_internal):
10519         Add GCPROs.
10520
10521         * symbols.c (set_default_buffer_slot_variable):
10522         * symbols.c (set_default_console_slot_variable):
10523         [1].
10524
10525         * symbols.c (defsymbol_massage_name_1):
10526         * symbols.c (defkeyword_massage_name):
10527         * symbols.c (deferror_1):
10528         * symbols.c (deferror):
10529         * symbols.c (deferror_massage_name_and_message):
10530         * symeval.h:
10531         * symeval.h (DEFSYMBOL):
10532         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10533
10534         * symbols.c (syms_of_symbols):
10535         [2].
10536
10537         * symsinit.h:
10538         * symsinit.h (init_win32): New.
10539         Also new is syms_of_dialog_mswindows.
10540
10541         * syswindows.h:
10542         Add new Unicode macros, missing Cygwin wide-char functions,
10543         convenience conversion macros for Qmswindows_tstr, macros for
10544         encapsulating required MSWin <-> Cygwin filename conversions,
10545         prototype for dynamically-extracted (not in NT 3.51) functions.
10546
10547         * toolbar-x.c:
10548         Mule-verify.
10549
10550         * tooltalk.c (Fadd_tooltalk_message_arg):
10551         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10552         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10553         [7].
10554
10555         * tooltalk.c (syms_of_tooltalk):
10556         [2].
10557
10558         * unexnt.c:
10559         * unexnt.c (unexec):
10560         Fix up headers, declaration of unexec() to be more standard.
10561
10562 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10563
10564         * offix.h: Revert change to guard macros - they're used in offix.c!
10565
10566 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10567
10568         * lisp.h: Defsubred Fdelete.
10569
10570         * console-msw.h:  (msprinter_default_printer): Added.
10571
10572         * console-msw.c (msprinter_canonicalize_console_connection):
10573         (msprinter_canonicalize_device_connection): Added.
10574
10575         * device-msw.c (msprinter_default_printer):
10576         (Fmswingows_get_default_printer):
10577         (signal_enum_priner_error):
10578         (Fmswingows_printer_list): Added.
10579
10580 2000-07-19  Martin Buchholz <martin@xemacs.org>
10581
10582         * XEmacs 21.2.35 is released.
10583
10584 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10585
10586         * select-x.c (x_handle_selection_request):
10587         Text selected in xemacs and pasted into xterm failed to appear.
10588         Spelling fixes and cosmetic changes.
10589
10590 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10591
10592         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10593         XEmacs frame (fix for doubling chars in dialog boxes).
10594
10595 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10596
10597         * select.c (select_convert_in, select_convert_out):
10598         Don't call intern() every time.
10599
10600         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10601         * select.c (vars_of_select): Initialise them.
10602
10603 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10604
10605         * select.c (selection-coercible-types): New.
10606
10607         * select.c (own-selection-internal):
10608         * select.c (get-selection-internal):
10609         MULE bug fix - these should default to COMPOUND_TEXT and not
10610         STRING for MULE. I think.
10611
10612         * select.c (select_convert_out): Use selection-coercible-types
10613         to find types that we can attempt to perform coercions on.
10614
10615 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10616
10617         * mule-wnnfns.c:
10618         * mule-canna.c:
10619         Add coding: cookie to identify encoding.
10620
10621         * mule-canna.c (CANNA_mode_keys): make static.
10622         Use proper prototypes, even for functions of no arguments.
10623         Remove external prototype for Fding().
10624
10625         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10626
10627         * select.c (syms_of_select): Add missing DEFSUBR.
10628
10629 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10630
10631         * select.c (get_selection_internal, own_selection_internal):
10632         Make the type default to STRING, rather than placing a nil type
10633         into Vselection_alist.
10634
10635 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10636
10637         * gpmevent.c (tty_selection_exists_p):
10638         * gpmevent.c (tty_own_selection):
10639         Updated parameter lists.
10640
10641 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10642
10643         * select.h (selection-alist): Removed declaration.
10644
10645         * select.h (get_local_selection):
10646         * select.c (get_local_selection):
10647         Made static.
10648
10649         * select.h (convert_selection): Removed declaration.
10650         * select.c (convert_selection): Removed.
10651         This function belongs in Lisp.
10652
10653         * select.h (select_convert_in): Declare.
10654         * select.h (select_convert_out): Declare.
10655         * select.c (select_convert_in): New.
10656         * select.c (select_convert_out): New.
10657         New conversion functions for other files to call.
10658
10659         * select.h (select_notify_buffer_kill): Declare.
10660         * select.c (select_notify_buffer_kill): New.
10661         New functions that get called from kill-buffer.
10662
10663         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10664         X-specific lisp code.
10665
10666         * select.h: Declare some of the lisp-visible functions for
10667         external use.
10668
10669         * select.c (clean_local_selection_data): Removed. This was
10670         a disgusting function, and previously should have been in
10671         select-x.c in any case. The functionality is now provided
10672         in select-convert-from-integer (select.el).
10673
10674         * select.c (available-selection-types): Fixed stupidity where
10675         INTEGER and ATOM got added twice. Also add STRING when we see an
10676         extent.
10677
10678         * select.c (get-selection-internal): Removed symbol stripping. No
10679         longer causes conversion when data comes from the internal cache.
10680
10681         * select.c (syms_of_select): Added new functions.
10682
10683         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10684         error checking - previously this called abort!
10685
10686         * select-x.c (x_own_selection): Changed comment.
10687
10688         * select-x.c (x_handle_selection_request): Use select_convert_out.
10689         Don't mess with selection-alist; it's an internal variable of select.c.
10690
10691         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10692
10693         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10694         rather than messing with selection-alist.
10695
10696         * select-msw.c (mswindows_get_foreign_selection):
10697         Use TO_INTERNAL_FORMAT rather than hacking.
10698
10699 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10700
10701         * process-unix.c (unix_open_multicast_group):
10702         (unix_open_multicast_group): Remove useless casts.
10703
10704 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10705
10706         * sound.c (Fplay_sound): Fix `unused variable' warning.
10707
10708         * emacs.c (main): Use correct type for _environ on SCO5.
10709
10710 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10711
10712         * console.h (own_selection_method):
10713         * console.h (selection_exists_p_method):
10714         * console.h (available_selection_types_method): New.
10715         * console.h (register_selection_data_type_method): New.
10716         * console.h (selection_data_type_name): New.
10717
10718         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10719         function & alist to track GlobalAlloc()'d handles that need
10720         releasing when the clipboard data gets replaced or emptied.
10721
10722         * event-msw.c (mswindows_wnd_proc): Call it.
10723
10724         * lisp.h, general.c (Qappend): New symbol representing a
10725         `how-to-add' mode.
10726
10727         * select.c (own-selection-internal):
10728         * select.c (selection-exists-p):
10729         * select.c (available-selection-types): New.
10730         * select.c (register-selection-data-type): New.
10731         * select.c (selection-data-type-name): New.  New functions to deal
10732         with device-specific selection data formats.
10733         * select.c (selection-converter-out-alist): Renamed.
10734         * select.c (selection-converter-in-alist): New.
10735         * select.c (selection-appender-alist): New.  Added new alists.
10736         * select.c (syms_of_select, vars_of_select): Added new symbols &
10737         variables.
10738         * select.c (get_local_selection): Split.
10739         * select.c: Removed spurious type checking - selections may now be
10740         of any type, not just strings.
10741         * select.c (own-selection-internal):
10742
10743         * select.h, select.c (convert_selection): New. Created
10744         convert_selection() function based on get_local_selection().
10745         * select.h, select.c (QCF_*): New symbols representing mswindows
10746         clipboard formats.
10747         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10748         symbols representing `how-to-add' modes.
10749
10750         * select-msw.c (x_sym_p): New.
10751         * select-msw.c (symbol_to_ms_cf): New.
10752         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10753         symbols & clipboard formats. Can also handle string names.
10754         * select-msw.c (mswindows_own_selection):
10755         * select-msw.c (mswindows_selection_exists_p):
10756         Added `data-type' parameter. Use it.
10757         * select-msw.c (mswindows_available_selection_types): New.
10758         * select-msw.c (mswindows_register_selection_data_type): New.
10759         * select-msw.c (mswindows_selection_data_type_name): New.
10760         * select-msw.c (mswindows_own_selection):
10761         * select-msw.c (mswindows_get_foreign_selection):
10762         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10763         * select-msw.c (console_create_select_mswindows): Added new methods.
10764         * select-msw.c (mswindows_destroy_selection): New.
10765         * select-msw.c (Vhandle_alist): New list.
10766         * select-msw.c (mswindows_own_selection):
10767
10768         * select-x.c (x_own_selection):
10769         * select-x.c (x_selection_exists_p):
10770         * select-x.c: Added some comments about maybe using new
10771         functionality.
10772         * select-x.c (x_own_selection):
10773
10774         * specifier.c: Remove definition of Qappend (now in general.c)
10775         * specifier.c (syms_of_specifier): Remove Qappend.
10776
10777 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10778
10779         * config.h.in: Add socklen_t.
10780
10781         * s/decosf4-0.h: No special compiler flags needed or desired.
10782         In particular, undefine _BSD for DEC OSF 4.0.
10783
10784 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10785
10786         * redisplay-msw.c (msprinter_frame_output_end): Added.
10787         (console_type_create_redisplay_mswindows): Referred the above.
10788
10789         * frame.c (setup_frame_without_minibuffer): Do not create a
10790         default minibuffer frame on a printer device.
10791
10792         * frame-msw.c (apply_dc_geometry): Added.
10793         (msprinter_start_page):
10794         (msprinter_init_frame_3):
10795         (msprinter_eject_page): Use it.
10796
10797         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10798         and removed residual duplex and orientation properties.
10799
10800 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10801
10802         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10803
10804         * unexalpha.c: Remove system prototypes from C sources!
10805
10806 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10807
10808         * eval.c: Remove references to M-x edit-options in DEFUNs for
10809         `defvar' and `defconst'.
10810
10811 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10812
10813         * config.h.in: Remove SMART_INCLUDE hackery.
10814
10815         PostgreSQL hacking:
10816         * config.h.in: Don't use SMART_INCLUDE.
10817
10818         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10819         * inline.c: Simply #include "postgresql.h"
10820         * postgresql.c:
10821         - Don't use SMART_INCLUDE
10822         - Use simply "const".
10823         - Use standard doc string conventions.
10824         - Use correct type for result of PQstatus.
10825
10826 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10827
10828         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10829
10830         C++ compilation changes.
10831         * config.h.in (EXTERN_C): Define.
10832         * config.h.in (not): This is also a C++ keyword.
10833         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10834         * cm.c: Use EXTERN_C.
10835         * redisplay-tty.c: Use EXTERN_C.
10836         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10837
10838 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10839
10840         * general.c: Remove duplicate definition for Qfunction.
10841
10842 2000-07-08  Ben Wing  <ben@xemacs.org>
10843
10844         * device-msw.c (msprinter_init_device):
10845         * device-msw.c (sync_printer_with_devmode):
10846         * device-msw.c (handle_devmode_changes):
10847         * device-msw.c (print_dialog_worker):
10848         * device-msw.c (Fmsprinter_apply_settings):
10849         * device-msw.c (hash_devmode):
10850         * device-msw.c (Fmsprinter_settings_despecialize):
10851         use Qmswindows_tstr, not Qctext.
10852
10853         * vm-limit.c (check_memory_limits):
10854         avoid infinite loop printing warning messages.
10855
10856 2000-07-05  Craig Lanning  <lanning@scra.org>
10857
10858         * Makefile.in.in: Add support for including the Windows resources
10859         when building with the cygwin and mingw targets.
10860
10861         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10862         not set or not correct.
10863         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10864         (init_initial_directory): Don't try to use $PWD on the
10865         WIN32_NATIVE target.
10866
10867         * s\cygwin32.h:
10868         [[Add -mwindows to eliminate console window.]] not required --ben
10869         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10870         (MAIL_USE_POP): removed; now handled by configure.
10871
10872         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10873         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10874         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10875         (MAIL_USE_POP): removed; now handled by configure.
10876         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10877         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10878         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10879         constant string.
10880         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10881         up from <winsock.h> via systime.h.
10882         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10883         (getpagesize): from Dan Holmsand, added.
10884         Added #endif which was left dangling by Ben's mega patch; added
10885         comment to help prevent this in the future.
10886
10887         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10888
10889 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10890
10891         * console-msw.h (struct mswindows_device): Removed unnecessary
10892         cached device geometry values.
10893         Added update_tick and an accessor macro.
10894         (Lisp_Devmode): Added lrecord declaration.
10895         (struct msprinter_device): Contain devmode as a Lisp object.
10896         Added mswindows_get_selected_frame_hwnd();
10897
10898         * console.h (struct console_methods): Indentation nitpicking.
10899
10900         * device-msw.c (mswindows_init_device): Do not initialize geometry
10901         cache. Initialize update tick.
10902         (mswindows_device_system_metrics): Ask the device for its geometry.
10903         (global_free_2_maybe):
10904         (devmode_to_hglobal):
10905         (handle_printer_changes):
10906         (ensure_not_printing):
10907         (print_dialog_worker):
10908         (Fmsprinter_print_setup_dialog):
10909         (Fmsprinter_print_dialog):
10910         (plist_get_margin):
10911         (plist_set_margin):
10912         (Fmsprinter_page_setup_dialog): Added functions.
10913         (sync_printer_with_devmode):
10914         (handle_devmode_changes):
10915         (Fmsprinter_get_settings):
10916         (Fmsprinter_select_settings):
10917         (Fmsprinter_apply_settings):
10918         (allocate_devmode):
10919         (Fmsprinter_settings_copy):
10920         (Fmsprinter_settings_despecialize):
10921         (print_devmode):
10922         (finalize_devmode):
10923         (equal_devmode):
10924         (hash_devmode): Added functions
10925         (syms_of_device_mswindows): Init devmode lrecord class.
10926
10927         * device.h: Added an exfun for find-device.
10928
10929         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10930         geometry; although, recreate the device compatible DC.
10931
10932         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10933         (msprinter_init_frame_3):
10934         (msprinter_frame_property):
10935         (msprinter_internal_frame_property_p):
10936         (msprinter_frame_properties):
10937         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10938         print job properties (will move to device settings).
10939
10940         * lisp.h: Added symbols.
10941
10942         * general.c (syms_of_general): Declared them.
10943
10944         * hash.c (string_hash): Added.
10945
10946         * lrecord.h (lrecord_type): Added devmode lrecord type.
10947
10948 2000-07-02  Mike Sperber <mike@xemacs.org>
10949
10950         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10951         FreeBSD 4.0.
10952
10953 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10954
10955         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10956         integer.
10957
10958 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10959
10960         * data.c (Fstring_to_number): Don't recognize floating point if
10961         base is not 10.
10962
10963 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10964
10965         * glyphs-widget.c (tab_control_query_geometry):
10966         (widget_query_geometry):
10967         (button_query_geometry):
10968         * glyphs.c (text_query_geometry):
10969         Enforce type correctness.
10970
10971 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10972
10973         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10974         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10975
10976 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10977
10978         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10979         conflicts with gcc's fixincluded version of FOO.h.
10980
10981         * glyphs.h (image_instance_geometry): Remove trailing `,'
10982
10983 2000-06-08  Mike Alexander  <mta@arbortext.com>
10984
10985         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10986         (shove_thread): Don't write the same output twice
10987         (make_ntpipe_output_stream): Increase priority of shove thread
10988         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10989         chance to run
10990         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10991         it.
10992
10993 2000-06-12  Ben Wing  <ben@xemacs.org>
10994
10995         * s\mingw32.h (sigset):
10996         * s\windowsnt.h (sigset):
10997         rename msw_ to mswindows_ for consistency with general convention.
10998
10999 2000-06-12  Ben Wing  <ben@xemacs.org>
11000
11001         * console-msw.c:
11002         * console-msw.c (mswindows_get_console_hwnd):
11003         * console-msw.c (mswindows_ensure_console_allocated):
11004         * console-msw.c (mswindows_hide_console):
11005         * console-msw.c (mswindows_show_console):
11006         * console-msw.c (mswindows_ensure_console_buffered):
11007         * console-msw.c (mswindows_output_console_string):
11008         * console-msw.c (mswindows_windows9x_p):
11009         * console-msw.h:
11010         * device-msw.c (mswindows_get_workspace_coords):
11011         * device-msw.c (mswindows_device_system_metrics):
11012         * dialog-msw.c (mswindows_popup_dialog_box):
11013         * event-msw.c (mswindows_wnd_proc):
11014         * frame-msw.c (mswindows_size_frame_internal):
11015         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11016         * menubar-msw.c (displayable_menu_item):
11017         * menubar-msw.c (mswindows_char_is_accelerator):
11018         * nt.c:
11019         * nt.c (mswindows_sigset):
11020         * nt.c (mswindows_sigrelse):
11021         * nt.c (mswindows_sigpause):
11022         * nt.c (mswindows_raise):
11023         * nt.c (timer_proc):
11024         * ntproc.c:
11025         * ntproc.c (find_child_console):
11026         * ntproc.c (sys_kill):
11027         * print.c:
11028         * print.c (std_handle_out_external):
11029         * process-nt.c (find_child_console):
11030         * process-nt.c (send_signal_the_95_way):
11031         * process-nt.c (ensure_console_window_exists):
11032         * process-nt.c (nt_create_process):
11033         * syssignal.h:
11034         rename msw_ to mswindows_ for consistency with general convention.
11035
11036         * emacs.c:
11037         * dumper.c:
11038         include nt.h, not syswindows.h.
11039
11040         * nt.c (mswindows_fstat):
11041         * nt.c (mswindows_stat):
11042         prefix mswindows_ instead of attempting to directly override the
11043         library functions.  fix declarations.
11044
11045         * nt.h:
11046         include syswindows.h.  move some sysdep.h stuff here.
11047
11048         * ntheap.h:
11049         include syswindows.h, not <windows.h>.
11050
11051         * ntplay.c:
11052         clean up headers.
11053
11054         * sysdep.c:
11055         clean up headers.
11056
11057         * sysdep.c (sys_fstat):
11058         * sysdep.c (sys_stat):
11059         call mswindows versions when appropriate.
11060
11061         * sysdep.h:
11062         move mswin decls to nt.h.
11063
11064         * syswindows.h:
11065         add long comment describing appropriate use of the various windows
11066         headers.
11067
11068 2000-06-11  Ben Wing  <ben@xemacs.org>
11069
11070         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11071
11072 2000-06-10  Ben Wing  <ben@xemacs.org>
11073
11074         * Makefile.in.in (release):
11075         Correction to make sure xemacs.exe always dumped when correct.
11076
11077         * alloca.c:
11078         * balloon_help.c:
11079         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11080
11081         * buffer.c (set_buffer_internal):
11082         [[[[2]]]]: Remove HAVE_FEP code.
11083
11084         * buffer.c (init_initial_directory):
11085         [3].
11086
11087         * bytecode.c:
11088         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11089         individual files.
11090
11091         * callproc.c:
11092         * callproc.c (call_process_cleanup):
11093         * callproc.c (Fold_call_process_internal):
11094         * callproc.c (child_setup):
11095         * callproc.c (getenv_internal):
11096         * callproc.c (init_callproc):
11097         * callproc.c (vars_of_callproc):
11098         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11099         __CYGWIN32__ -> CYGWIN.
11100         DOS_NT -> WIN32_NATIVE.
11101         Remove MSDOS support/references, converting to WIN32_NATIVE
11102           where correct.
11103         __MINGW32__ -> MINGW.
11104         Fix windows.h includes.
11105         Remove bogus HAVE_NTGUI.
11106
11107         * config.h.in:
11108         [2].
11109
11110         * console-msw.c:
11111         mswindows_message_outputted added for use in allowing startup
11112         errors on the console to be seen.
11113
11114         * console-msw.c (msw_ensure_console_allocated):
11115         * console-msw.c (msw_output_console_string):
11116         * console-msw.c (DHEADER):
11117         * console-msw.c (DOPAQUE_DATA):
11118         * console-msw.c (DEVENT):
11119         * console-msw.c (DCONS):
11120         * console-msw.c (DCONSCDR):
11121         * console-msw.c (DSTRING):
11122         * console-msw.c (DVECTOR):
11123         * console-msw.c (DSYMBOL):
11124         * console-msw.c (DSYMNAME):
11125         Fix warnings.
11126
11127         * console-stream.c (stream_init_console):
11128         Fix text/binary problems.
11129
11130         * device-msw.c:
11131         * device-msw.c (mswindows_finish_init_device):
11132         * device-msw.c (mswindows_delete_device):
11133         [1].
11134
11135         * device.c (handle_asynch_device_change):
11136         [3].
11137
11138         * dgif_lib.c:
11139         * dgif_lib.c (DGifOpenFileName):
11140         * dgif_lib.c (DGifOpenFileHandle):
11141         * dgif_lib.c (DGifGetLine):
11142         * dgif_lib.c (DGifGetPixel):
11143         Added config.h/lisp.h, fix up includes.
11144         [1].
11145
11146         * dired-msw.c:
11147         [4].
11148
11149         * dired.c:
11150         * dired.c (file_name_completion):
11151         * dired.c (Ffile_attributes):
11152         * dired.c (syms_of_dired):
11153         [1].
11154
11155         * dumper.c:
11156         * dumper.c (pdump_file_unmap):
11157         * dumper.c (pdump_load):
11158         [1].
11159
11160         * editfns.c:
11161         * editfns.c (Ftemp_directory):
11162         * editfns.c (user_login_name):
11163         * editfns.c (Fuser_real_login_name):
11164         * editfns.c (get_home_directory):
11165         [1].
11166
11167         * elhash.c (finish_marking_weak_hash_tables):
11168         [[[[5]]]]: Fix GCC warnings.
11169
11170         * emacs.c:
11171         * emacs.c (mswindows_handle_hardware_exceptions):
11172         * emacs.c (make_arg_list_1):
11173         * emacs.c (main_1):
11174         * emacs.c (Fkill_emacs):
11175         * emacs.c (Fdump_emacs):
11176         [1].
11177         Fix problems with nested crashes, add long comment.
11178
11179         * event-Xt.c (init_event_Xt_late):
11180         [1].
11181
11182         * event-msw.c:
11183         * event-msw.c (mswindows_dde_callback):
11184         * event-msw.c (mswindows_handle_sticky_modifiers):
11185         * event-msw.c (mswindows_wnd_proc):
11186         [1].
11187         [5].
11188
11189         * events.c (character_to_event):
11190         [1].
11191
11192         * fileio.c:
11193         * fileio.c (Ffile_name_directory):
11194         * fileio.c (Ffile_name_nondirectory):
11195         * fileio.c (directory_file_name):
11196         * fileio.c (Fexpand_file_name):
11197         * fileio.c (Fsubstitute_in_file_name):
11198         * fileio.c (Ffile_name_absolute_p):
11199         * fileio.c (check_executable):
11200         * fileio.c (Ffile_readable_p):
11201         * fileio.c (Ffile_accessible_directory_p):
11202         * fileio.c (Ffile_modes):
11203         * fileio.c (Funix_sync):
11204         * fileio.c (vars_of_fileio):
11205         [1]. [4].
11206
11207         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11208
11209         Expand getdefdir defn.
11210         Fix bogus rename() comment.
11211
11212         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11213         to use standard XEmacs include files, e.g. sysfile.h, rather
11214         than system-specific includes.
11215
11216         * fns.c:
11217         * fns.c (Fsubseq):
11218         [5]. [6].
11219
11220         * frame.c (vars_of_frame):
11221         [1].
11222
11223         * getloadavg.c:
11224         * getloadavg.c (getloadavg):
11225         [1]. [6].
11226         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11227         (We don't use it elsewhere in the code; just add a comment.)
11228
11229         * gif_io.c:
11230         [6].
11231         Add config.h.
11232
11233         * glyphs-msw.c:
11234         * glyphs-msw.c (mswindows_resource_instantiate):
11235         [1].
11236
11237         * glyphs-x.c (x_native_layout_instantiate):
11238         [5].
11239
11240         * gui-msw.c (Fmswindows_shell_execute):
11241         [1].
11242
11243         * insdel.c:
11244         [4].
11245
11246         * lisp.h:
11247         [4]. [5].
11248
11249         * lread.c (locate_file_in_directory_mapper):
11250         [1].
11251
11252         * lstream.c:
11253         [4].
11254
11255         * mem-limits.h:
11256         * mem-limits.h (get_lim_data):
11257         [1].
11258
11259         * menubar-msw.c:
11260         [4].
11261
11262         * ndir.h:
11263         [1].
11264
11265         * nt.c:
11266         * nt.c (getwd):
11267         * nt.c (closedir):
11268         * nt.c (rva_to_section):
11269         * nt.c (mswindows_executable_type):
11270         [1]. [6].
11271         Fix closedir() defn.
11272
11273         * nt.h:
11274         [[[[8]]]]: *_OK defs moved to sysfile.h.
11275
11276         * ntproc.c:
11277         [6]. [7].
11278
11279         * objects-x.c:
11280         [4].
11281
11282         * print.c:
11283         * print.c (std_handle_out_external):
11284         [1]. [4].
11285
11286         * process-nt.c:
11287         * process-nt.c (nt_create_process):
11288         [6].
11289         try to fix process quoting somewhat.
11290
11291         * process-unix.c (unix_create_process):
11292         [1].
11293
11294         * process.c:
11295         * process.c (vars_of_process):
11296         Add Vnull_device.
11297
11298         * process.h:
11299         [1].
11300
11301         * realpath.c:
11302         * realpath.c (xrealpath):
11303         [1].
11304
11305         * redisplay-tty.c (init_tty_for_redisplay):
11306         [3].
11307
11308         * redisplay.c:
11309         [4]. [6].
11310
11311         * scrollbar-msw.c:
11312         [4].
11313
11314         * sheap.c:
11315         * sheap.c (more_static_core):
11316         * sheap.c (report_sheap_usage):
11317         [5]. [6].
11318
11319         * signal.c:
11320         * signal.c (alarm_signal):
11321         [1]. [6].
11322
11323         * sound.c:
11324         [6].
11325
11326         * strftime.c:
11327         * strftime.c (zone_name):
11328         [1]. [5].
11329
11330         * symsinit.h (init_sunpro):
11331         [1].
11332
11333         * syscommctrl.h:
11334         commctrl.h not in Cygwin b20.1.
11335
11336         * sysdep.c:
11337         * sysdep.c (endif):
11338         * sysdep.c (sys_subshell):
11339         * sysdep.c (init_baud_rate):
11340         * sysdep.c (emacs_get_tty):
11341         * sysdep.c (emacs_set_tty):
11342         * sysdep.c (tty_init_sys_modes_on_device):
11343         * sysdep.c (init_system_name):
11344         * sysdep.c (sys_open):
11345         * sysdep.c (interruptible_open):
11346         * sysdep.c (sys_fopen):
11347         * sysdep.c (sys_mkdir):
11348         * sysdep.c (sys_rename):
11349         * sysdep.c (get_process_times_1):
11350         [1]. [6].
11351
11352         * sysdep.h:
11353         [1].
11354
11355         * sysdir.h:
11356         * sysdir.h (DIRENTRY_NONEMPTY):
11357         [1]. [6].
11358
11359         * sysdll.c (dll_init):
11360         * sysdll.h:
11361         [1].
11362
11363         * sysfile.h:
11364         [1]. [6]. [8].
11365         added text/binary defs.
11366
11367         * sysfloat.h:
11368         [1].
11369
11370         * sysproc.h:
11371         * sysproc.h (EDESTADDRREQ):
11372         * sysproc.h (poll_fds_for_input):
11373         [1]. [6].
11374
11375         * syspwd.h:
11376         [6].
11377
11378         * syssignal.h:
11379         [1].
11380
11381         * systime.h:
11382         [1]. [6].
11383
11384         * systty.h:
11385         [1].
11386
11387         * syswindows.h:
11388         [1].
11389         Always define WIN32_LEAN_AND_MEAN.
11390
11391         * unexcw.c (unexec):
11392         [5].
11393
11394         * unexec.c:
11395         * unexec.c (copy_text_and_data):
11396         * unexec.c (adjust_lnnoptrs):
11397         [1].
11398
11399         * unexnt.c:
11400         * unexnt.c (_start):
11401         [1].
11402
11403 2000-06-07  Ben Wing  <ben@xemacs.org>
11404
11405         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11406         was used only as a model.  We've long since extracted any useful
11407         logic or code out of this. (I just did an exhaustive search.)
11408
11409         * s\msdos.h: Removed.
11410
11411         * s\windows95.h: Removed.
11412
11413 2000-06-10  Ben Wing  <ben@xemacs.org>
11414
11415         * s\cygwin32.h:
11416         [1]. [5].
11417         Don't use extern with fun defs.
11418
11419         * s\mingw32.h:
11420         [1]. [7].
11421         Remove nt\inc include.
11422         Remove getdisk, getdefdir. (The former is unused, the latter
11423         expanded in fileio.h.)
11424
11425         * s\windowsnt.h:
11426         * s\windowsnt.h (WIN32_NATIVE):
11427         * s\windowsnt.h (HAVE_STRCASECMP):
11428         [1]. [7].
11429         Add long comment about preprocessor changes.
11430         Remove getdisk, getdefdir. (The former is unused, the latter
11431         expanded in fileio.h.)
11432
11433 2000-06-10  Ben Wing  <ben@xemacs.org>
11434
11435         * m\arm.h:
11436         * m\delta.h:
11437         * m\intel386.h:
11438         * m\sequent.h:
11439         * m\template.h:
11440         * m\windowsnt.h:
11441         [1].
11442         Remove bogus/unused NO_SOCK_SIGIO.
11443
11444 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11445
11446         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11447         not an Emchar.
11448
11449 2000-06-04  Mike Sperber <mike@xemacs.org>
11450
11451         * casetab.c (set_case_table): For `set-standard-case-table',
11452         actually deposit the new case tables where the rest of XEmacs can
11453         see them.
11454
11455 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11456
11457         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11458
11459 2000-06-05  Ben Wing  <ben@xemacs.org>
11460
11461         * callproc.c (child_setup): Don't do close_load_descs() under
11462         MS Windows.  Put in a comment explaining why.
11463
11464 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11465
11466         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11467         Toolkit shell" which breaks `kill-compilation' on Windows NT
11468         native, retaining STDERR handling improvements.
11469
11470 2000-06-01  Andreas Jaeger  <aj@suse.de>
11471
11472         * s/s390.h: Support for S390, based on a patch by Martin
11473         Schwidefsky <schwidefsky@de.ibm.com>.
11474
11475 2000-05-30  Andy Piper  <andy@xemacs.org>
11476
11477         * window.c (allocate_window):
11478         (make_dummy_parent):
11479         (Fset_window_configuration): use new hashtable type.
11480
11481         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11482         (struct image_instantiator_methods):
11483         (struct Lisp_Image_Instance): make instance geometry signed.
11484
11485         * glyphs.c (instantiate_image_instantiator):
11486         (image_instance_query_geometry):
11487         (image_instance_layout):
11488         (image_instance_layout):
11489         (query_string_geometry):
11490         (text_query_geometry):
11491         (image_instantiate):
11492         (image_instantiate):
11493         (cache_subwindow_instance_in_frame_maybe):
11494         (subwindow_query_geometry): make instance geometry signed.
11495
11496         * glyphs-widget.c (widget_query_geometry):
11497         (widget_layout):
11498         (button_query_geometry):
11499         (tree_view_query_geometry):
11500         (tab_control_query_geometry):
11501         (layout_query_geometry):
11502         (layout_layout):
11503         (native_layout_layout): make instance geometry signed.
11504
11505 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11506
11507         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11508         constant.
11509
11510         * general.c (syms_of_general): Add Qfull_assoc symbol.
11511
11512         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11513         correctly.
11514         (decode_weak_list_type): Decode full-assoc type.
11515         (encode_weak_list_type): Encode full-assoc type.
11516         (Fmake_weak_list): Update doc string.
11517
11518 2000-05-30  Andy Piper  <andy@xemacs.org>
11519
11520         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11521
11522         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11523         (decode_hash_table_weakness): ditto.
11524         (Fhash_table_weakness): ditto.
11525         (Fhash_table_type): ditto.
11526         (finish_marking_weak_hash_tables): ditto.
11527         (hash_table_weakness_validate): ditto.
11528         (syms_of_elhash): ditto.
11529
11530 2000-05-28  Martin Buchholz <martin@xemacs.org>
11531
11532         * XEmacs 21.2.34 is released.
11533
11534 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11535
11536         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11537         start cache.
11538         (updating_line_start_cache): Gone.
11539         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11540         generic code to force a minimum of 1 line laid out in the
11541         CMOTION_DISP case.
11542
11543 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11544
11545         * glyphs.c (instantiate_image_instantiator): Check for initialized
11546         height & width no longer special cases IMAGE_NOTHING.
11547         (nothing_instantiate): Set height and width of instance.
11548
11549 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11550
11551         * unexelf.c (unexec): Search for ".data" section.
11552         Initialize new_data2_offset from old_data_index.
11553         Remove redundant check for ElfW.
11554
11555 2000-05-23  Andy Piper  <andy@xemacs.org>
11556
11557         * glyphs.c (get_image_instantiator_governing_domain): allow more
11558         specific domains as the governing domain rather than expecting an
11559         exact match. This fixes problems with layouts.
11560
11561 2000-05-22  Andy Piper  <andy@xemacs.org>
11562
11563         * redisplay-output.c (compare_runes): check for non-images
11564
11565         * glyphs.c (set_glyph_dirty_p): ditto.
11566         (update_glyph_cachel_data): ditto.
11567
11568         * glyphs-widget.c (layout_post_instantiate): ditto.
11569         (layout_post_instantiate): ditto.
11570
11571         * event-msw.c (mswindows_wnd_proc): warning removal.
11572
11573 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11574
11575         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11576
11577         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11578
11579         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11580
11581         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11582         (mswindows_executable_type): mingw32 now has enough headers for
11583         this to work.
11584
11585 2000-05-20  Andy Piper  <andy@xemacs.org>
11586
11587         * console-msw.c (mswindows_output_last_error): ; -> ,
11588
11589 2000-05-12  Andy Piper  <andy@xemacs.org>
11590
11591         * console-msw.c (FROB): compare ints with ints.
11592
11593 2000-05-11  Andy Piper  <andy@xemacs.org>
11594
11595         * glyphs-x.c (x_finalize_image_instance): make minimal build
11596         happy.
11597
11598 2000-05-20  Ben Wing  <ben@xemacs.org>
11599
11600         * event-Xt.c:
11601         * event-Xt.c (vars_of_event_Xt):
11602         move modifier-keys-are-sticky to event-stream.c.
11603
11604         * event-msw.c:
11605         * event-msw.c (mswindows_enqueue_mouse_button_event):
11606         * event-msw.c (key_needs_default_processing_p):
11607         * event-msw.c (XEMSW_LCONTROL):
11608         * event-msw.c (mswindows_handle_sticky_modifiers):
11609         * event-msw.c (FROB):
11610         * event-msw.c (clear_sticky_modifiers):
11611         * event-msw.c (output_modifier_keyboard_state):
11612         * event-msw.c (output_alt_keyboard_state):
11613         * event-msw.c (mswindows_wnd_proc):
11614         * event-msw.c (mswindows_modifier_state):
11615         * event-msw.c (emacs_mswindows_handle_magic_event):
11616         implement sticky modifiers.
11617
11618         * event-stream.c:
11619         * event-stream.c (vars_of_event_stream):
11620         move modifier-keys-are-sticky here.
11621
11622         * lisp.h:
11623         add CHECK_FUNCTION.
11624
11625         * rangetab.c:
11626         implement map-range-table.
11627
11628
11629 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11630
11631         * redisplay-tty.c (reset_tty_modes):
11632         (tty_redisplay_shutdown): Adjust argument type to
11633         tty_frame_output_end.
11634
11635 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11636
11637         * eval.c (Fbacktrace): Don't output a line with only right
11638         parenthesis.
11639
11640 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11641
11642         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11643         (Fpq_reset_poll): Ditto.
11644
11645 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11646
11647         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11648
11649 2000-05-16  Ben Wing  <ben@xemacs.org>
11650
11651         * buffer.c:
11652         * buffer.c (dfc_convert_to/from_internal_format):
11653         * buffer.c (reinit_vars_of_buffer):
11654         Fix conversion functions to allow reentrancy.
11655
11656         * console-msw.c:
11657         * console-msw.c (mswindows_output_last_error):
11658         New fun, generally useful -- output a human-readable
11659         version of GetLastError() on the console.
11660
11661         * console-msw.h:
11662         * console-msw.h (struct mswindows_frame):
11663         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11664
11665         * console-stream.c (stream_output_begin):
11666         * console-stream.c (stream_output_end):
11667         * console-stream.c (stream_output_vertical_divider):
11668         * console-stream.c (stream_clear_region):
11669         * console-stream.c (stream_flash):
11670         * console-stream.c (console_type_create_stream):
11671         Delete blank stream methods, not needed.
11672
11673         * console.h (struct console_methods):
11674         Split begin/end methods into window and frame.
11675
11676         * event-msw.c:
11677         * event-msw.c (mswindows_handle_paint):
11678         * event-msw.c (output_alt_keyboard_state):
11679         * event-msw.c (mswindows_wnd_proc):
11680         * event-msw.c (vars_of_event_mswindows):
11681         Comment about problems with ignored-expose.
11682         Define mswindows-debug-events; not really implemented.
11683
11684         * frame-msw.c (mswindows_init_frame_1):
11685         random cleanups.
11686
11687         * glyphs-msw.c:
11688         * glyphs-msw.c (begin_defer_window_pos):
11689         * glyphs-msw.c (mswindows_unmap_subwindow):
11690         * glyphs-msw.c (mswindows_map_subwindow):
11691         * glyphs-msw.c (mswindows_resize_subwindow):
11692         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11693
11694         * glyphs.c (make_image_instance_1):
11695         Fix crash.
11696
11697         * gutter.c (Fredisplay_gutter_area):
11698         Use new begin/end methods.
11699
11700         * lisp.h (Dynarr_new2):
11701         New creation fun.
11702
11703         * redisplay-msw.c:
11704         * redisplay-msw.c (mswindows_frame_output_begin):
11705         * redisplay-msw.c (mswindows_frame_output_end):
11706         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11707         New begin/end methods -- handle DeferWindowPos.
11708
11709         * redisplay-output.c (redisplay_move_cursor):
11710         * redisplay-output.c (redraw_cursor_in_window):
11711         * redisplay-output.c (redisplay_update_line):
11712         * redisplay-output.c (redisplay_output_window):
11713         New begin/end methods.
11714
11715         * redisplay-tty.c:
11716         * redisplay-tty.c (tty_frame_output_begin):
11717         * redisplay-tty.c (tty_frame_output_end):
11718         * redisplay-tty.c (console_type_create_redisplay_tty):
11719         New begin/end methods.
11720
11721         * redisplay-x.c:
11722         * redisplay-x.c (x_window_output_begin):
11723         * redisplay-x.c (x_window_output_end):
11724         * redisplay-x.c (console_type_create_redisplay_x):
11725         New begin/end methods.
11726
11727         * redisplay.c (redisplay_frame):
11728         * redisplay.c (Fredisplay_echo_area):
11729         New begin/end methods.
11730         use MAYBE_DEVMETH for clear_frame; it may not exist.
11731
11732         * window.h (WINDOW_XFRAME):
11733         WINDOW_XFOO macros -- get locale and decode struct pointer.
11734
11735
11736 2000-05-12  Ben Wing  <ben@xemacs.org>
11737
11738         * emacs.c:
11739         * emacs.c (ensure_no_quitting_from_now_on):
11740         * emacs.c (fatal_error_signal):
11741         * emacs.c (mswindows_handle_hardware_exceptions):
11742         * emacs.c (main):
11743         * emacs.c (Fkill_emacs):
11744         * emacs.c (shut_down_emacs):
11745         * emacs.c (assert_failed):
11746         various improvements in fatal error handling.
11747
11748         * eval.c:
11749         move preparing_for_armageddon to emacs.c.
11750
11751         * lisp.h:
11752         declare fatal_error_in_progress.
11753
11754         * print.c:
11755         * print.c (std_handle_out_external):
11756         * print.c (std_handle_out_va):
11757         * print.c (stderr_out):
11758         * print.c (stdout_out):
11759         use console under mswin when no standard output.
11760         don't do code conversion during fatal error.
11761
11762         * scrollbar.c (Fscrollbar_page_up):
11763         * scrollbar.c (Fscrollbar_page_down):
11764         fix missing else.  reindent.
11765
11766 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11767
11768         Emergency fix.
11769
11770         * glyphs.h (GLYPH_CACHEL_DESCENT):
11771         (GLYPH_CACHEL_DESCENT):
11772         (GLYPH_CACHEL_DESCENT):
11773         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11774         used in case these are inline functions.
11775         Use more absurd values to error check.
11776
11777         include window.h for error check functions.
11778
11779 2000-05-11  Ben Wing  <ben@xemacs.org>
11780
11781         * cmdloop.c (Freally_early_error_handler):
11782         Display message box under windows; otherwise, message will disappear
11783         before it can be viewed.
11784
11785         * console-msw.c:
11786         * console-msw.c (Fmswindows_message_box):
11787         * console-msw.c (FROB):
11788         * console-msw.c (syms_of_console_mswindows):
11789         Define new fun `mswindows-message-box'.
11790         #### I will merge this into `popup-dialog-box'; just give me
11791         a bit of time.
11792
11793         * general.c:
11794         * general.c (syms_of_general):
11795         Some new symbols used in `mswindows-message-box'.
11796
11797         * glyphs.c:
11798         * glyphs.c (Fset_image_instance_property):
11799         put warning in this fun.
11800
11801         * glyphs.h:
11802         * glyphs.h (GLYPH_CACHEL_WIDTH):
11803         * glyphs.h (GLYPH_CACHEL_ASCENT):
11804         * glyphs.h (GLYPH_CACHEL):
11805         * glyphs.h (GLYPH_CACHEL_GLYPH):
11806         define error-checking versions to try to catch a bug i've seen --
11807         redisplay gets in an infinite loop because the glyph width of the
11808         continuation glyph is 65535.
11809
11810         * lisp.h:
11811         Extern message-box stuff.
11812
11813         * window.c (allocate_window):
11814         * window.c (make_dummy_parent):
11815         * window.c (Fset_window_configuration):
11816         Use EQUAL not EQ for subwindow caches to make them work a bit
11817         better. (Something is still very broken.)
11818
11819
11820 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11821
11822         * glyphs.c (image_instantiate): Suppress gcc warnings.
11823         (Fmake_image_instance): Fix doc string.
11824         * specifier.c (Fmake_specifier): Ditto.
11825
11826 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11827
11828         * paths.h.in (PATH_LOCK): Removed.
11829         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11830         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11831
11832 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11833
11834         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11835         Document (featurep '(and xemacs 21.02)).
11836
11837 2000-05-09  Ben Wing  <ben@xemacs.org>
11838
11839         * buffer.c (complex_vars_of_buffer):
11840         update modeline-format doc.
11841
11842         * device.h:
11843         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11844
11845         * emacs.c:
11846         timeline of all released versions of Emacs, for use in creating
11847         authorship comments and in synching up.
11848
11849         * glyphs-widget.c (image_instantiator_buttons):
11850         * glyphs-widget.c (image_instantiator_edit_fields):
11851         * glyphs-widget.c (image_instantiator_combo_box):
11852         * glyphs-widget.c (image_instantiator_scrollbar):
11853         * glyphs-widget.c (image_instantiator_progress_guage):
11854         * glyphs-widget.c (image_instantiator_tree_view):
11855         * glyphs-widget.c (image_instantiator_tab_control):
11856         * glyphs-widget.c (image_instantiator_labels):
11857         * glyphs-widget.c (image_instantiator_layout):
11858         * glyphs-widget.c (image_instantiator_native_layout):
11859         rename decode_domain method to governing_domain.
11860
11861         * glyphs.c:
11862         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11863         * glyphs.c (add_entry_to_device_ii_format_list):
11864         make sure we don't put an entry more than once into the list.
11865         * glyphs.c (check_instance_cache_mapper):
11866         *************************************************************
11867         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11868         HAVE BEEN GETTING.
11869         *************************************************************
11870         * glyphs.c (get_image_instantiator_governing_domain):
11871         clean up, expand on new concept of governing domain.
11872         * glyphs.c (instantiate_image_instantiator):
11873         * glyphs.c (allocate_image_instance):
11874         use governing_domain instead of cache_domain in naming.
11875         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11876         * glyphs.c (make_image_instance_1):
11877         * glyphs.c (Fmake_image_instance):
11878         allow for any domain (not just device), and process the
11879         governing domain correctly.  very big doc fix.
11880         * glyphs.c (Fimage_instance_domain):
11881         new primitive, to retrieve the governing domain of an image instance.
11882         * glyphs.c (image_instantiate):
11883         use new governing_domain stuff.  this fixes a crash you could get
11884         by instantiating certain widget glyphs in frame locales. (should
11885         signal an error instead of crashing.)
11886         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11887         * glyphs.c (Fglyphp): clean up doc.
11888         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11889         * glyphs.c (syms_of_glyphs):
11890         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11891         * glyphs.c (image_instantiator_format_create): add some comments about
11892         bogus code.
11893         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11894         for current-display-table. (Apparently Hrjove implemented in 1998 a
11895         design I wrote up in 1996, but didn't update the doc string.)
11896
11897         * glyphs.h: clean up a doc string.
11898         * glyphs.h (governing_domain):
11899         * glyphs.h (struct image_instantiator_methods):
11900         changes for governing_domain stuff.
11901
11902         * gutter.c:
11903         * gutter.c (Fgutter_specifier_p):
11904         * gutter.c (Fgutter_size_specifier_p):
11905         * gutter.c (Fgutter_visible_specifier_p):
11906         * objects.c:
11907         * objects.c (Fcolor_specifier_p):
11908         * objects.c (Ffont_specifier_p):
11909         * objects.c (Fface_boolean_specifier_p):
11910         doc strings moved to make-*-specifier.
11911
11912         * redisplay.c (add_disp_table_entry_runes_1):
11913         * redisplay.c (generate_fstring_runes):
11914         * redisplay.c (screen):
11915         add random comments and doc strings.
11916
11917         * specifier.c:
11918         * specifier.c (Fmake_specifier):
11919         major overhaul of this doc string.
11920
11921         * specifier.c (Fvalid_specifier_domain_p):
11922         comment about the bogosity of image instances being domains.
11923         * specifier.c (decode_domain):
11924         now non-static, used in glyphs.c.
11925         * specifier.c (specifier_instance):
11926         comment about the bogosity of image instances being domains.
11927         * specifier.c (Fgeneric_specifier_p):
11928         move doc string to make-generic-specifier.
11929         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11930         rebackslashify.
11931
11932         * specifier.h:
11933         * specifier.h (DOMAIN_FRAME):
11934         * specifier.h (DOMAIN_LIVE_P):
11935         * specifier.h (DOMAIN_XDEVICE):
11936         rebackslashify.
11937         add comments about problems with these macros.
11938         prototype for decode_domain.
11939
11940         * toolbar.c:
11941         * toolbar.c (Ftoolbar_specifier_p):
11942         move doc string to `make-toolbar-specifier'.
11943
11944         * window.c (window_unmap_subwindows_cache_mapper):
11945         *************************************************************
11946         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11947         HAVE BEEN GETTING.
11948         *************************************************************
11949
11950 2000-05-09  Andy Piper  <andy@xemacs.org>
11951
11952         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11953
11954         * window.c (Fset_window_configuration): reset the frame subwindow
11955         cache and re-initialize the window subwindow caches.
11956
11957         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11958
11959 2000-05-09  Ben Wing  <ben@xemacs.org>
11960
11961         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11962         DWORD.
11963
11964 2000-04-26  Mike Woolley  <mike@bulsara.com>
11965
11966         * ntheap.c: Changed recreate_heap to limit the amount reserved
11967         for the heap to that which is actually available. Also now
11968         displays a message box (with some dignostics) in the event that
11969         it still can't start.
11970
11971 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11972
11973         * callproc.c (Fold_call_process_internal): GCPRO path
11974
11975 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11976
11977         Patch by Bill Perry.
11978
11979         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11980         back data instead of #ifdef.
11981         (Fscrollbar_page_down): ditto.
11982
11983 2000-05-07  Ben Wing  <ben@xemacs.org>
11984
11985         * buffer.h:
11986         Kludge for defining Qmswindows_tstr.
11987
11988         * nt.c:
11989         * nt.c (open_input_file):
11990         * nt.c (open_output_file):
11991         * nt.c (rva_to_section):
11992         * nt.c (mswindows_executable_type):
11993         Move all memory-mapped-file routines here (some were in unexnt.c,
11994         which is bad because they are used by process-nt.c, and unexnt
11995         won't be around when portable dumping).  Synched the above routines
11996         with FSF 20.6.
11997
11998         * nt.h:
11999         Removed ifdef'd out bogus code.
12000         Fixed some prototypes.
12001
12002         * nt.h (file_data):
12003         * nt.h (OFFSET_TO_RVA):
12004         * nt.h (RVA_TO_OFFSET):
12005         * nt.h (RVA_TO_PTR):
12006         Moved the memory-mapped-file structures, macros and prototypes
12007         here, to parallel nt.c.  ntheap.h should really be removed
12008         entirely, and it's a non-portable-dumper specific file.
12009
12010         * ntheap.h (round_to_next):
12011         Moved the memory-mapped-file structures, macros and prototypes
12012         to nt.h.
12013
12014         * ntproc.c (compare_env):
12015         Moved rva_to_section and mswindows_executable_type to nt.c.
12016         Moved compare_env to process-nt.c.
12017         ntproc.c will die, one day.
12018
12019         * ntproc.c (sys_spawnve):
12020         Account for win32_ -> mswindows_.
12021
12022         * process-nt.c:
12023         * process-nt.c (struct nt_process_data):
12024         * process-nt.c (ensure_console_window_exists):
12025         * process-nt.c (compare_env):
12026         * process-nt.c (nt_create_process):
12027         * process-nt.c (nt_kill_process_by_pid):
12028         * process-nt.c (syms_of_process_nt):
12029         * process-nt.c (vars_of_process_nt):
12030         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12031         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12032         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12033         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12034         Move compare_env here from ntproc.c.
12035
12036         * process.c (Fprocess_send_region):
12037         Takes an optional fourth argument, BUFFER, which should fix some
12038         problems with call-process.
12039
12040         * syscommctrl.h:
12041         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12042
12043         * syswindows.h:
12044         Move ICC_BAR_CLASSES to syscommctrl.h.
12045         Add preliminary macros for MSWindows/Mule.  More to come.
12046
12047         * unexnt.c:
12048         * unexnt.c (unexec):
12049         open_output_file moved to nt.c.
12050
12051
12052 2000-05-05  Andy Piper  <andy@xemacs.org>
12053
12054         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12055         instance from the frame cache also since GC may catch up too late
12056         to make frame deletion sane.
12057
12058 2000-05-04  Andy Piper  <andy@xemacs.org>
12059
12060         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12061         (x_finalize_image_instance): ungcpro on deletion.
12062
12063         * glyphs.c (image_instantiator_format_create): give pointers a
12064         query geometry method so that the geometry is at least set.
12065
12066         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12067         initialize layouts if using widgets.
12068
12069 2000-05-03  Andy Piper  <andy@xemacs.org>
12070
12071         * nt.c: remove bogus reference to sysmmsystem.h
12072
12073         * gui-x.c (popup_selection_callback): fix no selection abort.
12074
12075 2000-05-02  Andy Piper  <andy@xemacs.org>
12076
12077         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12078         (mswindows_widget_instantiate): ditto.
12079
12080         * glyphs-widget.c (initialize_widget_image_instance): initialize
12081         children correctly.
12082         (widget_instantiate): cope with children and items in the same
12083         instance.
12084
12085         * glyphs.c (mark_image_instance): cope with children as a first
12086         class member.
12087         (image_instance_equal): ditto.
12088         (image_instance_hash): ditto.
12089         (image_instance_changed): ditto.
12090
12091 2000-04-30  Andy Piper  <andy@xemacs.org>
12092
12093         * glyphs.c (subwindow_query_geometry): new function. Return some
12094         defaults.
12095         (subwindow_instantiate): don't assign dimensions if none have been
12096         given.
12097         (image_instantiator_format_create): add subwindow_query_geometry.
12098         (print_image_instance): cope with layouts as widgets.
12099
12100 2000-04-29  Andy Piper  <andy@xemacs.org>
12101
12102         * frame.c (delete_frame_internal): call
12103         free_frame_subwindow_instance_cache so that all subwindows are
12104         finalized before their parent.
12105         (mark_frame): remove subwindow_cachels.
12106         (Fmake_frame): remove subwindow_cachel manipulation.
12107         (allocate_frame_core): subwindow_instance_cache is a weak list.
12108         (delete_frame_internal): set subwindow_instance_cache to nil.
12109
12110         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12111         finalization safe.
12112         (mswindows_finalize_image_instance): use the device
12113         not the domain as the domain may have died already.
12114
12115         * glyphs-x.c (x_finalize_image_instance): ditto.
12116         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12117         HEIGHT.
12118
12119         * redisplay-output.c (redisplay_unmap_subwindows): update for
12120         subwindow instance cache as a weak list.
12121         (redisplay_unmap_subwindows_maybe): ditto.
12122         (redisplay_unmap_subwindows_except_us): ditto.
12123
12124         * glyphs.c (unmap_subwindow): error checking will check the domain
12125         so don't deal with it here. Don't use cachels anymore.
12126         (map_subwindow): ditto.
12127         (update_subwindow_cachel_data): remove old accessor names.
12128         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12129         (Fresize_subwindow): don't update cachel.
12130         (mark_subwindow_cachels):
12131         (update_subwindow_cachel_data):
12132         (add_subwindow_cachel):
12133         (get_subwindow_cachel_index):
12134         (update_subwindow_cachel):
12135         (reset_subwindow_cachels):
12136         (mark_subwindow_cachels_as_not_updated): deleted.
12137         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12138         subwindow instance to the frame cache.
12139         (find_matching_subwindow): update for subwindow instance cache as
12140         a weak list.
12141         (update_widget_instances): ditto.
12142         (image_instance_type_to_mask):inlined.
12143         (free_frame_subwindow_instance_cache): new function. finalize all
12144         subwindows that are instantiated.
12145
12146         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12147         of cachel information.
12148         (IMAGE_INSTANCE_DISPLAY_X):
12149         (IMAGE_INSTANCE_DISPLAY_Y):
12150         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12151         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12152         (XIMAGE_INSTANCE_DISPLAY_X):
12153         (XIMAGE_INSTANCE_DISPLAY_Y):
12154         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12155         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12156         remove subwindow_cachel structure and function references.
12157         (image_instance_type_to_mask): inline from glyphs.c
12158
12159         * redisplay.c (redisplay_frame): remove subwindow_cachel
12160         references.
12161
12162         * frame.h (struct frame): remove subwindow_cachels.
12163         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12164
12165         * frameslots.h: add subwindow_instance_cache.
12166
12167         * window.c (replace_window): check subwindow cache of replacement.
12168         (window_unmap_subwindows_cache_mapper):
12169         (window_unmap_subwindows): new functions. Unmap all subwindows
12170         cached on this window.
12171         (mark_window_as_deleted): unmap all subwindows.
12172
12173 2000-04-27  Andy Piper  <andy@xemacs.org>
12174
12175         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12176
12177         * glyphs-widget.c (widget_layout): return something.
12178         (layout_layout): return something. Fail if not initialized.
12179         (layout_query_geometry): ditto.
12180         (image_instantiator_native_layout): new function. Initialized the
12181         native layout type.
12182         (widget_instantiate): don't do layout stuff here.
12183
12184         * glyphs.c (instantiate_image_instantiator): reorded calling or
12185         instantiate and post_instantiate with layout in between.
12186         (image_instance_layout): be more selective about deciding whether
12187         the layout has been done or not.
12188
12189         * glyphs.h (struct image_instantiator_methods): return a value
12190         from layout_method.
12191
12192 2000-04-26  Andy Piper  <andy@xemacs.org>
12193
12194         * glyphs.c (allocate_image_instance): make initial width and
12195         height unspecified. Set initialized to 0.
12196
12197         * syscommctrl.h new file. Encapsulates commctrl.h.
12198
12199         * syswindows.h new file. Encapsulates windows.h.
12200
12201         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12202         * nt.c: ditto.
12203         * console-msw.h: ditto.
12204
12205         * redisplay-tty.c (tty_output_display_block): remove layout references.
12206
12207         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12208         window handle rather than just the frame.
12209
12210         * glyphs.c (mark_image_instance): remove layout references.
12211         (print_image_instance): ditto.
12212         (image_instance_equal): ditto.
12213         (image_instance_hash): ditto.
12214         (decode_image_instance_type): ditto.
12215         (encode_image_instance_type): ditto.
12216         (image_instantiate): ditto.
12217         (allocate_glyph): ditto.
12218         (Fimage_instance_height): ditto.
12219         (Fimage_instance_width): ditto.
12220         (update_subwindow): ditto.
12221
12222         * redisplay-x.c (x_output_display_block): recode for layouts as
12223         widgets.
12224
12225         * redisplay-output.c (redisplay_output_layout): recode for layouts
12226         as widgets.
12227         (compare_runes): remove layout references.
12228
12229         * redisplay-msw.c (mswindows_output_display_block): recode for
12230         layouts as widgets.
12231
12232         * glyphs-widget.c (image_instantiator_layout): remove
12233         layout_possible_dest_types.
12234         (layout_possible_dest_types): deleted.
12235
12236         * glyphs.h (image_instance_type): remove layout references.
12237         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12238         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12239         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12240
12241 2000-04-25  Andy Piper  <andy@xemacs.org>
12242
12243         * glyphs-widget.c (image_instantiator_buttons):
12244         (image_instantiator_edit_fields):
12245         (image_instantiator_combo_box):
12246         (image_instantiator_scrollbar):
12247         (image_instantiator_progress_guage):
12248         (image_instantiator_tree_view):
12249         (image_instantiator_tab_control):
12250         (image_instantiator_labels):
12251         (image_instantiator_layout): call default post_instantiate method.
12252         (widget_post_instantiate): new function. Simply lays out the
12253         widgets.
12254
12255         * glyphs.h (struct image_instantiator_methods): add
12256         post_instantiate method.
12257
12258         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12259         method calls.
12260
12261 2000-04-23  Andy Piper  <andy@xemacs.org>
12262
12263         * glyphs.h (struct image_instantiator_methods): add
12264         decode_domain_method.
12265         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12266         derived from the domain.
12267         (IMAGE_INSTANCE_FRAME): new accessor.
12268         (XIMAGE_INSTANCE_FRAME): ditto.
12269
12270         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12271         instead of _SUBWINDOW_FRAME.
12272         (finalize_image_instance): ditto.
12273         (Fimage_instance_foreground): ditto.
12274         (Fimage_instance_background): ditto.
12275         (image_instantiate): ditto.
12276         (update_subwindow_cachel): ditto.
12277         (update_subwindow): ditto.
12278         (unmap_subwindow): ditto.
12279         (map_subwindow): ditto
12280         (subwindow_instantiate): ditto.
12281         * glyphs-msw.c (mswindows_update_widget): ditto.
12282         (mswindows_progress_gauge_instantiate): ditto.
12283         (mswindows_tab_control_update): ditto.
12284         * glyphs-x.c (x_update_widget): ditto.
12285         (x_widget_instantiate): ditto.
12286         (x_tab_control_instantiate): ditto.
12287         (x_tab_control_update): ditto.
12288         * event-msw.c (mswindows_wnd_proc): ditto
12289
12290         * glyphs-widget.c (image_instantiator_layout): use
12291         subwindow_decode_domain.
12292         (image_instantiator_buttons): ditto.
12293         (image_instantiator_edit_fields): ditto.
12294         (image_instantiator_combo_box): ditto.
12295         (image_instantiator_scrollbar): ditto.
12296         (image_instantiator_progress_guage): ditto.
12297         (image_instantiator_tree_view): ditto.
12298         (image_instantiator_tab_control): ditto.
12299         (image_instantiator_labels): ditto.
12300         (image_instantiator_layout): ditto.
12301
12302         * glyphs.c: add instance error checking to many functions.
12303         (instantiate_image_instantiator): decode device from cache_domain.
12304         (image_instantiate): partially rewrite by using
12305         decode_image_instantiator_domain to determine what domain the
12306         instance needs to be cached in.
12307         (decode_image_instantiator_domain): new function. Determine what
12308         domain the image needs to be cached in.
12309         (check_window_subwindow_cache): new error checking function.
12310         (check_instance_cache_mapper): ditto.
12311         (check_image_instance_structure): ditto.
12312         (subwindow_decode_domain): new function. Encodes a window as a
12313         subwindow's cache domain.
12314         (image_instantiator_format_create): use it for text and
12315         subwindows.
12316
12317 2000-04-21  Andy Piper  <andy@xemacs.org>
12318
12319         * glyphs.c (image_instance_device): new function.
12320         (image_instance_frame): new function.
12321         (image_instance_window): new function.
12322         (image_instance_live_p): new function.
12323
12324         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12325         cache to nil.
12326
12327         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12328         (IMAGE_INSTANCE_DOMAIN): new accessor.
12329         (XIMAGE_INSTANCE_DOMAIN): ditto.
12330
12331         * glyphs-x.c (x_finalize_image_instance): device->domain.
12332
12333         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12334         (mswindows_finalize_image_instance): ditto.
12335
12336         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12337         (gif_instantiate): ditto.
12338         (png_instantiate): ditto.
12339         (tiff_instantiate): ditto.
12340
12341         * glyphs.c (instantiate_image_instantiator): use domain rather
12342         than device.
12343         (mark_image_instance): device -> domain.
12344         (print_image_instance): ditto.
12345         (finalize_image_instance): ditto.
12346         (image_instance_equal): ditto.
12347         (allocate_image_instance): ditto.
12348         (Fcolorize_image_instance): ditto.
12349         (query_string_geometry): ditto.
12350         (image_instantiate): ditto
12351         (query_string_font): ditto.
12352         (image_instantiate): ditto.
12353         (update_subwindow): ditto.
12354         (unmap_subwindow): ditto.
12355         (map_subwindow): ditto.
12356         (subwindow_instantiate): ditto.
12357
12358         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12359         (DOMAIN_FRAME): ditto.
12360         (DOMAIN_WINDOW): ditto.
12361         (DOMAIN_LIVE_P): ditto.
12362         (XDOMAIN_DEVICE): ditto.
12363         (XDOMAIN_FRAME): ditto.
12364         (XDOMAIN_WINDOW): ditto.
12365
12366         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12367         a valid specifier domain.
12368
12369 2000-04-19  Andy Piper  <andy@xemacs.org>
12370
12371         * glyphs-widget.c (syms_of_glyphs_widget): remove
12372         widget-callback-current-channel.
12373         (vars_of_glyphs_widget): ditto.
12374         * glyphs.h: ditto
12375
12376         * gui.c (get_gui_callback): revert to previous behaviour.
12377
12378 2000-04-18  Andy Piper  <andy@xemacs.org>
12379
12380         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12381         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12382         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12383
12384         * glyphs.c (image_instance_equal): add margin_width.
12385         (image_instance_hash): ditto.
12386
12387         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12388         (layout_query_geometry): ditto.
12389         (layout_layout): ditto.
12390         (syms_of_glyphs_widget): add margin-width.
12391         (image_instantiator_layout): allow margin-width.
12392
12393         * glyphs.c (update_widget_instances): make a normal function.
12394         (syms_of_glyphs): remove Qupdate_widget_instances.
12395         * glyphs.h: ditto.
12396
12397         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12398         so that we don't corrupt ideas about the last event or
12399         command. Remove widget-callback-current-channel fiddling.
12400         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12401
12402 2000-05-01  Martin Buchholz <martin@xemacs.org>
12403
12404         * XEmacs 21.2.33 is released.
12405
12406 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12407
12408         * make-src-depend: Allow dots in header file name.
12409
12410 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12411
12412         * mule-charset.h (struct charset_lookup): Add
12413         next_allocated_1_byte_leading_byte and
12414         next_allocated_2_byte_leading_byte.
12415         * mule-charset.c: Move above two variables so that those values
12416         will be dumped.
12417
12418 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12419
12420         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12421         when string length is zero.
12422         (find_charsets_in_emchar_string): Ditto.
12423
12424 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12425
12426         * lisp.h: extern Qdialog and Qmenubar.
12427
12428         * gui-x.c: added events.h.
12429                 also fixed typo which made the file uncompilable.
12430
12431         * general.c: Added Qmenubar and Qdialog
12432
12433 2000-04-28  Ben Wing  <ben@xemacs.org>
12434
12435         * frame-msw.c (mswindows_init_frame_1):
12436         * frame-msw.c (mswindows_mark_frame):
12437         * event-msw.c (mswindows_enqueue_dispatch_event):
12438         * console-msw.h:
12439         * console-msw.h (struct mswindows_frame):
12440         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12441         there are now three hash tables for callbacks.
12442         mswindows_enqueue_dispatch_event is no longer static.
12443
12444         * dialog-x.c (maybe_run_dbox_text_callback):
12445         * dialog-x.c (dbox_descriptor_to_widget_value):
12446         switch to new cons3 form for callbacks.
12447
12448         * glyphs-msw.c (mswindows_register_gui_item):
12449         * glyphs-msw.c (mswindows_widget_instantiate):
12450         * glyphs-msw.c (add_tree_item):
12451         * glyphs-msw.c (add_tab_item):
12452         new image instance parameter, so it can be passed to callback-ex.
12453         respect :callback-ex as well as :callback.
12454
12455         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12456         add :callback-ex.
12457
12458         * glyphs.c (print_image_instance):
12459         prettify, e.g. now prints widget type.
12460
12461         * gui-x.h:
12462         certain funs have new image instance parameter.
12463
12464         * gui.c:
12465         * gui.c (get_gui_callback):
12466         * gui.c (gui_item_add_keyval_pair):
12467         * gui.c (gui_item_init):
12468         * gui.c (gui_add_item_keywords_to_plist):
12469         * gui.c (mark_gui_item):
12470         * gui.c (gui_item_hash):
12471         * gui.c (gui_item_equal):
12472         * gui.c (copy_gui_item):
12473         * gui.c (syms_of_gui):
12474         recognize callback-ex in a number of places.
12475         also, fix the annoying "can't get out of yes-no dialog" bug.
12476
12477         * gui.h:
12478         * gui.h (struct Lisp_Gui_Item):
12479         recognize callback-ex in a number of places.
12480
12481         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12482         new parameter in button_item_to_widget_value.
12483
12484         * glyphs-x.c (x_update_widget):
12485         * glyphs-x.c (x_button_instantiate):
12486         * glyphs-x.c (x_button_update):
12487         * glyphs-x.c (x_progress_gauge_instantiate):
12488         * glyphs-x.c (x_edit_field_instantiate):
12489         * glyphs-x.c (x_combo_box_instantiate):
12490         * glyphs-x.c (x_tab_control_instantiate):
12491         * glyphs-x.c (x_label_instantiate):
12492         new image instance parameter in various places.
12493
12494         * event-Xt.c:
12495         * event-Xt.c (enqueue_Xt_dispatch_event):
12496         this fun gets exported.
12497
12498         * gui-msw.c:
12499         * gui-msw.c (mswindows_handle_gui_wm_command):
12500         handle both :callback and :callback-ex, and generate our own
12501         event because it's one of the callback-ex arguments.
12502
12503         * gui-x.c:
12504         * gui-x.c (popup_selection_callback):
12505         handle both :callback and :callback-ex, and generate our own
12506         event because it's one of the callback-ex arguments.
12507         * gui-x.c (button_item_to_widget_value):
12508         * gui-x.c (gui_items_to_widget_values_1):
12509         * gui-x.c (gui_item_children_to_widget_values):
12510         * gui-x.c (gui_items_to_widget_values):
12511         new image instance parameter in various places.
12512
12513         * fns.c (Freplace_list):
12514         fix small typo in doc string.
12515
12516         * lisp.h:
12517         declare enqueue_Xt_dispatch_event.
12518
12519 2000-04-28  Ben Wing  <ben@xemacs.org>
12520
12521         * buffer.c:
12522         * buffer.c (Frecord_buffer):
12523         * buffer.c (syms_of_buffer):
12524         delete record-buffer-hook.
12525
12526         * fns.c:
12527         * fns.c (Freplace_list):
12528         * fns.c (syms_of_fns):
12529         new primitive replace-list.
12530
12531         * frameslots.h:
12532         slot for old buffer-alist.
12533
12534         * lisp.h:
12535         exfun replace-list.
12536
12537         * redisplay.c:
12538         * redisplay.c (redisplay_frame):
12539         * redisplay.c (syms_of_redisplay):
12540         * redisplay.c (vars_of_redisplay):
12541         new hook buffer-list-changed-hook.
12542         call it.
12543
12544 2000-04-27  Ben Wing  <ben@xemacs.org>
12545
12546         * extents.h: extern in_modeline_generation.
12547
12548         * redisplay.c (generate_formatted_string_db): set
12549         in_modeline_generation.
12550
12551         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12552         flags if in modeline generation.  otherwise frame-modified-tick
12553         is ticked far too often.
12554         Declare in_modeline_generation.
12555
12556 2000-04-26  Ben Wing  <ben@xemacs.org>
12557
12558         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12559         option.
12560         (vars_of_emacs): add quick-build as an error-checking option.
12561         A bit kludgy, but there doesn't seem much point in creating
12562         a real var for this.
12563
12564         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12565
12566 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12567
12568         * redisplay.h (struct display_line): Add a new variable,
12569         line_continuation.
12570
12571         * redisplay.c (create_text_block): Set dl->line_continuation if
12572         the line continues.
12573         (create_string_text_block): Ditto.
12574         (regenerate_window_incrementally): Use line_continuation instead
12575         of searching continuation glyph.
12576         (add_margin_runes): Call add_glyph_rune.
12577         (add_glyph_rune): Handle margin glyph.
12578
12579 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12580
12581         * filelock.c (fill_in_lock_file_name):
12582         ANSIfy.
12583         Check for IS_ANY_SEP instead of '/'.
12584         (lock_file_1):
12585         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12586         Never check errno without first seeing that system call failed.
12587         (unlock_file): Add GCPRO.
12588         (Flock_buffer): Fix docstring.
12589         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12590
12591 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12592
12593         * sysdep.c (get_pty_max_bytes):
12594         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12595         strings longer than 252 bytes.
12596
12597         * md5.c: Unconditionally include ANSI header <limits.h>
12598
12599         * glyphs-x.c (convert_EImage_to_XImage):
12600         * lisp-union.h (union Lisp_Object):
12601         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12602
12603 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12604
12605         * filelock.c (current_lock_owner): Remove unused variable o, p.
12606
12607 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12608
12609         * callint.c: Remove multiply defined symbol Qlet
12610         (syms_of_callint): ditto.
12611
12612 2000-04-14  Andy Piper  <andy@xemacs.org>
12613
12614         * general.c (syms_of_general): add last-command, this-command, let
12615         and funcall.
12616
12617         * lisp.h: declare various symbols.
12618
12619         * glyphs.h: declare Qwidget_callback_current_channel;
12620
12621         * glyphs-widget.c (syms_of_glyphs_widget): add
12622         Qgui_callback_current_channel.
12623         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12624
12625         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12626         widget-callback-current-channel when invoking the interactive
12627         arg. Also bind last-command and next-command when invoking the
12628         widget updates.
12629         * gui-x.c (popup_selection_callback): ditto.
12630
12631         * gui.c (get_gui_callback): massage args so that we are always
12632         calling eval. This allows us to add our own variable bindings
12633         outside.
12634
12635         * glyphs-x.c (x_button_instantiate): use
12636         gui_items_to_widget_values since this is GC safe.
12637         (x_progress_gauge_instantiate): ditto.
12638         (x_edit_field_instantiate): ditto.
12639         (x_label_instantiate): ditto.
12640
12641         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12642         (emacs_Xt_event_widget_focus_out): new function
12643         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12644         focus.
12645         (emacs_Xt_event_add_widget_actions): new function. add focus
12646         functions as actions.
12647         (init_event_Xt_late): use it.
12648
12649 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12650
12651         * event-stream.c (Fdispatch_event): Doc fix.
12652
12653 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12654
12655         * postgresql.c: Remove all references to PQsetenv*.
12656
12657         * postgresql.h: Remove references to PGsetenvHandler object.
12658         * lrecord.h (lrecord_type): Ditto.
12659
12660 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12661
12662         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12663         real_heigh and real_width members, and accessor macros for these.
12664
12665         * glyphs-msw.c (init_image_instance_geometry): New function.
12666         (init_image_instance_from_dibitmap): Use it.
12667         (mswindows_resource_instantiate): Use it.
12668         (init_image_instance_from_xbm_inline): Use it.
12669         (mswindows_initialize_image_instance_mask): Use real bitmap
12670         geometry.
12671         (mswindows_create_resized_bitmap): Ditto.
12672         (mswindows_create_resized_mask): Ditto.
12673
12674         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12675         and bitmap to their surface size.
12676
12677 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12678
12679         * process-unix.c (unix_send_process): Guard against process MIA
12680         after Faccept_process_output.
12681
12682 2000-04-11  Ben Wing  <ben@xemacs.org>
12683
12684         * eval.c (unbind_to_hairy): fix brokenness introduced by
12685         nanosecond speed improvements.
12686
12687 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12688
12689         * sunplay.c (init_device): To play sounds correctly, the device
12690         apparently needs to be initialized at least once by XEmacs.  Make
12691         it so.
12692
12693 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12694
12695         * redisplay.c (add_margin_runes): Add text image glyph
12696           handling.
12697
12698 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12699
12700         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12701         gcc is newer than 2.5.
12702
12703 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12704
12705         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12706
12707         * fns.c (size_bit_vector):
12708         * alloc.c (size_vector):
12709         (make_vector_internal):
12710         (make_bit_vector_internal):
12711         (sweep_bit_vectors_1):
12712         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12713
12714 2000-04-06  Andy Piper  <andy@xemacs.org>
12715
12716         * gmalloc.c (malloc): undo previous change.
12717         (malloc): ditto.
12718         (free): ditto.
12719         (realloc): ditto.
12720
12721 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12722
12723         * line-number.c (buffer_line_number): Revert to former version.
12724
12725 2000-04-06  Andy Piper  <andy@xemacs.org>
12726
12727         * gmalloc.c (malloc): add error checking.
12728         (malloc): ditto.
12729         (free): ditto.
12730         (realloc): ditto.
12731
12732         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12733         button_item_to_widget_value arg.
12734
12735         * glyphs-x.c (x_button_instantiate): add extra
12736         button_item_to_widget_value arg.
12737         (x_progress_gauge_instantiate): ditto.
12738         (x_edit_field_instantiate): ditto.
12739         (x_label_instantiate): ditto.
12740
12741         * gui-x.c (gui_items_to_widget_values_1): add extra
12742         button_item_to_widget_value arg.
12743         (button_item_to_widget_value): add extra menu_item_p arg.
12744
12745         * gui-x.h: change signature of button_item_to_widget_value.
12746
12747         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12748         button_item_to_widget_value arg.
12749
12750 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12751
12752         * buffer.h (struct buffer): auto_save_modified should be long.
12753
12754 2000-04-05  Andy Piper  <andy@xemacs.org>
12755
12756         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12757         type.
12758         (button_query_geometry): give a little more room so that athena
12759         buttons fit.
12760
12761 2000-04-05  Andy Piper  <andy@xemacs.org>
12762
12763         * faces.c (complex_vars_of_faces): The widget face should inherit
12764         the font of the gui-element face.
12765
12766 2000-04-04  Andy Piper  <andy@xemacs.org>
12767
12768         * glyphs-x.c (x_button_update): new function. unconditionally
12769         update a button's state when the instance is dirty.
12770         (image_instantiator_format_create_glyphs_x): add x_button_update.
12771         (x_widget_instantiate): remove old resize cruft.
12772
12773 2000-04-02  Andy Piper  <andy@xemacs.org>
12774
12775         * frame.c (change_frame_size_1): The introduction of gutters means
12776         that we need to allow 0 as a potential frame dimension.
12777
12778 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12779
12780         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12781         image glyph if allow_cursor.
12782         (add_hscroll_rune): Don't allow cursor to border glyph.
12783         (create_text_block): Ditto.
12784
12785         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12786         text not in buffer.
12787         (redisplay_output_layout): Call ensure_face_cachel_complete for
12788         text image glyph.
12789
12790
12791 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12792
12793         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12794
12795         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12796         not in buffer
12797
12798         * redisplay-tty.c (tty_output_display_block): Delete the routine
12799         for text image glyph
12800         * redisplay-x.c (x_output_display_block): ditto
12801         * redisplay-msw.c (mswindows_output_display_block): ditto
12802
12803 2000-02-02  Mike Alexander  <mta@arbortext.com>
12804
12805         Note: Some of these were committed by accident as part of other
12806         patches.
12807
12808         * regex.c (regex_compile): Avoid compiler warnings.
12809
12810         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12811
12812         * nt.h: Declare term_ntproc correctly.
12813
12814         * nt.c: Remove incorrect declaration of get_home_directory which
12815         is declared correctly in lisp.h.
12816
12817         * keymap.c (get_keyelt): Avoid compiler warnings.
12818         (raw_lookup_key_mapper): Avoid compiler warnings.
12819
12820         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12821
12822         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12823
12824         * filemode.c (mode_string): Avoid compiler warnings.
12825
12826         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12827         avoid warning.
12828
12829         * events-mod.h: Undef some things that winuser.h defines differently.
12830
12831         * data.c (Faset): Avoid compiler warnings.
12832
12833         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12834
12835 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12836
12837         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12838         Fall through to simple beep on error.
12839         Replace "extern" by real header file.
12840
12841         * linuxplay.c: Use nativesound.h
12842         (play_sound_data): Return error code. Be less verbose on error.
12843
12844         * sunplay.c: Use nativesound.h
12845         (play_sound_data): Return error code. Be less verbose on error.
12846
12847         * ntplay.c: Use nativesound.h
12848         (play_sound_data): Return fake error code
12849
12850         * sgiplay.c: Use nativesound.h
12851         (play_sound_data): Return error code
12852
12853         * hpplay.c: Use nativesound.h, partially implement
12854         new error code. Break compilation until finished.
12855         (play_sound_data): error code.
12856
12857         * nativesound.h (play_sound_file):
12858           (play_sound_data): Prototype in new header.
12859
12860 2000-03-31  Andy Piper  <andy@xemacs.org>
12861
12862         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12863         for toggle and radio buttons.
12864         (image_instantiator_buttons): use it.
12865
12866 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12867
12868         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12869         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12870         found. Scrollbar event probably belonged to some old config.
12871
12872 2000-03-31  Andy Piper  <andy@xemacs.org>
12873
12874         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12875         than 1.
12876         (initialize_widget_image_instance): default layout to
12877         LAYOUT_HORIZONTAL rather than 0.
12878         (widget_instantiate): reverse the item list at the end rather than
12879         every iteration.
12880         (layout_layout): re-code for the border text at the front of the
12881         item list rather than at the end.
12882         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12883         provided by the user.
12884         (widget_query_geometry): comment.
12885
12886 2000-03-30  Andy Piper  <andy@xemacs.org>
12887
12888         * glyphs-widget.c (image_instantiator_layout): allow standard
12889         widget keywords in layouts.
12890
12891         * gutter.c (output_gutter): cope with nil gutter contents.
12892
12893         * frame.c (Fset_frame_properties): add gutter docs.
12894
12895 2000-03-29  Andy Piper  <andy@xemacs.org>
12896
12897         * toolbar-msw.c (TBSTYLE_FLAT): add.
12898         (mswindows_output_toolbar): minor fiddling.
12899
12900 2000-03-29  Andy Piper  <andy@xemacs.org>
12901
12902         * gutter.c (output_gutter): force gutter size recalculation if
12903         what we are trying to display won't fit.
12904         (update_gutter_geometry): new function. A per-gutter version of
12905         update_frame_gutter_geometry.
12906         (update_frame_gutter_geometry): use it.
12907         (redraw_exposed_gutter): add extra debugging output.
12908
12909 2000-03-28  Mike Alexander  <mta@arbortext.com>
12910
12911         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12912         (pdump_file_unmap): Implement it on Windows
12913         (pdump_file_get): Save alocated handles for pdump_file_unmap
12914
12915 2000-03-28  Andy Piper  <andy@xemacs.org>
12916
12917         * gui.c (get_gui_callback): treat Quit specially.
12918
12919 2000-03-27  Andy Piper  <andy@xemacs.org>
12920
12921         * glyphs.c (image_instantiate): be careful to check in the same
12922         way we assigned.
12923
12924 2000-03-27  Didier Verna  <didier@xemacs.org>
12925
12926         * config.h.in: define the proper SMART_INCLUDE macro.
12927         handle renaming of `foo_h_path' to `foo_h_file'.
12928
12929         * database.c: ditto.
12930
12931         * emacs.c: ditto.
12932
12933         * linuxplay.c: ditto.
12934
12935         * terminfo.c: ditto.
12936
12937         * tooltalk.h: ditto.
12938
12939 2000-03-27  Andy Piper  <andy@xemacs.org>
12940
12941         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12942         gets updated whenever the face might have changed.
12943
12944 2000-03-26  Mike Alexander  <mta@arbortext.com>
12945
12946         * dumper.c (pdump_resource_free): Fix the comment.
12947
12948 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12949
12950         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12951
12952 2000-03-22  Mike Alexander  <mta@arbortext.com>
12953
12954         * dumper.c: Include Windows headers on Windows
12955         (pdump_resource_free): Add a body to the function
12956         (pdump_load): exe_name -> exe_path and add some comments.
12957
12958 2000-03-25  Mike Alexander  <mta@arbortext.com>
12959
12960         * gui.c (copy_gui_item_tree): Return a value in all cases
12961
12962 2000-03-21  Didier Verna  <didier@xemacs.org>
12963
12964         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12965         lwlib/config.h.in.
12966         (SMART_INCLUDE): new macro.
12967         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12968         the proper location.
12969
12970         * postgresql.c: use it.
12971
12972         * inline.c: ditto.
12973
12974 2000-03-24  Andy Piper  <andy@xemacs.org>
12975
12976         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12977         do this.
12978
12979 2000-03-24  Andy Piper  <andy@xemacs.org>
12980
12981         * redisplay-output.c (compare_runes): use image_instance_changed
12982         to detect changes. Do not depend on glyphs_changed, only depend on
12983         dirtiness.
12984          (redisplay_output_layout): add debug messages.
12985         (compare_runes): ditto.
12986
12987         * glyphs.h: declare new functions.
12988         (struct Lisp_Image_Instance): remove percent and associated
12989         accessors.
12990
12991         * gui.h: declare new copying functions.
12992
12993         * gui.c (copy_gui_item_tree): new function.
12994         (copy_gui_item): new function.
12995         (gui_item_id_hash): revert to standard hash.
12996         (gui_item_hash): ditto.
12997         (gui_item_hash_internal): deleted.
12998         (mark_gui_item): mark value.
12999         (gui_item_add_keyval_pair): add value.
13000         (gui_item_init): ditto.
13001         (gui_add_item_keywords_to_plist): ditto.
13002         (gui_item_equal): ditto.
13003         (syms_of_gui): add Q_value.
13004
13005         * glyphs-x.c (x_progress_gauge_update): use pending items and
13006         value for setting the state.
13007         (x_update_widget): don't set items from pending here.
13008
13009         * glyphs-widget.c (update_widget): update items here.
13010         (progress_gauge_set_property): use items for storing value. Put
13011         new value in pending items.
13012
13013         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13014         items for new value. Convert percent -> value.
13015         (mswindows_tab_control_update): don't update items here.
13016
13017         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13018         (update_subwindow): ditto.
13019         (image_instance_changed): new function. Compare hash values and
13020         past and present widget items.
13021         (image_instantiate): We more careful about where we instantiate
13022         things.
13023         (image_instantiate): add error checking.
13024
13025         * gutter.c (syms_of_gutter): use -hook.
13026
13027 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13028
13029         * console-tty.c (Fset_console_tty_input_coding_system): Use
13030         Qkeyboard.
13031         (Fset_console_tty_output_coding_system): Use Qterminal.
13032         (tty_init_console): Use Qkeyboard and Qterminal.
13033
13034 2000-03-21  Ben Wing  <ben@xemacs.org>
13035
13036         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13037         From Mike Alexander <mta@arbortext.com>.
13038
13039 2000-03-21  Ben Wing  <ben@xemacs.org>
13040
13041         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13042         process brokenness.  Proper implementation to come.
13043         * callproc.c:
13044         Rename call-process-internal to old-call-process-internal.
13045         New impl. in process.el.
13046
13047 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13048
13049         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13050
13051 2000-03-20  Andy Piper  <andy@xemacs.org>
13052
13053         * glyphs.c (full_list_hash): make hashes of the same elements in
13054         different orders return different values.
13055
13056 2000-03-20  Martin Buchholz <martin@xemacs.org>
13057
13058         * XEmacs 21.2.32 is released.
13059
13060 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13061
13062         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13063         (DFC_MALLOC_USE_CONVERTED_DATA):
13064         Add aliasing-safe casts to allow use with char* or unsigned char*
13065         lvalues.
13066
13067         * eldap.c (Fldap_open):
13068         (Fldap_search_basic):
13069         (Fldap_add):
13070         (Fldap_modify):
13071         Make C++-compilable.
13072         Make sure GCPRO'ed variables are initialized.
13073         Use temp variables to avoid repeated calls to Flength.
13074
13075 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13076
13077         * sysfile.h:
13078         Make sure PATH_MAX is always defined.
13079         Include limits.h for PATH_MAX.
13080         Deprecate use of MAXPATHLEN.
13081
13082 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13083
13084         * emacs.c: Add reinit_vars_of_fileio.
13085         * symsinit.h: Add reinit_vars_of_fileio.
13086         * fileio.c (reinit_vars_of_fileio): New.
13087         * fileio.c (Fmake_temp_name):
13088         Initialize temp_name random number from microseconds to make
13089         collisions even less likely.  Initialize always at process startup
13090         time.  (make-temp-name) used to return the same file name twice in
13091         a row when PDUMP.
13092         Random stylistic fiddling.
13093         Comment fixes.
13094
13095 2000-03-20  Andy Piper  <andy@xemacs.org>
13096
13097         * glyphs.c (image_instantiate): allow text glyphs to be
13098         instantiated in the minibuffer window.
13099
13100 2000-03-19  Andy Piper  <andy@xemacs.org>
13101
13102         * glyphs.c (image_instance_hash): be careful about which items we
13103         hash on.
13104
13105         * glyphs-widget.c (tab_control_set_property): record into pending
13106         items rather than the actual items.
13107
13108         * glyphs-x.c (x_update_widget): use pending items to update with.
13109
13110         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13111         to update with.
13112
13113         * glyphs.c (mark_image_instance): mark pending items.
13114
13115         * window.c (Fset_window_configuration): record the buffer.
13116         (Fselect_window): totally revert previous change which breaks many
13117         things.
13118
13119 2000-03-18  Andy Piper  <andy@xemacs.org>
13120
13121         * glyphs-msw.c (mswindows_tab_control_update): force selected
13122         item.
13123
13124         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13125         window domain cache, otherwise we get inconsistencies at
13126         startup. There is something fishy at startup which can lead to the
13127         minibuffer being the selected window when the gutter content is
13128         instantiated.
13129
13130         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13131         gcpros.
13132         (parse_gui_item_tree_children): ditto.
13133         (parse_gui_item_tree_item): ditto.
13134
13135         * glyphs.c (Fupdate_widget_instances): return something.
13136
13137 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13138
13139         * window.c (Fselect_window): Undo 2000-03-17 change.
13140
13141 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13142
13143         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13144         against v7.0 libraries.  Insta-coredump city until the postgres
13145         folks fix it.
13146
13147 2000-03-17  Andy Piper  <andy@xemacs.org>
13148
13149         * faces.c (complex_vars_of_faces): don't give the widget face an
13150         inherited background pixmap.
13151
13152         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13153         selected item.
13154
13155         * event-stream.c (Fdispatch_non_command_events): return something.
13156
13157         * gutter.c (output_gutter): use widget face.
13158         (clear_gutter): ditto.
13159
13160         * NEWS: adjust again.
13161
13162         * window.c (Fselect_window): make sure this runs to completion to
13163         avoid oddities with Fset_window_configuration.
13164         (Fcurrent_window_configuration): in general do not save the
13165         minibuffer as the selected window.
13166
13167         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13168
13169 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13170
13171         * emacs.c (Frunning_temacs_p): Revert previous patch.
13172         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13173
13174 2000-03-16  Andy Piper  <andy@xemacs.org>
13175
13176         * glyphs-x.c (x_tab_control_update): if no widget values then
13177         return.
13178
13179         * NEWS: update for new features.
13180
13181         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13182         synthetic event to the native system.
13183         (reinit_vars_of_event_Xt): set force_event_pending to
13184         emacs_Xt_force_event_pending.
13185
13186         * events.h (struct event_stream): add force_event_pending.
13187
13188         * specifier.c (recompute_one_cached_specifier_in_window): add
13189         comment.
13190
13191         * redisplay.c (redisplay_frame): don't call
13192         update_frame_subwindows. Reset subwindow cachels when
13193         subwindows_changed, removing this was an optimization too far.
13194
13195         * redisplay-output.c (compare_runes): reorganize so that we catch
13196         glyph changes when we want them. Set optimize_output when this
13197         would help layouts.
13198         (redisplay_output_layout): remove frame_really_changed, use
13199         optimize_output instead.
13200
13201         * redisplay-msw.c (mswindows_output_display_block): reset
13202         optimize_output after outputting a glyph.
13203         * redisplay-x.c (x_output_display_block): ditto.
13204         * redisplay-tty.c (tty_output_display_block): ditto.
13205
13206         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13207         functions.
13208         (gutter_specs_changed): do specific gutter positions.
13209         (top_gutter_specs_changed): new function. Only update the
13210         specified gutter specs.
13211         (bottom_gutter_specs_changed): ditto.
13212         (left_gutter_specs_changed): ditto.
13213         (right_gutter_specs_changed): ditto.
13214
13215         * gui.c (gui_item_hash_internal): new function, does a real hash.
13216         (gui_item_id_hash): use it.
13217         (gui_item_hash): hash the eval'ed gui_item.
13218
13219         * gui-x.c (popup_selection_callback): send an eval event to call
13220         Fupdate_widget_instances.
13221
13222         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13223         to call Fupdate_widget_instances.
13224
13225         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13226         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13227
13228         * glyphs.c: (update_frame_subwindows): deleted.
13229         (Fupdate_widget_instances): new function for updating the dirty
13230         state of widgets that might have changed.
13231         (syms_of_glyphs): add Qupdate_widget_instances.
13232         (full_list_hash): hash a list completely.
13233         (image_instance_hash): use it for items and properties.
13234
13235         * frame-msw.c (mswindows_size_frame_internal): remove unused
13236         variable.
13237
13238         * faces.h (struct face_cachel): fix comment.
13239
13240         * event-stream.c (Fdispatch_non_command_events): new
13241         function. Process non-command events, forcing an event cycle
13242         beforehand.
13243         (syms_of_event_stream): declare.
13244         (event_stream_force_event_pending): new function. Force an event
13245         on the native event queue so that an event cycle will occur next
13246         time we check.
13247
13248         * event-msw.c:
13249         (struct ntpipe_shove_stream):
13250         (mswindows_enqueue_dispatch_event):
13251         (mswindows_dequeue_dispatch_event):
13252         (mswindows_cancel_dispatch_event):
13253         (mswindows_pump_outstanding_events):
13254         (mswindows_drain_windows_queue):
13255         (mswindows_handle_paint):
13256         (mswindows_wnd_proc):
13257         (mswindows_key_to_emacs_keysym):
13258         (get_process_input_waitable):
13259         (emacs_mswindows_delete_stream_pair): re-indent file.
13260         (mswindows_need_event): do not process further fds if the windows
13261         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13262         fixes the 100% cpu problem.
13263         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13264
13265 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13266
13267         * alloc.h: New.
13268         * dumper.h: New.
13269         * dumper.c: New.
13270
13271         * emacs.c: Moved dump file searching to dumper.c.
13272         (Frunning_temacs_p): Fixed.
13273
13274         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13275         last_lrecord_type_index_assigned.
13276
13277 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13278
13279         * symsinit.h: Added reinit parameter to init_console_stream
13280         declaration.
13281
13282         * lisp.h: Added file parameter to pdump_load declaration.
13283
13284         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13285         support.  Added dump file searching.
13286
13287         * config.h.in: Added EMACS_PROGNAME.
13288
13289         * console-stream.c (init_console_stream): Fix reinitialisation
13290         when running from temacs.
13291
13292         * alloc.c (pdump): Add id support.
13293         (pdump_load): Add file parameter and signature/id support.
13294
13295         * Makefile.in.in: Add full pdump support.
13296
13297 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13298
13299         * postgresql.c: Update documentation to reflect latest code
13300         status.
13301         (print_result): Show tuple counts in printed representation when
13302         appropriate.
13303         (Fpq_put_nbytes): MULE-ize.
13304         (Fpq_get_line_async): Ditto.
13305
13306 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13307
13308         * postgresql.c (Fpq_lo_import): Fix return value.
13309         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13310
13311 2000-03-13  Ben Wing  <ben@xemacs.org>
13312
13313         * alloc.c (pdump_load):
13314         Fix compile warning under mswin.
13315
13316 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13317
13318         * postgresql.c: Mule-ization, bug fixes.
13319         Use PG_CODING to encapsulate coding system name changes.
13320         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13321         (pg-coding-system): Create.
13322
13323         (Fpq_conn_defaults): Mule-ize.
13324         (Fpq_connectdb): Mule-ize & bug fix.
13325         (Fpq_connect_start): Mule-ize.
13326         (Fpq_set_client_encoding): Mule-ize.
13327         (Fpq_finish): Document `DEAD' connection status.
13328         (Fpq_clear): Ditto.
13329         (Fpq_pgconn): Mule-ize.
13330         (Fpq_exec): Mule-ize & bug fix.
13331         (Fpq_send_query): Ditto.
13332         (Fpq_get_result): Ditto.
13333         (Fpq_res_status): Mule-ize.
13334         (Fpq_result_error_message): Mule-ize.
13335         (Fpq_ntuples): fix comments.
13336         (Fpq_fname): Mule-ize.
13337         (Fpq_fnumber): Mule-ize.
13338         (Fpq_ftype): fix comments.
13339         (Fpq_get_value): Mule-ize.
13340         (Fpq_cmd_status): Ditto.
13341         (Fpq_cmd_tuples): Ditto.
13342         (Fpq_oid_value): Ditto.
13343         (Fpq_notifies): Ditto.
13344         (Fpq_lo_import): Ditto.
13345         (Fpq_lo_export): Ditto.
13346         (Fpq_get_line): Ditto.
13347         (Fpq_put_line): Mule-ize and bug fix.
13348         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13349
13350 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13351
13352         * postgresql.c (vars_of_postgresql): Mule-ize.
13353         (Fpq_conn_defaults): Ditto.
13354
13355 2000-03-12  Ben Wing  <ben@xemacs.org>
13356
13357         * alloc.c (Fmake_byte_code):
13358         * alloc.c (debug_string_purity_print):
13359         * alloc.c (pdump_backtrace):
13360         * alloc.c (pdump_get_indirect_count):
13361         * alloc.c (pdump_register_sub):
13362         * alloc.c (pdump_register_object):
13363         * alloc.c (pdump_register_struct):
13364         * alloc.c (pdump_dump_data):
13365         * alloc.c (pdump_reloc_one):
13366         Minor cleanups.
13367
13368         * console-msw.c:
13369         * console-msw.c (GetConsoleHwnd):
13370         * console-msw.c (msw_hide_console):
13371         * console-msw.c (msw_show_console):
13372         * console-msw.c (msw_ensure_console_buffered):
13373         * console-msw.c (msw_output_console_string):
13374         * console-msw.c (console_type_create_mswindows):
13375
13376         a) Added functions to manipulate the console window for use with
13377         shell support.
13378
13379         b) Added support for writing text to the console, which is now
13380         used under Windows when xemacs is not being run non-interactively,
13381         to write text that would otherwise be destined for stdout because
13382         under these circumstances, text written to stdout tends to
13383         disappear and not be seen.
13384
13385         * console-msw.h:
13386         * event-Xt.c:
13387         * event-Xt.c (x_event_to_emacs_event):
13388         * event-Xt.c (describe_event_window):
13389         * events-mod.h (XEMACS_MOD_CONTROL):
13390         * events.c:
13391         * events.c (Fmake_event):
13392         * events.c (character_to_event):
13393         * events.c (event_to_character):
13394         * events.c (format_event_object):
13395         * events.c (Fevent_modifiers):
13396         * events.h:
13397         * events.h (struct key_data):
13398         * events.h (struct button_data):
13399         * events.h (struct misc_user_data):
13400         * frame-x.c (Fcde_start_drag_internal):
13401         * frame-x.c (Foffix_start_drag_internal):
13402         * gpmevent.c (Freceive_gpm_event):
13403         * keymap.c:
13404         * keymap.c (bucky_sym_to_bucky_bit):
13405         * keymap.c (control_meta_superify):
13406         * keymap.c (make_key_description):
13407         * keymap.c (keymap_lookup_directly):
13408         * keymap.c (create_bucky_submap):
13409         * keymap.c (keymap_store):
13410         * keymap.c (define_key_check_and_coerce_keysym):
13411         * keymap.c (define_key_parser):
13412         * keymap.c (define_key_alternate_name):
13413         * keymap.c (Fdefine_key):
13414         * keymap.c (raw_lookup_key_mapper):
13415         * keymap.c (struct map_keymap_unsorted_closure):
13416         * keymap.c (map_keymap_unsorted_mapper):
13417         * keymap.c (map_keymap_sort_predicate):
13418         * keymap.c (map_keymap_sorted):
13419         * keymap.c (accessible_keymaps_mapper_1):
13420         * keymap.c (where_is_recursive_mapper):
13421         * keymap.c (describe_map_mapper):
13422         * keymap.c (describe_map_sort_predicate):
13423         * keymap.c (describe_map):
13424         * keymap.c (complex_vars_of_keymap):
13425         And a number of other files, the key modifier preprocessor
13426         constants that xemacs uses have names that conflict with constants
13427         defined under MS Windows for other purposes, so they were renamed
13428         to begin with the prefix XEMACS_. The variables that hold such
13429         modifiers were changed to consistently be of type int to fix
13430         various compile warnings.
13431
13432         * console.c (complex_vars_of_console):
13433         * device.c:
13434         * device-msw.c:
13435         * device-msw.c (mswindows_finish_init_device):
13436         * device-msw.c (msw_get_workspace_coords):
13437         * device-msw.c (mswindows_device_system_metrics):
13438         and various other files, added support for a new
13439         device property called offset-workspace which returns the position
13440         of the upper left corner of the workspace area and goes along with
13441         the existing size-workspace property.
13442
13443         * dialog-msw.c:
13444         * dialog-msw.c (push_bufbyte_string_as_unicode):
13445         * dialog-msw.c (mswindows_popup_dialog_box):
13446         Added support for XEmacs-style accelerator specifications in
13447         button text.  Note: I didn't add support for this under X Windows,
13448         and somebody needs to do this.
13449
13450         * dialog.c:
13451         * dialog.c (Fpopup_dialog_box):
13452         Documented the support for accelerators that was just mentioned.
13453
13454         editfns.c (get_home_directory): Changed behavior under Windows
13455         when HOME not defined; former behavior was irretrievably broken.
13456
13457         * emacs.c:
13458         * emacs.c (main_1):
13459         * emacs.c (main):
13460         * minibuf.c (clear_echo_area_internal):
13461         * minibuf.c (echo_area_append):
13462         * print.c:
13463         * print.c (std_handle_out_external):
13464         * print.c (std_handle_out_va):
13465         * print.c (fatal):
13466         * print.c (write_string_to_stdio_stream):
13467         * print.c (output_string):
13468         * print.c (debug_print):
13469         * print.c (debug_backtrace):
13470         * print.c (debug_short_backtrace):
13471         Cleaned up the code that prints text to stdout so that this can be
13472         changed to output into a console window instead under MS Windows,
13473         as described above.
13474
13475         * eval.c:
13476         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13477         * eval.c (internal_catch):
13478         * eval.c (unwind_to_catch):
13479         * eval.c (throw_or_bomb_out):
13480         * eval.c (condition_case_1):
13481         * eval.c (signal_1):
13482         * eval.c (check_error_state_sanity):
13483         * eval.c (call_with_suspended_errors_1):
13484         * eval.c (call_with_suspended_errors):
13485         * eval.c (reinit_vars_of_eval):
13486         Added code to catch throw loops and check for a pesky bug that may
13487         be gone now.
13488
13489         * event-msw.c:
13490         * event-msw.c (key_needs_default_processing_p):
13491         * event-msw.c (mswindows_wnd_proc):
13492         * event-msw.c (mswindows_modifier_state):
13493         * event-msw.c (emacs_mswindows_quit_p):
13494         * event-msw.c (vars_of_event_mswindows):
13495         a) Added support for using the alt key to select menu items as is
13496         standard under MS Windows.  This is controlled using the variable
13497         menu-accelerator-enabled, just like under X Windows.  There is an
13498         option on the options menu to turn this support on.  I really
13499         think that it should be on by default under Windows, but I'm not
13500         going to make this change yet.
13501
13502         b)  Added support for dynamic display size changes under Windows.
13503
13504         * event-stream.c:
13505         * event-stream.c (maybe_echo_keys):
13506         * event-stream.c (Fnext_event):
13507         * event-stream.c (command_builder_find_leaf):
13508         * event-stream.c (lookup_command_event):
13509         * event-stream.c (execute_command_event):
13510         * event-stream.c (pre_command_hook):
13511         * event-stream.c (post_command_hook):
13512         * event-stream.c (syms_of_event_stream):
13513         * event-stream.c (vars_of_event_stream):
13514         * event-stream.c (complex_vars_of_event_stream):
13515         * events.h (struct command_builder):
13516
13517         a) Tried to clean up a little bit the horribly written x-specific
13518         accelerator code that crept into this file.  I moved this code
13519         into menubar-x.c where it belongs. I also needed to move the
13520         command builder structure into the file events.h because it is
13521         accessed directly by this accelerator code.  What I didn't do, but
13522         which should be done at some point, is to properly abstract this
13523         code using device methods instead of the kludgy way that it
13524         currently hooks into the event code.
13525
13526         b) Added the lisp variables this-command-properties and
13527         last-command- properties, which should be used to synchronize two
13528         adjacent commands in preference to playing games with the variable
13529         this-command, which is typically what happens.
13530
13531         c) Added some slightly nasty code to hook into the lisp support
13532         for shifted- motion-key selection.  This is actually necessary for
13533         somewhat complicated reasons, which are described in
13534         simple.el. (NB: I think the proper thing would be to have the code
13535         that calls the pre and post command hooks also call out to generic
13536         lisp functions in simple.el, where all built-in stuff could be
13537         added.  I will think about this more.)
13538
13539         * event-unixoid.c (poll_fds_for_input):
13540         * lread.c (readchar):
13541         * redisplay-tty.c (tty_clear_frame):
13542         * redisplay-x.c (x_get_gc):
13543         * signal.c (interrupt_signal):
13544         And a whole bunch of other files: fixed up places that printed
13545         directly to stderr to instead call the function stderr_out so that
13546         the changes I made under Windows work correctly.
13547
13548         * filemode.c (mode_string):
13549         Warning fixes.
13550
13551         * frame-msw.c:
13552         * frame-msw.c (mswindows_size_frame_internal):
13553         Fixed the computation of frame size and position to keep the frame
13554         within the workspace area, rather than within the physical
13555         dimensions of the screen, so that the frame doesn't overlap window
13556         manager decorations, such as the start menu and toolbar, typically
13557         at the bottom of the screen.
13558
13559         * frame.c (vars_of_frame):
13560         Changed the default frame title format under MS Windows to consist
13561         of buffername-XEmacs, which is standard under MS Windows.  I think
13562         it might be a good idea to change this everywhere because I think
13563         it is superior to the current frame title format, but this is the
13564         kind of change that is likely to cause some people to get annoyed,
13565         so I'm not making it.
13566
13567         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13568
13569         * gui-msw.c (mswindows_handle_gui_wm_command):
13570         Fixed compile warnings.
13571
13572         * gui-x.c:
13573         * gui-x.c (strdup_and_add_accel):
13574         * gui-x.c (button_item_to_widget_value):
13575         * gui-x.h:
13576         Added code to automatically put an accelerator onto the beginning
13577         of menu items that don't have one as is now the standard, and is
13578         described more later.  Also fixed things so that the menu item
13579         name can be an evaluated expression, again a new standard.
13580
13581         * gui.c:
13582         * gui.c (gui_item_add_keyval_pair):
13583         * gui.c (make_gui_item_from_keywords_internal):
13584         * gui.c (gui_add_item_keywords_to_plist):
13585         * gui.c (gui_item_accelerator):
13586         * gui.c (gui_name_accelerator):
13587         * gui.c (gui_item_included_p):
13588         * gui.c (gui_item_display_flush_left):
13589         * gui.c (gui_item_display_flush_right):
13590         * gui.c (parse_gui_item_tree_item):
13591         * gui.c (parse_gui_item_tree_children):
13592         * gui.c (parse_gui_item_tree_list):
13593         Mule-ized.  Cleanup.  GCPRO addition.
13594
13595         * line-number.c (buffer_line_number):
13596         * lisp.h:
13597         * lisp.h (EMACS_INT_MAX):
13598         Added the manifest constant EMACS_INT_MIN corresponding to the
13599         existing constant EMACS_INT_MAX.  This is partially to fix compile
13600         warnings under Windows, and partly for cleanliness.
13601
13602         * menubar-msw.c:
13603         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13604         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13605         * menubar-msw.c (displayable_menu_item):
13606         * menubar-msw.c (populate_menu_add_item):
13607         * menubar-msw.c (populate_or_checksum_helper):
13608         * menubar-msw.c (populate_menu):
13609         * menubar-msw.c (update_frame_menubar_maybe):
13610         * menubar-msw.c (prune_menubar):
13611         * menubar-msw.c (msw_char_is_accelerator):
13612         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13613         * menubar-msw.c (mswindows_handle_wm_command):
13614         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13615         * menubar-msw.c (mswindows_handle_wm_initmenu):
13616         * menubar-msw.c (mswindows_update_frame_menubars):
13617         * menubar-msw.c (mswindows_free_frame_menubars):
13618         * menubar-msw.c (mswindows_popup_menu):
13619         Fixed a bug in handling accelerators where an extra character
13620         would be displayed in the menu item.  Also generalized the
13621         function displayable_menu_item because it is now used by the
13622         dialog box code as well.  And finally, added code in the functions
13623         that create the menubar to extract a list of accelerators for the
13624         top level menubar, which is used in the event code to determine
13625         whether a particular alt-key combination should be used to invoke
13626         a menu item, or should be passed through to access the standard
13627         XEmacs keymap binding for this key combination.
13628
13629         Much needed GCPROing.
13630
13631         * menubar-x.c:
13632         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13633         * menubar-x.c (menu_item_descriptor_to_widget_value):
13634         * menubar-x.c (restore_in_menu_callback):
13635         * menubar-x.c (x_popup_menu):
13636         * menubar-x.c (menu_move_up):
13637         * menubar-x.c (menu_move_down):
13638         * menubar-x.c (menu_move_left):
13639         * menubar-x.c (menu_move_right):
13640         * menubar-x.c (menu_select_item):
13641         * menubar-x.c (command_builder_operate_menu_accelerator):
13642         * menubar-x.c (menu_accelerator_junk_on_error):
13643         * menubar-x.c (command_builder_find_menu_accelerator):
13644         * menubar-x.c (Faccelerate_menu):
13645         * menubar.h:
13646         Moved a whole bunch of code here that was previously in
13647         event-stream.c as described above.  There is also code connected
13648         to the new standard of adding an accelerator to the beginning of
13649         menu items that don't have one as described above and below.
13650
13651         * menubar.c:
13652         * menubar.c (menu_parse_submenu_keywords):
13653         * menubar.c (Fmenu_find_real_submenu):
13654         * menubar.c (Fnormalize_menu_item_name):
13655         * menubar.c (syms_of_menubar):
13656         * menubar.c (vars_of_menubar):
13657         * menubar.c (complex_vars_of_menubar):
13658
13659         a) Cleaned up a bunch of documentation and improved it.
13660
13661         b) XEmacs now automatically adds an accelerator onto the beginning
13662         of any menu items that don't have one.  I did this because there
13663         will inevitably be some menu items on the main menubar that don't
13664         have accelerators on them because the package that adds that
13665         particular menu item hasn't yet been fixed up to have accelerators
13666         in them and it looked rather strange to have some items with and
13667         some items without accelerators, especially since even in items
13668         without accelerators, you can, at least under windows, still
13669         access the item through an accelerator corresponding to the first
13670         character in the item's name.  If people don't like this behavior,
13671         I can add a variable to turn it off optionally, but I'm not sure
13672         this is a good idea because we really do need to have accelerators
13673         on all of the menu items, and if a package doesn't like the
13674         accelerators being put on the first character, then it should put
13675         the accelerators where they belong.
13676
13677         c) I made a behavior change, which is that the descriptor that
13678         specifies the text of the menu item, which formerly was just a
13679         string, can now also be an evaluated expression.  This makes this
13680         descriptor parallel with all of the others, which could also be
13681         evaluated expressions.  This also obviates the need for the
13682         keyword :label, which was previously listed in the documentation
13683         as unimplemented, and which was for the same purpose.
13684
13685         d) GCPROing.
13686
13687         * ntproc.c:
13688         * ntproc.c (new_child):
13689         * ntproc.c (sys_spawnve):
13690         * ntproc.c (find_child_console):
13691         * ntproc.c (sys_kill):
13692         Fixed compile warnings.  By the way, this file should really go
13693         away entirely, and this will happen as soon as Kirill makes his
13694         final round of process cleanups, which affect the function
13695         call-process.
13696
13697         * process-nt.c:
13698         * process-nt.c (struct nt_process_data):
13699         * process-nt.c (find_process_from_pid):
13700         * process-nt.c (send_signal_the_nt_way):
13701         * process-nt.c (enable_child_signals):
13702         * process-nt.c (find_child_console):
13703         * process-nt.c (send_signal_the_95_way):
13704         * process-nt.c (nt_finalize_process_data):
13705         * process-nt.c (ensure_console_window_exists):
13706         * process-nt.c (nt_create_process):
13707         * process-nt.c (nt_kill_child_process):
13708         * process-nt.c (nt_kill_process_by_pid):
13709         * process-nt.c (nt_open_network_stream):
13710         * process-nt.c (vars_of_process_nt):
13711         Copied over code from Emacs 20.5 to correctly send signals to sub-
13712         processes under Windows 95.  Also added code to automatically
13713         create and hide console window when a sub-process is created under
13714         Windows 95, which obviates the need for the separate runemacs.exe
13715         executable, and finally implemented some variables that were
13716         implemented in Emacs 20.5, but previously not in XEmacs.  These
13717         include mswindows- start-process-share-console and
13718         mswindows-start-process-inherit-error-mode. (Both of these only
13719         apply to Windows 95.)
13720
13721         * regex.c (regex_compile): Fixed a compile warning.
13722
13723         * select-msw.c:
13724         * select-msw.c (mswindows_own_selection):
13725         * select-msw.c (mswindows_get_foreign_selection):
13726         * select-msw.c (mswindows_disown_selection):
13727         * select-msw.c (console_type_create_select_mswindows):
13728         * select-msw.c (syms_of_select_mswindows):
13729         Cleaned up the file and implemented the device method
13730         selection_exists_p, which had accidentally been left out.  Also
13731         removed four lisp functions that were remnants from before the
13732         time when the selection code was properly device abstracted.
13733         These functions are no longer needed because there are generic
13734         equivalents, and because they were added recently and don't exist
13735         in FSF Emacs, I don't think there's any problem with just deleting
13736         them.
13737
13738         * sysdep.c:
13739         * sysdep.c (sys_subshell):
13740         Fixed a compile warning, although in this case there's probably
13741         something wrong with this code, and it ought to be looked into
13742         more thoroughly by somebody who understands it.
13743
13744         * window.c:
13745         * window.c (Fwindow_text_area_height):
13746         * window.c (Fwindow_width):
13747         * window.c (Fwindow_full_width):
13748         * window.c (Fwindow_pixel_width):
13749         * window.c (debug_print_window):
13750         * window.c (syms_of_window):
13751         Added functions window-text-area-height and window-full-width,
13752         which are functions for returning various width and height
13753         characteristics of a window. (One of these functions is necessary
13754         for making the file dialog box work correctly, and the other one
13755         was added for completeness.)  Also added a table to the
13756         documentation for window-height which describes the entire scheme
13757         for accessing width and height characteristics of a window.
13758
13759 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13760
13761         * nt.c (fstat): Added a comment for another problem with
13762         non-encapsulated [f]stat(), reported by Adrian Aichner
13763         <aichner@ecf.teradyne.com>.
13764
13765 2000-03-11  Andy Piper  <andy@xemacs.org>
13766
13767         * window.c (make_dummy_parent): initialize subwindow instance
13768         cache.
13769         (Fset_window_configuration): zero extent_modiff.
13770
13771 2000-03-10  Andy Piper  <andy@xemacs.org>
13772
13773         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13774         more changes can be triggered.
13775         (Fredisplay_frame): ditto.
13776         (Fredraw_device): ditto.
13777         (Fredisplay_device): ditto.
13778         (redisplay_frame): make non-static.
13779         (redisplay_frame): call update_frame_gutter_geometry outside of
13780         display proper.
13781
13782         * gutter.h: declare update_frame_gutter_geometry.
13783
13784         * redisplay.h: declare redisplay_frame.
13785
13786         * gutter.c (update_frame_gutter_geometry): move geometry changes
13787         in update_frame_gutters here. Geometry changes can only occur
13788         outside of redisplay.
13789         (update_frame_gutters): remove geometry change code.
13790         (Fredisplay_gutter_area): make sure that we are in display when we
13791         update and that we have flushed any size changes.
13792
13793 2000-03-11  Andy Piper  <andy@xemacs.org>
13794
13795         * alloc.c (pdump_dump_data): remove i & count shadows.
13796
13797 2000-02-27  Mike Alexander  <mta@arbortext.com>
13798
13799         * sysdep.h: Declare pdump_read_file
13800
13801         * sysdep.c (pdump_read_file): New function
13802
13803         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13804         dump data
13805
13806 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13807
13808         * lrecord.h: add `lrecord_type_pgsetenv'.
13809
13810 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13811
13812         * symsinit.h: declare (vars|syms)_of* functions.
13813         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13814
13815 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13816
13817         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13818
13819         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13820         GCCs.
13821
13822         * emacs.c (main_1): Call postgres initialization code.
13823
13824         * postgresql.h: New file.  PostgreSQL RDBMS support.
13825         * postgresql.c: New file.
13826
13827 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13828
13829         * redisplay-output.c (redisplay_output_display_block): Disable
13830         redundant code.
13831
13832 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13833
13834         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13835         (Fcanna_henkan_next): Ditto.
13836         (Fcanna_bunsetu_henkou): Ditto.
13837         (Fcanna_henkan_kakutei): Ditto.
13838         (Fcanna_henkan_end): Ditto.
13839         (Fcanna_henkan_quit): Ditto.
13840         (Fcanna_henkan_next): Set retun value correctly.
13841         (c2mu): Use unsigned char instead of signed char.
13842
13843 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13844
13845         * emacs.c (main_1): Always call syms_of_gui.
13846         * inline.c: include gui.h
13847
13848 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13849
13850         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13851         converted to Lisp_Object.
13852         (Qtop_bottom): New variable.
13853         (syms_of_redisplay): Initialize it.
13854         * redisplay.h (Vvisible_bell): Ditto.
13855         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13856         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13857         only flash top and bottom.
13858
13859 2000-03-08  Andy Piper  <andy@xemacs.org>
13860
13861         * buffer.c (Frename_buffer): record new buffer name the right way.
13862
13863 2000-03-08  Andy Piper  <andy@xemacs.org>
13864
13865         * glyphs.c (update_subwindow): increase hash depth so that widget
13866         items get picked up properly.
13867
13868         * redisplay-output.c (compare_runes): increase hash depth so that
13869         widget items get picked up properly.
13870
13871 2000-03-08  Andy Piper  <andy@xemacs.org>
13872
13873         * gutter.c (output_gutter): add some debug.
13874
13875         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13876         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13877         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13878
13879         * redisplay-output.c (compare_runes): use display_hash to
13880         determine if glyphs really are not the same.
13881
13882         * glyphs.c (update_subwindow): check display_hash to see if
13883         anything really needs to be updated. If not then do
13884         nothing. Record the display_hash after updating.
13885         (image_instance_equal): compare the image_instance face also.
13886
13887 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13888
13889         * redisplay.h: Fix comment style.
13890
13891 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13892
13893         * consle-msw.h (struct mswindows_frame):
13894         Added new member paint_pending to indicate whether a WM_PAINT
13895         magic event has been queued for this frame.
13896
13897         * event-msw.c (mswindows_drain_windows_queue):
13898         Don't queue a WM_PAINT magic event if one is already queued.
13899         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13900
13901         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13902
13903 2000-03-07  Didier Verna  <didier@xemacs.org>
13904
13905         * dired.c: #include `regex.h' after `sysfile.h'.
13906
13907 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13908
13909         * sound.c (init_nas_sound): Fix compiler warning.
13910
13911         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13912         (FREE_STRUCT_P):
13913         (MARK_STRUCT_AS_FREE):
13914         (MARK_STRUCT_AS_NOT_FREE):
13915         Make `gcc -fstrict-aliasing' work properly.
13916
13917 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13918
13919         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13920         (mswindows_delete_device): Call CoUnnitialize().
13921
13922         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13923
13924 2000-02-25    <CraigL@DyCon.com>
13925
13926         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13927         <errno.h>.
13928
13929         * sysdep.c: This extern declaration for environ prevents MinGW
13930         from finding the variable in CRTDLL.DLL.
13931
13932         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13933         windows headers.
13934         (SHGFI_EXETYPE): ..
13935         (WM_MOUSEWHEEL): ..
13936         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13937         definitions.
13938         (MMRESULT): Removed, now defined in cygwin's windows headers.
13939         (TIMECAPS): ..
13940         (uid_t,gid_t,pid_t,ssize_t): ..
13941         (_timeb): Removed, MinGW defines both _timeb and timeb.
13942         (HAVE_H_ERRNO): Added.
13943         (HAVE_TZNAME): Added, configure is not detecting this.
13944
13945 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13946
13947         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13948         * syntax.c (syntax_match): Use it.
13949
13950         * cmds.c: Import auto-fill-chars from FSF Emacs.
13951         (Vauto_fill_chars): New variables.
13952         (internal_self_insert): Check Vauto_fill_chars.
13953         (vars_of_cmds):
13954         Declare auto-fill-chars as a Lisp variable and initialize it.
13955
13956 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13957
13958         * fileio.c (Fmake_symbolic_link):
13959         (Ffile_symlink_p):
13960         Run handlers even if local machine doesn't have symlinks.
13961
13962 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13963
13964         * event-msw.c (mswindows_drain_windows_queue):
13965         Don't generate paint magic events for non-XEmacs frames.
13966
13967 2000-03-05  Andy Piper  <andy@xemacs.org>
13968
13969         * redisplay.c (redisplay_frame): generate_displayable_area and
13970         friends assumes that we are not in GC, we therefore have to make
13971         sure that this doesn't happen.
13972
13973         * gutter.c (calculate_gutter_size): generate_displayable_area
13974         assumes that we are not in GC, we therefore have to make sure that
13975         this doesn't happen.
13976
13977 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13978
13979         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13980
13981 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13982
13983         * redisplay.c (regenerate_window): Make sure we set a sane value
13984         for end_pos even if we jump out of the loop.
13985         (regenerate_window): Answer Ben's question :-).
13986         (start_end_of_last_line): Add may_error argument.
13987         (start_of_last_line):
13988         (end_of_last_line): Pass may_error = 0.
13989         (end_of_last_line_may_error): New function.
13990         (pixel_to_glyph_translation): Use it, so we don't crash in
13991         event_to_glyph.
13992
13993 2000-03-04  Andy Piper  <andy@xemacs.org>
13994
13995         * window.h (struct window): add gutter_extent_modiff.
13996
13997         * window.c (allocate_window): zero out gutter_extent_modiff.
13998
13999         * redisplay.h: declare sync_display_line_structs.
14000
14001         * redisplay.c (add_glyph_rune): add a better comment.
14002
14003         * redisplay-output.c (sync_display_line_structs): made non-static.
14004         (compare_runes): remove unneccesary glyph cachel access.
14005
14006         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14007
14008         * gutter.c (output_gutter): don't output the gutter if extent
14009         changes only involve extents in buffers. use 4 sets of display
14010         lines.
14011         (gutter_extent_signal_changed_region_maybe): new function. Mark
14012         extents in gutters as changed.
14013         (update_frame_gutters): use 4 sets of display lines.
14014         (reset_gutter_display_lines): ditto.
14015         (free_frame_gutters): ditto.
14016         (redraw_exposed_gutter): force output of gutters.
14017
14018         * frame.h (struct frame): add 4 sets of gutter display lines.
14019
14020         * extents.c: (extent_changed_for_redisplay): signal changes to
14021         extents in strings in the gutter as well as extents in buffers.
14022
14023 2000-03-02  Andy Piper  <andy@xemacs.org>
14024
14025         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14026
14027         * frame.c (Fmake_frame): make sure the gutters get initialized
14028         after the frame is visible.
14029         (set_frame_selected_window): re-arrange compilation macros a
14030         little.
14031         (change_frame_size_1): mark gutters changed.
14032
14033         * device.c (Fset_device_class): mark gutters changed.
14034
14035 2000-03-01  Andy Piper  <andy@xemacs.org>
14036
14037         * window.c (window_top_frame_gutter_height): deleted.
14038         (window_bottom_frame_gutter_height): ditto.
14039         (window_left_frame_gutter_height): ditto.
14040         (window_right_frame_gutter_height): ditto.
14041         (window_top_gutter_height): don't use them.
14042         (window_bottom_gutter_height): ditto.
14043         (window_left_gutter_width): ditto.
14044         (window_right_gutter_width): ditto.
14045         (Fsplit_window): ditto.
14046         (Fwindow_pixel_edges): don't use border dimensions here.
14047
14048         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14049         (update_scrollbar_instance): ditto.
14050
14051         * redisplay.c (generate_modeline): don't take gutters into account.
14052         (generate_modeline): ditto.
14053         (redisplay_frame): small gutter display optimization.
14054
14055         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14056
14057         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14058         gutters into account.
14059
14060         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14061         for window position and type.
14062
14063         * gutter.c (get_gutter_coords): fix for frame gutters.
14064         (update_frame_gutters): update frame geometry if the gutters have
14065         changed.
14066         (init_frame_gutters): record current gutter geometries.
14067
14068         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14069         var.
14070         (mswindows_widget_instantiate): ditto.
14071
14072         * frame.h (struct frame): add current_gutter_bounds.
14073
14074         * frame.c (change_frame_size_1): position window and minibuffer
14075         appropriately taking into account the frame gutters.
14076
14077         * frame-x.c: (x_initialize_frame_size): take into account the
14078         frame gutters.
14079
14080 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14081
14082         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14083
14084 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14085
14086         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14087
14088 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14089
14090         * file-coding.c (reset_decoding_stream): Clear previous
14091         detection state when autodetect.
14092
14093 2000-02-29  Didier Verna  <didier@xemacs.org>
14094
14095         * extents.c (set_extent_glyph_1): don't require extents to be
14096         attached.
14097
14098 2000-02-27  Andy Piper  <andy@xemacs.org>
14099
14100         * gutter.c (Fset_default_gutter_position): don't default left and
14101         right gutter visibility to t.
14102         (Fset_default_gutter_position): run
14103         default-gutter-position-changed-hook.
14104         (syms_of_gutter): add default-gutter-position-changed-hook.
14105
14106 2000-02-26  Andy Piper  <andy@xemacs.org>
14107
14108         * specifier.c (Fmake_specifier): add gutter references.
14109
14110         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14111
14112         * lisp.h: declare Fvalid_plist_p.
14113
14114         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14115         as changed.
14116         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14117         well as its visibility so that it gets reconstructed.
14118         (construct_window_gutter_spec): new function. Construct a string
14119         to be displayed in the gutter from a plist of strings. Take care
14120         to only use elements that are declared as visible.
14121         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14122         WINDOW_GUTTER.
14123         (gutter_validate): allow plists of strings in the specifier.
14124         (gutter_specs_changed): construct the real_gutter from the gutter
14125         specs using construct_window_gutter_spec.
14126         (gutter_visible_validate): gutter-visible is a new specifier type.
14127         (Fgutter_visible_specifier_p): new function for the new specifier.
14128         (syms_of_gutter): declare gutter-visible and
14129         Fgutter_visible_specifier_p.
14130         (specifier_type_create_gutter): intitalize new gutter-visible
14131         specifier.
14132         (reinit_specifier_type_create_gutter): ditto.
14133         (specifier_vars_of_gutter): use new specifier type for gutter
14134         visibility.
14135         (init_frame_gutters): construct real_gutter correctly.
14136         (Fgutter_specifier_p): beef up documentation.
14137         (Fgutter_size_specifier_p): ditto.
14138
14139         * winslots.h: add real_gutter slots.
14140
14141 2000-02-25  Andy Piper  <andy@xemacs.org>
14142
14143         * device-msw.c: Be kind to older cygwin versions. From Raymond
14144         Toy <toy@rtp.ericsson.se>.
14145
14146         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14147         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14148
14149 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14150
14151         * elhash.c (MARK_OBJ): Practice macro hygiene.
14152
14153 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14154
14155         * miscplay.c: s/__inline__/inline/g;
14156         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14157         (get_device_compdc): INLINE ==> static inline
14158         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14159         find -name '*.h' | \
14160         xargs global-replace \
14161         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14162
14163 2000-02-25  Andy Piper  <andy@xemacs.org>
14164
14165         * window.c (window_top_frame_gutter_height): new function.
14166         (window_top_window_gutter_height): ditto.
14167         (window_top_gutter_height): use them.
14168         (window_bottom_frame_gutter_height): new function.
14169         (window_bottom_window_gutter_height): ditto.
14170         (window_bottom_gutter_height): use them.
14171         (window_left_window_gutter_width): new function.
14172         (window_left_frame_gutter_width): ditto.
14173         (window_left_gutter_width): use them.
14174         (window_right_window_gutter_width): new function.
14175         (window_right_frame_gutter_width): ditto.
14176         (window_right_gutter_width): use them.
14177         (window_pixel_height): new function. calulate window pixel height
14178         with frame gutter involvement.
14179         (Fsplit_window): calculate new sizes taking frame gutters into
14180         account.
14181         (window_char_height_to_pixel_height): don't include frame gutters.
14182         (window_char_height): use window_pixel_height.
14183         (window_pixheight): rename from window_pixel_height.
14184         (change_window_height): use it.
14185         (window_pixel_height_to_char_height): don't include frame gutters.
14186         (window_char_width_to_pixel_width): ditto.
14187
14188 2000-02-25  Andy Piper  <andy@xemacs.org>
14189
14190         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14191         if it is.
14192
14193 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14194
14195         * alloc.c (staticpro):
14196         (staticpro_nodump):
14197         (dumpstruct):
14198         (dumpopaque):
14199         (pdump_wire):
14200         (pdump_wire_list):
14201         (compact_string_chars):
14202         (pdump_dump_wired):
14203         Convert:  if (foo) abort();  ==>  assert (! foo);
14204
14205         * eldap.c (Fldap_search_basic):
14206         (Fldap_add):
14207         (Fldap_modify):
14208         (Fldap_delete):
14209         Fix compiler warnings, and possible crashes if (random) return
14210         value were to be used.
14211
14212 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14213
14214         * device-msw.c: Workaround ResetDC failure.
14215
14216         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14217         applying a devmode.
14218
14219         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14220         (mswindows_text_width): Do not start printer page.
14221
14222         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14223
14224         * glyphs-msw.c: Added image methods to msprinter console and
14225         msprinter-specific image instantiation.
14226
14227 2000-02-20  Mike Alexander  <mta@arbortext.com>
14228
14229         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14230         to avoid crashes when selection-sets-clipboard is on
14231         (mswindows_own_selection): ditto
14232
14233 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14234
14235         * glyphs-msw.c:
14236         * redisplay-msw.c (get_frame_dc):
14237         (get_frame_compdc):
14238         * console-msw.h:
14239         * device-msw.c (mswindows_init_device):
14240         (mswindows_delete_device):
14241         (msprinter_init_device):
14242         (msprinter_delete_device):
14243         * frame-msw.c (mswindows_init_frame_1):
14244         (mswindows_delete_frame):
14245         (msprinter_init_frame_3):
14246         (msprinter_delete_frame): Move compatible DC to device object from
14247         frame object, for both mswindows and msprinter. Only one at a time
14248         is needed, it is a real waste to have one per frame!
14249
14250 2000-02-23  Andy Piper  <andy@xemacs.org>
14251
14252         * glyphs.c: add dynamic width and height elements.
14253         (image_instance_equal): ditto.
14254
14255         * glyphs-widget.c (widget_query_geometry): calculate width and
14256         height dynamically if required.
14257         (initialize_widget_image_instance): initialize dynamic dimensions.
14258         (widget_instantiate): pick-up dynamic dimensions.
14259
14260         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14261         dynamic determination. Add appropriate macros.
14262
14263         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14264         dimensions safe.
14265         (WINDOW_GUTTER_SIZE): ditto.
14266         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14267
14268         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14269         inline.
14270         (get_frame_dc): ditto.
14271
14272         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14273         here.
14274
14275 2000-02-23  Martin Buchholz <martin@xemacs.org>
14276
14277         * XEmacs 21.2.31 is released.
14278
14279 2000-02-22  Ben Wing <ben@xemacs.org>
14280
14281         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14282
14283 2000-02-22  Andy Piper  <andy@xemacs.org>
14284
14285         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14286
14287 2000-02-21  Mike Sperber <mike@xemacs.org>
14288
14289         * .dbxrc:
14290         * .gdbinit:
14291         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14292         variables.
14293
14294 2000-02-21  Mike Sperber <mike@xemacs.org>
14295
14296         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14297
14298 2000-02-21  Martin Buchholz <martin@xemacs.org>
14299
14300         * XEmacs 21.2.30 is released.
14301
14302 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14303
14304         Performance hacking.
14305         * *.c (syms_of_*):
14306         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14307         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14308         * emacs.c (main_1):
14309         * lisp.h (DEFUN):
14310         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14311         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14312         * symeval.h (DEFVAR_SYMVAL_FWD):
14313         * symbols.c (guts_of_unbound_marker):
14314         Make all c_readonly objects also lisp_readonly and marked for life.
14315         * lrecord.h (struct lrecord_implementation):
14316         Document flags better.
14317         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14318         * lrecord.h (DECLARE_LRECORD):
14319         * lrecord.h (XSETRECORD):
14320         * lrecord.h (RECORDP):
14321         * lrecord.h (RECORD_TYPEP):
14322         * lrecord.h (RECORD_MARKER): New.
14323         * lrecord.h (error_check_*):
14324         * lrecord.h (CONCHECK_NONRECORD):
14325         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14326         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14327         * lrecord.h (set_lheader_implementation):
14328         * lrecord.h (enum lrecord_type): New.
14329         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14330         * alloc.c (disksave_object_finalization_1):
14331         * alloc.c (mark_object):
14332         * alloc.c (lrecord_type_index):
14333         * alloc.c (tick_lcrecord_stats):
14334         * alloc.c (Fgarbage_collect):
14335         * alloc.c (init_alloc_once_early):
14336         * alloc.c (pdump_load):
14337         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14338         * alloc.c (lrecord_type_index): Delete.
14339         Make lisp object type indexes be constant.
14340           Makes (byte-compile) 5% faster.
14341         Put all marker functions into their own array.
14342           Makes (garbage-collect) 5% faster.
14343         Optimize SYMBOL_VALUE_MAGIC_P.
14344           Makes (byte-compile) 2-3% faster.
14345         * config.h.in (gc_checking_assert): New.
14346         * alloc.c: Use gc_checking_assert().
14347         * .dbxrc: Make compatible with new object type implementation.
14348         * .gdbinit: Make compatible with new object type implementation.
14349         * alloc.c: Delete all symbols defined only for debugging, such as
14350         Lisp_Type_Vector and lrecord_charset.
14351
14352 2000-02-21  Andy Piper  <andy@xemacs.org>
14353
14354         * gui-msw.c (Fmswindows_shell_execute): fix file location
14355         problems.
14356
14357         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14358         unshowing so that set_window_buffer doesn't undo
14359         kill_buffer_hook's hard work.
14360
14361         * glyphs-widget.c (tab_control_query_geometry): don't count the
14362         first item when calculating geometry.
14363
14364         * glyphs.c (map_subwindow): remove redundant code.
14365         (update_frame_subwindows): be more circumspect about when to
14366         update subwindows.
14367
14368         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14369         when items haven't changed. Update faces if faces have changed as
14370         well as just the widget face.
14371         (x_tab_control_update): Update faces if faces have changed as well
14372         as just the widget face.
14373
14374 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14375
14376         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14377         registration.
14378         (build_syscolor_string): Use mswindows_color_to_string to try to
14379         get a named color.
14380         (mswindows_device_system_metrics): Reverse the foreground and
14381         background colors so that they match the documentation.
14382
14383         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14384         they match the default Windows palette.
14385         (mswindows_color_to_string): New function.
14386
14387 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14388
14389         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14390
14391 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14392
14393         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14394         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14395
14396         * symbols.c (init_symbols_once_early): Removed obsolete
14397         DATA_SEG_BITS related kludge.
14398         (defvar_magic): Ditto.
14399
14400         * malloc.c: Removed obsolete DATA_SEG_BITS
14401         * ralloc.c: Ditto.
14402         * mem-limits.h: Ditto.
14403
14404         * Makefile.in.in: Removed obsolete HAVE_SHM
14405         * emacs.c: Ditto.
14406
14407 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14408
14409         *  device-msw.c (mswindows_delete_device): Free DDE string
14410         handles.
14411
14412 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14413
14414         * keymap.c (get_keyelt):
14415         * unexnt.c (unexec):
14416         * vm-limit.c (memory_warnings):
14417         * ntheap.c (recreate_heap):
14418         * ntheap.h (UNINIT_PTR):
14419         * select-msw.c (Fmswindows_get_clipboard):
14420         (Fmswindows_set_clipboard):
14421         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14422         * objects-msw.c:
14423         * menubar-msw.c (displayable_menu_item):
14424         * glyphs-msw.c:
14425         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14426         * sysdep.c (sys_subshell):
14427         * process-nt.c (nt_create_process):
14428         * nt.c (normalize_filename):
14429         (dostounix_filename):
14430         (unixtodos_filename):
14431         * ntproc.c (win32_executable_type):
14432         * ntplay.c (play_sound_data_1):
14433         (play_sound_file):
14434         * editfns.c (get_home_directory):
14435         * event-msw.c (struct winsock_stream):
14436         (mswindows_dde_callback):
14437         * device-msw.c (msprinter_init_device):
14438         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14439
14440         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14441         mswindows_clear_toolbar were swapped!
14442
14443         * objects-msw.c:(colormap_t):
14444         (fontmap_t):
14445         * emacs.c (struct standard_args): Fixed const jumble.
14446
14447         * glyphs-widget.c (update_widget): Fixed comparison notation.
14448
14449         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14450
14451         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14452         __declspec(noreturn) syntax.
14453
14454 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14455
14456         * eldap.c (Fldap_open):
14457         (Fldap_search_basic):
14458         (Fldap_add):
14459         (Fldap_modify):
14460         Use new coding system conversion macros.
14461
14462 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14463
14464         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14465
14466 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14467
14468         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14469         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14470
14471         * eldap.c (Qadd, Qreplace): New constant symbols
14472         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14473         interruptions by XEmacs signals
14474         Remove unnecessary calls to slow_down_interrupts and
14475         speed_up_interrupts
14476         (Fldap_search_basic): Renamed from Fldap_search_internal
14477         Added new optional parameter VERBOSE that triggers the
14478         display of progress messages
14479         Remove unnecessary calls to slow_down_interrupts and
14480         speed_up_interrupts
14481         LDAP result code analysis rewritten
14482         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14483         (syms_of_eldap): Define the new symbols and functions
14484
14485
14486 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14487
14488         * realpath.c: Determine PATH_MAX maximally portably.
14489
14490         * insdel.c (bytecount_to_charcount): Optimize.
14491         The function used to be optimized for entirely ASCII sequences.
14492         Now it is optimized for successive characters from the same
14493         charset.  This also wins big for _mostly_ ASCII sequences.
14494
14495         * fileio.c (Ffile_truename): convert return from realpath() using
14496         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14497         - Rewrite GCPROing slightly.
14498
14499         * sysdep.c (sys_open): Do filename conversion, like all other
14500         sys_* functions.  Fixes bug:
14501         (let ((file-name-coding-system 'iso-8859-2))
14502            (write-region x y latin2-name))
14503         ==> writes filename using internal encoding.
14504
14505 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14506
14507         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14508         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14509         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14510         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14511         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14512         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14513         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14514         (CONST_IF_NOT_DEBUG): Delete.
14515         * alloc.c (this_one_is_unmarkable): Delete.
14516         (mark_object): Don't check for this_one_is_unmarkable. Use the
14517         c_readonly flag instead.
14518         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14519
14520 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14521
14522         * event-msw.c (mswindows_drain_windows_queue):
14523         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14524         away redundant repaint events.
14525
14526 2000-02-17  Andy Piper  <andy@xemacs.org>
14527
14528         * redisplay.h: declare mark_redisplay_structs.
14529
14530         * redisplay.c (redisplay_window):
14531         (redisplay_frame): don't check subwindows_state_changed.
14532         (mark_redisplay): mark gutters here.
14533
14534         * glyphs.c: (instantiate_image_instantiator): always layout if we
14535         haven't done so already.
14536         (allocate_image_instance): don't mark as dirty.
14537         (update_subwindow): bind inhibit_quit.
14538
14539         * gutter.c (mark_gutters): new function.
14540
14541         * glyphs-x.c (x_update_widget): Always resize to get round a
14542         widget bug.
14543
14544         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14545         breaking absolutely everything.
14546
14547         * gutter.h: declare mark_gutters.
14548
14549 2000-02-16  Martin Buchholz <martin@xemacs.org>
14550
14551         * XEmacs 21.2.29 is released.
14552
14553 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14554
14555         * fns.c (size_bit_vector): Fix computation of the size.
14556
14557 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14558
14559         * *.[ch]: Change CONST to const globally.
14560         find -name '*.[ch]' | \
14561         xargs global-replace \
14562         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14563         - Remove vestigial references to CONST_IS_LOSING
14564
14565 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14566
14567         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14568         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14569         events instead of dispatching them directly.
14570         (mswindows_handle_paint): New function to do repainting.
14571         (mswindows_wnd_proc):
14572         (emacs_mswindows_handle_magic_event): Call above function.
14573
14574 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14575
14576         * objects-msw.c (mswindows_create_font_variant): Return the new
14577         font handle.
14578         (initialize_font_instance): Get font metrics from the underlined
14579         variant of the font to cope with the case where the underlined
14580         font has a bigger descent.
14581
14582 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14583
14584         * gui.c (gui_item_accelerator): Return the first underlined
14585         character in item name.
14586
14587 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14588
14589         * lisp.h: Added Qprinter.
14590
14591         * general.c (syms_of_general): Initialized it.
14592
14593         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14594         (get_frame_dc):
14595         (get_frame_compdc): Made inline.
14596
14597         * console.h (struct console_methods): Added eject_page method.
14598
14599         * frame.h: Added FRAME_DISPLAY_P and friends.
14600         Aligned backslahes in many macros in more readable fashion.
14601         Added page_number to struct frame, and an accessor macro
14602         for it.
14603
14604         * defice.h: Added DEVICE_DISPLAY_P and friends.
14605
14606         * device.c (Fdevice_printer_p): Used these.
14607
14608         * frame.c (allocate_frame_core): Initialize page number.
14609         (Fprint_job_page_number):
14610         (Fprint_job_eject_page): Implemented.
14611
14612         * frame-msw.c (msprinter_eject_page): Added method.
14613         (msprinter_start_page): Added.
14614
14615         * window.c (Fwindow_truncated_p): Fixed docstring.
14616         (Fwindow_last_line_visible_height): Implemented.
14617
14618 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14619
14620         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14621
14622 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14623
14624         * syntax.c (scan_words): Always advance at least one character.
14625
14626 2000-02-13  Andy Piper  <andy@xemacs.org>
14627
14628         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14629         to make sure the glyph is in the cachels.
14630
14631         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14632         global image instance flag.
14633         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14634         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14635
14636         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14637         (Fset_image_instance_property): mark layout as changed.
14638         (invalidate_glyph_geometry_maybe): mark layout as changed.
14639         (glyph_width): use new NEEDS_LAYOUT macro.
14640         (glyph_ascent): ditto.
14641         (glyph_descent): ditto.
14642         (glyph_height): ditto.
14643         (image_instance_layout): mark layout as clean after laying out.
14644         (update_subwindow): don't mark layout as clean here.
14645
14646         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14647         should no longer be needed.
14648
14649         * glyphs-x.c (x_update_widget): sanitize asserts.
14650         (x_finalize_image_instance): sanitize assignment to widgets.
14651
14652         * glyphs-widget.c (widget_instantiate): don't need to clear the
14653         layout flag here.
14654
14655 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14656
14657         * sysdep.c (getcwd): Use standard prototype.
14658         * sysdep.h (getcwd): Use standard prototype.
14659
14660         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14661         (sequence, start, end).
14662         Remove redundant type checking.
14663         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14664         view of `caller-protects') to avoid a crash where the real fix was
14665         found elsewhere.
14666
14667 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14668
14669         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14670
14671         * s/sol2.h: Remove feature macro initialization.
14672
14673         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14674         (vector_hash): New.  Code from internal_hash.
14675         * lrecord.h:
14676         Fix up allocation subsystem comments.
14677
14678         * config.h.in: Add __EXTENSIONS__ for Solaris.
14679
14680         * systime.h (EMACS_GETTIMEOFDAY): New.
14681         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14682         Remove Solaris-specific code.
14683         Use void* for the (ignored) second arg for gettimeofday().
14684
14685         * elhash.c (hash_table_hash): Implement it, finally.
14686         * elhash.c:  Use hashcode_t.
14687
14688         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14689         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14690
14691         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14692         * fns.c (size_bit_vector):
14693         * alloc.c (size_vector):
14694         (make_vector_internal):
14695         (make_bit_vector_internal):
14696         (sweep_bit_vectors_1):
14697         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14698
14699 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14700
14701         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14702         Include strings.h to avoid warnings for bzero and strcasecmp.
14703
14704 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14705
14706         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14707         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14708
14709         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14710         sequence.
14711
14712 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14713
14714         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14715         use a value field instead.
14716         (symbol_value_forward_forward): Use value field.
14717         (DEFVAR_SYMVAL_FWD): Use value field.
14718         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14719         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14720         (DEFVAR_CONST_INT): Ditto.
14721         (DEFVAR_BOOL): Ditto.
14722         (DEFVAR_CONST_BOOL): Ditto.
14723         (DEFVAR_INT_MAGIC): Ditto.
14724         (DEFVAR_BOOL_MAGIC): Ditto.
14725
14726         * symbols.c (guts_of_unbound_marker): Use value field.
14727         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14728         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14729
14730         * lisp.h: Declare dumpopaque and noninteractive1.
14731
14732         * alloc.c (dumpopaque): Added.
14733         (pdump_dump_opaquevec): Added.
14734         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14735         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14736         noninteractive.
14737
14738 2000-02-10  Andy Piper  <andy@xemacs.org>
14739
14740         * glyphs.c (image_instance_layout): if the size changes, mark it
14741         as such.
14742
14743         * redisplay-output.c (redisplay_output_layout): Update the
14744         subwindow here.
14745         (redisplay_output_subwindow): ditto.
14746
14747         * glyphs.c (update_subwindow): make sure we reset flags for
14748         layouts as well as everything else.
14749
14750         * glyphs-widget.c (layout_layout): don't need to set the instances
14751         dimensions here.
14752
14753 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14754
14755         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14756         not HAVE_DLOPEN, which is a lower-level thing.
14757
14758         * .cvsignore: Ignore gmon.out
14759
14760 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14761
14762         * .cvsignore: Ignore portable dumper xemacs.dmp file
14763
14764 2000-02-09  Andy Piper  <andy@xemacs.org>
14765
14766         * redisplay-output.c (redisplay_output_layout): be more clever
14767         about when we output based on the changed flags.
14768
14769         * glyphs.h (struct image_instantiator_methods): add update_method.
14770         (struct Lisp_Image_Instance): add changed flags. Declare new
14771         macros for manipulating them.
14772
14773         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14774         (image_instance_parent_glyph): find an image_instance's parent
14775         glyph or image_instance.
14776         (image_instance_layout): mark the size as changed.
14777         (set_image_instance_dirty_p): new function. mark an image
14778         instance, plus all of its parents, as dirty.
14779         (Fset_image_instance_property): use it.
14780         (Fglyph_animated_timeout_handler): use it.
14781         (update_subwindow): call update_widget and device methods for
14782         update_subwindow. Mark all changed flags as clean.
14783         (Fresize_subwindow): mark size as changed.
14784
14785         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14786         failures.
14787         (x_update_subwindow): only resize subwindows here.
14788         (x_update_widget): new function. Update all changed properties of
14789         a widget.
14790         (x_resize_subwindow): deleted.
14791         (x_widget_set_property): deleted.
14792         (x_progress_gauge_set_property): deleted.
14793         (x_progress_gauge_update): new function. Implement recorded
14794         changes.
14795         (x_tab_control_update): ditto.
14796         (x_tab_control_set_property): deleted.
14797         (console_type_create_glyphs_x): declare new functions.
14798         (image_instantiator_format_create_glyphs_x): ditto.
14799
14800         * glyphs-widget.c (widget_set_property): mark text changed.
14801         (update_widget): new function. Update properties of a widget.
14802         (widget_instantiate): for layouts make sure we set their
14803         children's parent correctly.
14804         (tab_control_set_property): new function. Record changes that will
14805         take place under redisplay's control.
14806         (progress_gauge_set_property): ditto.
14807         (image_instantiator_progress_guage): declare new functions.
14808         (image_instantiator_tab_control): ditto.
14809
14810         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14811         now.
14812         (mswindows_update_widget): new function. Update all properties on
14813         a widget that have changed.
14814         (mswindows_button_update): new function. Update a button's set
14815         state.
14816         (mswindows_tab_control_update): new function. Update the items in
14817         a tab.
14818         (mswindows_tab_control_set_property): deleted.
14819         (mswindows_progress_gauge_update): new function. Update the
14820         progress gauge's progress.
14821         (mswindows_widget_set_property): deleted. This is all done
14822         asynchronously now.
14823         (mswindows_progress_gauge_set_property): ditto.
14824         (console_type_create_glyphs_mswindows): declare new methods.
14825         (image_instantiator_format_create_glyphs_mswindows): ditto.
14826
14827         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14828         (msprinter_set_frame_properties): ditto.
14829
14830         * console.h (struct console_methods): Add update_widget_method.
14831
14832 2000-02-09  Andy Piper  <andy@xemacs.org>
14833
14834         * gui-msw.c (Fmswindows_shell_execute): Make
14835         mswindows-shell-execute industrial strength.
14836
14837 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14838
14839         * lrecord.h: Make macro argument `props' match member function `plist'.
14840         * fns.c (Fget):
14841         * fns.c (Fput):
14842         * fns.c (Fremprop):
14843         * fns.c (Fobject_plist):
14844         * alloc.c:
14845         * symbols.c:
14846         Object property list frobbing cleanup.
14847         - Allow any lisp object (compared with `eq'), not just symbols, as
14848           keys in object plists.
14849         - Move symbol plist frobbing into symbols.c, where it belongs.
14850         - Move string plist frobbing into alloc.c, where it belongs.
14851         - Everything's an lrecord now, so no need to test for symbolp, etc.
14852         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14853
14854         * extents.c: Reorder code to remove declarations.
14855
14856         * frame.h (store_in_alist): Remove useless declaration.
14857
14858 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14859
14860         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14861         * config.h.in: Add HAVE_XCONVERTCASE.
14862
14863 2000-02-07  Andy Piper  <andy@xemacs.org>
14864
14865         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14866         it breaks many things.
14867
14868 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14869
14870         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14871         actually can start a common comment type.
14872         * src/syntax.h (SYNTAX_END_P): ditto for end.
14873
14874 2000-02-07  Martin Buchholz <martin@xemacs.org>
14875
14876         * XEmacs 21.2.28 is released.
14877
14878 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14879
14880         * event-Xt.c (x_keysym_to_character): New.
14881         (maybe_define_x_key_as_self_inserting_character): New.
14882         (x_has_keysym): New.
14883         Auto-define all keys on the keyboard as self-insert-key.
14884
14885 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14886
14887         * menubar.c (vars_of_menubar): A small code simplification.
14888
14889         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14890
14891         * ExternalShell.c:
14892         * ExternalClient.c:
14893         * EmacsShell-sub.c:
14894         * EmacsManager.c:
14895         * EmacsFrame.c:
14896         Use consistent style for specifying X resources.
14897
14898         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14899         This makes (dontusethis-set-symbol-value-handler) actually usable.
14900
14901         * lrecord.h (lrecord_decription_type):
14902         * alloc.c (pdump_register_sub):
14903         (pdump_dump_data):
14904         (pdump_reloc_one):
14905         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14906         Comply with XEmacs coding style.
14907         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14908         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14909
14910         * keymap.c (Faccessible_keymaps):
14911         Make (accessible-keymaps map "\C-h") do the Right Thing.
14912         Make (accessible-keymaps map []) do the Right Thing.
14913         Make (accessible-keymaps map "") do the Right Thing.
14914         (check_keymap_definition_loop): New function.
14915         (keymap_store_internal): Keep luser from shooting self in foot,
14916           via (define-key ctl-x-4-map "p" global-map).
14917         Remove fullness slot from struct Lisp_Keymap, since hash tables
14918         are now reliable.
14919         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14920
14921 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14922
14923         * redisplay.c (init_redisplay): Fix small memory leak.
14924         * elhash.h:
14925         * elhash.c (pdump_reorganize_hash_table):
14926         Rename from reorganize_hash_table. Change prototype.
14927         Reuse the original memory for hentries.  Save 100k.
14928         * alloc.c (PDUMP_READ): new macro.
14929         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14930         * alloc.c: No need to #ifndef before #undef.
14931
14932         * print.c: Allow debug_print() to print readably by modifying
14933         debug_print_readably.  Use consistent variable names.
14934
14935         * .dbxrc: Try to get things to work even if stopped in a function
14936         without source available by explicitly specifying source files.
14937 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14938
14939         * unexnt.c (_start): Removed bogus code which caused loading heap
14940         from differrent executable file.
14941         Removed bogus assignment to _fmode, which caused inconsistencies.
14942
14943 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14944
14945         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14946         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14947         Do not preliminary `#define signal sigset'.
14948
14949         * systime.h: Do not prototype environ on windows nt and cygwin,
14950         this conflicts with system header.
14951
14952         * syssignal.h: Use correct define for WINDOWSNT
14953
14954         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14955         with system header.
14956
14957         * sysdep.c (near start of file): Fixed commentary and rearranged
14958         ifdefs in readable order.
14959         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14960         (start_of_text):
14961         (end_of_text):
14962         (end_of_data): Do not compile in if using PDUMP.
14963
14964         * symsinit.h: Prototyped vars_of_nt().
14965
14966         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14967         (find_child_console): Use it.
14968         (sys_kill): Use it.
14969
14970         * ntheap.h: Do not extern os_subtype.
14971
14972         * ntheap.c (cache_system_info): Do not cache unneeded:
14973         nt_major_version, nt_minor_version and os_subtype.
14974         (recreate_heap): Do not compile in when PDUMPing.
14975
14976         * nt.c (geteuid and friends): Use the new varibale
14977         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14978         (init_user_info): Removed the above mentioned hackery.
14979         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14980         stat has been fixed in the C runtime.
14981         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14982
14983         * file-coding.c (struct file_coding_dump): Do not define
14984         ucs_to_mule_table in the struct if not MULE.
14985         (struct struct lrecord_description fcd_description_1): Do not dump
14986         the above.
14987
14988         * emacs.c (main_1): Call vars_of_nt().
14989         (right before Fdump_emacs_data): Don't need lastfile if using both
14990         portabe dumper and system malloc.
14991
14992         * alloc.c (Fmemory_limit): Conditionalized out.
14993         (pdump): Use OPEN_BINARY for the portable dump file.
14994         (pdump_load): Ditto.
14995
14996 2000-02-02  Mike Alexander  <mta@arbortext.com>
14997
14998         * nt.c (convert_time): Set tm_isdst before calling mktime and
14999         avoid calling it at all if the compiler supports 64 bit integers.
15000         Also initialize utc_base_ft before using it.
15001
15002 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15003
15004         * frame.c (change_frame_size_1): Take f->internal_border_width
15005         into consideration when calculating the width of the frame.
15006
15007 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15008
15009         * window.c (frame_min_height):
15010         (frame_size_valid_p):
15011         (frame_pixsize_valid_p): Added.
15012         (check_frame_size): Generalized.
15013
15014         * window.h: Prototyped the above.
15015
15016         * lisp.h:
15017         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15018         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15019         Deleted Vwin32_* and Vbinary_process_* unused variables.
15020
15021         * device-msw.c (msprinter_init_device): Do not get printer font
15022         list; Added DEVMODE functions.
15023
15024         * frame-msw.c: Added lots of printer code.
15025
15026         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15027         general.c.
15028
15029         * console-msw.h: Added more msprinter device private slots.
15030
15031 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15032
15033         * event-msw.c (key_needs_default_processing_p): Added.
15034         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15035
15036 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15037
15038         * glyphs.c (image_instance_layout): Mark image instance as clean
15039         after layout.
15040         (glyph_dirty_p): Removed redundant function.
15041         (invalidate_glyph_geometry_maybe): Added.
15042         (update_glyph_cachel_data): Call it.
15043
15044         * glyphs.h: Prototyped it.
15045
15046         * redisplay.c (add_glyph_rune): Call it.
15047         (redisplay_window): Reset glyphs cachels when frame faces have
15048         changed, thus forcing recomputation of built-in border glyphs.
15049
15050 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15051
15052         * Makefile.in.in: Make portable dumper and purify play well together.
15053         Add imperfect, but better than nothing, support for pdump.
15054         Remove xemacs.dmp when temacs is re-generated.
15055         Don't ignore errors when dumping xemacs.
15056
15057         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15058
15059 2000-01-28  Andy Piper  <andy@xemacs.org>
15060
15061         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15062         (setup_normal_frame): ditto.
15063         (setup_frame_without_minibuffer): ditto.
15064         (setup_minibuffer_frame): ditto.
15065         (delete_frame_internal): ditto.
15066         (Fmake_frame_invisible): ditto.
15067         (Ficonify_frame): ditto.
15068
15069         * window.h: change Fset_window_buffer signature.
15070
15071         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15072         (Fset_window_buffer): allow recording of buffer if the window is
15073         the selected window.
15074         (window_loop): Use new Fset_window signature.
15075
15076 2000-01-23  Daniel Pittman  <daniel@danann.net>
15077
15078         * config.h.in: Added template for `HAVE_ATHENA_3D'
15079
15080 2000-01-29  Andy Piper  <andy@xemacs.org>
15081
15082         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15083
15084         * gutter.c (output_gutter): Don't output if the window isn't live.
15085
15086 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15087
15088         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15089         of 01/12/00: Moved SetFocus back here where it belongs.
15090
15091 2000-01-23  Andy Piper  <andy@xemacs.org>
15092
15093         * s/cygwin32.h: declare printer things.
15094
15095 2000-01-26  Andy Piper  <andy@xemacs.org>
15096
15097         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15098         Alexander.
15099
15100 2000-01-24  Andy Piper  <andy@xemacs.org>
15101
15102         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15103         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15104
15105         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15106
15107         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15108
15109         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15110
15111         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15112         (mswindows_output_display_block): Avoid local shadows.
15113
15114         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15115         (mswindows_enqueue_mouse_button_event): ditto.
15116         (mswindows_handle_gui_wm_command): remove declaration.
15117
15118         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15119         warnings.
15120
15121         * console-msw.h: Avoid shadows.
15122         (mswindows_get_toolbar_button_text):
15123         (emacs_mswindows_create_stream_pair):
15124         (emacs_mswindows_delete_stream_pair):
15125         (mswindows_handle_toolbar_wm_command): declare.
15126
15127         * device-msw.c (build_syscolor_string): Avoid shadows.
15128
15129 2000-01-23  Andy Piper  <andy@xemacs.org>
15130
15131         * glyphs-widget.c (widget_instantiate): reverse the items for
15132         layouts so that children are in the expected order.
15133
15134 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15135
15136         * ralloc.c: safe_bcopy ==> memmove
15137         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15138         * s/msdos.h: Remove BCOPY macros.
15139         * insdel.c (gap_right): Remove BCOPY conditional code.
15140         * insdel.c (gap_left): Remove BCOPY conditional code.
15141         XEmacs demands a working ANSI C compiler - hence memmove.
15142
15143         * regex.c (regex_compile): Remove accidental use of trigraphs.
15144
15145 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15146
15147         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15148         event timestamp.
15149
15150 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15151
15152         * event-msw.c (mswindows_drain_windows_queue): Added the
15153         parameter.
15154         (mswindows_need_event): Commented the call to
15155         mswindows_drain_windows_queue().
15156         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15157         only.
15158
15159         * console-msw.h: Moved a few function prototypes here from
15160         event-msw.c.
15161
15162         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15163         parameter from unsigned short to unsigned long.
15164         (Fmswindows_shell_execute): Added return value.
15165
15166 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15167
15168         * sysdep.c (init_system_name):
15169           process-unix.c (unix_canonicalized_host_name):
15170         Don't call freeaddrinfo() if getaddrinfo() fails.
15171
15172         * process-unix.c (unix_open_unix_network_stream):
15173         Moved the code to get a port # into address loop.
15174
15175 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15176
15177         * buffer.c (reinit_vars_of_buffer):
15178         The right place to initialize conversion_in_dynarr and
15179         conversion_out_dynarr.
15180
15181         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15182
15183         * process-unix.c (unix_canonicalize_host_name): Muleize.
15184         (unix_open_network_stream): Muleize.
15185
15186         * buffer.h: Fix up prototypes for ralloc.c functions.
15187
15188 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15189         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15190         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15191                 instead of gethostbyname()
15192         * process-unix.c: In unix_canonicalize_host_name() and
15193                 unix_open_network_stream(), add code to use getaddrinfo()
15194                 instead of gethostbyname().
15195
15196 2000-01-27  Daniel Pittman <daniel@danann.net>
15197
15198         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15199         libs when built with flat Athena.
15200
15201 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15202
15203         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15204         Use coding standards for function prototypes.
15205
15206 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15207
15208         * dialog-msw.c (push_lisp_string_as_unicode):
15209         * doc.c (unparesseuxify_doc_string):
15210         * dired.c (Fuser_name_completion_1):
15211         * dired.c (Fuser_name_all_completions):
15212         * dired.c (free_user_cache):
15213         * dired.c (user_name_completion):
15214         * console-x.c (get_display_arg_connection):
15215         * minibuf.c (clear_echo_area_internal):
15216         * minibuf.c (echo_area_append):
15217         * eldap.c (Fldap_open):
15218         * eldap.c (Fldap_search_internal):
15219         * frame-x.c (x_set_frame_text_value):
15220         * frame-x.c (x_set_frame_properties):
15221         * frame-x.c (x_create_widgets):
15222         * redisplay-tty.c (term_get_fkeys_1):
15223         * objects-x.c (x_parse_nearest_color):
15224         * objects-x.c (x_valid_color_name_p):
15225         * objects-x.c (x_initialize_font_instance):
15226         * objects-x.c (x_list_fonts):
15227         * objects-x.c (x_find_charset_font):
15228         * tooltalk.c (Fadd_tooltalk_message_arg):
15229         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15230         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15231         * process-unix.c (unix_create_process):
15232         * ntproc.c (sys_spawnve):
15233         * sound.c (Fplay_sound_file):
15234         * sound.c (Fplay_sound):
15235         * buffer.c (init_initial_directory):
15236         * buffer.c (init_buffer):
15237         * editfns.c (init_editfns):
15238         * editfns.c (Ftemp_directory):
15239         * editfns.c (Fuser_full_name):
15240         * editfns.c (uncache_home_directory):
15241         * editfns.c (get_home_directory):
15242         * editfns.c (Fuser_home_directory):
15243         * editfns.c (Fformat_time_string):
15244         * editfns.c (Fcurrent_time_string):
15245         * gui-x.c (button_item_to_widget_value):
15246         * database.c (Fopen_database):
15247         * event-Xt.c (x_to_emacs_keysym):
15248         * event-Xt.c (x_event_to_emacs_event):
15249         * event-Xt.c (describe_event_window):
15250         * event-msw.c (mswindows_wnd_proc):
15251         * glyphs-eimage.c (jpeg_instantiate):
15252         * glyphs-eimage.c (gif_instantiate):
15253         * glyphs-eimage.c (png_instantiate):
15254         * glyphs-eimage.c (tiff_instantiate):
15255         * glyphs-x.c (xbm_instantiate_1):
15256         * glyphs-x.c (x_xbm_instantiate):
15257         * glyphs-x.c (x_xface_instantiate):
15258         * glyphs-x.c (autodetect_instantiate):
15259         * glyphs-x.c (cursor_font_instantiate):
15260         * glyphs-x.c (x_widget_instantiate):
15261         * glyphs-x.c (x_widget_set_property):
15262         * glyphs-x.c (x_widget_property):
15263         * glyphs-x.c (BUILD_GLYPH_INST):
15264         * print.c (write_string_to_stdio_stream):
15265         * print.c (output_string):
15266         * print.c (Falternate_debugging_output):
15267         * print.c (Fexternal_debugging_output):
15268         * glyphs-msw.c (extract_xpm_color_names):
15269         * glyphs-msw.c (mswindows_xpm_instantiate):
15270         * glyphs-msw.c (bmp_instantiate):
15271         * glyphs-msw.c (resource_name_to_resource):
15272         * glyphs-msw.c (mswindows_resource_instantiate):
15273         * glyphs-msw.c (xbm_instantiate_1):
15274         * glyphs-msw.c (mswindows_xbm_instantiate):
15275         * glyphs-msw.c (mswindows_xface_instantiate):
15276         * glyphs-msw.c (mswindows_widget_instantiate):
15277         * glyphs-msw.c (add_tree_item):
15278         * glyphs-msw.c (add_tab_item):
15279         * glyphs-msw.c (mswindows_combo_box_instantiate):
15280         * glyphs-msw.c (mswindows_widget_property):
15281         * glyphs-msw.c (mswindows_combo_box_property):
15282         * glyphs-msw.c (mswindows_widget_set_property):
15283         * console.c (stuff_buffered_input):
15284         * objects-msw.c (mswindows_initialize_color_instance):
15285         * objects-msw.c (mswindows_valid_color_name_p):
15286         * objects-msw.c (mswindows_list_fonts):
15287         * objects-msw.c (mswindows_font_instance_truename):
15288         * bytecode.c (optimize_compiled_function):
15289         * select-x.c (symbol_to_x_atom):
15290         * select-x.c (x_atom_to_symbol):
15291         * select-x.c (hack_motif_clipboard_selection):
15292         * select-x.c (selection_data_to_lisp_data):
15293         * select-x.c (lisp_data_to_selection_data):
15294         * select-x.c (Fx_get_cutbuffer_internal):
15295         * select-x.c (Fx_store_cutbuffer_internal):
15296         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15297         * buffer.h (TO_INTERNAL_FORMAT): New function.
15298         * emacs.c (make_arg_list_1):
15299         * emacs.c (make_argc_argv):
15300         * emacs.c (main_1):
15301         * emacs.c (Fdump_emacs):
15302         * emacs.c (split_string_by_emchar_1):
15303         * file-coding.h:
15304         * lisp.h:
15305         * lstream.h:
15306         * symsinit.h:
15307         * device-x.c (x_init_device):
15308         * device-x.c (Fx_valid_keysym_name_p):
15309         * device-x.c (Fx_get_font_path):
15310         * device-x.c (Fx_set_font_path):
15311         * glyphs.c (bitmap_to_lisp_data):
15312         * glyphs.c (pixmap_to_lisp_data):
15313         * alloc.c (make_ext_string): Use coding system arguments.  Update
15314         all callers.
15315         * alloc.c (build_string):
15316         * callproc.c (child_setup):
15317         * callproc.c (init_callproc):
15318         * fileio.c (lisp_strerror):
15319         * fileio.c (directory_file_name):
15320         * fileio.c (Fexpand_file_name):
15321         * fileio.c (Ffile_truename):
15322         * fileio.c (Fsysnetunam):
15323         * fileio.c (Fdo_auto_save):
15324         * sysdep.c (sys_readdir):
15325         * tests.c: New file.  Allow adding C tests.
15326         Replace GET_* macros with a more comprehensible and flexible
15327         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15328         Modify all calls.
15329         Any coding system can be used to do format conversion.
15330         Eliminate enum external_data_format.
15331         Eliminate convert_to_external_format.
15332         Eliminate convert_to_internal_format.
15333         Make sure file-name, keyboard, terminal, and ctext are always
15334         defined as coding systems or aliases.  Make
15335         file-name-coding-system, terminal-coding-system, and
15336         keyboard-coding-system magical variables that are equivalent to
15337         defining the corresponding coding system aliases.
15338
15339         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15340         * file-coding.c (Fcoding_system_alias_p): New function.
15341         * file-coding.c (Fcoding_system_aliasee): New function.
15342         * file-coding.c (append_suffix_to_symbol): New function.
15343         * file-coding.c (dangling_coding_system_alias_p): New function.
15344         * file-coding.c (Ffind_coding_system):
15345         * file-coding.c (Fcopy_coding_system):
15346         * file-coding.c (encode_coding_no_conversion):
15347         * file-coding.c (syms_of_file_coding):
15348         * file-coding.c (vars_of_file_coding):
15349         Rewrite coding system alias code.
15350         Allow nested aliases, like symbolic links.
15351         Allow redefinition of coding system aliases.
15352         Prevent existence of dangling coding system aliases.
15353
15354         * dired.c (Fuser_name_completion_1):
15355         * dired.c (Fuser_name_all_completions):
15356         A crash would happen if user did QUIT in the middle of building
15357         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15358
15359         * lisp.h:
15360         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15361
15362         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15363         an unsigned char *.  Update all callers.
15364
15365 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15366
15367         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15368
15369 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15370
15371         * elhash.c (hentry_description): Use more portable definition.
15372         (resize_hash_table): Initialize new hentries using
15373         xnew_array_and_zero, thereby simplifying the code.
15374
15375         * mule-charset.c (make_charset): Make sure entire object is
15376         initialized, to avoid Purify warnings.
15377
15378         * alloc.c (resize_string): Fix unlikely crash with big strings.
15379
15380 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15381
15382         * realpath.c (xrealpath):
15383         Don't call getwd().
15384
15385 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15386
15387         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15388
15389 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15390
15391         * unexelfsgi.c (unexec): Change the way we decide which segment
15392         should be extended.
15393
15394         Assumption that .bss section should be outside the PT_LOADable
15395         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15396         it's present) is inside the 'data' segment. This would fail the
15397         test which was used to find a segment to grow and cover new
15398         heap. Instead of this assumption, I created another one - on IRIX
15399         the segment to grow should start below .bss and it's address
15400         should extent above the end of .bss. Once this segment is
15401         identified, it's grown to accommodate the new heap and new
15402         zero-length .bss section is added at the end of .data2.
15403
15404 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15405
15406         * eval.c (Feval): Wrong number of arguments should use original
15407         function, not the indirect_function version of it.
15408
15409 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15410
15411         * glyphs-x.c (x_button_instantiate): Don't add image if
15412         it is not a pixmap.
15413         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15414         is relative.
15415
15416 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15417
15418         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15419         declaration.
15420         (DEFVAR_INT_MAGIC): Ditto.
15421         (DEFVAR_BOOL_MAGIC): Ditto.
15422         * glyphs.h: Reindent backslash.
15423
15424 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15425
15426         * glyphs-widget.c (layout_query_geometry):
15427         (layout_layout): Use correct types for gheight, gwidth.
15428
15429 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15430
15431         * EmacsManager.c (QueryGeometry): Purified.
15432
15433 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15434
15435         * alloc.c (make_float): Make sure entire object is initialized, to
15436         avoid Purify warnings.
15437         (pdump_register_sub): Remove useless assignment.
15438         (pdump): Use xmalloc, not malloc.
15439         (pdump_load): Use xmalloc, not malloc.
15440
15441 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15442
15443         * callproc.c:
15444         * dired-msw.c:
15445         * fileio.c:
15446         * process-nt.c:
15447         * redisplay-msw.c:
15448         * sysdep.c: Removed redundant #include <windows.h>
15449
15450 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15451
15452         * frame.c (delete_frame_internal): Do not delete device when its
15453         implementation so declares.
15454         (delete_frame_internal): Set device selected frame to nil when
15455         last frame goes away.
15456
15457         * device-msw.c (msprinter_device_system_metrics): Implemented.
15458         (mswindows_device_system_metrics): Added 'device-dpi property.
15459
15460         * device.c: (Fdevice_printer_p): Added.
15461         Added 'offset-workspace device metric.
15462
15463         * console.h (device_metrics): Declared DM_offset_workspace.
15464
15465 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15466
15467         * fileio.c (Ffile_truename): Remove pointless and confusing
15468         initialization of elen.
15469
15470         * glyphs-widget.c: Compiler warning fixes.
15471
15472 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15473
15474         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15475         instead of a Lisp_Object as argument to make it consistent with
15476         the other LIVE_P macros.
15477         (CHECK_LIVE_PROCESS): New macro.
15478
15479         * process.c: Declare Qprocess_live_p.
15480         (Fprocess_live_p): New function.
15481         (create_process): Use PROCESS_LIVE_P.
15482         (read_process_output): Ditto.
15483         (set_process_filter): Ditto.
15484         (Fdelete_process): Ditto.
15485         (kill_buffer_processes): Ditto
15486         (process_send_signal): Use CHECK_LIVE_PROCESS.
15487         (Fprocess_input_coding_system): Check whether process is still
15488         alive (fix PR#1061).
15489         (Fprocess_output_coding_system): Ditto.
15490         (Fprocess_coding_system): Ditto.
15491         (Fset_process_input_coding_system): Ditto.
15492         (Fset_process_output_coding_system): Ditto.
15493
15494 2000-01-23  Andy Piper  <andy@xemacs.org>
15495
15496         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15497         layout and widget.
15498
15499         * glyphs.c (mark_image_instance): take into account changed
15500         image_instance format.
15501         (image_instance_equal): ditto.
15502         (image_instance_hash): ditto.
15503
15504         * glyphs-widget.c (widget_instantiate): Incorporate layout
15505         instantiation here. Delay layout of the layout until later.
15506         (layout_instantiate): deleted.
15507         (layout_query_geometry): new function. get the geometry of a
15508         layout.
15509         (layout_layout): layout a layout dynamically.
15510         (image_instantiator_widget): New function - splitting up
15511         image_instantiator_format_create_glyphs_widget for netwinder
15512         compilation.
15513         (image_instantiator_buttons):
15514         (image_instantiator_edit_fields):
15515         (image_instantiator_combo_box):
15516         (image_instantiator_scrollbar):
15517         (image_instantiator_progress_guage):
15518         (image_instantiator_tree_view):
15519         (image_instantiator_tab_control):
15520         (image_instantiator_labels):
15521         (image_instantiator_layout): ditto.
15522         (image_instantiator_format_create_glyphs_widget): Call preceding
15523         functions.
15524
15525 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15526
15527         * process.c (Fset_process_coding_system):
15528         * device-x.c (Fx_keysym_hash_table):
15529         Docstring fixes.
15530
15531         * lstream.c (Lstream_write): Return documented value, not 0.
15532
15533         * fileio.c (directory_file_name):
15534         (Fsubstitute_in_file_name):
15535         (Fsubstitute_insert_file_contents_internal):
15536         (Fwrite_region_internal):
15537         * emacs.c:
15538         * sysdep.c:
15539         * getloadavg.c:
15540         * systty.h:
15541         Remove vestigial APOLLO-conditional code.
15542
15543 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15544
15545         * getpagesize.h: Add guard macros.
15546         * libsst.h: Add guard macros.
15547         * libst.h: Add guard macros.
15548         * line-number.h: Add guard macros.
15549         * ndir.h: Add guard macros.
15550         * sysfloat.h: Add guard macros.
15551         * sysfile.h: Add guard macros.
15552         * sysproc.h: Add guard macros.
15553         * syswait.h: Add guard macros.
15554         * xintrinsic.h: Add guard macros.
15555         * xintrinsicp.h: Add guard macros.
15556         * xmmanager.h: Add guard macros.
15557         * xmmanagerp.h: Add guard macros.
15558         * xmprimitive.h: Add guard macros.
15559         * xmu.h: Add guard macros.
15560         * gpmevent.h: Add copyright statement. Add guard macros.
15561         * miscplay.h: Add guard macros.
15562         * *.h: Use consistent C-standards-approved guard macro names.
15563
15564         * opaque.c (make_opaque): Switch parameter order.
15565         * opaque.h (make_opaque): Switch parameter order.
15566         Update all callers.
15567         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15568
15569         * config.h.in (type_checking_assert): Added.
15570         (bufpos_checking_assert): Added.
15571
15572 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15573
15574         * alloc.c: Harmless pdump changes.
15575         - Use countof().
15576         - spell alignment correctly.
15577         * sysdep.c: Use countof()
15578
15579 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15580
15581         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15582         initially_selected_for_input() console method, default to 0.
15583         (semi_canonicalize_console_connection): Try to delegate to
15584         canonicalize_console_connection if no such console method.
15585         (canonicalize_console_connection): Vice versa.
15586         (print_console): Do not print nil connection.
15587
15588         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15589         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15590         (XDEVIMPF_FRAMELESS_OK): Added.
15591         (CONSOLE_INHERITS_METHOD): Added.
15592
15593         * console-msw.c (mswindows_canonicalize_console_connection):
15594         Added.
15595         (mswindows_canonicalize_device_connection): Added.
15596
15597         * console-msw.h (struct msprinter_device): Added this struct and
15598         accessor macros.
15599         (mswindows_device): Made fontlist a lisp object.
15600
15601         * device.c (semi_canonicalize_device_connection):  Try to delegate
15602         to canonicalize_device_connection if no such console method.
15603         (canonicalize_device_connection): Vice versa.
15604         (print_device): Do not print nil connection.
15605
15606         * device-msw.c (mswindows_init_device): Call InitCommonControls
15607         when have widgets.
15608         (mswindows_delete_device): Removed fontlist deallocation.
15609         (mswindows_mark_device): Added.
15610
15611         * events.c (event_equal): Added abort() at unreached code.
15612         (event_hash): Ditto.
15613
15614         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15615         fallback tags of Windows devices.
15616
15617         * general.c (syms_of_general): Initialized Qmsprinter.
15618
15619         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15620         of fallback tags of Windows devices.
15621
15622         * lisp.h: Declared Qmsprinter.
15623
15624         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15625         of strings.
15626         (mswindows_list_fonts): Ditto.
15627         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15628         that it can be used by both mswindows and msprinter devices.
15629         (initialize_font_instance): Added.
15630         (mswindows_initialize_font_instance): Use it.
15631         (msprinter_initialize_font_instance): Added.
15632
15633         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15634         and implementation flags check.
15635         (redisplay_without_hooks): Changed the call to the above.
15636         (Fredraw_device): Ditto.
15637         (Fredisplay_device): Ditto.
15638
15639         * redisplay-msw.c (get_frame_dc): Implemented.
15640         (get_frame_compdc): Implemented.
15641         (many functions): Use the two functions above to get device
15642         contexts, ether for a window or a printer.
15643
15644 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15645
15646         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15647         initialization here.
15648         (init_symbols_once_early): Call it.
15649         * emacs.c (main_1): Call it.
15650         * symsinit.h: Declare it.
15651
15652 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15653
15654         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15655         Lisp_Object.
15656         (pdump_backtrace): Ditto.
15657         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15658         (pdump_get_entry): Abort if trying to register a null pointer.
15659         (pdump_dump_data): Cleanup types when relocating.
15660         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15661         (pdump_dump_rtables): Remove bad casts.
15662         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15663         Lisp_Object instead of a EMACS_INT for the hashtable
15664         reorganization.
15665
15666 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15667
15668         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15669
15670         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15671
15672         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15673
15674         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15675
15676 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15677
15678         * faces.h (FACE_STRIKETHRU_P): Added.
15679
15680         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15681         of font variants.
15682
15683         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15684         (mswindows_set_dc_font): New function, aware of font variants,
15685         separated from mswindows_update_dc.
15686
15687         * objects-msw.h (struct mswindows_font_instance_data): Added
15688         definition.
15689
15690         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15691         cached fonts and the data structure.
15692         (mswindows_initialize_font_instance): Added creation of font data
15693         structure.
15694         (mswindows_print_font_instance): Print at least something.
15695         (mswindows_create_font_variant): Implemented.
15696         (mswindows_get_hfont): Implemented.
15697
15698 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15699
15700         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15701         prototyping problem with msvc.
15702
15703         * emacs.c (main_1): added syms_of_gui_mswindows() call
15704
15705         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15706         syms_of_gui_mswindows() function
15707
15708         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15709
15710 2000-01-18  Martin Buchholz <martin@xemacs.org>
15711
15712         * XEmacs 21.2.27 is released.
15713
15714 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15715
15716         * glyphs-eimage.c (struct tiff_error_struct):
15717         (tiff_error_func):
15718         (tiff_warning_func):
15719         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15720
15721         * unexmips.c:
15722         * unexhp9k3.c:
15723         * unexfreebsd.c:
15724         * unexec.c: Remove vestigial Lucid C code.
15725         * unexalpha.c:
15726         * unexaix.c:
15727         * termcap.c:
15728         * libsst.c: Ansify.
15729         Remove declarations of errno and strerror().
15730
15731         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15732
15733         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15734
15735 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15736
15737         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15738         Optimize.
15739
15740 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15741
15742         * md5.c:
15743         * file-coding.c:
15744         * file-coding.h:
15745         Change enum eol_type to eol_type_t.
15746
15747 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15748
15749         * gui.c (get_gui_callback): Check cons before accessing car.
15750
15751 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15752
15753         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15754         (XSETSPECIFIER_TYPE): Ditto.
15755
15756 2000-01-17  Didier Verna  <didier@xemacs.org>
15757
15758         * redisplay.c (generate_fstring_runes): compute string size in
15759         characters, not bytes.
15760
15761 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15762
15763         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15764
15765 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15766
15767         * print.c (print_error_message): Call print_prepare().
15768
15769 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15770
15771         * .dbxrc: Renamed from dbxrc.
15772
15773         * events.c (event_to_character):
15774         Use `assert (foo)' instead of `if (!foo) abort()'
15775
15776         * .gdbinit (xtype): Add documentation.
15777         * .gdbinit (check-temacs): New function.
15778         * .gdbinit (check-xemacs): New function.
15779         * dbxrc (check-xemacs): New function.
15780         * dbxrc (check-xemacs): New function.
15781
15782 2000-01-14  Andy Piper  <andy@xemacs.org>
15783
15784         * glyphs-widget.c (widget_query_geometry): Make sure that we
15785         calculate default dimensions correctly.
15786
15787 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15788
15789         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15790
15791         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15792         pdump_wire'd variable.
15793
15794         * emacs.c: (main_1): Conditionalized calls to
15795         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15796
15797 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15798
15799         * window.c (Fset_window_configuration):
15800         * sysdep.c (_start):
15801         * input-method-motif.c (res):
15802         * event-Xt.c (Xt_process_to_emacs_event):
15803         Simple compiler warning fixes.
15804
15805         * bytecode.c (funcall_compiled_function): Use the original
15806         function symbol on the backtrace list in preference to the
15807         compiled_function object in error messages.
15808
15809 2000-01-13  Andy Piper  <andy@xemacs.org>
15810
15811         * glyphs-x.c (update_widget_face): Make sure we update the widget
15812         background as well as foreground.
15813
15814 2000-01-13  Andy Piper  <andy@xemacs.org>
15815
15816         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15817         fields to subwindow.
15818         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15819         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15820         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15821         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15822
15823         * glyphs-widget.c (check_valid_tab_orientation): new function.
15824         (initialize_widget_image_instance): zero orientation and
15825         justification.
15826         (widget_instantiate): pick up orientation.
15827         (tab_control_query_geometry): return appropriate values for
15828         vertical tabs.
15829
15830         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15831         appropriate creation flags for left, right and bottom tabs.
15832
15833         * s/cygwin32.h: add tab definitions.
15834
15835 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15836
15837         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15838         frame upon hiding a subwindow.
15839         (mswindows_button_instantiate): Changed the push button style to
15840         BS_PUSHBUTTON.
15841         (mswindows_button_instantiate): Removed button BS_NOTIFY
15842         style.
15843         (mswindows_button_instantiate): Removed redundant check for
15844         a disabled gui item.
15845         (mswindows_button_instantiate): Made use of WS_TABSTOP
15846         consistent: "operable" controls (edit, button, tree, scroll) have
15847         this style, "display-only" ones (static, progress gauge) do
15848         not. This style is currently ignored by XEmacs though. Also,
15849         removed the WS_EX_CONTROLPARENT style - it is not for children,
15850         it is for their parents!
15851         (mswindows_edit_field_instantiate): Ditto.
15852         (mswindows_progress_gauge_instantiate): Ditto.
15853         (mswindows_tree_view_instantiate): Ditto.
15854         (mswindows_tab_control_instantiate): Ditto.
15855         (mswindows_scrollbar_instantiate): Ditto.
15856         (mswindows_combo_box_instantiate): Ditto.
15857         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15858         style to the "clip" window.
15859         (mswindows_button_instantiate): Removed compilation warning by
15860         equally typing terms of the ?: operator.
15861
15862 2000-01-12  Didier Verna  <didier@xemacs.org>
15863
15864         * redisplay.c (generate_fstring_runes): new parameter holding the
15865         last modeline-format extent.
15866         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15867         extent, fill the glyph block with it.
15868         (generate_fstring_runes): handle these parameters.
15869         (generate_formatted_string_db): ditto.
15870
15871         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15872         glyphs'extents in the modeline.
15873
15874 1999-01-11  Mike Woolley  <mike@bulsara.com>
15875
15876         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15877         256Mb, as a workaround for the non-starting problem many people
15878         have experienced.
15879
15880 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15881
15882         * console-tty.c (Fset_console_tty_output_coding_system):
15883         Force redrawing tty frame.
15884
15885 2000-01-10  Didier Verna  <didier@xemacs.org>
15886
15887         * redisplay.c (generate_fstring_runes): fix size computation bug.
15888
15889 2000-01-09  William M. Perry <wmperry@aventail.com>
15890
15891         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15892
15893 2000-01-09  Andy Piper  <andy@xemacs.org>
15894
15895         * glyphs-msw.c: index -> i to avoid shadows.
15896         (xbm_create_bitmap_from_data): make static.
15897         (check_valid_string_or_int): deleted.
15898         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15899
15900         * glyphs-x.c (x_update_subwindow): remove unused args.
15901
15902         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15903         back pointer - this is done in allocate_image_instance.
15904         (query_string_font): return Qnil to make the compiler happy.
15905         (unmap_subwindow): set to ~0 to make the compiler happy.
15906         (glyph_query_geometry): comment out until used.
15907         (glyph_layout): ditto.
15908
15909 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15910
15911         * insdel.c (signal_after_change): Remove extraneous unbind_to().