Sync up with r21-4-12-chise-0_21-pre8.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (char_attribute_list_reset_map_func): New function
4         when HAVE_LIBCHISE is defined.
5         (Fchar_attribute_list): Add new optional argument `rehash' when
6         HAVE_LIBCHISE is defined.
7         (open_chise_data_source_maybe): Use "chise-db" instead of
8         "char-db".
9         (char_attribute_system_db_file): Likewise.
10         (Fload_char_attribute_table): Use
11         `chise_feature_foreach_char_with_value' instead of
12         `chise_char_feature_value_iterate'.
13
14 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
15
16         * chartab.c (Vchise_db_directory): New variable.
17         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
18
19 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
22         instead of HAVE_CHISE to specify using with libchise.
23
24         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
25
26         * chartab.h: Don't use HAVE_CHISE_CLIENT.
27
28         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
29         defined or HAVE_LIBCHISE_LIBCHISE is defined.
30         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
31         is defined.
32         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
33         HAVE_CHISE to specify using with libchise.
34         (syms_of_chartab): Don't define symbol `system-char-id' when
35         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
36
37 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
40         specify CHISE DB support.
41         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
42         of `char_attribute_system_db_file' to check feature DB file.
43
44         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
45         HAVE_CHISE_CLIENT to specify CHISE DB support.
46
47         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
48         specify CHISE DB support.
49         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
50         not defined.
51         (Freset_char_attribute_table): Use `chise_feature_setup_db'
52         instead of `char_attribute_system_db_file' to check feature DB
53         file.
54
55 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
56
57         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
58         `HAVE_CHISE_CLIENT'.
59
60 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
61
62         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
63         (Fsave_charset_mapping_table): Don't use
64         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
65
66         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
67         (HAVE_LIBCHISE): New macro.
68
69         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
70
71         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
72         (Fsave_char_attribute_table): Don't use
73         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
74
75 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
78         defined.
79         (save_uint16_byte_table): Likewise.
80         (save_byte_table): Likewise.
81         (char_table_get_db): Use `chise_ds_load_char_feature_value'
82         instead of `chise_char_load_feature_value'.
83         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
84
85 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * chartab.h (struct Lisp_Char_Table): Delete member
88         `feature_table' if CHISE is defined.
89
90         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
91         (Fcopy_char_table): Likewise.
92         (char_table_open_db_maybe): Likewise.
93         (char_table_close_db_maybe): Likewise.
94         (char_table_get_db): Likewise.
95         (Fmount_char_attribute_table): Likewise.
96         (Fload_char_attribute_table): Likewise.
97
98 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
99
100         * mule-charset.c (load_char_decoding_entry_maybe): Use
101         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
102         `chise_ccs_decode'.
103
104 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
105
106         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
107         instead of `chise_open_data_source'.
108         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
109         `chise_ds_close'.
110
111 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
112
113         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
114         instead of `chise_ds_open_feature_table'.
115         (char_table_close_db_maybe): Don't use `chise_ft_close'.
116
117 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
118
119         * mule-charset.c (Fsave_charset_mapping_table): Use
120         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
121         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
122         `chise_ccs_sync' instead of `chise_ccst_close'.
123         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
124
125         * chartab.c (open_chise_data_source_maybe): Modify for
126         `chise_open_data_source'.
127         (char_table_open_db_maybe): Modify for
128         `chise_ds_open_feature_table'.
129
130 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
131
132         * mule-charset.c (load_char_decoding_entry_maybe): Use
133         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
134         `chise_ccst_close'.
135
136 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
137
138         * mule-charset.c (Fsave_charset_mapping_table): Use
139         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
140         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
141         `chise_dt_put_char' and `chise_dt_close'.
142         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
143         `chise_ccs_decode' and `chise_ccst_close' instead of
144         `chise_ds_open_decoding_table', `chise_dt_get_char' and
145         `chise_dt_close'.
146
147         * chartab.c (char_table_get_db): Use
148         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
149         (load_char_attribute_table_map_func): Modify for
150         `chise_char_feature_value_iterate'.
151         (Fload_char_attribute_table): Use
152         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
153
154 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
157
158 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
159
160         * chartab.c (put_char_table): Modify for inherited coded-charsets
161         in XEmacs CHISE.
162
163 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
164
165         * chartab.c (Fput_char_table_map_function): Fixed.
166         (word_boundary_p): Don't check charset in XEmacs CHISE.
167
168 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
169
170         * mule-charset.c (Fsave_charset_mapping_table): Use
171         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
172         instead of `chise_open_decoding_table'; refer
173         `default_chise_data_source'; use `chise_dt_close' instead of
174         `chise_close_decoding_table'.
175         (load_char_decoding_entry_maybe): Likewise.
176
177         * chartab.c (default_chise_data_source): New variable when `CHISE'
178         is defined.
179         (Fcopy_char_table): `ct->ds' is deleted.
180         (open_chise_data_source_maybe): New function.
181         (Fclose_char_data_source): New function.
182         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
183         use `chise_ds_open_feature_table' instead of
184         `chise_open_feature_table'.
185         (char_table_close_db_maybe): Use `chise_ft_close' instead of
186         `chise_close_feature_table'; `cit->ds' is deleted.
187         (syms_of_chartab): Add new builtin function
188         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
189
190         * chartab.h (default_chise_data_source): New extern variable.
191         (open_chise_data_source_maybe): New prototype.
192         (struct Lisp_Char_Table): Delete `ds'.
193
194 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
195
196         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
197         `CHISE' is defined.
198
199 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
200
201         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
202         not defined; add code for non-libchise setting.
203         (char_table_close_db_maybe): Likewise.
204         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
205         defined.
206         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
207         even if `CHISE' is not defined.
208         (Freset_char_attribute_table): Likewise.
209         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
210         `char_table_close_db_maybe' even if `CHISE' is not defined; use
211         `char_table_get_db'.
212         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
213         `char_table_close_db_maybe' even if `CHISE' is not defined.
214
215 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
216
217         * chartab.c (char_table_open_db_maybe): New function.
218         (char_table_close_db_maybe): New function.
219         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
220         (Freset_char_attribute_table): Likewise.
221         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
222         `char_table_close_db_maybe'.
223         (Fload_char_attribute_table): Likewise.
224
225 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
226
227         * chartab.c: Don't include <chise.h> because it is included in
228         chartab.h.
229         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
230         defined.
231         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
232         `CHISE' is defined.
233         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
234         `CHISE' is defined.
235         (Fclose_char_attribute_table): Close `ct->feature_table' and
236         `ct->ds' when `CHISE' is defined.
237         (Freset_char_attribute_table): Likewise.
238         (load_char_attribute_maybe): Use `cit->ds' and
239         `cit->feature_table' when `CHISE' is defined.
240         (Fload_char_attribute_table): Likewise.
241
242         * chartab.h: Include <chise.h> when `CHISE' is defined.
243         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
244         when `CHISE' is defined.
245
246 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
247
248         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
249         is defined.
250         (char_table_description): Likewise.
251         (Fmake_char_table): Likewise.
252         (Fcopy_char_table): Likewise.
253         (Fmount_char_attribute_table): Likewise.
254         (Fclose_char_attribute_table): Likewise.
255         (Freset_char_attribute_table): Likewise.
256         (load_char_attribute_maybe): Likewise.
257         (Fload_char_attribute_table): Likewise.
258
259         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
260         defined.
261
262 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
263
264         * chartab.c (load_char_attribute_table_map_func): New function
265         when CHISE is defined.
266         (Qload_char_attribute_table_map_function): Don't define when CHISE
267         is defined.
268         (Fload_char_attribute_table_map_function): Likewise.
269         (Fload_char_attribute_table): Use libchise when `CHISE' is
270         defined.
271         (syms_of_chartab): Don't define
272         `load-char-attribute-table-map-function' when CHISE is defined.
273
274 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
275
276         * chartab.c: Include <chise.h> when `CHISE' is defined.
277         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
278
279 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
280
281         * mule-charset.c (charset_code_point): Fix problem when searching
282         in mother CCS fails with `defined_only' mode.
283
284 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
285
286         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
287         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
288         (put_char_composition): Likewise.
289         (Fput_char_attribute): Likewise.
290         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
291
292 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
293
294         * chartab.c (Q_ucs): Deleted.
295         (Fput_char_attribute): Don't refer `->ucs'.
296         (Fdefine_char): Likewise.
297         (Ffind_char): Likewise.
298         (syms_of_chartab): Delete `->ucs'.
299
300 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
301
302         * mule-charset.c (Qmap_cns11643_2): Renamed from
303         `Qchinese_cns11643_2'.
304         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
305         `chinese-cns11643-2'.
306         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
307         `=cns11643-2'.
308
309 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
310
311         * mule-charset.c (Qmap_cns11643_1): Renamed from
312         `Qchinese_cns11643_1'.
313         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
314         `chinese-cns11643-1'.
315         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
316         `=cns11643-1'.
317
318 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
319
320         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
321         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
322         `chinese-gb12345'.
323         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
324         `=gb12345'.
325
326 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
327
328         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
329         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
330         `chinese-gb2312'.
331         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
332         `=gb2312'.
333
334 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
335
336         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
337         (syms_of_mule_charset): Add new symbol `=big5' instead of
338         `chinese-big5'.
339         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
340
341 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
344         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
345         `korean-ksc5601'.
346         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
347         `=ks-x1001'.
348
349 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
350
351         * mule-charset.c (Qmap_jis_x0212): Renamed from
352         `Qjapanese_jisx0212'.
353         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
354         `japanese-jisx0212'.
355         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
356         `=jis-x0212'.
357
358 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
359
360         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
361         `Qjapanese_jisx0208'.
362         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
363         of `japanese-jisx0208'.
364         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
365         `=jis-x0208-1983'.
366
367 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
368
369         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
370         `Qjapanese_jisx0208_1978'.
371         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
372         of `japanese-jisx0208-1978'.
373         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
374         `=jis-x0208-1978'.
375
376 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
377
378         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
379         only for XEmacs CHISE.
380
381 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
382
383         * char-ucs.h: Compact non-ISO-IR charset-ids.
384         (LEADING_BYTE_UCS): Changed to -177.
385         (LEADING_BYTE_CONTROL_1): Changed to -77.
386         (LEADING_BYTE_UCS_BMP): Changed to -176.
387         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
388
389 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
390
391         * mule-charset.c (Qiso_ir): New variable.
392         (Fmake_charset): Recognise new property `iso-ir'.
393         (syms_of_mule_charset): Add new symbol `iso-ir'.
394
395 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
396
397         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
398         n to -n; charset-id of non ISO-IR sets are changed to positive
399         numbers.
400
401 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
402
403         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
404         for &MCS-XXXXXXXX; values.
405
406 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
407
408         * mule.c (Vxemacs_chise_version): Renamed from
409         `Vutf_2000_version'.
410         (vars_of_mule): Add new variable `xemacs-chise-version'; define
411         `utf-2000-version' as an alias for `xemacs-chise-version'.
412
413 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
414
415         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
416         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
417         defined.
418
419         * config.h.in (CHISE): New macro.
420
421 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
422
423         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
424         of `ucs'.
425         (Qmap_ucs): New variable.
426         (syms_of_mule_charset): Add new symbol `=ucs'.
427         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
428
429         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
430         (simplify_char_spec): Likewise.
431
432         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
433
434         * char-ucs.h (Qmap_ucs): New extern variable.
435
436 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
437
438         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
439         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
440         don't define it when UTF2000 is not defined.
441         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
442         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
443         when UTF2000 is not defined.
444         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
445         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
446
447 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
448
449         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
450
451         * mule-charset.c (Vcharset_ucs_gb): Deleted.
452         (Qucs_gb): Deleted.
453         (syms_of_mule_charset): Delete `ucs-gb'.
454         (complex_vars_of_mule_charset): Likewise.
455
456 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
457
458         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
459
460         * mule-charset.c (Vcharset_ucs_cns): Deleted.
461         (Qucs_cns): Deleted.
462         (syms_of_mule_charset): Delete `ucs-cns'.
463         (complex_vars_of_mule_charset): Likewise.
464
465 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
466
467         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
468
469         * mule-charset.c (Vcharset_ucs_jis): Deleted.
470         (Qucs_jis): Deleted.
471         (syms_of_mule_charset): Delete `ucs-jis'.
472         (complex_vars_of_mule_charset): Likewise.
473
474 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
475
476         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
477
478         * mule-charset.c (Vcharset_ucs_ks): Deleted.
479         (Qucs_ks): Deleted.
480         (syms_of_mule_charset): Delete `ucs-ks'.
481         (complex_vars_of_mule_charset): Likewise.
482
483 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
484
485         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
486         (Qideograph_daikanwa_2): Deleted.
487         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
488         (complex_vars_of_mule_charset): Likewise.
489
490         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
491         (LEADING_BYTE_DAIKANWA_1): Deleted.
492         (LEADING_BYTE_DAIKANWA_2): Deleted.
493         (MIN_CHAR_DAIKANWA): Deleted.
494         (MAX_CHAR_DAIKANWA): Deleted.
495
496 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
497
498         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
499         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
500         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
501
502         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
503         (Vcharset_ideograph_daikanwa): Deleted.
504         (Qideograph_hanziku_{1..12}): Deleted.
505         (Qideograph_daikanwa): Deleted.
506         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
507         Vcharset_ideograph_daikanwa.
508         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
509         `ideograph-hanziku-{1..12}'.
510         (complex_vars_of_mule_charset): Likewise.
511
512 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
513
514         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
515
516         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
517         (Qideograph_gt_pj_{1..11}): Deleted.
518         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
519         (complex_vars_of_mule_charset): Likewise.
520
521 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
522
523         * mule-charset.c (Vcharset_ucs_big5): Deleted.
524         (Vcharset_ideograph_gt): Deleted.
525         (Qucs_big5): Deleted.
526         (Qideograph_gt): Deleted.
527         (syms_of_mule_charset): Delete symbol `ucs-big5' and
528         `ideograph-gt'.
529         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
530         and `ideograph-gt'.
531
532         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
533         (LEADING_BYTE_GT): Deleted.
534         (MIN_CHAR_GT): Deleted.
535         (MAX_CHAR_GT): Deleted.
536
537 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
538
539         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
540
541 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
542
543         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
544         (save_uint16_byte_table): Likewise.
545         (save_byte_table): Likewise; convert values by it.
546         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
547         for `ideographic-structure'.
548         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
549         as the filter for `ideographic-structure'.
550
551 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
552
553         * chartab.c (put_char_composition): New function.
554         (Fput_char_attribute): Use `put_char_composition'; use
555         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
556
557         * fns.c (simplify_char_spec): New function.
558         (char_ref_simplify_spec): New function.
559         (Fchar_refs_simplify_char_specs): New function.
560         (syms_of_fns): Add new builtin function
561         `char-refs-simplify-char-specs'.
562
563 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
564
565         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
566         (Qideograph_cbeta): Deleted.
567         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
568         (complex_vars_of_mule_charset): Likewise.
569
570         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
571         (MIN_CHAR_CBETA): Comment out.
572         (MAX_CHAR_CBETA): Likewise.
573
574 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
575
576         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
577         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
578         CHISE client feature.
579
580 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
581
582         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
583
584 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
585
586         * mule-charset.c (charset_lookup_description_1): Use
587         `NUM_LEADING_BYTES' in UTF-2000.
588
589 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
590
591         * char-ucs.h (GC_CHARSETP): Deleted.
592
593 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
594
595         * char-ucs.h (MAX_CHAR_GT): Updated.
596
597 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
598
599         * text-coding.c: Sync with XEmacs 21.4.10.
600
601 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
602
603         * mule-charset.c (Vcharset_china3_jef): Deleted.
604         (Qchina3_jef): Deleted.
605         (syms_of_mule_charset): Don't define `china3-jef'.
606         (complex_vars_of_mule_charset): Likewise.
607
608         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
609         (MIN_CHAR_CHINA3_JEF): Comment out.
610         (MAX_CHAR_CHINA3_JEF): Comment out.
611
612 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
613
614         * mule-charset.c (Vcharset_ucs_gb): New variable.
615         (Qucs_gb): New variable.
616         (syms_of_mule_charset): Add new symbol `ucs-gb'.
617         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
618
619         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
620
621 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
622
623         * mule-charset.c (charset_code_point): if a coded-charset has a
624         final-byte, don't inherit the builtin range of the mother CCS.
625
626 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
627
628         * mule-charset.c (charset_code_point): Fix problem about
629         inheritance.
630
631 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
632
633         * mule-charset.c (decode_builtin_char): Reorganized.
634
635 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
636
637         * text-coding.c (char_encode_as_entity_reference): Modify for
638         `charset_code_point'.
639         (char_encode_shift_jis): Likewise.
640         (char_encode_big5): Likewise.
641         (char_encode_utf8): Likewise.
642         (char_encode_iso2022): Likewise.
643
644         * mule-charset.c (charset_code_point): Add new argument
645         `defined_only'.
646         (Fencode_char): Add new optional argument `defined_only'.
647
648         * chartab.c (put_char_table): Modify for `charset_code_point'.
649
650         * char-ucs.h (charset_code_point): Add new argument
651         `defined_only'.
652         (encode_char_1): Modify for `charset_code_point'.
653
654 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
655
656         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
657         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
658
659 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
660
661         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
662         (Qjis_x0208): Likewise.
663         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
664         XCHARSET_FINAL(charset).
665         (charset_code_point): Modify condition for final-byte based
666         builtin-chars.
667         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
668         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
669         in UTF-2000; specify `=jis-x0208' as the mother of
670         `japanese-jisx0208-1978', `japanese-jisx0208' and
671         `japanese-jisx0208-1990' in UTF-2000.
672
673 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
674
675         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
676
677 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
678
679         * text-coding.c (decode_coding_utf16): Support UTF-16.
680         (char_encode_utf16): Fixed.
681
682 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * text-coding.c (Qutf16): New variable in MULE.
685         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
686         (Fcoding_system_type): Add `utf-16' in MULE.
687         (struct detection_state): Add a structure for utf16 in MULE.
688         (detect_coding_type): Setup st->utf16.mask in MULE.
689         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
690         MULE.
691         (reset_encoding_stream): Use `char_encode_utf16' and
692         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
693         (detect_coding_utf16): New function [incomplete].
694         (decode_coding_utf16): New function [support only UCS-2].
695         (char_encode_utf16): New function.
696         (char_finish_utf16): New function.
697         (syms_of_file_coding): Add new symbol `utf-16'; setup
698         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
699
700         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
701         UTF-2000.
702         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
703         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
704
705 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
706
707         * chartab.c (put_char_table): When a charset is specified as a
708         range in UTF-2000, don't support builtin characters.
709
710 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
711
712         * mule-charset.c (decode_defined_char): Don't refer external
713         database if Qunbound or Qnil are found.
714         (Fsave_charset_mapping_table): Don't define it if
715         HAVE_CHISE_CLIENT is not defined.
716         (Freset_charset_mapping_table): New function.
717         (load_char_decoding_entry_maybe): Store Qnil if a character is not
718         found in external database.
719         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
720         if HAVE_CHISE_CLIENT is not defined; add new builtin function
721         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
722
723 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
724
725         * text-coding.c (decode_coding_utf8): Check CCS is specified or
726         not.
727
728 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
729
730         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
731         Q_lowercase, Q_uppercase in UTF-2000.
732
733         * chartab.c (get_char_table): Add special code for the standard
734         case table to use character attribute `->downcase' and
735         `->uppercase' for case operations in UTF-2000.
736
737         * casetab.c (Qflippedcase): New variable in UTF-2000.
738         (Q_lowercase): Likewise.
739         (Q_uppercase): Likewise.
740         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
741         and `->uppercase' in UTF-2000.
742         (complex_vars_of_casetab): Assign attribute name `downcase' to
743         downcase and CANON table of Vstandard_case_table in UTF-2000;
744         assign attribute name `flippedcase' to upcase and EQV table of
745         Vstandard_case_table in UTF-2000.
746
747 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
748
749         * text-coding.c (decode_add_er_char): Support isolated-chars.
750         (char_encode_as_entity_reference): Likewise.
751
752 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
753
754         * emacs.c (Vutf_2000_lisp_directory): New variable.
755         (Vconfigure_utf_2000_lisp_directory): Likewise.
756         (complex_vars_of_emacs): Add new variable
757         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
758
759 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
760
761         * char-ucs.h (DECODE_CHAR): Delete special code for
762         `chinese-big5-1' and `chinese-big5-2'.
763
764         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
765         (Qbig5_2): Likewise.
766         (decode_defined_char): Support CONVERSION_BIG5_1 and
767         CONVERSION_BIG5_2.
768         (decode_builtin_char): Likewise.
769         (charset_code_point): Likewise.
770         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
771         'conversion in UTF-2000.
772         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
773         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
774         `chinese-big5-2' as children of `chinese-big5'.
775
776         * char-ucs.h (CONVERSION_BIG5_1): New macro.
777         (CONVERSION_BIG5_2): New macro.
778
779 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
780
781         * text-coding.c (char_encode_big5): Support entity-reference.
782
783 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
784
785         * text-coding.c (char_encode_as_entity_reference): New function.
786         (char_encode_utf8): Use `char_encode_as_entity_reference'.
787
788 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
789
790         * text-coding.c (decode_coding_big5): Support entity-reference
791         decoding feature.
792
793 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
794
795         * text-coding.c (allocate_coding_system): Initialize initial
796         charsets for CODESYS_UTF8.
797         (Fmake_coding_system): Accept charset-g0, charset-g1 and
798         charset-g2 for CODESYS_UTF8.
799         (decode_coding_utf8): Use charset-g0.
800         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
801         to force variants to map to UCS.
802
803 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * text-coding.c (Qutf_8_mcs): New variable.
806         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
807         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
808         instead of `utf-8' in UTF-2000.
809
810 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
811
812         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
813         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
814         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
815         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
816         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
817         CONVERSION_96x96x96x96 are introduced.
818         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
819         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
820         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
821
822         * char-ucs.h (CONVERSION_94): New macro.
823         (CONVERSION_96): New macro.
824         (CONVERSION_94x94): New macro.
825         (CONVERSION_96x96): New macro.
826         (CONVERSION_94x94x94): New macro.
827         (CONVERSION_96x96x96): New macro.
828         (CONVERSION_94x94x94x60): New macro.
829         (CONVERSION_94x94x94x94): New macro.
830         (CONVERSION_96x96x96x96): New macro.
831
832 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
833
834         * chartab.c (Vcharacter_variant_table): Deleted.
835         (Fchar_variants): Use character-attribute `->ucs-variants' instead
836         of `Vcharacter_variant_table'.
837         (Fput_char_attribute): Likewise.
838         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
839         (complex_vars_of_chartab): Likewise.
840
841 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
842
843         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
844
845         * fns.c (Qideographic_structure): New variable.
846         (Qkeyword_char): New variable.
847         (ids_format_unit): New function.
848         (Fideographic_structure_to_ids): New function.
849         (syms_of_fns): Add new symbols `ideographic-structure' and
850         `:char'; add new builtin function `ideographic-structure-to-ids'.
851
852         * data.c (Fchar_ref_p): New function.
853         (syms_of_data): Add new builtin function `char-ref-p'.
854
855         * chartab.h: Add an EXFUN for `Ffind_char'.
856
857 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
858
859         * text-coding.c (Vcharacter_composition_table): Deleted.
860         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
861         in every UTF-2000.
862
863         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
864         UTF-2000.
865         (Vcharacter_composition_table): Deleted.
866         (Fget_composite_char): Use the implementation for external-DB
867         support in every UTF-2000.
868         (Fput_char_attribute): Likewise.
869         (char_attribute_system_db_file): Don't define if external-DB
870         feature is not available.
871         (Fsave_char_attribute_table): Likewise.
872         (Fmount_char_attribute_table): Likewise.
873         (Fclose_char_attribute_table): Likewise.
874         (Freset_char_attribute_table): Likewise.
875         (Fload_char_attribute_table): Likewise.
876         (syms_of_chartab): Don't define `save-char-attribute-table',
877         `mount-char-attribute-table', `reset-char-attribute-table',
878         `close-char-attribute-table' and `load-char-attribute-table' if
879         external-DB feature is not available.
880         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
881
882 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
883
884         * text-coding.c (Qcomposition): Add extern if external-DB feature
885         is supported.
886         (Vcharacter_composition_table): Don't add extern if external-DB
887         feature is supported.
888         (COMPOSE_ADD_CHAR): Modify for new data-representation of
889         character composition rule if external-DB feature is supported.
890
891         * chartab.c (Vcharacter_composition_table): Don't define if
892         external-DB feature is supported.
893         (Qcomposition): New variable.
894         (Fget_composite_char): New implementation for external-DB support.
895         (Fput_char_attribute): Use `composition' property of each
896         character instead of `Vcharacter_composition_table' to store
897         character-composition rules if external-DB feature is supported.
898         (syms_of_chartab): Add new symbol `composition'.
899         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
900         external-DB feature is supported.
901
902 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
903
904         * chartab.c (Vchar_db_stingy_mode): New variable.
905         (load_char_attribute_maybe): Close database if
906         Vchar_db_stingy_mode is not NIL.
907         (Fload_char_attribute_table_map_function): Use
908         `get_char_id_table_0' instead of `get_char_id_table'.
909         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
910
911         * chartab.h (get_char_id_table_0): New inline function.
912         (get_char_id_table): Use `get_char_id_table_0'.
913
914 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
915
916         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
917         and `COMPOSE_ADD_CHAR'.
918         (decode_coding_iso2022): Use `decode_flush_er_chars'.
919
920 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
921
922         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
923         instead of `DECODE_ADD_UCS_CHAR'.
924         (COMPOSE_ADD_CHAR): Likewise.
925
926 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
927
928         * text-coding.c (decode_flush_er_chars): New inline function.
929         (decode_add_er_char): New function.
930         (decode_coding_utf8): Use `decode_flush_er_chars' and
931         `decode_add_er_char'.
932
933 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
934
935         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
936         done before `decode_output_utf8_partial_char'.
937
938         * mule-charset.c (complex_vars_of_mule_charset): Specify
939         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
940         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
941
942 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
943
944         * mule-charset.c (decode_defined_char): New function; search
945         mother.
946         (decode_builtin_char): Don't search mother if
947         XCHARSET_MAX_CODE(charset) == 0.
948         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
949         == 0 even if code >= XCHARSET_MAX_CODE(charset).
950         (Fdecode_char): Use `decode_defined_char' instead of
951         `DECODE_DEFINED_CHAR'.
952         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
953         mother of `Vcharset_ucs_jis'.
954
955         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
956         instead of `DECODE_DEFINED_CHAR'.
957
958         * char-ucs.h (decode_defined_char): Renamed from
959         `DECODE_DEFINED_CHAR'; changed to normal function.
960         (DECODE_CHAR): Use `decode_defined_char' instead of
961         `DECODE_DEFINED_CHAR'.
962
963         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
964
965 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
966
967         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
968
969         * text-coding.c (Vcoded_charset_entity_reference_alist): New
970         variable.
971         (Quse_entity_reference): New variable.
972         (Qd): New variable.
973         (Qx): New variable.
974         (QX): New variable.
975         (coding_system_description): Add description for
976         `ccs_priority_list'.
977         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
978         (allocate_coding_system): Initialize `ccs_priority_list' in
979         UTF-2000.
980         (Fmake_coding_system): Add description about
981         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
982         (codesys).
983         (Fcoding_system_property): Accept `disable-composition' and
984         `use-entity-reference' in UTF-2000.
985         (struct decoding_stream): Add new member `er_counter' and `er_buf'
986         in UTF-2000.
987         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
988         (decode_coding_utf8): Decode entity-reference if
989         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
990         (char_encode_utf8): Encode non-Unicode characters as
991         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
992         (str->codesys).
993         (syms_of_file_coding): Add new symbols `use-entity-reference',
994         `d', `x', `X'.
995         (vars_of_file_coding): Add new variable
996         `coded-charset-entity-reference-alist'.
997         (complex_vars_of_file_coding): Declare `disable-composition' and
998         `use-entity-reference' to be coding-system-properties in UTF-2000.
999
1000         * file-coding.h (struct Lisp_Coding_System): Add new member
1001         `use_entity_reference' and `ccs_priority_list'.
1002         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1003         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1004         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1005
1006 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1007
1008         * chartab.c (save_uint8_byte_table): Don't clear the table.
1009         (save_uint16_byte_table): Likewise.
1010         (save_byte_table): Likewise.
1011         (Fmount_char_attribute_table): New function.
1012         (syms_of_chartab): Add new builtin function
1013         `mount-char-attribute-table'.
1014
1015 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016
1017         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1018         "w+" mode.
1019         (load_char_decoding_entry_maybe): Open database as read-only mode.
1020
1021         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1022         open database as "w+" mode.
1023         (load_char_attribute_maybe): Open database as read-only mode.
1024         (Fload_char_attribute_table): Likewise.
1025
1026 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1027
1028         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1029         (char_table_description): Delete member `db_file'.
1030         (Fmake_char_table): Don't refer `ct->db_file'.
1031         (Fcopy_char_table): Likewise.
1032         (Fsave_char_attribute_table): Likewise.
1033         (Fclose_char_attribute_table): Likewise.
1034         (Freset_char_attribute_table): Likewise.
1035         (load_char_attribute_maybe): Likewise.
1036         (Fload_char_attribute_table): Likewise.
1037
1038         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1039
1040 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1041
1042         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1043         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1044         `ct->db' is living.
1045         (load_char_attribute_maybe): Likewise.
1046         (Fload_char_attribute_table): Likewise.
1047
1048 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1049
1050         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1051         `ct->db_file' unconditionally.
1052
1053 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1054
1055         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1056         UTF-2000.
1057         (char_table_description): Add description for `db_file' and `db'
1058         in UTF-2000.
1059         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1060         UTF-2000.
1061         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1062         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1063         (Fclose_char_attribute_table): New function.
1064         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1065         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1066         and `cit->db'.
1067         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1068         (syms_of_chartab): Add new builtin function
1069         `Fclose_char_attribute_table'.
1070
1071 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1072
1073         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1074         `db' in UTF-2000.
1075         (load_char_attribute_maybe): Change interface.
1076         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1077
1078 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1079
1080         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1081
1082 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1083
1084         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1085         instead of `DECODE_CHAR' for mother; don't use special code for
1086         chinese-big5 to use code space of chinese-big5-1 and
1087         chinese-big5-2.
1088         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1089         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1090
1091         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1092         (MAX_CHAR_BIG5_CDP): Revival.
1093
1094 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1095
1096         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1097         the XLFD registry-encoding name of `chinese-big5'.
1098
1099 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1100
1101         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1102         (Qchinese_big5_cdp): Deleted.
1103         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1104         (complex_vars_of_mule_charset): Delete coded-charset
1105         `chinese-big5-cdp'.
1106
1107         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1108         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1109         `CHARSET_ID_OFFSET - n' for private CCS.
1110         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1111         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1112         of `MIN_LEADING_BYTE'.
1113         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1114         `(CHARSET_ID_OFFSET - 97)'.
1115         (MIN_CHAR_BIG5_CDP): Deleted.
1116         (MAX_CHAR_BIG5_CDP): Deleted.
1117
1118 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1119
1120         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1121
1122 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1123
1124         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1125         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1126         chartab.c].
1127
1128         * chartab.c (Vutf_2000_version): Moved to mule.c.
1129         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1130
1131 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1132
1133         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1134         when HAVE_CHISE_CLIENT is not defined.
1135
1136         * mule.c (vars_of_mule): Provide feature `chise' when
1137         HAVE_CHISE_CLIENT is defined.
1138
1139 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1140
1141         * config.h.in (UTF2000): Add comment.
1142         (HAVE_CHISE_CLIENT): New macro.
1143
1144 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1145
1146         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1147         CONSP.
1148         (Fput_char_attribute): Likewise.
1149         (char_attribute_system_db_file): Encode file-name of attribute.
1150         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1151         the initial value.
1152
1153 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1154
1155         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1156         (Fsave_charset_mapping_table): Use
1157         `char_attribute_system_db_file'.
1158         (load_char_decoding_entry_maybe): Likewise.
1159
1160         * chartab.h (Qsystem_char_id): New external variable.
1161         (char_attribute_system_db_file): New prototype.
1162
1163         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1164         (char_attribute_system_db_file): New function.
1165         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1166         (Freset_char_attribute_table): Likewise.
1167         (load_char_attribute_maybe): Likewise.
1168         (Fload_char_attribute_table): Likewise.
1169         (syms_of_chartab): Add new symbol `system-char-id'.
1170
1171 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1172
1173         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1174         `XCHARSET_GRAPHIC(ccs)'.
1175
1176 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1177
1178         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1179
1180 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1181
1182         * chartab.c (Q_ucs_variants): New variable.
1183         (syms_of_chartab): Add new symbol `->ucs-variants'.
1184         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1185         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1186         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1187
1188         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1189
1190         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1191         `HAVE_DATABASE' is defined.
1192         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1193         `HAVE_DATABASE' is defined.
1194
1195 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1196
1197         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1198         attribute-table.
1199         (Freset_char_attribute_table): New function.
1200         (syms_of_chartab): Add new builtin function
1201         `reset-char-attribute-table'.
1202
1203 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1204
1205         * chartab.c (load_char_attribute_maybe): Don't make directories.
1206
1207 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1208
1209         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1210
1211         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1212         for decoding-table.
1213
1214 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1215
1216         * mule-charset.c (Fsave_charset_mapping_table): Use
1217         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1218
1219         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1220         instead of `XCHARSET_CHARS'.
1221
1222 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1223
1224         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1225         (XCHARSET_BYTE_SIZE): Likewise.
1226
1227         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1228         mule-charset.c].
1229         (XCHARSET_BYTE_SIZE): Likewise.
1230
1231 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1232
1233         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1234         data-directory to store database.
1235         (Fsave_char_attribute_table): Likewise.
1236         (load_char_attribute_maybe): Likewise.
1237         (Fload_char_attribute_table): Likewise.
1238
1239 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1240
1241         * mule-charset.c (Fsave_charset_mapping_table): New function.
1242         (syms_of_mule_charset): Add new builtin function
1243         `save-charset-mapping-table'.
1244
1245 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1246
1247         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1248         (get_ccs_octet_table): New inline function.
1249         (put_ccs_octet_table): Likewise.
1250         (decoding_table_put_char): Use `get_ccs_octet_table' and
1251         `put_ccs_octet_table'.
1252         (decoding_table_remove_char): Use `decoding_table_put_char'.
1253         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1254
1255         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1256         into encoding_table.
1257         (make_charset): Use Qunbound instead Qnil as initial value of
1258         decoding_table.
1259
1260 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1261
1262         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1263         element is Qunloaded.
1264         (map_over_uint16_byte_table): Likewise.
1265         (map_over_byte_table): Likewise.
1266         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1267         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1268         database support, load encoding-table of the specified
1269         coded-charset if it is not loaded yet.
1270         (save_uint8_byte_table): New function of UTF-2000 with external
1271         database support.
1272         (save_uint16_byte_table): Likewise.
1273         (save_byte_table): Likewise.
1274         (Fput_char_attribute): Don't store value into external database
1275         even if the external database feature is supported in UTF-2000;
1276         set `attribute' as name of char-table if the external database
1277         feature is supported.
1278         (Fsave_char_attribute_table): New function in UTF-2000.
1279         (syms_of_chartab): Add new builtin function
1280         `save-char-attribute-table' in UTF-2000.
1281
1282 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1283
1284         * chartab.c (char_attribute_table_to_put): New variable in
1285         UTF-2000.
1286         (Qput_char_table_map_function): Likewise.
1287         (value_to_put): Likewise.
1288         (Fput_char_table_map_function): New function in UTF-2000.
1289         (put_char_table): Use `Fmap_char_attribute' for
1290         CHARTAB_RANGE_CHARSET in UTF-2000.
1291         (Fput_char_attribute): Store symbol instead of string in
1292         `XCHAR_TABLE_NAME (table)'.
1293         (load_char_attribute_maybe): Likewise.
1294         (syms_of_chartab): Add new symbol/function
1295         `put-char-table-map-function'.
1296
1297 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1298
1299         * database.h: Add new EXFUN for `Fmap_database'.
1300
1301         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1302         (syms_of_database): Likewise.
1303
1304         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1305         UTF-2000.
1306         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1307         (XCHAR_TABLE_UNLOADED): Likewise.
1308
1309         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1310         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1311         HAVE_DATABASE is defined.
1312         (char_attribute_table_to_load): New variable of UTF-2000 with
1313         external database support.
1314         (Qload_char_attribute_table_map_function): Likewise.
1315         (Fload_char_attribute_table_map_function): New function of
1316         UTF-2000 with external database support.
1317         (Fload_char_attribute_table): New function of UTF-2000.
1318         (Fmap_char_attribute): Call Fload_char_attribute_table if
1319         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1320         (syms_of_chartab): Add new symbol and function
1321         `load-char-attribute-table-map-function' in UTF-2000 with external
1322         database support; add new function `load-char-attribute-table' in
1323         UTF-2000.
1324
1325 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1326
1327         * chartab.h (load_char_attribute_maybe): New prototype for
1328         UTF-2000 with DATABASE support.
1329         (get_char_id_table): Use `load_char_attribute_maybe' if
1330         HAVE_DATABASE is defined.
1331
1332         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1333         with DATABASE support.
1334
1335 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1336
1337         * chartab.c (Fput_char_attribute): Use S-expression as key of
1338         external database.
1339
1340         * chartab.h (get_char_id_table): Use S-expression as key of
1341         external database.
1342
1343 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1344
1345         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1346         if an element is not loaded, load the corresponding attributes
1347         from an external database.
1348         (map_over_uint16_byte_table): Likewise.
1349         (map_over_byte_table): Likewise.
1350         (map_char_table): Modify for `map_over_uint8_byte_table',
1351         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1352         element is not loaded, load the corresponding attributes from an
1353         external database.
1354         (Fput_char_attribute): Change initial values to Qunloaded.
1355
1356         * chartab.h (get_char_id_table): If a character attribute is not
1357         loaded and the attribute value is not found in an external
1358         database, store Qunbound as the attribute value.
1359
1360 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1361
1362         * chartab.c (BT_UINT8_unloaded): New macro.
1363         (UINT8_VALUE_P): Accept Qunloaded.
1364         (UINT8_ENCODE): Likewise.
1365         (UINT8_DECODE): Likewise.
1366         (BT_UINT16_unloaded): New macro.
1367         (UINT16_VALUE_P): Accept Qunloaded.
1368         (UINT16_ENCODE): Likewise.
1369         (UINT16_DECODE): Likewise.
1370         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1371         BT_UINT16_unloaded.
1372         (mark_char_table): Mark `ct->name' in UTF-2000.
1373         (char_table_description): Add `name' in UTF-2000.
1374         (Fmake_char_table): Initialize `ct->name'.
1375         (Fcopy_char_table): Copy `ct->name'.
1376         (Fput_char_attribute): Store value into an external database if
1377         HAVE_DATABASE is defined.
1378
1379         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1380         UTF-2000.
1381         (CHAR_TABLE_NAME): New macro in UTF-2000.
1382         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1383         (get_char_id_table): Try to read an external database if Qunloaded
1384         is stored in a table.
1385
1386         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1387         Qunloaded.
1388
1389 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1390
1391         * database.h: Add EXFUN definitions for Fopen_database,
1392         Fput_database, Fget_database and Fclose_database.
1393
1394         * data.c (Qunloaded): New variable in UTF-2000.
1395
1396         * lisp.h (Qunloaded): New variable in UTF-2000.
1397
1398 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1399
1400         * mule-charset.c (put_char_ccs_code_point): Modify for
1401         `decoding_table_remove_char' and `decoding_table_put_char'.
1402         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1403
1404         * char-ucs.h (decoding_table_remove_char): Change arguments to
1405         hide decoding_table vector.
1406         (decoding_table_put_char): Likewise.
1407
1408 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1409
1410         * mule-charset.c (decoding_table_remove_char): Moved to
1411         char-ucs.h.
1412         (decoding_table_put_char): Likewise.
1413
1414         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1415         from mule-charset.c].
1416         (decoding_table_remove_char): New inline function [moved from
1417         mule-charset.c].
1418         (decoding_table_put_char): Likewise.
1419
1420 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1421
1422         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1423         extension.
1424
1425 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1426
1427         * mule-charset.c (decode_builtin_char): Support mother charsets.
1428
1429 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1430
1431         * mule-charset.c (Q94x94x60): New variable.
1432         (charset_code_point): Support conversion `94x94x60'.
1433         (Fmake_charset): Likewise.
1434         (syms_of_mule_charset): Add new symbol `94x94x60'.
1435
1436         * char-ucs.h (CONVERSION_94x94x60): New macro.
1437
1438 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1439
1440         * mule-charset.c (charset_code_point): Unify code about
1441         `code-offset'.
1442
1443 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1444
1445         * mule-charset.c (charset_code_point): Merge code about builtin
1446         characters into code about mother charsets; don't use
1447         `range_charset_code_point'.
1448         (range_charset_code_point): Deleted.
1449
1450 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1451
1452         * mule-charset.c (Qcode_offset): New variable.
1453         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1454         `max-code'; accept new property `code-offset'.
1455         (syms_of_mule_charset): Add new symbol `code-offset'.
1456
1457 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1458
1459         * mule-charset.c (range_charset_code_point): Fixed.
1460
1461 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1462
1463         * mule-charset.c (decode_builtin_char): Change semantics of
1464         code-offset of coded-charset.
1465         (charset_code_point): Likewise.
1466         (range_charset_code_point): Likewise.
1467         (complex_vars_of_mule_charset): Modify for the change.
1468
1469 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1470
1471         * mule-charset.c (Fencode_char): Reverse arguments.
1472
1473         * mule-charset.c (charset_code_point): Fixed.
1474
1475 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1476
1477         * mule-charset.c (Vcharset_mojikyo): Deleted.
1478         (Vcharset_mojikyo_2022_1): Deleted.
1479         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1480         (Qmin_code): New variable in UTF-2000.
1481         (Qmax_code): Likewise.
1482         (Qmother): Likewise.
1483         (Qconversion): Likewise.
1484         (Q94x60): Likewise.
1485         (Qmojikyo): Deleted.
1486         (Qmojikyo_2022_1): Deleted.
1487         (Qmojikyo_pj_{1..22}): Deleted.
1488         (mark_charset): Mark `cs->mother'.
1489         (charset_description): Add description for `mother'.
1490         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1491         new arguments `mother' and `conversion'; use
1492         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1493         (charset_code_point): Moved from char-ucs.h; support `mother'
1494         charset feature.
1495         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1496         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1497         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1498         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1499         allow 2 as the value of `graphic' in UTF-2000; add new properties
1500         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1501         require `final' in UTF-2000; modify for `make_charset'.
1502         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1503         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1504         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1505         (Fencode_char): New function.
1506         (syms_of_mule_charset): Add new builtin function `encode-char' in
1507         UTF-2000; add new symbols `min-code', `max-code', `mother',
1508         `conversion' and `94x60'; delete symbols `mojikyo',
1509         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1510         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1511         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1512         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1513
1514         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1515         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1516
1517         * char-ucs.h (Vcharset_mojikyo): Deleted.
1518         (Vcharset_mojikyo_2022_1): Deleted.
1519         (LEADING_BYTE_MOJIKYO): Deleted.
1520         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1521         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1522         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1523         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1524         add new member `mother'; add new member `conversion'.
1525         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1526         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1527         (CHARSET_MOTHER): New macro.
1528         (CHARSET_CONVERSION): New macro.
1529         (CONVERSION_IDENTICAL): New macro.
1530         (CONVERSION_94x60): New macro.
1531         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1532         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1533         (XCHARSET_MOTHER): New macro.
1534         (XCHARSET_CONVERSION): New macro.
1535         (MIN_CHAR_MOJIKYO): Deleted.
1536         (MAX_CHAR_MOJIKYO): Deleted.
1537         (DECODE_MOJIKYO_2022): Deleted.
1538         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1539         (charset_code_point): Changed to non-inline function.
1540         (encode_char_1): Use `charset_code_point'.
1541         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1542
1543 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544
1545         * lread.c (read_compiled_function): Fix prototype.
1546         (read_vector): Likewise.
1547
1548 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1549
1550         * lrecord.h (struct lrecord_header): Delete `older'.
1551         (set_lheader_implementation): Delete code for `older'.
1552         (set_lheader_older_implementation): Deleted.
1553         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1554         (OLDER_RECORD_P): Deleted.
1555         (OLDER_RECORD_HEADER_P): Deleted.
1556         (alloc_older_lcrecord): Deleted.
1557         (alloc_older_lcrecord_type): Deleted.
1558
1559         * alloc.c (all_older_lcrecords): Deleted.
1560         (alloc_older_lcrecord): Deleted.
1561         (disksave_object_finalization_1): Delete code for older objects.
1562         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1563         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1564
1565 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1566
1567         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1568         instead of `make_older_vector'.
1569         (put_char_ccs_code_point): Likewise.
1570         (mark_charset): Mark `cs->decoding_table'.
1571         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1572
1573         * lisp.h (make_older_vector): Deleted.
1574         (make_vector_newer): Deleted.
1575
1576         * config.h.in (HAVE_GGC): Deleted.
1577
1578         * alloc.c (make_older_vector): Deleted.
1579         (make_vector_newer_1): Deleted.
1580         (make_vector_newer): Deleted.
1581
1582 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1583
1584         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1585         (Qideograph_daikanwa_2): New variable.
1586         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1587         (complex_vars_of_mule_charset): Add new coded-charset
1588         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1589         `LEADING_BYTE_DAIKANWA'.
1590
1591         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1592         (LEADING_BYTE_DAIKANWA_1): New macro.
1593         (LEADING_BYTE_DAIKANWA_2): New macro.
1594         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1595
1596 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1597
1598         * mule-charset.c (complex_vars_of_mule_charset): Change
1599         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1600         the second revised version.
1601
1602 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1603
1604         * mule-charset.c (Vcharset_ucs_smp): New variable.
1605         (Vcharset_ucs_sip): New variable.
1606         (Qucs_smp): New variable.
1607         (Qucs_sip): New variable.
1608         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1609         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1610         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1611         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1612         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1613         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1614
1615         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1616         (LEADING_BYTE_UCS_SIP): New macro.
1617         (MIN_CHAR_SMP): New macro.
1618         (MAX_CHAR_SMP): New macro.
1619         (MIN_CHAR_SIP): New macro.
1620         (MAX_CHAR_SIP): New macro.
1621
1622 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1623
1624         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1625         utf-2000.
1626
1627 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1628
1629         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1630         value; don't store value into `encoding_table' of `Lisp_Charset'.
1631         (mark_charset): `encoding_table' was deleted.
1632         (charset_description): Likewise.
1633         (make_charset): Likewise.
1634         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1635         `put_char_ccs_code_point'.
1636
1637         * chartab.h (Fput_char_attribute): New EXFUN.
1638
1639         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1640         is unified with normal symbol space.
1641         (Fget_char_attribute): Likewise.
1642         (Fput_char_attribute): Likewise; behavior of
1643         `put_char_ccs_code_point' is changed.
1644
1645         * char-ucs.h: Include "elhash.h".
1646         (Vchar_attribute_hash_table): New external variable.
1647         (struct Lisp_Charset): Delete `encoding_table'.
1648         (CHARSET_ENCODING_TABLE): New implementation; refer
1649         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1650         `Lisp_Charset'.
1651
1652 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1653
1654         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1655         (cs) == 0.
1656
1657 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1658
1659         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1660         `chinese-big5'.
1661
1662 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1663
1664         * chartab.c (uint8_byte_table_description): New constant.
1665         (uint8-byte-table): Use `uint8_byte_table_description'.
1666         (uint16_byte_table_description): New constant.
1667         (uint16-byte-table): Use `uint16_byte_table_description'.
1668
1669 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1670
1671         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1672         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1673
1674 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1675
1676         * mule-charset.c (Vcharset_ucs_ks): New variable.
1677         (Qucs_ks): New variable.
1678         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1679         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1680
1681         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1682
1683 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1684
1685         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1686         (Fdecode_char): Likewise.
1687
1688         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1689         chartab.h.
1690         (Fdefine_char): Modify for Fdecode_char.
1691         (Ffind_char): Likewise.
1692
1693         * mule-charset.c (Fdecode_char): Add new optional argument
1694         `defined-only'.
1695         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1696
1697 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1698
1699         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1700         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1701         (allocate_coding_system): Initialize initial-charsets of
1702         CODESYS_BIG5 in XEmacs UTF-2000.
1703         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1704         CODESYS_BIG5 in XEmacs UTF-2000.
1705         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1706         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1707
1708         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1709         variables.
1710         (Qideograph_hanziku_{1 .. 12}): Likewise.
1711         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1712         .. 12}'.
1713         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1714         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1715         `ideograph-hanziku-{1 .. 12}'.
1716
1717         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1718         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1719         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1720         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1721         (DECODE_DEFINED_CHAR): New inline function.
1722         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1723
1724 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1725
1726         * mule-charset.c (Vcharset_china3_jef): Renamed from
1727         `Vcharset_japanese_jef_china3'.
1728         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1729         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1730         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1731         (syms_of_mule_charset): Rename `china3-jef' from
1732         `japanese-jef-china3'.
1733         (complex_vars_of_mule_charset): Likewise; rename
1734         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1735
1736         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1737         `LEADING_BYTE_JEF_CHINA3'.
1738         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1739         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1740
1741 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1742
1743         * mule-charset.c (encode_builtin_char_1): Comment out special code
1744         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1745
1746         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1747         (MAX_CHAR_MOJIKYO_0): Comment out.
1748         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1749         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1750         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1751         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1752
1753 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754
1755         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1756         (Qideograph_cbeta): New variable.
1757         (encode_builtin_char_1): Comment out special code for
1758         coded-charset `mojikyo' and `japanese-jef-china3'.
1759         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1760         (complex_vars_of_mule_charset): Add new coded-charset
1761         `ideograph-cbeta'.
1762
1763         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1764         (MIN_CHAR_CBETA): New macro.
1765         (MAX_CHAR_CBETA): New macro.
1766
1767 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1768
1769         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1770         (LEADING_BYTE_JEF_CHINA3): New macro.
1771         (MIN_CHAR_JEF_CHINA3): New macro.
1772         (MAX_CHAR_JEF_CHINA3): Likewise.
1773         (DECODE_CHAR): Fixed.
1774
1775 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1776
1777         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1778         (Qjapanese_jef_china3): New variable.
1779         (encode_builtin_char_1): Support `japanese-jef-china3'.
1780         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1781         (complex_vars_of_mule_charset): Add new coded-charset
1782         `japanese-jef-china3'.
1783
1784 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1785
1786         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1787         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1788         94^4, 96^3, 96^4, 128^n and 256^n set.
1789         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1790         (map_char_table): Likewise.
1791
1792 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1793
1794         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1795         UTF-2000.
1796
1797 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1798
1799         * chartab.h (get_char_id_table): New inline function.
1800
1801         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1802         function.
1803
1804 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1805
1806         * chartab.h (decode_char_table_range): New prototype in XEmacs
1807         UTF-2000.
1808         (put_char_id_table): New inline function in XEmacs UTF-2000.
1809
1810         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1811         function.
1812         (decode_char_table_range): Delete static declaration in XEmacs
1813         UTF-2000.
1814
1815 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1816
1817         * chartab.c (put_char_id_table): Use `put_char_table'.
1818
1819 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1820
1821         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1822         (map_over_uint16_byte_table): Likewise.
1823         (map_over_byte_table): Likewise.
1824         (map_char_table): Modify for `map_over_uint8_byte_table',
1825         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1826         UTF-2000.
1827
1828 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1829
1830         * chartab.c (struct map_char_table_for_charset_arg): New
1831         structure.
1832         (map_char_table_for_charset_fun): New function.
1833         (map_char_table): Use `map_char_table' for encoding_table of
1834         `range->charset'.
1835
1836 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1837
1838         * chartab.c (map_char_table): Check a character is found in
1839         range->charset instead of non default value is defined in
1840         char-table when range is CHARTAB_RANGE_ROW.
1841
1842 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1843
1844         * chartab.c (map_char_id_table): Deleted.
1845         (Fmap_char_attribute): Use `map_char_table' instead of
1846         `map_char_id_table'.
1847
1848 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1849
1850         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1851         UTF-2000.
1852         (update_syntax_table): Deleted in XEmacs UTF-2000.
1853
1854         * syntax.c (find_defun_start): Use `syntax_table' instead of
1855         `mirror_syntax_table' in XEmacs UTF-2000.
1856         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1857         UTF-2000.
1858         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1859         XEmacs UTF-2000.
1860         (Fmatching_paren): Likewise.
1861         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1862         in XEmacs UTF-2000.
1863         (find_start_of_comment): Likewise.
1864         (find_end_of_comment): Likewise.
1865         (Fforward_comment): Likewise.
1866         (scan_lists): Likewise.
1867         (char_quoted): Likewise.
1868         (Fbackward_prefix_chars): Likewise.
1869         (scan_sexps_forward): Likewise.
1870         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1871         (update_syntax_table): Likewise.
1872
1873         * search.c (skip_chars): Use `syntax_table' instead of
1874         `mirror_syntax_table' in XEmacs UTF-2000.
1875         (wordify): Likewise.
1876         (Freplace_match): Likewise.
1877
1878         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1879         `mirror_syntax_table' in XEmacs UTF-2000.
1880         (WORDCHAR_P_UNSAFE): Likewise.
1881         (re_match_2_internal): Likewise.
1882
1883         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1884         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1885
1886         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1887         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1888
1889         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1890         XEmacs UTF-2000.
1891
1892         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1893         UTF-2000.
1894         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1895         (char_table_description): Delete `mirror_table' in XEmacs
1896         UTF-2000.
1897         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1898         UTF-2000.
1899         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1900         (Fcopy_char_table): Likewise.
1901         (put_char_table): Don't call `update_syntax_table' in XEmacs
1902         UTF-2000.
1903
1904         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1905         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1906         (casify_region_internal): Likewise.
1907
1908         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1909
1910         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1911         `mirror_syntax_table' in XEmacs UTF-2000.
1912
1913         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1914         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1915         (Fexpand_abbrev): Likewise.
1916
1917 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1918
1919         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1920
1921 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1922
1923         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1924         (map_over_uint16_byte_table): Likewise.
1925         (map_over_byte_table): Likewise.
1926         (get_char_id_table): Refer `cit->default_value'.
1927         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1928         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1929         of character-id ranges.
1930         (mark_char_table): Mark `ct->default_value'.
1931         (char_table_description): Add `default_value'.
1932         (fill_char_table): Use `default_value'.
1933         (decode_char_table_range): Decode `nil' as
1934         `CHARTAB_RANGE_DEFAULT'.
1935         (get_char_id_table): Refer `cit->default_value'.
1936         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1937         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1938         temporary hack; check value of char-table is bound or not.
1939         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1940
1941         * chartab.h (struct Lisp_Char_Table): Add new member
1942         `default_value' in XEmacs UTF-2000.
1943         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1944         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1945         UTF-2000.
1946
1947 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1948
1949         * chartab.h (Lisp_Char_ID_Table): Deleted.
1950
1951         * chartab.c (char_table_description): Fix typo.
1952         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1953         `Lisp_Char_ID_Table'.
1954
1955 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1956
1957         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1958         `CHAR_ID_TABLE_P'.
1959
1960         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1961         `CHAR_ID_TABLE_P'.
1962
1963         * chartab.h (XCHAR_ID_TABLE): Deleted.
1964         (XSETCHAR_ID_TABLE): Deleted.
1965         (CHAR_ID_TABLE_P): Deleted.
1966
1967         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1968         `CHAR_ID_TABLE_P'.
1969         (Fget_composite_char): Likewise.
1970         (put_char_table): Likewise.
1971         (add_char_attribute_alist_mapper): Fixed.
1972         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1973         `CHAR_ID_TABLE_P'.
1974         (Fget_char_attribute): Likewise.
1975         (Fget_char_attribute): Likewise.
1976         (Fmap_char_attribute): Likewise.
1977
1978         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1979         `CHAR_ID_TABLE_P'.
1980         (encode_char_1): Likewise.
1981
1982 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1983
1984         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1985         `XCHAR_ID_TABLE'.
1986
1987         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1988         instead of `XCHAR_ID_TABLE'.
1989         (remove_char_ccs): Likewise.
1990
1991         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1992         `XCHAR_ID_TABLE'.
1993         (Fget_composite_char): Likewise.
1994         (Fchar_variants): Likewise.
1995         (put_char_table): Likewise.
1996         (add_char_attribute_alist_mapper): Likewise.
1997         (Fchar_attribute_alist): Likewise.
1998         (Fget_char_attribute): Likewise.
1999         (Fput_char_attribute): Likewise.
2000         (Fmap_char_attribute): Likewise.
2001         (Fmap_char_attribute): Likewise.
2002
2003         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2004         `XCHAR_ID_TABLE'.
2005         (encode_char_1): Likewise.
2006
2007 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2008
2009         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2010         `Lisp_Char_ID_Table'.
2011         (mark_char_id_table): Deleted.
2012         (print_char_id_table): Likewise.
2013         (char_id_table_equal): Likewise.
2014         (char_id_table_hash): Likewise.
2015         (char_id_table_description): Likewise.
2016         (char_id_table): Likewise.
2017         (make_char_id_table): Use `Fmake_char_table' and
2018         `fill_char_table'.
2019         (get_char_id_table): Use `Lisp_Char_Table' instead of
2020         `Lisp_Char_ID_Table'.
2021         (put_char_id_table): Likewise.
2022         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2023         `XCHAR_ID_TABLE'.
2024         (Fremove_char_attribute): Likewise.
2025         (syms_of_chartab): Don't define type `char-id-table'.
2026
2027         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2028         (char_id_table): Likewise.
2029         (GC_CHAR_ID_TABLE_P): Likewise.
2030         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2031         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2032         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2033         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2034         (get_char_id_table): Use `Lisp_Char_Table' instead of
2035         `Lisp_Char_ID_Table'.
2036         (put_char_id_table_0): Likewise.
2037         (put_char_id_table): Likewise.
2038
2039 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2040
2041         * chartab.h: Lisp_Byte_Table related codes are moved from
2042         chartab.h.
2043
2044         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2045
2046 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2047
2048         * chartab.h: Don't include "chartab.h".
2049         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2050         (Lisp_Char_ID_Table): Likewise.
2051         (char_id_table): Likewise.
2052         (XCHAR_ID_TABLE): Likewise.
2053         (XSETCHAR_ID_TABLE): Likewise.
2054         (CHAR_ID_TABLE_P): Likewise.
2055         (GC_CHAR_ID_TABLE_P): Likewise.
2056         (get_char_id_table): Likewise.
2057
2058         * char-ucs.h: Include "chartab.h".
2059         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2060         (Lisp_Char_ID_Table): Likewise.
2061         (char_id_table): Likewise.
2062         (XCHAR_ID_TABLE): Likewise.
2063         (XSETCHAR_ID_TABLE): Likewise.
2064         (CHAR_ID_TABLE_P): Likewise.
2065         (GC_CHAR_ID_TABLE_P): Likewise.
2066         (get_char_id_table): Likewise.
2067
2068 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2069
2070         * chartab.c (copy_uint8_byte_table): New function.
2071         (copy_uint16_byte_table): New function.
2072         (copy_byte_table): New function.
2073         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2074         characters to call.
2075         (map_over_uint16_byte_table): Likewise.
2076         (map_over_byte_table): Likewise.
2077         (get_byte_table): Move prototype to chartab.h.
2078         (put_byte_table): Likewise.
2079         (put_char_id_table_0): Moved to chartab.h.
2080         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2081         (char_table_entry_equal): Likewise.
2082         (char_table_entry_hash): Likewise.
2083         (char_table_entry_description): Likewise.
2084         (char_table_entry): Likewise.
2085         (make_char_table_entry): Likewise.
2086         (copy_char_table_entry): Likewise.
2087         (get_non_ascii_char_table_value): Likewise.
2088         (map_over_charset_ascii): Likewise.
2089         (map_over_charset_control_1): Likewise.
2090         (map_over_charset_row): Likewise.
2091         (map_over_other_charset): Likewise.
2092         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2093         (print_char_table): Likewise.
2094         (char_table_equal): Likewise.
2095         (char_table_hash): Likewise.
2096         (char_table_description): Likewise.
2097         (fill_char_table): Likewise.
2098         (Fcopy_char_table): Likewise.
2099         (get_char_table): Likewise.
2100         (Fget_range_char_table): Likewise.
2101         (put_char_table): Likewise.
2102         (map_char_table): Likewise.
2103         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2104         UTF-2000.
2105
2106 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107
2108         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2109         `Vauto_fill_chars' in XEmacs UTF-2000.
2110
2111         * chartab.h (get_byte_table): New prototype [moved from
2112         chartab.c].
2113         (put_byte_table): Likewise [moved from chartab.c].
2114         (put_char_id_table_0): New inline function [moved from chartab.c].
2115         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2116         (Lisp_Char_Table_Entry): Likewise.
2117         (char_table_entry): Likewise.
2118         (XCHAR_TABLE_ENTRY): Likewise.
2119         (XSETCHAR_TABLE_ENTRY): Likewise.
2120         (CHAR_TABLE_ENTRYP): Likewise.
2121         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2122         (NUM_ASCII_CHARS): Likewise.
2123         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2124         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2125
2126 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2127
2128         * chartab.c (get_char_id_table): Change interface.
2129         (put_char_id_table_0): New function.
2130         (put_char_id_table): Change interface; new implementation.
2131         (Fget_composite_char): Modify for interface change of
2132         `get_char_id_table'.
2133         (Fchar_variants): Likewise.
2134         (add_char_attribute_alist_mapper): Likewise.
2135         (Fchar_attribute_alist): Likewise.
2136         (Fget_char_attribute): Likewise.
2137         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2138         as same as character as the first argument like `put-char-table';
2139         modify for interface change of `put_char_id_table'.
2140         (Fremove_char_attribute): Modify for interface change of
2141         `put_char_id_table'.
2142
2143 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2144
2145         * text-coding.c: Sync up with XEmacs 21.2.41.
2146         (COMPOSE_ADD_CHAR): Modify for interface change of
2147         `get_char_id_table'.
2148
2149         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2150         change of `put_char_id_table'.
2151         (remove_char_ccs): Likewise.
2152
2153         * chartab.h (put_char_id_table): Change interface.
2154
2155         * char-ucs.h (get_char_id_table): Change interface.
2156         (charset_code_point): Modify for interface change of
2157         `get_char_id_table'.
2158         (encode_char_1): Likewise.
2159
2160 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2161
2162         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2163         argument `ccs'.
2164         (map_over_uint16_byte_table): Likewise.
2165         (map_over_byte_table): Likewise.
2166         (map_char_id_table): Add new argument `range' like
2167         `map_char_table'.
2168         (Fmap_char_attribute): Add new argument `range' like
2169         `Fmap_char_table'.
2170
2171 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2172
2173         * chartab.c (map_over_uint8_byte_table): Change interface of
2174         mapping function to use struct chartab_range instead of Emchar.
2175         (map_over_uint16_byte_table): Likewise.
2176         (map_over_byte_table): Likewise.
2177         (map_char_id_table): Likewise.
2178         (struct slow_map_char_id_table_arg): Deleted.
2179         (slow_map_char_id_table_fun): Deleted.
2180         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2181         function `slow_map_char_table_fun' instead of struct
2182         `slow_map_char_id_table_arg' and function
2183         `slow_map_char_id_table_fun'.
2184
2185 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2186
2187         * mule-charset.c: Move char-it-table related codes to chartab.c.
2188         (Vutf_2000_version): Moved to chartab.c.
2189         (Fdefine_char): Likewise.
2190         (Ffind_char): Likewise.
2191         (syms_of_mule_charset): Move types `uint8-byte-table',
2192         `uint16-byte-table', `byte-table' and `char-id-table' to
2193         chartab.c; move functions `char_attribute_list,
2194         `find_char_attribute_table, `char_attribute_alist,
2195         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2196         `map_char_attribute, `define_char, `find_char, `char_variants and
2197         `get_composite_char to chartab.c; move symbols `=>ucs',
2198         `->decomposition', `compat', `isolated', `initial', `medial',
2199         `final', `vertical', `noBreak', `fraction', `super', `sub',
2200         `circle', `square', `wide', `narrow', `small' and `font' to
2201         chartab.c.
2202         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2203         setting codes for `Vcharacter_composition_table' and
2204         `Vcharacter_variant_table' to chartab.c.
2205         (complex_vars_of_mule_charset): Move setting code for
2206         `Vchar_attribute_hash_table' to chartab.c.
2207
2208         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2209         (make_char_id_table): New prototype.
2210         (put_char_id_table): Likewise.
2211         (Fget_char_attribute): Likewise.
2212
2213         * chartab.c: Move char-id-table related code from mule-charset.c.
2214         (Vutf_2000_version): Moved from mule-charset.c.
2215
2216         * char-ucs.h (Qucs): New external variable.
2217         (put_char_ccs_code_point): New prototype.
2218         (remove_char_ccs): Likewise.
2219
2220 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2221
2222         * mule-charset.c (Vcharset_ucs_jis): New variable.
2223         (Qucs_jis): Likewise.
2224         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2225         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2226
2227         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2228
2229 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2230
2231         * mule-charset.c (map_over_uint8_byte_table): New function.
2232         (map_over_uint16_byte_table): Likewise.
2233         (map_over_byte_table): Likewise.
2234         (map_char_id_table): Likewise.
2235         (slow_map_char_id_table_fun): Likewise.
2236         (Fmap_char_attribute): Likewise.
2237         (syms_of_mule_charset): Add new function `map-char-attribute'.
2238
2239 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2240
2241         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2242         (syms_of_mule_charset): Add new function `find-char'.
2243
2244 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2245
2246         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2247         XEmacs UTF-2000.
2248         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2249         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2250         XEmacs UTF-2000.
2251         (complex_vars_of_mule_charset): Add new coded-charset
2252         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2253         `ideograph-gt-pj-*'.
2254
2255         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2256
2257 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2258
2259         * mule-charset.c (encode_builtin_char_1): Purge codes about
2260         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2261         {MIN|MAX}_CHAR_HEBREW.
2262         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2263         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2264
2265         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2266         (MAX_CHAR_GREEK): Purged.
2267         (MIN_CHAR_CYRILLIC): Purged.
2268         (MAX_CHAR_CYRILLIC): Purged.
2269         (MIN_CHAR_HEBREW): Commented out.
2270         (MAX_CHAR_HEBREW): Likewise.
2271
2272 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2273
2274         * mule-charset.c (Qto_ucs): New variable.
2275         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2276         (Fdefine_char): Likewise.
2277         (syms_of_mule_charset): Add new symbol `=>ucs'.
2278
2279 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2280
2281         * mule-charset.c (Fdecode_char): Fixed.
2282
2283 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2284
2285         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2286         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2287         "tcvn5712-1".
2288
2289 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2290
2291         * mule-charset.c (Vcharset_ucs_big5): New variable.
2292         (Qucs_big5): Likewise.
2293         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2294         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2295
2296         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2297
2298 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2299
2300         * mule-charset.c (decode_builtin_char): Check Big5 code range
2301         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2302
2303 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2304
2305         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2306         (Qchinese_gb12345): Likewise.
2307         (Fdecode_builtin_char): Fixed.
2308         (syms_of_mule_charset): Add `chinese-gb12345'.
2309         (complex_vars_of_mule_charset): Add coded-charset
2310         `chinese-gb12345'.
2311
2312         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2313         (LEADING_BYTE_CHINESE_GB12345): New macro.
2314
2315 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2316
2317         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2318         and `latin-viscii-upper' for `latin-viscii'.
2319
2320 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2321
2322         * mule-charset.c (Fdecode_builtin_char): Comment out
2323         regularization code for ISO-IR GR representation.
2324
2325 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2326
2327         * mule-charset.c (decode_builtin_char): New function; renamed from
2328         `make_builtin_char'; return -1 instead of signal.
2329         (Fdecode_builtin_char): Use `decode_builtin_char'.
2330
2331         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2332         `make_builtin_char'.
2333         (DECODE_CHAR): Use `decode_builtin_char' instead of
2334         `make_builtin_char'; use mapping table of `chinese-big5' for
2335         `chinese-big5-{1,2}'.
2336
2337 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2338
2339         * text-coding.c (char_encode_big5): New function.
2340         (char_finish_big5): Likewise.
2341         (reset_encoding_stream): Use `char_encode_big5' and
2342         `char_finish_big5' for CODESYS_BIG5.
2343         (mule_encode): Don't use `encode_coding_big5'.
2344         (encode_coding_big5): Deleted.
2345
2346 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2347
2348         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2349         0x81- in XEmacs UTF-2000.
2350         (detect_coding_big5): Likewise.
2351
2352 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2353
2354         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2355         generate character-id if the CCS property does not have
2356         corresponding predefined character.
2357         (make_builtin_char): Return -1 if corresponding predefined
2358         character is not found.
2359         (Fdecode_char): Return nil if corresponding character is not
2360         found.
2361         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2362         don't map to builtin ucs space.
2363
2364 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2365
2366         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2367         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2368
2369 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2370
2371         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2372         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2373         (Qideograph_gt): Likewise.
2374         (Qideograph_gt_pj_{1..11}): Likewise.
2375         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2376         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2377         `ideograph-gt-pj-11'.
2378         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2379         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2380         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2381
2382         * char-ucs.h (LEADING_BYTE_GT): New macro.
2383         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2384         (MIN_CHAR_GT): Likewise.
2385         (MAX_CHAR_GT): Likewise.
2386
2387 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2388
2389         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2390         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2391
2392         * doprnt.c (unsigned_int_converters): Add `c'.
2393         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2394
2395         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2396         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2397         `MIN_CHAR_MOJIKYO'.
2398         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2399         (MAX_CHAR_MOJIKYO_0): New macro.
2400         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2401
2402 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2403
2404         * mule-charset.c (Fdefine_char): Delete cemented out code.
2405         (encode_builtin_char_1): Modify for new allocation of builtin
2406         Mojikyo characters.
2407
2408         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2409
2410 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2411
2412         * mule-charset.c (Vcharset_ucs_cns): New variable.
2413         (Qucs_cns): New variable.
2414         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2415         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2416
2417 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2418
2419         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2420
2421 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2422
2423         * search.c (search_buffer): Make `charset_base_code' as
2424         character-id >> 6 to eliminate the corresponding last byte in
2425         UTF-8 representation [I'm not sure it is right thing].
2426         (boyer_moore): Likewise.
2427
2428 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2429
2430         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2431         representation in MULE.
2432
2433 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2434
2435         * text-coding.c (Fmake_coding_system): Use
2436         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2437         `EXTERNAL_PROPERTY_LIST_LOOP'.
2438
2439 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2440
2441         * text-coding.c (decode_output_utf8_partial_char): New function.
2442         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2443
2444 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2445
2446         * text-coding.c (decode_coding_utf8): Output original byte
2447         sequence if it is broken; change order of conditions.
2448
2449         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2450         of conditions.
2451
2452         * mb-multibyte.h (BYTE_ASCII_P):
2453         Use bit ops for char-signedness safety.
2454         (BYTE_C0_P): Use bit ops for char-signedness safety.
2455         (BYTE_C1_P): Use bit ops for char-signedness safety.
2456
2457         * character.h: (XCHAR_OR_CHAR_INT):
2458         Always use inline function.
2459         Remove redundant type checking assert() - XINT will abort quite
2460         nicely.
2461
2462 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2463
2464         * text-coding.c: (Fencode_shift_jis_char):
2465         (Fencode_big5_char):
2466         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2467         Replace 0 with '\0' when working with bytes.
2468         Replace initial "(" with "\(" in docstrings.
2469
2470         (Fmake_coding_system):
2471         When type is ccl and value is vector, register it with a proper
2472         symbol.  And checks whether the given ccl program is valid.
2473         (mule_decode): When calling ccl_driver, if src indicates
2474         NULL pointer, set an empty string instead.
2475         (mule_encode): Likewise.
2476
2477         (detect_eol_type):
2478         (detect_coding_sjis):
2479         (decode_coding_sjis):
2480         (detect_coding_big5):
2481         (decode_coding_big5):
2482         (detect_coding_ucs4):
2483         (decode_coding_ucs4):
2484         (detect_coding_utf8):
2485         (decode_coding_utf8):
2486         (detect_coding_iso2022):
2487         (decode_coding_iso2022):
2488         (decode_coding_no_conversion):
2489         (mule_decode):
2490         Make all detecting and decoding functions take an Extbyte * arg.
2491         (text_encode_generic):
2492         (encode_coding_big5):
2493         (encode_coding_no_conversion):
2494         (mule_encode):
2495         Make all encoding functions take a Bufbyte * arg.
2496         Use size_t instead of unsigned int for memory sizes.
2497         Only cast to unsigned char whenever dereferencing Extbyte *.
2498
2499         (struct lrecord_description fcd_description_1): Use countof.
2500         (complex_vars_of_file_coding):
2501         Use countof instead of sizeof.
2502         Use CHECK_NATNUM instead of CHECK_INT.
2503
2504 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2505
2506         * mule-charset.c (Fget_char_attribute): Add new optional argument
2507         `default-value'.
2508         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2509         (remove_char_ccs): Likewise.
2510
2511 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2512
2513         * text-coding.c (char_encode_shift_jis): New implementation in
2514         UTF-2000.
2515         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2516         ...)'.
2517
2518         * mule-charset.c (Vcharset_chinese_big5): New variable in
2519         UTF-2000.
2520         (Qchinese_big5): New variable in UTF-2000.
2521         (BIG5_SAME_ROW): New macro in UTF-2000.
2522         (make_builtin_char): Use builtin characters of
2523         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2524         characters of `Vcharset_chinese_big5'.
2525         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2526         (complex_vars_of_mule_charset): Add new coded-charset
2527         `chinese-big5' in UTF-2000.
2528
2529         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2530         (Vcharset_chinese_big5): New external variable declaration.
2531         (Vcharset_japanese_jisx0208_1990): Likewise.
2532
2533 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2534
2535         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2536         function.
2537         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2538
2539 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2540
2541         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2542         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2543         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2544         `mojikyo-pj-*'.
2545
2546 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2547
2548         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2549
2550 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2551
2552         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2553         to 0.17.
2554
2555 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2556
2557         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2558         for `CHARSET_BY_ATTRIBUTES'.
2559         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2560         `CHARSET_BY_ATTRIBUTES'.
2561
2562         * text-coding.c (struct decoding_stream): Rename member `CH' to
2563         `CPOS'.
2564         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2565         (decode_coding_sjis): Likewise.
2566         (decode_coding_big5): Likewise.
2567         (decode_coding_ucs4): Likewise.
2568         (decode_coding_utf8): Likewise.
2569         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2570         `CHARSET_BY_ATTRIBUTES'.
2571         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2572         `str->counter'; decode 3, 4 bytes sets.
2573         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2574         sets.
2575         (decode_coding_no_conversion): Use `str->cpos' instead of
2576         `str->ch'.
2577
2578         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2579         (Qmojikyo_2022_1): New variable.
2580         (make_charset): Don't use `CHARSET_TYPE_*'.
2581         (range_charset_code_point): Support coded-charset
2582         `mojikyo-2022-1'.
2583         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2584         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2585         `CHARSET_BY_ATTRIBUTES'.
2586         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2587         `CHARSET_BY_ATTRIBUTES'.
2588         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2589         (complex_vars_of_mule_charset): Add new coded-charset
2590         `mojikyo-2022-1'.
2591
2592         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2593         interface; changed to inline function.
2594
2595         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2596         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2597         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2598         (CHARSET_TYPE_94): Deleted.
2599         (CHARSET_TYPE_94X94): Deleted.
2600         (CHARSET_TYPE_96): Deleted.
2601         (CHARSET_TYPE_96X96): Deleted.
2602         (CHARSET_TYPE_128): Deleted.
2603         (CHARSET_TYPE_128X128): Deleted.
2604         (CHARSET_TYPE_256): Deleted.
2605         (CHARSET_TYPE_256X256): Deleted.
2606         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2607         to inline function.
2608         (DECODE_MOJIKYO_2022): New inline function.
2609         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2610         `Vcharset_mojikyo_2022_1'.
2611
2612 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2613
2614         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2615         instead of `EQ'.
2616         (put_byte_table): Likewise.
2617         (char_id_table_equal): Use `get_byte_table' [new implementation].
2618
2619 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2620
2621         * mule-charset.c: Include <limits.h> in UTF-2000.
2622         (BT_UINT8_MIN): New macro in UTF-2000.
2623         (BT_UINT8_MAX): New macro in UTF-2000.
2624         (BT_UINT8_t): New macro in UTF-2000.
2625         (BT_UINT8_nil): New macro in UTF-2000.
2626         (BT_UINT8_unbound): New macro in UTF-2000.
2627         (INT_UINT8_P): New inline function in UTF-2000.
2628         (UINT8_VALUE_P): New inline function in UTF-2000.
2629         (UINT8_ENCODE): New inline function in UTF-2000.
2630         (UINT8_DECODE): New inline function in UTF-2000.
2631         (mark_uint8_byte_table): New function in UTF-2000.
2632         (print_uint8_byte_table): New function in UTF-2000.
2633         (uint8_byte_table_equal): New function in UTF-2000.
2634         (uint8_byte_table_hash): New function in UTF-2000.
2635         (make_uint8_byte_table): New function in UTF-2000.
2636         (uint8_byte_table_same_value_p): New function in UTF-2000.
2637         (BT_UINT16_MIN): New macro in UTF-2000.
2638         (BT_UINT16_MAX): New macro in UTF-2000.
2639         (BT_UINT16_t): New macro in UTF-2000.
2640         (BT_UINT16_nil): New macro in UTF-2000.
2641         (BT_UINT16_unbound): New macro in UTF-2000.
2642         (INT_UINT16_P): New inline function in UTF-2000.
2643         (UINT16_VALUE_P): New inline function in UTF-2000.
2644         (UINT16_ENCODE): New inline function in UTF-2000.
2645         (UINT16_DECODE): New inline function in UTF-2000.
2646         (UINT8_TO_UINT16): New inline function in UTF-2000.
2647         (mark_uint16_byte_table): New function in UTF-2000.
2648         (print_uint16_byte_table): New function in UTF-2000.
2649         (uint16_byte_table_equal): New function in UTF-2000.
2650         (uint16_byte_table_hash): New function in UTF-2000.
2651         (make_uint16_byte_table): New function in UTF-2000.
2652         (uint16_byte_table_same_value_p): New function in UTF-2000.
2653         (print_byte_table): New function in UTF-2000.
2654         (byte-table): Use `print_byte_table' as printer.
2655         (make_byte_table): Delete second argument `older'.
2656         (byte_table_same_value_p): New function in UTF-2000.
2657         (copy_byte_table): Deleted.
2658         (get_byte_table): New function in UTF-2000.
2659         (put_byte_table): New function in UTF-2000.
2660         (print_char_id_table): New function in UTF-2000.
2661         (char-id-table): Use `print_char_id_table' as printer.
2662         (make_char_id_table): Delete second argument `older'.
2663         (get_char_id_table): Use `get_byte_table [new implementation].
2664         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2665         implementation].
2666         (Ffind_char_attribute_table): New function in UTF-2000.
2667         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2668         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2669         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2670         (syms_of_mule_charset): Add new function
2671         `find-char-attribute-table' in UTF-2000.
2672
2673         * lrecord.h (enum lrecord_type): Add
2674         `lrecord_type_uint16_byte_table' and
2675         `lrecord_type_uint8_byte_table'.
2676
2677         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2678         (Lisp_Uint8_Byte_Table): New type.
2679         (XUINT8_BYTE_TABLE): New macro.
2680         (XSETUINT8_BYTE_TABLE): New macro.
2681         (UINT8_BYTE_TABLE_P): New macro.
2682         (GC_UINT8_BYTE_TABLE_P): New macro.
2683         (struct Lisp_Uint16_Byte_Table): New structure.
2684         (Lisp_Uint16_Byte_Table): New type.
2685         (XUINT16_BYTE_TABLE): New macro.
2686         (XSETUINT16_BYTE_TABLE): New macro.
2687         (UINT16_BYTE_TABLE_P): New macro.
2688         (GC_UINT16_BYTE_TABLE_P): New macro.
2689
2690 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2691
2692         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2693         (Vcharacter_ideographic_strokes_table): Deleted.
2694         (Vcharacter_total_strokes_table): Deleted.
2695         (Vcharacter_morohashi_daikanwa_table): Deleted.
2696         (Vcharacter_decomposition_table): Deleted.
2697         (Qname): Deleted because it is duplicated.
2698         (Qideographic_radical): Deleted.
2699         (Qideographic_strokes): Deleted.
2700         (Qtotal_strokes): Deleted.
2701         (Qmorohashi_daikanwa): Deleted.
2702         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2703         `ideographic-radical', `ideographic-strokes', `total-strokes',
2704         `morohashi-daikanwa' and `->decomposition'.
2705         (Fget_char_attribute): Likewise.
2706         (Fput_char_attribute): Likewise; use `make-vector' instead of
2707         `make_older_vector' for `->decomposition' value.
2708         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2709         `ideograph-daikanwa'.
2710         (syms_of_mule_charset): Delete builtin symbols `name',
2711         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2712         `morohashi-daikanwa'.
2713         (vars_of_mule_charset): Don't setup
2714         `Vcharacter_ideographic_radical_table',
2715         `Vcharacter_ideographic_strokes_table',
2716         `Vcharacter_total_strokes_table',
2717         `Vcharacter_morohashi_daikanwa_table' and
2718         `Vcharacter_decomposition_table'.
2719
2720 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2721
2722         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2723         `make_older_vector', `make_vector_newer_1' and
2724         `make_vector_newer'.
2725
2726         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2727         `make_older_vector' and `make_vector_newer'.
2728
2729         * config.h.in (HAVE_GGC): New macro.
2730
2731 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2732
2733         * mule-charset.c (struct char_attribute_list_closure): New
2734         structure in UTF-2000.
2735         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2736         (Fchar_attribute_list): Likewise.
2737         (Fset_charset_mapping_table): Use `make_vector_newer'.
2738         (Fdecode_builtin_char): New function in UTF-2000.
2739         (syms_of_mule_charset): Add new function `char-attribute-list' and
2740         `decode-builtin-char' in UTF-2000.
2741
2742         * lisp.h (make_vector_newer): New prototype.
2743
2744         * alloc.c (make_vector_newer_1): New function.
2745         (make_vector_newer): New function.
2746
2747 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2748
2749         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2750         50100)'.
2751
2752 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2753
2754         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2755         (Vcharacter_attribute_table): Deleted.
2756         (Vcharacter_name_table): Deleted.
2757         (put_char_attribute): Deleted.
2758         (remove_char_attribute): Deleted.
2759         (struct char_attribute_alist_closure): New structure.
2760         (add_char_attribute_alist_mapper): New function.
2761         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2762         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2763         (Fget_char_attribute): Likewise.
2764         (Fput_char_attribute): Likewise.
2765         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2766         of `remove_char_attribute'.
2767         (Fdefine_char): Return character.
2768         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2769         and `Vcharacter_name_table'.
2770         (complex_vars_of_mule_charset): Likewise
2771         `Vchar_attribute_hash_table'.
2772
2773 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2774
2775         * character.h (CHARC_CHARSET): New macro.
2776         (CHARC_CHARSET_ID): New macro.
2777         (CHARC_CODE_POINT): New macro.
2778         (CHARC_COLUMNS): New macro.
2779         (CHARC_TO_CHAR): New inline function.
2780         (CHARC_EQ): New inline function.
2781         (CHARC_ASCII_EQ): New inline function.
2782         (CHARC_IS_SPACE): New inline function.
2783         (ASCII_TO_CHARC): New inline function.
2784
2785         * char-ucs.h (encode_char_2): Deleted.
2786         (ENCODE_CHAR): Use `encode_char_1' again.
2787         (breakup_char_1): Likewise.
2788         (CHAR_TO_CHARC): New inline function.
2789
2790         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2791
2792 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2793
2794         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2795         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2796         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2797         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2798         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2799         `CHARC_IS_SPACE'.
2800         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2801
2802         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2803         `CHARC_CODE_POINT'.
2804         (x_output_display_block): Use `CHARC_CHARSET' and
2805         `CHARC_ASCII_EQ'.
2806
2807         * redisplay-tty.c (tty_output_display_block): Use
2808         `CHARC_ASCII_EQ'.
2809         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2810
2811         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2812
2813         * insdel.c (find_charsets_in_charc_string): Use
2814         `CHARC_CHARSET_ID'.
2815         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2816         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2817         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2818         (convert_charc_string_into_malloced_string): Likewise.
2819
2820 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2821
2822         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2823         instead of <Emchar_dynarr *> for buf; use
2824         `convert_bufbyte_string_into_charc_dynarr' instead of
2825         `convert_bufbyte_string_into_emchar_dynarr'; use
2826         `find_charsets_in_charc_string' instead of
2827         `find_charsets_in_emchar_string'.
2828
2829         * redisplay.h:
2830         - Include "character.h".
2831         (struct rune): New member `cglyph'; delete member `chr'.
2832
2833         * redisplay.c (redisplay_text_width_charc_string): New function;
2834         delete `redisplay_text_width_emchar_string'.
2835         (rtw_charc_dynarr): New variable; renamed from
2836         `rtw_emchar_dynarr'.
2837         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2838         `rtw_emchar_dynarr'; use
2839         `convert_bufbyte_string_into_charc_dynarr' instead of
2840         `convert_bufbyte_string_into_emchar_dynarr'; use
2841         `redisplay_text_width_charc_string' instead of
2842         `redisplay_text_width_emchar_string'.
2843         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2844         instead of `rtw_emchar_dynarr'; use
2845         `convert_bufbyte_string_into_charc_dynarr' instead of
2846         `convert_bufbyte_string_into_emchar_dynarr'.
2847         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2848         `redisplay_text_width_charc_string' instead of
2849         `redisplay_text_width_emchar_string'.
2850         (create_text_block): Modify for <struct rune> change.
2851         (generate_formatted_string_db): Likewise.
2852         (create_string_text_block): Likewise.
2853         (pixel_to_glyph_translation): Likewise.
2854
2855         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2856         instead of <const Emchar *>.
2857         (x_text_width): Likewise.
2858         (x_output_display_block): Use <Charc_dynarr *> instead
2859         <Emchar_dynarr *>; modify for <structure rune> change.
2860         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2861         *>.
2862
2863         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2864         <const Emchar *>; use `charc_string_displayed_columns' instead of
2865         `emchar_string_displayed_columns'.
2866         (tty_output_display_block): Use <Charc_dynarr *> instead of
2867         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2868         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2869         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2870         `tty_output_emchar_dynarr_dynarr'.
2871         (tty_output_charc_dynarr): New function; delete
2872         `tty_output_charc_dynarr'.
2873
2874         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2875         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2876         <Emchar_dynarr *> for buf; use
2877         `convert_bufbyte_string_into_charc_dynarr' instead of
2878         `convert_bufbyte_string_into_emchar_dynarr'.
2879
2880         * frame.c (title_string_charc_dynarr): New variable; renamed from
2881         `title_string_emchar_dynarr'.
2882         (generate_title_string): Use `title_string_charc_dynarr' instead
2883         of `title_string_emchar_dynarr'; use
2884         `convert_charc_string_into_malloced_string' instead of
2885         `convert_emchar_string_into_malloced_string'.
2886         (init_frame): Use `title_string_charc_dynarr' instead of
2887         `title_string_emchar_dynarr'.
2888
2889         * console.h:
2890         - Include "character.h".
2891         (struct console_methods): Use <const Charc *> instead of <const
2892         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2893         <Emchar_dynarr *> in output_string_method.
2894
2895         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2896         <Emchar_dynarr *>.
2897
2898         * console-stream.c (stream_text_width): Use <const Charc *>
2899         instead of <const Emchar *>.
2900
2901         * character.h (Charc_dynarr): New type.
2902
2903         * char-ucs.h (structure Charc): New structure; define new type
2904         `Charc'.
2905
2906         * char-lb.h (DECODE_CHAR): New inline function.
2907         (encode_char_1): New inline function.
2908         (ENCODE_CHAR): New macro.
2909         (structure Charc): New structure; define new type `Charc'.
2910
2911         * char-1byte.h (Vcharset_control_1): New macro.
2912         (Vcharset_latin_iso8859_1): New macro.
2913         (DECODE_CHAR): New inline function.
2914         (encode_char_1): New inline function.
2915         (ENCODE_CHAR): New macro.
2916         (structure Charc): New structure; define new type `Charc'.
2917
2918         * insdel.c (find_charsets_in_charc_string): New function; delete
2919         `find_charsets_in_emchar_string'.
2920         (charc_string_displayed_columns): New function; delete
2921         `emchar_string_displayed_columns'.
2922         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2923         `convert_bufbyte_string_into_emchar_dynarr'.
2924         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2925         `convert_charc_string_into_bufbyte_dynarr'.
2926         (convert_charc_string_into_malloced_string): New function; delete
2927         `convert_charc_string_into_malloced_string'.
2928
2929         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2930         `find_charsets_in_emchar_string'.
2931         (charc_string_displayed_columns): New prototype; delete
2932         `emchar_string_displayed_columns'.
2933         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2934         `convert_charc_string_into_bufbyte_dynarr'.
2935         (convert_charc_string_into_malloced_string): New prototype; delete
2936         `convert_charc_string_into_malloced_string'.
2937
2938 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2939
2940         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2941
2942 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2943
2944         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2945
2946         * char-ucs.h: Use <short> for <Charset_ID>.
2947
2948         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2949         <Charset_ID>.
2950
2951 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2952
2953         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2954         to 0.16.
2955
2956 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2957
2958         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2959         variable.
2960         (Qmorohashi_daikanwa): New variable.
2961         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2962         for `morohashi-daikanwa' attribute.
2963         (Fget_char_attribute): Likewise.
2964         (Fput_char_attribute): Likewise.
2965         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2966         has the same value of `ideograph-daikanwa'.
2967         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2968         (vars_of_mule_charset): Setup
2969         `Vcharacter_morohashi_daikanwa_table'.
2970
2971 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2972
2973         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2974         attributes.
2975         (add_charset_to_list_mapper): Add `key' instead of
2976         `XCHARSET_NAME (value)' to return aliases.
2977
2978 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2979
2980         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2981         variable.
2982         (Vcharacter_ideographic_strokes_table): New variable.
2983         (Qideographic_radical): New variable.
2984         (Qideographic_strokes): New variable.
2985         (Fchar_attribute_alist): Use
2986         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2987         attribute; use `Vcharacter_ideographic_strokes_table' for
2988         `ideographic-strokes' attribute.
2989         (Fget_char_attribute): Likewise.
2990         (Fput_char_attribute): Likewise.
2991         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2992         `ideographic-strokes'.
2993         (vars_of_mule_charset): Setup
2994         `Vcharacter_ideographic_radical_table' and
2995         `Vcharacter_ideographic_strokes_table'.
2996
2997 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2998
2999         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3000         (Qtotal_strokes): New variable.
3001         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3002         `total-strokes' attribute.
3003         (Fget_char_attribute): Likewise.
3004         (Fput_char_attribute): Likewise.
3005         (syms_of_mule_charset): Add new symbol `total-strokes'.
3006         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3007
3008 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3009
3010         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3011         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3012         are found.
3013         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3014         `->decomposition' attribute.
3015         (Fput_char_attribute): Likewise.
3016         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3017
3018 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3019
3020         * mule-charset.c (decoding_table_check_elements): New function.
3021         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3022
3023 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3024
3025         * mule-charset.c (Fset_charset_mapping_table): Use
3026         `put_char_ccs_code_point'.
3027
3028 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3029
3030         * mule-charset.c (decoding_table_put_char): New inline function.
3031         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3032
3033 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3034
3035         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3036         (XCHARSET_BYTE_SIZE): New macro.
3037         (decoding_table_remove_char): New inline function.
3038         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3039         `decoding_table_remove_char'.
3040         (remove_char_ccs): Use `decoding_table_remove_char'.
3041         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3042
3043 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3044
3045         * mule-charset.c (Vcharacter_name_table): New variable.
3046         (Qname): New variable.
3047         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3048         attribute.
3049         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3050         `Vcharacter_name_table' for `name' attribute.
3051         (Fremove_char_attribute): Use function `remove_char_ccs'.
3052         (put_char_ccs_code_point): New function.
3053         (remove_char_ccs): New function.
3054         (syms_of_mule_charset): Add new symbol `name'.
3055         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3056
3057 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3058
3059         * mule-charset.c (make_byte_table): Add new argument `older'.
3060         (make_char_id_table): Likewise.
3061         (copy_char_id_table): Comment out because it is not used.
3062         (put_char_id_table): Modify for `make_byte_table'.
3063         (Fput_char_attribute): Make encoding_table as older object;
3064         inherit older bit of `Vcharacter_composition_table'.
3065         (mark_charset): Don't mark `cs->encoding_table'.
3066         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3067         normal object; make `Vcharacter_composition_table' as an older
3068         object; delete staticpro for `Vcharacter_composition_table'; make
3069         `Vcharacter_variant_table' as a normal object.
3070
3071         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3072         (mark_object): Don't check older object in UTF-2000.
3073
3074         * lrecord.h (struct lrecord_header): Add new member `older' in
3075         UTF-2000.
3076         (set_lheader_implementation): Setup `SLI_header->older' in
3077         UTF-2000.
3078         (set_lheader_older_implementation): New macro in UTF-2000.
3079         (OLDER_RECORD_P): New macro in UTF-2000.
3080         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3081         (alloc_older_lcrecord): New prototype in UTF-2000.
3082         (alloc_older_lcrecord_type): New macro in UTF-2000.
3083
3084 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3085
3086         * mule-charset.c (byte_table_description): Use
3087         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3088         (char_id_table_description): Delete bogus `, 1'.
3089         (Fget_char_attribute): Refer encoding_table of each coded-charset
3090         to get value of coded-charset attribute of a character.
3091         (Fput_char_attribute): Use `make_older_vector' instead of
3092         `make_vector'; use encoding_table of each coded-charset to store
3093         value of coded-charset attribute of a character.
3094         (Fremove_char_attribute): Use encoding_table of each coded-charset
3095         to store value of coded-charset attribute of a character.
3096         (mark_charset): Mark `cs->encoding_table'; don't mark
3097         `cs->decoding_table'.
3098         (charset_description): Add description of new member
3099         `encoding_table'.
3100         (make_charset): Initialize `encoding_table'.
3101
3102         * char-ucs.h (struct Lisp_Charset): Add new member
3103         `encoding_table'.
3104         (CHARSET_ENCODING_TABLE): New macro.
3105         (XCHARSET_ENCODING_TABLE): New macro.
3106         (charset_code_point): New implementation.
3107         (encode_char_1): Likewise.
3108
3109         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3110         (disksave_object_finalization_1): Call finalizers of
3111         `all_older_lcrecords' in UTF-2000.
3112         (make_older_vector): New function in UTF-2000.
3113         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3114         UTF-2000.
3115
3116         * lisp.h (make_older_vector): New prototype in UTF-2000.
3117
3118 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3119
3120         * lrecord.h (enum lrecord_type): Rename
3121         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3122
3123         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3124         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3125         `get_char_code_table'.
3126
3127         * mule-charset.c (mark_char_id_table): Renamed from
3128         `mark_char_code_table'.
3129         (char_id_table_equal): Renamed from `char_code_table_equal'.
3130         (char_id_table_hash): Renamed from `char_code_table_hash'.
3131         (make_char_id_table): Renamed from `make_char_code_table'.
3132         (copy_char_id_table): Renamed from `copy_char_code_table'.
3133         (get_char_id_table): Renamed from `get_char_code_table'.
3134         (put_char_id_table): Renamed from `put_char_code_table'.
3135         (to_char_id): Renamed from `to_char_code'.
3136
3137         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3138         `Lisp_Char_Code_Table'.
3139         (char_id_table): Renamed from `char_code_table'.
3140         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3141         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3142         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3143         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3144         (get_char_id_table): Renamed from `get_char_code_table'.
3145
3146 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3147
3148         * lrecord.h (enum lrecord_type): Rename
3149         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3150
3151         * mule-charset.c (mark_byte_table): Renamed from
3152         `mark_char_byte_table'.
3153         (byte_table_equal): Renamed from `char_byte_table_equal'.
3154         (byte_table_hash): Renamed from `byte_table_hash'.
3155         (make_byte_table): Renamed from `make_byte_table'.
3156         (copy_byte_table): Renamed from `copy_char_byte_table'.
3157
3158         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3159         `Lisp_Char_Byte_Table'.
3160         (byte_table): Renamed from `char_byte_table'.
3161         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3162         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3163         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3164         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3165
3166 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3167
3168         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3169         (dfc_convert_to_internal_format): Likewise.
3170         
3171         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3172         * text-coding.c (Fcoding_system_alias_p): New function.
3173         * text-coding.c (Fcoding_system_aliasee): New function.
3174         * text-coding.c (append_suffix_to_symbol): New function.
3175         * text-coding.c (dangling_coding_system_alias_p): New function.
3176         * text-coding.c (Ffind_coding_system):
3177         * text-coding.c (Fcopy_coding_system):
3178         * text-coding.c (encode_coding_no_conversion):
3179         * text-coding.c (syms_of_file_coding):
3180         * text-coding.c (vars_of_file_coding):
3181         Rewrite coding system alias code.
3182         Allow nested aliases, like symbolic links.
3183         Allow redefinition of coding system aliases.
3184         Prevent existence of dangling coding system aliases.
3185         Eliminate convert_to_external_format.
3186         Eliminate convert_to_internal_format.
3187         
3188         * text-coding.c: Change enum eol_type to eol_type_t.
3189
3190 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3191
3192         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3193         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3194
3195         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3196         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3197
3198 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3199
3200         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3201         `ideograph-daikanwa'.
3202
3203         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3204         (Vcharset_ucs_bmp): Likewise.
3205         (Vcharset_mojikyo): Add new extern variable definition.
3206         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3207         (Vcharset_latin_iso8859_3): Likewise.
3208         (Vcharset_latin_iso8859_4): Likewise.
3209         (Vcharset_latin_iso8859_9): Likewise.
3210         (Vcharset_latin_viscii_lower): Likewise.
3211         (Vcharset_latin_viscii_upper): Likewise.
3212         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3213         `mojikyo' code-point is used to decode.
3214         (encode_char_2): New function [to convert `mojikyo' code-point to
3215         Mojikyo font encoding].
3216         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3217         (breakup_char_1): Likewise.
3218         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3219
3220 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3221
3222         * text-coding.c (Fmake_coding_system): Add document about
3223         `disable-composition' property.
3224
3225 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3226
3227         * text-coding.c (Qdisable_composition): New variable; delete
3228         `Qcomposite'.
3229         (Fmake_coding_system): Add new property `disable-composite';
3230         delete property `composite'.
3231         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3232         instead of `!CODING_SYSTEM_COMPOSITE'.
3233         (syms_of_file_coding): Add new symbol `disable-composition';
3234         delete symbol `composite'.
3235
3236         * file-coding.h (struct Lisp_Coding_System): Add
3237         `disable_composition'; delete `enable_composition'.
3238         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3239         `CODING_SYSTEM_COMPOSITE'.
3240         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3241         `XCODING_SYSTEM_COMPOSITE'.
3242
3243 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3244
3245         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3246         to 0.15.
3247
3248 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3249
3250         * text-coding.c (Qcomposite): New variable.
3251         (Fmake_coding_system): Add new property `composite'.
3252         (struct decoding_stream): Add `combined_char_count',
3253         `combined_chars' and `combining_table' in UTF-2000.
3254         (COMPOSE_FLUSH_CHARS): New macro.
3255         (COMPOSE_ADD_CHAR): New macro.
3256         (reset_decoding_stream): Reset `str->combined_char_count' and
3257         `str->combining_table' in UTF-2000.
3258         (decode_coding_iso2022): Modify for character-decomposition.
3259         (syms_of_file_coding): Add new symbol `composite'.
3260
3261 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3262
3263         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3264         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3265         of `Vcharacter_composition_table' if `->decomposition' property
3266         has only 1 element.
3267         (Qlatin_tcvn5712): New variable.
3268         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3269         (complex_vars_of_mule_charset): Add new coded-charset
3270         `latin-tcvn5712'.
3271
3272         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3273
3274 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3275
3276         * file-coding.h (struct Lisp_Coding_System): Add
3277         `enable_composition'.
3278         (CODING_SYSTEM_COMPOSITE): New macro.
3279         (XCODING_SYSTEM_COMPOSITE): New macro.
3280
3281 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3282
3283         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3284
3285 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3286
3287         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3288         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3289
3290 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3291
3292         * mule-charset.c (Vcharset_mojikyo): New variable.
3293         (Fdefine_char): Don't use coded-charset which does not have
3294         non-builtin character range to allocate character-id.
3295         (Qmojikyo): New variable.
3296         (syms_of_mule_charset): Add new symbol `mojikyo'.
3297         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3298
3299         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3300         (LEADING_BYTE_MOJIKYO): New macro.
3301         (MIN_CHAR_MOJIKYO): New macro.
3302         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3303         (MAX_CHAR_MOJIKYO): New macro.
3304
3305 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3306
3307         * mule-charset.c (remove_char_attribute): Fixed.
3308
3309 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3310
3311         * mule-charset.c (remove_char_attribute): New function.
3312         (Fremove_char_attribute): New function.
3313         (encode_builtin_char_1): Comment out builtin-support for
3314         greek-iso8859-7 and cyrillic-iso8859-5.
3315         (Fdecode_char): Check `code' is an integer.
3316         (syms_of_mule_charset): Add `remove-char-attribute'.
3317         (MIN_CHAR_GREEK): Deleted.
3318         (MAX_CHAR_GREEK): Likewise.
3319         (MIN_CHAR_CYRILLIC): Likewise.
3320         (MAX_CHAR_CYRILLIC): Likewise.
3321         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3322         MAX_CHAR_GREEK for `greek-iso8859-7'.
3323
3324         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3325         (MAX_CHAR_GREEK): Likewise.
3326         (MIN_CHAR_CYRILLIC): Likewise.
3327         (MAX_CHAR_CYRILLIC): Likewise.
3328
3329 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3330
3331         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3332         format is used without `ucs' property.
3333         (Fdecode_char): Fix problem with GR representation.
3334         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3335         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3336
3337 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3338
3339         * mule-charset.c (make_builtin_char): New function.
3340         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3341         (Fset_charset_mapping_table): Modify for new representation of
3342         code-point.
3343         (Fdecode_char): New function.
3344         (syms_of_mule_charset): Add new builtin function `decode-char' in
3345         UTF-2000.
3346
3347         * char-ucs.h (make_builtin_char): New prototype.
3348         (DECODE_CHAR): New inline function.
3349         (MAKE_CHAR): Use `DECODE_CHAR'.
3350
3351 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3352
3353         * text-coding.c (parse_charset_conversion_specs): Use
3354         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3355         `XCHARSET_TYPE'.
3356         (iso2022_designate): Likewise.
3357
3358         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3359         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3360
3361         * mule-charset.c (Vcharset_ucs): New variable.
3362         (print_charset): Change design; use `CHARSET_CHARS' and
3363         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3364         (make_charset): Change signature to specify `chars' and
3365         `dimension' instead of `type'.
3366         (range_charset_code_point): Modify for 256^n-set.
3367         (encode_builtin_char_1): Encode as `ucs' in default.
3368         (Fmake_charset): Modify for `make_charset'.
3369         (Fmake_reverse_direction_charset): Likewise.
3370         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3371         UTF-2000.
3372         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3373         for `make_charset'.
3374
3375         * char-ucs.h (Vcharset_ucs): New variable.
3376         (LEADING_BYTE_UCS): New macro.
3377         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3378         and `chars' to `unsigned short' from `unsigned int'.
3379         (CHARSET_TYPE): Deleted.
3380         (XCHARSET_TYPE): Deleted.
3381
3382 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3383
3384         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3385
3386         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3387         (ENCODE_CHAR): New macro.
3388
3389 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3390
3391         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3392         to 0.14 (Kawachi-Katakami).
3393
3394 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3395
3396         * text-coding.c (char_encode_shift_jis): Modify for
3397         `charset_code_point'.
3398         (char_encode_iso2022): Likewise.
3399
3400         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3401         (integer) instead of list of <Lisp_Object>s (integers) as the
3402         format of code-point of a coded-charset.
3403         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3404         (encode_builtin_char_1): New function; delete
3405         `split_builtin_char'.
3406         (charset_code_point): Return <int> instead of <Lisp_Object>.
3407         (Fsplit_char): Don't use `SPLIT_CHAR'.
3408
3409         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3410         prototype for `split_builtin_char'.
3411         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3412         (charset_code_point): Likewise.
3413         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3414         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3415
3416 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3417
3418         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3419         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3420
3421 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3422
3423         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3424
3425         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3426         (MAX_CHAR_OBS_94x94): Deleted.
3427
3428 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3429
3430         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3431
3432         * char-ucs.h (MAX_CHAR_BMP): New macro.
3433
3434 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3435
3436         * text-coding.c: Sync with r21-2-24.
3437
3438 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3439
3440         * file-coding.c: Modify for UTF-2000.
3441
3442 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3443
3444         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3445         to 0.13 (Takaida).
3446
3447 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3448
3449         * mule-charset.c (split_builtin_char): Delete builtin support for
3450         `katakana-jisx0201'.
3451         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3452         BMP area in builtin representation.
3453
3454         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3455         `Vcharset_katakana_jisx0201'.
3456
3457 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3458
3459         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3460         (Qisolated): New variable.
3461         (Qinitial): New variable.
3462         (Qmedial): New variable.
3463         (Qfinal): New variable.
3464         (Qvertical): New variable.
3465         (Qsmall): New variable.
3466         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3467         `Qvertical' and `Qsmall'.
3468         (Qmojikyo_pj_[1 .. 21]): New variable.
3469         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3470         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3471         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3472         .. 21]'.
3473
3474 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3475
3476         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3477         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3478         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3479
3480 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3481
3482         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3483         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3484         BMP.
3485         (Qjapanese_jisx0208_1990): New variable.
3486         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3487         (complex_vars_of_mule_charset): Add new coded-charset
3488         `japanese-jisx0208-1990'.
3489
3490         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3491         (MIN_CHAR_JIS_X0208_1990): New macro.
3492         (MAX_CHAR_JIS_X0208_1990): New macro.
3493
3494 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3495
3496         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3497         coded-charset is not found.
3498
3499 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3500
3501         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3502         (Fdefine_char): Use `Fmake_char'.
3503
3504 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3505
3506         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3507         (Vcharset_hiragana_jisx0208): Deleted.
3508         (Vcharset_katakana_jisx0208): Deleted.
3509         (Qideograph_daikanwa): New variable.
3510         (Qhiragana_jisx0208): Deleted.
3511         (Qkatakana_jisx0208): Deleted.
3512         (split_builtin_char): Split `ideograph-daikanwa'.
3513         (Fsplit_char): New implementation for UTF-2000.
3514         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3515         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3516         (complex_vars_of_mule_charset): Add new coded-charset
3517         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3518         `katakana-jisx0208'.
3519
3520         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3521         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3522         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3523         (MIN_CHAR_DAIKANWA): New macro.
3524         (MAX_CHAR_DAIKANWA): New macro.
3525
3526 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3527
3528         * data.c (Fstring_to_number): Don't recognize floating point if
3529         base is not 10.
3530
3531 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3532
3533         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3534
3535 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3536
3537         * mule-charset.c (Qsquare): New variable.
3538         (to_char_code): Add `Qsquare'.
3539         (syms_of_mule_charset): Add new symbol `square'.
3540
3541 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3542
3543         * mule-charset.c (Qcircle): New variable.
3544         (to_char_code): Add `Qcircle'.
3545         (syms_of_mule_charset): Add new symbol `circle'.
3546
3547 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3548
3549         * mule-charset.c (Qfont): New variable.
3550         (to_char_code): Add `Qfont'.
3551         (syms_of_mule_charset): Add new symbol `font'.
3552
3553 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3554
3555         * mule-charset.c (Qsub): New variable.
3556         (to_char_code): Add `Qsub'.
3557         (syms_of_mule_charset): Add new symbol `sub'.
3558
3559 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3560
3561         * mule-charset.c (Fput_char_attribute): Convert each element of
3562         VALUE to GL position if ATTRIBUTE is a GR-set,
3563
3564 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3565
3566         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3567         coded-charset is a GR-set.
3568
3569 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3570
3571         * mule-charset.c (Fput_char_attribute): Check each element of
3572         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3573
3574 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3575
3576         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3577         UTF-2000.
3578         (Qethiopic_ucs): New variable in UTF-2000.
3579         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3580         (complex_vars_of_mule_charset): Add new coded-charset
3581         `ethiopic-ucs' in UTF-2000.
3582
3583         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3584         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3585         9)'.
3586         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3587         10)'.
3588         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3589
3590 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3591
3592         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3593         `ascii'.
3594
3595 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3596
3597         * mule-charset.c (Vcharacter_variant_table): New variable.
3598         (Q_ucs): New variable.
3599         (Fchar_variants): New function.
3600         (Fput_char_attribute): Register `->ucs' value to
3601         `Vcharacter_variant_table'.
3602         (syms_of_mule_charset): Add new function `char-variants' and new
3603         symbol `->ucs'.
3604         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3605
3606 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3607
3608         * mule-charset.c (get_char_code_table): Allow negative character
3609         code.
3610         (put_char_code_table): Likewise.
3611         (Vcharacter_composition_table): New variable.
3612         (Q_decomposition): New variable.
3613         (Qwide): New variable.
3614         (Qnarrow): New variable.
3615         (Qcompat): New variable.
3616         (QnoBreak): New variable.
3617         (Qsuper): New variable.
3618         (Qfraction): New variable.
3619         (to_char_code): New function.
3620         (Fget_composite_char): New function.
3621         (Fput_char_attribute): Register `->decomposition' value to
3622         `Vcharacter_composition_table'.
3623         (syms_of_mule_charset): Add new function `get-composite-char', new
3624         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3625         `super' and `fraction'.
3626         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3627
3628 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3629
3630         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3631         character; copy the return value.
3632
3633 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3634
3635         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3636
3637         * mule-charset.c (range_charset_code_point): Must use make_int.
3638         (split_builtin_char): New function.
3639
3640 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3641
3642         * mule-charset.c (char_byte_table): Change name from
3643         "char-code-table" to "char-byte-table".
3644         (mark_char_code_table): New function.
3645         (char_code_table_equal): New function.
3646         (char_code_table_hash): New function.
3647         (char_code_table_description): New constant.
3648         (char_code_table): New type.
3649         (make_char_code_table): New function.
3650         (copy_char_code_table): New function.
3651         (get_char_code_table): Modify for `char_code_table' type.
3652         (put_char_code_table): Likewise.
3653         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3654         (Kashiwara).
3655
3656         * char-ucs.h (char_code_table): New type.
3657         (XCHAR_CODE_TABLE): New macro.
3658         (XSETCHAR_CODE_TABLE): New macro.
3659         (CHAR_CODE_TABLE_P): New macro.
3660         (GC_CHAR_CODE_TABLE_P): New macro.
3661         (struct Lisp_Char_Code_Table): New structure.
3662
3663 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3664
3665         * mule-charset.c (Fmake_charset): Setup byte_offset for
3666         {94|96}^n-set.
3667
3668 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3669
3670         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3671         character.
3672
3673 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3674
3675         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3676         is found.
3677
3678 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3679
3680         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3681         charset, it is regarded as a charset.
3682         (put_char_attribute): New function in UTF-2000.
3683         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3684         charset, mapping-table of the charset is modified.
3685         (Fdefine_char): New function in UTF-2000.
3686         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3687         `Fput_char_attribute'.
3688         (syms_of_mule_charset): Add new function `define-char' and new
3689         symbol `ucs' in UTF-2000.
3690         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3691
3692 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3693
3694         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3695         non-UTF-2000 configuration.
3696
3697 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3698
3699         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3700         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3701
3702         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3703         deleted.
3704         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3705         (Fset_charset_mapping_table): Likewise.
3706
3707         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3708         (CHARSET_ENCODING_TABLE): Delete.
3709         (XCHARSET_ENCODING_TABLE): Delete.
3710         (charset_code_point): New interface.
3711
3712 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3713
3714         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3715         instead of `charset_get_byte1' and `charset_get_byte2'.
3716
3717         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3718         (charset_get_byte2): Deleted.
3719
3720 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3721
3722         * char-ucs.h (SPLIT_CHAR): New inline function.
3723         (breakup_char_1): Use `SPLIT_CHAR'.
3724
3725         * mule-charset.c (range_charset_code_point): New function.
3726         (charset_code_point): New function.
3727
3728         * char-ucs.h (range_charset_code_point): New interface.
3729         (breakup_char_1): Use `range_charset_code_point'.
3730
3731 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3732
3733         * mule-charset.c (Fmake_charset): Delete unused local variable
3734         `code_offset'.
3735
3736         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3737         (breakup_char_1): Find a charset and code-point in
3738         `Vcharacter_attribute_table'.
3739
3740 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3741
3742         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3743         to 0.10 (Yao).
3744
3745 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3746
3747         * mule-charset.c (Vcharacter_attribute_table): New variable.
3748         (Fchar_attribute_alist): New function.
3749         (Fget_char_attribute): New function.
3750         (Fput_char_attribute): New function.
3751         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3752         too.
3753         (syms_of_mule_charset): Add new function `char-attribute-alist',
3754         `get-char-attribute' and `put-char-attribute'.
3755         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3756
3757 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3758
3759         * mule-charset.c (Fmake_charset): Just use
3760         `get_unallocated_leading_byte'.
3761
3762         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3763         sets; don't use final-byte based number for private sets.
3764
3765 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3766
3767         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3768         integer.
3769
3770 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3771
3772         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3773         to 0.9.
3774
3775 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3776
3777         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3778         of `CHAR_LEADING_BYTE' in UTF-2000.
3779
3780         * insdel.c (find_charsets_in_bufbyte_string): Use
3781         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3782         (find_charsets_in_emchar_string): Likewise.
3783
3784         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3785         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3786
3787         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3788         (CHAR_CHARSET_ID): New macro.
3789
3790 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3791
3792         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3793         charset-id - MIN_LEADING_BYTE.
3794         (put_char_table): Likewise.
3795
3796 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3797
3798         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3799         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3800         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3801         (CHARSET_ID_OFFSET): New macro.
3802         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3803         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3804         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3805         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3806         4).
3807         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3808         5).
3809         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3810         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3811         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3812         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3813         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3814
3815 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3816
3817         * mule-charset.c (next_allocated_leading_byte): New variable in
3818         UTF-2000.
3819         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3820         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3821         (get_unallocated_leading_byte): Simply use
3822         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3823         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3824         UTF-2000.
3825
3826         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3827         (MAX_LEADING_BYTE_PRIVATE): New macro.
3828         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3829         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3830
3831 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3832
3833         * mule-charset.c (Fmake_charset): Allocate final-byte based
3834         charset-id for 94-set, 96-set and 94x94-set.
3835
3836 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3837
3838         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3839         ambiguous `else'.
3840         (Fmake_charset): Likewise.
3841         (complex_vars_of_mule_charset): Modify the font registry of
3842         `ucs-bmp' not to match `Ethiopic-Unicode'.
3843
3844 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3845
3846         * mule-charset.c (complex_vars_of_mule_charset): Add font
3847         registory of `ucs-bmp'.
3848
3849 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3850
3851         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3852         coded-charsets in `default-coded-charset-priority-list' when
3853         breaking up a character.
3854
3855         * mule-charset.c (Vcharset_latin_viscii): New variable.
3856         (Qlatin_viscii): New variable.
3857         (make_charset): Don't use `decoding_table'.
3858         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3859         byte_offset.
3860         (Fset_charset_mapping_table): New implementation.
3861         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3862         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3863         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3864         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3865         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3866         charset `latin_viscii'.
3867
3868         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3869         (CHARSET_TYPE_94X94): Change to 1 from 2.
3870         (CHARSET_TYPE_96): Change to 2 from 1.
3871         (CHARSET_TYPE_128): New macro.
3872         (CHARSET_TYPE_128X128): Change to 5 from 4.
3873         (CHARSET_TYPE_256): New macro.
3874         (CHARSET_TYPE_256X256): Change to 7 from 5.
3875         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3876
3877 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3878
3879         * text-coding.c (char_encode_shift_jis): Refer
3880         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3881         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3882
3883         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3884         (char_byte_table_equal): New function in UTF-2000.
3885         (char_byte_table_hash): New function in UTF-2000.
3886         (char_byte_table_description): New constant in UTF-2000.
3887         (char_byte_table): New type in UTF-2000.
3888         (make_char_byte_table): New function in UTF-2000.
3889         (copy_char_byte_table): New function in UTF-2000.
3890         (make_char_code_table): New macro in UTF-2000.
3891         (get_char_code_table): New function in UTF-2000.
3892         (put_char_code_table): New function in UTF-2000.
3893         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3894         (charset_description): Add setting in UTF-2000.
3895         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3896         `CHARSET_TO_BYTE1_TABLE(cs)'.
3897         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3898         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3899         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3900         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3901         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3902         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3903         `CHARSET_TO_BYTE2_TABLE(cs)'.
3904
3905         * char-ucs.h (char_byte_table): New type.
3906         (XCHAR_BYTE_TABLE): New macro.
3907         (XSETCHAR_BYTE_TABLE): New macro.
3908         (CHAR_BYTE_TABLE_P): New macro.
3909         (GC_CHAR_BYTE_TABLE_P): New macro.
3910         (struct Lisp_Char_Byte_Table): New structure.
3911         (get_char_code_table): New interface.
3912         (Emchar_to_byte_table): Deleted.
3913         (get_byte_from_character_table): Deleted.
3914         (struct Lisp_Charset): Add `encoding_table'; delete
3915         `to_byte1_table' and `to_byte2_table'.
3916         (CHARSET_ENCODING_TABLE): New macro.
3917         (CHARSET_TO_BYTE1_TABLE): Deleted.
3918         (CHARSET_TO_BYTE2_TABLE): Deleted.
3919         (XCHARSET_ENCODING_TABLE): New macro.
3920         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3921         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3922
3923 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3924
3925         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3926         `vietnamese-viscii-*'.
3927
3928 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3929
3930         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3931         (Qvietnamese_viscii_upper): New variable.
3932         (Fdefine_charset_alias): New function.
3933         (syms_of_mule_charset): Add new function `define-charset-alias'.
3934         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3935         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3936         `latin-viscii-*'.
3937
3938 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3939
3940         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3941         (MAX_CHAR_OBS_94x94): New macro.
3942         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3943         for 94x94 sets.
3944
3945         * mule-charset.c (put_byte_from_character_table): Change unit size
3946         from 128 to 256.
3947         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3948         not defined.
3949         (Fmake_reverse_direction_charset): Modify dummy argument of
3950         `make_charset' for non-UTF-2000 environment.
3951
3952 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3953
3954         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3955
3956         * mule-charset.c (destroy_byte_from_character_table): New macro.
3957         (latin_jisx0201_to_ucs): Deleted.
3958         (latin_iso8859_2_to_ucs): Deleted.
3959         (latin_iso8859_3_to_ucs): Deleted.
3960         (latin_iso8859_4_to_ucs): Deleted.
3961         (latin_iso8859_9_to_ucs): Deleted.
3962         (latin_viscii_lower_to_ucs): Deleted.
3963         (latin_viscii_upper_to_ucs): Deleted.
3964         (mark_charset): Mark `cs->decoding_table'.
3965         (Fcharset_mapping_table): Fix DOC-string.
3966         (Fset_charset_mapping_table): New function.
3967         (syms_of_mule_charset): Add nwe function
3968         `set-charset-mapping-table'.
3969         (complex_vars_of_mule_charset): Don't setup and use
3970         `latin_*_to_ucs'.
3971
3972 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3973
3974         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3975         charset.
3976
3977 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3978
3979         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3980         (Vcharset_katakana_jisx0208): New variable.
3981         (Qhiragana_jisx0208): New variable.
3982         (Qkatakana_jisx0208): New variable.
3983         (make_charset): Add new argument `byte_offset'.
3984         (charset_get_byte1): Modify for new coded-charset definition; use
3985         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3986         `XCHARSET_BYTE_OFFSET'.
3987         (Fmake_charset): Modify for `make_charset'.
3988         (Fmake_reverse_direction_charset): Likewise.
3989         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3990         `katakana-jisx0208'.
3991         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3992         `.'  in font registry of charset `katakana-jisx0201',
3993         `latin-jisx0201', `vietnamese-viscii-lower' and
3994         `vietnamese-viscii-upper'; modify DOC-string of charset
3995         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3996         registry of charset `japanese-jisx0208' not to use font for JIS
3997         X0208:1990; add new charset `hiragana-jisx0208' and
3998         `katakana-jisx0208'.
3999
4000         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4001         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4002         (struct Lisp_Charset): Add `byte_offset'.
4003         (CHARSET_BYTE_OFFSET): New macro.
4004         (XCHARSET_UCS_MIN): New macro.
4005         (XCHARSET_UCS_MAX): New macro.
4006         (XCHARSET_CODE_OFFSET): New macro.
4007         (XCHARSET_BYTE_OFFSET): New macro.
4008         (MIN_CHAR_HIRAGANA): New macro.
4009         (MAX_CHAR_HIRAGANA): New macro.
4010         (MIN_CHAR_KATAKANA): New macro.
4011         (MAX_CHAR_KATAKANA): New macro.
4012         (MAKE_CHAR): Modify for new coded-charset definition; use
4013         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4014         `XCHARSET_BYTE_OFFSET'.
4015
4016 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4017
4018         * mule-charset.c (CHAR96): Deleted.
4019         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4020         <Lisp_Object>.
4021         (latin_iso8859_2_to_ucs): Likewise.
4022         (latin_iso8859_3_to_ucs): Likewise.
4023         (latin_iso8859_4_to_ucs): Likewise.
4024         (latin_iso8859_9_to_ucs): Likewise.
4025         (latin_viscii_lower_to_ucs): Likewise.
4026         (latin_viscii_upper_to_ucs): Likewise.
4027         (latin_tcvn5712_to_ucs): Commented out.
4028         (make_charset): Change type of argument `decoding_table' from
4029         <Emchar*> to <Lisp_Object> [vector of characters].
4030         (Fmake_charset): Modify for `make_charset'.
4031         (Fmake_reverse_direction_charset): Likewise.
4032         (Fcharset_mapping_table): New function in UTF-2000.
4033         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4034         UTF-2000.
4035         (complex_vars_of_mule_charset): Modify for type change of
4036         `*_to_ucs'; modify for `make_charset'.
4037
4038         * char-ucs.h (struct Lisp_Charset): Change type of
4039         `decoding_table' from <Emchar*> to <Lisp_Object>.
4040         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4041
4042 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4043
4044         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4045         error with non-UTF-2000-Mule.
4046
4047 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4048
4049         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4050         in lisp again].
4051         (Vcharset_chinese_cns11643_4): Likewise.
4052         (Vcharset_chinese_cns11643_5): Likewise.
4053         (Vcharset_chinese_cns11643_6): Likewise.
4054         (Vcharset_chinese_cns11643_7): Likewise.
4055         (Qchinese_cns11643_3): Likewise.
4056         (Qchinese_cns11643_4): Likewise.
4057         (Qchinese_cns11643_5): Likewise.
4058         (Qchinese_cns11643_6): Likewise.
4059         (Qchinese_cns11643_7): Likewise.
4060         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4061         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4062         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4063         (complex_vars_of_mule_charset): Likewise.
4064
4065 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4066
4067         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4068         96-set.
4069         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4070         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4071
4072 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4073
4074         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4075         0xFF60.
4076         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4077         (breakup_char_1): Likewise.
4078
4079         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4080         one of them includes the specified character.
4081
4082 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4083
4084         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4085
4086 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4087
4088         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4089
4090 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4091
4092         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4093         definition for non-UTF-2000 Mule.
4094         (latin_iso8859_3_to_ucs): Likewise.
4095         (latin_iso8859_4_to_ucs): Likewise.
4096         (latin_iso8859_9_to_ucs): Likewise.
4097         (latin_jisx0201_to_ucs): Likewise.
4098         (MIN_CHAR_THAI): Likewise.
4099         (MAX_CHAR_THAI): Likewise.
4100         (MIN_CHAR_GREEK): Likewise.
4101         (MAX_CHAR_GREEK): Likewise.
4102         (MIN_CHAR_HEBREW): Likewise.
4103         (MAX_CHAR_HEBREW): Likewise.
4104         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4105         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4106         (MIN_CHAR_CYRILLIC): Likewise.
4107         (MAX_CHAR_CYRILLIC): Likewise.
4108
4109 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4110
4111         * char-ucs.h (breakup_char_1): Use
4112         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4113         thai-tis620 and katakana-jisx0201 area.
4114
4115 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4116
4117         * char-ucs.h (breakup_char_1): Use
4118         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4119         area.
4120
4121         * text-coding.c (reset_encoding_stream): Fixed.
4122         (char_encode_ucs4): Delete `& 255'.
4123
4124         * char-ucs.h (breakup_char_1): Use
4125         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4126
4127 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4128
4129         * file-coding.c (Fmake_coding_system): Don't set up
4130         `codesys->fixed.size'.
4131         (encode_coding_no_conversion): Don't refer
4132         `str->codesys->fixed.size'.
4133
4134 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4135
4136         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4137         (latin_a_char_to_byte1): Deleted.
4138         (latin_a_char_to_byte2): Deleted.
4139
4140 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4141
4142         * mule-charset.c (make_charset): Add new argument `ucs_min',
4143         `ucs_max' and `code_offset'.
4144         (charset_get_byte1): New implementation [delete specific charset
4145         depended implementations].
4146         (Fmake_charset): Modify for `make_charset'.
4147         (Fmake_reverse_direction_charset): Likewise.
4148         (complex_vars_of_mule_charset): Likewise.
4149
4150         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4151         `code_offset'.
4152         (CHARSET_UCS_MIN): New macro.
4153         (CHARSET_UCS_MAX): New macro.
4154         (CHARSET_CODE_OFFSET): New macro.
4155         (MAKE_CHAR): Delete charset depended definitions [except
4156         katakana-jisx0201].
4157
4158 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4159
4160         * char-ucs.h (breakup_char_1): Use
4161         `Vdefault_coded_charset_priority_list' for C0-Controls,
4162         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4163
4164 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4165
4166         * char-ucs.h (charset_get_byte1): New function.
4167         (XCHARSET_GET_BYTE1): Deleted.
4168         (charset_get_byte2): New function.
4169         (XCHARSET_GET_BYTE2): Deleted.
4170         (Vdefault_coded_charset_priority_list): New external variable.
4171         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4172         `Vdefault_preferred_coded_charset_list'.
4173
4174         * mule-charset.c (charset_get_byte1): New function.
4175         (charset_get_byte2): New function.
4176         (Vdefault_coded_charset_priority_list): New variable.
4177         (vars_of_mule_charset): Add new variable
4178         `default-coded-charset-priority-list'.
4179
4180 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4181
4182         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4183         (XCHARSET_GET_BYTE2): New inline function.
4184         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4185         `XCHARSET_GET_BYTE2'.
4186
4187 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4188
4189         * mule-charset.c (make_charset): Initialize
4190         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4191         NULL if table is not defined.
4192
4193 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4194
4195         * text-coding.c (char_encode_shift_jis): Use
4196         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4197         `ucs_to_latin_jisx0201'.
4198
4199         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4200         (ucs_to_latin_iso8859_2): Deleted.
4201         (ucs_to_latin_iso8859_3): Deleted.
4202         (ucs_to_latin_iso8859_4): Deleted.
4203         (ucs_to_latin_iso8859_9): Deleted.
4204         (ucs_to_latin_viscii_lower): Deleted.
4205         (ucs_to_latin_viscii_upper): Deleted.
4206         (ucs_to_latin_tcvn5712): Deleted.
4207         (make_charset): Add new argument `decoding_table'; set up
4208         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4209         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4210         `decoding_table' is defined in UTF-2000.
4211         (Fmake_charset): Modify for `make_charset'.
4212         (Fmake_reverse_direction_charset): Likewise.
4213         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4214         and `GENERATE_96_SET'.
4215
4216         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4217         (ucs_to_latin_jisx0201): Deleted.
4218         (latin_iso8859_2_to_ucs): Deleted.
4219         (ucs_to_latin_iso8859_2): Deleted.
4220         (latin_iso8859_3_to_ucs): Deleted.
4221         (ucs_to_latin_iso8859_3): Deleted.
4222         (latin_iso8859_4_to_ucs): Deleted.
4223         (ucs_to_latin_iso8859_4): Deleted.
4224         (latin_iso8859_9_to_ucs): Deleted.
4225         (ucs_to_latin_iso8859_9): Deleted.
4226         (latin_viscii_lower_to_ucs): Deleted.
4227         (ucs_to_latin_viscii_lower): Deleted.
4228         (latin_viscii_upper_to_ucs): Deleted.
4229         (ucs_to_latin_viscii_upper): Deleted.
4230         (struct Lisp_Charset): Renamed `encoding_table' to
4231         `to_byte1_table'; add `to_byte2_table'.
4232         (CHARSET_DECODING_TABLE): New macro.
4233         (CHARSET_TO_BYTE1_TABLE): New macro.
4234         (CHARSET_TO_BYTE2_TABLE): New macro.
4235         (XCHARSET_DECODING_TABLE): New macro.
4236         (XCHARSET_TO_BYTE1_TABLE): New macro.
4237         (XCHARSET_TO_BYTE2_TABLE): New macro.
4238         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4239         tables.
4240         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4241         don't use `ucs_to_*' tables.
4242
4243 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4244
4245         * text-coding.c (Fmake_coding_system): Don't set up
4246         `codesys->fixed.size'.
4247         (encode_coding_no_conversion): Use `if' instead of `switch'.
4248
4249         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4250
4251 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4252
4253         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4254         (Fmake_charset): Modify for `make_charset'.
4255         (Fmake_reverse_direction_charset): Likewise.
4256         (complex_vars_of_mule_charset): Likewise.
4257
4258 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4259
4260         * text-coding.c (char_encode_shift_jis): Use table
4261         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4262
4263 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4264
4265         * text-coding.c (text_encode_generic): Use `if' instead of
4266         `switch'.
4267         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4268         decode JIS-Latin.
4269
4270 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4271
4272         * text-coding.c (encode_coding_sjis): Deleted.
4273         (char_encode_shift_jis): New function.
4274         (char_finish_shift_jis): New function.
4275         (reset_encoding_stream): Set up `encode_char' and `finish' for
4276         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4277         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4278         (char_encode_utf8): Treat `eol_type'.
4279
4280 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4281
4282         * file-coding.c (decode_coding_iso2022): Use
4283         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4284
4285 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4286
4287         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4288         to 0.7 (Hirano).
4289
4290 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4291
4292         * char-lb.h (CHAR_COLUMNS): New macro.
4293
4294 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4295
4296         * text-coding.c (char_encode_ucs4): New function.
4297         (char_finish_ucs4): New function.
4298         (encode_coding_ucs4): Deleted.
4299         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4300         (text_encode_generic): Delete local variable `charset' and `half'.
4301         (ucs_to_mule_table): Deleted.
4302         (mule_to_ucs_table): Deleted.
4303         (Fset_ucs_char): Deleted.
4304         (ucs_to_char): Deleted.
4305         (Fucs_char): Deleted.
4306         (Fset_char_ucs): Deleted.
4307         (Fchar_ucs): Deleted.
4308         (decode_ucs4): Deleted.
4309         (mule_char_to_ucs4): Deleted.
4310         (encode_ucs4): Deleted.
4311         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4312         (decode_coding_utf8): Likewise.
4313         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4314         (char_encode_iso2022): Fixed.
4315         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4316         `Fset_char_ucs' and `Fchar_ucs'.
4317         (complex_vars_of_file_coding): Don't initialize
4318         `ucs_to_mule_table'.
4319
4320         * objects-tty.c (tty_initialize_font_instance): Don't use
4321         `XCHARSET_COLUMNS'.
4322
4323         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4324         UTF-2000.
4325
4326         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4327         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4328
4329         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4330         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4331         (emchar_string_displayed_columns): Likewise.
4332
4333         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4334         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4335         (string_column_at_point): Likewise.
4336         (Fmove_to_column): Likewise.
4337
4338         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4339         `encoding_table' and `decoding_table'.
4340         (CHARSET_REP_BYTES): Deleted.
4341         (XCHARSET_REP_BYTES): Deleted.
4342         (XCHARSET_COLUMNS): Deleted.
4343         (CHAR_COLUMNS): New macro.
4344         (lookup_composite_char): Deleted unconditionally.
4345         (composite_char_string): Likewise.
4346
4347 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4348
4349         * char-ucs.h (Emchar_to_byte_table): New type.
4350         (get_byte_from_character_table): New function interface.
4351         (Vcharset_latin_jisx0201): New variable.
4352         (latin_jisx0201_to_ucs): New variable.
4353         (ucs_to_latin_jisx0201): New variable.
4354         (Vcharset_latin_iso8859_2): New variable.
4355         (latin_iso8859_2_to_ucs): New variable.
4356         (ucs_to_latin_iso8859_2): New variable.
4357         (Vcharset_latin_iso8859_3): New variable.
4358         (latin_iso8859_3_to_ucs): New variable.
4359         (ucs_to_latin_iso8859_3): New variable.
4360         (Vcharset_latin_iso8859_4): New variable.
4361         (latin_iso8859_4_to_ucs): New variable.
4362         (ucs_to_latin_iso8859_4): New variable.
4363         (Vcharset_latin_iso8859_9): New variable.
4364         (latin_iso8859_9_to_ucs): New variable.
4365         (ucs_to_latin_iso8859_9): New variable.
4366         (Vcharset_latin_viscii_lower): New variable.
4367         (latin_viscii_lower_to_ucs): New variable.
4368         (ucs_to_latin_viscii_lower): New variable.
4369         (Vcharset_latin_viscii_upper): New variable.
4370         (latin_viscii_upper_to_ucs): New variable.
4371         (ucs_to_latin_viscii_upper): New variable.
4372         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4373         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4374         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4375         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4376         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4377         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4378         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4379         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4380         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4381         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4382
4383         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4384         (Vcharset_latin_viscii_upper): New variable.
4385         (make_byte_from_character_table): New function.
4386         (put_byte_from_character_table): New function.
4387         (get_byte_from_character_table): New function.
4388         (CHAR96): New macro.
4389         (ucs_to_latin_jisx0201): New variable.
4390         (latin_jisx0201_to_ucs): New variable.
4391         (ucs_to_latin_iso8859_2): New variable.
4392         (latin_iso8859_2_to_ucs): New variable.
4393         (ucs_to_latin_iso8859_3): New variable.
4394         (latin_iso8859_3_to_ucs): New variable.
4395         (ucs_to_latin_iso8859_4): New variable.
4396         (latin_iso8859_4_to_ucs): New variable.
4397         (ucs_to_latin_iso8859_9): New variable.
4398         (latin_iso8859_9_to_ucs): New variable.
4399         (ucs_to_latin_viscii_lower): New variable.
4400         (latin_viscii_lower_to_ucs): New variable.
4401         (ucs_to_latin_viscii_upper): New variable.
4402         (latin_viscii_upper_to_ucs): New variable.
4403         (ucs_to_latin_tcvn5712): New variable.
4404         (latin_tcvn5712_to_ucs): New variable.
4405         (Qlatin_viscii_lower): New variable.
4406         (Qlatin_viscii_upper): New variable.
4407         (syms_of_mule_charset): Set up new symbol
4408         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4409         (complex_vars_of_mule_charset): Set up new charset
4410         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4411         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4412         `ucs_to_<CHARSET>' tables.
4413
4414 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4415
4416         * text-coding.c: New file.
4417
4418 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4419
4420         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4421
4422         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4423         (MAKE_CHAR): Modify for `ucs-bmp'.
4424         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4425         non-MULE characters of BMP.
4426
4427 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4428
4429         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4430         to 0.6.
4431
4432 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4433
4434         * lstream.h:
4435         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4436         - Include character.h for `CHAR_ASCII_P'.
4437
4438         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4439
4440         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4441         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4442
4443         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4444         (BYTE_C0_P): Likewise.
4445         (BYTE_C1_P): Likewise.
4446         (Lstream_get_emchar_1): Likewise.
4447         (Lstream_fput_emchar): Likewise.
4448         (Lstream_funget_emchar): Likewise.
4449         (copy_internal_to_external): Likewise.
4450         (copy_external_to_internal): Likewise.
4451
4452         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4453         (BYTE_C0_P): Likewise.
4454         (BYTE_C1_P): Likewise.
4455         (Lstream_get_emchar_1): Likewise.
4456         (Lstream_fput_emchar): Likewise.
4457         (Lstream_funget_emchar): Likewise.
4458         (copy_internal_to_external): Likewise.
4459         (copy_external_to_internal): Likewise.
4460
4461         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4462         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4463
4464         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4465         (BYTE_ASCII_P): Moved to mb-1byte.h.
4466
4467 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4468
4469         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4470
4471         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4472         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4473         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4474         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4475         (VALIDATE_CHARPTR_FORWARD): Likewise.
4476         (simple_charptr_emchar): Moved to mb-multibyte.h.
4477         (simple_set_charptr_emchar): Likewise.
4478         (simple_charptr_copy_char): Likewise.
4479         (non_ascii_charptr_emchar): Likewise.
4480         (non_ascii_set_charptr_emchar): Likewise.
4481         (non_ascii_charptr_copy_char): Likewise.
4482         (charptr_emchar): Moved to mb-*byte.h.
4483         (set_charptr_emchar): Likewise.
4484         (charptr_copy_char): Likewise.
4485
4486         * mb-1byte.h, mb-multibyte.h: New files.
4487
4488 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4489
4490         * mb-utf-8.h (MULTIBYTE): New macro.
4491         (MAX_EMCHAR_LEN): Moved from buffer.h.
4492         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4493
4494         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4495
4496         * mb-lb.h, multibyte.h: New files.
4497
4498         * char-1byte.h (Charset_ID): Moved from buffer.h.
4499         (MIN_LEADING_BYTE): Likewise.
4500         (LEADING_BYTE_ASCII): Likewise.
4501         (NUM_LEADING_BYTES): Likewise.
4502         (CHARSETP): Likewise.
4503         (CHARSET_BY_LEADING_BYTE): Likewise.
4504         (XCHARSET_LEADING_BYTE): Likewise.
4505         (XCHARSET_GRAPHIC): Likewise.
4506         (XCHARSET_COLUMNS): Likewise.
4507         (XCHARSET_DIMENSION): Likewise.
4508         (CHAR_CHARSET): Likewise.
4509         (CHAR_LEADING_BYTE): Likewise.
4510         (BREAKUP_CHAR): Likewise.
4511         (Vcharset_ascii): Likewise.
4512
4513         * buffer.h: Include multibyte.h unconditionally.
4514         (VALID_CHARPTR_P): Moved to multibyte.h.
4515         (ASSERT_VALID_CHARPTR): Likewise.
4516         (REAL_INC_CHARPTR): Likewise.
4517         (REAL_INC_CHARBYTIND): Likewise.
4518         (REAL_DEC_CHARPTR): Likewise.
4519         (INC_CHARPTR): Likewise.
4520         (INC_CHARBYTIND): Likewise.
4521         (DEC_CHARPTR): Likewise.
4522         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4523         (VALIDATE_CHARPTR_FORWARD): Likewise.
4524         (charptr_n_addr): Likewise.
4525         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4526         (simple_charptr_emchar): Moved to multibyte.h.
4527         (simple_set_charptr_emchar): Likewise.
4528         (simple_charptr_copy_char): Likewise.
4529         (non_ascii_charptr_emchar): Likewise.
4530         (non_ascii_set_charptr_emchar): Likewise.
4531         (non_ascii_charptr_copy_char): Likewise.
4532         (charptr_emchar): Likewise.
4533         (set_charptr_emchar): Likewise.
4534         (charptr_copy_char): Likewise.
4535         (charptr_emchar_n): Likewise.
4536         (Charset_ID): Moved to char-1byte.h.
4537         (Vcharset_ascii): Likewise.
4538         (CHAR_CHARSET): Likewise.
4539         (CHAR_LEADING_BYTE): Likewise.
4540         (LEADING_BYTE_ASCII): Likewise.
4541         (NUM_LEADING_BYTES): Likewise.
4542         (MIN_LEADING_BYTE): Likewise.
4543         (CHARSETP): Likewise.
4544         (CHARSET_BY_LEADING_BYTE): Likewise.
4545         (XCHARSET_LEADING_BYTE): Likewise.
4546         (XCHARSET_GRAPHIC): Likewise.
4547         (XCHARSET_COLUMNS): Likewise.
4548         (XCHARSET_DIMENSION): Likewise.
4549         (BREAKUP_CHAR): Likewise.
4550
4551 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4552
4553         * character.h: Add document about interface for characters.
4554
4555         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4556         (MAKE_CHAR): Delete comment about
4557         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4558         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4559         (BREAKUP_CHAR): Modify name of arguments.
4560         (CHAR_CHARSET): Modify name of argument.
4561
4562         * buffer.h: Delete document about Emchar accessors.
4563
4564 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4565
4566         * character.h (CHAR_INTP): Moved from buffer.h
4567         (CHAR_OR_CHAR_INTP): Likewise.
4568         (XCHAR_OR_CHAR_INT): Likewise.
4569         (CHECK_CHAR_COERCE_INT): Likewise.
4570
4571         * buffer.h (CHAR_INTP): Moved to character.h
4572         (CHAR_OR_CHAR_INTP): Likewise.
4573         (XCHAR_OR_CHAR_INT): Likewise.
4574         (CHECK_CHAR_COERCE_INT): Likewise.
4575
4576 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4577
4578         * character.h:
4579         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4580         - Include char-1byte.h, char-lb.h or char-ucs.h.
4581
4582         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4583
4584         * buffer.h: Include character unconditionally.
4585         (valid_char_p): Moved to char-*.h.
4586         (non_ascii_valid_char_p): Moved to char-lb.h.
4587
4588         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4589
4590 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4591
4592         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4593         in UTF-2000 because it is not ported yet and not to use
4594         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4595         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4596         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4597
4598         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4599         (CHAR_ASCII_P): Moved from character.h.
4600
4601         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4602         (CHAR_ASCII_P): Likewise.
4603         (CHAR_FIELD1_MASK): Deleted.
4604         (CHAR_FIELD2_MASK): Deleted.
4605         (CHAR_FIELD3_MASK): Deleted.
4606         (MAX_CHAR_BASIC_LATIN): New macro.
4607         (CHAR_FIELD1): Deleted.
4608         (CHAR_FIELD2_INTERNAL): Deleted.
4609         (CHAR_FIELD3_INTERNAL): Deleted.
4610         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4611         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4612         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4613         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4614         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4615         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4616         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4617         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4618         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4619         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4620         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4621         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4622         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4623         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4624         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4625         (MIN_CHAR_COMPOSITION): Deleted.
4626         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4627         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4628
4629 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4630
4631         * buffer.h: Include mb-utf-8.h in UTF-2000.
4632
4633         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4634
4635         * mb-utf-8.h: New file.
4636
4637 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4638
4639         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4640         instead of `int'.
4641
4642         * mule-charset.h, buffer.h (Charset_ID): New type.
4643
4644 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4645
4646         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4647         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4648         instead of `MULE_CHAR_PRIVATE_OFFSET',
4649         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4650         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4651         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4652
4653         * character.h (Vcharset_japanese_jisx0212): New variable
4654         definition.
4655
4656 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4657
4658         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4659         (charset_by_attributes): Delete array about direction.
4660         (latin_a_char_to_charset): New variable in UTF-2000.
4661         (latin_a_char_to_byte1): New variable in UTF-2000.
4662         (latin_a_char_to_byte2): New variable in UTF-2000.
4663         (Qucs_bmp): New variable.
4664         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4665         `Bufbyte'.
4666         (next_allocated_2_byte_leading_byte): Likewise.
4667         (non_ascii_set_charptr_emchar): Likewise.
4668         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4669         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4670         `charset_by_attributes'.
4671         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4672         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4673         and `CHARSET_BY_LEADING_BYTE'.
4674         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4675         `utf-2000-version' to `vars_of_mule_charset'.
4676         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4677         define `leading-code-private-11' in UTF-2000; move setting of
4678         `utf-2000-version' from `syms_of_mule_charset'.
4679         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4680         UTF-2000.
4681
4682         * character.h (Charset_ID): New type.
4683         (LEADING_BYTE_UCS_BMP): New macro.
4684         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4685         (CHARSET_ID_OFFSET_94): New macro.
4686         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4687         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4688         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4689         final-byte.
4690         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4691         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4692         (CHARSET_ID_OFFSET_96): New macro.
4693         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4694         CHARSET_ID_OFFSET_96 and final-byte.
4695         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4696         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4697         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4698         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4699         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4700         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4701         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4702         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4703         (LEADING_BYTE_THAI_TIS620): Likewise.
4704         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4705         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4706         (CHARSET_ID_OFFSET_94x94): New macro.
4707         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4708         CHARSET_ID_OFFSET_94x94 and final-byte.
4709         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4710         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4711         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4712         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4713         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4714         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4715         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4716         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4717         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4718         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4719         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4720         (CHARSET_TYPE_128X128): New macro.
4721         (CHARSET_TYPE_256X256): New macro.
4722         (XCHARSET_PRIVATE_P): Delete unconditionally.
4723         (charset_by_attributes): Delete array about direction.
4724         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4725         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4726         (MIN_CHAR_94): New macro.
4727         (MAX_CHAR_94): New macro.
4728         (MIN_CHAR_96): New macro.
4729         (MAX_CHAR_96): New macro.
4730         (MIN_CHAR_94x94): New macro.
4731         (MAX_CHAR_94x94): New macro.
4732         (MIN_CHAR_96x96): New macro.
4733         (MAX_CHAR_96x96): New macro.
4734         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4735         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4736         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4737         - 32)'.
4738         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4739         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4740         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4741         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4742         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4743         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4744         `XCHARSET_LEADING_BYTE' to make code-point.
4745         (latin_a_char_to_charset): New variable.
4746         (latin_a_char_to_byte1): New variable.
4747         (latin_a_char_to_byte2): New variable.
4748         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4749         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4750         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4751
4752         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4753         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4754         (find_charsets_in_emchar_string): Likewise.
4755         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4756
4757         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4758         `int'.
4759         (decode_coding_iso2022): Likewise.
4760
4761         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4762         of `unsigned char'.
4763
4764         * redisplay.c (redisplay_text_width_emchar_string): Use
4765         `Charset_ID' instead of `unsigned char'.
4766         (redisplay_frame_text_width_string): Likewise.
4767
4768         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4769         `unsigned char'.
4770
4771         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4772         instead of `unsigned char'.
4773         (face_cachel_charset_font_metric_info): Likewise.
4774
4775         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4776         (get_non_ascii_char_table_value): Likewise.
4777         (get_char_table): Likewise.
4778         (put_char_table): Likewise.
4779         (map_over_other_charset): Likewise.
4780         (map_char_table): Likewise.
4781
4782         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4783         instead of `unsigned char'.
4784
4785 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4786
4787         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4788         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4789
4790         * mule-charset.c (leading_code_private_11): Don't define in
4791         UTF-2000.
4792
4793         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4794         in UTF-2000 because it is not ported yet and not to use
4795         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4796
4797 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4798
4799         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4800
4801 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4802
4803         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4804         in UTF-2000.
4805
4806         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4807         of unsigned char to store leading-byte.
4808
4809         * chartab.c (get_non_ascii_char_table_value): Don't use
4810         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4811
4812         * file-coding.c (encode_coding_big5): Delete bogus implementation
4813         in UTF2000.
4814
4815         * character.h (LEADING_BYTE_*): Delete definition for
4816         non-UTF-2000.
4817         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4818         (LEADING_BYTE_PREFIX_P): Deleted.
4819         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4820         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4821         (BUFBYTE_LEADING_BYTE_P): Deleted.
4822         (CHARSET_PRIVATE_P): Deleted unconditionally.
4823         (rep_bytes_by_first_byte): Deleted unconditionally.
4824         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4825         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4826         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4827         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4828         (CHAR_FIELD2): Deleted.
4829         (CHAR_FIELD3): Deleted.
4830         (MAKE_CHAR): Delete definition for non-UTF-2000.
4831         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4832         (breakup_char_1): New implementation.
4833         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4834         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4835
4836 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4837
4838         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4839         condition.
4840
4841 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4842
4843         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4844         (CHARSET_PRIVATE_P): Likewise.
4845         (XCHARSET_PRIVATE_P): Likewise.
4846         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4847
4848         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4849         UTF2000.
4850         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4851
4852 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4853
4854         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4855         (NUM_LEADING_BYTES): Changed from 128 to 256.
4856         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4857         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4858         UTF2000.
4859         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4860
4861         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4862         UTF2000.
4863         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4864         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4865         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4866         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4867         (Qchinese_cns11643_3): New variable in UTF2000.
4868         (Qchinese_cns11643_4): New variable in UTF2000.
4869         (Qchinese_cns11643_5): New variable in UTF2000.
4870         (Qchinese_cns11643_6): New variable in UTF2000.
4871         (Qchinese_cns11643_7): New variable in UTF2000.
4872         (syms_of_mule_charset): Define `chinese-cns11643-3',
4873         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4874         and `chinese-cns11643-7' in UTF2000.
4875         (vars_of_mule_charset): Initialize
4876         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4877         + 1 in UTF2000.
4878         (complex_vars_of_mule_charset): Setup charset
4879         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4880         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4881
4882 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4883
4884         * mule-charset.c: Move setting for `leading-code-private-11' from
4885         `syms_of_mule_charset' to `vars_of_mule_charset'.
4886
4887 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4888
4889         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4890         and `NUM_LEADING_BYTES' in assert.
4891
4892 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4893
4894         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4895         instead of 128.
4896         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4897         `NUM_LEADING_BYTES' instead of 128.
4898
4899 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4900
4901         * mule-charset.h (charset_by_leading_byte): Use
4902         `NUM_LEADING_BYTES' instead of 128.
4903         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4904
4905         * mule-charset.c (charset_by_leading_byte): Use
4906         `NUM_LEADING_BYTES' instead of 128.
4907         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4908
4909         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4910         128.
4911
4912 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4913
4914         * mule-charset.c (syms_of_mule_charset): Update to
4915         0.4 (Shin-Imamiya).
4916
4917 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4918
4919         * file-coding.c (encode_coding_sjis): New implementation for
4920         UTF2000.  (decode_coding_sjis): Ditto.
4921
4922 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4923
4924         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4925         Don't define in UTF2000.
4926
4927         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4928         defined.
4929
4930         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4931         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4932         MULE.
4933
4934 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4935
4936         * config.h.in (CHAR_IS_UCS4): New macro.
4937
4938         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4939         conventional MULE representation.
4940         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4941
4942         * mule-charset.h: Reverted to original.
4943
4944         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4945         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4946         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4947
4948         * character.h: New file.
4949
4950         * file-coding.c (Fmake_coding_system): Set 1 to
4951         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4952         defined.
4953         (encode_coding_no_conversion): New implementation for UTF2000.
4954
4955         * file-coding.h (struct Lisp_Coding_System): Add new member
4956         `fixed.size'.
4957
4958 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4959
4960         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4961         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4962         (encode_coding_iso2022): New implementation for UTF2000.
4963
4964 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4965
4966         * mule-canna.c (c2mu): New implementation for UTF2000.
4967         (m2c): Likewise.
4968
4969 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4970
4971         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4972
4973 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4974
4975         * file-coding.c (reset_encoding_stream): Set 0 to
4976         `str->iso2022.current_char_boundary' in UTF2000.
4977         (encode_utf8): Don't define in UTF2000.
4978         (encode_coding_utf8): New implementation for UTF-8 representation
4979         of UTF2000.
4980         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4981
4982 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4983
4984         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4985
4986         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4987         UTF2000.
4988         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4989
4990         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4991
4992         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4993         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4994         as UTF-8 in UTF2000.
4995         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4996         (non_ascii_valid_char_p): Don't define in UTF2000.
4997         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4998         (Lstream_get_emchar_1): Likewise.
4999         (utf-2000-version): New variable in UTF2000.
5000
5001         * lread.c (read_escape): Add new reader `u'.
5002
5003         * insdel.c (three_to_one_table): Don't define in UTF2000.
5004         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5005         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5006         UTF2000.
5007         (bytind_to_bufpos_func): Likewise.
5008         (buffer_mule_signal_inserted_region): Likewise.
5009         (vars_of_insdel): Don't initialize `three_to_one_table'.
5010         (init_buffer_text): Use `buf->text->mule_size' instead of
5011         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5012         UTF2000.
5013
5014         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5015         UTF-8 representation in UTF2000.
5016         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5017         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5018         (decode_coding_iso2022): Don't define local variable `lb' in
5019         UTF2000; don't use LEADING_BYTE in UTF2000; use
5020         `DECODE_ADD_UCS_CHAR' in UTF2000.
5021         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5022
5023         * config.h.in (UTF2000): New macro.
5024
5025         * buffer.h (struct buffer_text): Add new member `mule_size' and
5026         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5027         (valid_char_p): Return always 1 in UTF2000.
5028         (MAX_EMCHAR_LEN): 6 in UTF2000.
5029         (three_to_one_table): Don't define in UTF2000.
5030         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5031         UTF2000.
5032         (real_bytind_to_bufpos): Likewise.
5033
5034         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5035
5036 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5037
5038         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5039         representation change.
5040         (Vutf_2000_version): New variable.
5041         (leading_code_private_11): New variable.
5042         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5043         `leading-code-private-11'.
5044
5045         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5046         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5047         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5048         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5049         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5050         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5051         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5052         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5053         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5054         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5055         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5056         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5057         (MIN_CHAR_GREEK): New macro.
5058         (MAX_CHAR_GREEK): New macro.
5059         (MIN_CHAR_CYRILLIC): New macro.
5060         (MAX_CHAR_CYRILLIC): New macro.
5061         (MIN_CHAR_HEBREW): New macro.
5062         (MAX_CHAR_HEBREW): New macro.
5063         (MIN_CHAR_THAI): New macro.
5064         (MAX_CHAR_THAI): New macro.
5065         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5066         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5067         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5068         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5069         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5070         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5071         (CHAR_FIELD2): New inline function.
5072         (CHAR_FIELD3): New inline function.
5073         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5074         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5075         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5076         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5077         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5078         (MIN_CHAR_COMPOSITION): Likewise.
5079         (CHAR_LEADING_BYTE): Modified for character representation change.
5080         (MAKE_CHAR): Likewise.
5081
5082         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5083         (Vcharset_greek_iso8859_7): Likewise.
5084         (Vcharset_cyrillic_iso8859_5): Likewise.
5085         (Vcharset_hebrew_iso8859_8): Likewise.
5086         (Vcharset_thai_tis620): Likewise.
5087         (Vcharset_katakana_jisx0201): Likewise.
5088
5089 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5090
5091         * XEmacs 21.4.12 "Portable Code" is released.
5092
5093 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5094
5095         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5096         * s/cygwin.sc: new linker file.
5097
5098 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5099
5100         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5101
5102         * redisplay-x.c (x_output_string): Use X11-specified types.
5103         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5104         * emacs.c (__free_hook): Use typeof with Intel compiler.
5105         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5106
5107 2003-01-08  Andy Piper  <andy@xemacs.org>
5108
5109         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5110         reserve size during unexec().
5111
5112 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5113
5114         * process-unix.c (unix_create_process): Don't let outchannel block.
5115
5116 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5117
5118         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5119         Needed for IsBadReadPtr().
5120
5121 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5122
5123         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5124
5125 2002-12-14  Ben Wing  <ben@xemacs.org>
5126
5127         * callint.c: Declaration error.
5128         * dumper.c (pdump):
5129         * dumper.c (pdump_load): Warning fix.
5130         * process.c: GCPRO error.
5131         * glyphs.c (unmap_subwindow):
5132         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5133         * event-stream.c (maybe_kbd_translate): Wrong argument to
5134         character_to_event().
5135
5136         * alloc.c (garbage_collect_1):
5137         * emacs.c:
5138         * emacs.c (debug_can_access_memory):
5139         * emacs.c (fatal_error_signal):
5140         * emacs.c (mswindows_handle_hardware_exceptions):
5141         * emacs.c (main_1):
5142         * emacs.c (main):
5143         * emacs.c (assert_failed):
5144         * emacs.c (syms_of_emacs):
5145         * lisp.h:
5146         * print.c:
5147         * print.c (std_handle_out_va):
5148         * print.c (write_string_to_stdio_stream):
5149         * print.c (write_fmt_string):
5150         * print.c (printing_badness):
5151         * print.c (printing_major_badness):
5152         * print.c (print_internal):
5153         * print.c (debug_print_no_newline):
5154         * print.c (debug_backtrace):
5155         Be more defensive in handling bad values when printing.  Add code
5156         from trunk involving inhibit_non_essential_printing_operations.
5157         When going down or in debug_print(), don't do external conversion
5158         and such and try really, really hard when printing to avoid core
5159         dumping.  Add force-debugging-signal, debug_break().
5160
5161 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5162
5163         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5164         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5165
5166 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5167
5168         * database.c: Fix open_database. Berkeley DB API has changed in
5169         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5170
5171 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5172
5173         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5174
5175 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5176
5177         * event-Xt.c (Xt_timeout):
5178         (Xt_timeout_callback):
5179         (emacs_Xt_add_timeout):
5180         (emacs_Xt_remove_timeout):
5181         (Xt_timeout_to_emacs_event):
5182         Turn completed_timeouts from a stack into a queue.  Fixes
5183         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5184
5185 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5186
5187         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5188         * emacs.c (main): Assert that mmap'd allocation is disabled.
5189
5190 2002-10-14  Andy Piper  <andy@xemacs.org>
5191
5192         * glyphs-widget.c (layout_query_geometry): add in fiddle
5193         factor. Include border text in width layout calculation.
5194         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5195
5196 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5197
5198         * XEmacs 21.4.10 "Military Intelligence" is released.
5199
5200 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5201
5202         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5203         using the NAS private array SoundFileInfo that no longer exists in
5204         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5205         and earlier.  This is broken for some versions between 1.5a and
5206         1.5f.
5207
5208 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5209
5210         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5211
5212         * emacs.c (shut_down_emacs): Improve crash message.
5213
5214 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5215
5216         * file-coding.c (determine_real_coding_system): Check for coding
5217         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5218         shebangs and Python PEP 263.
5219
5220 2002-10-08  Andy Piper  <andy@xemacs.org>
5221
5222         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5223         if static sizes haven't been set.
5224
5225 2002-08-30  Mike Alexander  <mta@arbortext.com>
5226
5227         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5228         to close a socket.
5229
5230 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5231
5232         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5233
5234 2002-09-20  Mike Sperber <mike@xemacs.org>
5235
5236         (This partially gets back my patch from 2002-07-20 without the
5237         bug.)
5238         * callproc.c (child_setup): Remove Ben's comment noting confusion
5239         over the file descriptors >= 3: close_process_descs() doesn't
5240         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5241         * process-unix.c (unix_create_process): Call
5242         begin_dont_check_for_quit to inhibit unwanted interaction (and
5243         thus breaking of X event synchronicity) in the child.
5244
5245 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5246
5247         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5248         widget.
5249
5250 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5251
5252         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5253         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5254         the xemacs process did not exit, but looped infinitely here.  This
5255         fixes that problem.
5256
5257 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5258
5259         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5260         (find_context): Improve comments.
5261
5262         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5263         (re_match_2): An XCHAR_TABLE operation was missing.
5264
5265         Many of the following changes were inspired by Andy Piper's (now
5266         obsolete) patch to make syntax-table text property lookup optional.
5267
5268         [Documentation]
5269
5270         * syntax.h (top level): Document semantics of syntax flags.
5271         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5272         * syntax.c, syntax.h (top level): Document syntax cache better in
5273         comments.
5274
5275         [Instrument syntax caching (temporary change)]
5276
5277         * syntax.h (enum syntax_cache_statistics_functions, struct
5278         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5279         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5280         * syntax.c (scan_words, Fforward_comment, scan_lists,
5281         Fbackward_prefix_characters):
5282         * font-lock.c (find_context):
5283         Use them to instrument syntax caching. 
5284         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5285         syntax_cache_statistics_function_names): New type and variables.
5286         * syntax.c (update_syntax_cache): Update and report statistics.
5287
5288         [Major syntax cache optimizations]
5289
5290         syntax.c (lookup_syntax_properties): Default off.
5291
5292         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5293         * syntax.c (update_syntax_cache):
5294         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5295
5296         [Minor syntax cache optimizations and code clarifications]
5297
5298         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5299         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5300         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5301         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5302         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5303         (Code clarification.)
5304
5305         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5306         scan_lists): Compute code from syncode, use Boolean macros instead
5307         of redundant masking operations.  (Code clarification; any decent
5308         compiler can do this optimization.)
5309
5310         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5311         for clarity.
5312
5313         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5314         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5315         use F*_single_property_change instead of F*_extent_change.
5316         Currently F*_single_property_change is _much_ less efficient.
5317
5318         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5319         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5320         syntax_cache.object properly, don't leave Qt or Qnil.
5321         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5322         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5323         tests for Qt or Qnil.
5324
5325 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5326
5327         * redisplay.c (point_in_line_start_cache): 
5328         * extents.c (print_extent_1):
5329         Fix warnings.
5330
5331         * extents.c (Fset_extent_property): Document `syntax-table' property.
5332
5333         * extents.h (Fnext_single_property_change): EXFUN it.
5334
5335 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5336
5337         * search.c (clear_unused_search_regs): New static function.
5338         (search_buffer): 
5339         (simple_search): 
5340         (boyer_moore):
5341         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5342         Minor clarifications in comments.
5343
5344         * regex.c (re_match_2_internal): Ensure no stale submatches.
5345
5346 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5347
5348         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5349
5350 2002-08-29  Jerry James  <james@xemacs.org>
5351
5352         * lisp.h: structrures -> structures.
5353
5354 2002-06-03  Andy Piper  <andy@xemacs.org>
5355
5356         * frame.c (frame_conversion_internal): add conversion appropriate
5357         for setting frame dimensions in pixels.
5358
5359         * console.h (struct console_methods): add device-specific widget
5360         layout functions.
5361
5362         * emacs.c (main_1): initialize glyph vars.
5363
5364         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5365         (handle_focus_event_2): new function. Allow focus to
5366         be set to a particular window and widget.
5367         (enqueue_focus_event): new function. Create a
5368         synthetic focus event.
5369         (emacs_Xt_handle_magic_event): call
5370         handle_focus_event_2.
5371
5372         * frame.c (Fset_frame_pixel_height): new function. Allow
5373         pixel-based sizing. Does the right thing on character-oriented
5374         displays.
5375         (Fset_frame_pixel_width): ditto.
5376         (Fset_frame_pixel_size): ditto.
5377         (syms_of_frame): declare.
5378
5379         * general-slots.h: add :vertically-justify and
5380         :horizontally-justify.
5381
5382         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5383         (mswindows_widget_border_width): new function.
5384         (mswindows_combo_box_instantiate): set border widths.
5385         (console_type_create_glyphs_mswindows): declare.
5386
5387         * glyphs-widget.c:
5388         (check_valid_justification): allow vertical and horizontal
5389         justification.
5390         (widget_border_width): new function. Call device methods.
5391         (widget_instance_border_width): ditto.
5392         (logical_unit_height): new function. Determine the height of a
5393         logical-unit. Logical units are intended to provide grid-like
5394         layout for subcontrols in a layout. If the layout is
5395         :vertically-justify top then subcontrols will be positioned on
5396         logical-unit boundaries, thus allowing adjacent subcontrols to
5397         line up.
5398         (widget_logical_unit_height): ditto for widgets.
5399         (redisplay_widget): misc cleanup.
5400         (widget_spacing): new function. Call device specific
5401         methods. Intended to be the default gap between adjacent widgets.
5402         (widget_query_geometry): use new spacing functions to determine
5403         appropriate geometry.
5404         (initialize_widget_image_instance): initialize horizontal and
5405         vertical justification.
5406         (widget_instantiate): use logica-units where appropriate for
5407         sizing large widgets.
5408         (button_query_geometry): use widget_instance_border_width.
5409         (tree_view_query_geometry): ditto.
5410         (tab_control_query_geometry): ditto.
5411         (edit_field_query_geometry): new function.
5412         (layout_update): pick up :justify, :horizontally-justify and
5413         :vertically-justify none of which worked previously. :justify is
5414         used as a fallback for both horizontal and vertical justification.
5415         (layout_query_geometry): use logical units to size appropriately.
5416         (layout_layout): ditto.
5417         (Fwidget_logical_to_character_width): new function. Allow users to
5418         convert from logical units to characters so that frame sizes can
5419         be set appropriately.
5420         (Fwidget_logical_to_character_height): ditto.
5421         (syms_of_glyphs_widget): declare.
5422         (image_instantiator_edit_fields): add edit_field_query_geometry.
5423         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5424         :horizontally-justify.
5425         (specifier_vars_of_glyphs_widget): new function. Declare
5426         Vwidget_border_width which is not yet used.
5427
5428         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5429         (x_widget_border_width): new function.
5430         (x_widget_instantiate): create a sensible name for widgets.
5431         (console_type_create_glyphs_x): declare x_widget_border_width.
5432
5433         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5434         (struct Lisp_Image_Instance): add :vertically-justify and
5435         :horizontally-justify.
5436         (LAYOUT_JUSTIFY_TOP): new.
5437         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5438         (ROUND_UP): new macro. Round argument up to next integral
5439         interval.
5440
5441         * redisplay-output.c (redisplay_output_layout): misc formatting.
5442
5443         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5444
5445 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5446
5447         * XEmacs 21.4.9 "Informed Management" is released.
5448
5449 2002-08-19  Andy Piper  <andy@xemacs.org>
5450
5451         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5452         win32 format.
5453
5454         * realpath.c (xrealpath): normalize drive spec also so that dir
5455         sep chars are not mixed on cygwin.
5456
5457 2002-08-06  Jerry James  <james@xemacs.org>
5458
5459         * window.c (Fsplit_window): Count only half of the divider width
5460         against the left window when splitting horizontally. 
5461
5462 2002-06-24  Andy Piper  <andy@xemacs.org>
5463
5464         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5465         toolbar was cleared.
5466
5467         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5468         function. Split out from mswindows_output_frame_toolbars.
5469         (mswindows_output_frame_toolbars): move clear pieces to
5470         mswindows_output_frame_toolbars.
5471
5472         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5473         out from gtk_output_frame_toolbars.
5474         (gtk_output_frame_toolbars): move clear pieces to
5475         gtk_clear_frame_toolbars.
5476
5477         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5478         the frame is cleared. How this ever worked before is a mystery.
5479         (x_output_frame_toolbars): Only output toolbars.
5480         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5481
5482         * gutter.c (update_gutter_geometry):
5483         Mark frame layout changed.
5484         (update_frame_gutter_geometry, update_frame_gutters):
5485         Respect frame_layout_changed.
5486
5487         * console.h (struct console_methods): add
5488         clear_frame_toolbars_method.
5489
5490         * redisplay.c (redisplay_frame): call
5491         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5492
5493         * toolbar.h: declare update_frame_toolbars_geometry.
5494
5495         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5496         out from update_frame_toolbars.  Call clear_frame_toolbars.
5497         (update_frame_toolbars): only output, do not change geometry.
5498
5499         * redisplay.c: add frame_layout_changed.
5500
5501         * redisplay.h: add frame_layout_changed.
5502         (CLASS_RESET_CHANGED_FLAGS): set it.
5503         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5504         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5505         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5506
5507         * device.h (struct device): add frame_layout_changed.
5508         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5509
5510         * frame.h (struct frame): add frame_layout_changed.
5511         (MARK_FRAME_LAYOUT_CHANGED): new.
5512
5513 2002-06-30  Mike Alexander  <mta@arbortext.com>
5514
5515         * event-msw.c (mswindows_need_event): Don't wait for a new message
5516         if the queue is not empty.  Suggested by Paul Moore.
5517
5518 2002-06-12  Andy Piper  <andy@xemacs.org>
5519
5520         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5521         for printing on accurately.
5522
5523 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5524
5525         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5526         WM_ACTIVATE message. Make sure that the frame is visible if the
5527         window is visible. This seemss to fix the problem where XEmacs
5528         appears to freeze after switching desktops with certain virtual
5529         window managers.
5530         (debug_output_mswin_message): Added code to output message
5531         parameters for WM_WINDOWPOSCHANGED, 
5532         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5533
5534 2002-05-25  Andy Piper  <andy@xemacs.org>
5535
5536         * select-x.c (vars_of_select_x): Fix docstring of
5537         x-selection-strict-motif-ownership
5538
5539 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5540
5541         * keymap.c (get_keymap):
5542         Add comment about do_autoload GCPROs own args.
5543
5544 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5545
5546         * bytecode.c (execute_optimized_program): check_opcode ifdef
5547         ERROR_CHECK_BYTE_CODE.
5548
5549 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5550
5551         Thanks to Ben Wing and Michael Sperber.
5552
5553         * eval.c (Fcommand_execute):
5554         (Feval):
5555         (Ffuncall):
5556         (Fmacroexpand_internal):
5557         (function_argcount):
5558         callint.c (Fcall_interactively):
5559         Add comment about do_autoload GCPROs own args.
5560
5561         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5562
5563         * eval.c (Ffuncall): Extra braces to placate GCC.
5564
5565 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5566
5567         * backtrace.h (grow_specpdl):
5568         (SPECPDL_RESERVE):
5569         * EmacsFrame.c (EmacsFrameSetValues):
5570         * eval.c (grow_specpdl):
5571         * ExternalShell.c (hack_event_masks_1):
5572         * glyphs-x.c (convert_EImage_to_XImage): 
5573         (x_finalize_image_instance):
5574         * ralloc.c (page_size):
5575         (r_alloc_sbrk):
5576         * xgccache.c (gc_cache_hash):
5577         Fix unsigned comparison warnings.
5578
5579 2002-07-29  Jerry James  <james@xemacs.org>
5580
5581         * lread.c (locate_file): Any nonnegative return value indicates
5582         success if MODE is nonnegative.
5583
5584 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5585
5586         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5587         argument. 
5588
5589 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5590
5591         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5592
5593         * dumper.c (pdump_get_indirect_count):
5594         (pdump_scan_by_alignment):
5595         (pdump_dump_root_struct_ptrs):
5596         (pdump_dump_rtables):
5597         (pdump_dump_root_objects):
5598         (pdump):
5599         * nas.c (WaveOpenDataForReading):
5600         * fns.c (print_bit_vector):
5601         * font-lock.c (SINGLE_SYNTAX_STYLE):
5602         * glyphs.c (check_for_ignored_expose):
5603         (find_matching_subwindow):
5604         * glyphs-eimage.c:
5605         * imgproc.c (get_histogram):
5606         * redisplay.c (point_in_line_start_cache):
5607         * redisplay-output.c (redisplay_unmap_subwindows):
5608         * symbols.c (defsymbol_massage_name_1):
5609         (defkeyword_massage_name):
5610         (deferror_massage_name_and_message):
5611         * redisplay-x.c (x_output_string): 
5612         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5613         * frame.h (struct frame):
5614         * filelock.c (current_lock_owner):
5615         * doprnt.c (emacs_doprnt_1):
5616         * lisp.h (struct Lisp_Bit_Vector):
5617         (DO_REALLOC):
5618         Fix warnings.
5619
5620 2002-02-13  Ben Wing  <ben@xemacs.org>
5621
5622         * event-stream.c (reset_key_echo):
5623         * event-stream.c (reset_this_command_keys):
5624         * event-stream.c (execute_command_event):
5625         If console is dead as a result of C-x 5 0, then post-command stuff
5626         needs to be careful and do only non-console-specific stuff.
5627
5628 2002-07-01  Mike Sperber <mike@xemacs.org>
5629
5630         * process-unix.c (unix_send_process): Mark coding_outstream as
5631         non-open upon SIGPIPE.
5632
5633         * event-stream.c (Fnext_event): Reorder switch cases to something
5634         that makes sense.
5635
5636 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5637
5638         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5639         Don't bogusly reinitialize ascii_character property.
5640
5641 2002-07-08  Mike Sperber <mike@xemacs.org>
5642
5643         * process.c (Fstart_process_internal): Do error checking before we
5644         fork off the child, so the child can't muck with the state of the
5645         parent.
5646
5647 2002-07-08  Mike Sperber <mike@xemacs.org>
5648
5649         * ralloc.c (init_ralloc): Allocate properly for pdump.
5650
5651 2002-06-12  Andy Piper  <andy@xemacs.org>
5652
5653         * glyphs.c (query_string_geometry): check the string.
5654
5655         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5656         widget names.
5657
5658 2002-06-17  Jerry James  <james@xemacs.org>
5659
5660         * sysdll.c: Remove RTLD_GLOBAL initialization.
5661         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5662
5663 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5664
5665         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5666
5667 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5668
5669         * sysdep.c (sys_rename): Make sys_rename work for the case where
5670         Windows rename sets errno to EACCES if target file exists.
5671
5672 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5673
5674         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5675         Fix detection of metric units to work on Win95
5676
5677 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5678
5679         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5680
5681 2002-04-25  Andy Piper  <andy@xemacs.org>
5682
5683         * redisplay.c (create_text_block): Remove extra comment trailer.
5684
5685 2002-04-24  Andy Piper  <andy@xemacs.org>
5686
5687         * redisplay.c (create_text_block): Don't actually add propagation
5688         data if the line ends after we have added a glyph.
5689
5690 2002-04-22  Andy Piper  <andy@xemacs.org>
5691
5692         * extents.c (extent_fragment_update): check for glyphs we have
5693         previously displayed.
5694         * extents.c (print_extent_1): warning removal.
5695         * extents.h: change prototype.
5696         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5697         widths correctly for wide glyphs.
5698         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5699         * redisplay.c (prop_type): add PROP_GLYPH.
5700         * redisplay.c (struct prop_block): add glyph type
5701         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5702         to the propagation data.
5703         * redisplay.c (create_text_block): if there is a glyph in the
5704         propagation data use it to salt extent_fragment_update.
5705         * redisplay.c (create_string_text_block): ditto.
5706
5707 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5708
5709         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5710         * redisplay-output.c (compare_runes): Compare them.
5711         * redisplay.c: Update copyright date.
5712         * redisplay.c (pos_data): Add need_baseline_computation field.
5713         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5714         need_baseline_computation; zero yoffset. Set max_pixmap_height
5715         for all pixmaps, not just automatically positioned ones.
5716         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5717         * redisplay.c (calculate_baseline): New, compute textual baseline.
5718         * redisplay.c (add_glyph_rune): Call them.
5719         * redisplay.c (create_text_block): Likewise.
5720         * redisplay.c (create_overlay_glyph_block): Likewise.
5721         * redisplay.c (add_margin_runes): Likewise.
5722         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5723
5724         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5725         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5726         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5727         * redisplay-msw.c (mswindows_output_string): Likewise.
5728         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5729         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5730         * redisplay-x.c (x_output_display_block): Likewise.
5731
5732 2002-03-28  Ben Wing  <ben@xemacs.org>
5733
5734         * redisplay.c: Fixed bug in redisplay
5735         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5736         and down of the lines, since they're bigger than the line
5737         size. (It was seen most obviously when there's a horizontal scroll
5738         bar, e.g. do C-h a glyph or something like that.) The problem was
5739         that the glyph-contrib-p setting on glyphs was ignored even if it
5740         was set properly, which it wasn't until now.
5741
5742 2002-04-24  Andy Piper  <andy@xemacs.org>
5743
5744         * lisp.h (Dynarr_end): Fix definition.
5745
5746 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5747
5748         * redisplay.c (mark_redisplay): Remove call to
5749         update_frame_window_mirror.
5750
5751 2001-11-15  Andy Piper  <andy@xemacs.org>
5752
5753         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5754         cygwin (again).
5755
5756 2002-02-13  Andy Piper  <andy@xemacs.org>
5757
5758         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5759         we did in fact enqueue the XM_MAPFRAME event.
5760
5761 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5762
5763         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5764         to fix problem switching between virtual desktops under virtuawin
5765         virtual window manager.
5766
5767 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5768
5769         * event-msw.c: Typo fix.
5770         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5771         magic XM_MAPFRAME event has been sent.
5772
5773 2001-11-23  Andy Piper  <andy@xemacs.org>
5774
5775         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5776
5777 2001-11-21  Andy Piper  <andy@xemacs.org>
5778
5779         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5780         mouse events outside the frame.
5781
5782 2002-03-20  Andy Piper  <andy@xemacs.org>
5783
5784         * menubar-msw.c (mswindows_popup_menu): warning removal.
5785         * dialog-msw.c (dialog_popped_down): ditto.
5786
5787 2001-12-11  Andy Piper  <andy@xemacs.org>
5788
5789         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5790         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5791         popup_up_p.
5792         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5793         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5794         * menubar-msw.c (mswindows_popup_menu): ditto.
5795
5796 2001-10-29  Andy Piper  <andy@xemacs.org>
5797
5798         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5799         cancels.
5800
5801 2002-01-03  Andy Piper  <andy@xemacs.org>
5802
5803         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5804         letters.
5805         (xrealpath): ditto.
5806
5807 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5808
5809         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5810         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5811         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5812         Detect and handle case where machine is set up for metric units
5813
5814 2002-04-02  Andy Piper  <andy@xemacs.org>
5815
5816         * dired-msw.c (mswindows_get_files): 
5817         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5818         completely handled by XEmacs. Suggested by Thomas Vogler
5819         <mail@thomas-vogler.de>.
5820
5821 2001-11-14  Andy Piper  <andy@xemacs.org>
5822
5823         * nt.c (REG_ROOT): change registry key to XEmacs.
5824
5825 2002-04-27  Andy Piper  <andy@xemacs.org>
5826
5827         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5828
5829 2002-04-26  Andy Piper  <andy@xemacs.org>
5830
5831         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5832         behavior.
5833
5834 2002-03-14  Mike Alexander  <mta@arbortext.com>
5835
5836         * event-msw.c (mswindows_unwait_process): New, remove process from
5837         wait list
5838         * process-nt.c (nt_finalize_process_data): Call
5839         mswindows_unwait_process
5840         * console-msw.h: Declare mswindows_unwait_process
5841
5842 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5843
5844         * editfns.c (Fdecode_time):
5845         (Fformat_time_string):
5846         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5847         (make_time): Warning elimination (change arg name).
5848
5849 2001-11-24  Andy Piper  <andy@xemacs.org>
5850
5851         * window.c (Fsplit_window): Doc return type.
5852
5853 2002-04-01  Andy Piper  <andy@xemacs.org>
5854
5855         * emacs.c (Fkill_emacs): Only output message box in interactive
5856         mode.
5857
5858 2002-04-26  Andy Piper  <andy@xemacs.org>
5859  
5860         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5861         cygwin.
5862
5863 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5864
5865         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5866         bit platform.
5867
5868 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5869
5870         * XEmacs 21.4.8 "Honest Recruiter" is released.
5871
5872 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5873
5874         Supersedes 2002-04-17 patch.
5875
5876         * process.h (PROCESS_LIVE_P): Use the process status as
5877         evidence of health, not the state of the input stream.
5878         (PROCESS_READABLE_P): Say if the process is readable
5879         from. (It may be dead nonetheless.)
5880         (CHECK_READABLE_PROCESS): Test for that condition.
5881
5882         * process.c (create_process): Use PROCESS_READABLE_P.
5883         (read_process_output, set_process_filter): Likewise.
5884
5885         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5886         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5887
5888         This code is #if 0'd, this is not the time to add new functions:
5889
5890         * process.c (Fprocess_readable_p): Report readability status.
5891         * process.c (Qprocess_readable_p): New, associated symbol...
5892         * process.c (syms_of_process): ... initialize it.
5893
5894 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5895
5896         * XEmacs 21.4.7 "Economic Science" is released.
5897
5898 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5899
5900         * process.h (PROCESS_LIVE_P): Use the process status as
5901         evidence of health, not the state of the input stream.
5902
5903 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5904
5905         * sysdep.c (sys_siglist): change "signum" to "signal"
5906
5907 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5908
5909         * s/darwin.h: New file.
5910         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5911         
5912 2002-04-23  Andreas Jaeger  <aj@suse.de>
5913
5914         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5915         which use lib64 for 64-bit libs.
5916         (START_FILES): Likewise.
5917
5918 2002-02-11  Mike Sperber  <mike@xemacs.org>
5919
5920         * device-x.c: 
5921         (x_IO_error_handler):
5922         (x_init_device): Temporarily keep device in static variable
5923         `device_being_initialized' so we can recover gracefully from
5924         internal XOpenDevice failure.  (XOpenDevice is documented to
5925         return NULL on failure, but sometimes calls the IO error handler
5926         instead.)
5927
5928 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5929
5930         * dired.c (Ffile_name_all_completions): Change documentation --
5931         remove reference to completion-ignored-extensions.
5932         * dired.c (vars_of_dired): Change documentation for
5933         completion-ignored-extensions -- remove reference to
5934         file-name-all-completions.
5935
5936 2002-03-06  Jerry James  <james@xemacs.org>
5937
5938         * emodules.c (emodules_load): Fix multiple loading of same module.
5939
5940 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5941         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5942         RTLD_LAZY to avoid incorrect symbol binding when using nested
5943         shared libraries on Solaris.
5944
5945 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5946
5947         * fileio.c (Ffind_file_name_handler): Improve docstring.
5948
5949 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5950
5951         * fns.c (Fmapconcat): Improve docstring.
5952
5953 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5954
5955         * device-gtk.c: Add prototype for
5956         emacs_gtk_selection_clear_event_handle.
5957         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5958         selection.  Setup signal handler for "selection_clear_event"
5959         (emacs_gtk_selection_clear_event_handle).
5960
5961         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5962         other applications owning the clipboard (based on
5963         x_handle_selection_clear).
5964
5965 2001-12-23  William M. Perry  <wmperry@gnu.org>
5966
5967         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5968         
5969 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5970
5971         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5972
5973 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5974
5975         * XEmacs 21.4.6 "Common Lisp" is released.
5976
5977 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5978
5979         * search.c (Freplace_match): Add missing sub-expression functionality.
5980
5981         * buffer.c (decode_buffer): Add a check for pointer type to
5982         decode_buffer, before gcc's CSE optimization reorders a
5983         dereference in front of the allow_string test.
5984
5985 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5986
5987         * window.c (window_loop): Fix bug that sometimes prevented
5988         window_loop() from iterating across multiple devices.  Also, at
5989         Ben's request, changed infloop-detecting code to abort() instead
5990         of silently terminating window_loop().
5991
5992 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5993
5994         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5995         * editfns.c (make_time): New function.
5996         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5997         * lisp.h (make_time): Prototype and comment it.
5998         * dired.c (wasteful_word_to_lisp): Deprecate.
5999         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6000
6001 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6002
6003         * fileio.c (auto_save_1): Use current coding system, not
6004         escape-quoted.
6005
6006 2001-11-13  Ben Wing  <ben@xemacs.org>
6007
6008         * window.c:
6009         * window.c (window_truncation_on):
6010         * window.c (syms_of_window):
6011         truncate-partial-width-windows should respect the buffer being
6012         displayed, like other redisplay vars.
6013
6014 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6015
6016         * event-stream.c (Fread_key_sequence): save current buffer.
6017
6018 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6019
6020         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6021
6022 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6023
6024         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6025
6026 2001-10-26  Mike Alexander  <mta@arbortext.com>
6027
6028         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6029
6030 2001-10-25  Andy Piper  <andy@xemacs.org>
6031
6032         * ChangeLog:
6033         * dialog-msw.c (handle_directory_proc): new function.
6034          (handle_directory_dialog_box): new fucntion.
6035          (handle_file_dialog_box): use new directory dialog support.
6036          (mswindows_make_dialog_box_internal): ditto.
6037         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6038         handling.
6039         (mswindows_find_frame): make global.
6040         * fileio.c (Fexpand_file_name): build fix.
6041         * general-slots.h: add Qdirectory.
6042         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6043         handling.
6044         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6045         cygwin not leaving win32 paths unchanged.
6046         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6047         cygwin runtime to do path conversion.
6048         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6049         (syms_of_win32): add new function.
6050         * window.c (window_loop): build fix.
6051
6052 2001-10-15  Andy Piper  <andy@xemacs.org>
6053
6054         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6055
6056 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6057
6058         * XEmacs 21.4.5 "Civil Service" is released.
6059
6060 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6061
6062         * glyphs-x.c: Force buffer-tab highlight update when moving the
6063         buffer, avoiding an ugly black border, used for keyboard focus
6064         indication, on a widget that can never have keyboard focus, the
6065         buffer tab.
6066
6067 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6068
6069         * process-unix.c (unix_open_multicast_group): Remove too much
6070         conversion between host and network byte order.
6071
6072 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6073
6074         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6075         before replacing them.
6076
6077         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6078         operation.
6079
6080         * src/window.c (undedicate_windows): Use it.
6081         * src/window.h: Add prototype.
6082
6083 2001-09-17  Ben Wing  <ben@xemacs.org>
6084
6085         * fileio.c (normalize_filename):
6086         * fileio.c (Fexpand_file_name):
6087         Fix various C++ compile errors in Andy's recent code.
6088         
6089         * callint.c (Fcall_interactively):
6090         * editfns.c (Ftemp_directory):
6091         * editfns.c (Fuser_full_name):
6092         * emacs.c (argmatch):
6093         * lread.c (locate_file_map_suffixes):
6094         * redisplay-x.c (x_ring_bell):
6095         Fix sign-compare warnings.
6096         
6097 2001-09-08  Andy Piper  <andy@xemacs.org>
6098
6099         * fileio.c (normalize_filename): copied from nt.c
6100         * (Ffile_name_directory): enable win32 paths under cygwin.
6101         * (Ffile_name_nondirectory): ditto.
6102         * (directory_file_name): ditto.
6103         * (Fexpand_file_name): ditto.
6104         * (Ffile_truename): ditto.
6105         * (Fsubstitute_in_file_name): ditto.
6106         * (Ffile_name_absolute_p): ditto.
6107         * (Ffile_readable_p): ditto.
6108
6109 2001-09-08  Andy Piper  <andy@xemacs.org>
6110
6111         * device-msw.c (mswindows_finish_init_device): remove dde
6112         initialization.
6113         * device-msw.c (mswindows_init_dde): factor out from
6114         mswindows_finish_init_device()
6115         * device-msw.c (init_mswindows_very_early): new function
6116         initialize but don't enable dde.
6117         * emacs.c (main_1): call init_mswindows_very_early.
6118         * event-msw.c:
6119         * event-msw.c (mswindows_dde_callback): only execute when we are
6120         ready.
6121         * symsinit.h: declare init_mswindows_very_early.
6122
6123 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6124
6125         [sjt: This has been in 21.5 for months with no complaints.]
6126
6127         * console.h (struct console_methods): Added flags member.
6128         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6129         (CONMETH_IMPL_FLAG):
6130         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6131         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6132
6133         * device.c (window_system_pixelated_geometry): Use the above macros.
6134
6135         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6136         implememntation flag.
6137         * device.h (DEVICE_DISPLAY_P): Use it.
6138
6139         * frame.c (delete_frame_internal): Use the above macro.
6140
6141         * redisplay.c (redisplay_device): Use it.
6142         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6143         (redisplay_frame): Ditto.
6144
6145         * device-msw.c (mswindows_device_implementation_flags): Removed.
6146         (msprinter_device_implementation_flags): Removed.
6147         (console_type_create_device_mswindows): Removed references to
6148         implementation_flags methods, set implementation flags here.
6149         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6150
6151         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6152         (console_type_create_device_gtk): Removed method declaration.
6153         Added commented out statement which semantically matches the
6154         commented out statement in the above removed method.
6155
6156 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6157
6158         The attached patch fixes a few warnings. 
6159
6160         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6161         * src/frame-gtk.c: guard against GNOME calls in GTK only
6162         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6163         * src/select-gtk.c: prototype lisp_to_time
6164
6165 2001-06-08  Ben Wing  <ben@xemacs.org>
6166
6167         ------ gc-in-window-procedure fixes ------
6168         
6169         * alloc.c:
6170         * alloc.c (struct post_gc_action):
6171         * alloc.c (register_post_gc_action):
6172         * alloc.c (run_post_gc_actions):
6173         * alloc.c (garbage_collect_1):
6174         Create "post-gc actions", to avoid those dreaded "GC during window
6175         procedure" problems.
6176
6177         * event-msw.c:
6178         Abort, clean and simple, when GC in window procedure.  We want
6179         to flush these puppies out.
6180
6181         * glyphs-msw.c:
6182         * glyphs-msw.c (finalize_destroy_window):
6183         * glyphs-msw.c (mswindows_finalize_image_instance):
6184         Use a post-gc action when destroying subwindows.
6185
6186         * lisp.h:
6187         Declare register_post_gc_action().
6188
6189         * scrollbar-msw.c:
6190         * scrollbar-msw.c (unshow_that_mofo):
6191         Use a post-gc action when unshowing scrollbar windows, if in gc.
6192
6193         * redisplay.c (mark_redisplay):
6194         Add comment about the utter evilness of what's going down here.
6195
6196         ------ cygwin setitimer fixes ------
6197         
6198         * Makefile.in.in (sheap_objs):
6199         * Makefile.in.in (profile_objs):
6200         * Makefile.in.in (objs):
6201         Compile profile.c only when HAVE_SETITIMER.
6202         
6203         * nt.c (mswindows_sigset):
6204         * nt.c (mswindows_sighold):
6205         * nt.c (mswindows_sigrelse):
6206         * nt.c (mswindows_sigpause):
6207         * nt.c (mswindows_raise):
6208         * nt.c (close_file_data):
6209         Style fixes.
6210         
6211         * nt.c:
6212         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6213         
6214         * profile.c:
6215         * profile.c (Fstart_profiling):
6216         * profile.c (Fstop_profiling):
6217         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6218         instead of just plain setitimer().
6219         
6220         * signal.c:
6221         * signal.c (set_one_shot_timer):
6222         * signal.c (alarm):
6223         Define qxe_setitimer() as an encapsulation around setitimer() --
6224         call setitimer() directly unless Cygwin or MS Win, in which case
6225         we use our simulated version in win32.c.
6226         
6227         * systime.h:
6228         * systime.h (struct itimerval):
6229         * systime.h (ITIMER_REAL):
6230         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6231         comment about "qxe" and the policy regarding encapsulation.
6232
6233         * win32.c:
6234         * win32.c (setitimer_helper_proc):
6235         * win32.c (setitimer_helper_period):
6236         * win32.c (setitimer_helper):
6237         * win32.c (mswindows_setitimer):
6238         Move setitimer() emulation here, so Cygwin can use it.
6239         Rename a couple of functions and variables to be longer and more
6240         descriptive.  In setitimer_helper_proc(), send the signal
6241         using either mswindows_raise() or (on Cygwin) kill().  If for
6242         some reason we are still getting lockups, we'll change the kill()
6243         to directly invoke the signal handlers.
6244
6245         ------ windows shell fixes ------
6246         
6247         * callproc.c:
6248         * ntproc.c:
6249         Comments about how these two files must die.
6250
6251         * callproc.c (init_callproc):
6252         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6253         not just COMSPEC. (more correct and closer to FSF.) Don't
6254         force a value for SHELL into the environment. (Comments added
6255         to explain why not.)
6256         
6257         * nt.c (init_user_info):
6258         Don't shove a fabricated SHELL into the environment.  See above.
6259
6260 2001-06-01  Ben Wing  <ben@xemacs.org>
6261
6262         * Makefile.in.in (ldflags):
6263         eliminate that pesky "defaulting to 00401000" warning.
6264         * nt.h:
6265         eliminate warnings.
6266
6267 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6268
6269         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6270         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6271
6272 2001-04-24  Jerry James <james@xemacs.org>
6273
6274         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6275         correct order.
6276
6277 2001-06-01  Ben Wing  <ben@xemacs.org>
6278
6279         * event-msw.c (debug_mswin_messages):
6280         conditionalize the messages that were causing compile errors.
6281         (if only macros could generate #ifdef statements ...)
6282
6283 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6284
6285         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6286
6287 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6288
6289         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6290
6291 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6292
6293         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6294         * process-unix.c (unix_canonicalize_host_name):
6295         sysdep.c (init_system_name):
6296         Use it to conditionally support IPv6 canonicalization.
6297
6298 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6299
6300         * event-msw.c:
6301         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6302
6303 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6304
6305         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6306         attempt is made to scroll when no scroll bar is available.
6307
6308 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6309
6310         * input-method-motif.c (XIM_delete_frame): New callback.
6311         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6312         got deleted from 21.4.3.)
6313
6314 2001-06-01  Ben Wing  <ben@xemacs.org>
6315
6316         * nt.c (mswindows_utime):
6317         * nt.c (close_file_data):
6318         fix off-by-one-indirection error.
6319
6320 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6321
6322         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6323         because set_file_times() now takes Lisp_Object path, instead of
6324         char*.
6325         * nt.c: Include buffer.h.
6326         * nt.c (convert_from_time_t): New.
6327         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6328         not set mtime correctly.
6329         * nt.h: Declare mswindows_utime().
6330         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6331         path, instead of char*.
6332         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6333
6334 2001-05-30  Ben Wing  <ben@xemacs.org>
6335
6336         For 21.4:
6337
6338         (Stephen, just take all event-msw.c patches.  This includes
6339         the "iconify" fix below.)
6340
6341         * event-msw.c:
6342         * event-msw.c (mswindows_dequeue_dispatch_event):
6343         * event-msw.c (assert):
6344         * event-msw.c (emacs_mswindows_quit_p):
6345         * event-msw.c (debug_mswin_messages):
6346         * event-msw.c (debug_output_mswin_message):
6347         * event-msw.c (vars_of_event_mswindows):
6348         Fix yet more problems with C-g handling.
6349         Implement debug-mswindows-events.
6350         
6351 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6352
6353         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6354         
6355 2001-05-23  Ben Wing  <ben@xemacs.org>
6356
6357         * event-msw.c (winsock_writer):
6358         * event-msw.c (winsock_closer):
6359         prior kludgy code was clobbering the buffer, thinking it was
6360         "unused" space to store an unneeded return value; instead, use
6361         the variable we've already got staring us in the face.
6362
6363 2001-05-17  Andy Piper  <andy@xemacs.org>
6364
6365         * sysfile.h: don't assume that file attributes are boolean
6366
6367 2001-05-23  Ben Wing  <ben@xemacs.org>
6368
6369         * device-msw.c (msprinter_init_device):
6370         signal an error rather than crash with an unavailable network
6371         printer (from Mike Alexander).
6372         
6373         * event-msw.c:
6374         * event-msw.c (struct winsock_stream):
6375         * event-msw.c (winsock_writer):
6376         * event-msw.c (winsock_closer):
6377         * event-msw.c (make_winsock_stream_1):
6378         cleanup headers.  fix (hopefully) an error with data corruption
6379         when sending to a network connection.
6380
6381         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6382         to handle the ~user prefix by (a) always assuming we're referencing
6383         ourselves and not even verifying the user -- hence any file with
6384         a tilde as its first char is invalid! (b) if there wasn't a slash
6385         following the filename, the pointer was set *past* the end of
6386         file and we started reading from uninitialized memory.  Now we
6387         simply treat these as files, always.
6388
6389         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6390         
6391 2001-05-19  Ben Wing  <ben@xemacs.org>
6392
6393         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6394
6395         * process-nt.c:
6396         * process-nt.c (vars_of_process_nt):
6397         remove unused mswindows-quote-process-args.  rec for 21.4.
6398         
6399 2001-05-12  Ben Wing  <ben@xemacs.org>
6400
6401         * event-msw.c (mswindows_dde_callback):
6402         * event-msw.c (mswindows_wnd_proc):
6403         eliminate cygwin warnings.
6404
6405 2001-05-06  Ben Wing  <ben@xemacs.org>
6406
6407         * console-msw.h:
6408         * device-msw.c:
6409         * device-msw.c (print_dialog_worker):
6410         * device-msw.c (mswindows_handle_print_dialog_box):
6411         * device-msw.c (syms_of_device_mswindows):
6412         * dialog-msw.c (mswindows_make_dialog_box_internal):
6413         * general-slots.h:
6414         implement printing the selection when it's selected.
6415
6416 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6417
6418         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6419
6420 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6421
6422         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6423         EMACS_INT is signed.
6424
6425 2001-04-15  Michael Lausch  <mla@1012surf.net>
6426
6427         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6428         gtk_widget_request_size() to give scrollbar >0 width for
6429         GTK >1.2.8.
6430
6431 2001-05-30  William M. Perry  <wmperry@gnu.org>
6432
6433         * event-gtk.c: Check for buttons as modifier keys.
6434
6435 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6436
6437         * s\mingw32.h:
6438         Properly find MinGW's <process.h> inside Cygwin's restructured
6439         include directories.  Don't try to include <cygwin/version.h>
6440         since we are dropping support for MinGW in versions of Cygwin
6441         earlier than b21.
6442         * nt.c:
6443         Drop support for MinGW in versions of Cygwin before b21.
6444         * sysdep.c:
6445         Properly find MinGW's <process.h> inside Cygwin's restructured
6446         include directories.
6447         * syswindows.h:
6448         Drop support for MinGW in versions of Cygwin before b21.
6449         * unexcw.c:
6450         Even though a.out.h is no longer detected by configure, allow
6451         MinGW to use it until we figure out how to do the job with Win32.
6452
6453 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6454
6455         * syntax.c (find_start_of_comment):
6456         Fix `unbalanced parentheses' bug when dealing with mixed comment
6457         styles in c++/java/etc. mode
6458
6459 2001-05-29  Mike Alexander  <mta@arbortext.com>
6460
6461         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6462         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6463
6464 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6465
6466         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6467
6468 2001-03-31  Mike Sperber <mike@xemacs.org>
6469
6470         * search.c (Freplace_match): Support FSF-style specification of
6471         match subexpression when applied to a buffer.
6472
6473 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6474
6475         * event-stream.c (is_scrollbar_event): add missing semicolon
6476
6477 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6478
6479         * Makefile.in.in: Use TAR macro instead of hardcoding
6480           tar.  Allows use of GNU tar instead of system tar
6481
6482 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6483
6484         * event-stream.c (is_scrollbar_event): add missing semicolon
6485
6486 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6487
6488         * XEmacs 21.4.3 "Academic Rigor" is released.
6489
6490 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6491
6492         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6493
6494 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6495
6496         * buffer.c (Vcase_fold_search): Remove obsolete
6497           comment about non ASCII case-fold-search.  This
6498           bug has been fixed by case-table changes.
6499
6500 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6501
6502         * event-msw.c: Restore include of events-mod.h.
6503
6504 2001-04-22   zhaoway  <zw@debian.org>
6505
6506         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6507         !HAVE_SCROLLBARS.
6508
6509 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6510
6511         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6512
6513 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6514
6515         * mule-charset.c (Fmake_charset): Add missing else.
6516
6517 2001-04-23  Ben Wing  <ben@xemacs.org>
6518
6519         * event-msw.c (FAKE_MOD_QUIT):
6520         * event-msw.c (mswindows_dequeue_dispatch_event):
6521         * event-msw.c (mswindows_wnd_proc):
6522         * event-msw.c (emacs_mswindows_quit_p):
6523         Get critical quit working.
6524
6525 2001-05-05  Ben Wing  <ben@xemacs.org>
6526
6527         * console-msw.h:
6528         * device-msw.c:
6529         * device-msw.c (mswindows_get_default_margin):
6530         * frame-msw.c (mswindows_size_frame_internal):
6531         * frame-msw.c (msprinter_init_frame_1):
6532         * frame-msw.c (vars_of_frame_mswindows):
6533         Change top/bottom margin defaults to 0.5 inches.
6534
6535 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6536
6537         Fix link error with gcc 3.0 on Linux.
6538         * terminfo.c (UP): Remove.
6539         * terminfo.c (BC): Remove.
6540         * terminfo.c (PC): Remove.
6541         They weren't used, and in any case, these symbols should be
6542         defined in the *library*.
6543
6544 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6545
6546         * s/aix4.h: Fix crash with xlc -O3.
6547         Improve comment explaining how -O3 works.
6548
6549 2001-04-15  Ben Wing  <ben@xemacs.org>
6550
6551         * event-stream.c:
6552         * event-stream.c (Fnext_event):
6553         * event-stream.c (is_scrollbar_event):
6554         * event-stream.c (execute_command_event):
6555         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6556         crash' problem.  His fix introduces other problems.  We filter
6557         out scrollbar events specifically, making them somewhat invisible
6558         to command-building, and not appearing in `this-command-keys'.
6559         More work is still needed (see comments in event-stream.c), but
6560         this fixes all the major problems.
6561
6562 2001-04-20  Ben Wing  <ben@xemacs.org>
6563
6564         * .cvsignore: Added stuff for Windows.
6565
6566 2001-04-28  Ben Wing  <ben@xemacs.org>
6567
6568         * buffer.c (Ferase_buffer):
6569         * editfns.c (buffer_insert1):
6570         * editfns.c (Finsert_before_markers):
6571         * editfns.c (Finsert_string):
6572         * editfns.c (Finsert_char):
6573         * editfns.c (Fdelete_region):
6574         * editfns.c (Fwiden):
6575         * editfns.c (Fnarrow_to_region):
6576         remove bogus lines setting zmacs_region_stays to 0.
6577         
6578 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6579
6580         * process-unix.c (unix_open_network_stream): If connect() fails
6581         invalidate file descriptor after closing it.
6582
6583 2001-03-08  Mike Alexander  <mta@arbortext.com>
6584
6585         * event-msw.c (mswindows_need_event_in_modal_loop):
6586         Don't dispatch a message if we didn't get one.
6587         (mswindows_need_event):
6588         Terminate the correct process when one exits instead of the first
6589         one on Vprocess_list and look for process termination when in
6590         mswindows_protect_modal_loop.
6591
6592 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6593
6594         * XEmacs 21.4.1 "Copyleft" is released.
6595
6596 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6597
6598         * input-method-motif.c (XIM_delete_frame): New callback.
6599         (XIM_init_frame): Register it.
6600
6601 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6602
6603         * XEmacs 21.4.0 "Solid Vapor" is released.
6604
6605 2001-04-15  Ben Wing  <ben@xemacs.org>
6606
6607         * cmdloop.c (call_command_loop):
6608         Fix braino in bit-rotting code.
6609         
6610 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6611
6612         * extents.c (Fset_extent_endpoints): Force creation of extent info
6613         in buffer_or_string.
6614
6615         * extents.c (process_extents_for_insertion_mapper): Correctly
6616         check for open-open zero-length extents.
6617
6618 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6619
6620         * lisp.h: New typedefs Memory_count, Element_count.
6621         * regex.c:
6622         * regex.h:
6623         Sign-compare warning elimination: several unsigned -> signed.
6624         Based on work by Ben Wing <ben@xemacs.org>.
6625
6626 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6627
6628         * XEmacs 21.2.47 "Zephir" is released.
6629
6630 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6631
6632         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6633
6634 2001-04-03  Mike Sperber <mike@xemacs.org>
6635
6636         * search.c: Revert previous patch due because of release.
6637
6638 2001-03-30  Ben Wing  <ben@xemacs.org>
6639
6640         * s\cygwin32.h:
6641         Add missing killpg prototype.
6642
6643         * elhash.c:
6644         Add a comment about fixing problems when a new entry is added
6645         while mapping.
6646
6647         * frame-msw.c (mswindows_init_frame_1):
6648         Fix compile warnings.
6649
6650         * menubar.c (vars_of_menubar):
6651         Provide `menu-accelerator-support' to indicate that we properly
6652         support %_ in menu specifications, so that package code can
6653         conditionalize on this (and remove %_ from menu specifications
6654         on older versions).
6655
6656         * event-msw.c:
6657         * scrollbar-msw.c:
6658         * scrollbar-msw.c (can_scroll):
6659         * scrollbar-msw.h:
6660         Fix handling of mouse wheel under Windows to follow standards --
6661         now scrolls window under pointer, not selected window.
6662
6663 2001-03-31  Mike Sperber <mike@xemacs.org>
6664
6665         * search.c (Freplace_match): Support FSF-style specification of
6666         match subexpression when applied to a buffer.
6667
6668 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6669
6670         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6671         function to modify KEYMAP, so map over a copy of the hash table.
6672
6673 2001-03-21  Martin Buchholz <martin@xemacs.org>
6674
6675         * XEmacs 21.2.46 "Urania" is released.
6676
6677 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6678
6679         * realpath.c (xrealpath): Make file-truename work with symlinks to
6680         /cygdrive paths on cygwin. Always lowercase drive-letters on
6681         native windows.
6682         (cygwin_readlink): Don't try to find canonical filename unless
6683         file exists.
6684
6685 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6686
6687         * ChangeLog: Log GTK merge.
6688
6689         * dumper.c:
6690         * select-x.c:
6691         * specifier.c:
6692         * symeval.h:
6693         Revert gratuitous whitespace changes from GTK merge.
6694
6695         * emacs.c: Document end of complex #ifdef @ l. 1495.
6696
6697
6698 2001-03-12  Andy Piper  <andy@xemacs.org>
6699
6700         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6701         have to do likewise.
6702
6703 2001-03-12  Andy Piper  <andy@xemacs.org>
6704
6705         * sysdep.c: we only support mingw now.
6706
6707 2001-03-09  Andy Piper  <andy@xemacs.org>
6708
6709         * unexcw.c (copy_executable_and_dump_data_section): making approx
6710         overrun a warning only.
6711
6712 2001-03-10  William M. Perry  <wmperry@aventail.com>
6713
6714         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6715         satisfy Stephen's identical-after-cpp plea.
6716
6717 2001-03-02  Ben Wing  <ben@xemacs.org>
6718
6719         * cmds.c:
6720         * cmds.c (Fforward_char):
6721         * syntax.c:
6722         * window.c:
6723
6724         Augment documentation of the most common motion commands to make
6725         note of the shifted-motion support.
6726         
6727 2001-03-02  Ben Wing  <ben@xemacs.org>
6728
6729         * nt.c (mswindows_fstat):
6730         * nt.c (mswindows_stat):
6731         * search.c (boyer_moore):
6732         Fix compile warnings under Windows.
6733         
6734         * sysdep.c (sys_readdir):
6735         Fix buggy filename-conversion code under Mule.
6736
6737 2001-03-09  William M. Perry  <wmperry@aventail.com>
6738
6739         * Makefile.in.in:
6740         * config.h.in:
6741         * console.c:
6742         * console.h:
6743         * device.c:
6744         * device.h:
6745         * dragdrop.c:
6746         * emacs.c:
6747         * event-stream.c:
6748         * events.c:
6749         * events.h:
6750         * faces.c:
6751         * frame.h:
6752         * general-slots.h:
6753         * glyphs.c:
6754         * gutter.c:
6755         * inline.c:
6756         * lisp.h:
6757         * lrecord.h:
6758         * make-src-depend:
6759         * redisplay-output.c:
6760         * redisplay.c:
6761         * symsinit.h:
6762         * sysfile.h:
6763         * toolbar.c:
6764         * window.c:
6765         The Great GTK Merge.
6766
6767         * ChangeLog.GTK:
6768         * console-gtk.c:
6769         * console-gtk.h:
6770         * device-gtk.c:
6771         * emacs-marshals.c:
6772         * emacs-widget-accessors.c:
6773         * event-gtk.c:
6774         * frame-gtk.c:
6775         * gccache-gtk.c:
6776         * gccache-gtk.h:
6777         * glade.c:
6778         * glyphs-gtk.c:
6779         * glyphs-gtk.h:
6780         * gtk-glue.c:
6781         * gtk-xemacs.c:
6782         * gtk-xemacs.h:
6783         * gui-gtk.c:
6784         * gui-gtk.h:
6785         * menubar-gtk.c:
6786         * native-gtk-toolbar.c:
6787         * objects-gtk.c:
6788         * objects-gtk.h:
6789         * redisplay-gtk.c:
6790         * scrollbar-gtk.c:
6791         * scrollbar-gtk.h:
6792         * select-gtk.c:
6793         * toolbar-gtk.c:
6794         * ui-byhand.c:
6795         * ui-gtk.c:
6796         * ui-gtk.h:
6797         The Great GTK Merge: new files.
6798
6799 2001-02-26  Ben Wing  <ben@xemacs.org>
6800
6801         Reapplied Lstream change.
6802
6803 2001-02-26  Ben Wing  <ben@xemacs.org>
6804
6805         Undid the last change, since it is more controversial than I
6806         thought.  It should be back in at some point soon.
6807         
6808 2001-02-25  Ben Wing  <ben@xemacs.org>
6809
6810         * buffer.c:
6811         * callproc.c (Fold_call_process_internal):
6812         * event-msw.c (ntpipe_slurp_reader):
6813         * event-msw.c (ntpipe_shove_writer):
6814         * event-msw.c (winsock_reader):
6815         * event-msw.c (winsock_writer):
6816         * file-coding.c:
6817         * file-coding.c (detect_eol_type):
6818         * file-coding.c (detect_coding_type):
6819         * file-coding.c (determine_real_coding_system):
6820         * file-coding.c (Fdetect_coding_region):
6821         * file-coding.c (decoding_reader):
6822         * file-coding.c (decoding_writer):
6823         * file-coding.c (mule_decode):
6824         * file-coding.c (Fdecode_coding_region):
6825         * file-coding.c (encoding_reader):
6826         * file-coding.c (encoding_writer):
6827         * file-coding.c (mule_encode):
6828         * file-coding.c (Fencode_coding_region):
6829         * file-coding.c (detect_coding_sjis):
6830         * file-coding.c (decode_coding_sjis):
6831         * file-coding.c (encode_coding_sjis):
6832         * file-coding.c (detect_coding_big5):
6833         * file-coding.c (decode_coding_big5):
6834         * file-coding.c (encode_coding_big5):
6835         * file-coding.c (detect_coding_ucs4):
6836         * file-coding.c (decode_coding_ucs4):
6837         * file-coding.c (encode_coding_ucs4):
6838         * file-coding.c (detect_coding_utf8):
6839         * file-coding.c (decode_coding_utf8):
6840         * file-coding.c (encode_coding_utf8):
6841         * file-coding.c (detect_coding_iso2022):
6842         * file-coding.c (decode_coding_iso2022):
6843         * file-coding.c (encode_coding_iso2022):
6844         * file-coding.c (decode_coding_no_conversion):
6845         * file-coding.c (encode_coding_no_conversion):
6846         * glyphs-x.c (write_lisp_string_to_temp_file):
6847         * gpmevent.c (tty_get_foreign_selection):
6848         * lisp.h:
6849         * lstream.c:
6850         * lstream.c (Lstream_flush_out):
6851         * lstream.c (Lstream_adding):
6852         * lstream.c (Lstream_write_1):
6853         * lstream.c (Lstream_write):
6854         * lstream.c (Lstream_raw_read):
6855         * lstream.c (Lstream_read_more):
6856         * lstream.c (Lstream_read):
6857         * lstream.c (Lstream_unread):
6858         * lstream.c (Lstream_fputc):
6859         * lstream.c (stdio_reader):
6860         * lstream.c (stdio_writer):
6861         * lstream.c (filedesc_reader):
6862         * lstream.c (filedesc_writer):
6863         * lstream.c (lisp_string_reader):
6864         * lstream.c (struct fixed_buffer_stream):
6865         * lstream.c (make_fixed_buffer_input_stream):
6866         * lstream.c (make_fixed_buffer_output_stream):
6867         * lstream.c (fixed_buffer_reader):
6868         * lstream.c (fixed_buffer_writer):
6869         * lstream.c (struct resizing_buffer_stream):
6870         * lstream.c (resizing_buffer_writer):
6871         * lstream.c (dynarr_writer):
6872         * lstream.c (lisp_buffer_reader):
6873         * lstream.c (lisp_buffer_writer):
6874         * lstream.h:
6875         * lstream.h (lstream_implementation):
6876         * lstream.h (struct lstream):
6877         * md5.c (Fmd5):
6878         * process-nt.c (nt_send_process):
6879         * process-unix.c (unix_send_process):
6880         
6881         Correct Lstream lossage due to mixing of signed and unsigned
6882         quantities.  All Lstream uses of size_t and ssize_t are now a
6883         single signed data type Lstream_data_count.  This fixes problems
6884         under Windows with sending large quantities of data to a process,
6885         and may well fix other subtle bugs.
6886
6887 2001-02-23  Martin Buchholz <martin@xemacs.org>
6888
6889         * XEmacs 21.2.45 "Thelxepeia" is released.
6890
6891 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6892
6893         * lisp-union.h (XSETINT): 
6894         (XSETCHAR):
6895         (XSETOBJ): 
6896         Reverse previous change of 2001-02-06.
6897
6898 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6899
6900         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6901         buffers.
6902         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6903         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6904         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6905         * regex.c (POS_AS_IN_BUFFER): removed
6906         * regex.c (re_search_2):
6907         * regex.c (re_match_2):
6908         Don't use an offset of 1 when calculating buffer positions, since
6909         `BI_BUF_BEGV' does it already.
6910
6911 2001-02-18  Wim Dumon  <wim@easics.be>
6912
6913         * insdel.c (prepare_to_modify_buffer): Also check for
6914         supersession when clash-detection is enabled. 
6915
6916 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6917
6918         * regex.c (re_match_2_internal):
6919         Convert temp characters from 'const unsigned char' to 're_char'.
6920         Fix crashing bug with extended characters under mule.
6921         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6922         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6923         font-lock, pdump, and new syntax-table code.
6924         * syntax.c (find_start_of_comment):
6925         (find_end_of_comment):
6926         (forward-comment):
6927         Fix crashing bugs involving moving beyond end of buffer.
6928         * syntax.c (find_start_of_comment):
6929         Fixed logic to allow proper detection of cases where the same
6930         character is used to end both a two-char comment start and a
6931         two-char comment end sequence. Fixes `(forward-comment -1)'.
6932         * syntax.c (find_start_of_comment):
6933         Return position just past last comment-end character for all cases
6934         (previously was only done for two-char comment-end sequences).
6935         * syntax.c (forward-comment):
6936         Take value returned from `find_end_of_comment', rather than
6937         incrementing it.
6938         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6939         Properly deal with BUFFERP (syntax_cache.object)
6940
6941 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6942
6943         * alloc.c (Fgarbage_collect): 
6944         * alloc.c (make_bit_vector_from_byte_vector):
6945         -Wsign-compare-correctness.
6946
6947 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6948
6949         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6950         (XSETCHAR): Likewise.
6951         (XSETOBJ): Likewise.
6952
6953 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6954
6955         * mule-canna.c (canna-func-delete_previous): 
6956         Rename to canna-func-delete-previous.
6957
6958 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6959
6960         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6961
6962 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6963
6964         * font-lock.c (find_context): Fix C++ compile errors introduced by
6965         recent patch
6966
6967 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6968
6969         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6970         pragma, but earlier ones barf on the same pragma.
6971
6972 2001-02-06  Mike Sperber <mike@xemacs.org>
6973
6974         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6975         `configure-mule-lisp-directory'.
6976
6977 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6978
6979         Make sure dump-id.c is compiled in the same way as other .c's.
6980         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6981         * dump-id.h: Remove.
6982         * emacs.c: Move dump-id.h into dumper.h.
6983         * dumper.h: Move dump-id.h into dumper.h.
6984         * Makefile.in.in:
6985         Use standard .c.o rule for building dump-id.o.
6986         Remove preprocessor flags from link command.
6987         Add dump-id.o to ${otherobjs} if PDUMP.
6988
6989 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6990
6991         Port FSF 20.7 syntax table improvements.
6992         * syntax.c.
6993         * syntax.h.
6994
6995         Fixups for new syntax table stuff.
6996         * dired.c: Include syntax.c.
6997         (Fdirectory_files): Initialize regex_match_object and
6998         regex_emacs_buffer.
6999         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7000         and Fget_char_property.
7001
7002         Use ported FSF 20.7 syntax table improvements.
7003         * font-lock.c.
7004         * regex.c.
7005         * search.c.
7006         
7007 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7008
7009         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7010         Unixware's enum boolean from sys/types.h.
7011
7012 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7013
7014         Fix support for building with latest Purify.
7015         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7016         (PURIFY_FLAGS): Likewise.
7017
7018 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7019
7020         * fileio.c (lisp_string_set_file_times): New.
7021         * fileio.c (Fcopy_file): Use it.
7022         Fixes bug:
7023         (copy-file filename non-ascii-filename t t)
7024         ==> No such file or directory, non-ascii-filename
7025
7026 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7027
7028         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7029         USHRT_MAX seems clearer than ~0 anyways.
7030
7031 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7032
7033         dumper improvements.  Inspired by Olivier.
7034         * dumper.c (pdump_max_align): New.
7035         * dumper.c (pdump_add_entry): Use pdump_max_align.
7036         * dumper.c (pdump_get_entry_list): Likewise.
7037         * dumper.c (pdump_scan_by_alignment): Likewise.
7038         Don't iterate through unnecessary alignments.
7039         * dumper.c (pdump_file_get): No need to align result of malloc().
7040         * dumper.c (pdump_mallocadr): Remove.  
7041         The result of malloc() is guaranteed to be maximally aligned.
7042         * dumper.c: s/elmt/elt/g;
7043         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7044         * dumper.c (pdump_alert_undump_object): Likewise.
7045         * dumper.c (pdump_align_table): 
7046         Don't support alignments > 64.
7047         Store ALIGNOF's, not shift counts, in table.
7048
7049 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7050
7051         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7052         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7053         * systime.h: Use HAVE_UTIME.
7054         * sysdep.c (struct utimbuf): Remove.
7055         * sysdep.c (set_file_times): Prefer utime() to utimes().
7056         * config.h.in (HAVE_UTIME): New.
7057         * config.h.in (HAVE_UTIME_H): Remove.
7058         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7059
7060 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7061
7062         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7063
7064 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7065
7066         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7067
7068 2001-02-08  Martin Buchholz <martin@xemacs.org>
7069
7070         * XEmacs 21.2.44 "Thalia" is released.
7071
7072 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7073
7074         Fixes crashes in kill-emacs on some systems.
7075         * process-unix.c (unix_kill_child_process):
7076         It's OK for kill() to fail with ESRCH.
7077
7078 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7079
7080         Contortions to make .gdbinit tricks work on most systems.
7081         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7082         * alloc.c (dbg_valmask): Make non-const.
7083         * alloc.c (dbg_typemask): Make non-const.
7084         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7085         * alloc.c (dbg_valbits): Make non-const.
7086         * alloc.c (dbg_gctypebits): Make non-const.
7087         * .gdbinit (decode_object): Make it work with AIX cc.
7088
7089 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7090
7091         * elhash.c (make_general_lisp_hash_table):
7092         Use simpler and more efficient calloc to clear entries.
7093
7094 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7095
7096         * window.c (window_scroll): Work around an AIX C compiler bug.
7097         Fixes 'scroll-up' does nothing problem with xlC.
7098
7099 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7100
7101         * .gdbinit: Remove obsolete comment.
7102
7103 2001-01-31  Mike Alexander  <mta@arbortext.com>
7104
7105         * select.c (Fown_selection_internal): Set owned_p for device
7106         method correctly.
7107
7108 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7109
7110         Port to g++ 2.97.
7111         "not" cannot be used as a macro name as it is an operator in C++
7112         * config.h.in: Stop #defining `not'.
7113         * chartab.c (check_category_char): not ==> not_p
7114         * chartab.h: Likewise.
7115         * regex.c (re_match_2_internal): Likewise.
7116
7117 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7118
7119         * lisp-disunion.h: Fix up comments.
7120
7121 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7122
7123         * keymap.c (define_key_check_and_coerce_keysym):
7124         (syms_of_keymap):
7125         Support mouse-6 and mouse-7 bindings in the obvious way.
7126
7127 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7128
7129         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7130
7131 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7132
7133         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7134         Previous patch missed DEFVAR_INT_MAGIC.
7135         Make sure future DEFVAR_foo use correct types.
7136         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7137         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7138         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7139         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7140         * (DEFVAR_INT): Likewise.
7141         * redisplay.c (vertical_clip): Should be of type Fixnum.
7142         * redisplay.c (horizontal_clip): Likewise.
7143         * lisp.h (dump_add_opaque_int): New.
7144         (dump_add_opaque_fixnum): New.
7145
7146 2001-01-29  Andy Piper  <andy@xemacs.org>
7147
7148         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7149         since they can be eval'ed
7150
7151 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7152
7153         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7154         Oops, XEmacs redefines `class'.  Use `typename' instead.
7155
7156 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7157
7158         * dumper.c: Fix C++ compile errors.
7159
7160 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7161
7162         * tparam.c: Use correct prototypes.
7163
7164 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7165
7166         * sysproc.h: #include util.h for NetBSD's openpty.
7167
7168 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7169
7170         More 64-bit correctness.
7171         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7172         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7173         Fix up comments.
7174         This finally finishes the 64-bit SGI port.
7175         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7176         * symbols.c: Fix up comments and type casts.
7177         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7178         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7179         * symeval.h (Fixnum): New type.
7180         * symeval.h (symbol_value_type): Fix up comment.
7181
7182         * commands.h:
7183         * nt.c:
7184         * emacs.c:
7185         * data.c:
7186         * redisplay.c:
7187         * abbrev.c:
7188         * dired-msw.c:
7189         * event-Xt.c:
7190         * eldap.c:
7191         * window.c:
7192         * sound.c:
7193         * event-stream.c:
7194         * eval.c:
7195         * buffer.c:
7196         * mule-canna.c: A million DEFVAR_INTs here...
7197         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7198         * extents.c:
7199         * cmdloop.c:
7200         * lisp.h:
7201         * select-x.c:
7202         * console-x.h:
7203         * event-msw.c:
7204         * mule-wnnfns.c:
7205         * hpplay.c:
7206         * ralloc.c:
7207         * alloc.c:
7208         * keymap.c:
7209         * profile.c:
7210         s/int/Fixnum/g in DEFVAR_INT declarations.
7211
7212 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7213
7214         Port pdump to SGI alignment-sensitive environment.
7215         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7216         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7217         properly aligned.
7218         Define and use aligned reading and writing macros.
7219         Use buffered stdio instead of posix i/o for faster dumping.
7220         Eliminate kludgy 256 byte space for header.
7221         Read and write from dump file using structs for alignment safety.
7222         * dumper.c (pdump_align_stream): New.
7223         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7224         * dumper.c (PDUMP_READ_ALIGNED): New.
7225         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7226         * dumper.c (pdump_static_Lisp_Object): New struct.
7227         * dumper.c (pdump_static_pointer): New struct.
7228         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7229         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7230         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7231         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7232
7233         * dumper.c (pdump_backtrace):
7234         * dumper.c (pdump_get_indirect_count):
7235         * dumper.c (pdump_register_object):
7236         * dumper.c (pdump_register_struct):
7237         * dumper.c (pdump_reloc_one):
7238         * dumper.c (pdump_scan_by_alignment):
7239         * dumper.c (pdump_dump_from_root_struct_ptrs):
7240         * dumper.c (pdump_dump_opaques):
7241         * dumper.c (pdump_dump_rtables):
7242         * dumper.c (pdump_dump_from_root_objects):
7243         * dumper.c (pdump):
7244         * dumper.c (pdump_load_finish):
7245         Use aligned reading and writing.
7246
7247         * dumper.c (pdump_free): Make static.
7248         * dumper.c (pdump_hFile): Likewise.
7249         * dumper.c (pdump_hMap): Likewise.
7250
7251 2001-01-26  Martin Buchholz <martin@xemacs.org>
7252
7253         * XEmacs 21.2.43 "Terspichore" is released.
7254
7255 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7256
7257         Type fiddling for window_config.saved_windows_count
7258         * window.c (struct window_config): 
7259         Make saved_windows_count member unsigned.
7260         * window.c (sizeof_window_config_for_n_windows): 
7261         Make parameter unsigned.
7262         * window.c (mark_window_config):
7263         * window.c (window_config_equal):
7264         * window.c (free_window_configuration):
7265         * window.c (Fset_window_configuration):
7266         * window.c (count_windows):
7267         * window.c (Fcurrent_window_configuration):
7268         * window.c (reinit_vars_of_window):
7269         Update all callers and users.
7270
7271 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7272
7273         Alignment correctness for flexible arrays.
7274         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7275         Make alignment-correct. Add interesting comments.
7276         * alloc.c (size_vector):
7277         * alloc.c (make_vector_internal):
7278         * alloc.c (make_bit_vector_internal):
7279         * alloc.c (sweep_bit_vectors_1):
7280         * fns.c (size_bit_vector):
7281         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7282         * window.c (sizeof_window_config_for_n_windows): 
7283         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7284
7285 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7286
7287         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7288
7289 2001-01-23  Andy Piper  <andy@xemacs.org>
7290
7291         * select.c (Fown_selection_internal): pass owned_p
7292
7293         * select-msw.c (mswindows_own_selection): New Signature.
7294
7295         * console.h (struct console_methods): add owned_p to
7296         _own_selection.
7297
7298         * select-x.c (x_own_selection): pass owned_p
7299         (hack_motif_clipboard_selection): use owned_p
7300         (vars_of_select_x): new variable -
7301         x_selection_strict_motif_ownership.
7302
7303 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7304
7305         * specifier.h (specifier_data_offset): Remove pointless parens.
7306         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7307
7308 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7309
7310         Make Lisp_Object sizeof methods be alignment-correct.
7311         pdump must restore objects to the same alignment as the C compiler
7312         assumes.  It really matters on SGIs.
7313         * lstream.c (aligned_sizeof_lstream): New.
7314         (sizeof_lstream): Use aligned_sizeof_lstream.
7315         (Lstream_new): Likewise.
7316         * opaque.c (aligned_sizeof_opaque): New.
7317         (sizeof_opaque): Use aligned_sizeof_opaque.
7318         (make_opaque): Likewise.
7319         * specifier.c (aligned_sizeof_specifier): New.
7320         (sizeof_specifier): Use aligned_sizeof_specifier.
7321         (make_specifier_internal): Likewise.
7322
7323 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7324
7325         * lstream.h (struct lstream): Use max_align_t for trailing data.
7326         * specifier.h (struct Lisp_Specifier): Likewise.
7327
7328 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7329
7330         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7331         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7332         (CCL_SUSPEND): Likewise.
7333         (CCL_INVALID_CMD): Likewise.
7334         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7335         (ccl_driver): Likewise.
7336         (CCL_WRITE_CHAR): Macro hygiene.
7337         (CCL_WRITE_STRING): Macro hygiene.
7338
7339 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7340
7341         Port "portable" dumper to SunOS 4 and HP-UX.
7342         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7343         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7344         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7345
7346 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7347
7348         * lisp.h (ALIGNOF): A better definition for C++.
7349
7350 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7351
7352         Macro hygiene.
7353         Fix printf warnings: int format, long int arg.
7354         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7355         (PUSH_FAILURE_POINT): Use correct printf formats.
7356         (POP_FAILURE_POINT): Use correct printf formats.  
7357         Use do {...} while (0)
7358
7359 2001-01-20  Martin Buchholz <martin@xemacs.org>
7360
7361         * XEmacs 21.2.42 "Poseidon" is released.
7362
7363 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7364
7365         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7366
7367 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7368
7369         De-kludgify FIXED_TYPE free list frobbing.
7370         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7371         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7372         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7373         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7374         * alloc.c (LRECORD_FREE_P): New.
7375         * alloc.c (MARK_LRECORD_AS_FREE): New.
7376         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7377         * alloc.c (STRUCT_FREE_P): Deleted.
7378         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7379         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7380         * alloc.c (STRING_CHARS_FREE_P): New.
7381         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7382         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7383         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7384         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7385         * alloc.c (resize_string): Use new definitions.
7386         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7387         * alloc.c (verify_string_chars_integrity): Use new definitions.
7388         * alloc.c (compact_string_chars): Use new definitions.
7389         * alloc.c: Update monster comments.
7390         * lrecord.h (lrecord_type): Add some new lrecord types for
7391         alloc.c's use.
7392
7393 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7394
7395         Improve alignment hackery.
7396         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7397         (max_align_t): Moved from opaque.h - general purpose.
7398         (ALIGN_PTR): Use size_t, not long.
7399         * opaque.h (max_align_t): Move to lisp.h.
7400
7401 2001-01-18  Norbert Koch  <nk@LF.net>
7402
7403         * gui.h: Fix and add prototypes to fix build problems.
7404
7405 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7406
7407         temacs is going away, so `dump-temacs' is now a bad name.
7408         * .dbxrc (dump-temacs): Rename to `dmp'.
7409         * .gdbinit (dump-temacs): Rename to `dmp'.
7410
7411 2001-01-17  Andy Piper  <andy@xemacs.org>
7412
7413         * glyphs.c (print_image_instance): comment to make martin happy.
7414
7415         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7416         change.
7417
7418         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7419         activation.
7420         (mswindows_tab_control_redisplay): warning suppression.
7421
7422         * glyphs-widget.c (widget_update): re-write to cope with updated
7423         items.
7424         (widget_instantiate): use new gui_item functions.
7425         (tab_control_update): deleted.
7426         (progress_gauge_update): deleted.
7427         (image_instantiator_progress_guage): take out update reference.
7428         (image_instantiator_tree_view): ditto.
7429         (image_instantiator_tab_control): ditto.
7430
7431         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7432         Right the new way.
7433         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7434         return whether anything was changed.
7435         (update_gui_item_keywords): as it sounds.
7436
7437         * gui.h: declare widget_gui_parse_item_keywords.
7438
7439         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7440         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7441
7442 2001-01-17  Martin Buchholz <martin@xemacs.org>
7443
7444         * XEmacs 21.2.41 "Polyhymnia" is released.
7445
7446 2001-01-16  Didier Verna  <didier@xemacs.org>
7447
7448         * glyphs.c (image_instantiate): don't use fallbacks when
7449         instantiating a face's background pixmap by inheritance.
7450
7451 2001-01-14  Mike Sperber <mike@xemacs.org>
7452
7453         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7454         Conditionalize accordingly.
7455
7456 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7457
7458         * dumper.c (pdump_file_get): Fix a compiler warning.
7459
7460 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7461
7462         Make Purify happy when pdumping.
7463         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7464         iniitalizing all bits of new lisp object memory.
7465         * symbols.c (Fmake_local_variable): Likewise.
7466         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7467         * symbols.c (Fdefvaralias): Likewise.
7468         * mule-charset.c (vars_of_mule_charset): Likewise.
7469
7470 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7471         Add the `-nd' flag when running pre-dump operations under the debugger.
7472         * .dbxrc (run-temacs): Add `-nd'.
7473         * .dbxrc (update-elc): Likewise.
7474         * .dbxrc (dump-temacs): Likewise.
7475         * .gdbinit (run-temacs): Likewise.
7476         * .gdbinit (check-temacs): Likewise.
7477         * .gdbinit (update-elc): Likewise.
7478         * .gdbinit (dump-temacs): Likewise.
7479
7480 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7481
7482         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7483         export OBJECT_MODE=64
7484         configure --pdump --use-union-type=no
7485         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7486         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7487
7488         * miscplay.c (sndcnv8U_2mono):
7489         Avoid two uses of `++' in the same expression.
7490         Suppresses a GCC warning.
7491
7492 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7493
7494         Make sure future compilers don't miscompile alloc.c.
7495         * alloc.c:
7496         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7497         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7498
7499 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7500
7501         * dumper.c: A little post-pdump-rename comment fixup.
7502
7503 2001-01-09  Jerry James  <james@eecs.ku.edu>
7504
7505         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7506
7507 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7508
7509         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7510         script:
7511         #!/bin/sh
7512         replace_symbol () {
7513           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7514         }
7515
7516         replace_symbol pdump_wire_lists pdump_weak_object_chains
7517         replace_symbol pdump_wire_list dump_add_weak_object_chain
7518
7519         replace_symbol pdump_wires pdump_root_objects
7520         replace_symbol pdump_wire dump_add_root_object
7521
7522         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7523         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7524
7525         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7526         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7527         replace_symbol dumpstructinfo pdump_root_struct_ptr
7528         replace_symbol dumpstruct dump_add_root_struct_ptr
7529
7530         replace_symbol dumpopaque dump_add_opaque
7531         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7532         replace_symbol dumpopaqueinfos pdump_opaques
7533         replace_symbol dumpopaqueinfo pdump_opaque
7534
7535         replace_symbol nb_structdump nb_root_struct_ptrs
7536         replace_symbol nb_opaquedump nb_opaques
7537
7538         replace_symbol align_table pdump_align_table
7539         replace_symbol dump_header pdump_header
7540
7541         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7542         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7543
7544
7545 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7546
7547         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7548         optimizing bytecount_to_charcount().
7549
7550 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7551
7552         * config.h.in:
7553         (HAVE_DLFCN_H): Removed.
7554         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7555
7556 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7557
7558         Portable dumper maintainability improvements.
7559         * alloc.c (staticpro):
7560         * alloc.c (staticpro_nodump):
7561         * alloc.c (garbage_collect_1):
7562         * alloc.c (reinit_alloc_once_early):
7563         * alloc.c (init_alloc_once_early):
7564         * alloc.c: Move dumper functions to alloc.c.
7565         * dumper.c (pdump_backtrace):
7566         * dumper.c (pdump_dump_structs):
7567         * dumper.c (pdump_dump_opaques):
7568         * dumper.c (pdump_dump_rtables):
7569         * dumper.c (pdump_dump_wired):
7570         * dumper.c (pdump):
7571         * dumper.c (pdump_load_check):
7572         * dumper.c (pdump_load_finish):
7573         * dumper.c (pdump_file_unmap):
7574         * dumper.c (pdump_file_get):
7575         * dumper.c (pdump_resource_free):
7576         * dumper.c (pdump_resource_get):
7577         * dumper.c (pdump_file_free):
7578         * dumper.c (pdump_file_try):
7579         * dumper.c (pdump_load):
7580         Remove fixed size limits on staticpro(), staticpro_nodump(),
7581         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7582         Remove custom code for dumping lrecord_implementations_table - use
7583         dumpopaque instead.
7584         Remove (most of the) custom code for dumping staticpros - dump it
7585         like any other dynarr.
7586
7587         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7588         * dumper.c: Moved functions from alloc.c.
7589         * alloc.c (dumpstruct): Moved to dumper.c.
7590         * alloc.c (dumpopaque): Likewise.
7591         * alloc.c (pdump_wire): Likewise.
7592         * alloc.c (pdump_wire_list): Likewise.
7593
7594         * lisp.h (Dynarr_sizeof): New.
7595         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7596         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7597         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7598
7599         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7600         * lisp.h (dumpopaque): ditto.
7601         * lisp.h (pdump_wire): ditto.
7602         * lisp.h (pdump_wire_list): ditto.
7603
7604 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7605
7606         * make-src-depend (PrintPatternDeps):
7607         Use `sort' to make output independent of perl version.
7608
7609 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7610
7611         Port to Netbsd 1.5.
7612         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7613         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7614
7615 2001-01-03  Didier Verna  <didier@xemacs.org>
7616
7617         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7618         that `focus_frame' is alive before thinking of calling
7619         `redisplay_redraw_cursor' on it.
7620
7621 2001-01-08  Martin Buchholz <martin@xemacs.org>
7622
7623         * XEmacs 21.2.40 is released.
7624
7625 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7626
7627         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7628
7629 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7630
7631         * alloc.c (dbg_valmask): Make const.
7632         * alloc.c (dbg_typemask): Make const.
7633         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7634         * alloc.c (dbg_valbits): Make const.
7635         * alloc.c (dbg_gctypebits): Make const.
7636
7637 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7638
7639         * redisplay-x.c (x_bevel_area):
7640         redisplay.h (struct rune):
7641         Typo fixes in comments.
7642
7643 2001-01-05  Andy Piper  <andy@xemacs.org>
7644
7645         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7646         adjustment.
7647
7648         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7649
7650 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7651
7652         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7653
7654         * mule-ccl.c (stack_idx_of_map_multiple):
7655         Non const global data must not be initialized!
7656         Found by MIYASHITA Hisashi.
7657
7658 2001-01-02  Andy Piper  <andy@xemacs.org>
7659
7660         * frame.c (change_frame_size): make sure frame size is always
7661         marked as changed.
7662
7663         * glyphs.c (image_instance_layout): minor code reuse.
7664
7665         * window.c (Fcurrent_window_configuration): revert previous
7666         change.
7667
7668 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7669
7670         * glyphs.h:
7671         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7672
7673 2000-12-31  Andy Piper  <andy@xemacs.org>
7674
7675         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7676         when widget gets unmapped.
7677
7678         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7679         function. Make sure widgets losing focus don't just drop it.
7680         (handle_focus_event_1): record the widget with focus.
7681
7682 2000-12-31  Andy Piper  <andy@xemacs.org>
7683
7684         * window.c (allocate_window): use
7685         make_image_instance_cache_hash_table.
7686         (make_dummy_parent): ditto.
7687         (Fset_window_configuration): ditto.
7688
7689         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7690
7691         * glyphs.c (process_image_string_instantiator): use
7692         INSTANTIATOR_TYPE.
7693         (get_image_instantiator_governing_domain): ditto.
7694         (normalize_image_instantiator): ditto.
7695         (instantiate_image_instantiator): ditto.
7696         (make_image_instance_1): ditto.
7697         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7698         (instantiator_eq_equal): new function for use with instance hash
7699         tables.
7700         (instantiator_eq_hash): ditto.
7701         (make_image_instance_cache_hash_table): create a suitable hash
7702         table for storing image instances.
7703
7704         * elhash.h (hash_table_weakness): new internal weakness type
7705         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7706         declare new functions.
7707
7708         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7709         another weakness type for glyphs.
7710         (make_standard_lisp_hash_table): new function split out from
7711         make_general_lisp_hash_table.
7712         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7713         (hash_table_instantiate): ditto.
7714         (Fmake_hash_table): ditto.
7715
7716 2000-12-31  Martin Buchholz <martin@xemacs.org>
7717
7718         * XEmacs 21.2.39 is released.
7719
7720 2000-12-29  Andy Piper  <andy@xemacs.org>
7721
7722         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7723
7724         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7725         the frame has changed so that we pick up geometry changes such as
7726         menubar visibility.
7727
7728 2000-12-28  Andy Piper  <andy@xemacs.org>
7729
7730         * lastfile.c (my_ebss): make a char array so we can pad the
7731         bss. Fixes cygwin unexec.
7732
7733         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7734
7735 2000-12-26  Andy Piper  <andy@xemacs.org>
7736
7737         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7738         comments and try and be more precise about a non-/SIGIO world.
7739         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7740         SIGIO.
7741
7742         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7743         we don't normalize to zero width or height.
7744
7745 2000-12-24  Andy Piper  <andy@xemacs.org>
7746
7747         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7748
7749 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7750
7751         * s/sco5.h: SCO 5 has pty support.
7752
7753 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7754
7755         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7756         input-method-xlib.c contains whole contents of input-method-xfs.c,
7757         so we can use input-method-xlib.c's code for USE_XFONTSET
7758         using #ifdefs.
7759         * input-method-xfs.c: removed.
7760
7761 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7762
7763         * file-coding.h (enum coding_category_type): reorder enumerators to
7764         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7765         (now one greater than largest real coding_category_type enumerator).
7766         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7767         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7768         Fcoding_category_list, Fset_coding_priority_list,
7769         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7770         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7771
7772 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7773
7774         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7775         * redisplay-output.c (redisplay_output_window): Clear top of window
7776         when face is changed.
7777         * redisplay-x.c (x_redraw_exposed_window): Call
7778         redisplay_clear_top_of_window.
7779         * redisplay.h: Publish redisplay_clear_top_of_window.
7780
7781 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7782
7783         * buffer.c (Fkill_buffer): Map over all devices.
7784         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7785         (list_windows): New function.
7786         (list_all_windows): Ditto.
7787         (Freplace_buffer_in_windows): Use them.
7788
7789 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7790
7791         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7792         (Fopen_database): Use `db_create' instead of `db_open'.
7793         (syms_of_database): Initialize Qqueue.
7794
7795 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7796
7797         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7798         buffer_local_face_property.
7799         * buffer.h (struct buffer): New member buffer_local_face_property.
7800         * window.c (Fset_window_buffer):  Mark window's face as changed
7801         when buffer has buffer local face.
7802         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7803         * objects.c (color_after_change): Set buffer_local_face_property
7804         when locale of face specifier is buffer.
7805         * objects.c (font_after_change): Ditto.
7806         * objects.c (face_boolean_after_change): Ditto.
7807         * glyphs.c (image_after_change): Ditto.
7808
7809 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7810
7811         * nt.c (mswindows_fstat): Report file permissions, volume serial
7812         number, etc. Code adapted from FSF Emacs 20.7.
7813
7814 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7815
7816         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7817         of stat when we don't have symbolic links, to make sure
7818         mswindows_stat is called on mswindows.
7819
7820 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7821
7822         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7823
7824 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7825
7826         * doprnt.c (emacs_doprnt_1): More printing fixes.
7827         Make printing of numbers compatible with libc and FSF Emacs.
7828         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7829         Use the system printf to do most of the hard work of formatting,
7830         instead of doprnt_1().
7831         Calculate memory to allocate for format string.
7832         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7833         (doprnt_1): Cleaner code and documentation.
7834
7835 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7836
7837         * Makefile.in.in: Use the loop variable to install headers.
7838
7839 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7840
7841         * window.c (Fsplit_window): Don't invalidate face cache.
7842
7843 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7844
7845         * minibuf.c (Fall_completions): Undo the previous change
7846         which removed checking elements start with space.
7847
7848 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7849
7850         * mule-canna.c: Didier suppression.
7851
7852 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7853
7854         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7855         (warning suppression).  Add English comment translations.
7856
7857 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7858
7859         * unexelfsgi.c (unexec): Better test for mmap failure.
7860
7861 2000-12-05  Martin Buchholz <martin@xemacs.org>
7862
7863         * XEmacs 21.2.38 is released.
7864
7865 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7866
7867         * redisplay.c (bar-cursor): Make a user variable.
7868
7869         * symsinit.h: Add init_postgresql_from_environment.
7870
7871 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7872
7873         * regex.c: Convert to clean C.
7874
7875 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7876
7877         * realpath.c:
7878         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7879         initialization.
7880         (sys_readlink): renamed to system_readlink to avoid conflict with
7881         the other sys_readlink.
7882
7883 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7884
7885         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7886
7887 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7888
7889         * postgresql.c (init_postgresql_from_environment): new function.
7890         (vars_of_postgresql): Move code initializing Lisp variables out and
7891         into init_postgresql_from_environment.
7892         emacs.c (main_1): Call init_postgresql_from_environment if and only
7893         if running a dumped XEmacs.
7894
7895 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7896
7897         * buffer.c: Make find-file-compare-truenames default to true on
7898         windows.
7899
7900         * realpath.c (win32_abs_start):
7901         (cygwin_readlink):
7902         (win32_readlink): New functions.
7903         (xrealpath): Return really real filenames on windows.
7904
7905         * fileio.c (Ffile_truename): Make file-truename work on windows.
7906
7907 2000-11-29  Didier Verna  <didier@xemacs.org>
7908
7909         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7910         * faces.c (update_face_cachel_data): use it.
7911         * faces.c (add_face_cachel): use it. Complete background pixmap
7912         frobbing in face cache if `update_face_cachel_data' has not done so.
7913
7914 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7915
7916         * search.c (string_match_1): Don't set last_thing_searched
7917         when search failed.
7918
7919 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7920
7921         * buffer.c: Include casetab.h
7922         (common_init_complex_vars_of_buffer): Use new case-table object.
7923         * buffer.h: Include casetab.h
7924         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7925         (DOWNCASE_TABLE_OF): Ditto.
7926         * bufslots.h: Remove char-tables and add case-table.
7927         * casetab.c: Include casetab.h
7928         (CASE_TABLE_P): Removed.
7929         (mark_case_table): New function.
7930         (allocate_case_table): New function.
7931         (Fcase_table_p): Use new case-table.
7932         (case_table_char): New function.
7933         (Fget_case_table): Ditto.
7934         (Fput_case_table): Ditto.
7935         (Fput_case_table_pair): Ditto.
7936         (Fcopy_case_table): Ditto.
7937         (Fcurrent_case_table): Return case-table.
7938         (Fstandard_case_table): Return case-table.
7939         (Fset_case_table): Fix doc-string.
7940         (set_case_table): Use case-table
7941         (syms_of_casetab): DEFSUBR new functions.
7942         (complex_vars_of_casetab): Set up standard case-table.
7943         * casetab.h: New file.
7944         * editfns.c: Include casetab.h
7945         (Fcompare_buffer_substrings): Use case-table.
7946         * inline.c: Include casetab.h
7947         * lisp.h: Remove bogus extern.
7948         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7949         * search.c: Include casetab.h
7950         (TRANSLATE_ASCII): Removed.
7951         (TRANSLATE): Unconditionally translate character.
7952         (looking_at_1): Use case-table.
7953         (string_match_1): Ditto.
7954         (fast_string_match): Ditto.
7955         (search_command): Ditto.
7956         (search_buffer): Separate boyer_moore.  Check whether
7957         boyer_moore is possible.
7958         (simple_search): New function.
7959         (boyer_moore): Separated from search_buffer. Translate char.
7960
7961 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7962
7963         * regex.c (RE_TR_ASCII): Removed.
7964         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7965         (PATFETCH): Call PATFETCH_RAW.
7966         (PATFETCH_RAW): Fetch Emchar.
7967         (PATUNFETCH): Decrement charptr.
7968         (GET_BUFFER_SPACE): Rename b to buf_end.
7969         (BUF_PUSH): Ditto.
7970         (BUF_PUSH_2): Ditto.
7971         (BUF_PUSH_3): Ditto.
7972         (EXTEND_BUFFER): Ditto.
7973         (SET_LIST_BIT): Ditto.
7974         (regex_compile): Ditto.  Translate non ASCII char.
7975         (compile_range): Ditto.
7976         (re_search_2): Ditto.
7977         (re_match_2_internal): Compare Emchar.
7978         (bcmp_translate): Ditto.
7979
7980 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7981
7982         * lisp.h (basic char/int typedefs):  comment improvement.
7983
7984 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7985
7986         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7987         unstomp inhibit_site_lisp.  Improve comments.
7988
7989 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7990
7991         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7992
7993 2000-11-28  Andy Piper  <andy@xemacs.org>
7994
7995         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7996         clipped display for windows in the gutter also.
7997         (redisplay_display_boxes_in_window_p): change semantics of return
7998         codes to be more intuitive.
7999
8000         * gutter.h: declare display_boxes_in_gutter_p.
8001
8002         * gutter.c (display_boxes_in_gutter_p): new function for
8003         redisplay.
8004
8005 2000-11-22  Andy Piper  <andy@xemacs.org>
8006
8007         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8008         autodetect domain.
8009
8010 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8011
8012         * callproc.c (Fold_call_process_internal):
8013         * gpm.c (Freceive_gpm_event):
8014         (tty_get_foreign_selection): Might be just warning supression.
8015         * fileio.c (Fwrite_region_internal):
8016         (Fset_visited_file_modtime):
8017         * keymap.c (event_matches_key_specifier_p):
8018         Initialize GCPROed variable.
8019
8020         * menubar-x.c (command_builder_find_menu_accelerator):
8021         Initialize before use.
8022
8023 2000-11-23  Andy Piper  <andy@xemacs.org>
8024
8025         * unexcw.c (unexec): make the resulting executable executable.
8026
8027 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8028
8029         * doc.c (get_doc_string):
8030         Use size_t, not int, for result of XSTRING_LENGTH.
8031
8032         * cmds.c (Fdelete_char):
8033         * cmds.c (Fpoint_at_eol):
8034         * cmds.c (Fself_insert_command):
8035         Use EMACS_INT, not int, for result of XINT.
8036         Someday, someone will want to insert more than 2**31 identical characters.
8037
8038         * cmds.c (Fdelete_char):
8039         * cmds.c (Fdelete_backward_char):
8040         * syntax.c (Fforward_word):
8041         * syntax.c (Fforward_comment):
8042         Make COUNT argument optional, for consistency with forward-char et al.
8043
8044 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8045
8046         * lisp.h:
8047         * print.c (long_to_string):
8048         Return a useful value: the pointer at end of data written.
8049
8050         * doprnt.c:
8051         Use `static const char * const' for constant strings.
8052         (union printf_arg): Delete `i', `ui' members.
8053         (get_doprnt_args):
8054         (emacs_doprnt_1):
8055         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8056         Do all printf-ing via the `l' specifier.
8057         Use EMACS_INT instead of int.
8058         Optimize.
8059
8060 2000-11-20  Didier Verna  <didier@xemacs.org>
8061
8062         * faces.c (update_face_cachel_data): don't frob the background
8063         pixmap when the window is being created. The face is needed but
8064         does not exist yet.
8065
8066 2000-11-20  Andy Piper  <andy@xemacs.org>
8067
8068         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8069         messing with a debug environment.
8070
8071 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8072
8073         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8074
8075 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8076
8077         * casetab.c (Fcase_table_p): Fix compile error and crash.
8078
8079 2000-11-18  Philip Aston  <philipa@mail.com>
8080
8081         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8082
8083 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8084
8085         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8086         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8087
8088 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8089
8090         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8091         * unexelf.c: Use HAVE_ELF_H.
8092         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8093         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8094         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8095         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8096         for testing.
8097         So this is an unexelfsgi.c from a different line of development.
8098
8099 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8100
8101         * regex.c (RE_TR_ASCII): New function.
8102         (RE_TRANSLATE): Call it.
8103
8104 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8105
8106         * buffer.h (TRT_TABLE_OF): Remove assert.
8107         (IN_TRT_TABLE_DOMAIN): Removed.
8108
8109 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8110
8111         * free-hook.c (log_gcpro):
8112         (show_gcprohist): Add support for GCPRO5.
8113
8114 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8115
8116         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8117
8118 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8119
8120         * symeval.h: Declare flush_all_buffer_local_cache.
8121
8122         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8123         (flush_buffer_local_cache): Added.
8124         (flush_all_buffer_local_cache): Added.
8125
8126         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8127
8128         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8129         (pdump_dump_data): Ditto.
8130         (pdump_reloc_one): Ditto.
8131         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8132         before dumping.
8133
8134
8135 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8136
8137         * buffer.c: Remove if 0'ed entry.
8138         * buffer.h: Rewrite TRT to use char-table.
8139         * bufslots.h: Remove mirror tables.
8140         * casetab.c: Remove mirror tables.
8141         (CASE_TABLE_P): New macro.
8142         (Fcase_table_p): Element of a case table is string or char-table.
8143         (make_mirror_trt_table): Removed.
8144         (set_case_table): Setup char-table from strings for backward
8145         compatibility.
8146         * dired.c (Fdirectory_files):
8147         * dired-msw.c: (mswindows_get_files):
8148         * lisp.h: Change prototype of re_pattern_buffer.
8149         * regex.c: (RE_TRANSLATE): New macro.
8150         (TRANSLATE_P): Ditto.
8151         Change translate to type RE_TRANSLATE_TYPE.
8152         * regex.h: Define RE_TRANSLATE_TYPE
8153         * search.c (TRANSLATE): New macro.
8154         (TRANSLATE_ASCII): New macro.
8155         Translate table is changed to Lisp_Object.
8156         (signal_failure): Inhibit return.
8157
8158 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8159
8160         * device-msw.c:
8161         * eldap.c:
8162         * event-Xt.c:
8163         * event-stream.c:
8164         * print.c:
8165         Do UNGCPRO before return.
8166
8167 2000-11-14  Martin Buchholz <martin@xemacs.org>
8168
8169         * XEmacs 21.2.37 is released.
8170
8171 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8172
8173         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8174         Add comments about discarded return value.
8175
8176 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8177
8178         * callint.c:
8179         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8180
8181 2000-10-27  Andy Piper  <andy@xemacs.org>
8182
8183         * gutter.c (Fset_default_gutter_position): default left and right
8184         gutters to visible.
8185         (calculate_gutter_size): calculate resonable heuristic for left
8186         and right gutter sizes.
8187         (specifier_vars_of_gutter): change left and right gutter sizes to
8188         autodetect.
8189         (calculate_gutter_size_from_display_lines): new function.
8190         (output_gutter): check for resizing on left and right gutters.
8191         (clear_gutter): don't special case top and left gutters.
8192         (specifier_vars_of_gutter): use new signature for
8193         set_specifier_caching.
8194
8195         * glyphs-x.c (x_redisplay_widget): spelling fix.
8196         * glyphs.c (specifier_vars_of_glyphs):
8197         * menubar.c (specifier_vars_of_menubar):
8198         * redisplay.c (specifier_vars_of_redisplay):
8199         * toolbar.c (specifier_vars_of_toolbar):
8200         * window.c (specifier_vars_of_window):
8201         * scrollbar.c (specifier_vars_of_scrollbar):
8202         (complex_vars_of_scrollbar): use new signature for
8203         set_specifier_caching.
8204
8205         * specifier.c (set_specifier_caching): include recompute flag.
8206         (recompute_one_cached_specifier_in_window): always recompute if
8207         flag set.
8208         (recompute_one_cached_specifier_in_frame): ditto.
8209
8210         * specifier.h (struct specifier_caching): add recompute flag.
8211
8212 2000-10-24  Andy Piper  <andy@xemacs.org>
8213
8214         * unexcw.c (copy_executable_and_dump_data_section): add new
8215         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8216         5.0 happy.
8217
8218 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8219
8220         * console-x.h (x_device): New member modifier_release_time.
8221         * event-Xt.c (x_handle_sticky_modifiers):
8222         Bound interval modifier keys are sticky.
8223         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8224         * events.h: extern it.
8225
8226 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8227
8228         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8229
8230 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8231
8232         * event-stream.c (execute_command_event): Preserve current_events
8233         and the like when event is misc-user-event.
8234         Inhibit quit during the call to maybe_echo_keys.
8235
8236 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8237
8238         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8239         symlink when buffer is killed.
8240         (inhibit_clash_detection): New variable.
8241
8242 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8243
8244         * console.c (Fset_input_method): Trigger redisplay on tty.
8245
8246 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8247
8248         * process.c (Fprocess_status): Revert to previous behavior:
8249         (process-status "nosuchprocess") ==> nil
8250
8251 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8252
8253         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8254         Work around another GCC 2.95.2 optimizer bug.
8255
8256 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8257
8258         * process.c (Fget_process): Use LIST_LOOP_2.
8259         (kill_buffer_processes): Use LIST_LOOP_2.
8260
8261         * minibuf.c (Fall_completions):
8262         Delete old non-functional code for FSF fourth argument.
8263
8264         * frame.c (frame_matches_frame_spec):
8265         Renamed from `frame_matches_frametype'.  Update all callers.
8266         (device_matches_device_spec):
8267         Renamed from 'device_matches_console_spec'.  Update all callers.
8268
8269         * doc.c (Fsubstitute_command_keys):
8270         Remove buffer overflow crash.  Small code cleanups.
8271
8272         * casetab.c (check_case_table): Simpler code.
8273
8274         * window.c (Freplace_buffer_in_windows):
8275         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8276         (and similar implementation) as Fdelete_windows_on.
8277         Update all callers.
8278
8279         * alloc.c (Fmake_list):
8280         * alloc.c (make_vector):
8281         * alloc.c (Fmake_vector):
8282         * alloc.c (make_bit_vector):
8283         * alloc.c (Fmake_bit_vector):
8284         * alloc.c (Fbit_vector):
8285         * alloc.c (Fmake_string):
8286         * alloc.c (Fpurecopy):
8287         * alloc.c (Fmemory_limit):
8288         * buffer.c:
8289         * buffer.c (Fget_buffer):
8290         * buffer.c (Fkill_buffer):
8291         * buffer.c (complex_vars_of_buffer):
8292         * bytecode.c (Fcompiled_function_stack_depth):
8293         * callint.c (Fprefix_numeric_value):
8294         * event-stream.c:
8295         * event-stream.c (Fread_key_sequence):
8296         * casetab.c:
8297         * casetab.c (Fcase_table_p):
8298         * casetab.c (check_case_table):
8299         * casetab.c (Fset_case_table):
8300         * casetab.c (Fset_standard_case_table):
8301         * chartab.c:
8302         * chartab.c (Fchar_table_type):
8303         * chartab.c (Freset_char_table):
8304         * chartab.c (Fget_char_table):
8305         * chartab.c (Fget_range_char_table):
8306         * chartab.c (Fput_char_table):
8307         * chartab.c (Fmap_char_table):
8308         * chartab.c (Fcategory_table_p):
8309         * chartab.c (Fcheck_category_at):
8310         * chartab.c (Fchar_in_category_p):
8311         * chartab.c (Fcategory_table):
8312         * chartab.c (Fcopy_category_table):
8313         * chartab.c (Fset_category_table):
8314         * chartab.c (Fcategory_designator_p):
8315         * chartab.c (Fcategory_table_value_p):
8316         * cmds.c (Fdelete_char):
8317         * cmds.c (Fdelete_backward_char):
8318         * cmds.c (Fself_insert_command):
8319         * cmds.c (Fself_insert_internal):
8320         * console.c (Fvalid_console_type_p):
8321         * console.c (Fcdfw_console):
8322         * console.c (Fconsole_type):
8323         * console.c (Fconsole_name):
8324         * console.c (Fconsole_device_list):
8325         * console.c (Fconsole_on_window_system_p):
8326         * data.c:
8327         * data.c (Feq):
8328         * data.c (Fold_eq):
8329         * data.c (Fsubr_interactive):
8330         * data.c (Fchar_to_int):
8331         * data.c (Fint_to_char):
8332         * data.c (Fsetcar):
8333         * data.c (Fsetcdr):
8334         * data.c (Fnumber_to_string):
8335         * data.c (Fstring_to_number):
8336         * data.c (Frem):
8337         * database.c (mark_database):
8338         * database.c (finalize_database):
8339         * database.c (Fdatabase_live_p):
8340         * database.c (Fdatabasep):
8341         * device-x.c (Fx_get_resource):
8342         * device.c (Fdfw_device):
8343         * dired.c:
8344         * dired.c (Ffile_name_completion):
8345         * dired.c (Ffile_name_all_completions):
8346         * dired.c (Fuser_name_completion):
8347         * dired.c (Fuser_name_completion_1):
8348         * dired.c (Fuser_name_all_completions):
8349         * doc.c (Fdocumentation):
8350         * doc.c (Fdocumentation_property):
8351         * doc.c (Fsubstitute_command_keys):
8352         * editfns.c:
8353         * editfns.c (Fchar_to_string):
8354         * editfns.c (Fstring_to_char):
8355         * editfns.c (Ftemp_directory):
8356         * editfns.c (Finsert_char):
8357         * editfns.c (Fbuffer_substring_no_properties):
8358         * editfns.c (Fnarrow_to_region):
8359         * editfns.c (Fchar_equal):
8360         * editfns.c (Fchar_Equal):
8361         * editfns.c (Ftranspose_regions):
8362         * emacs.c (Fdump_emacs):
8363         * eval.c (Fthrow):
8364         * eval.c (Fcommand_execute):
8365         * eval.c (Fautoload):
8366         * eval.c (Fbacktrace):
8367         * eval.c (Fbacktrace_frame):
8368         * events.c:
8369         * events.c (Fcopy_event):
8370         * events.c (Fcharacter_to_event):
8371         * events.c (Fevent_button):
8372         * events.c (Fevent_process):
8373         * extents.c:
8374         * extents.c (Fnext_extent_change):
8375         * extents.c (Fextent_property):
8376         * faces.c (Ffacep):
8377         * faces.c (Fmake_face):
8378         * file-coding.c:
8379         * file-coding.c (Fencode_shift_jis_char):
8380         * file-coding.c (Fencode_big5_char):
8381         * fileio.c (Ffile_name_directory):
8382         * fileio.c (Ffile_name_nondirectory):
8383         * fileio.c (Ffile_name_as_directory):
8384         * fileio.c (Fdirectory_file_name):
8385         * fileio.c (Ffile_truename):
8386         * fileio.c (Fsubstitute_in_file_name):
8387         * fileio.c (Ffile_modes):
8388         * fileio.c (Fset_file_modes):
8389         * fileio.c (Fset_default_file_modes):
8390         * fileio.c (Fverify_visited_file_modtime):
8391         * floatfns.c (Facos):
8392         * floatfns.c (Fasin):
8393         * floatfns.c (Fatan):
8394         * floatfns.c (Fcos):
8395         * floatfns.c (Fsin):
8396         * floatfns.c (Ftan):
8397         * floatfns.c (Fbessel_j0):
8398         * floatfns.c (Fbessel_j1):
8399         * floatfns.c (Fbessel_jn):
8400         * floatfns.c (Fbessel_y0):
8401         * floatfns.c (Fbessel_y1):
8402         * floatfns.c (Fbessel_yn):
8403         * floatfns.c (Ferf):
8404         * floatfns.c (Ferfc):
8405         * floatfns.c (Flog_gamma):
8406         * floatfns.c (Fexp):
8407         * floatfns.c (Fexpt):
8408         * floatfns.c (Flog):
8409         * floatfns.c (Flog10):
8410         * floatfns.c (Fsqrt):
8411         * floatfns.c (Fcube_root):
8412         * floatfns.c (Facosh):
8413         * floatfns.c (Fasinh):
8414         * floatfns.c (Fatanh):
8415         * floatfns.c (Fcosh):
8416         * floatfns.c (Fsinh):
8417         * floatfns.c (Ftanh):
8418         * floatfns.c (Fabs):
8419         * floatfns.c (Ffloat):
8420         * floatfns.c (Flogb):
8421         * floatfns.c (Fceiling):
8422         * floatfns.c (Ffloor):
8423         * floatfns.c (Fround):
8424         * floatfns.c (Ftruncate):
8425         * floatfns.c (Ffceiling):
8426         * floatfns.c (Fffloor):
8427         * floatfns.c (Ffround):
8428         * floatfns.c (Fftruncate):
8429         * fns.c (Fstring_equal):
8430         * fns.c (Fstring_lessp):
8431         * fns.c (concat2):
8432         * fns.c (concat3):
8433         * fns.c (vconcat2):
8434         * fns.c (vconcat3):
8435         * fns.c (Fsubstring):
8436         * fns.c (Fassoc):
8437         * fns.c (Fold_assoc):
8438         * fns.c (assoc_no_quit):
8439         * fns.c (Fassq):
8440         * fns.c (Fold_assq):
8441         * fns.c (assq_no_quit):
8442         * fns.c (Frassoc):
8443         * fns.c (Fold_rassoc):
8444         * fns.c (Frassq):
8445         * fns.c (Fold_rassq):
8446         * fns.c (rassq_no_quit):
8447         * fns.c (Fremassoc):
8448         * fns.c (remassoc_no_quit):
8449         * fns.c (Fremassq):
8450         * fns.c (remassq_no_quit):
8451         * fns.c (Fremrassoc):
8452         * fns.c (Fremrassq):
8453         * fns.c (remrassq_no_quit):
8454         * fns.c (Fsort):
8455         * fns.c (Fplist_get):
8456         * fns.c (Fplist_put):
8457         * fns.c (Fplist_remprop):
8458         * fns.c (Fplist_member):
8459         * fns.c (Flax_plist_get):
8460         * fns.c (Flax_plist_put):
8461         * fns.c (Flax_plist_remprop):
8462         * fns.c (Flax_plist_member):
8463         * fns.c (Fequal):
8464         * fns.c (Fold_equal):
8465         * fns.c (Frequire):
8466         * fns.c (Fbase64_encode_region):
8467         * fns.c (Fbase64_encode_string):
8468         * fns.c (Fbase64_decode_region):
8469         * frame.c:
8470         * frame.c (frame_matches_frame_spec):
8471         * frame.c (device_matches_device_spec):
8472         * frame.c (next_frame):
8473         * frame.c (previous_frame):
8474         * frame.c (Fnext_frame):
8475         * frame.c (Fprevious_frame):
8476         * frame.c (Fframe_property):
8477         * frame.c (Fset_frame_height):
8478         * frame.c (Fset_frame_size):
8479         * frame.h:
8480         * glyphs.c:
8481         * glyphs.c (if):
8482         * glyphs.c (decode_error_behavior_flag):
8483         * glyphs.c (Fmake_image_instance):
8484         * indent.c (Findent_to):
8485         * intl.c (Fignore_defer_gettext):
8486         * keymap.c (Fkeymapp):
8487         * keymap.c (Flookup_key):
8488         * lread.c:
8489         * lread.c (Fload_internal):
8490         * lread.c (Feval_buffer):
8491         * lread.c (Feval_region):
8492         * macros.c (Fexecute_kbd_macro):
8493         * marker.c (set_marker_internal):
8494         * marker.c (Fset_marker):
8495         * marker.c (set_marker_restricted):
8496         * marker.c (Fcopy_marker):
8497         * marker.c (noseeum_copy_marker):
8498         * menubar.c:
8499         * menubar.c (Fpopup_menu):
8500         * minibuf.c:
8501         * mule-charset.c (Fcharset_name):
8502         * mule-charset.c (Fchar_charset):
8503         * mule-charset.c (Fchar_octet):
8504         * mule-charset.c (Fsplit_char):
8505         * mule-wnnfns.c (Fwnn_open):
8506         * mule-wnnfns.c (Fwnn_dict_comment):
8507         * mule-wnnfns.c (Fwnn_quit_henkan):
8508         * mule-wnnfns.c (Fwnn_word_toroku):
8509         * mule-wnnfns.c (Fwnn_word_sakujo):
8510         * mule-wnnfns.c (Fwnn_word_use):
8511         * mule-wnnfns.c (Fwnn_hindo_set):
8512         * objects.c:
8513         * objects.c (Fmake_color_instance):
8514         * objects.c (Fmake_font_instance):
8515         * print.c (Fwrite_char):
8516         * process.c:
8517         * process.c (mark_process):
8518         * process.c (print_process):
8519         * process.c (get_process_from_usid):
8520         * process.c (Fprocessp):
8521         * process.c (Fprocess_live_p):
8522         * process.c (Fget_process):
8523         * process.c (Fget_buffer_process):
8524         * process.c (get_process):
8525         * process.c (Fprocess_id):
8526         * process.c (Fprocess_name):
8527         * process.c (Fprocess_command):
8528         * process.c (init_process_io_handles):
8529         * process.c (start_process_unwind):
8530         * process.c (Fstart_process_internal):
8531         * process.c (Fopen_multicast_group_internal):
8532         * process.c (Fset_process_window_size):
8533         * process.c (read_process_output):
8534         * process.c (send_process):
8535         * process.c (Fprocess_tty_name):
8536         * process.c (Fset_process_buffer):
8537         * process.c (Fprocess_buffer):
8538         * process.c (Fprocess_mark):
8539         * process.c (set_process_filter):
8540         * process.c (Fset_process_filter):
8541         * process.c (Fprocess_filter):
8542         * process.c (Fprocess_send_region):
8543         * process.c (Fprocess_send_string):
8544         * process.c (exec_sentinel):
8545         * process.c (Fset_process_sentinel):
8546         * process.c (Fprocess_sentinel):
8547         * process.c (status_notify):
8548         * process.c (Fprocess_status):
8549         * process.c (Fprocess_exit_status):
8550         * process.c (process_send_signal):
8551         * process.c (Fprocess_send_eof):
8552         * process.c (deactivate_process):
8553         * process.c (remove_process):
8554         * process.c (Fdelete_process):
8555         * process.c (kill_buffer_processes):
8556         * process.c (Fprocess_kill_without_query):
8557         * process.c (Fprocess_kill_without_query_p):
8558         * rangetab.c:
8559         * rangetab.c (Fget_range_table):
8560         * rangetab.c (Fput_range_table):
8561         * rangetab.c (Fremove_range_table):
8562         * rangetab.c (Fclear_range_table):
8563         * search.c:
8564         * search.c (Fskip_chars_forward):
8565         * search.c (Fskip_chars_backward):
8566         * search.c (Fskip_syntax_forward):
8567         * search.c (Fskip_syntax_backward):
8568         * search.c (search_command):
8569         * search.c (Freplace_match):
8570         * search.c (Fregexp_quote):
8571         * select.c (Fown_selection_internal):
8572         * select.c (Fselection_owner_p):
8573         * select.c (Fselection_exists_p):
8574         * select.c (Fget_selection_internal):
8575         * specifier.c:
8576         * symbols.c:
8577         * symbols.c (Fintern):
8578         * symbols.c (Fintern_soft):
8579         * symbols.c (Funintern):
8580         * symbols.c (Fapropos_internal):
8581         * symbols.c (Fset_default):
8582         * syntax.c:
8583         * syntax.c (Fsyntax_table_p):
8584         * syntax.c (Fcopy_syntax_table):
8585         * syntax.c (Fset_syntax_table):
8586         * syntax.c (Fchar_syntax):
8587         * syntax.c (syntax_match):
8588         * syntax.c (Fmatching_paren):
8589         * syntax.c (Fforward_word):
8590         * syntax.c (scan_lists):
8591         * syntax.c (Fscan_lists):
8592         * syntax.c (Fscan_sexps):
8593         * syntax.c (Fparse_partial_sexp):
8594         * toolbar.c (Fcheck_toolbar_button_syntax):
8595         * tooltalk.doc:
8596         * window.c:
8597         * window.c (Fwindowp):
8598         * window.c (Fwindow_live_p):
8599         * window.c (Fwindow_point):
8600         * window.c (Fdelete_window):
8601         * window.c (Fnext_window):
8602         * window.c (Fprevious_window):
8603         * window.c (Fother_window):
8604         * window.c (window_loop):
8605         * window.c (Fget_lru_window):
8606         * window.c (Fsplit_window):
8607         * window.c (Fenlarge_window):
8608         * window.c (Fenlarge_window_pixels):
8609         * window.c (Fshrink_window):
8610         * window.c (Fshrink_window_pixels):
8611         * window.c (change_window_height):
8612         * window.c (Fwindow_configuration_p):
8613         * window.c (Fcurrent_window_configuration):
8614         * window.h:
8615         * casefiddle.c (casify_object):
8616         * casefiddle.c (Fupcase):
8617         * casefiddle.c (Fdowncase):
8618         * casefiddle.c (Fcapitalize):
8619         * casefiddle.c (Fupcase_initials):
8620         * casefiddle.c (casify_region_internal):
8621         * casefiddle.c (casify_region):
8622         * casefiddle.c (Fupcase_region):
8623         * casefiddle.c (Fdowncase_region):
8624         * casefiddle.c (Fcapitalize_region):
8625         * casefiddle.c (Fupcase_initials_region):
8626         * casefiddle.c (Fupcase_word):
8627         * casefiddle.c (Fdowncase_word):
8628         * casefiddle.c (Fcapitalize_word):
8629         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8630         Replace 0 with '\0' when working with bytes.
8631         Replace initial "(" with "\(" in docstrings.
8632
8633 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8634
8635         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8636
8637         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8638
8639 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8640
8641         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8642
8643 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8644
8645         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8646         correctly.
8647
8648 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8649
8650         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8651         (inhibit_auto_save_session): New variable.
8652         (vars_of_fileio): Declare and initialize them.
8653         * fileio.c (Fdo_auto_save): Don't create session file if
8654         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8655
8656 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8657
8658         * sgiplay.c (play_internal): C++ compilability.
8659         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8660         * callproc.c (Fold_call_process_internal):
8661         Remove unused vars `env', `first'.
8662         * scrollbar.c (update_scrollbar_instance):
8663         #### unused var `current_window'.
8664         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8665         etc. within #ifdef NOT_YET.
8666         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8667         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8668         * specifier.c (specifier_instance):
8669         #### unused var `tag'.
8670         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8671
8672 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8673
8674         * fns.c (Fbutlast):
8675         * fns.c (list_sort):
8676         * fns.c (Ffillarray):
8677         * fns.c (bytecode_nconc2):
8678         * fns.c (Fnconc):
8679         * fns.c (mapcar1):
8680         * fns.c (Fmapconcat):
8681         Be pedantically 64-bit correct.  For the time when someone will
8682         want to have a list with length > 2**32.
8683
8684         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8685         Work around MIPSpro compiler bug.
8686
8687         * process-unix.c (unix_kill_child_process): Add snarky comment.
8688         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8689
8690         * config.h.in: Oops, _getpt ==> _getpty
8691
8692 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8693
8694         * config.h.in:
8695         * regex.c:
8696         Use void*, not char*, as return type of alloca().
8697
8698         * alloc.c (free_marker): Side effect inside assert expression!
8699
8700 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8701
8702         * mule-charset.c (Fset_charset_ccl_program): To check
8703         if the given ccl program is valid, use setup_ccl_program()
8704         instead of CHECK_VECTOR().
8705         (Fmake_charset): Likewise.
8706
8707 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8708
8709         * faces.c (get_extent_fragment_face_cache_index):
8710         Fix cachel.merged_faces memory leak.
8711
8712 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8713
8714         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8715         Reset MSB of octets obtained by DECODE_SJIS
8716         because of the incompatibility with Emacs.
8717         (ccl_driver)<CCL_ENCODE_SJIS>:
8718         Set MSB of octets before passing them to
8719         ENCODE_SJIS because of the incompatibility
8720         with Emacs.
8721
8722 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8723
8724         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8725         (DECLARE_LRECORD): Undo the last change.
8726         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8727
8728 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8729
8730         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8731         the implementation to lrecord_implementations_table.
8732
8733 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8734
8735         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8736         initial value of `lrecord_type_##c_name' and
8737         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8738         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8739         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8740         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8741         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8742
8743 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8744
8745         * miscplay.c (sndcnv8S_2mono):
8746         (sndcnv2monounsigned):
8747         (sndcnvULaw_2linear):
8748         (sndcnv16swap):
8749         Remove implementation-defined behavior.
8750
8751 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8752
8753         * input-method-xlib.c: Warning suppression.
8754
8755 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8756
8757         * mule-ccl.c: Sync up with Emacs 21.0.90.
8758         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8759         Do nothing.
8760         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8761         Likewise.
8762         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8763         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8764         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8765         leading char belongs to official 2-dimensional charset.
8766         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8767         write the given character as is.  Otherwise,
8768         if it is a multibyte char, convert it by
8769         non_ascii_set_charptr_emchar, then write it.
8770         (CCL_WRITE_STRING): Likewise.
8771         (ccl_get_compiled_code): New function.
8772         (setup_ccl_program): When ccl_prog is invalid,
8773         return -1.
8774         (Fregister_code_conversion_map): New function.
8775         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8776
8777         * mule-ccl.h: Sync up with Emacs 21.0.90.
8778         (Fregister_ccl_program): export it.
8779
8780         * redisplay-msw.c (separate_textual_runs):
8781         If ccl program is not valid, don't do ccl conversion.
8782
8783         * redisplay-x.c (separate_textual_runs): Ditto.
8784
8785         * file-coding.c (Fmake_coding_system):
8786         When type is ccl and value is vector, register it
8787         with a proper symbol.  And checks whether the
8788         given ccl program is valid.
8789         (mule_decode): When calling ccl_driver, if src indicates
8790         NULL pointer, set an empty string instead.
8791         (mule_encode): Likewise.
8792
8793 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8794
8795         The following large batch of changes gets us back to a state of
8796         C++ compilability.  Extbyte is now a char, which means that
8797         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8798
8799         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8800
8801         * sound.c (Fplay_sound): Type correctness.
8802
8803         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8804         (x_get_window_property): Type correctness.
8805         (receive_incremental_selection): unsigned char ==> Extbyte
8806         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8807         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8808         (Fx_store_cutbuffer_internal): Type correctness.
8809
8810         * process-unix.c (try_to_initialize_subtty): Type correctness.
8811
8812         * objects-x.c (x_print_color_instance): Type correctness.
8813         (x_print_font_instance): Type correctness.
8814         (x_list_fonts): SExtbyte ==> Extbyte.
8815         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8816         (x_find_charset_font): SExtbyte ==> Extbyte.
8817         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8818         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8819         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8820         Use bufbyte_strcmp.
8821
8822         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8823         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8824         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8825         (BYTE_C0_P): Use bit ops for char-signedness safety.
8826         (BYTE_C1_P): Use bit ops for char-signedness safety.
8827         (CHARSET_BY_LEADING_BYTE):
8828         (CHARSET_BY_ATTRIBUTES):
8829         Always use inline function.
8830         Use type_checking_assert.
8831         Hide chlook.
8832
8833         * mule-charset.c (non_ascii_charptr_copy_char):
8834         Modify to work with both ASCII and non-ASCII characters.
8835         Improve docs and variable names.
8836         Replace over-clever fall-through switch with a simple loop.
8837         (Lstream_get_emchar_1):
8838         Replace over-clever fall-through switch with a simple loop.
8839
8840         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8841         Warning suppression.
8842
8843         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8844         the return value of Lstream_getc, which could be EOF as well.
8845
8846         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8847
8848         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8849         APIs can be used on Extbytes without casts.  Risky!
8850         (SExtbyte): Remove.
8851         (UExtbyte): Remove.
8852
8853         * input-method-xlib.c (XIM_init_device):
8854         Use Xlib.h instead of IntrinsicP.h.
8855         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8856         which will break in X11R7.
8857         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8858         to call XRegisterIMInstantiateCallback with correct types.
8859
8860         * gui-x.c (button_item_to_widget_value): Type correctness.
8861
8862         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8863
8864         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8865         (xbm_instantiate_1): Type correctness.
8866         (BUILD_GLYPH_INST):  Type correctness.
8867
8868         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8869
8870         * file-coding.c:
8871         (decode_coding_sjis):
8872         (decode_coding_big5):
8873         (decode_coding_ucs4):
8874         (decode_coding_utf8):
8875         (decode_coding_iso2022):
8876         (decode_coding_no_conversion):
8877         Make all decoding functions take an Extbyte * arg.
8878         (encode_coding_sjis):
8879         (encode_coding_big5):
8880         (encode_coding_ucs4):
8881         (encode_coding_utf8):
8882         (encode_coding_iso2022):
8883         (encode_coding_no_conversion):
8884         Make all encoding functions take a Bufbyte * arg.
8885         Use size_t instead of unsigned int for memory sizes.
8886         Only cast to unsigned char whenever dereferencing Extbyte *.
8887
8888         * doc.c (unparesseuxify_doc_string): Type correctness.
8889
8890         * console-x.c (split_up_display_spec):
8891         Rewrite without using details of internal string representation.
8892         (x_semi_canonicalize_device_connection): Type correctness.
8893
8894         * config.h.in:
8895         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8896         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8897         (HAVE_XFREE386): Removed.
8898
8899         * buffer.h (DEC_CHARPTR): `const' correctness.
8900         (bufbyte_strcmp): New.
8901         (bufbyte_memcmp): New.
8902
8903         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8904
8905         * buffer.h (XCHAR_OR_CHAR_INT):
8906         Always use inline function.
8907         Remove redundant type checking assert() - XINT will abort quite nicely.
8908
8909 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8910
8911         * search.c (Freplace_match): Set newtext to an empty string.
8912
8913 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8914
8915         * s/decosf1-3.h: Remove #include of stropts.h
8916         * s/ptx.h: Remove #include of stropts.h
8917         * s/usg5-4.h: Remove #include of stropts.h
8918         * sysproc.h:
8919         * config.h.in:
8920         Use stropts.h, not sys/stropts.h.
8921         Use strtio.h, not sys/strtio.h.
8922
8923 2000-10-04  Martin Buchholz <martin@xemacs.org>
8924
8925         * XEmacs 21.2.36 is released.
8926
8927 2000-09-21  Andy Piper  <andy@xemacs.org>
8928
8929         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8930         changes still involve copying the widget tree.
8931         (update_widget_face): make sure a change is register in the widget
8932         tree. Call update_tab_widget_face appropriately.
8933         (update_tab_widget_face): ditto.
8934         (x_tab_control_redisplay): make sure non-structural changes still
8935         involve copying the widget tree.
8936
8937 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8938
8939         * lread.c (locate_file): Check the path element is non-nil.
8940
8941 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8942
8943         * lisp.h: Warning suppression for SCO compilers.
8944
8945         * redisplay-tty.c (reset_tty_modes): Fix crash.
8946         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8947
8948 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8949
8950         Big signal/process handling overhaul.  Bugs fixed:
8951         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8952         M-x comint-kill-subjob should work for both values nil and t of
8953         process-connection-type. It was broken on most platforms.
8954         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8955         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8956         * process-unix.c: Signal/Process handling overhaul.
8957         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8958         (allocate_pty): Use all available modern methods of allocating
8959         ptys, falling back to old style BSD allocation as a last resort.
8960         Use allegedly more secure Unix98 pty allocation by default.
8961         (allocate_pty_the_old_fashioned_way): New. the last resort.
8962         (unix_create_process): Push ptem, ldterm, ttcompat where
8963         available.  Autoconfiscate.
8964         (try_to_initialize_subtty): New.
8965         (unix_kill_child_process): Proper signal handling for ptys on most
8966         platforms, using special knowledge of AIX, BSD, etc...
8967         (unix_create_process): Always disconnect_controlling_terminal() for
8968         subprocesses, whether using ptys or not.
8969         * process.h: Remove old getpt-dependent PTY code.
8970         * process.c (Fprocess_send_signal): New, obvious generic function.
8971         (decode_signal): New.
8972         (Finterrupt_process):
8973         (Fkill_process):
8974         (Fquit_process):
8975         (Fstop_process):
8976         (Fcontinue_process):
8977         (Fsignal_process): Use decode_signal.
8978         (process_send_signal):
8979         Many docstring corrections.
8980         Allow any signal to be sent to a process object.
8981         * config.h.in: Add symbols for big signal/process overhaul.
8982         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8983         * sysproc.h: Include process-related headers, where available:
8984         sys/stropts.h sys/strtio.h pty.h libutil.h
8985         * s/irix4-0.h:
8986         * s/irix5-0.h:
8987         * s/cygwin32.h:
8988         * s/gnu.h:
8989         * s/linux.h:
8990         * s/hpux.h:
8991         * s/aix3-1.h:
8992         Remove old S&M pty stuff.
8993         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8994         * systty.h: Simplify cpp hackery, improve comments.
8995         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8996
8997         * editfns.c (Fformat_time_string):
8998         Be a little more paranoid with the return value of ctime.
8999
9000         * fileio.c (check_executable):
9001         (check_writable):
9002         Use symbolic constants X_OK, W_OK.
9003
9004         * console-x.c (split_up_display_spec): Fix a warning.
9005
9006 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9007
9008         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9009         * ntproc.c (sys_spawnve): make_string ==> build_string
9010         Small clarity improvements.
9011
9012 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9013
9014         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9015
9016         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9017
9018         * config.h.in (HAVE_STRCASECMP): Remove.
9019
9020 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9021
9022         * redisplay-output.c (redisplay_output_pixmap):
9023         Cleaner and possibly more 64-bit correct code.
9024
9025 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9026
9027         * dumper.c (pdump_load_finish): move restoration of
9028         `noninteractive1' to emacs.c (main_1).
9029         * emacs.c (main_1): protect LISP-visible command-line flags
9030         from pdump_load().
9031
9032 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9033
9034         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9035         DUMP_TARGET instead of literal program names.
9036
9037 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9038
9039         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9040
9041 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9042
9043         * *: Spelling mega-patch
9044
9045 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9046
9047         * fns.c (bad_bad_turtle):
9048         Delete "Eek!" comment, since we fixed the bug to which it refers.
9049
9050 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9051
9052         * alloca.c: Replace REGISTER with register.
9053
9054 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9055
9056         * file-coding.c (ucs_to_char): Use countof.
9057
9058 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9059
9060         * file-coding.c: (ucs_to_char):
9061         (complex_vars_of_file_coding):
9062         Use countof instead of sizeof.
9063         Use CHECK_NATNUM instead of CHECK_INT.
9064
9065         * sysdep.c (strcasecmp): Remove.
9066         * device-x.c (ascii_strcasecmp): New.
9067         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9068         Avoid using non-standard non-portable strcasecmp.
9069
9070 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9071
9072         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9073         * font-lock.c: remove reference to emacsfns.h.
9074         * search.c: small doc improvement.
9075         * event-Xt.c: correct file names in comments.
9076         * console-x.h Correct file names in comments.
9077         * frame.c: Correct file names in comments.
9078         * event-stream.c: remove Energize from comments.
9079
9080 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9081
9082         * symeval.h (DEFERROR_STANDARD):
9083         (DEFERROR):
9084         (DEFSYMBOL):
9085         (DEFSYMBOL_NO_DUMP):
9086         (DEFSYMBOL_MULTIWORD_PREDICATE):
9087         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9088         (DEFKEYWORD):
9089         The construct &##name is not sensible C.
9090         Fixes compilation errors with Unixware native compiler.
9091
9092 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9093
9094         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9095         (next_frame_internal): Removed.  We now just have next_frame.
9096         (next_frame):
9097         Write a simpler and cleaner one-pass algorithm.
9098         Remove called_from_delete_device arg and #ifdefed-out code.
9099         (previous_frame):
9100         Renamed from prev_frame.  Update callers.
9101         Cleaned up to have an analogous implementation to next_frame.
9102         (other_visible_frames_internal): Remove the
9103         called_from_delete_device bogus arg, and hence, remove this
9104         function.  Just use other_visible_frames().
9105
9106         * window.c (Fnext_window):
9107         Prettify docstring.
9108         Since next_frame() is guaranteed to return a frame, remove check
9109         for nil inserted in previous patch.
9110         (Fprevious_window):
9111         Prettify docstring.
9112         Make code look more like Fnext_window.
9113         (window_loop):
9114         Respect the `console' arg when iterating through windows.
9115         Fixes bug: (get-buffer-window buffer t device) not respecting
9116         the `device' arg.
9117         This function needs more work, as others have pointed out.
9118
9119         * frame.h: Rename prev_frame to previous_frame.
9120         device_matches_console_spec no longer takes a `frame' arg.
9121
9122         * s/gnu.h:
9123         * s/linux.h:
9124         * s/hpux.h:
9125         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9126         From "Golubev I. N." <gin@mo.msk.ru>.
9127
9128         * make-src-depend: Fix typo.
9129
9130 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9131
9132         * window.c (Fnext_window):
9133         next_frame() might return nil, not a frame.
9134         Fixes this crash:
9135         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9136
9137         * frame.c (next_frame_internal):
9138         We've passed a frame if we've passed its device.
9139         Fixes this crash:
9140         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9141 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9142
9143 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9144
9145         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9146         Allow option to suppress accelerators in menu/dialog items.
9147         (populate_or_checksum_helper): Pass dialog title through above.
9148
9149 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9150
9151         * event-msw.c (mswindows_key_to_emacs_keysym):
9152         Add "pause" key, fix "menu" key.
9153
9154 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9155
9156         * eval.c (reinit_vars_of_eval):
9157         Increase max_lisp_eval_depth to 1000,
9158         required for thai-xtis.el to byte-compile under some circumstances.
9159
9160 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9161
9162         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9163         From Kenichi Handa.
9164
9165 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9166
9167         * make-src-depend: Make the generated Makefiles smaller.
9168
9169         * s/hpux.h (SETUP_SLAVE_PTY):
9170         Provide a %d in the format string for the errno argument.
9171
9172         * editfns.c (Ftemp_directory):
9173         Warning fix.
9174         Avoid buffer overrun on very long file name.
9175
9176         * input-method-xlib.c (XIM_init_device):
9177         6th parameter of XRegisterIMInstantiateCallback has different
9178         pointer types on different OSes, so simply cast to (void *).
9179
9180         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9181
9182         * sysdll.c (dll_open):
9183         shl_load will hang hard if passed a NULL filename.
9184         Simply return NULL for compatibility with dlopen.
9185         * sysdll.c: Conform to XEmacs coding standards.
9186
9187         * sysdep.c (get_pty_max_bytes):
9188         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9189
9190 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9191
9192         * tooltalk.c: Add #include <syssignal.h>
9193
9194 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9195
9196         * s/hpux.h: Don't use undefined function sigunblock().
9197
9198 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9199
9200         * config.h.in: Add HAVE_BALLOON_HELP.
9201         * emacs.c: Use HAVE_BALLOON_HELP.
9202         * Makefile.in.in (x_objs):
9203         Make Balloon Help conditional on finding shape.h.
9204
9205 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9206
9207         * syntax.c (regex_emacs_buffer_p): New variable.
9208         * syntax.h (regex_emacs_buffer_p): extern.
9209         * search.c (looking_at_1):
9210         (string_match_1):
9211         (fast_string_match):
9212         (search_buffer): Set regex_emacs_buffer_p.
9213         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9214         when before_dot, at_dot, after_dot.
9215
9216 2000-08-23  Andy Piper  <andy@xemacs.org>
9217
9218         * gui-x.c (popup_selection_callback): Only set action_occurred
9219         when we really have an image instance.
9220         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9221
9222 2000-08-23  Andy Piper  <andy@xemacs.org>
9223
9224         * gui-msw.c (mswindows_handle_gui_wm_command): set
9225         action_occurred.
9226         * gui-x.c (popup_selection_callback): ditto.
9227
9228         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9229         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9230         (struct Lisp_Image_Instance): add action_occurred flag.
9231
9232         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9233         (image_instance_changed): ditto.
9234         (reset_frame_subwindow_instance_cache): only unmap windows - do
9235         not remove them from the cache also.
9236
9237         * glyphs-widget.c (tab_control_update): better debug.
9238         (progress_gauge_update): ditto.
9239         (layout_update): ditto.
9240         (layout_instantiate): ditto.
9241         (tab_control_order_only_changed): cope with null pending items.
9242
9243         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9244         debug. Force selection of an item when an action occurred. Cope
9245         with null pending_items.
9246         (mswindows_progress_gauge_redisplay): better debug.
9247         * glyphs-x.c (x_tab_control_redisplay): ditto.
9248
9249         * redisplay.c (redisplay_frame): reset the frame cache if the
9250         frame is garbaged.
9251
9252         * window.c (Fset_window_configuration): potentially re-enable
9253         frame cache reset.
9254         (window_unmap_subwindows): need to finalize instances here since
9255         it is only used in mark_window_as_deleted.
9256
9257 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9258
9259         * nas.c (SndOpenDataForReading):
9260         nas.c (WaveOpenDataForReading):
9261         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9262         Somehow escaped from the 2000-08-14 patch.
9263
9264 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9265
9266         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9267         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9268
9269 2000-08-21  Andy Piper  <andy@xemacs.org>
9270
9271         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9272         window if it is not already displayed.
9273
9274         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9275         it is not already displayed.
9276
9277         * window.c (Fset_window_configuration): don't reset the frame
9278         cache.
9279
9280         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9281         instances from the frame cache if we are actually finalizing them.
9282         (reset_frame_subwindow_instance_cache): reset frame cache only
9283         after unmapping everything.
9284         (map_subwindow): set displayed flag after mapping.
9285
9286 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9287
9288         * data.c (indirect_function):
9289         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9290
9291         * eval.c (function_argcount):
9292         Use original function when signaling errors.
9293
9294 2000-08-18  Andy Piper  <andy@xemacs.org>
9295
9296         * frame.c (delete_frame_internal): use new
9297         free_frame_subwindow_instances name.
9298
9299         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9300         (add_tab_item): make return type correct.
9301         (mswindows_tab_control_instantiate): assert index of tab.
9302         (mswindows_tab_control_redisplay): Re-code to use
9303         gui_item_equal_sans_selected and gui_item_list_find_selected.
9304
9305         * glyphs-widget.c (tab_control_update): Correct comment.
9306
9307         * window.c (window_unmap_subwindows): use new
9308         unmap_subwindow_instance_cache_mapper.
9309         (window_unmap_subwindows_cache_mapper): deleted.
9310         (Fset_window_configuration): comparisons should now be with
9311         EQ. Preserve the subwindow instance cache across configuration
9312         changes.
9313         (allocate_window): ditto.
9314         (make_dummy_parent): ditto.
9315
9316         * glyphs.c (free_frame_subwindow_instances): rename from
9317         free_frame_subwindow_instance_cache. finalize all instances rather
9318         than just those in the display cache.
9319         (finalize_all_subwindow_instances): walk windows unmapping and
9320         finalizing subwindows.
9321         (unmap_subwindow_instance_cache_mapper): moved from
9322         window.c. Allow finalization as well as unmapping.
9323
9324         * gui.c (gui_item_list_find_selected): new function.
9325
9326         * gui.h (gui_item_list_find_selected): declare.
9327
9328         * glyphs-x.c (x_tab_control_redisplay): pick tab
9329         explicitly. Re-code to use gui_item_equal_sans_selected and
9330         gui_item_list_find_selected.
9331
9332         * glyphs-x.h: add lwlib-utils.h
9333
9334         * buffer.c (Frecord_buffer): undo previous change.
9335
9336 2000-08-09  Vin Shelton  <acs@xemacs.org>
9337
9338         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9339         possible.  Create temporary files more securely.  The patch was
9340         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9341         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9342         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9343         for details.
9344
9345 2000-08-07  Ben Wing  <ben@xemacs.org>
9346
9347         * getloadavg.c: remove duplicate (and windows-breaking)
9348         includes of fcntl.h and sys/file.h.
9349
9350         * nt.c: remove duplicate getloadavg() definition.
9351
9352         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9353         encodings.
9354
9355 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9356
9357         * eval.c (function_argcount): If function needs to be autoloaded
9358         actually use the loaded definition.
9359         GCPRO function.
9360
9361 2000-08-05  Ben Wing  <ben@xemacs.org>
9362
9363         * getloadavg.c: add prototype for getloadavg().  remove
9364         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9365         of the code).  remove duplicate header includes.
9366
9367         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9368
9369         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9370         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9371         useful load average.
9372
9373         * alloc.c (reinit_alloc_once_early): removed references to
9374         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9375         the lisp vars are the only things referencing the malloc_sbrk_*
9376         vars, and they were already if 0'd out.  these vars only exist
9377         in the older malloc.c, which is basically unused, and they're
9378         only for informational purposes.
9379
9380         * m\*.h: removed useless VIRT_ADDR_VARIES.
9381
9382         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9383
9384 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9385
9386         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9387         color if the image is a mono pixmap.
9388
9389 2000-07-30  Ben Wing  <ben@xemacs.org>
9390
9391         * Makefile.in.in (release):
9392         Remove stray @.
9393
9394         * buffer.c (directory_is_current_directory):
9395         * dired-msw.c (mswindows_get_files):
9396         * dired.c:
9397         * dired.c (Fdirectory_files):
9398         * dired.c (file_name_completion_stat):
9399         * dired.c (Ffile_attributes):
9400         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9401         preprocessor tricks, to avoid problems on some machines
9402         (e.g. SCO).
9403
9404         * callproc.c (egetenv): GC docs.
9405
9406         * console-msw.h:
9407         * console-msw.h (struct mswindows_dialog_id):
9408         * lrecord.h (lrecord_type):
9409         New object for use with MSW dialogs.
9410
9411         * console.h (struct console_methods):
9412         New enable/disable frame methods, for proper modal dialogs.
9413
9414         * device-msw.c (msprinter_default_printer): Fix to follow
9415         proper Mule conventions.
9416
9417         * device-msw.c:
9418         * device-msw.c (signal_open_printer_error):
9419         * device-msw.c (msprinter_init_device):
9420         * device-msw.c (ensure_not_printing):
9421         * device-msw.c (plist_get_margin):
9422         * device-msw.c (Fmsprinter_select_settings):
9423         * device-msw.c (finalize_devmode):
9424         * device-msw.c (Fmsprinter_settings_despecialize):
9425         * device-msw.c (signal_enum_priner_error):
9426         * extents.c (decode_extent):
9427         * extents.c (decode_map_extents_flags):
9428         * extents.c (decode_extent_at_flag):
9429         * extents.c (Fextent_at):
9430         * extents.c (Fextents_at):
9431         * extents.c (symbol_to_glyph_layout):
9432         [[[[2]]]] Use structured errors.
9433
9434         * dialog-msw.c:
9435         * dialog-msw.c (mswindows_is_dialog_msg):
9436         * dialog-msw.c (mark_mswindows_dialog_id):
9437         * dialog-msw.c (dialog_proc):
9438         * dialog-msw.c (handle_question_dialog_box):
9439         * dialog-msw.c (syms_of_dialog_mswindows):
9440         Define new object to clean up marking; use it as a dialog identifier.
9441         Call new delete-dialog-box-hook.
9442
9443         * dialog-x.c (dbox_selection_callback):
9444         * dialog-x.c (dbox_descriptor_to_widget_value):
9445         * dialog-x.c (x_make_dialog_box_internal):
9446         Call new delete-dialog-box-hook.
9447         Return an id.
9448
9449         * dialog.c:
9450         * dialog.c (syms_of_dialog):
9451         * dialog.c (vars_of_dialog):
9452         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9453
9454         * eval.c:
9455         * eval.c (signal_call_debugger):
9456         when noninteractive, output stack traces on the console instead
9457         of in a (never-seen) buffer.
9458
9459         * eval.c (signal_type_error):
9460         * eval.c (invalid_argument_2):
9461         * lisp.h:
9462         new funs for use w/structured errors.
9463
9464         * event-Xt.c:
9465         * event-Xt.c (x_to_emacs_keysym):
9466         * event-Xt.c (describe_event):
9467         * event-Xt.c (emacs_Xt_event_handler):
9468         * event-Xt.c (vars_of_event_Xt):
9469         * event-msw.c:
9470         * event-msw.c (mswindows_wnd_proc):
9471         * event-msw.c (vars_of_event_mswindows):
9472         rename {x,mswindows}-debug-events to debug-{}-events for
9473         consistency with other debug-foo variables.
9474
9475         * event-stream.c:
9476         document next-event more clearly.
9477
9478         * fileio.c (Ffile_name_directory):
9479         * fileio.c (Ffile_name_nondirectory):
9480         * fileio.c (Funhandled_file_name_directory):
9481         * fileio.c (file_name_as_directory):
9482         * fileio.c (Ffile_name_as_directory):
9483         * fileio.c (directory_file_name):
9484         * fileio.c (Fdirectory_file_name):
9485         * fileio.c (Fmake_temp_name):
9486         * fileio.c (Ffile_truename):
9487         * fileio.c (Fsubstitute_in_file_name):
9488         * fileio.c (expand_and_dir_to_file):
9489         * fileio.c (barf_or_query_if_file_exists):
9490         * fileio.c (check_executable):
9491         * fileio.c (Ffile_exists_p):
9492         * fileio.c (Ffile_writable_p):
9493         * fileio.c (Ffile_directory_p):
9494         * fileio.c (Ffile_regular_p):
9495         * fileio.c (Ffile_modes):
9496         * fileio.c (Ffile_newer_than_file_p):
9497         * fileio.c (Fverify_visited_file_modtime):
9498         * fileio.c (Fset_visited_file_modtime):
9499         * fileio.c (auto_save_1):
9500         (1). (2).
9501         fix up gcpro's.
9502
9503         * frame-msw.c:
9504         * frame-msw.c (mswindows_init_frame_1):
9505         * frame-msw.c (mswindows_enable_frame):
9506         * frame-msw.c (error_frame_unsizable):
9507         * frame-msw.c (msprinter_init_frame_1):
9508         * frame-msw.c (msprinter_init_frame_3):
9509         * frame-msw.c (console_type_create_frame_mswindows):
9510         (2).
9511         implement new enable/disable frame methods.
9512
9513         * frame-x.c:
9514         * frame-x.c (x_enable_frame):
9515         * frame-x.c (console_type_create_frame_x):
9516         implement new enable/disable frame methods.
9517
9518         * frame.c:
9519         * frame.c (Fdisable_frame):
9520         * frame.c (syms_of_frame):
9521         * frame.h (struct frame):
9522         implement new enable/disable frame methods/functions.
9523
9524         * general-slots.h:
9525         add initial-focus.
9526
9527         * glyphs-msw.c (mswindows_widget_instantiate):
9528         comment that initial-focus should be implemented.
9529
9530         * glyphs-widget.c:
9531         * glyphs-widget.c (check_valid_instantiator):
9532         * glyphs-widget.c (check_valid_orientation):
9533         * glyphs-widget.c (check_valid_tab_orientation):
9534         * glyphs-widget.c (check_valid_justification):
9535         * glyphs-widget.c (check_valid_border):
9536         * glyphs-widget.c (check_valid_callback):
9537         * glyphs-widget.c (check_valid_int_or_function):
9538         * glyphs-widget.c (check_valid_string_or_vector):
9539         * glyphs-widget.c (check_valid_item_list_1):
9540         * glyphs-widget.c (widget_validate):
9541         * glyphs-widget.c (combo_box_validate):
9542         * glyphs-widget.c (widget_instantiate):
9543         * glyphs-widget.c (syms_of_glyphs_widget):
9544         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9545         * glyphs-widget.c (image_instantiator_combo_box):
9546         * glyphs-widget.c (image_instantiator_scrollbar):
9547         * glyphs-widget.c (image_instantiator_tab_control):
9548         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9549         (2).
9550         support (unimplemented) keyword initial-focus.
9551         reindent long macros.
9552
9553         * glyphs-x.c (x_redisplay_widget):
9554         * glyphs-x.c (x_button_instantiate):
9555         * glyphs-x.c (x_button_redisplay):
9556         * glyphs-x.c (x_progress_gauge_instantiate):
9557         * glyphs-x.c (x_edit_field_instantiate):
9558         * glyphs-x.c (x_combo_box_instantiate):
9559         * glyphs-x.c (x_tab_control_instantiate):
9560         * glyphs-x.c (x_label_instantiate):
9561         * gui-x.c:
9562         * gui-x.c (button_item_to_widget_value):
9563         * gui-x.c (gui_items_to_widget_values_1):
9564         * gui-x.c (gui_item_children_to_widget_values):
9565         * gui-x.c (gui_items_to_widget_values):
9566         * gui-x.h:
9567         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9568         add new flag to gui-parsing routines to indicate whether
9569         accelerator specs should be supported.
9570
9571         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9572
9573         * glyphs.h (struct Lisp_Image_Instance):
9574         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9575         add initial-focus flag.
9576
9577         * gui.c:
9578         * gui.c (syms_of_gui):
9579         * gui.c (vars_of_gui):
9580         clean up menu-no-selection-hook.
9581
9582         * gui.h:
9583         support delete-dialog-box-hook.
9584
9585         * lread.c (Fload_internal):
9586         * lread.c (locate_file_in_directory_mapper):
9587         (1).
9588
9589         * lrecord.h:
9590         * lrecord.h (struct toolbar_button):
9591         * lrecord.h (syms_of_toolbar):
9592         document how to create a new object.
9593
9594         * menubar-msw.c (mswindows_char_is_accelerator):
9595         may be called on frames w/o menus.
9596
9597         * menubar.c (vars_of_menubar):
9598         clean up :filter docs.
9599
9600         * nt.c (readdir):
9601         * ntproc.c:
9602         (1).
9603
9604         * process-nt.c:
9605         * process-nt.c (validate_signal_number):
9606         * process-nt.c (signal_cannot_launch):
9607         * process-nt.c (nt_create_process):
9608         * process-nt.c (nt_send_process):
9609         * process-nt.c (nt_kill_child_process):
9610         * process-nt.c (nt_open_network_stream):
9611         * process-nt.c (syms_of_process_nt):
9612         (2).
9613         delete quote-handling.  call new lisp code that does it better.
9614
9615         * process-unix.c (connect_to_file_descriptor):
9616         * process-unix.c (allocate_pty):
9617         * process-unix.c (unix_send_process):
9618         * process-unix.c (unix_kill_child_process):
9619         * process-unix.c (unix_open_network_stream):
9620         * process-unix.c (unix_open_multicast_group):
9621         (1). (2).
9622
9623         * process.c:
9624         * process.c (Fstart_process_internal):
9625         (2).  need to canonicalize process path even if absolute.
9626
9627         * select-msw.c (symbol_to_ms_cf):
9628         * select-msw.c (ms_cf_to_symbol):
9629         * select-msw.c (cf_is_autofreed):
9630         * select-msw.c (mswindows_destroy_selection):
9631         * select.c:
9632         * select.c (syms_of_select):
9633         * select.h:
9634         support dibv5, fix bugs. (from Mike Alexander)
9635
9636         * select.c (Fget_selection_internal):
9637         * select.c (select_convert_out):
9638
9639         * sysdep.c:
9640         * sysdep.c (xemacs_stat):
9641         renamed.
9642
9643         * sysdep.c (mkdir):
9644         * sysdep.c (rmdir):
9645         but keep original stat() here because we provide encapsulation
9646         around these funs.
9647
9648         * sysfile.h:
9649         * sysfile.h (fstat):
9650         remove stat garbage.
9651
9652         * syswindows.h:
9653         fix X/MSW conflict.
9654         don't include tchar.h.  it's inappropriate because it makes
9655         compile-time distinctions when we want runtime distinctions.
9656         (we provide our own tchar replacements)
9657
9658         * toolbar.c:
9659         use default object printer for toolbar-button.
9660
9661         * unexcw.c:
9662         make sure we don't encapsulate.
9663
9664         * window.c (vars_of_window):
9665         emphasize that temp-buffer-show-hook is obsolete.
9666
9667 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9668
9669         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9670         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9671
9672         * events.c (Fevent_timestamp_lessp):
9673         Not 64-bit clean.  Use EMACS_INT, not int.
9674
9675 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9676
9677         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9678         unsigned int and changed the last enum to
9679         lrecord_type_last_built_in_type.
9680         (lrecord_implementations_table): changed prototype to know how
9681         long the array is supposed to be.
9682         (lrecord_type_count): new unsigned int to keep track of the
9683         current number of lisp lrecord types.
9684         (DEFINE_EXTERNAL_LRECORD):
9685         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9686         dynamic-modules to declare new lisp types. They are the same
9687         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9688         int for each new type, and increment lrecord_type_count by 1.
9689
9690         * alloc.c (lrecord_implementations_table): Changed to reference
9691         lrecord_type_last_built_in_type for the size of the array.
9692         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9693
9694 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9695
9696         * glyphs.h (check_valid_item_list): Renamed from
9697         check_valid_item_list_1.
9698
9699 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9700
9701         * select.c (Qselect_coerce): New.
9702         * select.c (Vselection_coercion_alist): New.
9703         * select.c (syms_of_select): Declare.
9704         * select.c (get-selection-internal): Use it.
9705         Use the new select-coerce functionality.
9706
9707         * select.c (select_coerce): New.
9708         * select.h (select_coerce): Declare.
9709         New function to coerce one type of data into another.
9710
9711 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9712
9713         * callproc.c (Fcall_process_internal):
9714         (Fcall_process_internal):
9715         * process-unix.c (unix_create_process):
9716         Save and restore the value of errno, so that error messages are accurate.
9717
9718 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9719
9720         * elhash.c (print_hash_table):
9721         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9722         Prettify docstrings and indentation.
9723
9724 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9725
9726         * window.c (Fwindow_pixel_edges): Subtract frame border and
9727         gutter size.
9728
9729 2000-07-31  Andy Piper  <andy@xemacs.org>
9730
9731         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9732         will acknowledge the change.
9733
9734         * glyphs.h: declare tab_control_order_only_changed.
9735
9736         * glyphs-x.c (x_tab_control_redisplay): use
9737         tab_control_order_only_changed.
9738
9739         * glyphs-widget.c (tab_control_order_only_changed): new function.
9740
9741         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9742         tab_control_order_only_changed.
9743
9744         * gui.c (gui_item_equal_sans_selected): new function.
9745         (gui_item_equal): use it.
9746
9747         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9748         :properties in favor of :items..
9749
9750         * glyphs-widget.c (check_valid_item_list): rename from
9751         check_valid_item_list_1.
9752         (check_valid_item_list_1): renamed.
9753         (combo_box_validate): deprecate :properties in favor of :items.
9754         (widget_instantiate): ditto.
9755         (tab_control_update): ditto.
9756         (image_instantiator_combo_box): ditto.
9757         (image_instantiator_tree_view): ditto.
9758         (image_instantiator_tab_control): ditto.
9759         (layout_post_instantiate): remove dead code.
9760
9761         * print.c (debug_print_no_newline): only write to debugger if in
9762         WIN32_NATIVE.
9763
9764         * elhash.c (Fmake_hash_table): update doc string.
9765
9766         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9767         messages whilst in GC. This at least stops XEmacs crashing but has
9768         the potential for wierd behaviour.
9769
9770 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9771
9772         * config.h.in:
9773         Make existence of s&m files optional.
9774
9775         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9776         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9777         * s/gnu.h: Remove HAVE_GETLOADAVG.
9778         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9779         * s/sol2.h: Remove HAVE_GETLOADAVG.
9780         * lisp.h: Remove getloadavg() declaration.
9781         * fns.c:
9782         Include <sys/loadavg.h> if available.
9783         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9784         * config.h.in:  Group together getloadavg()-related macros.
9785         Use only configure-time tests to detect getloadavg().
9786
9787 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9788
9789         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9790
9791 2000-07-25  Andy Piper  <andy@xemacs.org>
9792
9793         * syswindows.h: add tchar.h for native builds.
9794
9795         * frame.c (syms_of_frame): remove set-glyph-image.
9796
9797         * general-slots.h: add Qset_glyph_image.
9798
9799         * glyphs-widget.c (layout_update): add domain arg to
9800         set-glyph-image.
9801         (syms_of_glyphs_widget): remove set-glyph-image.
9802
9803 2000-07-23  Ben Wing  <ben@xemacs.org>
9804
9805         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9806         Vpopup_frame_list.
9807
9808 2000-07-22  Andy Piper  <andy@xemacs.org>
9809
9810         * symsinit.h: add syms_of_win32().
9811
9812         * gui-msw.c (syms_of_gui_mswindows): remove
9813         Fmswindows_shell_execute.
9814         (Fmswindows_shell_execute): moved to win32.c.
9815
9816         * emacs.c (main_1): add syms_of_win32 ().
9817
9818         * win32.c (init_potentially_nonexistent_functions): rewrite in
9819         compiler-friendly terms.
9820         (Fmswindows_shell_execute): move here from gui-msw.c.
9821         (syms_of_win32): new.
9822
9823         * device-msw.c (Fmswindows_printer_list): clean up args to
9824         EnumPrinters.
9825         Don't include tchar under cygwin or mingw.
9826         (msprinter_default_printer): make cygwin-friendly.
9827
9828 2000-07-21  Andy Piper  <andy@xemacs.org>
9829
9830         * glyphs-widget.c (image_instantiator_tree_view): use tab
9831         control's update function.
9832         (layout_property): new function. Retrieve items.
9833
9834         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9835         function. Re-populate the tree view from the pending items.
9836
9837         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9838         is designated the parent if the domain is an image instance. This
9839         is needed so that dirtiness can be cascade up the hierarchy and
9840         thus for layout children to be redisplayed correctly.
9841         (allocate_image_instance): rename glyph -> parent.
9842
9843         * redisplay.h: change redisplay_output_layout signature.
9844
9845         * redisplay-msw.c (mswindows_output_display_block): use domain
9846         arg.
9847
9848         * redisplay-x.c (x_output_display_block): use domain arg.
9849
9850 2000-07-10  Andy Piper  <andy@xemacs.org>
9851
9852         * window.c (Fset_window_configuration): add comment.
9853
9854         * redisplay-output.c (compare_runes):
9855         (redisplay_output_subwindow): redisplay rather than update subwindow.
9856         (redisplay_output_layout): ditto.
9857
9858         * redisplay-msw.c (mswindows_frame_output_end):
9859         (mswindows_frame_output_end): make defer window pos optional.
9860
9861         * lisp.h: add Flast.
9862
9863         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9864         normalize method. Change update method to be for changed
9865         instantiators. Add redisplay method. Change signature of layout
9866         method.
9867         (struct Lisp_Image_Instance): add instantiator.
9868         (IMAGE_INSTANCE_INSTANTIATOR): new.
9869         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9870         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9871         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9872
9873         * glyphs.c:
9874         (find_instantiator_differences): new function.
9875         (Fset_instantiator_property): new convenience function.
9876         (check_image_instance_structure): strictly check for vector
9877         instantiators.
9878         (normalize_image_instantiator): make non-static.
9879         (instantiate_image_instantiator): pass on dest_mask and use new
9880         signatures for image_instance_layout and friends.
9881         (mark_image_instance): mark the instantiator. Mark the subwindow
9882         face not the widget face.
9883         (image_instance_equal): add instantiator.
9884         (image_instance_hash): ditto.
9885         (allocate_image_instance): ditto.
9886         (Fset_image_instance_property): removed.
9887         (Fimage_instance_file_name): ditto.
9888         (Fcolorize_image_instance): ditto.
9889         (image_instance_layout): add offsets to be set.
9890         (update_image_instance): new function. update an image instance
9891         from its changed instantiator.
9892         (inherit_normalize): add dest_mask.
9893         (xbm_normalize): ditto.
9894         (xface_normalize): ditto.
9895         (xpm_normalize): ditto.
9896         (text_update): set_property -> update.
9897         (image_instantiate): use the glyph identity as a hash key, not the
9898         instantiator.
9899         (glyph_width): use new image_instance_layout signature.
9900         (glyph_ascent): ditto.
9901         (glyph_descent): ditto.
9902         (glyph_height): ditto.
9903         (glyph_query_geometry): ressurrect.
9904         (glyph_layout): ditto.
9905         (redisplay_subwindow): update -> redisplay.
9906         (syms_of_glyphs): add Fset_instantiator_property.
9907         (image_instantiator_format_create): set_property -> update.
9908
9909         * glyphs-x.c:
9910         (autodetect_normalize): add dest_maks to signature.
9911         (x_redisplay_subwindow): update -> redisplay.
9912         (x_redisplay_widget): ditto.
9913         (x_button_redisplay): ditto.
9914         (x_progress_gauge_redisplay): ditto.
9915         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9916         stacking order.
9917         (console_type_create_glyphs_x): update -> redisplay.
9918         (image_instantiator_format_create_glyphs_x): ditto.
9919
9920         * glyphs-widget.c:
9921         (check_valid_instantiator): disallow glyphs in the instantiator,
9922         they must now be vectors.
9923         (check_valid_instantiator_list): ditto.
9924         (glyph_instantiator_to_glyph): use internal symbol rather than
9925         intern.
9926         (widget_update): renamed from widget_set_property. Call cascaded
9927         update methods.
9928         (redisplay_widget): renamed from update_widget.
9929         (widget_layout): image_instance_layout now takes position as well
9930         as size.
9931         (widget_normalize): ditto.
9932         (widget_instantiate): ditto.
9933         (tab_control_query_geometry) ditto.:
9934         (tab_control_update): renamed from tab_control_set_property.
9935         (progress_gauge_update): set_property -> update.
9936         (layout_normalize): rewrite so that child instantiators are
9937         normalized also.
9938         (layout_update): new function. Create glyphs from the normalized
9939         children and cope with any other layout keywords. We do not
9940         instantiate children here that will be take care of by
9941         redisplay_output_layout.
9942         (layout_instantiate): call layout_update and not much else.
9943         (layout_post_instantiate): not sure whether this is needed
9944         anymore.
9945         (layout_query_geometry): query glyph geometry rather than
9946         image_instance geometry.
9947         (layout_layout): set offsets from pass in parameters. Use glyph
9948         geometry and layout functions rather than image instance ones.
9949         (native_layout_layout): ditto.
9950         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9951         (image_instantiator_widget): set_property -> update.
9952         (image_instantiator_buttons): ditto.
9953         (image_instantiator_progress_guage): ditto.
9954         (image_instantiator_tab_control): ditto.
9955         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9956         (image_instantiator_layout): add update method.
9957
9958         * glyphs-msw.c (bmp_normalize):
9959         (mswindows_resource_normalize): add dest_mask so that it can be
9960         proprogated by layout_normalize.
9961         (begin_defer_window_pos): make optional because it may not be the
9962         right thing to do and it introduces differences with X.
9963         (mswindows_unmap_subwindow): ditto.
9964         (mswindows_map_subwindow): ditto.
9965         (mswindows_redisplay_subwindow): renamed from
9966         mswindows_update_subwindow.
9967         (mswindows_redisplay_widget): ditto.
9968         (mswindows_button_redisplay): renamed from
9969         mswindows_button_update. Update is now what the instantiation
9970         function does for a changed instantiator.
9971         (mswindows_progress_gauge_instantiate): set the progress value
9972         here if appropriate.
9973         (mswindows_tab_control_redisplay): cope with re-ordering of the
9974         members of the tab widget by simply selecting the new top
9975         widget. This makes things appear ok if you click on a tab.
9976         (mswindows_combo_box_instantiate): image_instance_layout now takes
9977         position as well as size.
9978         (mswindows_progress_gauge_redisplay): renamed from
9979         mswindows_progress_gauge_update.
9980         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9981         (image_instantiator_format_create_glyphs_mswindows): ditto.
9982
9983         * glyphs-eimage.c (jpeg_normalize):
9984         (gif_normalize):
9985         (png_normalize):
9986         (tiff_normalize): add dest_mask so that it can be proprogated by
9987         layout_normalize.
9988
9989         * elhash.c:
9990         (print_hash_table):
9991         (hash_table_weakness_validate):
9992         (decode_hash_table_weakness):
9993         (Fhash_table_weakness):
9994         (Fhash_table_type):
9995         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9996
9997         * console.h (struct console_methods): move update_* to
9998         redisplay_*.
9999
10000 2000-07-20  Ben Wing  <ben@xemacs.org>
10001
10002         * *.[ch] (XSETOBJ): remove unused middle argument.
10003         lisp-disunion.h: correct wrap_object() to one argument.
10004
10005 2000-07-15  Ben Wing  <ben@xemacs.org>
10006
10007         * s/cygwin32.h:
10008         * s/cygwin32.h (CYGWIN_CONV_PATH):
10009         Add missing logb prototype for v1.1.
10010         Use post-b20 names and alias to pre-b20 names when pre-b20.
10011
10012         * s/windowsnt.h: [5].
10013
10014 2000-07-15  Ben Wing  <ben@xemacs.org>
10015
10016         * Makefile.in.in (x_objs):
10017         * Makefile.in.in (sheap_objs):
10018         * Makefile.in.in (objs):
10019         added win32.o, cosmetic cleanups.
10020
10021         * alloc.c (Fmake_byte_code):
10022         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10023         etc. macros which declare their own args now.
10024
10025         * alloc.c (syms_of_alloc):
10026         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10027
10028         * buffer.c:
10029         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10030
10031         * buffer.c (Fget_file_buffer):
10032         Fixed GCPRO problem.
10033
10034         * buffer.c (get_truename_buffer):
10035         Fixed comment about GC checking.
10036
10037         * buffer.c (syms_of_buffer):
10038         Undeclared those dedicated frame funs.
10039         [2].
10040
10041         * buffer.h:
10042         Define convenience macros for internal/external conversions.
10043         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10044         and Qenvironment_variable_encoding for cleaner code.
10045
10046         * bufslots.h:
10047         Remove dedicated-frame; in lisp.
10048
10049         * bytecode.c (funcall_compiled_function):
10050         [1].
10051
10052         * bytecode.c (syms_of_bytecode):
10053         [2].
10054
10055         * console-msw.c:
10056         * console-msw.c (mswindows_show_console): Rewrote.
10057
10058         * console-msw.c (Fmswindows_debugging_output): New.
10059         Sends to OutputDebugString (special MSWin debugger interface).
10060
10061         * console-msw.c (Fmswindows_message_box):
10062         Fixed stupid bugs so it works when called from kill-emacs.
10063
10064         * console-msw.c (syms_of_console_mswindows):
10065         Declare Fmswindows_debugging_output.
10066
10067         * console-msw.h:
10068         New MSWin prototypes.
10069
10070         * console-msw.h (struct mswindows_frame):
10071         New entry last-click-mods for improved button-modifier support.
10072
10073         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10074         New struct entry `popup' with corresponding accessor.
10075
10076         * console-x.c:
10077         * console-x.c (split_up_display_spec):
10078         * console-x.c (get_display_arg_connection):
10079         * console-x.c (x_semi_canonicalize_console_connection):
10080         * console-x.c (x_canonicalize_device_connection):
10081         [[[6]]]: Change char to more specific type.
10082         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10083
10084         * console-x.c (x_semi_canonicalize_console_connection):
10085         * console-x.c (x_canonicalize_device_connection):
10086         [[[9]]]: Fix up error signalling to use new structured error system.
10087
10088         * console-x.h:
10089         [[[4]]]: Define codesys aliases:
10090         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10091         Qx_color_name_encoding, Qx_display_name_encoding.
10092
10093         * console.h (struct console_methods):
10094         New method make_dialog_box_internal supersedes older
10095         popup_dialog_box method.
10096
10097         * data.c:
10098         Define many new errors, part of new structured errors.
10099
10100         * data.c (init_errors_once_early):
10101         * data.c (syms_of_data):
10102         [2].
10103
10104         * device-msw.c (mswindows_init_device):
10105         [[[5]]]: Cleanup to support NT 3.51.
10106
10107         * device-msw.c (decode_devmode): Cleanup.
10108
10109         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10110         * device-msw.c (mswindows_handle_print_dialog_box):
10111         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10112         * device-msw.c (syms_of_device_mswindows):
10113         Delete the dialog box primitives recently introduced by Kirill and
10114         instead interface to general dialog box interface.
10115
10116         * device-x.c:
10117         * device-x.c (compute_x_app_name):
10118         * device-x.c (x_init_device):
10119         * device-x.c (Fx_valid_keysym_name_p):
10120         * device-x.c (Fx_set_font_path):
10121         [6].
10122         [7].
10123
10124         * device.h (wrap_device): New.
10125         First of its kind; meant to replace XSETDEVICE.
10126
10127         * dialog-msw.c: Many file-dialog symbols.
10128
10129         * dialog-msw.c (mswindows_register_popup_frame): New.
10130         * dialog-msw.c (mswindows_is_dialog_msg): New.
10131         For supporting kbd traversal in dialog boxes.
10132
10133         * dialog-msw.c (dialog_proc):
10134         Support hitting ESC in dialogs.
10135
10136         * dialog-msw.c (struct):
10137         Common dialog box errors.
10138
10139         * dialog-msw.c (handle_file_dialog_box): New.
10140         Add file dialog code.
10141
10142         * dialog-msw.c (handle_question_dialog_box):
10143         Redo existing code to support new question dialog syntax.
10144
10145         * dialog-msw.c (console_type_create_dialog_mswindows):
10146         We support new dialog console method.
10147
10148         * dialog-msw.c (syms_of_dialog_mswindows):
10149         * dialog-msw.c (vars_of_dialog_mswindows):
10150         New file dialog symbols, vars.
10151
10152         * dialog-x.c:
10153         * dialog-x.c (maybe_run_dbox_text_callback):
10154         * dialog-x.c (dbox_descriptor_to_widget_value):
10155         * dialog-x.c (x_make_dialog_box_internal):
10156         * dialog-x.c (console_type_create_dialog_x):
10157         Mule-ize entire file.
10158         Redo to support question dialog syntax.
10159         [6].
10160
10161         * dialog.c:
10162         * dialog.c (Fmake_dialog_box_internal):
10163         * dialog.c (syms_of_dialog):
10164         Kill old popup-dialog-box, replace with new primitive.
10165         Just call device method or signal error.
10166
10167         * eldap.c (Fldap_open):
10168         * eldap.c (Fldap_search_basic):
10169         * eldap.c (Fldap_add):
10170         * eldap.c (Fldap_modify):
10171         [1].
10172         [7].
10173
10174         * emacs.c:
10175         * emacs.c (make_arg_list_1):
10176         * emacs.c (make_arg_list):
10177         Mule-ize call to dll_init().
10178         [6].
10179         [8].
10180
10181         * emacs.c (make_argc_argv):
10182         * emacs.c (free_argc_argv):
10183         * emacs.c (init_cmdargs):
10184         * emacs.c (main_1):
10185         * emacs.c (Fkill_emacs):
10186         * emacs.c (Fdump_emacs):
10187         Update comments about what can be used in syms_* etc.
10188         Call init_win32() when necessary.
10189         Fix up MS Win dialog box in kill-buffer to actually work right.
10190         [7].
10191
10192         * eval.c:
10193         * eval.c (For):
10194         * eval.c (Fand):
10195         * eval.c (Fprogn):
10196         * eval.c (Fprog1):
10197         * eval.c (Fprog2):
10198         * eval.c (FletX):
10199         * eval.c (Flet):
10200         * eval.c (condition_case_3):
10201         * eval.c (Feval):
10202         * eval.c (function_argcount):
10203         * eval.c (funcall_lambda):
10204         [1].
10205
10206         * eval.c (type_error): New.
10207         * eval.c (maybe_type_error): New.
10208         * eval.c (continuable_type_error): New.
10209         * eval.c (maybe_continuable_type_error): New.
10210         * eval.c (type_error_with_frob): New.
10211         * eval.c (maybe_type_error_with_frob): New.
10212         * eval.c (continuable_type_error_with_frob): New.
10213         * eval.c (maybe_continuable_type_error_with_frob): New.
10214         New functions for use with structured errors.
10215
10216         * event-Xt.c:
10217         * event-Xt.c (x_event_to_emacs_event):
10218         Buttons are now modifiers too.
10219
10220         * event-Xt.c (emacs_Xt_current_event_timestamp):
10221         Implement new event method.
10222         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10223
10224         * event-msw.c:
10225         * event-msw.c (ntpipe_shove_writer): [5].
10226         * event-msw.c (mswindows_enqueue_mouse_button_event):
10227         * event-msw.c (mswindows_drain_windows_queue):
10228         * event-msw.c (mswindows_wnd_proc): [7].
10229         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10230         * event-msw.c (mswindows_modifier_state):
10231         Throughout: support new button modifiers.
10232
10233         * event-msw.c (emacs_mswindows_current_event_timestamp):
10234         Implement new event method.
10235         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10236
10237         * event-stream.c:
10238         * event-stream.c (event_stream_current_event_timestamp): New.
10239         * event-stream.c (maybe_kbd_translate): New functionality.
10240         * event-stream.c (vars_of_event_stream):
10241         Document new kbd-translate-table functionality.
10242
10243         * event-stream.c (Fcurrent_event_timestamp): New.
10244         New primitive for use in fabricated events.
10245         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10246
10247         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10248
10249         * events.c:
10250         * events.c (Fmake_event):
10251         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10252         [1].
10253         [9].
10254
10255         * events.c (format_event_object): fix gcc warnings.
10256
10257         * events.c (Fevent_timestamp): Document new primitives.
10258
10259         * events.c (TIMESTAMP_HALFSPACE): New.
10260
10261         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10262         comparing timestamps correctly (half-space algorithm).
10263
10264         * events.c (Fevent_modifier_bits): Doc fix.
10265
10266         * events.c (Fevent_modifiers): Major doc addition.
10267         * events.c (event_x_y_pixel_internal): Typo fix.
10268         * events.c (syms_of_events): Declare new primitives.
10269
10270         * events.h:
10271         Update long comment for button modifiers, timestamps.
10272
10273         * events.h (struct event_stream):
10274         New current_event_timestamp method.
10275
10276         * extents.c:
10277         * extents.c (extent_in_region_p):
10278         * extents.c (decode_extent):
10279         * extents.c (Fset_extent_parent):
10280         * extents.c (decode_map_extents_flags):
10281         Fix gcc warnings.
10282         [9].
10283
10284         * extents.c (struct extent_at_arg):
10285         * extents.c (decode_extent_at_flag):
10286         * extents.c (extent_at_mapper):
10287         * extents.c (extent_at_bytind):
10288         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10289         * extents.c (Fextents_at): New primitive. [9].
10290         * extents.c (symbol_to_glyph_layout): [9].
10291         Support new primitive `extents-at'.
10292
10293
10294         * extents.c (get_text_property_bytind):
10295         extent_at_bytind has another arg.
10296         [9].
10297
10298         * extents.c (syms_of_extents): New primitive.
10299
10300         * file-coding.c (Fmake_coding_system): [1].
10301         * file-coding.c (subsidiary_coding_system): fix gcc warning
10302         * file-coding.c (syms_of_file_coding): [2].
10303
10304         * fileio.c (Fexpand_file_name):
10305         * fileio.c (Fsysnetunam):
10306         * fileio.c (Ffile_exists_p):
10307         * fileio.c (Ffile_executable_p):
10308         * fileio.c (Fverify_visited_file_modtime):
10309         Clean up GCPROing.
10310
10311         * fileio.c (syms_of_fileio): [2].
10312
10313         * filelock.c (lock_file_1):
10314         * filelock.c (current_lock_owner):
10315         * filelock.c (lock_if_free):
10316         * filelock.c (lock_file):
10317         * filelock.c (unlock_file):
10318         Clean up GCPROing.
10319
10320         * fns.c (concat): Fix gcc warning.
10321
10322         * fns.c (Fmember):
10323         * fns.c (Fold_member):
10324         * fns.c (Fmemq):
10325         * fns.c (Fold_memq):
10326         * fns.c (memq_no_quit):
10327         * fns.c (Fassoc):
10328         * fns.c (Fold_assoc):
10329         * fns.c (Fassq):
10330         * fns.c (Fold_assq):
10331         * fns.c (assq_no_quit):
10332         * fns.c (Frassoc):
10333         * fns.c (Fold_rassoc):
10334         * fns.c (Frassq):
10335         * fns.c (Fold_rassq):
10336         * fns.c (rassq_no_quit):
10337         * fns.c (Fdelete):
10338         * fns.c (Fold_delete):
10339         * fns.c (Fdelq):
10340         * fns.c (Fold_delq):
10341         * fns.c (delq_no_quit):
10342         * fns.c (Fremassoc):
10343         * fns.c (Fremassq):
10344         * fns.c (remassq_no_quit):
10345         * fns.c (Fremrassoc):
10346         * fns.c (Fremrassq):
10347         * fns.c (remrassq_no_quit):
10348         * fns.c (Freverse):
10349         * fns.c (mapcar1):
10350         [1].
10351
10352         * frame-msw.c (mswindows_init_frame_1):
10353         * frame-msw.c (mswindows_delete_frame):
10354         Register popups with dialog code so keyboard traversing works.
10355
10356         * frame-tty.c (tty_raise_frame_no_select): [1].
10357
10358         * frame-x.c:
10359         * frame-x.c (x_set_frame_text_value):
10360         * frame-x.c (x_set_frame_properties):
10361         * frame-x.c (x_create_widgets):
10362         [7].
10363
10364         * frame.c:
10365         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10366
10367         * frame.h (wrap_frame): New.
10368         Macro like wrap_device.
10369
10370         * general.c:
10371         * general.c (SYMBOL):
10372         * general.c (syms_of_general):
10373         Major reorg.  This is now just a wrapper and symbols themselves
10374         are listed in general-slots.h.
10375
10376         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10377         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10378
10379         * glyphs-msw.c (mswindows_native_layout_instantiate):
10380         Add DS_CONTROL so keyboard traversal will work.
10381
10382         * glyphs-widget.c:
10383         * glyphs-widget.c (syms_of_glyphs_widget):
10384         Move some symbols to general-slots.h.
10385
10386         * glyphs-x.c:
10387         * glyphs-x.c (xbm_instantiate_1):
10388         * glyphs-x.c (x_xbm_instantiate):
10389         * glyphs-x.c (x_xface_instantiate):
10390         * glyphs-x.c (autodetect_instantiate):
10391         * glyphs-x.c (cursor_font_instantiate):
10392         * glyphs-x.c (x_update_widget):
10393         * glyphs-x.c (x_widget_instantiate):
10394         * glyphs.c (bitmap_to_lisp_data):
10395         * glyphs.c (pixmap_to_lisp_data):
10396         [7].
10397
10398         * glyphs.c (syms_of_glyphs):
10399         [2].
10400
10401         * gui-x.c:
10402         * gui-x.c (print_widget_value):
10403         * gui-x.c (menu_separator_style_and_to_external):
10404         * gui-x.c (add_accel_and_to_external):
10405         * gui-x.c (button_item_to_widget_value):
10406         * gui-x.c (gui_items_to_widget_values_1):
10407         * gui-x.c (gui_items_to_widget_values):
10408         * gui-x.c (syms_of_gui_x):
10409         * gui-x.c (vars_of_gui_x):
10410         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10411         [9].
10412
10413         * gui-x.h:
10414         Muleize, prototype changes matching gui-x.c.
10415
10416         * gui.c:
10417         * gui.c (separator_string_p):
10418         * gui.c (gui_item_add_keyval_pair):
10419         * gui.c (make_gui_item_from_keywords_internal):
10420         * gui.c (signal_too_long_error):
10421         * gui.c (parse_gui_item_tree_item):
10422         * gui.c (syms_of_gui):
10423         * gui.c (vars_of_gui):
10424         * gui.h:
10425         menu-no-selection-hook moved here (used by MSWin).
10426         Move some symbols to general-slots.h.
10427         [6].
10428         [9].
10429
10430         * insdel.c (get_buffer_pos_char):
10431         * insdel.c (get_buffer_range_char):
10432         Add GC comments.
10433
10434         * keymap.c (keymap_lookup_directly):
10435         * keymap.c (keymap_store):
10436         * keymap.c (ensure_meta_prefix_char_keymapp):
10437         * keymap.c (describe_map):
10438         * keymap.h:
10439         Support new button modifiers.
10440
10441         * lisp-disunion.h (wrap_object):
10442         * lisp-disunion.h (XSETOBJ):
10443         Rename make_obj to wrap_object.
10444
10445         * lisp-union.h:
10446         * lisp-union.h (make_int):
10447         * lisp-union.h (make_char):
10448         Support wrap_object.
10449
10450         * lisp.h:
10451         * lisp.h (LIST_LOOP):
10452         * lisp.h (EXTERNAL_LIST_LOOP):
10453         * lisp.h (LIST_LOOP_2):
10454         * lisp.h (EXTERNAL_LIST_LOOP_1):
10455         * lisp.h (EXTERNAL_LIST_LOOP_2):
10456         * lisp.h (EXTERNAL_LIST_LOOP_3):
10457         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10458         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10459         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10460         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10461         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10462         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10463         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10464         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10465         * lisp.h (struct Lisp_Symbol):
10466         * lisp.h (maybe_continuable_error_with_frob):
10467         Fix up section comments.
10468         Add new types for char to indicate usage.
10469         Delete symbols auto-generated from general-slots.h.
10470         Add prototypes for structured error functions.
10471         Add long comments describing looping macros and change interface
10472         so that lvalues are automatically declared.
10473         Add NO_DECLARE macro in case callers want to declare lvalues
10474         themselves.
10475
10476         * lread.c (read_syntax_error):
10477         * lread.c (continuable_read_syntax_error):
10478         * lread.c (read_structure):
10479         * lread.c (sequence_reader):
10480         * lread.c (read_list_conser):
10481         * lread.c (read_compiled_function):
10482         Rename syntax_error and continuable_syntax_error to avoid clash
10483         with same-named structured error functions.
10484
10485         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10486         * menubar-msw.c (populate_menu_add_item):
10487         * menubar-msw.c (populate_or_checksum_helper):
10488         [5].
10489         [9].
10490
10491         * menubar-x.c:
10492         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10493         Mule-ize whole file.
10494
10495         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10496
10497         * mule-charset.c (Fmake_charset):
10498         * mule-wnnfns.c (Fwnn_set_param):
10499         [1].
10500
10501         * ntproc.c (create_child):
10502         * ntproc.c (Fwin32_set_current_locale):
10503         Add comments portending doom.
10504
10505         * objects-msw.c:
10506         * objects-msw.c (old_font_enum_callback_2):
10507         * objects-msw.c (font_enum_callback_1):
10508         * objects-msw.c (mswindows_enumerate_fonts):
10509         [5].
10510
10511         * objects-x.c:
10512         * objects-x.c (allocate_nearest_color):
10513         * objects-x.c (x_parse_nearest_color):
10514         * objects-x.c (x_initialize_color_instance):
10515         * objects-x.c (x_print_color_instance):
10516         * objects-x.c (x_finalize_color_instance):
10517         * objects-x.c (x_valid_color_name_p):
10518         * objects-x.c (x_initialize_font_instance):
10519         * objects-x.c (x_print_font_instance):
10520         * objects-x.c (valid_x_font_name_p):
10521         * objects-x.c (truename_via_FONT_prop):
10522         * objects-x.c (truename_via_random_props):
10523         * objects-x.c (truename_via_XListFonts):
10524         * objects-x.c (x_font_truename):
10525         * objects-x.c (x_font_instance_truename):
10526         * objects-x.c (x_font_instance_properties):
10527         * objects-x.c (x_list_fonts):
10528         * objects-x.c (x_find_charset_font):
10529         Mule-ize entire file.
10530         [7].
10531
10532         * objects-x.h:
10533         Mule-verify.
10534
10535         * print.c:
10536         * print.c (std_handle_out_external):
10537         * print.c (debug_print_no_newline):
10538         * print.c (syms_of_print):
10539         Output to all debugger kinds in debug-print.
10540         Fix console-output code under MSWin to actually work.
10541
10542         * process-nt.c (send_signal):
10543         * process-nt.c (nt_create_process):
10544         Use newer Unicode macros.
10545
10546         * process-unix.c (unix_create_process):
10547         * process-unix.c (unix_canonicalize_host_name):
10548         * process-unix.c (unix_open_network_stream):
10549         [7].
10550
10551         * scrollbar-x.c:
10552         Mule-verify.
10553
10554         * search.c (syms_of_search):
10555         [2].
10556
10557         * select-msw.c (mswindows_destroy_selection):
10558         Use LIST_LOOP_2.
10559
10560         * select-x.c (symbol_to_x_atom):
10561         [7].
10562
10563         * select.c (syms_of_select):
10564         [2].
10565
10566         * sound.c (Fplay_sound_file):
10567         [7].
10568
10569         * specifier.c:
10570         * specifier.c (decode_specifier_type):
10571         * specifier.c (Fvalid_specifier_locale_type_p):
10572         * specifier.c (check_valid_locale_or_locale_type):
10573         * specifier.c (decode_locale):
10574         * specifier.c (decode_locale_type):
10575         * specifier.c (decode_locale_list):
10576         * specifier.c (check_valid_domain):
10577         * specifier.c (decode_specifier_tag_set):
10578         * specifier.c (Fcanonicalize_tag_set):
10579         * specifier.c (Fdefine_specifier_tag):
10580         * specifier.c (Fspecifier_tag_predicate):
10581         * specifier.c (check_valid_inst_list):
10582         * specifier.c (check_valid_spec_list):
10583         * specifier.c (decode_how_to_add_specification):
10584         * specifier.c (check_modifiable_specifier):
10585         * specifier.c (specifier_add_spec):
10586         * specifier.c (boolean_validate):
10587         * specifier.c (display_table_validate):
10588         [9].
10589
10590         * specifier.c (syms_of_specifier):
10591         Move some symbols to general-slots.h.
10592         [2].
10593
10594         * symbols.c:
10595         * symbols.c (Fmapatoms):
10596         * symbols.c (Fapropos_internal):
10597         Add GCPROs.
10598
10599         * symbols.c (set_default_buffer_slot_variable):
10600         * symbols.c (set_default_console_slot_variable):
10601         [1].
10602
10603         * symbols.c (defsymbol_massage_name_1):
10604         * symbols.c (defkeyword_massage_name):
10605         * symbols.c (deferror_1):
10606         * symbols.c (deferror):
10607         * symbols.c (deferror_massage_name_and_message):
10608         * symeval.h:
10609         * symeval.h (DEFSYMBOL):
10610         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10611
10612         * symbols.c (syms_of_symbols):
10613         [2].
10614
10615         * symsinit.h:
10616         * symsinit.h (init_win32): New.
10617         Also new is syms_of_dialog_mswindows.
10618
10619         * syswindows.h:
10620         Add new Unicode macros, missing Cygwin wide-char functions,
10621         convenience conversion macros for Qmswindows_tstr, macros for
10622         encapsulating required MSWin <-> Cygwin filename conversions,
10623         prototype for dynamically-extracted (not in NT 3.51) functions.
10624
10625         * toolbar-x.c:
10626         Mule-verify.
10627
10628         * tooltalk.c (Fadd_tooltalk_message_arg):
10629         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10630         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10631         [7].
10632
10633         * tooltalk.c (syms_of_tooltalk):
10634         [2].
10635
10636         * unexnt.c:
10637         * unexnt.c (unexec):
10638         Fix up headers, declaration of unexec() to be more standard.
10639
10640 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10641
10642         * offix.h: Revert change to guard macros - they're used in offix.c!
10643
10644 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10645
10646         * lisp.h: Defsubred Fdelete.
10647
10648         * console-msw.h:  (msprinter_default_printer): Added.
10649
10650         * console-msw.c (msprinter_canonicalize_console_connection):
10651         (msprinter_canonicalize_device_connection): Added.
10652
10653         * device-msw.c (msprinter_default_printer):
10654         (Fmswingows_get_default_printer):
10655         (signal_enum_priner_error):
10656         (Fmswingows_printer_list): Added.
10657
10658 2000-07-19  Martin Buchholz <martin@xemacs.org>
10659
10660         * XEmacs 21.2.35 is released.
10661
10662 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10663
10664         * select-x.c (x_handle_selection_request):
10665         Text selected in xemacs and pasted into xterm failed to appear.
10666         Spelling fixes and cosmetic changes.
10667
10668 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10669
10670         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10671         XEmacs frame (fix for doubling chars in dialog boxes).
10672
10673 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10674
10675         * select.c (select_convert_in, select_convert_out):
10676         Don't call intern() every time.
10677
10678         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10679         * select.c (vars_of_select): Initialise them.
10680
10681 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10682
10683         * select.c (selection-coercible-types): New.
10684
10685         * select.c (own-selection-internal):
10686         * select.c (get-selection-internal):
10687         MULE bug fix - these should default to COMPOUND_TEXT and not
10688         STRING for MULE. I think.
10689
10690         * select.c (select_convert_out): Use selection-coercible-types
10691         to find types that we can attempt to perform coercions on.
10692
10693 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10694
10695         * mule-wnnfns.c:
10696         * mule-canna.c:
10697         Add coding: cookie to identify encoding.
10698
10699         * mule-canna.c (CANNA_mode_keys): make static.
10700         Use proper prototypes, even for functions of no arguments.
10701         Remove external prototype for Fding().
10702
10703         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10704
10705         * select.c (syms_of_select): Add missing DEFSUBR.
10706
10707 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10708
10709         * select.c (get_selection_internal, own_selection_internal):
10710         Make the type default to STRING, rather than placing a nil type
10711         into Vselection_alist.
10712
10713 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10714
10715         * gpmevent.c (tty_selection_exists_p):
10716         * gpmevent.c (tty_own_selection):
10717         Updated parameter lists.
10718
10719 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10720
10721         * select.h (selection-alist): Removed declaration.
10722
10723         * select.h (get_local_selection):
10724         * select.c (get_local_selection):
10725         Made static.
10726
10727         * select.h (convert_selection): Removed declaration.
10728         * select.c (convert_selection): Removed.
10729         This function belongs in Lisp.
10730
10731         * select.h (select_convert_in): Declare.
10732         * select.h (select_convert_out): Declare.
10733         * select.c (select_convert_in): New.
10734         * select.c (select_convert_out): New.
10735         New conversion functions for other files to call.
10736
10737         * select.h (select_notify_buffer_kill): Declare.
10738         * select.c (select_notify_buffer_kill): New.
10739         New functions that get called from kill-buffer.
10740
10741         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10742         X-specific lisp code.
10743
10744         * select.h: Declare some of the lisp-visible functions for
10745         external use.
10746
10747         * select.c (clean_local_selection_data): Removed. This was
10748         a disgusting function, and previously should have been in
10749         select-x.c in any case. The functionality is now provided
10750         in select-convert-from-integer (select.el).
10751
10752         * select.c (available-selection-types): Fixed stupidity where
10753         INTEGER and ATOM got added twice. Also add STRING when we see an
10754         extent.
10755
10756         * select.c (get-selection-internal): Removed symbol stripping. No
10757         longer causes conversion when data comes from the internal cache.
10758
10759         * select.c (syms_of_select): Added new functions.
10760
10761         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10762         error checking - previously this called abort!
10763
10764         * select-x.c (x_own_selection): Changed comment.
10765
10766         * select-x.c (x_handle_selection_request): Use select_convert_out.
10767         Don't mess with selection-alist; it's an internal variable of select.c.
10768
10769         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10770
10771         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10772         rather than messing with selection-alist.
10773
10774         * select-msw.c (mswindows_get_foreign_selection):
10775         Use TO_INTERNAL_FORMAT rather than hacking.
10776
10777 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10778
10779         * process-unix.c (unix_open_multicast_group):
10780         (unix_open_multicast_group): Remove useless casts.
10781
10782 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10783
10784         * sound.c (Fplay_sound): Fix `unused variable' warning.
10785
10786         * emacs.c (main): Use correct type for _environ on SCO5.
10787
10788 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10789
10790         * console.h (own_selection_method):
10791         * console.h (selection_exists_p_method):
10792         * console.h (available_selection_types_method): New.
10793         * console.h (register_selection_data_type_method): New.
10794         * console.h (selection_data_type_name): New.
10795
10796         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10797         function & alist to track GlobalAlloc()'d handles that need
10798         releasing when the clipboard data gets replaced or emptied.
10799
10800         * event-msw.c (mswindows_wnd_proc): Call it.
10801
10802         * lisp.h, general.c (Qappend): New symbol representing a
10803         `how-to-add' mode.
10804
10805         * select.c (own-selection-internal):
10806         * select.c (selection-exists-p):
10807         * select.c (available-selection-types): New.
10808         * select.c (register-selection-data-type): New.
10809         * select.c (selection-data-type-name): New.  New functions to deal
10810         with device-specific selection data formats.
10811         * select.c (selection-converter-out-alist): Renamed.
10812         * select.c (selection-converter-in-alist): New.
10813         * select.c (selection-appender-alist): New.  Added new alists.
10814         * select.c (syms_of_select, vars_of_select): Added new symbols &
10815         variables.
10816         * select.c (get_local_selection): Split.
10817         * select.c: Removed spurious type checking - selections may now be
10818         of any type, not just strings.
10819         * select.c (own-selection-internal):
10820
10821         * select.h, select.c (convert_selection): New. Created
10822         convert_selection() function based on get_local_selection().
10823         * select.h, select.c (QCF_*): New symbols representing mswindows
10824         clipboard formats.
10825         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10826         symbols representing `how-to-add' modes.
10827
10828         * select-msw.c (x_sym_p): New.
10829         * select-msw.c (symbol_to_ms_cf): New.
10830         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10831         symbols & clipboard formats. Can also handle string names.
10832         * select-msw.c (mswindows_own_selection):
10833         * select-msw.c (mswindows_selection_exists_p):
10834         Added `data-type' parameter. Use it.
10835         * select-msw.c (mswindows_available_selection_types): New.
10836         * select-msw.c (mswindows_register_selection_data_type): New.
10837         * select-msw.c (mswindows_selection_data_type_name): New.
10838         * select-msw.c (mswindows_own_selection):
10839         * select-msw.c (mswindows_get_foreign_selection):
10840         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10841         * select-msw.c (console_create_select_mswindows): Added new methods.
10842         * select-msw.c (mswindows_destroy_selection): New.
10843         * select-msw.c (Vhandle_alist): New list.
10844         * select-msw.c (mswindows_own_selection):
10845
10846         * select-x.c (x_own_selection):
10847         * select-x.c (x_selection_exists_p):
10848         * select-x.c: Added some comments about maybe using new
10849         functionality.
10850         * select-x.c (x_own_selection):
10851
10852         * specifier.c: Remove definition of Qappend (now in general.c)
10853         * specifier.c (syms_of_specifier): Remove Qappend.
10854
10855 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10856
10857         * config.h.in: Add socklen_t.
10858
10859         * s/decosf4-0.h: No special compiler flags needed or desired.
10860         In particular, undefine _BSD for DEC OSF 4.0.
10861
10862 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10863
10864         * redisplay-msw.c (msprinter_frame_output_end): Added.
10865         (console_type_create_redisplay_mswindows): Referred the above.
10866
10867         * frame.c (setup_frame_without_minibuffer): Do not create a
10868         default minibuffer frame on a printer device.
10869
10870         * frame-msw.c (apply_dc_geometry): Added.
10871         (msprinter_start_page):
10872         (msprinter_init_frame_3):
10873         (msprinter_eject_page): Use it.
10874
10875         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10876         and removed residual duplex and orientation properties.
10877
10878 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10879
10880         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10881
10882         * unexalpha.c: Remove system prototypes from C sources!
10883
10884 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10885
10886         * eval.c: Remove references to M-x edit-options in DEFUNs for
10887         `defvar' and `defconst'.
10888
10889 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10890
10891         * config.h.in: Remove SMART_INCLUDE hackery.
10892
10893         PostgreSQL hacking:
10894         * config.h.in: Don't use SMART_INCLUDE.
10895
10896         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10897         * inline.c: Simply #include "postgresql.h"
10898         * postgresql.c:
10899         - Don't use SMART_INCLUDE
10900         - Use simply "const".
10901         - Use standard doc string conventions.
10902         - Use correct type for result of PQstatus.
10903
10904 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10905
10906         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10907
10908         C++ compilation changes.
10909         * config.h.in (EXTERN_C): Define.
10910         * config.h.in (not): This is also a C++ keyword.
10911         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10912         * cm.c: Use EXTERN_C.
10913         * redisplay-tty.c: Use EXTERN_C.
10914         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10915
10916 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10917
10918         * general.c: Remove duplicate definition for Qfunction.
10919
10920 2000-07-08  Ben Wing  <ben@xemacs.org>
10921
10922         * device-msw.c (msprinter_init_device):
10923         * device-msw.c (sync_printer_with_devmode):
10924         * device-msw.c (handle_devmode_changes):
10925         * device-msw.c (print_dialog_worker):
10926         * device-msw.c (Fmsprinter_apply_settings):
10927         * device-msw.c (hash_devmode):
10928         * device-msw.c (Fmsprinter_settings_despecialize):
10929         use Qmswindows_tstr, not Qctext.
10930
10931         * vm-limit.c (check_memory_limits):
10932         avoid infinite loop printing warning messages.
10933
10934 2000-07-05  Craig Lanning  <lanning@scra.org>
10935
10936         * Makefile.in.in: Add support for including the Windows resources
10937         when building with the cygwin and mingw targets.
10938
10939         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10940         not set or not correct.
10941         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10942         (init_initial_directory): Don't try to use $PWD on the
10943         WIN32_NATIVE target.
10944
10945         * s\cygwin32.h:
10946         [[Add -mwindows to eliminate console window.]] not required --ben
10947         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10948         (MAIL_USE_POP): removed; now handled by configure.
10949
10950         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10951         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10952         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10953         (MAIL_USE_POP): removed; now handled by configure.
10954         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10955         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10956         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10957         constant string.
10958         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10959         up from <winsock.h> via systime.h.
10960         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10961         (getpagesize): from Dan Holmsand, added.
10962         Added #endif which was left dangling by Ben's mega patch; added
10963         comment to help prevent this in the future.
10964
10965         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10966
10967 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10968
10969         * console-msw.h (struct mswindows_device): Removed unnecessary
10970         cached device geometry values.
10971         Added update_tick and an accessor macro.
10972         (Lisp_Devmode): Added lrecord declaration.
10973         (struct msprinter_device): Contain devmode as a Lisp object.
10974         Added mswindows_get_selected_frame_hwnd();
10975
10976         * console.h (struct console_methods): Indentation nitpicking.
10977
10978         * device-msw.c (mswindows_init_device): Do not initialize geometry
10979         cache. Initialize update tick.
10980         (mswindows_device_system_metrics): Ask the device for its geometry.
10981         (global_free_2_maybe):
10982         (devmode_to_hglobal):
10983         (handle_printer_changes):
10984         (ensure_not_printing):
10985         (print_dialog_worker):
10986         (Fmsprinter_print_setup_dialog):
10987         (Fmsprinter_print_dialog):
10988         (plist_get_margin):
10989         (plist_set_margin):
10990         (Fmsprinter_page_setup_dialog): Added functions.
10991         (sync_printer_with_devmode):
10992         (handle_devmode_changes):
10993         (Fmsprinter_get_settings):
10994         (Fmsprinter_select_settings):
10995         (Fmsprinter_apply_settings):
10996         (allocate_devmode):
10997         (Fmsprinter_settings_copy):
10998         (Fmsprinter_settings_despecialize):
10999         (print_devmode):
11000         (finalize_devmode):
11001         (equal_devmode):
11002         (hash_devmode): Added functions
11003         (syms_of_device_mswindows): Init devmode lrecord class.
11004
11005         * device.h: Added an exfun for find-device.
11006
11007         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11008         geometry; although, recreate the device compatible DC.
11009
11010         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11011         (msprinter_init_frame_3):
11012         (msprinter_frame_property):
11013         (msprinter_internal_frame_property_p):
11014         (msprinter_frame_properties):
11015         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11016         print job properties (will move to device settings).
11017
11018         * lisp.h: Added symbols.
11019
11020         * general.c (syms_of_general): Declared them.
11021
11022         * hash.c (string_hash): Added.
11023
11024         * lrecord.h (lrecord_type): Added devmode lrecord type.
11025
11026 2000-07-02  Mike Sperber <mike@xemacs.org>
11027
11028         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11029         FreeBSD 4.0.
11030
11031 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11032
11033         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11034         integer.
11035
11036 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11037
11038         * data.c (Fstring_to_number): Don't recognize floating point if
11039         base is not 10.
11040
11041 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11042
11043         * glyphs-widget.c (tab_control_query_geometry):
11044         (widget_query_geometry):
11045         (button_query_geometry):
11046         * glyphs.c (text_query_geometry):
11047         Enforce type correctness.
11048
11049 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11050
11051         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11052         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11053
11054 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11055
11056         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11057         conflicts with gcc's fixincluded version of FOO.h.
11058
11059         * glyphs.h (image_instance_geometry): Remove trailing `,'
11060
11061 2000-06-08  Mike Alexander  <mta@arbortext.com>
11062
11063         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11064         (shove_thread): Don't write the same output twice
11065         (make_ntpipe_output_stream): Increase priority of shove thread
11066         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11067         chance to run
11068         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11069         it.
11070
11071 2000-06-12  Ben Wing  <ben@xemacs.org>
11072
11073         * s\mingw32.h (sigset):
11074         * s\windowsnt.h (sigset):
11075         rename msw_ to mswindows_ for consistency with general convention.
11076
11077 2000-06-12  Ben Wing  <ben@xemacs.org>
11078
11079         * console-msw.c:
11080         * console-msw.c (mswindows_get_console_hwnd):
11081         * console-msw.c (mswindows_ensure_console_allocated):
11082         * console-msw.c (mswindows_hide_console):
11083         * console-msw.c (mswindows_show_console):
11084         * console-msw.c (mswindows_ensure_console_buffered):
11085         * console-msw.c (mswindows_output_console_string):
11086         * console-msw.c (mswindows_windows9x_p):
11087         * console-msw.h:
11088         * device-msw.c (mswindows_get_workspace_coords):
11089         * device-msw.c (mswindows_device_system_metrics):
11090         * dialog-msw.c (mswindows_popup_dialog_box):
11091         * event-msw.c (mswindows_wnd_proc):
11092         * frame-msw.c (mswindows_size_frame_internal):
11093         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11094         * menubar-msw.c (displayable_menu_item):
11095         * menubar-msw.c (mswindows_char_is_accelerator):
11096         * nt.c:
11097         * nt.c (mswindows_sigset):
11098         * nt.c (mswindows_sigrelse):
11099         * nt.c (mswindows_sigpause):
11100         * nt.c (mswindows_raise):
11101         * nt.c (timer_proc):
11102         * ntproc.c:
11103         * ntproc.c (find_child_console):
11104         * ntproc.c (sys_kill):
11105         * print.c:
11106         * print.c (std_handle_out_external):
11107         * process-nt.c (find_child_console):
11108         * process-nt.c (send_signal_the_95_way):
11109         * process-nt.c (ensure_console_window_exists):
11110         * process-nt.c (nt_create_process):
11111         * syssignal.h:
11112         rename msw_ to mswindows_ for consistency with general convention.
11113
11114         * emacs.c:
11115         * dumper.c:
11116         include nt.h, not syswindows.h.
11117
11118         * nt.c (mswindows_fstat):
11119         * nt.c (mswindows_stat):
11120         prefix mswindows_ instead of attempting to directly override the
11121         library functions.  fix declarations.
11122
11123         * nt.h:
11124         include syswindows.h.  move some sysdep.h stuff here.
11125
11126         * ntheap.h:
11127         include syswindows.h, not <windows.h>.
11128
11129         * ntplay.c:
11130         clean up headers.
11131
11132         * sysdep.c:
11133         clean up headers.
11134
11135         * sysdep.c (sys_fstat):
11136         * sysdep.c (sys_stat):
11137         call mswindows versions when appropriate.
11138
11139         * sysdep.h:
11140         move mswin decls to nt.h.
11141
11142         * syswindows.h:
11143         add long comment describing appropriate use of the various windows
11144         headers.
11145
11146 2000-06-11  Ben Wing  <ben@xemacs.org>
11147
11148         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11149
11150 2000-06-10  Ben Wing  <ben@xemacs.org>
11151
11152         * Makefile.in.in (release):
11153         Correction to make sure xemacs.exe always dumped when correct.
11154
11155         * alloca.c:
11156         * balloon_help.c:
11157         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11158
11159         * buffer.c (set_buffer_internal):
11160         [[[[2]]]]: Remove HAVE_FEP code.
11161
11162         * buffer.c (init_initial_directory):
11163         [3].
11164
11165         * bytecode.c:
11166         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11167         individual files.
11168
11169         * callproc.c:
11170         * callproc.c (call_process_cleanup):
11171         * callproc.c (Fold_call_process_internal):
11172         * callproc.c (child_setup):
11173         * callproc.c (getenv_internal):
11174         * callproc.c (init_callproc):
11175         * callproc.c (vars_of_callproc):
11176         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11177         __CYGWIN32__ -> CYGWIN.
11178         DOS_NT -> WIN32_NATIVE.
11179         Remove MSDOS support/references, converting to WIN32_NATIVE
11180           where correct.
11181         __MINGW32__ -> MINGW.
11182         Fix windows.h includes.
11183         Remove bogus HAVE_NTGUI.
11184
11185         * config.h.in:
11186         [2].
11187
11188         * console-msw.c:
11189         mswindows_message_outputted added for use in allowing startup
11190         errors on the console to be seen.
11191
11192         * console-msw.c (msw_ensure_console_allocated):
11193         * console-msw.c (msw_output_console_string):
11194         * console-msw.c (DHEADER):
11195         * console-msw.c (DOPAQUE_DATA):
11196         * console-msw.c (DEVENT):
11197         * console-msw.c (DCONS):
11198         * console-msw.c (DCONSCDR):
11199         * console-msw.c (DSTRING):
11200         * console-msw.c (DVECTOR):
11201         * console-msw.c (DSYMBOL):
11202         * console-msw.c (DSYMNAME):
11203         Fix warnings.
11204
11205         * console-stream.c (stream_init_console):
11206         Fix text/binary problems.
11207
11208         * device-msw.c:
11209         * device-msw.c (mswindows_finish_init_device):
11210         * device-msw.c (mswindows_delete_device):
11211         [1].
11212
11213         * device.c (handle_asynch_device_change):
11214         [3].
11215
11216         * dgif_lib.c:
11217         * dgif_lib.c (DGifOpenFileName):
11218         * dgif_lib.c (DGifOpenFileHandle):
11219         * dgif_lib.c (DGifGetLine):
11220         * dgif_lib.c (DGifGetPixel):
11221         Added config.h/lisp.h, fix up includes.
11222         [1].
11223
11224         * dired-msw.c:
11225         [4].
11226
11227         * dired.c:
11228         * dired.c (file_name_completion):
11229         * dired.c (Ffile_attributes):
11230         * dired.c (syms_of_dired):
11231         [1].
11232
11233         * dumper.c:
11234         * dumper.c (pdump_file_unmap):
11235         * dumper.c (pdump_load):
11236         [1].
11237
11238         * editfns.c:
11239         * editfns.c (Ftemp_directory):
11240         * editfns.c (user_login_name):
11241         * editfns.c (Fuser_real_login_name):
11242         * editfns.c (get_home_directory):
11243         [1].
11244
11245         * elhash.c (finish_marking_weak_hash_tables):
11246         [[[[5]]]]: Fix GCC warnings.
11247
11248         * emacs.c:
11249         * emacs.c (mswindows_handle_hardware_exceptions):
11250         * emacs.c (make_arg_list_1):
11251         * emacs.c (main_1):
11252         * emacs.c (Fkill_emacs):
11253         * emacs.c (Fdump_emacs):
11254         [1].
11255         Fix problems with nested crashes, add long comment.
11256
11257         * event-Xt.c (init_event_Xt_late):
11258         [1].
11259
11260         * event-msw.c:
11261         * event-msw.c (mswindows_dde_callback):
11262         * event-msw.c (mswindows_handle_sticky_modifiers):
11263         * event-msw.c (mswindows_wnd_proc):
11264         [1].
11265         [5].
11266
11267         * events.c (character_to_event):
11268         [1].
11269
11270         * fileio.c:
11271         * fileio.c (Ffile_name_directory):
11272         * fileio.c (Ffile_name_nondirectory):
11273         * fileio.c (directory_file_name):
11274         * fileio.c (Fexpand_file_name):
11275         * fileio.c (Fsubstitute_in_file_name):
11276         * fileio.c (Ffile_name_absolute_p):
11277         * fileio.c (check_executable):
11278         * fileio.c (Ffile_readable_p):
11279         * fileio.c (Ffile_accessible_directory_p):
11280         * fileio.c (Ffile_modes):
11281         * fileio.c (Funix_sync):
11282         * fileio.c (vars_of_fileio):
11283         [1]. [4].
11284
11285         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11286
11287         Expand getdefdir defn.
11288         Fix bogus rename() comment.
11289
11290         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11291         to use standard XEmacs include files, e.g. sysfile.h, rather
11292         than system-specific includes.
11293
11294         * fns.c:
11295         * fns.c (Fsubseq):
11296         [5]. [6].
11297
11298         * frame.c (vars_of_frame):
11299         [1].
11300
11301         * getloadavg.c:
11302         * getloadavg.c (getloadavg):
11303         [1]. [6].
11304         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11305         (We don't use it elsewhere in the code; just add a comment.)
11306
11307         * gif_io.c:
11308         [6].
11309         Add config.h.
11310
11311         * glyphs-msw.c:
11312         * glyphs-msw.c (mswindows_resource_instantiate):
11313         [1].
11314
11315         * glyphs-x.c (x_native_layout_instantiate):
11316         [5].
11317
11318         * gui-msw.c (Fmswindows_shell_execute):
11319         [1].
11320
11321         * insdel.c:
11322         [4].
11323
11324         * lisp.h:
11325         [4]. [5].
11326
11327         * lread.c (locate_file_in_directory_mapper):
11328         [1].
11329
11330         * lstream.c:
11331         [4].
11332
11333         * mem-limits.h:
11334         * mem-limits.h (get_lim_data):
11335         [1].
11336
11337         * menubar-msw.c:
11338         [4].
11339
11340         * ndir.h:
11341         [1].
11342
11343         * nt.c:
11344         * nt.c (getwd):
11345         * nt.c (closedir):
11346         * nt.c (rva_to_section):
11347         * nt.c (mswindows_executable_type):
11348         [1]. [6].
11349         Fix closedir() defn.
11350
11351         * nt.h:
11352         [[[[8]]]]: *_OK defs moved to sysfile.h.
11353
11354         * ntproc.c:
11355         [6]. [7].
11356
11357         * objects-x.c:
11358         [4].
11359
11360         * print.c:
11361         * print.c (std_handle_out_external):
11362         [1]. [4].
11363
11364         * process-nt.c:
11365         * process-nt.c (nt_create_process):
11366         [6].
11367         try to fix process quoting somewhat.
11368
11369         * process-unix.c (unix_create_process):
11370         [1].
11371
11372         * process.c:
11373         * process.c (vars_of_process):
11374         Add Vnull_device.
11375
11376         * process.h:
11377         [1].
11378
11379         * realpath.c:
11380         * realpath.c (xrealpath):
11381         [1].
11382
11383         * redisplay-tty.c (init_tty_for_redisplay):
11384         [3].
11385
11386         * redisplay.c:
11387         [4]. [6].
11388
11389         * scrollbar-msw.c:
11390         [4].
11391
11392         * sheap.c:
11393         * sheap.c (more_static_core):
11394         * sheap.c (report_sheap_usage):
11395         [5]. [6].
11396
11397         * signal.c:
11398         * signal.c (alarm_signal):
11399         [1]. [6].
11400
11401         * sound.c:
11402         [6].
11403
11404         * strftime.c:
11405         * strftime.c (zone_name):
11406         [1]. [5].
11407
11408         * symsinit.h (init_sunpro):
11409         [1].
11410
11411         * syscommctrl.h:
11412         commctrl.h not in Cygwin b20.1.
11413
11414         * sysdep.c:
11415         * sysdep.c (endif):
11416         * sysdep.c (sys_subshell):
11417         * sysdep.c (init_baud_rate):
11418         * sysdep.c (emacs_get_tty):
11419         * sysdep.c (emacs_set_tty):
11420         * sysdep.c (tty_init_sys_modes_on_device):
11421         * sysdep.c (init_system_name):
11422         * sysdep.c (sys_open):
11423         * sysdep.c (interruptible_open):
11424         * sysdep.c (sys_fopen):
11425         * sysdep.c (sys_mkdir):
11426         * sysdep.c (sys_rename):
11427         * sysdep.c (get_process_times_1):
11428         [1]. [6].
11429
11430         * sysdep.h:
11431         [1].
11432
11433         * sysdir.h:
11434         * sysdir.h (DIRENTRY_NONEMPTY):
11435         [1]. [6].
11436
11437         * sysdll.c (dll_init):
11438         * sysdll.h:
11439         [1].
11440
11441         * sysfile.h:
11442         [1]. [6]. [8].
11443         added text/binary defs.
11444
11445         * sysfloat.h:
11446         [1].
11447
11448         * sysproc.h:
11449         * sysproc.h (EDESTADDRREQ):
11450         * sysproc.h (poll_fds_for_input):
11451         [1]. [6].
11452
11453         * syspwd.h:
11454         [6].
11455
11456         * syssignal.h:
11457         [1].
11458
11459         * systime.h:
11460         [1]. [6].
11461
11462         * systty.h:
11463         [1].
11464
11465         * syswindows.h:
11466         [1].
11467         Always define WIN32_LEAN_AND_MEAN.
11468
11469         * unexcw.c (unexec):
11470         [5].
11471
11472         * unexec.c:
11473         * unexec.c (copy_text_and_data):
11474         * unexec.c (adjust_lnnoptrs):
11475         [1].
11476
11477         * unexnt.c:
11478         * unexnt.c (_start):
11479         [1].
11480
11481 2000-06-07  Ben Wing  <ben@xemacs.org>
11482
11483         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11484         was used only as a model.  We've long since extracted any useful
11485         logic or code out of this. (I just did an exhaustive search.)
11486
11487         * s\msdos.h: Removed.
11488
11489         * s\windows95.h: Removed.
11490
11491 2000-06-10  Ben Wing  <ben@xemacs.org>
11492
11493         * s\cygwin32.h:
11494         [1]. [5].
11495         Don't use extern with fun defs.
11496
11497         * s\mingw32.h:
11498         [1]. [7].
11499         Remove nt\inc include.
11500         Remove getdisk, getdefdir. (The former is unused, the latter
11501         expanded in fileio.h.)
11502
11503         * s\windowsnt.h:
11504         * s\windowsnt.h (WIN32_NATIVE):
11505         * s\windowsnt.h (HAVE_STRCASECMP):
11506         [1]. [7].
11507         Add long comment about preprocessor changes.
11508         Remove getdisk, getdefdir. (The former is unused, the latter
11509         expanded in fileio.h.)
11510
11511 2000-06-10  Ben Wing  <ben@xemacs.org>
11512
11513         * m\arm.h:
11514         * m\delta.h:
11515         * m\intel386.h:
11516         * m\sequent.h:
11517         * m\template.h:
11518         * m\windowsnt.h:
11519         [1].
11520         Remove bogus/unused NO_SOCK_SIGIO.
11521
11522 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11523
11524         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11525         not an Emchar.
11526
11527 2000-06-04  Mike Sperber <mike@xemacs.org>
11528
11529         * casetab.c (set_case_table): For `set-standard-case-table',
11530         actually deposit the new case tables where the rest of XEmacs can
11531         see them.
11532
11533 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11534
11535         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11536
11537 2000-06-05  Ben Wing  <ben@xemacs.org>
11538
11539         * callproc.c (child_setup): Don't do close_load_descs() under
11540         MS Windows.  Put in a comment explaining why.
11541
11542 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11543
11544         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11545         Toolkit shell" which breaks `kill-compilation' on Windows NT
11546         native, retaining STDERR handling improvements.
11547
11548 2000-06-01  Andreas Jaeger  <aj@suse.de>
11549
11550         * s/s390.h: Support for S390, based on a patch by Martin
11551         Schwidefsky <schwidefsky@de.ibm.com>.
11552
11553 2000-05-30  Andy Piper  <andy@xemacs.org>
11554
11555         * window.c (allocate_window):
11556         (make_dummy_parent):
11557         (Fset_window_configuration): use new hashtable type.
11558
11559         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11560         (struct image_instantiator_methods):
11561         (struct Lisp_Image_Instance): make instance geometry signed.
11562
11563         * glyphs.c (instantiate_image_instantiator):
11564         (image_instance_query_geometry):
11565         (image_instance_layout):
11566         (image_instance_layout):
11567         (query_string_geometry):
11568         (text_query_geometry):
11569         (image_instantiate):
11570         (image_instantiate):
11571         (cache_subwindow_instance_in_frame_maybe):
11572         (subwindow_query_geometry): make instance geometry signed.
11573
11574         * glyphs-widget.c (widget_query_geometry):
11575         (widget_layout):
11576         (button_query_geometry):
11577         (tree_view_query_geometry):
11578         (tab_control_query_geometry):
11579         (layout_query_geometry):
11580         (layout_layout):
11581         (native_layout_layout): make instance geometry signed.
11582
11583 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11584
11585         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11586         constant.
11587
11588         * general.c (syms_of_general): Add Qfull_assoc symbol.
11589
11590         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11591         correctly.
11592         (decode_weak_list_type): Decode full-assoc type.
11593         (encode_weak_list_type): Encode full-assoc type.
11594         (Fmake_weak_list): Update doc string.
11595
11596 2000-05-30  Andy Piper  <andy@xemacs.org>
11597
11598         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11599
11600         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11601         (decode_hash_table_weakness): ditto.
11602         (Fhash_table_weakness): ditto.
11603         (Fhash_table_type): ditto.
11604         (finish_marking_weak_hash_tables): ditto.
11605         (hash_table_weakness_validate): ditto.
11606         (syms_of_elhash): ditto.
11607
11608 2000-05-28  Martin Buchholz <martin@xemacs.org>
11609
11610         * XEmacs 21.2.34 is released.
11611
11612 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11613
11614         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11615         start cache.
11616         (updating_line_start_cache): Gone.
11617         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11618         generic code to force a minimum of 1 line laid out in the
11619         CMOTION_DISP case.
11620
11621 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11622
11623         * glyphs.c (instantiate_image_instantiator): Check for initialized
11624         height & width no longer special cases IMAGE_NOTHING.
11625         (nothing_instantiate): Set height and width of instance.
11626
11627 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11628
11629         * unexelf.c (unexec): Search for ".data" section.
11630         Initialize new_data2_offset from old_data_index.
11631         Remove redundant check for ElfW.
11632
11633 2000-05-23  Andy Piper  <andy@xemacs.org>
11634
11635         * glyphs.c (get_image_instantiator_governing_domain): allow more
11636         specific domains as the governing domain rather than expecting an
11637         exact match. This fixes problems with layouts.
11638
11639 2000-05-22  Andy Piper  <andy@xemacs.org>
11640
11641         * redisplay-output.c (compare_runes): check for non-images
11642
11643         * glyphs.c (set_glyph_dirty_p): ditto.
11644         (update_glyph_cachel_data): ditto.
11645
11646         * glyphs-widget.c (layout_post_instantiate): ditto.
11647         (layout_post_instantiate): ditto.
11648
11649         * event-msw.c (mswindows_wnd_proc): warning removal.
11650
11651 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11652
11653         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11654
11655         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11656
11657         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11658
11659         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11660         (mswindows_executable_type): mingw32 now has enough headers for
11661         this to work.
11662
11663 2000-05-20  Andy Piper  <andy@xemacs.org>
11664
11665         * console-msw.c (mswindows_output_last_error): ; -> ,
11666
11667 2000-05-12  Andy Piper  <andy@xemacs.org>
11668
11669         * console-msw.c (FROB): compare ints with ints.
11670
11671 2000-05-11  Andy Piper  <andy@xemacs.org>
11672
11673         * glyphs-x.c (x_finalize_image_instance): make minimal build
11674         happy.
11675
11676 2000-05-20  Ben Wing  <ben@xemacs.org>
11677
11678         * event-Xt.c:
11679         * event-Xt.c (vars_of_event_Xt):
11680         move modifier-keys-are-sticky to event-stream.c.
11681
11682         * event-msw.c:
11683         * event-msw.c (mswindows_enqueue_mouse_button_event):
11684         * event-msw.c (key_needs_default_processing_p):
11685         * event-msw.c (XEMSW_LCONTROL):
11686         * event-msw.c (mswindows_handle_sticky_modifiers):
11687         * event-msw.c (FROB):
11688         * event-msw.c (clear_sticky_modifiers):
11689         * event-msw.c (output_modifier_keyboard_state):
11690         * event-msw.c (output_alt_keyboard_state):
11691         * event-msw.c (mswindows_wnd_proc):
11692         * event-msw.c (mswindows_modifier_state):
11693         * event-msw.c (emacs_mswindows_handle_magic_event):
11694         implement sticky modifiers.
11695
11696         * event-stream.c:
11697         * event-stream.c (vars_of_event_stream):
11698         move modifier-keys-are-sticky here.
11699
11700         * lisp.h:
11701         add CHECK_FUNCTION.
11702
11703         * rangetab.c:
11704         implement map-range-table.
11705
11706
11707 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11708
11709         * redisplay-tty.c (reset_tty_modes):
11710         (tty_redisplay_shutdown): Adjust argument type to
11711         tty_frame_output_end.
11712
11713 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11714
11715         * eval.c (Fbacktrace): Don't output a line with only right
11716         parenthesis.
11717
11718 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11719
11720         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11721         (Fpq_reset_poll): Ditto.
11722
11723 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11724
11725         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11726
11727 2000-05-16  Ben Wing  <ben@xemacs.org>
11728
11729         * buffer.c:
11730         * buffer.c (dfc_convert_to/from_internal_format):
11731         * buffer.c (reinit_vars_of_buffer):
11732         Fix conversion functions to allow reentrancy.
11733
11734         * console-msw.c:
11735         * console-msw.c (mswindows_output_last_error):
11736         New fun, generally useful -- output a human-readable
11737         version of GetLastError() on the console.
11738
11739         * console-msw.h:
11740         * console-msw.h (struct mswindows_frame):
11741         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11742
11743         * console-stream.c (stream_output_begin):
11744         * console-stream.c (stream_output_end):
11745         * console-stream.c (stream_output_vertical_divider):
11746         * console-stream.c (stream_clear_region):
11747         * console-stream.c (stream_flash):
11748         * console-stream.c (console_type_create_stream):
11749         Delete blank stream methods, not needed.
11750
11751         * console.h (struct console_methods):
11752         Split begin/end methods into window and frame.
11753
11754         * event-msw.c:
11755         * event-msw.c (mswindows_handle_paint):
11756         * event-msw.c (output_alt_keyboard_state):
11757         * event-msw.c (mswindows_wnd_proc):
11758         * event-msw.c (vars_of_event_mswindows):
11759         Comment about problems with ignored-expose.
11760         Define mswindows-debug-events; not really implemented.
11761
11762         * frame-msw.c (mswindows_init_frame_1):
11763         random cleanups.
11764
11765         * glyphs-msw.c:
11766         * glyphs-msw.c (begin_defer_window_pos):
11767         * glyphs-msw.c (mswindows_unmap_subwindow):
11768         * glyphs-msw.c (mswindows_map_subwindow):
11769         * glyphs-msw.c (mswindows_resize_subwindow):
11770         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11771
11772         * glyphs.c (make_image_instance_1):
11773         Fix crash.
11774
11775         * gutter.c (Fredisplay_gutter_area):
11776         Use new begin/end methods.
11777
11778         * lisp.h (Dynarr_new2):
11779         New creation fun.
11780
11781         * redisplay-msw.c:
11782         * redisplay-msw.c (mswindows_frame_output_begin):
11783         * redisplay-msw.c (mswindows_frame_output_end):
11784         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11785         New begin/end methods -- handle DeferWindowPos.
11786
11787         * redisplay-output.c (redisplay_move_cursor):
11788         * redisplay-output.c (redraw_cursor_in_window):
11789         * redisplay-output.c (redisplay_update_line):
11790         * redisplay-output.c (redisplay_output_window):
11791         New begin/end methods.
11792
11793         * redisplay-tty.c:
11794         * redisplay-tty.c (tty_frame_output_begin):
11795         * redisplay-tty.c (tty_frame_output_end):
11796         * redisplay-tty.c (console_type_create_redisplay_tty):
11797         New begin/end methods.
11798
11799         * redisplay-x.c:
11800         * redisplay-x.c (x_window_output_begin):
11801         * redisplay-x.c (x_window_output_end):
11802         * redisplay-x.c (console_type_create_redisplay_x):
11803         New begin/end methods.
11804
11805         * redisplay.c (redisplay_frame):
11806         * redisplay.c (Fredisplay_echo_area):
11807         New begin/end methods.
11808         use MAYBE_DEVMETH for clear_frame; it may not exist.
11809
11810         * window.h (WINDOW_XFRAME):
11811         WINDOW_XFOO macros -- get locale and decode struct pointer.
11812
11813
11814 2000-05-12  Ben Wing  <ben@xemacs.org>
11815
11816         * emacs.c:
11817         * emacs.c (ensure_no_quitting_from_now_on):
11818         * emacs.c (fatal_error_signal):
11819         * emacs.c (mswindows_handle_hardware_exceptions):
11820         * emacs.c (main):
11821         * emacs.c (Fkill_emacs):
11822         * emacs.c (shut_down_emacs):
11823         * emacs.c (assert_failed):
11824         various improvements in fatal error handling.
11825
11826         * eval.c:
11827         move preparing_for_armageddon to emacs.c.
11828
11829         * lisp.h:
11830         declare fatal_error_in_progress.
11831
11832         * print.c:
11833         * print.c (std_handle_out_external):
11834         * print.c (std_handle_out_va):
11835         * print.c (stderr_out):
11836         * print.c (stdout_out):
11837         use console under mswin when no standard output.
11838         don't do code conversion during fatal error.
11839
11840         * scrollbar.c (Fscrollbar_page_up):
11841         * scrollbar.c (Fscrollbar_page_down):
11842         fix missing else.  reindent.
11843
11844 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11845
11846         Emergency fix.
11847
11848         * glyphs.h (GLYPH_CACHEL_DESCENT):
11849         (GLYPH_CACHEL_DESCENT):
11850         (GLYPH_CACHEL_DESCENT):
11851         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11852         used in case these are inline functions.
11853         Use more absurd values to error check.
11854
11855         include window.h for error check functions.
11856
11857 2000-05-11  Ben Wing  <ben@xemacs.org>
11858
11859         * cmdloop.c (Freally_early_error_handler):
11860         Display message box under windows; otherwise, message will disappear
11861         before it can be viewed.
11862
11863         * console-msw.c:
11864         * console-msw.c (Fmswindows_message_box):
11865         * console-msw.c (FROB):
11866         * console-msw.c (syms_of_console_mswindows):
11867         Define new fun `mswindows-message-box'.
11868         #### I will merge this into `popup-dialog-box'; just give me
11869         a bit of time.
11870
11871         * general.c:
11872         * general.c (syms_of_general):
11873         Some new symbols used in `mswindows-message-box'.
11874
11875         * glyphs.c:
11876         * glyphs.c (Fset_image_instance_property):
11877         put warning in this fun.
11878
11879         * glyphs.h:
11880         * glyphs.h (GLYPH_CACHEL_WIDTH):
11881         * glyphs.h (GLYPH_CACHEL_ASCENT):
11882         * glyphs.h (GLYPH_CACHEL):
11883         * glyphs.h (GLYPH_CACHEL_GLYPH):
11884         define error-checking versions to try to catch a bug i've seen --
11885         redisplay gets in an infinite loop because the glyph width of the
11886         continuation glyph is 65535.
11887
11888         * lisp.h:
11889         Extern message-box stuff.
11890
11891         * window.c (allocate_window):
11892         * window.c (make_dummy_parent):
11893         * window.c (Fset_window_configuration):
11894         Use EQUAL not EQ for subwindow caches to make them work a bit
11895         better. (Something is still very broken.)
11896
11897
11898 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11899
11900         * glyphs.c (image_instantiate): Suppress gcc warnings.
11901         (Fmake_image_instance): Fix doc string.
11902         * specifier.c (Fmake_specifier): Ditto.
11903
11904 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11905
11906         * paths.h.in (PATH_LOCK): Removed.
11907         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11908         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11909
11910 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11911
11912         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11913         Document (featurep '(and xemacs 21.02)).
11914
11915 2000-05-09  Ben Wing  <ben@xemacs.org>
11916
11917         * buffer.c (complex_vars_of_buffer):
11918         update modeline-format doc.
11919
11920         * device.h:
11921         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11922
11923         * emacs.c:
11924         timeline of all released versions of Emacs, for use in creating
11925         authorship comments and in synching up.
11926
11927         * glyphs-widget.c (image_instantiator_buttons):
11928         * glyphs-widget.c (image_instantiator_edit_fields):
11929         * glyphs-widget.c (image_instantiator_combo_box):
11930         * glyphs-widget.c (image_instantiator_scrollbar):
11931         * glyphs-widget.c (image_instantiator_progress_guage):
11932         * glyphs-widget.c (image_instantiator_tree_view):
11933         * glyphs-widget.c (image_instantiator_tab_control):
11934         * glyphs-widget.c (image_instantiator_labels):
11935         * glyphs-widget.c (image_instantiator_layout):
11936         * glyphs-widget.c (image_instantiator_native_layout):
11937         rename decode_domain method to governing_domain.
11938
11939         * glyphs.c:
11940         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11941         * glyphs.c (add_entry_to_device_ii_format_list):
11942         make sure we don't put an entry more than once into the list.
11943         * glyphs.c (check_instance_cache_mapper):
11944         *************************************************************
11945         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11946         HAVE BEEN GETTING.
11947         *************************************************************
11948         * glyphs.c (get_image_instantiator_governing_domain):
11949         clean up, expand on new concept of governing domain.
11950         * glyphs.c (instantiate_image_instantiator):
11951         * glyphs.c (allocate_image_instance):
11952         use governing_domain instead of cache_domain in naming.
11953         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11954         * glyphs.c (make_image_instance_1):
11955         * glyphs.c (Fmake_image_instance):
11956         allow for any domain (not just device), and process the
11957         governing domain correctly.  very big doc fix.
11958         * glyphs.c (Fimage_instance_domain):
11959         new primitive, to retrieve the governing domain of an image instance.
11960         * glyphs.c (image_instantiate):
11961         use new governing_domain stuff.  this fixes a crash you could get
11962         by instantiating certain widget glyphs in frame locales. (should
11963         signal an error instead of crashing.)
11964         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11965         * glyphs.c (Fglyphp): clean up doc.
11966         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11967         * glyphs.c (syms_of_glyphs):
11968         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11969         * glyphs.c (image_instantiator_format_create): add some comments about
11970         bogus code.
11971         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11972         for current-display-table. (Apparently Hrjove implemented in 1998 a
11973         design I wrote up in 1996, but didn't update the doc string.)
11974
11975         * glyphs.h: clean up a doc string.
11976         * glyphs.h (governing_domain):
11977         * glyphs.h (struct image_instantiator_methods):
11978         changes for governing_domain stuff.
11979
11980         * gutter.c:
11981         * gutter.c (Fgutter_specifier_p):
11982         * gutter.c (Fgutter_size_specifier_p):
11983         * gutter.c (Fgutter_visible_specifier_p):
11984         * objects.c:
11985         * objects.c (Fcolor_specifier_p):
11986         * objects.c (Ffont_specifier_p):
11987         * objects.c (Fface_boolean_specifier_p):
11988         doc strings moved to make-*-specifier.
11989
11990         * redisplay.c (add_disp_table_entry_runes_1):
11991         * redisplay.c (generate_fstring_runes):
11992         * redisplay.c (screen):
11993         add random comments and doc strings.
11994
11995         * specifier.c:
11996         * specifier.c (Fmake_specifier):
11997         major overhaul of this doc string.
11998
11999         * specifier.c (Fvalid_specifier_domain_p):
12000         comment about the bogosity of image instances being domains.
12001         * specifier.c (decode_domain):
12002         now non-static, used in glyphs.c.
12003         * specifier.c (specifier_instance):
12004         comment about the bogosity of image instances being domains.
12005         * specifier.c (Fgeneric_specifier_p):
12006         move doc string to make-generic-specifier.
12007         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12008         rebackslashify.
12009
12010         * specifier.h:
12011         * specifier.h (DOMAIN_FRAME):
12012         * specifier.h (DOMAIN_LIVE_P):
12013         * specifier.h (DOMAIN_XDEVICE):
12014         rebackslashify.
12015         add comments about problems with these macros.
12016         prototype for decode_domain.
12017
12018         * toolbar.c:
12019         * toolbar.c (Ftoolbar_specifier_p):
12020         move doc string to `make-toolbar-specifier'.
12021
12022         * window.c (window_unmap_subwindows_cache_mapper):
12023         *************************************************************
12024         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12025         HAVE BEEN GETTING.
12026         *************************************************************
12027
12028 2000-05-09  Andy Piper  <andy@xemacs.org>
12029
12030         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12031
12032         * window.c (Fset_window_configuration): reset the frame subwindow
12033         cache and re-initialize the window subwindow caches.
12034
12035         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12036
12037 2000-05-09  Ben Wing  <ben@xemacs.org>
12038
12039         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12040         DWORD.
12041
12042 2000-04-26  Mike Woolley  <mike@bulsara.com>
12043
12044         * ntheap.c: Changed recreate_heap to limit the amount reserved
12045         for the heap to that which is actually available. Also now
12046         displays a message box (with some dignostics) in the event that
12047         it still can't start.
12048
12049 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12050
12051         * callproc.c (Fold_call_process_internal): GCPRO path
12052
12053 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12054
12055         Patch by Bill Perry.
12056
12057         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12058         back data instead of #ifdef.
12059         (Fscrollbar_page_down): ditto.
12060
12061 2000-05-07  Ben Wing  <ben@xemacs.org>
12062
12063         * buffer.h:
12064         Kludge for defining Qmswindows_tstr.
12065
12066         * nt.c:
12067         * nt.c (open_input_file):
12068         * nt.c (open_output_file):
12069         * nt.c (rva_to_section):
12070         * nt.c (mswindows_executable_type):
12071         Move all memory-mapped-file routines here (some were in unexnt.c,
12072         which is bad because they are used by process-nt.c, and unexnt
12073         won't be around when portable dumping).  Synched the above routines
12074         with FSF 20.6.
12075
12076         * nt.h:
12077         Removed ifdef'd out bogus code.
12078         Fixed some prototypes.
12079
12080         * nt.h (file_data):
12081         * nt.h (OFFSET_TO_RVA):
12082         * nt.h (RVA_TO_OFFSET):
12083         * nt.h (RVA_TO_PTR):
12084         Moved the memory-mapped-file structures, macros and prototypes
12085         here, to parallel nt.c.  ntheap.h should really be removed
12086         entirely, and it's a non-portable-dumper specific file.
12087
12088         * ntheap.h (round_to_next):
12089         Moved the memory-mapped-file structures, macros and prototypes
12090         to nt.h.
12091
12092         * ntproc.c (compare_env):
12093         Moved rva_to_section and mswindows_executable_type to nt.c.
12094         Moved compare_env to process-nt.c.
12095         ntproc.c will die, one day.
12096
12097         * ntproc.c (sys_spawnve):
12098         Account for win32_ -> mswindows_.
12099
12100         * process-nt.c:
12101         * process-nt.c (struct nt_process_data):
12102         * process-nt.c (ensure_console_window_exists):
12103         * process-nt.c (compare_env):
12104         * process-nt.c (nt_create_process):
12105         * process-nt.c (nt_kill_process_by_pid):
12106         * process-nt.c (syms_of_process_nt):
12107         * process-nt.c (vars_of_process_nt):
12108         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12109         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12110         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12111         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12112         Move compare_env here from ntproc.c.
12113
12114         * process.c (Fprocess_send_region):
12115         Takes an optional fourth argument, BUFFER, which should fix some
12116         problems with call-process.
12117
12118         * syscommctrl.h:
12119         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12120
12121         * syswindows.h:
12122         Move ICC_BAR_CLASSES to syscommctrl.h.
12123         Add preliminary macros for MSWindows/Mule.  More to come.
12124
12125         * unexnt.c:
12126         * unexnt.c (unexec):
12127         open_output_file moved to nt.c.
12128
12129
12130 2000-05-05  Andy Piper  <andy@xemacs.org>
12131
12132         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12133         instance from the frame cache also since GC may catch up too late
12134         to make frame deletion sane.
12135
12136 2000-05-04  Andy Piper  <andy@xemacs.org>
12137
12138         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12139         (x_finalize_image_instance): ungcpro on deletion.
12140
12141         * glyphs.c (image_instantiator_format_create): give pointers a
12142         query geometry method so that the geometry is at least set.
12143
12144         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12145         initialize layouts if using widgets.
12146
12147 2000-05-03  Andy Piper  <andy@xemacs.org>
12148
12149         * nt.c: remove bogus reference to sysmmsystem.h
12150
12151         * gui-x.c (popup_selection_callback): fix no selection abort.
12152
12153 2000-05-02  Andy Piper  <andy@xemacs.org>
12154
12155         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12156         (mswindows_widget_instantiate): ditto.
12157
12158         * glyphs-widget.c (initialize_widget_image_instance): initialize
12159         children correctly.
12160         (widget_instantiate): cope with children and items in the same
12161         instance.
12162
12163         * glyphs.c (mark_image_instance): cope with children as a first
12164         class member.
12165         (image_instance_equal): ditto.
12166         (image_instance_hash): ditto.
12167         (image_instance_changed): ditto.
12168
12169 2000-04-30  Andy Piper  <andy@xemacs.org>
12170
12171         * glyphs.c (subwindow_query_geometry): new function. Return some
12172         defaults.
12173         (subwindow_instantiate): don't assign dimensions if none have been
12174         given.
12175         (image_instantiator_format_create): add subwindow_query_geometry.
12176         (print_image_instance): cope with layouts as widgets.
12177
12178 2000-04-29  Andy Piper  <andy@xemacs.org>
12179
12180         * frame.c (delete_frame_internal): call
12181         free_frame_subwindow_instance_cache so that all subwindows are
12182         finalized before their parent.
12183         (mark_frame): remove subwindow_cachels.
12184         (Fmake_frame): remove subwindow_cachel manipulation.
12185         (allocate_frame_core): subwindow_instance_cache is a weak list.
12186         (delete_frame_internal): set subwindow_instance_cache to nil.
12187
12188         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12189         finalization safe.
12190         (mswindows_finalize_image_instance): use the device
12191         not the domain as the domain may have died already.
12192
12193         * glyphs-x.c (x_finalize_image_instance): ditto.
12194         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12195         HEIGHT.
12196
12197         * redisplay-output.c (redisplay_unmap_subwindows): update for
12198         subwindow instance cache as a weak list.
12199         (redisplay_unmap_subwindows_maybe): ditto.
12200         (redisplay_unmap_subwindows_except_us): ditto.
12201
12202         * glyphs.c (unmap_subwindow): error checking will check the domain
12203         so don't deal with it here. Don't use cachels anymore.
12204         (map_subwindow): ditto.
12205         (update_subwindow_cachel_data): remove old accessor names.
12206         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12207         (Fresize_subwindow): don't update cachel.
12208         (mark_subwindow_cachels):
12209         (update_subwindow_cachel_data):
12210         (add_subwindow_cachel):
12211         (get_subwindow_cachel_index):
12212         (update_subwindow_cachel):
12213         (reset_subwindow_cachels):
12214         (mark_subwindow_cachels_as_not_updated): deleted.
12215         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12216         subwindow instance to the frame cache.
12217         (find_matching_subwindow): update for subwindow instance cache as
12218         a weak list.
12219         (update_widget_instances): ditto.
12220         (image_instance_type_to_mask):inlined.
12221         (free_frame_subwindow_instance_cache): new function. finalize all
12222         subwindows that are instantiated.
12223
12224         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12225         of cachel information.
12226         (IMAGE_INSTANCE_DISPLAY_X):
12227         (IMAGE_INSTANCE_DISPLAY_Y):
12228         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12229         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12230         (XIMAGE_INSTANCE_DISPLAY_X):
12231         (XIMAGE_INSTANCE_DISPLAY_Y):
12232         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12233         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12234         remove subwindow_cachel structure and function references.
12235         (image_instance_type_to_mask): inline from glyphs.c
12236
12237         * redisplay.c (redisplay_frame): remove subwindow_cachel
12238         references.
12239
12240         * frame.h (struct frame): remove subwindow_cachels.
12241         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12242
12243         * frameslots.h: add subwindow_instance_cache.
12244
12245         * window.c (replace_window): check subwindow cache of replacement.
12246         (window_unmap_subwindows_cache_mapper):
12247         (window_unmap_subwindows): new functions. Unmap all subwindows
12248         cached on this window.
12249         (mark_window_as_deleted): unmap all subwindows.
12250
12251 2000-04-27  Andy Piper  <andy@xemacs.org>
12252
12253         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12254
12255         * glyphs-widget.c (widget_layout): return something.
12256         (layout_layout): return something. Fail if not initialized.
12257         (layout_query_geometry): ditto.
12258         (image_instantiator_native_layout): new function. Initialized the
12259         native layout type.
12260         (widget_instantiate): don't do layout stuff here.
12261
12262         * glyphs.c (instantiate_image_instantiator): reorded calling or
12263         instantiate and post_instantiate with layout in between.
12264         (image_instance_layout): be more selective about deciding whether
12265         the layout has been done or not.
12266
12267         * glyphs.h (struct image_instantiator_methods): return a value
12268         from layout_method.
12269
12270 2000-04-26  Andy Piper  <andy@xemacs.org>
12271
12272         * glyphs.c (allocate_image_instance): make initial width and
12273         height unspecified. Set initialized to 0.
12274
12275         * syscommctrl.h new file. Encapsulates commctrl.h.
12276
12277         * syswindows.h new file. Encapsulates windows.h.
12278
12279         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12280         * nt.c: ditto.
12281         * console-msw.h: ditto.
12282
12283         * redisplay-tty.c (tty_output_display_block): remove layout references.
12284
12285         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12286         window handle rather than just the frame.
12287
12288         * glyphs.c (mark_image_instance): remove layout references.
12289         (print_image_instance): ditto.
12290         (image_instance_equal): ditto.
12291         (image_instance_hash): ditto.
12292         (decode_image_instance_type): ditto.
12293         (encode_image_instance_type): ditto.
12294         (image_instantiate): ditto.
12295         (allocate_glyph): ditto.
12296         (Fimage_instance_height): ditto.
12297         (Fimage_instance_width): ditto.
12298         (update_subwindow): ditto.
12299
12300         * redisplay-x.c (x_output_display_block): recode for layouts as
12301         widgets.
12302
12303         * redisplay-output.c (redisplay_output_layout): recode for layouts
12304         as widgets.
12305         (compare_runes): remove layout references.
12306
12307         * redisplay-msw.c (mswindows_output_display_block): recode for
12308         layouts as widgets.
12309
12310         * glyphs-widget.c (image_instantiator_layout): remove
12311         layout_possible_dest_types.
12312         (layout_possible_dest_types): deleted.
12313
12314         * glyphs.h (image_instance_type): remove layout references.
12315         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12316         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12317         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12318
12319 2000-04-25  Andy Piper  <andy@xemacs.org>
12320
12321         * glyphs-widget.c (image_instantiator_buttons):
12322         (image_instantiator_edit_fields):
12323         (image_instantiator_combo_box):
12324         (image_instantiator_scrollbar):
12325         (image_instantiator_progress_guage):
12326         (image_instantiator_tree_view):
12327         (image_instantiator_tab_control):
12328         (image_instantiator_labels):
12329         (image_instantiator_layout): call default post_instantiate method.
12330         (widget_post_instantiate): new function. Simply lays out the
12331         widgets.
12332
12333         * glyphs.h (struct image_instantiator_methods): add
12334         post_instantiate method.
12335
12336         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12337         method calls.
12338
12339 2000-04-23  Andy Piper  <andy@xemacs.org>
12340
12341         * glyphs.h (struct image_instantiator_methods): add
12342         decode_domain_method.
12343         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12344         derived from the domain.
12345         (IMAGE_INSTANCE_FRAME): new accessor.
12346         (XIMAGE_INSTANCE_FRAME): ditto.
12347
12348         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12349         instead of _SUBWINDOW_FRAME.
12350         (finalize_image_instance): ditto.
12351         (Fimage_instance_foreground): ditto.
12352         (Fimage_instance_background): ditto.
12353         (image_instantiate): ditto.
12354         (update_subwindow_cachel): ditto.
12355         (update_subwindow): ditto.
12356         (unmap_subwindow): ditto.
12357         (map_subwindow): ditto
12358         (subwindow_instantiate): ditto.
12359         * glyphs-msw.c (mswindows_update_widget): ditto.
12360         (mswindows_progress_gauge_instantiate): ditto.
12361         (mswindows_tab_control_update): ditto.
12362         * glyphs-x.c (x_update_widget): ditto.
12363         (x_widget_instantiate): ditto.
12364         (x_tab_control_instantiate): ditto.
12365         (x_tab_control_update): ditto.
12366         * event-msw.c (mswindows_wnd_proc): ditto
12367
12368         * glyphs-widget.c (image_instantiator_layout): use
12369         subwindow_decode_domain.
12370         (image_instantiator_buttons): ditto.
12371         (image_instantiator_edit_fields): ditto.
12372         (image_instantiator_combo_box): ditto.
12373         (image_instantiator_scrollbar): ditto.
12374         (image_instantiator_progress_guage): ditto.
12375         (image_instantiator_tree_view): ditto.
12376         (image_instantiator_tab_control): ditto.
12377         (image_instantiator_labels): ditto.
12378         (image_instantiator_layout): ditto.
12379
12380         * glyphs.c: add instance error checking to many functions.
12381         (instantiate_image_instantiator): decode device from cache_domain.
12382         (image_instantiate): partially rewrite by using
12383         decode_image_instantiator_domain to determine what domain the
12384         instance needs to be cached in.
12385         (decode_image_instantiator_domain): new function. Determine what
12386         domain the image needs to be cached in.
12387         (check_window_subwindow_cache): new error checking function.
12388         (check_instance_cache_mapper): ditto.
12389         (check_image_instance_structure): ditto.
12390         (subwindow_decode_domain): new function. Encodes a window as a
12391         subwindow's cache domain.
12392         (image_instantiator_format_create): use it for text and
12393         subwindows.
12394
12395 2000-04-21  Andy Piper  <andy@xemacs.org>
12396
12397         * glyphs.c (image_instance_device): new function.
12398         (image_instance_frame): new function.
12399         (image_instance_window): new function.
12400         (image_instance_live_p): new function.
12401
12402         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12403         cache to nil.
12404
12405         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12406         (IMAGE_INSTANCE_DOMAIN): new accessor.
12407         (XIMAGE_INSTANCE_DOMAIN): ditto.
12408
12409         * glyphs-x.c (x_finalize_image_instance): device->domain.
12410
12411         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12412         (mswindows_finalize_image_instance): ditto.
12413
12414         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12415         (gif_instantiate): ditto.
12416         (png_instantiate): ditto.
12417         (tiff_instantiate): ditto.
12418
12419         * glyphs.c (instantiate_image_instantiator): use domain rather
12420         than device.
12421         (mark_image_instance): device -> domain.
12422         (print_image_instance): ditto.
12423         (finalize_image_instance): ditto.
12424         (image_instance_equal): ditto.
12425         (allocate_image_instance): ditto.
12426         (Fcolorize_image_instance): ditto.
12427         (query_string_geometry): ditto.
12428         (image_instantiate): ditto
12429         (query_string_font): ditto.
12430         (image_instantiate): ditto.
12431         (update_subwindow): ditto.
12432         (unmap_subwindow): ditto.
12433         (map_subwindow): ditto.
12434         (subwindow_instantiate): ditto.
12435
12436         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12437         (DOMAIN_FRAME): ditto.
12438         (DOMAIN_WINDOW): ditto.
12439         (DOMAIN_LIVE_P): ditto.
12440         (XDOMAIN_DEVICE): ditto.
12441         (XDOMAIN_FRAME): ditto.
12442         (XDOMAIN_WINDOW): ditto.
12443
12444         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12445         a valid specifier domain.
12446
12447 2000-04-19  Andy Piper  <andy@xemacs.org>
12448
12449         * glyphs-widget.c (syms_of_glyphs_widget): remove
12450         widget-callback-current-channel.
12451         (vars_of_glyphs_widget): ditto.
12452         * glyphs.h: ditto
12453
12454         * gui.c (get_gui_callback): revert to previous behaviour.
12455
12456 2000-04-18  Andy Piper  <andy@xemacs.org>
12457
12458         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12459         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12460         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12461
12462         * glyphs.c (image_instance_equal): add margin_width.
12463         (image_instance_hash): ditto.
12464
12465         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12466         (layout_query_geometry): ditto.
12467         (layout_layout): ditto.
12468         (syms_of_glyphs_widget): add margin-width.
12469         (image_instantiator_layout): allow margin-width.
12470
12471         * glyphs.c (update_widget_instances): make a normal function.
12472         (syms_of_glyphs): remove Qupdate_widget_instances.
12473         * glyphs.h: ditto.
12474
12475         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12476         so that we don't corrupt ideas about the last event or
12477         command. Remove widget-callback-current-channel fiddling.
12478         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12479
12480 2000-05-01  Martin Buchholz <martin@xemacs.org>
12481
12482         * XEmacs 21.2.33 is released.
12483
12484 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12485
12486         * make-src-depend: Allow dots in header file name.
12487
12488 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12489
12490         * mule-charset.h (struct charset_lookup): Add
12491         next_allocated_1_byte_leading_byte and
12492         next_allocated_2_byte_leading_byte.
12493         * mule-charset.c: Move above two variables so that those values
12494         will be dumped.
12495
12496 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12497
12498         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12499         when string length is zero.
12500         (find_charsets_in_emchar_string): Ditto.
12501
12502 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12503
12504         * lisp.h: extern Qdialog and Qmenubar.
12505
12506         * gui-x.c: added events.h.
12507                 also fixed typo which made the file uncompilable.
12508
12509         * general.c: Added Qmenubar and Qdialog
12510
12511 2000-04-28  Ben Wing  <ben@xemacs.org>
12512
12513         * frame-msw.c (mswindows_init_frame_1):
12514         * frame-msw.c (mswindows_mark_frame):
12515         * event-msw.c (mswindows_enqueue_dispatch_event):
12516         * console-msw.h:
12517         * console-msw.h (struct mswindows_frame):
12518         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12519         there are now three hash tables for callbacks.
12520         mswindows_enqueue_dispatch_event is no longer static.
12521
12522         * dialog-x.c (maybe_run_dbox_text_callback):
12523         * dialog-x.c (dbox_descriptor_to_widget_value):
12524         switch to new cons3 form for callbacks.
12525
12526         * glyphs-msw.c (mswindows_register_gui_item):
12527         * glyphs-msw.c (mswindows_widget_instantiate):
12528         * glyphs-msw.c (add_tree_item):
12529         * glyphs-msw.c (add_tab_item):
12530         new image instance parameter, so it can be passed to callback-ex.
12531         respect :callback-ex as well as :callback.
12532
12533         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12534         add :callback-ex.
12535
12536         * glyphs.c (print_image_instance):
12537         prettify, e.g. now prints widget type.
12538
12539         * gui-x.h:
12540         certain funs have new image instance parameter.
12541
12542         * gui.c:
12543         * gui.c (get_gui_callback):
12544         * gui.c (gui_item_add_keyval_pair):
12545         * gui.c (gui_item_init):
12546         * gui.c (gui_add_item_keywords_to_plist):
12547         * gui.c (mark_gui_item):
12548         * gui.c (gui_item_hash):
12549         * gui.c (gui_item_equal):
12550         * gui.c (copy_gui_item):
12551         * gui.c (syms_of_gui):
12552         recognize callback-ex in a number of places.
12553         also, fix the annoying "can't get out of yes-no dialog" bug.
12554
12555         * gui.h:
12556         * gui.h (struct Lisp_Gui_Item):
12557         recognize callback-ex in a number of places.
12558
12559         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12560         new parameter in button_item_to_widget_value.
12561
12562         * glyphs-x.c (x_update_widget):
12563         * glyphs-x.c (x_button_instantiate):
12564         * glyphs-x.c (x_button_update):
12565         * glyphs-x.c (x_progress_gauge_instantiate):
12566         * glyphs-x.c (x_edit_field_instantiate):
12567         * glyphs-x.c (x_combo_box_instantiate):
12568         * glyphs-x.c (x_tab_control_instantiate):
12569         * glyphs-x.c (x_label_instantiate):
12570         new image instance parameter in various places.
12571
12572         * event-Xt.c:
12573         * event-Xt.c (enqueue_Xt_dispatch_event):
12574         this fun gets exported.
12575
12576         * gui-msw.c:
12577         * gui-msw.c (mswindows_handle_gui_wm_command):
12578         handle both :callback and :callback-ex, and generate our own
12579         event because it's one of the callback-ex arguments.
12580
12581         * gui-x.c:
12582         * gui-x.c (popup_selection_callback):
12583         handle both :callback and :callback-ex, and generate our own
12584         event because it's one of the callback-ex arguments.
12585         * gui-x.c (button_item_to_widget_value):
12586         * gui-x.c (gui_items_to_widget_values_1):
12587         * gui-x.c (gui_item_children_to_widget_values):
12588         * gui-x.c (gui_items_to_widget_values):
12589         new image instance parameter in various places.
12590
12591         * fns.c (Freplace_list):
12592         fix small typo in doc string.
12593
12594         * lisp.h:
12595         declare enqueue_Xt_dispatch_event.
12596
12597 2000-04-28  Ben Wing  <ben@xemacs.org>
12598
12599         * buffer.c:
12600         * buffer.c (Frecord_buffer):
12601         * buffer.c (syms_of_buffer):
12602         delete record-buffer-hook.
12603
12604         * fns.c:
12605         * fns.c (Freplace_list):
12606         * fns.c (syms_of_fns):
12607         new primitive replace-list.
12608
12609         * frameslots.h:
12610         slot for old buffer-alist.
12611
12612         * lisp.h:
12613         exfun replace-list.
12614
12615         * redisplay.c:
12616         * redisplay.c (redisplay_frame):
12617         * redisplay.c (syms_of_redisplay):
12618         * redisplay.c (vars_of_redisplay):
12619         new hook buffer-list-changed-hook.
12620         call it.
12621
12622 2000-04-27  Ben Wing  <ben@xemacs.org>
12623
12624         * extents.h: extern in_modeline_generation.
12625
12626         * redisplay.c (generate_formatted_string_db): set
12627         in_modeline_generation.
12628
12629         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12630         flags if in modeline generation.  otherwise frame-modified-tick
12631         is ticked far too often.
12632         Declare in_modeline_generation.
12633
12634 2000-04-26  Ben Wing  <ben@xemacs.org>
12635
12636         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12637         option.
12638         (vars_of_emacs): add quick-build as an error-checking option.
12639         A bit kludgy, but there doesn't seem much point in creating
12640         a real var for this.
12641
12642         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12643
12644 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12645
12646         * redisplay.h (struct display_line): Add a new variable,
12647         line_continuation.
12648
12649         * redisplay.c (create_text_block): Set dl->line_continuation if
12650         the line continues.
12651         (create_string_text_block): Ditto.
12652         (regenerate_window_incrementally): Use line_continuation instead
12653         of searching continuation glyph.
12654         (add_margin_runes): Call add_glyph_rune.
12655         (add_glyph_rune): Handle margin glyph.
12656
12657 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12658
12659         * filelock.c (fill_in_lock_file_name):
12660         ANSIfy.
12661         Check for IS_ANY_SEP instead of '/'.
12662         (lock_file_1):
12663         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12664         Never check errno without first seeing that system call failed.
12665         (unlock_file): Add GCPRO.
12666         (Flock_buffer): Fix docstring.
12667         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12668
12669 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12670
12671         * sysdep.c (get_pty_max_bytes):
12672         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12673         strings longer than 252 bytes.
12674
12675         * md5.c: Unconditionally include ANSI header <limits.h>
12676
12677         * glyphs-x.c (convert_EImage_to_XImage):
12678         * lisp-union.h (union Lisp_Object):
12679         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12680
12681 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12682
12683         * filelock.c (current_lock_owner): Remove unused variable o, p.
12684
12685 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12686
12687         * callint.c: Remove multiply defined symbol Qlet
12688         (syms_of_callint): ditto.
12689
12690 2000-04-14  Andy Piper  <andy@xemacs.org>
12691
12692         * general.c (syms_of_general): add last-command, this-command, let
12693         and funcall.
12694
12695         * lisp.h: declare various symbols.
12696
12697         * glyphs.h: declare Qwidget_callback_current_channel;
12698
12699         * glyphs-widget.c (syms_of_glyphs_widget): add
12700         Qgui_callback_current_channel.
12701         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12702
12703         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12704         widget-callback-current-channel when invoking the interactive
12705         arg. Also bind last-command and next-command when invoking the
12706         widget updates.
12707         * gui-x.c (popup_selection_callback): ditto.
12708
12709         * gui.c (get_gui_callback): massage args so that we are always
12710         calling eval. This allows us to add our own variable bindings
12711         outside.
12712
12713         * glyphs-x.c (x_button_instantiate): use
12714         gui_items_to_widget_values since this is GC safe.
12715         (x_progress_gauge_instantiate): ditto.
12716         (x_edit_field_instantiate): ditto.
12717         (x_label_instantiate): ditto.
12718
12719         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12720         (emacs_Xt_event_widget_focus_out): new function
12721         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12722         focus.
12723         (emacs_Xt_event_add_widget_actions): new function. add focus
12724         functions as actions.
12725         (init_event_Xt_late): use it.
12726
12727 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12728
12729         * event-stream.c (Fdispatch_event): Doc fix.
12730
12731 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12732
12733         * postgresql.c: Remove all references to PQsetenv*.
12734
12735         * postgresql.h: Remove references to PGsetenvHandler object.
12736         * lrecord.h (lrecord_type): Ditto.
12737
12738 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12739
12740         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12741         real_heigh and real_width members, and accessor macros for these.
12742
12743         * glyphs-msw.c (init_image_instance_geometry): New function.
12744         (init_image_instance_from_dibitmap): Use it.
12745         (mswindows_resource_instantiate): Use it.
12746         (init_image_instance_from_xbm_inline): Use it.
12747         (mswindows_initialize_image_instance_mask): Use real bitmap
12748         geometry.
12749         (mswindows_create_resized_bitmap): Ditto.
12750         (mswindows_create_resized_mask): Ditto.
12751
12752         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12753         and bitmap to their surface size.
12754
12755 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12756
12757         * process-unix.c (unix_send_process): Guard against process MIA
12758         after Faccept_process_output.
12759
12760 2000-04-11  Ben Wing  <ben@xemacs.org>
12761
12762         * eval.c (unbind_to_hairy): fix brokenness introduced by
12763         nanosecond speed improvements.
12764
12765 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12766
12767         * sunplay.c (init_device): To play sounds correctly, the device
12768         apparently needs to be initialized at least once by XEmacs.  Make
12769         it so.
12770
12771 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12772
12773         * redisplay.c (add_margin_runes): Add text image glyph
12774           handling.
12775
12776 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12777
12778         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12779         gcc is newer than 2.5.
12780
12781 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12782
12783         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12784
12785         * fns.c (size_bit_vector):
12786         * alloc.c (size_vector):
12787         (make_vector_internal):
12788         (make_bit_vector_internal):
12789         (sweep_bit_vectors_1):
12790         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12791
12792 2000-04-06  Andy Piper  <andy@xemacs.org>
12793
12794         * gmalloc.c (malloc): undo previous change.
12795         (malloc): ditto.
12796         (free): ditto.
12797         (realloc): ditto.
12798
12799 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12800
12801         * line-number.c (buffer_line_number): Revert to former version.
12802
12803 2000-04-06  Andy Piper  <andy@xemacs.org>
12804
12805         * gmalloc.c (malloc): add error checking.
12806         (malloc): ditto.
12807         (free): ditto.
12808         (realloc): ditto.
12809
12810         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12811         button_item_to_widget_value arg.
12812
12813         * glyphs-x.c (x_button_instantiate): add extra
12814         button_item_to_widget_value arg.
12815         (x_progress_gauge_instantiate): ditto.
12816         (x_edit_field_instantiate): ditto.
12817         (x_label_instantiate): ditto.
12818
12819         * gui-x.c (gui_items_to_widget_values_1): add extra
12820         button_item_to_widget_value arg.
12821         (button_item_to_widget_value): add extra menu_item_p arg.
12822
12823         * gui-x.h: change signature of button_item_to_widget_value.
12824
12825         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12826         button_item_to_widget_value arg.
12827
12828 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12829
12830         * buffer.h (struct buffer): auto_save_modified should be long.
12831
12832 2000-04-05  Andy Piper  <andy@xemacs.org>
12833
12834         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12835         type.
12836         (button_query_geometry): give a little more room so that athena
12837         buttons fit.
12838
12839 2000-04-05  Andy Piper  <andy@xemacs.org>
12840
12841         * faces.c (complex_vars_of_faces): The widget face should inherit
12842         the font of the gui-element face.
12843
12844 2000-04-04  Andy Piper  <andy@xemacs.org>
12845
12846         * glyphs-x.c (x_button_update): new function. unconditionally
12847         update a button's state when the instance is dirty.
12848         (image_instantiator_format_create_glyphs_x): add x_button_update.
12849         (x_widget_instantiate): remove old resize cruft.
12850
12851 2000-04-02  Andy Piper  <andy@xemacs.org>
12852
12853         * frame.c (change_frame_size_1): The introduction of gutters means
12854         that we need to allow 0 as a potential frame dimension.
12855
12856 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12857
12858         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12859         image glyph if allow_cursor.
12860         (add_hscroll_rune): Don't allow cursor to border glyph.
12861         (create_text_block): Ditto.
12862
12863         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12864         text not in buffer.
12865         (redisplay_output_layout): Call ensure_face_cachel_complete for
12866         text image glyph.
12867
12868
12869 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12870
12871         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12872
12873         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12874         not in buffer
12875
12876         * redisplay-tty.c (tty_output_display_block): Delete the routine
12877         for text image glyph
12878         * redisplay-x.c (x_output_display_block): ditto
12879         * redisplay-msw.c (mswindows_output_display_block): ditto
12880
12881 2000-02-02  Mike Alexander  <mta@arbortext.com>
12882
12883         Note: Some of these were committed by accident as part of other
12884         patches.
12885
12886         * regex.c (regex_compile): Avoid compiler warnings.
12887
12888         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12889
12890         * nt.h: Declare term_ntproc correctly.
12891
12892         * nt.c: Remove incorrect declaration of get_home_directory which
12893         is declared correctly in lisp.h.
12894
12895         * keymap.c (get_keyelt): Avoid compiler warnings.
12896         (raw_lookup_key_mapper): Avoid compiler warnings.
12897
12898         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12899
12900         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12901
12902         * filemode.c (mode_string): Avoid compiler warnings.
12903
12904         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12905         avoid warning.
12906
12907         * events-mod.h: Undef some things that winuser.h defines differently.
12908
12909         * data.c (Faset): Avoid compiler warnings.
12910
12911         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12912
12913 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12914
12915         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12916         Fall through to simple beep on error.
12917         Replace "extern" by real header file.
12918
12919         * linuxplay.c: Use nativesound.h
12920         (play_sound_data): Return error code. Be less verbose on error.
12921
12922         * sunplay.c: Use nativesound.h
12923         (play_sound_data): Return error code. Be less verbose on error.
12924
12925         * ntplay.c: Use nativesound.h
12926         (play_sound_data): Return fake error code
12927
12928         * sgiplay.c: Use nativesound.h
12929         (play_sound_data): Return error code
12930
12931         * hpplay.c: Use nativesound.h, partially implement
12932         new error code. Break compilation until finished.
12933         (play_sound_data): error code.
12934
12935         * nativesound.h (play_sound_file):
12936           (play_sound_data): Prototype in new header.
12937
12938 2000-03-31  Andy Piper  <andy@xemacs.org>
12939
12940         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12941         for toggle and radio buttons.
12942         (image_instantiator_buttons): use it.
12943
12944 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12945
12946         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12947         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12948         found. Scrollbar event probably belonged to some old config.
12949
12950 2000-03-31  Andy Piper  <andy@xemacs.org>
12951
12952         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12953         than 1.
12954         (initialize_widget_image_instance): default layout to
12955         LAYOUT_HORIZONTAL rather than 0.
12956         (widget_instantiate): reverse the item list at the end rather than
12957         every iteration.
12958         (layout_layout): re-code for the border text at the front of the
12959         item list rather than at the end.
12960         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12961         provided by the user.
12962         (widget_query_geometry): comment.
12963
12964 2000-03-30  Andy Piper  <andy@xemacs.org>
12965
12966         * glyphs-widget.c (image_instantiator_layout): allow standard
12967         widget keywords in layouts.
12968
12969         * gutter.c (output_gutter): cope with nil gutter contents.
12970
12971         * frame.c (Fset_frame_properties): add gutter docs.
12972
12973 2000-03-29  Andy Piper  <andy@xemacs.org>
12974
12975         * toolbar-msw.c (TBSTYLE_FLAT): add.
12976         (mswindows_output_toolbar): minor fiddling.
12977
12978 2000-03-29  Andy Piper  <andy@xemacs.org>
12979
12980         * gutter.c (output_gutter): force gutter size recalculation if
12981         what we are trying to display won't fit.
12982         (update_gutter_geometry): new function. A per-gutter version of
12983         update_frame_gutter_geometry.
12984         (update_frame_gutter_geometry): use it.
12985         (redraw_exposed_gutter): add extra debugging output.
12986
12987 2000-03-28  Mike Alexander  <mta@arbortext.com>
12988
12989         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12990         (pdump_file_unmap): Implement it on Windows
12991         (pdump_file_get): Save alocated handles for pdump_file_unmap
12992
12993 2000-03-28  Andy Piper  <andy@xemacs.org>
12994
12995         * gui.c (get_gui_callback): treat Quit specially.
12996
12997 2000-03-27  Andy Piper  <andy@xemacs.org>
12998
12999         * glyphs.c (image_instantiate): be careful to check in the same
13000         way we assigned.
13001
13002 2000-03-27  Didier Verna  <didier@xemacs.org>
13003
13004         * config.h.in: define the proper SMART_INCLUDE macro.
13005         handle renaming of `foo_h_path' to `foo_h_file'.
13006
13007         * database.c: ditto.
13008
13009         * emacs.c: ditto.
13010
13011         * linuxplay.c: ditto.
13012
13013         * terminfo.c: ditto.
13014
13015         * tooltalk.h: ditto.
13016
13017 2000-03-27  Andy Piper  <andy@xemacs.org>
13018
13019         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13020         gets updated whenever the face might have changed.
13021
13022 2000-03-26  Mike Alexander  <mta@arbortext.com>
13023
13024         * dumper.c (pdump_resource_free): Fix the comment.
13025
13026 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13027
13028         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13029
13030 2000-03-22  Mike Alexander  <mta@arbortext.com>
13031
13032         * dumper.c: Include Windows headers on Windows
13033         (pdump_resource_free): Add a body to the function
13034         (pdump_load): exe_name -> exe_path and add some comments.
13035
13036 2000-03-25  Mike Alexander  <mta@arbortext.com>
13037
13038         * gui.c (copy_gui_item_tree): Return a value in all cases
13039
13040 2000-03-21  Didier Verna  <didier@xemacs.org>
13041
13042         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13043         lwlib/config.h.in.
13044         (SMART_INCLUDE): new macro.
13045         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13046         the proper location.
13047
13048         * postgresql.c: use it.
13049
13050         * inline.c: ditto.
13051
13052 2000-03-24  Andy Piper  <andy@xemacs.org>
13053
13054         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13055         do this.
13056
13057 2000-03-24  Andy Piper  <andy@xemacs.org>
13058
13059         * redisplay-output.c (compare_runes): use image_instance_changed
13060         to detect changes. Do not depend on glyphs_changed, only depend on
13061         dirtiness.
13062          (redisplay_output_layout): add debug messages.
13063         (compare_runes): ditto.
13064
13065         * glyphs.h: declare new functions.
13066         (struct Lisp_Image_Instance): remove percent and associated
13067         accessors.
13068
13069         * gui.h: declare new copying functions.
13070
13071         * gui.c (copy_gui_item_tree): new function.
13072         (copy_gui_item): new function.
13073         (gui_item_id_hash): revert to standard hash.
13074         (gui_item_hash): ditto.
13075         (gui_item_hash_internal): deleted.
13076         (mark_gui_item): mark value.
13077         (gui_item_add_keyval_pair): add value.
13078         (gui_item_init): ditto.
13079         (gui_add_item_keywords_to_plist): ditto.
13080         (gui_item_equal): ditto.
13081         (syms_of_gui): add Q_value.
13082
13083         * glyphs-x.c (x_progress_gauge_update): use pending items and
13084         value for setting the state.
13085         (x_update_widget): don't set items from pending here.
13086
13087         * glyphs-widget.c (update_widget): update items here.
13088         (progress_gauge_set_property): use items for storing value. Put
13089         new value in pending items.
13090
13091         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13092         items for new value. Convert percent -> value.
13093         (mswindows_tab_control_update): don't update items here.
13094
13095         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13096         (update_subwindow): ditto.
13097         (image_instance_changed): new function. Compare hash values and
13098         past and present widget items.
13099         (image_instantiate): We more careful about where we instantiate
13100         things.
13101         (image_instantiate): add error checking.
13102
13103         * gutter.c (syms_of_gutter): use -hook.
13104
13105 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13106
13107         * console-tty.c (Fset_console_tty_input_coding_system): Use
13108         Qkeyboard.
13109         (Fset_console_tty_output_coding_system): Use Qterminal.
13110         (tty_init_console): Use Qkeyboard and Qterminal.
13111
13112 2000-03-21  Ben Wing  <ben@xemacs.org>
13113
13114         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13115         From Mike Alexander <mta@arbortext.com>.
13116
13117 2000-03-21  Ben Wing  <ben@xemacs.org>
13118
13119         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13120         process brokenness.  Proper implementation to come.
13121         * callproc.c:
13122         Rename call-process-internal to old-call-process-internal.
13123         New impl. in process.el.
13124
13125 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13126
13127         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13128
13129 2000-03-20  Andy Piper  <andy@xemacs.org>
13130
13131         * glyphs.c (full_list_hash): make hashes of the same elements in
13132         different orders return different values.
13133
13134 2000-03-20  Martin Buchholz <martin@xemacs.org>
13135
13136         * XEmacs 21.2.32 is released.
13137
13138 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13139
13140         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13141         (DFC_MALLOC_USE_CONVERTED_DATA):
13142         Add aliasing-safe casts to allow use with char* or unsigned char*
13143         lvalues.
13144
13145         * eldap.c (Fldap_open):
13146         (Fldap_search_basic):
13147         (Fldap_add):
13148         (Fldap_modify):
13149         Make C++-compilable.
13150         Make sure GCPRO'ed variables are initialized.
13151         Use temp variables to avoid repeated calls to Flength.
13152
13153 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13154
13155         * sysfile.h:
13156         Make sure PATH_MAX is always defined.
13157         Include limits.h for PATH_MAX.
13158         Deprecate use of MAXPATHLEN.
13159
13160 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13161
13162         * emacs.c: Add reinit_vars_of_fileio.
13163         * symsinit.h: Add reinit_vars_of_fileio.
13164         * fileio.c (reinit_vars_of_fileio): New.
13165         * fileio.c (Fmake_temp_name):
13166         Initialize temp_name random number from microseconds to make
13167         collisions even less likely.  Initialize always at process startup
13168         time.  (make-temp-name) used to return the same file name twice in
13169         a row when PDUMP.
13170         Random stylistic fiddling.
13171         Comment fixes.
13172
13173 2000-03-20  Andy Piper  <andy@xemacs.org>
13174
13175         * glyphs.c (image_instantiate): allow text glyphs to be
13176         instantiated in the minibuffer window.
13177
13178 2000-03-19  Andy Piper  <andy@xemacs.org>
13179
13180         * glyphs.c (image_instance_hash): be careful about which items we
13181         hash on.
13182
13183         * glyphs-widget.c (tab_control_set_property): record into pending
13184         items rather than the actual items.
13185
13186         * glyphs-x.c (x_update_widget): use pending items to update with.
13187
13188         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13189         to update with.
13190
13191         * glyphs.c (mark_image_instance): mark pending items.
13192
13193         * window.c (Fset_window_configuration): record the buffer.
13194         (Fselect_window): totally revert previous change which breaks many
13195         things.
13196
13197 2000-03-18  Andy Piper  <andy@xemacs.org>
13198
13199         * glyphs-msw.c (mswindows_tab_control_update): force selected
13200         item.
13201
13202         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13203         window domain cache, otherwise we get inconsistencies at
13204         startup. There is something fishy at startup which can lead to the
13205         minibuffer being the selected window when the gutter content is
13206         instantiated.
13207
13208         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13209         gcpros.
13210         (parse_gui_item_tree_children): ditto.
13211         (parse_gui_item_tree_item): ditto.
13212
13213         * glyphs.c (Fupdate_widget_instances): return something.
13214
13215 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13216
13217         * window.c (Fselect_window): Undo 2000-03-17 change.
13218
13219 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13220
13221         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13222         against v7.0 libraries.  Insta-coredump city until the postgres
13223         folks fix it.
13224
13225 2000-03-17  Andy Piper  <andy@xemacs.org>
13226
13227         * faces.c (complex_vars_of_faces): don't give the widget face an
13228         inherited background pixmap.
13229
13230         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13231         selected item.
13232
13233         * event-stream.c (Fdispatch_non_command_events): return something.
13234
13235         * gutter.c (output_gutter): use widget face.
13236         (clear_gutter): ditto.
13237
13238         * NEWS: adjust again.
13239
13240         * window.c (Fselect_window): make sure this runs to completion to
13241         avoid oddities with Fset_window_configuration.
13242         (Fcurrent_window_configuration): in general do not save the
13243         minibuffer as the selected window.
13244
13245         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13246
13247 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13248
13249         * emacs.c (Frunning_temacs_p): Revert previous patch.
13250         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13251
13252 2000-03-16  Andy Piper  <andy@xemacs.org>
13253
13254         * glyphs-x.c (x_tab_control_update): if no widget values then
13255         return.
13256
13257         * NEWS: update for new features.
13258
13259         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13260         synthetic event to the native system.
13261         (reinit_vars_of_event_Xt): set force_event_pending to
13262         emacs_Xt_force_event_pending.
13263
13264         * events.h (struct event_stream): add force_event_pending.
13265
13266         * specifier.c (recompute_one_cached_specifier_in_window): add
13267         comment.
13268
13269         * redisplay.c (redisplay_frame): don't call
13270         update_frame_subwindows. Reset subwindow cachels when
13271         subwindows_changed, removing this was an optimization too far.
13272
13273         * redisplay-output.c (compare_runes): reorganize so that we catch
13274         glyph changes when we want them. Set optimize_output when this
13275         would help layouts.
13276         (redisplay_output_layout): remove frame_really_changed, use
13277         optimize_output instead.
13278
13279         * redisplay-msw.c (mswindows_output_display_block): reset
13280         optimize_output after outputting a glyph.
13281         * redisplay-x.c (x_output_display_block): ditto.
13282         * redisplay-tty.c (tty_output_display_block): ditto.
13283
13284         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13285         functions.
13286         (gutter_specs_changed): do specific gutter positions.
13287         (top_gutter_specs_changed): new function. Only update the
13288         specified gutter specs.
13289         (bottom_gutter_specs_changed): ditto.
13290         (left_gutter_specs_changed): ditto.
13291         (right_gutter_specs_changed): ditto.
13292
13293         * gui.c (gui_item_hash_internal): new function, does a real hash.
13294         (gui_item_id_hash): use it.
13295         (gui_item_hash): hash the eval'ed gui_item.
13296
13297         * gui-x.c (popup_selection_callback): send an eval event to call
13298         Fupdate_widget_instances.
13299
13300         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13301         to call Fupdate_widget_instances.
13302
13303         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13304         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13305
13306         * glyphs.c: (update_frame_subwindows): deleted.
13307         (Fupdate_widget_instances): new function for updating the dirty
13308         state of widgets that might have changed.
13309         (syms_of_glyphs): add Qupdate_widget_instances.
13310         (full_list_hash): hash a list completely.
13311         (image_instance_hash): use it for items and properties.
13312
13313         * frame-msw.c (mswindows_size_frame_internal): remove unused
13314         variable.
13315
13316         * faces.h (struct face_cachel): fix comment.
13317
13318         * event-stream.c (Fdispatch_non_command_events): new
13319         function. Process non-command events, forcing an event cycle
13320         beforehand.
13321         (syms_of_event_stream): declare.
13322         (event_stream_force_event_pending): new function. Force an event
13323         on the native event queue so that an event cycle will occur next
13324         time we check.
13325
13326         * event-msw.c:
13327         (struct ntpipe_shove_stream):
13328         (mswindows_enqueue_dispatch_event):
13329         (mswindows_dequeue_dispatch_event):
13330         (mswindows_cancel_dispatch_event):
13331         (mswindows_pump_outstanding_events):
13332         (mswindows_drain_windows_queue):
13333         (mswindows_handle_paint):
13334         (mswindows_wnd_proc):
13335         (mswindows_key_to_emacs_keysym):
13336         (get_process_input_waitable):
13337         (emacs_mswindows_delete_stream_pair): re-indent file.
13338         (mswindows_need_event): do not process further fds if the windows
13339         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13340         fixes the 100% cpu problem.
13341         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13342
13343 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13344
13345         * alloc.h: New.
13346         * dumper.h: New.
13347         * dumper.c: New.
13348
13349         * emacs.c: Moved dump file searching to dumper.c.
13350         (Frunning_temacs_p): Fixed.
13351
13352         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13353         last_lrecord_type_index_assigned.
13354
13355 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13356
13357         * symsinit.h: Added reinit parameter to init_console_stream
13358         declaration.
13359
13360         * lisp.h: Added file parameter to pdump_load declaration.
13361
13362         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13363         support.  Added dump file searching.
13364
13365         * config.h.in: Added EMACS_PROGNAME.
13366
13367         * console-stream.c (init_console_stream): Fix reinitialisation
13368         when running from temacs.
13369
13370         * alloc.c (pdump): Add id support.
13371         (pdump_load): Add file parameter and signature/id support.
13372
13373         * Makefile.in.in: Add full pdump support.
13374
13375 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13376
13377         * postgresql.c: Update documentation to reflect latest code
13378         status.
13379         (print_result): Show tuple counts in printed representation when
13380         appropriate.
13381         (Fpq_put_nbytes): MULE-ize.
13382         (Fpq_get_line_async): Ditto.
13383
13384 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13385
13386         * postgresql.c (Fpq_lo_import): Fix return value.
13387         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13388
13389 2000-03-13  Ben Wing  <ben@xemacs.org>
13390
13391         * alloc.c (pdump_load):
13392         Fix compile warning under mswin.
13393
13394 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13395
13396         * postgresql.c: Mule-ization, bug fixes.
13397         Use PG_CODING to encapsulate coding system name changes.
13398         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13399         (pg-coding-system): Create.
13400
13401         (Fpq_conn_defaults): Mule-ize.
13402         (Fpq_connectdb): Mule-ize & bug fix.
13403         (Fpq_connect_start): Mule-ize.
13404         (Fpq_set_client_encoding): Mule-ize.
13405         (Fpq_finish): Document `DEAD' connection status.
13406         (Fpq_clear): Ditto.
13407         (Fpq_pgconn): Mule-ize.
13408         (Fpq_exec): Mule-ize & bug fix.
13409         (Fpq_send_query): Ditto.
13410         (Fpq_get_result): Ditto.
13411         (Fpq_res_status): Mule-ize.
13412         (Fpq_result_error_message): Mule-ize.
13413         (Fpq_ntuples): fix comments.
13414         (Fpq_fname): Mule-ize.
13415         (Fpq_fnumber): Mule-ize.
13416         (Fpq_ftype): fix comments.
13417         (Fpq_get_value): Mule-ize.
13418         (Fpq_cmd_status): Ditto.
13419         (Fpq_cmd_tuples): Ditto.
13420         (Fpq_oid_value): Ditto.
13421         (Fpq_notifies): Ditto.
13422         (Fpq_lo_import): Ditto.
13423         (Fpq_lo_export): Ditto.
13424         (Fpq_get_line): Ditto.
13425         (Fpq_put_line): Mule-ize and bug fix.
13426         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13427
13428 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13429
13430         * postgresql.c (vars_of_postgresql): Mule-ize.
13431         (Fpq_conn_defaults): Ditto.
13432
13433 2000-03-12  Ben Wing  <ben@xemacs.org>
13434
13435         * alloc.c (Fmake_byte_code):
13436         * alloc.c (debug_string_purity_print):
13437         * alloc.c (pdump_backtrace):
13438         * alloc.c (pdump_get_indirect_count):
13439         * alloc.c (pdump_register_sub):
13440         * alloc.c (pdump_register_object):
13441         * alloc.c (pdump_register_struct):
13442         * alloc.c (pdump_dump_data):
13443         * alloc.c (pdump_reloc_one):
13444         Minor cleanups.
13445
13446         * console-msw.c:
13447         * console-msw.c (GetConsoleHwnd):
13448         * console-msw.c (msw_hide_console):
13449         * console-msw.c (msw_show_console):
13450         * console-msw.c (msw_ensure_console_buffered):
13451         * console-msw.c (msw_output_console_string):
13452         * console-msw.c (console_type_create_mswindows):
13453
13454         a) Added functions to manipulate the console window for use with
13455         shell support.
13456
13457         b) Added support for writing text to the console, which is now
13458         used under Windows when xemacs is not being run non-interactively,
13459         to write text that would otherwise be destined for stdout because
13460         under these circumstances, text written to stdout tends to
13461         disappear and not be seen.
13462
13463         * console-msw.h:
13464         * event-Xt.c:
13465         * event-Xt.c (x_event_to_emacs_event):
13466         * event-Xt.c (describe_event_window):
13467         * events-mod.h (XEMACS_MOD_CONTROL):
13468         * events.c:
13469         * events.c (Fmake_event):
13470         * events.c (character_to_event):
13471         * events.c (event_to_character):
13472         * events.c (format_event_object):
13473         * events.c (Fevent_modifiers):
13474         * events.h:
13475         * events.h (struct key_data):
13476         * events.h (struct button_data):
13477         * events.h (struct misc_user_data):
13478         * frame-x.c (Fcde_start_drag_internal):
13479         * frame-x.c (Foffix_start_drag_internal):
13480         * gpmevent.c (Freceive_gpm_event):
13481         * keymap.c:
13482         * keymap.c (bucky_sym_to_bucky_bit):
13483         * keymap.c (control_meta_superify):
13484         * keymap.c (make_key_description):
13485         * keymap.c (keymap_lookup_directly):
13486         * keymap.c (create_bucky_submap):
13487         * keymap.c (keymap_store):
13488         * keymap.c (define_key_check_and_coerce_keysym):
13489         * keymap.c (define_key_parser):
13490         * keymap.c (define_key_alternate_name):
13491         * keymap.c (Fdefine_key):
13492         * keymap.c (raw_lookup_key_mapper):
13493         * keymap.c (struct map_keymap_unsorted_closure):
13494         * keymap.c (map_keymap_unsorted_mapper):
13495         * keymap.c (map_keymap_sort_predicate):
13496         * keymap.c (map_keymap_sorted):
13497         * keymap.c (accessible_keymaps_mapper_1):
13498         * keymap.c (where_is_recursive_mapper):
13499         * keymap.c (describe_map_mapper):
13500         * keymap.c (describe_map_sort_predicate):
13501         * keymap.c (describe_map):
13502         * keymap.c (complex_vars_of_keymap):
13503         And a number of other files, the key modifier preprocessor
13504         constants that xemacs uses have names that conflict with constants
13505         defined under MS Windows for other purposes, so they were renamed
13506         to begin with the prefix XEMACS_. The variables that hold such
13507         modifiers were changed to consistently be of type int to fix
13508         various compile warnings.
13509
13510         * console.c (complex_vars_of_console):
13511         * device.c:
13512         * device-msw.c:
13513         * device-msw.c (mswindows_finish_init_device):
13514         * device-msw.c (msw_get_workspace_coords):
13515         * device-msw.c (mswindows_device_system_metrics):
13516         and various other files, added support for a new
13517         device property called offset-workspace which returns the position
13518         of the upper left corner of the workspace area and goes along with
13519         the existing size-workspace property.
13520
13521         * dialog-msw.c:
13522         * dialog-msw.c (push_bufbyte_string_as_unicode):
13523         * dialog-msw.c (mswindows_popup_dialog_box):
13524         Added support for XEmacs-style accelerator specifications in
13525         button text.  Note: I didn't add support for this under X Windows,
13526         and somebody needs to do this.
13527
13528         * dialog.c:
13529         * dialog.c (Fpopup_dialog_box):
13530         Documented the support for accelerators that was just mentioned.
13531
13532         editfns.c (get_home_directory): Changed behavior under Windows
13533         when HOME not defined; former behavior was irretrievably broken.
13534
13535         * emacs.c:
13536         * emacs.c (main_1):
13537         * emacs.c (main):
13538         * minibuf.c (clear_echo_area_internal):
13539         * minibuf.c (echo_area_append):
13540         * print.c:
13541         * print.c (std_handle_out_external):
13542         * print.c (std_handle_out_va):
13543         * print.c (fatal):
13544         * print.c (write_string_to_stdio_stream):
13545         * print.c (output_string):
13546         * print.c (debug_print):
13547         * print.c (debug_backtrace):
13548         * print.c (debug_short_backtrace):
13549         Cleaned up the code that prints text to stdout so that this can be
13550         changed to output into a console window instead under MS Windows,
13551         as described above.
13552
13553         * eval.c:
13554         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13555         * eval.c (internal_catch):
13556         * eval.c (unwind_to_catch):
13557         * eval.c (throw_or_bomb_out):
13558         * eval.c (condition_case_1):
13559         * eval.c (signal_1):
13560         * eval.c (check_error_state_sanity):
13561         * eval.c (call_with_suspended_errors_1):
13562         * eval.c (call_with_suspended_errors):
13563         * eval.c (reinit_vars_of_eval):
13564         Added code to catch throw loops and check for a pesky bug that may
13565         be gone now.
13566
13567         * event-msw.c:
13568         * event-msw.c (key_needs_default_processing_p):
13569         * event-msw.c (mswindows_wnd_proc):
13570         * event-msw.c (mswindows_modifier_state):
13571         * event-msw.c (emacs_mswindows_quit_p):
13572         * event-msw.c (vars_of_event_mswindows):
13573         a) Added support for using the alt key to select menu items as is
13574         standard under MS Windows.  This is controlled using the variable
13575         menu-accelerator-enabled, just like under X Windows.  There is an
13576         option on the options menu to turn this support on.  I really
13577         think that it should be on by default under Windows, but I'm not
13578         going to make this change yet.
13579
13580         b)  Added support for dynamic display size changes under Windows.
13581
13582         * event-stream.c:
13583         * event-stream.c (maybe_echo_keys):
13584         * event-stream.c (Fnext_event):
13585         * event-stream.c (command_builder_find_leaf):
13586         * event-stream.c (lookup_command_event):
13587         * event-stream.c (execute_command_event):
13588         * event-stream.c (pre_command_hook):
13589         * event-stream.c (post_command_hook):
13590         * event-stream.c (syms_of_event_stream):
13591         * event-stream.c (vars_of_event_stream):
13592         * event-stream.c (complex_vars_of_event_stream):
13593         * events.h (struct command_builder):
13594
13595         a) Tried to clean up a little bit the horribly written x-specific
13596         accelerator code that crept into this file.  I moved this code
13597         into menubar-x.c where it belongs. I also needed to move the
13598         command builder structure into the file events.h because it is
13599         accessed directly by this accelerator code.  What I didn't do, but
13600         which should be done at some point, is to properly abstract this
13601         code using device methods instead of the kludgy way that it
13602         currently hooks into the event code.
13603
13604         b) Added the lisp variables this-command-properties and
13605         last-command- properties, which should be used to synchronize two
13606         adjacent commands in preference to playing games with the variable
13607         this-command, which is typically what happens.
13608
13609         c) Added some slightly nasty code to hook into the lisp support
13610         for shifted- motion-key selection.  This is actually necessary for
13611         somewhat complicated reasons, which are described in
13612         simple.el. (NB: I think the proper thing would be to have the code
13613         that calls the pre and post command hooks also call out to generic
13614         lisp functions in simple.el, where all built-in stuff could be
13615         added.  I will think about this more.)
13616
13617         * event-unixoid.c (poll_fds_for_input):
13618         * lread.c (readchar):
13619         * redisplay-tty.c (tty_clear_frame):
13620         * redisplay-x.c (x_get_gc):
13621         * signal.c (interrupt_signal):
13622         And a whole bunch of other files: fixed up places that printed
13623         directly to stderr to instead call the function stderr_out so that
13624         the changes I made under Windows work correctly.
13625
13626         * filemode.c (mode_string):
13627         Warning fixes.
13628
13629         * frame-msw.c:
13630         * frame-msw.c (mswindows_size_frame_internal):
13631         Fixed the computation of frame size and position to keep the frame
13632         within the workspace area, rather than within the physical
13633         dimensions of the screen, so that the frame doesn't overlap window
13634         manager decorations, such as the start menu and toolbar, typically
13635         at the bottom of the screen.
13636
13637         * frame.c (vars_of_frame):
13638         Changed the default frame title format under MS Windows to consist
13639         of buffername-XEmacs, which is standard under MS Windows.  I think
13640         it might be a good idea to change this everywhere because I think
13641         it is superior to the current frame title format, but this is the
13642         kind of change that is likely to cause some people to get annoyed,
13643         so I'm not making it.
13644
13645         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13646
13647         * gui-msw.c (mswindows_handle_gui_wm_command):
13648         Fixed compile warnings.
13649
13650         * gui-x.c:
13651         * gui-x.c (strdup_and_add_accel):
13652         * gui-x.c (button_item_to_widget_value):
13653         * gui-x.h:
13654         Added code to automatically put an accelerator onto the beginning
13655         of menu items that don't have one as is now the standard, and is
13656         described more later.  Also fixed things so that the menu item
13657         name can be an evaluated expression, again a new standard.
13658
13659         * gui.c:
13660         * gui.c (gui_item_add_keyval_pair):
13661         * gui.c (make_gui_item_from_keywords_internal):
13662         * gui.c (gui_add_item_keywords_to_plist):
13663         * gui.c (gui_item_accelerator):
13664         * gui.c (gui_name_accelerator):
13665         * gui.c (gui_item_included_p):
13666         * gui.c (gui_item_display_flush_left):
13667         * gui.c (gui_item_display_flush_right):
13668         * gui.c (parse_gui_item_tree_item):
13669         * gui.c (parse_gui_item_tree_children):
13670         * gui.c (parse_gui_item_tree_list):
13671         Mule-ized.  Cleanup.  GCPRO addition.
13672
13673         * line-number.c (buffer_line_number):
13674         * lisp.h:
13675         * lisp.h (EMACS_INT_MAX):
13676         Added the manifest constant EMACS_INT_MIN corresponding to the
13677         existing constant EMACS_INT_MAX.  This is partially to fix compile
13678         warnings under Windows, and partly for cleanliness.
13679
13680         * menubar-msw.c:
13681         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13682         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13683         * menubar-msw.c (displayable_menu_item):
13684         * menubar-msw.c (populate_menu_add_item):
13685         * menubar-msw.c (populate_or_checksum_helper):
13686         * menubar-msw.c (populate_menu):
13687         * menubar-msw.c (update_frame_menubar_maybe):
13688         * menubar-msw.c (prune_menubar):
13689         * menubar-msw.c (msw_char_is_accelerator):
13690         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13691         * menubar-msw.c (mswindows_handle_wm_command):
13692         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13693         * menubar-msw.c (mswindows_handle_wm_initmenu):
13694         * menubar-msw.c (mswindows_update_frame_menubars):
13695         * menubar-msw.c (mswindows_free_frame_menubars):
13696         * menubar-msw.c (mswindows_popup_menu):
13697         Fixed a bug in handling accelerators where an extra character
13698         would be displayed in the menu item.  Also generalized the
13699         function displayable_menu_item because it is now used by the
13700         dialog box code as well.  And finally, added code in the functions
13701         that create the menubar to extract a list of accelerators for the
13702         top level menubar, which is used in the event code to determine
13703         whether a particular alt-key combination should be used to invoke
13704         a menu item, or should be passed through to access the standard
13705         XEmacs keymap binding for this key combination.
13706
13707         Much needed GCPROing.
13708
13709         * menubar-x.c:
13710         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13711         * menubar-x.c (menu_item_descriptor_to_widget_value):
13712         * menubar-x.c (restore_in_menu_callback):
13713         * menubar-x.c (x_popup_menu):
13714         * menubar-x.c (menu_move_up):
13715         * menubar-x.c (menu_move_down):
13716         * menubar-x.c (menu_move_left):
13717         * menubar-x.c (menu_move_right):
13718         * menubar-x.c (menu_select_item):
13719         * menubar-x.c (command_builder_operate_menu_accelerator):
13720         * menubar-x.c (menu_accelerator_junk_on_error):
13721         * menubar-x.c (command_builder_find_menu_accelerator):
13722         * menubar-x.c (Faccelerate_menu):
13723         * menubar.h:
13724         Moved a whole bunch of code here that was previously in
13725         event-stream.c as described above.  There is also code connected
13726         to the new standard of adding an accelerator to the beginning of
13727         menu items that don't have one as described above and below.
13728
13729         * menubar.c:
13730         * menubar.c (menu_parse_submenu_keywords):
13731         * menubar.c (Fmenu_find_real_submenu):
13732         * menubar.c (Fnormalize_menu_item_name):
13733         * menubar.c (syms_of_menubar):
13734         * menubar.c (vars_of_menubar):
13735         * menubar.c (complex_vars_of_menubar):
13736
13737         a) Cleaned up a bunch of documentation and improved it.
13738
13739         b) XEmacs now automatically adds an accelerator onto the beginning
13740         of any menu items that don't have one.  I did this because there
13741         will inevitably be some menu items on the main menubar that don't
13742         have accelerators on them because the package that adds that
13743         particular menu item hasn't yet been fixed up to have accelerators
13744         in them and it looked rather strange to have some items with and
13745         some items without accelerators, especially since even in items
13746         without accelerators, you can, at least under windows, still
13747         access the item through an accelerator corresponding to the first
13748         character in the item's name.  If people don't like this behavior,
13749         I can add a variable to turn it off optionally, but I'm not sure
13750         this is a good idea because we really do need to have accelerators
13751         on all of the menu items, and if a package doesn't like the
13752         accelerators being put on the first character, then it should put
13753         the accelerators where they belong.
13754
13755         c) I made a behavior change, which is that the descriptor that
13756         specifies the text of the menu item, which formerly was just a
13757         string, can now also be an evaluated expression.  This makes this
13758         descriptor parallel with all of the others, which could also be
13759         evaluated expressions.  This also obviates the need for the
13760         keyword :label, which was previously listed in the documentation
13761         as unimplemented, and which was for the same purpose.
13762
13763         d) GCPROing.
13764
13765         * ntproc.c:
13766         * ntproc.c (new_child):
13767         * ntproc.c (sys_spawnve):
13768         * ntproc.c (find_child_console):
13769         * ntproc.c (sys_kill):
13770         Fixed compile warnings.  By the way, this file should really go
13771         away entirely, and this will happen as soon as Kirill makes his
13772         final round of process cleanups, which affect the function
13773         call-process.
13774
13775         * process-nt.c:
13776         * process-nt.c (struct nt_process_data):
13777         * process-nt.c (find_process_from_pid):
13778         * process-nt.c (send_signal_the_nt_way):
13779         * process-nt.c (enable_child_signals):
13780         * process-nt.c (find_child_console):
13781         * process-nt.c (send_signal_the_95_way):
13782         * process-nt.c (nt_finalize_process_data):
13783         * process-nt.c (ensure_console_window_exists):
13784         * process-nt.c (nt_create_process):
13785         * process-nt.c (nt_kill_child_process):
13786         * process-nt.c (nt_kill_process_by_pid):
13787         * process-nt.c (nt_open_network_stream):
13788         * process-nt.c (vars_of_process_nt):
13789         Copied over code from Emacs 20.5 to correctly send signals to sub-
13790         processes under Windows 95.  Also added code to automatically
13791         create and hide console window when a sub-process is created under
13792         Windows 95, which obviates the need for the separate runemacs.exe
13793         executable, and finally implemented some variables that were
13794         implemented in Emacs 20.5, but previously not in XEmacs.  These
13795         include mswindows- start-process-share-console and
13796         mswindows-start-process-inherit-error-mode. (Both of these only
13797         apply to Windows 95.)
13798
13799         * regex.c (regex_compile): Fixed a compile warning.
13800
13801         * select-msw.c:
13802         * select-msw.c (mswindows_own_selection):
13803         * select-msw.c (mswindows_get_foreign_selection):
13804         * select-msw.c (mswindows_disown_selection):
13805         * select-msw.c (console_type_create_select_mswindows):
13806         * select-msw.c (syms_of_select_mswindows):
13807         Cleaned up the file and implemented the device method
13808         selection_exists_p, which had accidentally been left out.  Also
13809         removed four lisp functions that were remnants from before the
13810         time when the selection code was properly device abstracted.
13811         These functions are no longer needed because there are generic
13812         equivalents, and because they were added recently and don't exist
13813         in FSF Emacs, I don't think there's any problem with just deleting
13814         them.
13815
13816         * sysdep.c:
13817         * sysdep.c (sys_subshell):
13818         Fixed a compile warning, although in this case there's probably
13819         something wrong with this code, and it ought to be looked into
13820         more thoroughly by somebody who understands it.
13821
13822         * window.c:
13823         * window.c (Fwindow_text_area_height):
13824         * window.c (Fwindow_width):
13825         * window.c (Fwindow_full_width):
13826         * window.c (Fwindow_pixel_width):
13827         * window.c (debug_print_window):
13828         * window.c (syms_of_window):
13829         Added functions window-text-area-height and window-full-width,
13830         which are functions for returning various width and height
13831         characteristics of a window. (One of these functions is necessary
13832         for making the file dialog box work correctly, and the other one
13833         was added for completeness.)  Also added a table to the
13834         documentation for window-height which describes the entire scheme
13835         for accessing width and height characteristics of a window.
13836
13837 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13838
13839         * nt.c (fstat): Added a comment for another problem with
13840         non-encapsulated [f]stat(), reported by Adrian Aichner
13841         <aichner@ecf.teradyne.com>.
13842
13843 2000-03-11  Andy Piper  <andy@xemacs.org>
13844
13845         * window.c (make_dummy_parent): initialize subwindow instance
13846         cache.
13847         (Fset_window_configuration): zero extent_modiff.
13848
13849 2000-03-10  Andy Piper  <andy@xemacs.org>
13850
13851         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13852         more changes can be triggered.
13853         (Fredisplay_frame): ditto.
13854         (Fredraw_device): ditto.
13855         (Fredisplay_device): ditto.
13856         (redisplay_frame): make non-static.
13857         (redisplay_frame): call update_frame_gutter_geometry outside of
13858         display proper.
13859
13860         * gutter.h: declare update_frame_gutter_geometry.
13861
13862         * redisplay.h: declare redisplay_frame.
13863
13864         * gutter.c (update_frame_gutter_geometry): move geometry changes
13865         in update_frame_gutters here. Geometry changes can only occur
13866         outside of redisplay.
13867         (update_frame_gutters): remove geometry change code.
13868         (Fredisplay_gutter_area): make sure that we are in display when we
13869         update and that we have flushed any size changes.
13870
13871 2000-03-11  Andy Piper  <andy@xemacs.org>
13872
13873         * alloc.c (pdump_dump_data): remove i & count shadows.
13874
13875 2000-02-27  Mike Alexander  <mta@arbortext.com>
13876
13877         * sysdep.h: Declare pdump_read_file
13878
13879         * sysdep.c (pdump_read_file): New function
13880
13881         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13882         dump data
13883
13884 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13885
13886         * lrecord.h: add `lrecord_type_pgsetenv'.
13887
13888 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13889
13890         * symsinit.h: declare (vars|syms)_of* functions.
13891         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13892
13893 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13894
13895         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13896
13897         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13898         GCCs.
13899
13900         * emacs.c (main_1): Call postgres initialization code.
13901
13902         * postgresql.h: New file.  PostgreSQL RDBMS support.
13903         * postgresql.c: New file.
13904
13905 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13906
13907         * redisplay-output.c (redisplay_output_display_block): Disable
13908         redundant code.
13909
13910 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13911
13912         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13913         (Fcanna_henkan_next): Ditto.
13914         (Fcanna_bunsetu_henkou): Ditto.
13915         (Fcanna_henkan_kakutei): Ditto.
13916         (Fcanna_henkan_end): Ditto.
13917         (Fcanna_henkan_quit): Ditto.
13918         (Fcanna_henkan_next): Set retun value correctly.
13919         (c2mu): Use unsigned char instead of signed char.
13920
13921 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13922
13923         * emacs.c (main_1): Always call syms_of_gui.
13924         * inline.c: include gui.h
13925
13926 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13927
13928         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13929         converted to Lisp_Object.
13930         (Qtop_bottom): New variable.
13931         (syms_of_redisplay): Initialize it.
13932         * redisplay.h (Vvisible_bell): Ditto.
13933         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13934         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13935         only flash top and bottom.
13936
13937 2000-03-08  Andy Piper  <andy@xemacs.org>
13938
13939         * buffer.c (Frename_buffer): record new buffer name the right way.
13940
13941 2000-03-08  Andy Piper  <andy@xemacs.org>
13942
13943         * glyphs.c (update_subwindow): increase hash depth so that widget
13944         items get picked up properly.
13945
13946         * redisplay-output.c (compare_runes): increase hash depth so that
13947         widget items get picked up properly.
13948
13949 2000-03-08  Andy Piper  <andy@xemacs.org>
13950
13951         * gutter.c (output_gutter): add some debug.
13952
13953         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13954         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13955         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13956
13957         * redisplay-output.c (compare_runes): use display_hash to
13958         determine if glyphs really are not the same.
13959
13960         * glyphs.c (update_subwindow): check display_hash to see if
13961         anything really needs to be updated. If not then do
13962         nothing. Record the display_hash after updating.
13963         (image_instance_equal): compare the image_instance face also.
13964
13965 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13966
13967         * redisplay.h: Fix comment style.
13968
13969 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13970
13971         * consle-msw.h (struct mswindows_frame):
13972         Added new member paint_pending to indicate whether a WM_PAINT
13973         magic event has been queued for this frame.
13974
13975         * event-msw.c (mswindows_drain_windows_queue):
13976         Don't queue a WM_PAINT magic event if one is already queued.
13977         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13978
13979         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13980
13981 2000-03-07  Didier Verna  <didier@xemacs.org>
13982
13983         * dired.c: #include `regex.h' after `sysfile.h'.
13984
13985 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13986
13987         * sound.c (init_nas_sound): Fix compiler warning.
13988
13989         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13990         (FREE_STRUCT_P):
13991         (MARK_STRUCT_AS_FREE):
13992         (MARK_STRUCT_AS_NOT_FREE):
13993         Make `gcc -fstrict-aliasing' work properly.
13994
13995 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13996
13997         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13998         (mswindows_delete_device): Call CoUnnitialize().
13999
14000         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14001
14002 2000-02-25    <CraigL@DyCon.com>
14003
14004         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14005         <errno.h>.
14006
14007         * sysdep.c: This extern declaration for environ prevents MinGW
14008         from finding the variable in CRTDLL.DLL.
14009
14010         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14011         windows headers.
14012         (SHGFI_EXETYPE): ..
14013         (WM_MOUSEWHEEL): ..
14014         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14015         definitions.
14016         (MMRESULT): Removed, now defined in cygwin's windows headers.
14017         (TIMECAPS): ..
14018         (uid_t,gid_t,pid_t,ssize_t): ..
14019         (_timeb): Removed, MinGW defines both _timeb and timeb.
14020         (HAVE_H_ERRNO): Added.
14021         (HAVE_TZNAME): Added, configure is not detecting this.
14022
14023 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14024
14025         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14026         * syntax.c (syntax_match): Use it.
14027
14028         * cmds.c: Import auto-fill-chars from FSF Emacs.
14029         (Vauto_fill_chars): New variables.
14030         (internal_self_insert): Check Vauto_fill_chars.
14031         (vars_of_cmds):
14032         Declare auto-fill-chars as a Lisp variable and initialize it.
14033
14034 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14035
14036         * fileio.c (Fmake_symbolic_link):
14037         (Ffile_symlink_p):
14038         Run handlers even if local machine doesn't have symlinks.
14039
14040 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14041
14042         * event-msw.c (mswindows_drain_windows_queue):
14043         Don't generate paint magic events for non-XEmacs frames.
14044
14045 2000-03-05  Andy Piper  <andy@xemacs.org>
14046
14047         * redisplay.c (redisplay_frame): generate_displayable_area and
14048         friends assumes that we are not in GC, we therefore have to make
14049         sure that this doesn't happen.
14050
14051         * gutter.c (calculate_gutter_size): generate_displayable_area
14052         assumes that we are not in GC, we therefore have to make sure that
14053         this doesn't happen.
14054
14055 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14056
14057         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14058
14059 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14060
14061         * redisplay.c (regenerate_window): Make sure we set a sane value
14062         for end_pos even if we jump out of the loop.
14063         (regenerate_window): Answer Ben's question :-).
14064         (start_end_of_last_line): Add may_error argument.
14065         (start_of_last_line):
14066         (end_of_last_line): Pass may_error = 0.
14067         (end_of_last_line_may_error): New function.
14068         (pixel_to_glyph_translation): Use it, so we don't crash in
14069         event_to_glyph.
14070
14071 2000-03-04  Andy Piper  <andy@xemacs.org>
14072
14073         * window.h (struct window): add gutter_extent_modiff.
14074
14075         * window.c (allocate_window): zero out gutter_extent_modiff.
14076
14077         * redisplay.h: declare sync_display_line_structs.
14078
14079         * redisplay.c (add_glyph_rune): add a better comment.
14080
14081         * redisplay-output.c (sync_display_line_structs): made non-static.
14082         (compare_runes): remove unneccesary glyph cachel access.
14083
14084         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14085
14086         * gutter.c (output_gutter): don't output the gutter if extent
14087         changes only involve extents in buffers. use 4 sets of display
14088         lines.
14089         (gutter_extent_signal_changed_region_maybe): new function. Mark
14090         extents in gutters as changed.
14091         (update_frame_gutters): use 4 sets of display lines.
14092         (reset_gutter_display_lines): ditto.
14093         (free_frame_gutters): ditto.
14094         (redraw_exposed_gutter): force output of gutters.
14095
14096         * frame.h (struct frame): add 4 sets of gutter display lines.
14097
14098         * extents.c: (extent_changed_for_redisplay): signal changes to
14099         extents in strings in the gutter as well as extents in buffers.
14100
14101 2000-03-02  Andy Piper  <andy@xemacs.org>
14102
14103         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14104
14105         * frame.c (Fmake_frame): make sure the gutters get initialized
14106         after the frame is visible.
14107         (set_frame_selected_window): re-arrange compilation macros a
14108         little.
14109         (change_frame_size_1): mark gutters changed.
14110
14111         * device.c (Fset_device_class): mark gutters changed.
14112
14113 2000-03-01  Andy Piper  <andy@xemacs.org>
14114
14115         * window.c (window_top_frame_gutter_height): deleted.
14116         (window_bottom_frame_gutter_height): ditto.
14117         (window_left_frame_gutter_height): ditto.
14118         (window_right_frame_gutter_height): ditto.
14119         (window_top_gutter_height): don't use them.
14120         (window_bottom_gutter_height): ditto.
14121         (window_left_gutter_width): ditto.
14122         (window_right_gutter_width): ditto.
14123         (Fsplit_window): ditto.
14124         (Fwindow_pixel_edges): don't use border dimensions here.
14125
14126         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14127         (update_scrollbar_instance): ditto.
14128
14129         * redisplay.c (generate_modeline): don't take gutters into account.
14130         (generate_modeline): ditto.
14131         (redisplay_frame): small gutter display optimization.
14132
14133         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14134
14135         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14136         gutters into account.
14137
14138         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14139         for window position and type.
14140
14141         * gutter.c (get_gutter_coords): fix for frame gutters.
14142         (update_frame_gutters): update frame geometry if the gutters have
14143         changed.
14144         (init_frame_gutters): record current gutter geometries.
14145
14146         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14147         var.
14148         (mswindows_widget_instantiate): ditto.
14149
14150         * frame.h (struct frame): add current_gutter_bounds.
14151
14152         * frame.c (change_frame_size_1): position window and minibuffer
14153         appropriately taking into account the frame gutters.
14154
14155         * frame-x.c: (x_initialize_frame_size): take into account the
14156         frame gutters.
14157
14158 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14159
14160         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14161
14162 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14163
14164         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14165
14166 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14167
14168         * file-coding.c (reset_decoding_stream): Clear previous
14169         detection state when autodetect.
14170
14171 2000-02-29  Didier Verna  <didier@xemacs.org>
14172
14173         * extents.c (set_extent_glyph_1): don't require extents to be
14174         attached.
14175
14176 2000-02-27  Andy Piper  <andy@xemacs.org>
14177
14178         * gutter.c (Fset_default_gutter_position): don't default left and
14179         right gutter visibility to t.
14180         (Fset_default_gutter_position): run
14181         default-gutter-position-changed-hook.
14182         (syms_of_gutter): add default-gutter-position-changed-hook.
14183
14184 2000-02-26  Andy Piper  <andy@xemacs.org>
14185
14186         * specifier.c (Fmake_specifier): add gutter references.
14187
14188         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14189
14190         * lisp.h: declare Fvalid_plist_p.
14191
14192         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14193         as changed.
14194         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14195         well as its visibility so that it gets reconstructed.
14196         (construct_window_gutter_spec): new function. Construct a string
14197         to be displayed in the gutter from a plist of strings. Take care
14198         to only use elements that are declared as visible.
14199         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14200         WINDOW_GUTTER.
14201         (gutter_validate): allow plists of strings in the specifier.
14202         (gutter_specs_changed): construct the real_gutter from the gutter
14203         specs using construct_window_gutter_spec.
14204         (gutter_visible_validate): gutter-visible is a new specifier type.
14205         (Fgutter_visible_specifier_p): new function for the new specifier.
14206         (syms_of_gutter): declare gutter-visible and
14207         Fgutter_visible_specifier_p.
14208         (specifier_type_create_gutter): intitalize new gutter-visible
14209         specifier.
14210         (reinit_specifier_type_create_gutter): ditto.
14211         (specifier_vars_of_gutter): use new specifier type for gutter
14212         visibility.
14213         (init_frame_gutters): construct real_gutter correctly.
14214         (Fgutter_specifier_p): beef up documentation.
14215         (Fgutter_size_specifier_p): ditto.
14216
14217         * winslots.h: add real_gutter slots.
14218
14219 2000-02-25  Andy Piper  <andy@xemacs.org>
14220
14221         * device-msw.c: Be kind to older cygwin versions. From Raymond
14222         Toy <toy@rtp.ericsson.se>.
14223
14224         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14225         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14226
14227 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14228
14229         * elhash.c (MARK_OBJ): Practice macro hygiene.
14230
14231 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14232
14233         * miscplay.c: s/__inline__/inline/g;
14234         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14235         (get_device_compdc): INLINE ==> static inline
14236         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14237         find -name '*.h' | \
14238         xargs global-replace \
14239         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14240
14241 2000-02-25  Andy Piper  <andy@xemacs.org>
14242
14243         * window.c (window_top_frame_gutter_height): new function.
14244         (window_top_window_gutter_height): ditto.
14245         (window_top_gutter_height): use them.
14246         (window_bottom_frame_gutter_height): new function.
14247         (window_bottom_window_gutter_height): ditto.
14248         (window_bottom_gutter_height): use them.
14249         (window_left_window_gutter_width): new function.
14250         (window_left_frame_gutter_width): ditto.
14251         (window_left_gutter_width): use them.
14252         (window_right_window_gutter_width): new function.
14253         (window_right_frame_gutter_width): ditto.
14254         (window_right_gutter_width): use them.
14255         (window_pixel_height): new function. calulate window pixel height
14256         with frame gutter involvement.
14257         (Fsplit_window): calculate new sizes taking frame gutters into
14258         account.
14259         (window_char_height_to_pixel_height): don't include frame gutters.
14260         (window_char_height): use window_pixel_height.
14261         (window_pixheight): rename from window_pixel_height.
14262         (change_window_height): use it.
14263         (window_pixel_height_to_char_height): don't include frame gutters.
14264         (window_char_width_to_pixel_width): ditto.
14265
14266 2000-02-25  Andy Piper  <andy@xemacs.org>
14267
14268         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14269         if it is.
14270
14271 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14272
14273         * alloc.c (staticpro):
14274         (staticpro_nodump):
14275         (dumpstruct):
14276         (dumpopaque):
14277         (pdump_wire):
14278         (pdump_wire_list):
14279         (compact_string_chars):
14280         (pdump_dump_wired):
14281         Convert:  if (foo) abort();  ==>  assert (! foo);
14282
14283         * eldap.c (Fldap_search_basic):
14284         (Fldap_add):
14285         (Fldap_modify):
14286         (Fldap_delete):
14287         Fix compiler warnings, and possible crashes if (random) return
14288         value were to be used.
14289
14290 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14291
14292         * device-msw.c: Workaround ResetDC failure.
14293
14294         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14295         applying a devmode.
14296
14297         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14298         (mswindows_text_width): Do not start printer page.
14299
14300         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14301
14302         * glyphs-msw.c: Added image methods to msprinter console and
14303         msprinter-specific image instantiation.
14304
14305 2000-02-20  Mike Alexander  <mta@arbortext.com>
14306
14307         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14308         to avoid crashes when selection-sets-clipboard is on
14309         (mswindows_own_selection): ditto
14310
14311 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14312
14313         * glyphs-msw.c:
14314         * redisplay-msw.c (get_frame_dc):
14315         (get_frame_compdc):
14316         * console-msw.h:
14317         * device-msw.c (mswindows_init_device):
14318         (mswindows_delete_device):
14319         (msprinter_init_device):
14320         (msprinter_delete_device):
14321         * frame-msw.c (mswindows_init_frame_1):
14322         (mswindows_delete_frame):
14323         (msprinter_init_frame_3):
14324         (msprinter_delete_frame): Move compatible DC to device object from
14325         frame object, for both mswindows and msprinter. Only one at a time
14326         is needed, it is a real waste to have one per frame!
14327
14328 2000-02-23  Andy Piper  <andy@xemacs.org>
14329
14330         * glyphs.c: add dynamic width and height elements.
14331         (image_instance_equal): ditto.
14332
14333         * glyphs-widget.c (widget_query_geometry): calculate width and
14334         height dynamically if required.
14335         (initialize_widget_image_instance): initialize dynamic dimensions.
14336         (widget_instantiate): pick-up dynamic dimensions.
14337
14338         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14339         dynamic determination. Add appropriate macros.
14340
14341         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14342         dimensions safe.
14343         (WINDOW_GUTTER_SIZE): ditto.
14344         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14345
14346         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14347         inline.
14348         (get_frame_dc): ditto.
14349
14350         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14351         here.
14352
14353 2000-02-23  Martin Buchholz <martin@xemacs.org>
14354
14355         * XEmacs 21.2.31 is released.
14356
14357 2000-02-22  Ben Wing <ben@xemacs.org>
14358
14359         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14360
14361 2000-02-22  Andy Piper  <andy@xemacs.org>
14362
14363         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14364
14365 2000-02-21  Mike Sperber <mike@xemacs.org>
14366
14367         * .dbxrc:
14368         * .gdbinit:
14369         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14370         variables.
14371
14372 2000-02-21  Mike Sperber <mike@xemacs.org>
14373
14374         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14375
14376 2000-02-21  Martin Buchholz <martin@xemacs.org>
14377
14378         * XEmacs 21.2.30 is released.
14379
14380 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14381
14382         Performance hacking.
14383         * *.c (syms_of_*):
14384         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14385         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14386         * emacs.c (main_1):
14387         * lisp.h (DEFUN):
14388         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14389         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14390         * symeval.h (DEFVAR_SYMVAL_FWD):
14391         * symbols.c (guts_of_unbound_marker):
14392         Make all c_readonly objects also lisp_readonly and marked for life.
14393         * lrecord.h (struct lrecord_implementation):
14394         Document flags better.
14395         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14396         * lrecord.h (DECLARE_LRECORD):
14397         * lrecord.h (XSETRECORD):
14398         * lrecord.h (RECORDP):
14399         * lrecord.h (RECORD_TYPEP):
14400         * lrecord.h (RECORD_MARKER): New.
14401         * lrecord.h (error_check_*):
14402         * lrecord.h (CONCHECK_NONRECORD):
14403         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14404         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14405         * lrecord.h (set_lheader_implementation):
14406         * lrecord.h (enum lrecord_type): New.
14407         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14408         * alloc.c (disksave_object_finalization_1):
14409         * alloc.c (mark_object):
14410         * alloc.c (lrecord_type_index):
14411         * alloc.c (tick_lcrecord_stats):
14412         * alloc.c (Fgarbage_collect):
14413         * alloc.c (init_alloc_once_early):
14414         * alloc.c (pdump_load):
14415         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14416         * alloc.c (lrecord_type_index): Delete.
14417         Make lisp object type indexes be constant.
14418           Makes (byte-compile) 5% faster.
14419         Put all marker functions into their own array.
14420           Makes (garbage-collect) 5% faster.
14421         Optimize SYMBOL_VALUE_MAGIC_P.
14422           Makes (byte-compile) 2-3% faster.
14423         * config.h.in (gc_checking_assert): New.
14424         * alloc.c: Use gc_checking_assert().
14425         * .dbxrc: Make compatible with new object type implementation.
14426         * .gdbinit: Make compatible with new object type implementation.
14427         * alloc.c: Delete all symbols defined only for debugging, such as
14428         Lisp_Type_Vector and lrecord_charset.
14429
14430 2000-02-21  Andy Piper  <andy@xemacs.org>
14431
14432         * gui-msw.c (Fmswindows_shell_execute): fix file location
14433         problems.
14434
14435         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14436         unshowing so that set_window_buffer doesn't undo
14437         kill_buffer_hook's hard work.
14438
14439         * glyphs-widget.c (tab_control_query_geometry): don't count the
14440         first item when calculating geometry.
14441
14442         * glyphs.c (map_subwindow): remove redundant code.
14443         (update_frame_subwindows): be more circumspect about when to
14444         update subwindows.
14445
14446         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14447         when items haven't changed. Update faces if faces have changed as
14448         well as just the widget face.
14449         (x_tab_control_update): Update faces if faces have changed as well
14450         as just the widget face.
14451
14452 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14453
14454         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14455         registration.
14456         (build_syscolor_string): Use mswindows_color_to_string to try to
14457         get a named color.
14458         (mswindows_device_system_metrics): Reverse the foreground and
14459         background colors so that they match the documentation.
14460
14461         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14462         they match the default Windows palette.
14463         (mswindows_color_to_string): New function.
14464
14465 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14466
14467         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14468
14469 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14470
14471         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14472         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14473
14474         * symbols.c (init_symbols_once_early): Removed obsolete
14475         DATA_SEG_BITS related kludge.
14476         (defvar_magic): Ditto.
14477
14478         * malloc.c: Removed obsolete DATA_SEG_BITS
14479         * ralloc.c: Ditto.
14480         * mem-limits.h: Ditto.
14481
14482         * Makefile.in.in: Removed obsolete HAVE_SHM
14483         * emacs.c: Ditto.
14484
14485 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14486
14487         *  device-msw.c (mswindows_delete_device): Free DDE string
14488         handles.
14489
14490 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14491
14492         * keymap.c (get_keyelt):
14493         * unexnt.c (unexec):
14494         * vm-limit.c (memory_warnings):
14495         * ntheap.c (recreate_heap):
14496         * ntheap.h (UNINIT_PTR):
14497         * select-msw.c (Fmswindows_get_clipboard):
14498         (Fmswindows_set_clipboard):
14499         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14500         * objects-msw.c:
14501         * menubar-msw.c (displayable_menu_item):
14502         * glyphs-msw.c:
14503         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14504         * sysdep.c (sys_subshell):
14505         * process-nt.c (nt_create_process):
14506         * nt.c (normalize_filename):
14507         (dostounix_filename):
14508         (unixtodos_filename):
14509         * ntproc.c (win32_executable_type):
14510         * ntplay.c (play_sound_data_1):
14511         (play_sound_file):
14512         * editfns.c (get_home_directory):
14513         * event-msw.c (struct winsock_stream):
14514         (mswindows_dde_callback):
14515         * device-msw.c (msprinter_init_device):
14516         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14517
14518         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14519         mswindows_clear_toolbar were swapped!
14520
14521         * objects-msw.c:(colormap_t):
14522         (fontmap_t):
14523         * emacs.c (struct standard_args): Fixed const jumble.
14524
14525         * glyphs-widget.c (update_widget): Fixed comparison notation.
14526
14527         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14528
14529         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14530         __declspec(noreturn) syntax.
14531
14532 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14533
14534         * eldap.c (Fldap_open):
14535         (Fldap_search_basic):
14536         (Fldap_add):
14537         (Fldap_modify):
14538         Use new coding system conversion macros.
14539
14540 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14541
14542         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14543
14544 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14545
14546         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14547         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14548
14549         * eldap.c (Qadd, Qreplace): New constant symbols
14550         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14551         interruptions by XEmacs signals
14552         Remove unnecessary calls to slow_down_interrupts and
14553         speed_up_interrupts
14554         (Fldap_search_basic): Renamed from Fldap_search_internal
14555         Added new optional parameter VERBOSE that triggers the
14556         display of progress messages
14557         Remove unnecessary calls to slow_down_interrupts and
14558         speed_up_interrupts
14559         LDAP result code analysis rewritten
14560         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14561         (syms_of_eldap): Define the new symbols and functions
14562
14563
14564 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14565
14566         * realpath.c: Determine PATH_MAX maximally portably.
14567
14568         * insdel.c (bytecount_to_charcount): Optimize.
14569         The function used to be optimized for entirely ASCII sequences.
14570         Now it is optimized for successive characters from the same
14571         charset.  This also wins big for _mostly_ ASCII sequences.
14572
14573         * fileio.c (Ffile_truename): convert return from realpath() using
14574         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14575         - Rewrite GCPROing slightly.
14576
14577         * sysdep.c (sys_open): Do filename conversion, like all other
14578         sys_* functions.  Fixes bug:
14579         (let ((file-name-coding-system 'iso-8859-2))
14580            (write-region x y latin2-name))
14581         ==> writes filename using internal encoding.
14582
14583 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14584
14585         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14586         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14587         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14588         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14589         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14590         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14591         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14592         (CONST_IF_NOT_DEBUG): Delete.
14593         * alloc.c (this_one_is_unmarkable): Delete.
14594         (mark_object): Don't check for this_one_is_unmarkable. Use the
14595         c_readonly flag instead.
14596         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14597
14598 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14599
14600         * event-msw.c (mswindows_drain_windows_queue):
14601         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14602         away redundant repaint events.
14603
14604 2000-02-17  Andy Piper  <andy@xemacs.org>
14605
14606         * redisplay.h: declare mark_redisplay_structs.
14607
14608         * redisplay.c (redisplay_window):
14609         (redisplay_frame): don't check subwindows_state_changed.
14610         (mark_redisplay): mark gutters here.
14611
14612         * glyphs.c: (instantiate_image_instantiator): always layout if we
14613         haven't done so already.
14614         (allocate_image_instance): don't mark as dirty.
14615         (update_subwindow): bind inhibit_quit.
14616
14617         * gutter.c (mark_gutters): new function.
14618
14619         * glyphs-x.c (x_update_widget): Always resize to get round a
14620         widget bug.
14621
14622         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14623         breaking absolutely everything.
14624
14625         * gutter.h: declare mark_gutters.
14626
14627 2000-02-16  Martin Buchholz <martin@xemacs.org>
14628
14629         * XEmacs 21.2.29 is released.
14630
14631 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14632
14633         * fns.c (size_bit_vector): Fix computation of the size.
14634
14635 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14636
14637         * *.[ch]: Change CONST to const globally.
14638         find -name '*.[ch]' | \
14639         xargs global-replace \
14640         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14641         - Remove vestigial references to CONST_IS_LOSING
14642
14643 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14644
14645         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14646         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14647         events instead of dispatching them directly.
14648         (mswindows_handle_paint): New function to do repainting.
14649         (mswindows_wnd_proc):
14650         (emacs_mswindows_handle_magic_event): Call above function.
14651
14652 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14653
14654         * objects-msw.c (mswindows_create_font_variant): Return the new
14655         font handle.
14656         (initialize_font_instance): Get font metrics from the underlined
14657         variant of the font to cope with the case where the underlined
14658         font has a bigger descent.
14659
14660 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14661
14662         * gui.c (gui_item_accelerator): Return the first underlined
14663         character in item name.
14664
14665 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14666
14667         * lisp.h: Added Qprinter.
14668
14669         * general.c (syms_of_general): Initialized it.
14670
14671         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14672         (get_frame_dc):
14673         (get_frame_compdc): Made inline.
14674
14675         * console.h (struct console_methods): Added eject_page method.
14676
14677         * frame.h: Added FRAME_DISPLAY_P and friends.
14678         Aligned backslahes in many macros in more readable fashion.
14679         Added page_number to struct frame, and an accessor macro
14680         for it.
14681
14682         * defice.h: Added DEVICE_DISPLAY_P and friends.
14683
14684         * device.c (Fdevice_printer_p): Used these.
14685
14686         * frame.c (allocate_frame_core): Initialize page number.
14687         (Fprint_job_page_number):
14688         (Fprint_job_eject_page): Implemented.
14689
14690         * frame-msw.c (msprinter_eject_page): Added method.
14691         (msprinter_start_page): Added.
14692
14693         * window.c (Fwindow_truncated_p): Fixed docstring.
14694         (Fwindow_last_line_visible_height): Implemented.
14695
14696 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14697
14698         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14699
14700 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14701
14702         * syntax.c (scan_words): Always advance at least one character.
14703
14704 2000-02-13  Andy Piper  <andy@xemacs.org>
14705
14706         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14707         to make sure the glyph is in the cachels.
14708
14709         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14710         global image instance flag.
14711         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14712         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14713
14714         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14715         (Fset_image_instance_property): mark layout as changed.
14716         (invalidate_glyph_geometry_maybe): mark layout as changed.
14717         (glyph_width): use new NEEDS_LAYOUT macro.
14718         (glyph_ascent): ditto.
14719         (glyph_descent): ditto.
14720         (glyph_height): ditto.
14721         (image_instance_layout): mark layout as clean after laying out.
14722         (update_subwindow): don't mark layout as clean here.
14723
14724         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14725         should no longer be needed.
14726
14727         * glyphs-x.c (x_update_widget): sanitize asserts.
14728         (x_finalize_image_instance): sanitize assignment to widgets.
14729
14730         * glyphs-widget.c (widget_instantiate): don't need to clear the
14731         layout flag here.
14732
14733 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14734
14735         * sysdep.c (getcwd): Use standard prototype.
14736         * sysdep.h (getcwd): Use standard prototype.
14737
14738         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14739         (sequence, start, end).
14740         Remove redundant type checking.
14741         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14742         view of `caller-protects') to avoid a crash where the real fix was
14743         found elsewhere.
14744
14745 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14746
14747         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14748
14749         * s/sol2.h: Remove feature macro initialization.
14750
14751         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14752         (vector_hash): New.  Code from internal_hash.
14753         * lrecord.h:
14754         Fix up allocation subsystem comments.
14755
14756         * config.h.in: Add __EXTENSIONS__ for Solaris.
14757
14758         * systime.h (EMACS_GETTIMEOFDAY): New.
14759         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14760         Remove Solaris-specific code.
14761         Use void* for the (ignored) second arg for gettimeofday().
14762
14763         * elhash.c (hash_table_hash): Implement it, finally.
14764         * elhash.c:  Use hashcode_t.
14765
14766         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14767         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14768
14769         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14770         * fns.c (size_bit_vector):
14771         * alloc.c (size_vector):
14772         (make_vector_internal):
14773         (make_bit_vector_internal):
14774         (sweep_bit_vectors_1):
14775         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14776
14777 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14778
14779         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14780         Include strings.h to avoid warnings for bzero and strcasecmp.
14781
14782 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14783
14784         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14785         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14786
14787         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14788         sequence.
14789
14790 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14791
14792         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14793         use a value field instead.
14794         (symbol_value_forward_forward): Use value field.
14795         (DEFVAR_SYMVAL_FWD): Use value field.
14796         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14797         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14798         (DEFVAR_CONST_INT): Ditto.
14799         (DEFVAR_BOOL): Ditto.
14800         (DEFVAR_CONST_BOOL): Ditto.
14801         (DEFVAR_INT_MAGIC): Ditto.
14802         (DEFVAR_BOOL_MAGIC): Ditto.
14803
14804         * symbols.c (guts_of_unbound_marker): Use value field.
14805         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14806         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14807
14808         * lisp.h: Declare dumpopaque and noninteractive1.
14809
14810         * alloc.c (dumpopaque): Added.
14811         (pdump_dump_opaquevec): Added.
14812         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14813         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14814         noninteractive.
14815
14816 2000-02-10  Andy Piper  <andy@xemacs.org>
14817
14818         * glyphs.c (image_instance_layout): if the size changes, mark it
14819         as such.
14820
14821         * redisplay-output.c (redisplay_output_layout): Update the
14822         subwindow here.
14823         (redisplay_output_subwindow): ditto.
14824
14825         * glyphs.c (update_subwindow): make sure we reset flags for
14826         layouts as well as everything else.
14827
14828         * glyphs-widget.c (layout_layout): don't need to set the instances
14829         dimensions here.
14830
14831 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14832
14833         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14834         not HAVE_DLOPEN, which is a lower-level thing.
14835
14836         * .cvsignore: Ignore gmon.out
14837
14838 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14839
14840         * .cvsignore: Ignore portable dumper xemacs.dmp file
14841
14842 2000-02-09  Andy Piper  <andy@xemacs.org>
14843
14844         * redisplay-output.c (redisplay_output_layout): be more clever
14845         about when we output based on the changed flags.
14846
14847         * glyphs.h (struct image_instantiator_methods): add update_method.
14848         (struct Lisp_Image_Instance): add changed flags. Declare new
14849         macros for manipulating them.
14850
14851         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14852         (image_instance_parent_glyph): find an image_instance's parent
14853         glyph or image_instance.
14854         (image_instance_layout): mark the size as changed.
14855         (set_image_instance_dirty_p): new function. mark an image
14856         instance, plus all of its parents, as dirty.
14857         (Fset_image_instance_property): use it.
14858         (Fglyph_animated_timeout_handler): use it.
14859         (update_subwindow): call update_widget and device methods for
14860         update_subwindow. Mark all changed flags as clean.
14861         (Fresize_subwindow): mark size as changed.
14862
14863         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14864         failures.
14865         (x_update_subwindow): only resize subwindows here.
14866         (x_update_widget): new function. Update all changed properties of
14867         a widget.
14868         (x_resize_subwindow): deleted.
14869         (x_widget_set_property): deleted.
14870         (x_progress_gauge_set_property): deleted.
14871         (x_progress_gauge_update): new function. Implement recorded
14872         changes.
14873         (x_tab_control_update): ditto.
14874         (x_tab_control_set_property): deleted.
14875         (console_type_create_glyphs_x): declare new functions.
14876         (image_instantiator_format_create_glyphs_x): ditto.
14877
14878         * glyphs-widget.c (widget_set_property): mark text changed.
14879         (update_widget): new function. Update properties of a widget.
14880         (widget_instantiate): for layouts make sure we set their
14881         children's parent correctly.
14882         (tab_control_set_property): new function. Record changes that will
14883         take place under redisplay's control.
14884         (progress_gauge_set_property): ditto.
14885         (image_instantiator_progress_guage): declare new functions.
14886         (image_instantiator_tab_control): ditto.
14887
14888         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14889         now.
14890         (mswindows_update_widget): new function. Update all properties on
14891         a widget that have changed.
14892         (mswindows_button_update): new function. Update a button's set
14893         state.
14894         (mswindows_tab_control_update): new function. Update the items in
14895         a tab.
14896         (mswindows_tab_control_set_property): deleted.
14897         (mswindows_progress_gauge_update): new function. Update the
14898         progress gauge's progress.
14899         (mswindows_widget_set_property): deleted. This is all done
14900         asynchronously now.
14901         (mswindows_progress_gauge_set_property): ditto.
14902         (console_type_create_glyphs_mswindows): declare new methods.
14903         (image_instantiator_format_create_glyphs_mswindows): ditto.
14904
14905         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14906         (msprinter_set_frame_properties): ditto.
14907
14908         * console.h (struct console_methods): Add update_widget_method.
14909
14910 2000-02-09  Andy Piper  <andy@xemacs.org>
14911
14912         * gui-msw.c (Fmswindows_shell_execute): Make
14913         mswindows-shell-execute industrial strength.
14914
14915 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14916
14917         * lrecord.h: Make macro argument `props' match member function `plist'.
14918         * fns.c (Fget):
14919         * fns.c (Fput):
14920         * fns.c (Fremprop):
14921         * fns.c (Fobject_plist):
14922         * alloc.c:
14923         * symbols.c:
14924         Object property list frobbing cleanup.
14925         - Allow any lisp object (compared with `eq'), not just symbols, as
14926           keys in object plists.
14927         - Move symbol plist frobbing into symbols.c, where it belongs.
14928         - Move string plist frobbing into alloc.c, where it belongs.
14929         - Everything's an lrecord now, so no need to test for symbolp, etc.
14930         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14931
14932         * extents.c: Reorder code to remove declarations.
14933
14934         * frame.h (store_in_alist): Remove useless declaration.
14935
14936 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14937
14938         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14939         * config.h.in: Add HAVE_XCONVERTCASE.
14940
14941 2000-02-07  Andy Piper  <andy@xemacs.org>
14942
14943         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14944         it breaks many things.
14945
14946 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14947
14948         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14949         actually can start a common comment type.
14950         * src/syntax.h (SYNTAX_END_P): ditto for end.
14951
14952 2000-02-07  Martin Buchholz <martin@xemacs.org>
14953
14954         * XEmacs 21.2.28 is released.
14955
14956 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14957
14958         * event-Xt.c (x_keysym_to_character): New.
14959         (maybe_define_x_key_as_self_inserting_character): New.
14960         (x_has_keysym): New.
14961         Auto-define all keys on the keyboard as self-insert-key.
14962
14963 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14964
14965         * menubar.c (vars_of_menubar): A small code simplification.
14966
14967         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14968
14969         * ExternalShell.c:
14970         * ExternalClient.c:
14971         * EmacsShell-sub.c:
14972         * EmacsManager.c:
14973         * EmacsFrame.c:
14974         Use consistent style for specifying X resources.
14975
14976         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14977         This makes (dontusethis-set-symbol-value-handler) actually usable.
14978
14979         * lrecord.h (lrecord_decription_type):
14980         * alloc.c (pdump_register_sub):
14981         (pdump_dump_data):
14982         (pdump_reloc_one):
14983         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14984         Comply with XEmacs coding style.
14985         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14986         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14987
14988         * keymap.c (Faccessible_keymaps):
14989         Make (accessible-keymaps map "\C-h") do the Right Thing.
14990         Make (accessible-keymaps map []) do the Right Thing.
14991         Make (accessible-keymaps map "") do the Right Thing.
14992         (check_keymap_definition_loop): New function.
14993         (keymap_store_internal): Keep luser from shooting self in foot,
14994           via (define-key ctl-x-4-map "p" global-map).
14995         Remove fullness slot from struct Lisp_Keymap, since hash tables
14996         are now reliable.
14997         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14998
14999 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15000
15001         * redisplay.c (init_redisplay): Fix small memory leak.
15002         * elhash.h:
15003         * elhash.c (pdump_reorganize_hash_table):
15004         Rename from reorganize_hash_table. Change prototype.
15005         Reuse the original memory for hentries.  Save 100k.
15006         * alloc.c (PDUMP_READ): new macro.
15007         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15008         * alloc.c: No need to #ifndef before #undef.
15009
15010         * print.c: Allow debug_print() to print readably by modifying
15011         debug_print_readably.  Use consistent variable names.
15012
15013         * .dbxrc: Try to get things to work even if stopped in a function
15014         without source available by explicitly specifying source files.
15015 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15016
15017         * unexnt.c (_start): Removed bogus code which caused loading heap
15018         from differrent executable file.
15019         Removed bogus assignment to _fmode, which caused inconsistencies.
15020
15021 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15022
15023         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15024         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15025         Do not preliminary `#define signal sigset'.
15026
15027         * systime.h: Do not prototype environ on windows nt and cygwin,
15028         this conflicts with system header.
15029
15030         * syssignal.h: Use correct define for WINDOWSNT
15031
15032         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15033         with system header.
15034
15035         * sysdep.c (near start of file): Fixed commentary and rearranged
15036         ifdefs in readable order.
15037         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15038         (start_of_text):
15039         (end_of_text):
15040         (end_of_data): Do not compile in if using PDUMP.
15041
15042         * symsinit.h: Prototyped vars_of_nt().
15043
15044         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15045         (find_child_console): Use it.
15046         (sys_kill): Use it.
15047
15048         * ntheap.h: Do not extern os_subtype.
15049
15050         * ntheap.c (cache_system_info): Do not cache unneeded:
15051         nt_major_version, nt_minor_version and os_subtype.
15052         (recreate_heap): Do not compile in when PDUMPing.
15053
15054         * nt.c (geteuid and friends): Use the new varibale
15055         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15056         (init_user_info): Removed the above mentioned hackery.
15057         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15058         stat has been fixed in the C runtime.
15059         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15060
15061         * file-coding.c (struct file_coding_dump): Do not define
15062         ucs_to_mule_table in the struct if not MULE.
15063         (struct struct lrecord_description fcd_description_1): Do not dump
15064         the above.
15065
15066         * emacs.c (main_1): Call vars_of_nt().
15067         (right before Fdump_emacs_data): Don't need lastfile if using both
15068         portabe dumper and system malloc.
15069
15070         * alloc.c (Fmemory_limit): Conditionalized out.
15071         (pdump): Use OPEN_BINARY for the portable dump file.
15072         (pdump_load): Ditto.
15073
15074 2000-02-02  Mike Alexander  <mta@arbortext.com>
15075
15076         * nt.c (convert_time): Set tm_isdst before calling mktime and
15077         avoid calling it at all if the compiler supports 64 bit integers.
15078         Also initialize utc_base_ft before using it.
15079
15080 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15081
15082         * frame.c (change_frame_size_1): Take f->internal_border_width
15083         into consideration when calculating the width of the frame.
15084
15085 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15086
15087         * window.c (frame_min_height):
15088         (frame_size_valid_p):
15089         (frame_pixsize_valid_p): Added.
15090         (check_frame_size): Generalized.
15091
15092         * window.h: Prototyped the above.
15093
15094         * lisp.h:
15095         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15096         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15097         Deleted Vwin32_* and Vbinary_process_* unused variables.
15098
15099         * device-msw.c (msprinter_init_device): Do not get printer font
15100         list; Added DEVMODE functions.
15101
15102         * frame-msw.c: Added lots of printer code.
15103
15104         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15105         general.c.
15106
15107         * console-msw.h: Added more msprinter device private slots.
15108
15109 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15110
15111         * event-msw.c (key_needs_default_processing_p): Added.
15112         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15113
15114 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15115
15116         * glyphs.c (image_instance_layout): Mark image instance as clean
15117         after layout.
15118         (glyph_dirty_p): Removed redundant function.
15119         (invalidate_glyph_geometry_maybe): Added.
15120         (update_glyph_cachel_data): Call it.
15121
15122         * glyphs.h: Prototyped it.
15123
15124         * redisplay.c (add_glyph_rune): Call it.
15125         (redisplay_window): Reset glyphs cachels when frame faces have
15126         changed, thus forcing recomputation of built-in border glyphs.
15127
15128 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15129
15130         * Makefile.in.in: Make portable dumper and purify play well together.
15131         Add imperfect, but better than nothing, support for pdump.
15132         Remove xemacs.dmp when temacs is re-generated.
15133         Don't ignore errors when dumping xemacs.
15134
15135         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15136
15137 2000-01-28  Andy Piper  <andy@xemacs.org>
15138
15139         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15140         (setup_normal_frame): ditto.
15141         (setup_frame_without_minibuffer): ditto.
15142         (setup_minibuffer_frame): ditto.
15143         (delete_frame_internal): ditto.
15144         (Fmake_frame_invisible): ditto.
15145         (Ficonify_frame): ditto.
15146
15147         * window.h: change Fset_window_buffer signature.
15148
15149         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15150         (Fset_window_buffer): allow recording of buffer if the window is
15151         the selected window.
15152         (window_loop): Use new Fset_window signature.
15153
15154 2000-01-23  Daniel Pittman  <daniel@danann.net>
15155
15156         * config.h.in: Added template for `HAVE_ATHENA_3D'
15157
15158 2000-01-29  Andy Piper  <andy@xemacs.org>
15159
15160         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15161
15162         * gutter.c (output_gutter): Don't output if the window isn't live.
15163
15164 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15165
15166         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15167         of 01/12/00: Moved SetFocus back here where it belongs.
15168
15169 2000-01-23  Andy Piper  <andy@xemacs.org>
15170
15171         * s/cygwin32.h: declare printer things.
15172
15173 2000-01-26  Andy Piper  <andy@xemacs.org>
15174
15175         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15176         Alexander.
15177
15178 2000-01-24  Andy Piper  <andy@xemacs.org>
15179
15180         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15181         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15182
15183         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15184
15185         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15186
15187         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15188
15189         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15190         (mswindows_output_display_block): Avoid local shadows.
15191
15192         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15193         (mswindows_enqueue_mouse_button_event): ditto.
15194         (mswindows_handle_gui_wm_command): remove declaration.
15195
15196         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15197         warnings.
15198
15199         * console-msw.h: Avoid shadows.
15200         (mswindows_get_toolbar_button_text):
15201         (emacs_mswindows_create_stream_pair):
15202         (emacs_mswindows_delete_stream_pair):
15203         (mswindows_handle_toolbar_wm_command): declare.
15204
15205         * device-msw.c (build_syscolor_string): Avoid shadows.
15206
15207 2000-01-23  Andy Piper  <andy@xemacs.org>
15208
15209         * glyphs-widget.c (widget_instantiate): reverse the items for
15210         layouts so that children are in the expected order.
15211
15212 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15213
15214         * ralloc.c: safe_bcopy ==> memmove
15215         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15216         * s/msdos.h: Remove BCOPY macros.
15217         * insdel.c (gap_right): Remove BCOPY conditional code.
15218         * insdel.c (gap_left): Remove BCOPY conditional code.
15219         XEmacs demands a working ANSI C compiler - hence memmove.
15220
15221         * regex.c (regex_compile): Remove accidental use of trigraphs.
15222
15223 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15224
15225         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15226         event timestamp.
15227
15228 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15229
15230         * event-msw.c (mswindows_drain_windows_queue): Added the
15231         parameter.
15232         (mswindows_need_event): Commented the call to
15233         mswindows_drain_windows_queue().
15234         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15235         only.
15236
15237         * console-msw.h: Moved a few function prototypes here from
15238         event-msw.c.
15239
15240         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15241         parameter from unsigned short to unsigned long.
15242         (Fmswindows_shell_execute): Added return value.
15243
15244 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15245
15246         * sysdep.c (init_system_name):
15247           process-unix.c (unix_canonicalized_host_name):
15248         Don't call freeaddrinfo() if getaddrinfo() fails.
15249
15250         * process-unix.c (unix_open_unix_network_stream):
15251         Moved the code to get a port # into address loop.
15252
15253 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15254
15255         * buffer.c (reinit_vars_of_buffer):
15256         The right place to initialize conversion_in_dynarr and
15257         conversion_out_dynarr.
15258
15259         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15260
15261         * process-unix.c (unix_canonicalize_host_name): Muleize.
15262         (unix_open_network_stream): Muleize.
15263
15264         * buffer.h: Fix up prototypes for ralloc.c functions.
15265
15266 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15267         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15268         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15269                 instead of gethostbyname()
15270         * process-unix.c: In unix_canonicalize_host_name() and
15271                 unix_open_network_stream(), add code to use getaddrinfo()
15272                 instead of gethostbyname().
15273
15274 2000-01-27  Daniel Pittman <daniel@danann.net>
15275
15276         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15277         libs when built with flat Athena.
15278
15279 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15280
15281         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15282         Use coding standards for function prototypes.
15283
15284 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15285
15286         * dialog-msw.c (push_lisp_string_as_unicode):
15287         * doc.c (unparesseuxify_doc_string):
15288         * dired.c (Fuser_name_completion_1):
15289         * dired.c (Fuser_name_all_completions):
15290         * dired.c (free_user_cache):
15291         * dired.c (user_name_completion):
15292         * console-x.c (get_display_arg_connection):
15293         * minibuf.c (clear_echo_area_internal):
15294         * minibuf.c (echo_area_append):
15295         * eldap.c (Fldap_open):
15296         * eldap.c (Fldap_search_internal):
15297         * frame-x.c (x_set_frame_text_value):
15298         * frame-x.c (x_set_frame_properties):
15299         * frame-x.c (x_create_widgets):
15300         * redisplay-tty.c (term_get_fkeys_1):
15301         * objects-x.c (x_parse_nearest_color):
15302         * objects-x.c (x_valid_color_name_p):
15303         * objects-x.c (x_initialize_font_instance):
15304         * objects-x.c (x_list_fonts):
15305         * objects-x.c (x_find_charset_font):
15306         * tooltalk.c (Fadd_tooltalk_message_arg):
15307         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15308         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15309         * process-unix.c (unix_create_process):
15310         * ntproc.c (sys_spawnve):
15311         * sound.c (Fplay_sound_file):
15312         * sound.c (Fplay_sound):
15313         * buffer.c (init_initial_directory):
15314         * buffer.c (init_buffer):
15315         * editfns.c (init_editfns):
15316         * editfns.c (Ftemp_directory):
15317         * editfns.c (Fuser_full_name):
15318         * editfns.c (uncache_home_directory):
15319         * editfns.c (get_home_directory):
15320         * editfns.c (Fuser_home_directory):
15321         * editfns.c (Fformat_time_string):
15322         * editfns.c (Fcurrent_time_string):
15323         * gui-x.c (button_item_to_widget_value):
15324         * database.c (Fopen_database):
15325         * event-Xt.c (x_to_emacs_keysym):
15326         * event-Xt.c (x_event_to_emacs_event):
15327         * event-Xt.c (describe_event_window):
15328         * event-msw.c (mswindows_wnd_proc):
15329         * glyphs-eimage.c (jpeg_instantiate):
15330         * glyphs-eimage.c (gif_instantiate):
15331         * glyphs-eimage.c (png_instantiate):
15332         * glyphs-eimage.c (tiff_instantiate):
15333         * glyphs-x.c (xbm_instantiate_1):
15334         * glyphs-x.c (x_xbm_instantiate):
15335         * glyphs-x.c (x_xface_instantiate):
15336         * glyphs-x.c (autodetect_instantiate):
15337         * glyphs-x.c (cursor_font_instantiate):
15338         * glyphs-x.c (x_widget_instantiate):
15339         * glyphs-x.c (x_widget_set_property):
15340         * glyphs-x.c (x_widget_property):
15341         * glyphs-x.c (BUILD_GLYPH_INST):
15342         * print.c (write_string_to_stdio_stream):
15343         * print.c (output_string):
15344         * print.c (Falternate_debugging_output):
15345         * print.c (Fexternal_debugging_output):
15346         * glyphs-msw.c (extract_xpm_color_names):
15347         * glyphs-msw.c (mswindows_xpm_instantiate):
15348         * glyphs-msw.c (bmp_instantiate):
15349         * glyphs-msw.c (resource_name_to_resource):
15350         * glyphs-msw.c (mswindows_resource_instantiate):
15351         * glyphs-msw.c (xbm_instantiate_1):
15352         * glyphs-msw.c (mswindows_xbm_instantiate):
15353         * glyphs-msw.c (mswindows_xface_instantiate):
15354         * glyphs-msw.c (mswindows_widget_instantiate):
15355         * glyphs-msw.c (add_tree_item):
15356         * glyphs-msw.c (add_tab_item):
15357         * glyphs-msw.c (mswindows_combo_box_instantiate):
15358         * glyphs-msw.c (mswindows_widget_property):
15359         * glyphs-msw.c (mswindows_combo_box_property):
15360         * glyphs-msw.c (mswindows_widget_set_property):
15361         * console.c (stuff_buffered_input):
15362         * objects-msw.c (mswindows_initialize_color_instance):
15363         * objects-msw.c (mswindows_valid_color_name_p):
15364         * objects-msw.c (mswindows_list_fonts):
15365         * objects-msw.c (mswindows_font_instance_truename):
15366         * bytecode.c (optimize_compiled_function):
15367         * select-x.c (symbol_to_x_atom):
15368         * select-x.c (x_atom_to_symbol):
15369         * select-x.c (hack_motif_clipboard_selection):
15370         * select-x.c (selection_data_to_lisp_data):
15371         * select-x.c (lisp_data_to_selection_data):
15372         * select-x.c (Fx_get_cutbuffer_internal):
15373         * select-x.c (Fx_store_cutbuffer_internal):
15374         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15375         * buffer.h (TO_INTERNAL_FORMAT): New function.
15376         * emacs.c (make_arg_list_1):
15377         * emacs.c (make_argc_argv):
15378         * emacs.c (main_1):
15379         * emacs.c (Fdump_emacs):
15380         * emacs.c (split_string_by_emchar_1):
15381         * file-coding.h:
15382         * lisp.h:
15383         * lstream.h:
15384         * symsinit.h:
15385         * device-x.c (x_init_device):
15386         * device-x.c (Fx_valid_keysym_name_p):
15387         * device-x.c (Fx_get_font_path):
15388         * device-x.c (Fx_set_font_path):
15389         * glyphs.c (bitmap_to_lisp_data):
15390         * glyphs.c (pixmap_to_lisp_data):
15391         * alloc.c (make_ext_string): Use coding system arguments.  Update
15392         all callers.
15393         * alloc.c (build_string):
15394         * callproc.c (child_setup):
15395         * callproc.c (init_callproc):
15396         * fileio.c (lisp_strerror):
15397         * fileio.c (directory_file_name):
15398         * fileio.c (Fexpand_file_name):
15399         * fileio.c (Ffile_truename):
15400         * fileio.c (Fsysnetunam):
15401         * fileio.c (Fdo_auto_save):
15402         * sysdep.c (sys_readdir):
15403         * tests.c: New file.  Allow adding C tests.
15404         Replace GET_* macros with a more comprehensible and flexible
15405         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15406         Modify all calls.
15407         Any coding system can be used to do format conversion.
15408         Eliminate enum external_data_format.
15409         Eliminate convert_to_external_format.
15410         Eliminate convert_to_internal_format.
15411         Make sure file-name, keyboard, terminal, and ctext are always
15412         defined as coding systems or aliases.  Make
15413         file-name-coding-system, terminal-coding-system, and
15414         keyboard-coding-system magical variables that are equivalent to
15415         defining the corresponding coding system aliases.
15416
15417         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15418         * file-coding.c (Fcoding_system_alias_p): New function.
15419         * file-coding.c (Fcoding_system_aliasee): New function.
15420         * file-coding.c (append_suffix_to_symbol): New function.
15421         * file-coding.c (dangling_coding_system_alias_p): New function.
15422         * file-coding.c (Ffind_coding_system):
15423         * file-coding.c (Fcopy_coding_system):
15424         * file-coding.c (encode_coding_no_conversion):
15425         * file-coding.c (syms_of_file_coding):
15426         * file-coding.c (vars_of_file_coding):
15427         Rewrite coding system alias code.
15428         Allow nested aliases, like symbolic links.
15429         Allow redefinition of coding system aliases.
15430         Prevent existence of dangling coding system aliases.
15431
15432         * dired.c (Fuser_name_completion_1):
15433         * dired.c (Fuser_name_all_completions):
15434         A crash would happen if user did QUIT in the middle of building
15435         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15436
15437         * lisp.h:
15438         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15439
15440         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15441         an unsigned char *.  Update all callers.
15442
15443 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15444
15445         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15446
15447 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15448
15449         * elhash.c (hentry_description): Use more portable definition.
15450         (resize_hash_table): Initialize new hentries using
15451         xnew_array_and_zero, thereby simplifying the code.
15452
15453         * mule-charset.c (make_charset): Make sure entire object is
15454         initialized, to avoid Purify warnings.
15455
15456         * alloc.c (resize_string): Fix unlikely crash with big strings.
15457
15458 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15459
15460         * realpath.c (xrealpath):
15461         Don't call getwd().
15462
15463 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15464
15465         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15466
15467 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15468
15469         * unexelfsgi.c (unexec): Change the way we decide which segment
15470         should be extended.
15471
15472         Assumption that .bss section should be outside the PT_LOADable
15473         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15474         it's present) is inside the 'data' segment. This would fail the
15475         test which was used to find a segment to grow and cover new
15476         heap. Instead of this assumption, I created another one - on IRIX
15477         the segment to grow should start below .bss and it's address
15478         should extent above the end of .bss. Once this segment is
15479         identified, it's grown to accommodate the new heap and new
15480         zero-length .bss section is added at the end of .data2.
15481
15482 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15483
15484         * eval.c (Feval): Wrong number of arguments should use original
15485         function, not the indirect_function version of it.
15486
15487 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15488
15489         * glyphs-x.c (x_button_instantiate): Don't add image if
15490         it is not a pixmap.
15491         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15492         is relative.
15493
15494 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15495
15496         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15497         declaration.
15498         (DEFVAR_INT_MAGIC): Ditto.
15499         (DEFVAR_BOOL_MAGIC): Ditto.
15500         * glyphs.h: Reindent backslash.
15501
15502 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15503
15504         * glyphs-widget.c (layout_query_geometry):
15505         (layout_layout): Use correct types for gheight, gwidth.
15506
15507 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15508
15509         * EmacsManager.c (QueryGeometry): Purified.
15510
15511 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15512
15513         * alloc.c (make_float): Make sure entire object is initialized, to
15514         avoid Purify warnings.
15515         (pdump_register_sub): Remove useless assignment.
15516         (pdump): Use xmalloc, not malloc.
15517         (pdump_load): Use xmalloc, not malloc.
15518
15519 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15520
15521         * callproc.c:
15522         * dired-msw.c:
15523         * fileio.c:
15524         * process-nt.c:
15525         * redisplay-msw.c:
15526         * sysdep.c: Removed redundant #include <windows.h>
15527
15528 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15529
15530         * frame.c (delete_frame_internal): Do not delete device when its
15531         implementation so declares.
15532         (delete_frame_internal): Set device selected frame to nil when
15533         last frame goes away.
15534
15535         * device-msw.c (msprinter_device_system_metrics): Implemented.
15536         (mswindows_device_system_metrics): Added 'device-dpi property.
15537
15538         * device.c: (Fdevice_printer_p): Added.
15539         Added 'offset-workspace device metric.
15540
15541         * console.h (device_metrics): Declared DM_offset_workspace.
15542
15543 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15544
15545         * fileio.c (Ffile_truename): Remove pointless and confusing
15546         initialization of elen.
15547
15548         * glyphs-widget.c: Compiler warning fixes.
15549
15550 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15551
15552         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15553         instead of a Lisp_Object as argument to make it consistent with
15554         the other LIVE_P macros.
15555         (CHECK_LIVE_PROCESS): New macro.
15556
15557         * process.c: Declare Qprocess_live_p.
15558         (Fprocess_live_p): New function.
15559         (create_process): Use PROCESS_LIVE_P.
15560         (read_process_output): Ditto.
15561         (set_process_filter): Ditto.
15562         (Fdelete_process): Ditto.
15563         (kill_buffer_processes): Ditto
15564         (process_send_signal): Use CHECK_LIVE_PROCESS.
15565         (Fprocess_input_coding_system): Check whether process is still
15566         alive (fix PR#1061).
15567         (Fprocess_output_coding_system): Ditto.
15568         (Fprocess_coding_system): Ditto.
15569         (Fset_process_input_coding_system): Ditto.
15570         (Fset_process_output_coding_system): Ditto.
15571
15572 2000-01-23  Andy Piper  <andy@xemacs.org>
15573
15574         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15575         layout and widget.
15576
15577         * glyphs.c (mark_image_instance): take into account changed
15578         image_instance format.
15579         (image_instance_equal): ditto.
15580         (image_instance_hash): ditto.
15581
15582         * glyphs-widget.c (widget_instantiate): Incorporate layout
15583         instantiation here. Delay layout of the layout until later.
15584         (layout_instantiate): deleted.
15585         (layout_query_geometry): new function. get the geometry of a
15586         layout.
15587         (layout_layout): layout a layout dynamically.
15588         (image_instantiator_widget): New function - splitting up
15589         image_instantiator_format_create_glyphs_widget for netwinder
15590         compilation.
15591         (image_instantiator_buttons):
15592         (image_instantiator_edit_fields):
15593         (image_instantiator_combo_box):
15594         (image_instantiator_scrollbar):
15595         (image_instantiator_progress_guage):
15596         (image_instantiator_tree_view):
15597         (image_instantiator_tab_control):
15598         (image_instantiator_labels):
15599         (image_instantiator_layout): ditto.
15600         (image_instantiator_format_create_glyphs_widget): Call preceding
15601         functions.
15602
15603 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15604
15605         * process.c (Fset_process_coding_system):
15606         * device-x.c (Fx_keysym_hash_table):
15607         Docstring fixes.
15608
15609         * lstream.c (Lstream_write): Return documented value, not 0.
15610
15611         * fileio.c (directory_file_name):
15612         (Fsubstitute_in_file_name):
15613         (Fsubstitute_insert_file_contents_internal):
15614         (Fwrite_region_internal):
15615         * emacs.c:
15616         * sysdep.c:
15617         * getloadavg.c:
15618         * systty.h:
15619         Remove vestigial APOLLO-conditional code.
15620
15621 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15622
15623         * getpagesize.h: Add guard macros.
15624         * libsst.h: Add guard macros.
15625         * libst.h: Add guard macros.
15626         * line-number.h: Add guard macros.
15627         * ndir.h: Add guard macros.
15628         * sysfloat.h: Add guard macros.
15629         * sysfile.h: Add guard macros.
15630         * sysproc.h: Add guard macros.
15631         * syswait.h: Add guard macros.
15632         * xintrinsic.h: Add guard macros.
15633         * xintrinsicp.h: Add guard macros.
15634         * xmmanager.h: Add guard macros.
15635         * xmmanagerp.h: Add guard macros.
15636         * xmprimitive.h: Add guard macros.
15637         * xmu.h: Add guard macros.
15638         * gpmevent.h: Add copyright statement. Add guard macros.
15639         * miscplay.h: Add guard macros.
15640         * *.h: Use consistent C-standards-approved guard macro names.
15641
15642         * opaque.c (make_opaque): Switch parameter order.
15643         * opaque.h (make_opaque): Switch parameter order.
15644         Update all callers.
15645         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15646
15647         * config.h.in (type_checking_assert): Added.
15648         (bufpos_checking_assert): Added.
15649
15650 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15651
15652         * alloc.c: Harmless pdump changes.
15653         - Use countof().
15654         - spell alignment correctly.
15655         * sysdep.c: Use countof()
15656
15657 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15658
15659         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15660         initially_selected_for_input() console method, default to 0.
15661         (semi_canonicalize_console_connection): Try to delegate to
15662         canonicalize_console_connection if no such console method.
15663         (canonicalize_console_connection): Vice versa.
15664         (print_console): Do not print nil connection.
15665
15666         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15667         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15668         (XDEVIMPF_FRAMELESS_OK): Added.
15669         (CONSOLE_INHERITS_METHOD): Added.
15670
15671         * console-msw.c (mswindows_canonicalize_console_connection):
15672         Added.
15673         (mswindows_canonicalize_device_connection): Added.
15674
15675         * console-msw.h (struct msprinter_device): Added this struct and
15676         accessor macros.
15677         (mswindows_device): Made fontlist a lisp object.
15678
15679         * device.c (semi_canonicalize_device_connection):  Try to delegate
15680         to canonicalize_device_connection if no such console method.
15681         (canonicalize_device_connection): Vice versa.
15682         (print_device): Do not print nil connection.
15683
15684         * device-msw.c (mswindows_init_device): Call InitCommonControls
15685         when have widgets.
15686         (mswindows_delete_device): Removed fontlist deallocation.
15687         (mswindows_mark_device): Added.
15688
15689         * events.c (event_equal): Added abort() at unreached code.
15690         (event_hash): Ditto.
15691
15692         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15693         fallback tags of Windows devices.
15694
15695         * general.c (syms_of_general): Initialized Qmsprinter.
15696
15697         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15698         of fallback tags of Windows devices.
15699
15700         * lisp.h: Declared Qmsprinter.
15701
15702         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15703         of strings.
15704         (mswindows_list_fonts): Ditto.
15705         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15706         that it can be used by both mswindows and msprinter devices.
15707         (initialize_font_instance): Added.
15708         (mswindows_initialize_font_instance): Use it.
15709         (msprinter_initialize_font_instance): Added.
15710
15711         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15712         and implementation flags check.
15713         (redisplay_without_hooks): Changed the call to the above.
15714         (Fredraw_device): Ditto.
15715         (Fredisplay_device): Ditto.
15716
15717         * redisplay-msw.c (get_frame_dc): Implemented.
15718         (get_frame_compdc): Implemented.
15719         (many functions): Use the two functions above to get device
15720         contexts, ether for a window or a printer.
15721
15722 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15723
15724         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15725         initialization here.
15726         (init_symbols_once_early): Call it.
15727         * emacs.c (main_1): Call it.
15728         * symsinit.h: Declare it.
15729
15730 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15731
15732         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15733         Lisp_Object.
15734         (pdump_backtrace): Ditto.
15735         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15736         (pdump_get_entry): Abort if trying to register a null pointer.
15737         (pdump_dump_data): Cleanup types when relocating.
15738         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15739         (pdump_dump_rtables): Remove bad casts.
15740         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15741         Lisp_Object instead of a EMACS_INT for the hashtable
15742         reorganization.
15743
15744 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15745
15746         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15747
15748         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15749
15750         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15751
15752         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15753
15754 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15755
15756         * faces.h (FACE_STRIKETHRU_P): Added.
15757
15758         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15759         of font variants.
15760
15761         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15762         (mswindows_set_dc_font): New function, aware of font variants,
15763         separated from mswindows_update_dc.
15764
15765         * objects-msw.h (struct mswindows_font_instance_data): Added
15766         definition.
15767
15768         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15769         cached fonts and the data structure.
15770         (mswindows_initialize_font_instance): Added creation of font data
15771         structure.
15772         (mswindows_print_font_instance): Print at least something.
15773         (mswindows_create_font_variant): Implemented.
15774         (mswindows_get_hfont): Implemented.
15775
15776 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15777
15778         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15779         prototyping problem with msvc.
15780
15781         * emacs.c (main_1): added syms_of_gui_mswindows() call
15782
15783         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15784         syms_of_gui_mswindows() function
15785
15786         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15787
15788 2000-01-18  Martin Buchholz <martin@xemacs.org>
15789
15790         * XEmacs 21.2.27 is released.
15791
15792 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15793
15794         * glyphs-eimage.c (struct tiff_error_struct):
15795         (tiff_error_func):
15796         (tiff_warning_func):
15797         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15798
15799         * unexmips.c:
15800         * unexhp9k3.c:
15801         * unexfreebsd.c:
15802         * unexec.c: Remove vestigial Lucid C code.
15803         * unexalpha.c:
15804         * unexaix.c:
15805         * termcap.c:
15806         * libsst.c: Ansify.
15807         Remove declarations of errno and strerror().
15808
15809         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15810
15811         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15812
15813 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15814
15815         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15816         Optimize.
15817
15818 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15819
15820         * md5.c:
15821         * file-coding.c:
15822         * file-coding.h:
15823         Change enum eol_type to eol_type_t.
15824
15825 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15826
15827         * gui.c (get_gui_callback): Check cons before accessing car.
15828
15829 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15830
15831         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15832         (XSETSPECIFIER_TYPE): Ditto.
15833
15834 2000-01-17  Didier Verna  <didier@xemacs.org>
15835
15836         * redisplay.c (generate_fstring_runes): compute string size in
15837         characters, not bytes.
15838
15839 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15840
15841         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15842
15843 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15844
15845         * print.c (print_error_message): Call print_prepare().
15846
15847 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15848
15849         * .dbxrc: Renamed from dbxrc.
15850
15851         * events.c (event_to_character):
15852         Use `assert (foo)' instead of `if (!foo) abort()'
15853
15854         * .gdbinit (xtype): Add documentation.
15855         * .gdbinit (check-temacs): New function.
15856         * .gdbinit (check-xemacs): New function.
15857         * dbxrc (check-xemacs): New function.
15858         * dbxrc (check-xemacs): New function.
15859
15860 2000-01-14  Andy Piper  <andy@xemacs.org>
15861
15862         * glyphs-widget.c (widget_query_geometry): Make sure that we
15863         calculate default dimensions correctly.
15864
15865 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15866
15867         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15868
15869         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15870         pdump_wire'd variable.
15871
15872         * emacs.c: (main_1): Conditionalized calls to
15873         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15874
15875 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15876
15877         * window.c (Fset_window_configuration):
15878         * sysdep.c (_start):
15879         * input-method-motif.c (res):
15880         * event-Xt.c (Xt_process_to_emacs_event):
15881         Simple compiler warning fixes.
15882
15883         * bytecode.c (funcall_compiled_function): Use the original
15884         function symbol on the backtrace list in preference to the
15885         compiled_function object in error messages.
15886
15887 2000-01-13  Andy Piper  <andy@xemacs.org>
15888
15889         * glyphs-x.c (update_widget_face): Make sure we update the widget
15890         background as well as foreground.
15891
15892 2000-01-13  Andy Piper  <andy@xemacs.org>
15893
15894         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15895         fields to subwindow.
15896         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15897         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15898         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15899         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15900
15901         * glyphs-widget.c (check_valid_tab_orientation): new function.
15902         (initialize_widget_image_instance): zero orientation and
15903         justification.
15904         (widget_instantiate): pick up orientation.
15905         (tab_control_query_geometry): return appropriate values for
15906         vertical tabs.
15907
15908         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15909         appropriate creation flags for left, right and bottom tabs.
15910
15911         * s/cygwin32.h: add tab definitions.
15912
15913 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15914
15915         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15916         frame upon hiding a subwindow.
15917         (mswindows_button_instantiate): Changed the push button style to
15918         BS_PUSHBUTTON.
15919         (mswindows_button_instantiate): Removed button BS_NOTIFY
15920         style.
15921         (mswindows_button_instantiate): Removed redundant check for
15922         a disabled gui item.
15923         (mswindows_button_instantiate): Made use of WS_TABSTOP
15924         consistent: "operable" controls (edit, button, tree, scroll) have
15925         this style, "display-only" ones (static, progress gauge) do
15926         not. This style is currently ignored by XEmacs though. Also,
15927         removed the WS_EX_CONTROLPARENT style - it is not for children,
15928         it is for their parents!
15929         (mswindows_edit_field_instantiate): Ditto.
15930         (mswindows_progress_gauge_instantiate): Ditto.
15931         (mswindows_tree_view_instantiate): Ditto.
15932         (mswindows_tab_control_instantiate): Ditto.
15933         (mswindows_scrollbar_instantiate): Ditto.
15934         (mswindows_combo_box_instantiate): Ditto.
15935         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15936         style to the "clip" window.
15937         (mswindows_button_instantiate): Removed compilation warning by
15938         equally typing terms of the ?: operator.
15939
15940 2000-01-12  Didier Verna  <didier@xemacs.org>
15941
15942         * redisplay.c (generate_fstring_runes): new parameter holding the
15943         last modeline-format extent.
15944         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15945         extent, fill the glyph block with it.
15946         (generate_fstring_runes): handle these parameters.
15947         (generate_formatted_string_db): ditto.
15948
15949         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15950         glyphs'extents in the modeline.
15951
15952 1999-01-11  Mike Woolley  <mike@bulsara.com>
15953
15954         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15955         256Mb, as a workaround for the non-starting problem many people
15956         have experienced.
15957
15958 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15959
15960         * console-tty.c (Fset_console_tty_output_coding_system):
15961         Force redrawing tty frame.
15962
15963 2000-01-10  Didier Verna  <didier@xemacs.org>
15964
15965         * redisplay.c (generate_fstring_runes): fix size computation bug.
15966
15967 2000-01-09  William M. Perry <wmperry@aventail.com>
15968
15969         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15970
15971 2000-01-09  Andy Piper  <andy@xemacs.org>
15972
15973         * glyphs-msw.c: index -> i to avoid shadows.
15974         (xbm_create_bitmap_from_data): make static.
15975         (check_valid_string_or_int): deleted.
15976         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15977
15978         * glyphs-x.c (x_update_subwindow): remove unused args.
15979
15980         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15981         back pointer - this is done in allocate_image_instance.
15982         (query_string_font): return Qnil to make the compiler happy.
15983         (unmap_subwindow): set to ~0 to make the compiler happy.
15984         (glyph_query_geometry): comment out until used.
15985         (glyph_layout): ditto.
15986
15987 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15988
15989         * insdel.c (signal_after_change): Remove extraneous unbind_to().