Merge r21-4-12-chise-0_21-pre9-for-libchise-b1.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Vchise_system_db_directory): New variable.
4         (vars_of_chartab): Add new variable `chise-system-db-directory'.
5
6 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * chartab.c: EXFUN `Fmount_char_attribute_table'.
9         (print_chartab_range): Don't define when `UTF2000' is defined.
10         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
11         `CHISE_DS_open'.
12
13 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
14
15         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
16         and optional argument `rehash' is specified, call
17         `open_chise_data_source_maybe' before
18         `chise_ds_foreach_char_feature_name' is called.
19
20 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
21
22         * chartab.c (char_attribute_list_reset_map_func): New function
23         when HAVE_LIBCHISE is defined.
24         (Fchar_attribute_list): Add new optional argument `rehash' when
25         HAVE_LIBCHISE is defined.
26         (open_chise_data_source_maybe): Use "chise-db" instead of
27         "char-db".
28         (char_attribute_system_db_file): Likewise.
29         (Fload_char_attribute_table): Use
30         `chise_feature_foreach_char_with_value' instead of
31         `chise_char_feature_value_iterate'.
32
33 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
34
35         * chartab.c (Vchise_db_directory): New variable.
36         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
37
38 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
39
40         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
41         instead of HAVE_CHISE to specify using with libchise.
42
43         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
44
45         * chartab.h: Don't use HAVE_CHISE_CLIENT.
46
47         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
48         defined or HAVE_LIBCHISE_LIBCHISE is defined.
49         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
50         is defined.
51         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
52         HAVE_CHISE to specify using with libchise.
53         (syms_of_chartab): Don't define symbol `system-char-id' when
54         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
55
56 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
59         specify CHISE DB support.
60         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
61         of `char_attribute_system_db_file' to check feature DB file.
62
63         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
64         HAVE_CHISE_CLIENT to specify CHISE DB support.
65
66         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
67         specify CHISE DB support.
68         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
69         not defined.
70         (Freset_char_attribute_table): Use `chise_feature_setup_db'
71         instead of `char_attribute_system_db_file' to check feature DB
72         file.
73
74 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
77         `HAVE_CHISE_CLIENT'.
78
79 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
80
81         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
82         (Fsave_charset_mapping_table): Don't use
83         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
84
85         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
86         (HAVE_LIBCHISE): New macro.
87
88         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
89
90         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
91         (Fsave_char_attribute_table): Don't use
92         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
93
94 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
95
96         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
97         defined.
98         (save_uint16_byte_table): Likewise.
99         (save_byte_table): Likewise.
100         (char_table_get_db): Use `chise_ds_load_char_feature_value'
101         instead of `chise_char_load_feature_value'.
102         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
103
104 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
105
106         * chartab.h (struct Lisp_Char_Table): Delete member
107         `feature_table' if CHISE is defined.
108
109         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
110         (Fcopy_char_table): Likewise.
111         (char_table_open_db_maybe): Likewise.
112         (char_table_close_db_maybe): Likewise.
113         (char_table_get_db): Likewise.
114         (Fmount_char_attribute_table): Likewise.
115         (Fload_char_attribute_table): Likewise.
116
117 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
118
119         * mule-charset.c (load_char_decoding_entry_maybe): Use
120         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
121         `chise_ccs_decode'.
122
123 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
124
125         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
126         instead of `chise_open_data_source'.
127         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
128         `chise_ds_close'.
129
130 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
131
132         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
133         instead of `chise_ds_open_feature_table'.
134         (char_table_close_db_maybe): Don't use `chise_ft_close'.
135
136 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
137
138         * mule-charset.c (Fsave_charset_mapping_table): Use
139         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
140         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
141         `chise_ccs_sync' instead of `chise_ccst_close'.
142         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
143
144         * chartab.c (open_chise_data_source_maybe): Modify for
145         `chise_open_data_source'.
146         (char_table_open_db_maybe): Modify for
147         `chise_ds_open_feature_table'.
148
149 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
150
151         * mule-charset.c (load_char_decoding_entry_maybe): Use
152         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
153         `chise_ccst_close'.
154
155 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
156
157         * mule-charset.c (Fsave_charset_mapping_table): Use
158         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
159         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
160         `chise_dt_put_char' and `chise_dt_close'.
161         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
162         `chise_ccs_decode' and `chise_ccst_close' instead of
163         `chise_ds_open_decoding_table', `chise_dt_get_char' and
164         `chise_dt_close'.
165
166         * chartab.c (char_table_get_db): Use
167         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
168         (load_char_attribute_table_map_func): Modify for
169         `chise_char_feature_value_iterate'.
170         (Fload_char_attribute_table): Use
171         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
172
173 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
174
175         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
176
177 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
178
179         * chartab.c (put_char_table): Modify for inherited coded-charsets
180         in XEmacs CHISE.
181
182 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
183
184         * chartab.c (Fput_char_table_map_function): Fixed.
185         (word_boundary_p): Don't check charset in XEmacs CHISE.
186
187 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
188
189         * mule-charset.c (Fsave_charset_mapping_table): Use
190         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
191         instead of `chise_open_decoding_table'; refer
192         `default_chise_data_source'; use `chise_dt_close' instead of
193         `chise_close_decoding_table'.
194         (load_char_decoding_entry_maybe): Likewise.
195
196         * chartab.c (default_chise_data_source): New variable when `CHISE'
197         is defined.
198         (Fcopy_char_table): `ct->ds' is deleted.
199         (open_chise_data_source_maybe): New function.
200         (Fclose_char_data_source): New function.
201         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
202         use `chise_ds_open_feature_table' instead of
203         `chise_open_feature_table'.
204         (char_table_close_db_maybe): Use `chise_ft_close' instead of
205         `chise_close_feature_table'; `cit->ds' is deleted.
206         (syms_of_chartab): Add new builtin function
207         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
208
209         * chartab.h (default_chise_data_source): New extern variable.
210         (open_chise_data_source_maybe): New prototype.
211         (struct Lisp_Char_Table): Delete `ds'.
212
213 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
214
215         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
216         `CHISE' is defined.
217
218 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
219
220         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
221         not defined; add code for non-libchise setting.
222         (char_table_close_db_maybe): Likewise.
223         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
224         defined.
225         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
226         even if `CHISE' is not defined.
227         (Freset_char_attribute_table): Likewise.
228         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
229         `char_table_close_db_maybe' even if `CHISE' is not defined; use
230         `char_table_get_db'.
231         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
232         `char_table_close_db_maybe' even if `CHISE' is not defined.
233
234 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
235
236         * chartab.c (char_table_open_db_maybe): New function.
237         (char_table_close_db_maybe): New function.
238         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
239         (Freset_char_attribute_table): Likewise.
240         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
241         `char_table_close_db_maybe'.
242         (Fload_char_attribute_table): Likewise.
243
244 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
245
246         * chartab.c: Don't include <chise.h> because it is included in
247         chartab.h.
248         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
249         defined.
250         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
251         `CHISE' is defined.
252         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
253         `CHISE' is defined.
254         (Fclose_char_attribute_table): Close `ct->feature_table' and
255         `ct->ds' when `CHISE' is defined.
256         (Freset_char_attribute_table): Likewise.
257         (load_char_attribute_maybe): Use `cit->ds' and
258         `cit->feature_table' when `CHISE' is defined.
259         (Fload_char_attribute_table): Likewise.
260
261         * chartab.h: Include <chise.h> when `CHISE' is defined.
262         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
263         when `CHISE' is defined.
264
265 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
266
267         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
268         is defined.
269         (char_table_description): Likewise.
270         (Fmake_char_table): Likewise.
271         (Fcopy_char_table): Likewise.
272         (Fmount_char_attribute_table): Likewise.
273         (Fclose_char_attribute_table): Likewise.
274         (Freset_char_attribute_table): Likewise.
275         (load_char_attribute_maybe): Likewise.
276         (Fload_char_attribute_table): Likewise.
277
278         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
279         defined.
280
281 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
282
283         * chartab.c (load_char_attribute_table_map_func): New function
284         when CHISE is defined.
285         (Qload_char_attribute_table_map_function): Don't define when CHISE
286         is defined.
287         (Fload_char_attribute_table_map_function): Likewise.
288         (Fload_char_attribute_table): Use libchise when `CHISE' is
289         defined.
290         (syms_of_chartab): Don't define
291         `load-char-attribute-table-map-function' when CHISE is defined.
292
293 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
294
295         * chartab.c: Include <chise.h> when `CHISE' is defined.
296         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
297
298 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
299
300         * mule-charset.c (charset_code_point): Fix problem when searching
301         in mother CCS fails with `defined_only' mode.
302
303 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
304
305         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
306         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
307         (put_char_composition): Likewise.
308         (Fput_char_attribute): Likewise.
309         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
310
311 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
312
313         * chartab.c (Q_ucs): Deleted.
314         (Fput_char_attribute): Don't refer `->ucs'.
315         (Fdefine_char): Likewise.
316         (Ffind_char): Likewise.
317         (syms_of_chartab): Delete `->ucs'.
318
319 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
320
321         * mule-charset.c (Qmap_cns11643_2): Renamed from
322         `Qchinese_cns11643_2'.
323         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
324         `chinese-cns11643-2'.
325         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
326         `=cns11643-2'.
327
328 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
329
330         * mule-charset.c (Qmap_cns11643_1): Renamed from
331         `Qchinese_cns11643_1'.
332         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
333         `chinese-cns11643-1'.
334         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
335         `=cns11643-1'.
336
337 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
338
339         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
340         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
341         `chinese-gb12345'.
342         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
343         `=gb12345'.
344
345 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
346
347         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
348         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
349         `chinese-gb2312'.
350         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
351         `=gb2312'.
352
353 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
354
355         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
356         (syms_of_mule_charset): Add new symbol `=big5' instead of
357         `chinese-big5'.
358         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
359
360 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
361
362         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
363         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
364         `korean-ksc5601'.
365         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
366         `=ks-x1001'.
367
368 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
369
370         * mule-charset.c (Qmap_jis_x0212): Renamed from
371         `Qjapanese_jisx0212'.
372         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
373         `japanese-jisx0212'.
374         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
375         `=jis-x0212'.
376
377 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
378
379         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
380         `Qjapanese_jisx0208'.
381         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
382         of `japanese-jisx0208'.
383         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
384         `=jis-x0208-1983'.
385
386 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
387
388         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
389         `Qjapanese_jisx0208_1978'.
390         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
391         of `japanese-jisx0208-1978'.
392         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
393         `=jis-x0208-1978'.
394
395 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
396
397         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
398         only for XEmacs CHISE.
399
400 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
401
402         * char-ucs.h: Compact non-ISO-IR charset-ids.
403         (LEADING_BYTE_UCS): Changed to -177.
404         (LEADING_BYTE_CONTROL_1): Changed to -77.
405         (LEADING_BYTE_UCS_BMP): Changed to -176.
406         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
407
408 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * mule-charset.c (Qiso_ir): New variable.
411         (Fmake_charset): Recognise new property `iso-ir'.
412         (syms_of_mule_charset): Add new symbol `iso-ir'.
413
414 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
415
416         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
417         n to -n; charset-id of non ISO-IR sets are changed to positive
418         numbers.
419
420 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
421
422         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
423         for &MCS-XXXXXXXX; values.
424
425 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
426
427         * mule.c (Vxemacs_chise_version): Renamed from
428         `Vutf_2000_version'.
429         (vars_of_mule): Add new variable `xemacs-chise-version'; define
430         `utf-2000-version' as an alias for `xemacs-chise-version'.
431
432 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
433
434         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
435         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
436         defined.
437
438         * config.h.in (CHISE): New macro.
439
440 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
441
442         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
443         of `ucs'.
444         (Qmap_ucs): New variable.
445         (syms_of_mule_charset): Add new symbol `=ucs'.
446         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
447
448         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
449         (simplify_char_spec): Likewise.
450
451         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
452
453         * char-ucs.h (Qmap_ucs): New extern variable.
454
455 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
456
457         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
458         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
459         don't define it when UTF2000 is not defined.
460         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
461         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
462         when UTF2000 is not defined.
463         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
464         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
465
466 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
467
468         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
469
470         * mule-charset.c (Vcharset_ucs_gb): Deleted.
471         (Qucs_gb): Deleted.
472         (syms_of_mule_charset): Delete `ucs-gb'.
473         (complex_vars_of_mule_charset): Likewise.
474
475 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
476
477         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
478
479         * mule-charset.c (Vcharset_ucs_cns): Deleted.
480         (Qucs_cns): Deleted.
481         (syms_of_mule_charset): Delete `ucs-cns'.
482         (complex_vars_of_mule_charset): Likewise.
483
484 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
485
486         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
487
488         * mule-charset.c (Vcharset_ucs_jis): Deleted.
489         (Qucs_jis): Deleted.
490         (syms_of_mule_charset): Delete `ucs-jis'.
491         (complex_vars_of_mule_charset): Likewise.
492
493 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
494
495         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
496
497         * mule-charset.c (Vcharset_ucs_ks): Deleted.
498         (Qucs_ks): Deleted.
499         (syms_of_mule_charset): Delete `ucs-ks'.
500         (complex_vars_of_mule_charset): Likewise.
501
502 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
503
504         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
505         (Qideograph_daikanwa_2): Deleted.
506         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
507         (complex_vars_of_mule_charset): Likewise.
508
509         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
510         (LEADING_BYTE_DAIKANWA_1): Deleted.
511         (LEADING_BYTE_DAIKANWA_2): Deleted.
512         (MIN_CHAR_DAIKANWA): Deleted.
513         (MAX_CHAR_DAIKANWA): Deleted.
514
515 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
516
517         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
518         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
519         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
520
521         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
522         (Vcharset_ideograph_daikanwa): Deleted.
523         (Qideograph_hanziku_{1..12}): Deleted.
524         (Qideograph_daikanwa): Deleted.
525         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
526         Vcharset_ideograph_daikanwa.
527         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
528         `ideograph-hanziku-{1..12}'.
529         (complex_vars_of_mule_charset): Likewise.
530
531 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
532
533         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
534
535         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
536         (Qideograph_gt_pj_{1..11}): Deleted.
537         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
538         (complex_vars_of_mule_charset): Likewise.
539
540 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
541
542         * mule-charset.c (Vcharset_ucs_big5): Deleted.
543         (Vcharset_ideograph_gt): Deleted.
544         (Qucs_big5): Deleted.
545         (Qideograph_gt): Deleted.
546         (syms_of_mule_charset): Delete symbol `ucs-big5' and
547         `ideograph-gt'.
548         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
549         and `ideograph-gt'.
550
551         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
552         (LEADING_BYTE_GT): Deleted.
553         (MIN_CHAR_GT): Deleted.
554         (MAX_CHAR_GT): Deleted.
555
556 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
557
558         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
559
560 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
561
562         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
563         (save_uint16_byte_table): Likewise.
564         (save_byte_table): Likewise; convert values by it.
565         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
566         for `ideographic-structure'.
567         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
568         as the filter for `ideographic-structure'.
569
570 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
571
572         * chartab.c (put_char_composition): New function.
573         (Fput_char_attribute): Use `put_char_composition'; use
574         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
575
576         * fns.c (simplify_char_spec): New function.
577         (char_ref_simplify_spec): New function.
578         (Fchar_refs_simplify_char_specs): New function.
579         (syms_of_fns): Add new builtin function
580         `char-refs-simplify-char-specs'.
581
582 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
583
584         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
585         (Qideograph_cbeta): Deleted.
586         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
587         (complex_vars_of_mule_charset): Likewise.
588
589         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
590         (MIN_CHAR_CBETA): Comment out.
591         (MAX_CHAR_CBETA): Likewise.
592
593 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
594
595         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
596         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
597         CHISE client feature.
598
599 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
600
601         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
602
603 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
604
605         * mule-charset.c (charset_lookup_description_1): Use
606         `NUM_LEADING_BYTES' in UTF-2000.
607
608 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
609
610         * char-ucs.h (GC_CHARSETP): Deleted.
611
612 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
613
614         * char-ucs.h (MAX_CHAR_GT): Updated.
615
616 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
617
618         * text-coding.c: Sync with XEmacs 21.4.10.
619
620 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
621
622         * mule-charset.c (Vcharset_china3_jef): Deleted.
623         (Qchina3_jef): Deleted.
624         (syms_of_mule_charset): Don't define `china3-jef'.
625         (complex_vars_of_mule_charset): Likewise.
626
627         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
628         (MIN_CHAR_CHINA3_JEF): Comment out.
629         (MAX_CHAR_CHINA3_JEF): Comment out.
630
631 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
632
633         * mule-charset.c (Vcharset_ucs_gb): New variable.
634         (Qucs_gb): New variable.
635         (syms_of_mule_charset): Add new symbol `ucs-gb'.
636         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
637
638         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
639
640 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
641
642         * mule-charset.c (charset_code_point): if a coded-charset has a
643         final-byte, don't inherit the builtin range of the mother CCS.
644
645 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
646
647         * mule-charset.c (charset_code_point): Fix problem about
648         inheritance.
649
650 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
651
652         * mule-charset.c (decode_builtin_char): Reorganized.
653
654 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
655
656         * text-coding.c (char_encode_as_entity_reference): Modify for
657         `charset_code_point'.
658         (char_encode_shift_jis): Likewise.
659         (char_encode_big5): Likewise.
660         (char_encode_utf8): Likewise.
661         (char_encode_iso2022): Likewise.
662
663         * mule-charset.c (charset_code_point): Add new argument
664         `defined_only'.
665         (Fencode_char): Add new optional argument `defined_only'.
666
667         * chartab.c (put_char_table): Modify for `charset_code_point'.
668
669         * char-ucs.h (charset_code_point): Add new argument
670         `defined_only'.
671         (encode_char_1): Modify for `charset_code_point'.
672
673 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
674
675         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
676         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
677
678 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
679
680         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
681         (Qjis_x0208): Likewise.
682         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
683         XCHARSET_FINAL(charset).
684         (charset_code_point): Modify condition for final-byte based
685         builtin-chars.
686         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
687         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
688         in UTF-2000; specify `=jis-x0208' as the mother of
689         `japanese-jisx0208-1978', `japanese-jisx0208' and
690         `japanese-jisx0208-1990' in UTF-2000.
691
692 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
693
694         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
695
696 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
697
698         * text-coding.c (decode_coding_utf16): Support UTF-16.
699         (char_encode_utf16): Fixed.
700
701 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
702
703         * text-coding.c (Qutf16): New variable in MULE.
704         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
705         (Fcoding_system_type): Add `utf-16' in MULE.
706         (struct detection_state): Add a structure for utf16 in MULE.
707         (detect_coding_type): Setup st->utf16.mask in MULE.
708         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
709         MULE.
710         (reset_encoding_stream): Use `char_encode_utf16' and
711         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
712         (detect_coding_utf16): New function [incomplete].
713         (decode_coding_utf16): New function [support only UCS-2].
714         (char_encode_utf16): New function.
715         (char_finish_utf16): New function.
716         (syms_of_file_coding): Add new symbol `utf-16'; setup
717         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
718
719         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
720         UTF-2000.
721         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
722         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
723
724 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
725
726         * chartab.c (put_char_table): When a charset is specified as a
727         range in UTF-2000, don't support builtin characters.
728
729 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
730
731         * mule-charset.c (decode_defined_char): Don't refer external
732         database if Qunbound or Qnil are found.
733         (Fsave_charset_mapping_table): Don't define it if
734         HAVE_CHISE_CLIENT is not defined.
735         (Freset_charset_mapping_table): New function.
736         (load_char_decoding_entry_maybe): Store Qnil if a character is not
737         found in external database.
738         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
739         if HAVE_CHISE_CLIENT is not defined; add new builtin function
740         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
741
742 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
743
744         * text-coding.c (decode_coding_utf8): Check CCS is specified or
745         not.
746
747 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
748
749         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
750         Q_lowercase, Q_uppercase in UTF-2000.
751
752         * chartab.c (get_char_table): Add special code for the standard
753         case table to use character attribute `->downcase' and
754         `->uppercase' for case operations in UTF-2000.
755
756         * casetab.c (Qflippedcase): New variable in UTF-2000.
757         (Q_lowercase): Likewise.
758         (Q_uppercase): Likewise.
759         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
760         and `->uppercase' in UTF-2000.
761         (complex_vars_of_casetab): Assign attribute name `downcase' to
762         downcase and CANON table of Vstandard_case_table in UTF-2000;
763         assign attribute name `flippedcase' to upcase and EQV table of
764         Vstandard_case_table in UTF-2000.
765
766 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
767
768         * text-coding.c (decode_add_er_char): Support isolated-chars.
769         (char_encode_as_entity_reference): Likewise.
770
771 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
772
773         * emacs.c (Vutf_2000_lisp_directory): New variable.
774         (Vconfigure_utf_2000_lisp_directory): Likewise.
775         (complex_vars_of_emacs): Add new variable
776         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
777
778 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
779
780         * char-ucs.h (DECODE_CHAR): Delete special code for
781         `chinese-big5-1' and `chinese-big5-2'.
782
783         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
784         (Qbig5_2): Likewise.
785         (decode_defined_char): Support CONVERSION_BIG5_1 and
786         CONVERSION_BIG5_2.
787         (decode_builtin_char): Likewise.
788         (charset_code_point): Likewise.
789         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
790         'conversion in UTF-2000.
791         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
792         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
793         `chinese-big5-2' as children of `chinese-big5'.
794
795         * char-ucs.h (CONVERSION_BIG5_1): New macro.
796         (CONVERSION_BIG5_2): New macro.
797
798 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
799
800         * text-coding.c (char_encode_big5): Support entity-reference.
801
802 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
803
804         * text-coding.c (char_encode_as_entity_reference): New function.
805         (char_encode_utf8): Use `char_encode_as_entity_reference'.
806
807 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
808
809         * text-coding.c (decode_coding_big5): Support entity-reference
810         decoding feature.
811
812 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
813
814         * text-coding.c (allocate_coding_system): Initialize initial
815         charsets for CODESYS_UTF8.
816         (Fmake_coding_system): Accept charset-g0, charset-g1 and
817         charset-g2 for CODESYS_UTF8.
818         (decode_coding_utf8): Use charset-g0.
819         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
820         to force variants to map to UCS.
821
822 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
823
824         * text-coding.c (Qutf_8_mcs): New variable.
825         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
826         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
827         instead of `utf-8' in UTF-2000.
828
829 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
830
831         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
832         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
833         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
834         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
835         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
836         CONVERSION_96x96x96x96 are introduced.
837         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
838         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
839         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
840
841         * char-ucs.h (CONVERSION_94): New macro.
842         (CONVERSION_96): New macro.
843         (CONVERSION_94x94): New macro.
844         (CONVERSION_96x96): New macro.
845         (CONVERSION_94x94x94): New macro.
846         (CONVERSION_96x96x96): New macro.
847         (CONVERSION_94x94x94x60): New macro.
848         (CONVERSION_94x94x94x94): New macro.
849         (CONVERSION_96x96x96x96): New macro.
850
851 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
852
853         * chartab.c (Vcharacter_variant_table): Deleted.
854         (Fchar_variants): Use character-attribute `->ucs-variants' instead
855         of `Vcharacter_variant_table'.
856         (Fput_char_attribute): Likewise.
857         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
858         (complex_vars_of_chartab): Likewise.
859
860 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
861
862         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
863
864         * fns.c (Qideographic_structure): New variable.
865         (Qkeyword_char): New variable.
866         (ids_format_unit): New function.
867         (Fideographic_structure_to_ids): New function.
868         (syms_of_fns): Add new symbols `ideographic-structure' and
869         `:char'; add new builtin function `ideographic-structure-to-ids'.
870
871         * data.c (Fchar_ref_p): New function.
872         (syms_of_data): Add new builtin function `char-ref-p'.
873
874         * chartab.h: Add an EXFUN for `Ffind_char'.
875
876 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
877
878         * text-coding.c (Vcharacter_composition_table): Deleted.
879         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
880         in every UTF-2000.
881
882         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
883         UTF-2000.
884         (Vcharacter_composition_table): Deleted.
885         (Fget_composite_char): Use the implementation for external-DB
886         support in every UTF-2000.
887         (Fput_char_attribute): Likewise.
888         (char_attribute_system_db_file): Don't define if external-DB
889         feature is not available.
890         (Fsave_char_attribute_table): Likewise.
891         (Fmount_char_attribute_table): Likewise.
892         (Fclose_char_attribute_table): Likewise.
893         (Freset_char_attribute_table): Likewise.
894         (Fload_char_attribute_table): Likewise.
895         (syms_of_chartab): Don't define `save-char-attribute-table',
896         `mount-char-attribute-table', `reset-char-attribute-table',
897         `close-char-attribute-table' and `load-char-attribute-table' if
898         external-DB feature is not available.
899         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
900
901 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
902
903         * text-coding.c (Qcomposition): Add extern if external-DB feature
904         is supported.
905         (Vcharacter_composition_table): Don't add extern if external-DB
906         feature is supported.
907         (COMPOSE_ADD_CHAR): Modify for new data-representation of
908         character composition rule if external-DB feature is supported.
909
910         * chartab.c (Vcharacter_composition_table): Don't define if
911         external-DB feature is supported.
912         (Qcomposition): New variable.
913         (Fget_composite_char): New implementation for external-DB support.
914         (Fput_char_attribute): Use `composition' property of each
915         character instead of `Vcharacter_composition_table' to store
916         character-composition rules if external-DB feature is supported.
917         (syms_of_chartab): Add new symbol `composition'.
918         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
919         external-DB feature is supported.
920
921 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
922
923         * chartab.c (Vchar_db_stingy_mode): New variable.
924         (load_char_attribute_maybe): Close database if
925         Vchar_db_stingy_mode is not NIL.
926         (Fload_char_attribute_table_map_function): Use
927         `get_char_id_table_0' instead of `get_char_id_table'.
928         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
929
930         * chartab.h (get_char_id_table_0): New inline function.
931         (get_char_id_table): Use `get_char_id_table_0'.
932
933 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
934
935         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
936         and `COMPOSE_ADD_CHAR'.
937         (decode_coding_iso2022): Use `decode_flush_er_chars'.
938
939 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
940
941         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
942         instead of `DECODE_ADD_UCS_CHAR'.
943         (COMPOSE_ADD_CHAR): Likewise.
944
945 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
946
947         * text-coding.c (decode_flush_er_chars): New inline function.
948         (decode_add_er_char): New function.
949         (decode_coding_utf8): Use `decode_flush_er_chars' and
950         `decode_add_er_char'.
951
952 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
953
954         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
955         done before `decode_output_utf8_partial_char'.
956
957         * mule-charset.c (complex_vars_of_mule_charset): Specify
958         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
959         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
960
961 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
962
963         * mule-charset.c (decode_defined_char): New function; search
964         mother.
965         (decode_builtin_char): Don't search mother if
966         XCHARSET_MAX_CODE(charset) == 0.
967         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
968         == 0 even if code >= XCHARSET_MAX_CODE(charset).
969         (Fdecode_char): Use `decode_defined_char' instead of
970         `DECODE_DEFINED_CHAR'.
971         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
972         mother of `Vcharset_ucs_jis'.
973
974         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
975         instead of `DECODE_DEFINED_CHAR'.
976
977         * char-ucs.h (decode_defined_char): Renamed from
978         `DECODE_DEFINED_CHAR'; changed to normal function.
979         (DECODE_CHAR): Use `decode_defined_char' instead of
980         `DECODE_DEFINED_CHAR'.
981
982         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
983
984 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
985
986         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
987
988         * text-coding.c (Vcoded_charset_entity_reference_alist): New
989         variable.
990         (Quse_entity_reference): New variable.
991         (Qd): New variable.
992         (Qx): New variable.
993         (QX): New variable.
994         (coding_system_description): Add description for
995         `ccs_priority_list'.
996         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
997         (allocate_coding_system): Initialize `ccs_priority_list' in
998         UTF-2000.
999         (Fmake_coding_system): Add description about
1000         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1001         (codesys).
1002         (Fcoding_system_property): Accept `disable-composition' and
1003         `use-entity-reference' in UTF-2000.
1004         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1005         in UTF-2000.
1006         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1007         (decode_coding_utf8): Decode entity-reference if
1008         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1009         (char_encode_utf8): Encode non-Unicode characters as
1010         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1011         (str->codesys).
1012         (syms_of_file_coding): Add new symbols `use-entity-reference',
1013         `d', `x', `X'.
1014         (vars_of_file_coding): Add new variable
1015         `coded-charset-entity-reference-alist'.
1016         (complex_vars_of_file_coding): Declare `disable-composition' and
1017         `use-entity-reference' to be coding-system-properties in UTF-2000.
1018
1019         * file-coding.h (struct Lisp_Coding_System): Add new member
1020         `use_entity_reference' and `ccs_priority_list'.
1021         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1022         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1023         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1024
1025 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1026
1027         * chartab.c (save_uint8_byte_table): Don't clear the table.
1028         (save_uint16_byte_table): Likewise.
1029         (save_byte_table): Likewise.
1030         (Fmount_char_attribute_table): New function.
1031         (syms_of_chartab): Add new builtin function
1032         `mount-char-attribute-table'.
1033
1034 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1035
1036         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1037         "w+" mode.
1038         (load_char_decoding_entry_maybe): Open database as read-only mode.
1039
1040         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1041         open database as "w+" mode.
1042         (load_char_attribute_maybe): Open database as read-only mode.
1043         (Fload_char_attribute_table): Likewise.
1044
1045 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1046
1047         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1048         (char_table_description): Delete member `db_file'.
1049         (Fmake_char_table): Don't refer `ct->db_file'.
1050         (Fcopy_char_table): Likewise.
1051         (Fsave_char_attribute_table): Likewise.
1052         (Fclose_char_attribute_table): Likewise.
1053         (Freset_char_attribute_table): Likewise.
1054         (load_char_attribute_maybe): Likewise.
1055         (Fload_char_attribute_table): Likewise.
1056
1057         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1058
1059 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1060
1061         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1062         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1063         `ct->db' is living.
1064         (load_char_attribute_maybe): Likewise.
1065         (Fload_char_attribute_table): Likewise.
1066
1067 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1068
1069         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1070         `ct->db_file' unconditionally.
1071
1072 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1073
1074         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1075         UTF-2000.
1076         (char_table_description): Add description for `db_file' and `db'
1077         in UTF-2000.
1078         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1079         UTF-2000.
1080         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1081         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1082         (Fclose_char_attribute_table): New function.
1083         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1084         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1085         and `cit->db'.
1086         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1087         (syms_of_chartab): Add new builtin function
1088         `Fclose_char_attribute_table'.
1089
1090 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1091
1092         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1093         `db' in UTF-2000.
1094         (load_char_attribute_maybe): Change interface.
1095         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1096
1097 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1098
1099         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1100
1101 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1102
1103         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1104         instead of `DECODE_CHAR' for mother; don't use special code for
1105         chinese-big5 to use code space of chinese-big5-1 and
1106         chinese-big5-2.
1107         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1108         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1109
1110         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1111         (MAX_CHAR_BIG5_CDP): Revival.
1112
1113 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1114
1115         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1116         the XLFD registry-encoding name of `chinese-big5'.
1117
1118 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1119
1120         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1121         (Qchinese_big5_cdp): Deleted.
1122         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1123         (complex_vars_of_mule_charset): Delete coded-charset
1124         `chinese-big5-cdp'.
1125
1126         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1127         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1128         `CHARSET_ID_OFFSET - n' for private CCS.
1129         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1130         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1131         of `MIN_LEADING_BYTE'.
1132         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1133         `(CHARSET_ID_OFFSET - 97)'.
1134         (MIN_CHAR_BIG5_CDP): Deleted.
1135         (MAX_CHAR_BIG5_CDP): Deleted.
1136
1137 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138
1139         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1140
1141 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1142
1143         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1144         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1145         chartab.c].
1146
1147         * chartab.c (Vutf_2000_version): Moved to mule.c.
1148         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1149
1150 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1151
1152         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1153         when HAVE_CHISE_CLIENT is not defined.
1154
1155         * mule.c (vars_of_mule): Provide feature `chise' when
1156         HAVE_CHISE_CLIENT is defined.
1157
1158 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1159
1160         * config.h.in (UTF2000): Add comment.
1161         (HAVE_CHISE_CLIENT): New macro.
1162
1163 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1164
1165         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1166         CONSP.
1167         (Fput_char_attribute): Likewise.
1168         (char_attribute_system_db_file): Encode file-name of attribute.
1169         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1170         the initial value.
1171
1172 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1173
1174         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1175         (Fsave_charset_mapping_table): Use
1176         `char_attribute_system_db_file'.
1177         (load_char_decoding_entry_maybe): Likewise.
1178
1179         * chartab.h (Qsystem_char_id): New external variable.
1180         (char_attribute_system_db_file): New prototype.
1181
1182         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1183         (char_attribute_system_db_file): New function.
1184         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1185         (Freset_char_attribute_table): Likewise.
1186         (load_char_attribute_maybe): Likewise.
1187         (Fload_char_attribute_table): Likewise.
1188         (syms_of_chartab): Add new symbol `system-char-id'.
1189
1190 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1191
1192         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1193         `XCHARSET_GRAPHIC(ccs)'.
1194
1195 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1196
1197         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1198
1199 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1200
1201         * chartab.c (Q_ucs_variants): New variable.
1202         (syms_of_chartab): Add new symbol `->ucs-variants'.
1203         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1204         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1205         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1206
1207         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1208
1209         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1210         `HAVE_DATABASE' is defined.
1211         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1212         `HAVE_DATABASE' is defined.
1213
1214 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1215
1216         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1217         attribute-table.
1218         (Freset_char_attribute_table): New function.
1219         (syms_of_chartab): Add new builtin function
1220         `reset-char-attribute-table'.
1221
1222 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1223
1224         * chartab.c (load_char_attribute_maybe): Don't make directories.
1225
1226 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1227
1228         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1229
1230         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1231         for decoding-table.
1232
1233 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1234
1235         * mule-charset.c (Fsave_charset_mapping_table): Use
1236         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1237
1238         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1239         instead of `XCHARSET_CHARS'.
1240
1241 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1242
1243         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1244         (XCHARSET_BYTE_SIZE): Likewise.
1245
1246         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1247         mule-charset.c].
1248         (XCHARSET_BYTE_SIZE): Likewise.
1249
1250 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1251
1252         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1253         data-directory to store database.
1254         (Fsave_char_attribute_table): Likewise.
1255         (load_char_attribute_maybe): Likewise.
1256         (Fload_char_attribute_table): Likewise.
1257
1258 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1259
1260         * mule-charset.c (Fsave_charset_mapping_table): New function.
1261         (syms_of_mule_charset): Add new builtin function
1262         `save-charset-mapping-table'.
1263
1264 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1265
1266         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1267         (get_ccs_octet_table): New inline function.
1268         (put_ccs_octet_table): Likewise.
1269         (decoding_table_put_char): Use `get_ccs_octet_table' and
1270         `put_ccs_octet_table'.
1271         (decoding_table_remove_char): Use `decoding_table_put_char'.
1272         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1273
1274         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1275         into encoding_table.
1276         (make_charset): Use Qunbound instead Qnil as initial value of
1277         decoding_table.
1278
1279 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1280
1281         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1282         element is Qunloaded.
1283         (map_over_uint16_byte_table): Likewise.
1284         (map_over_byte_table): Likewise.
1285         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1286         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1287         database support, load encoding-table of the specified
1288         coded-charset if it is not loaded yet.
1289         (save_uint8_byte_table): New function of UTF-2000 with external
1290         database support.
1291         (save_uint16_byte_table): Likewise.
1292         (save_byte_table): Likewise.
1293         (Fput_char_attribute): Don't store value into external database
1294         even if the external database feature is supported in UTF-2000;
1295         set `attribute' as name of char-table if the external database
1296         feature is supported.
1297         (Fsave_char_attribute_table): New function in UTF-2000.
1298         (syms_of_chartab): Add new builtin function
1299         `save-char-attribute-table' in UTF-2000.
1300
1301 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1302
1303         * chartab.c (char_attribute_table_to_put): New variable in
1304         UTF-2000.
1305         (Qput_char_table_map_function): Likewise.
1306         (value_to_put): Likewise.
1307         (Fput_char_table_map_function): New function in UTF-2000.
1308         (put_char_table): Use `Fmap_char_attribute' for
1309         CHARTAB_RANGE_CHARSET in UTF-2000.
1310         (Fput_char_attribute): Store symbol instead of string in
1311         `XCHAR_TABLE_NAME (table)'.
1312         (load_char_attribute_maybe): Likewise.
1313         (syms_of_chartab): Add new symbol/function
1314         `put-char-table-map-function'.
1315
1316 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1317
1318         * database.h: Add new EXFUN for `Fmap_database'.
1319
1320         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1321         (syms_of_database): Likewise.
1322
1323         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1324         UTF-2000.
1325         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1326         (XCHAR_TABLE_UNLOADED): Likewise.
1327
1328         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1329         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1330         HAVE_DATABASE is defined.
1331         (char_attribute_table_to_load): New variable of UTF-2000 with
1332         external database support.
1333         (Qload_char_attribute_table_map_function): Likewise.
1334         (Fload_char_attribute_table_map_function): New function of
1335         UTF-2000 with external database support.
1336         (Fload_char_attribute_table): New function of UTF-2000.
1337         (Fmap_char_attribute): Call Fload_char_attribute_table if
1338         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1339         (syms_of_chartab): Add new symbol and function
1340         `load-char-attribute-table-map-function' in UTF-2000 with external
1341         database support; add new function `load-char-attribute-table' in
1342         UTF-2000.
1343
1344 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1345
1346         * chartab.h (load_char_attribute_maybe): New prototype for
1347         UTF-2000 with DATABASE support.
1348         (get_char_id_table): Use `load_char_attribute_maybe' if
1349         HAVE_DATABASE is defined.
1350
1351         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1352         with DATABASE support.
1353
1354 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1355
1356         * chartab.c (Fput_char_attribute): Use S-expression as key of
1357         external database.
1358
1359         * chartab.h (get_char_id_table): Use S-expression as key of
1360         external database.
1361
1362 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1363
1364         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1365         if an element is not loaded, load the corresponding attributes
1366         from an external database.
1367         (map_over_uint16_byte_table): Likewise.
1368         (map_over_byte_table): Likewise.
1369         (map_char_table): Modify for `map_over_uint8_byte_table',
1370         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1371         element is not loaded, load the corresponding attributes from an
1372         external database.
1373         (Fput_char_attribute): Change initial values to Qunloaded.
1374
1375         * chartab.h (get_char_id_table): If a character attribute is not
1376         loaded and the attribute value is not found in an external
1377         database, store Qunbound as the attribute value.
1378
1379 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1380
1381         * chartab.c (BT_UINT8_unloaded): New macro.
1382         (UINT8_VALUE_P): Accept Qunloaded.
1383         (UINT8_ENCODE): Likewise.
1384         (UINT8_DECODE): Likewise.
1385         (BT_UINT16_unloaded): New macro.
1386         (UINT16_VALUE_P): Accept Qunloaded.
1387         (UINT16_ENCODE): Likewise.
1388         (UINT16_DECODE): Likewise.
1389         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1390         BT_UINT16_unloaded.
1391         (mark_char_table): Mark `ct->name' in UTF-2000.
1392         (char_table_description): Add `name' in UTF-2000.
1393         (Fmake_char_table): Initialize `ct->name'.
1394         (Fcopy_char_table): Copy `ct->name'.
1395         (Fput_char_attribute): Store value into an external database if
1396         HAVE_DATABASE is defined.
1397
1398         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1399         UTF-2000.
1400         (CHAR_TABLE_NAME): New macro in UTF-2000.
1401         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1402         (get_char_id_table): Try to read an external database if Qunloaded
1403         is stored in a table.
1404
1405         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1406         Qunloaded.
1407
1408 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1409
1410         * database.h: Add EXFUN definitions for Fopen_database,
1411         Fput_database, Fget_database and Fclose_database.
1412
1413         * data.c (Qunloaded): New variable in UTF-2000.
1414
1415         * lisp.h (Qunloaded): New variable in UTF-2000.
1416
1417 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1418
1419         * mule-charset.c (put_char_ccs_code_point): Modify for
1420         `decoding_table_remove_char' and `decoding_table_put_char'.
1421         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1422
1423         * char-ucs.h (decoding_table_remove_char): Change arguments to
1424         hide decoding_table vector.
1425         (decoding_table_put_char): Likewise.
1426
1427 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1428
1429         * mule-charset.c (decoding_table_remove_char): Moved to
1430         char-ucs.h.
1431         (decoding_table_put_char): Likewise.
1432
1433         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1434         from mule-charset.c].
1435         (decoding_table_remove_char): New inline function [moved from
1436         mule-charset.c].
1437         (decoding_table_put_char): Likewise.
1438
1439 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1440
1441         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1442         extension.
1443
1444 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1445
1446         * mule-charset.c (decode_builtin_char): Support mother charsets.
1447
1448 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1449
1450         * mule-charset.c (Q94x94x60): New variable.
1451         (charset_code_point): Support conversion `94x94x60'.
1452         (Fmake_charset): Likewise.
1453         (syms_of_mule_charset): Add new symbol `94x94x60'.
1454
1455         * char-ucs.h (CONVERSION_94x94x60): New macro.
1456
1457 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1458
1459         * mule-charset.c (charset_code_point): Unify code about
1460         `code-offset'.
1461
1462 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1463
1464         * mule-charset.c (charset_code_point): Merge code about builtin
1465         characters into code about mother charsets; don't use
1466         `range_charset_code_point'.
1467         (range_charset_code_point): Deleted.
1468
1469 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1470
1471         * mule-charset.c (Qcode_offset): New variable.
1472         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1473         `max-code'; accept new property `code-offset'.
1474         (syms_of_mule_charset): Add new symbol `code-offset'.
1475
1476 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477
1478         * mule-charset.c (range_charset_code_point): Fixed.
1479
1480 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1481
1482         * mule-charset.c (decode_builtin_char): Change semantics of
1483         code-offset of coded-charset.
1484         (charset_code_point): Likewise.
1485         (range_charset_code_point): Likewise.
1486         (complex_vars_of_mule_charset): Modify for the change.
1487
1488 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1489
1490         * mule-charset.c (Fencode_char): Reverse arguments.
1491
1492         * mule-charset.c (charset_code_point): Fixed.
1493
1494 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1495
1496         * mule-charset.c (Vcharset_mojikyo): Deleted.
1497         (Vcharset_mojikyo_2022_1): Deleted.
1498         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1499         (Qmin_code): New variable in UTF-2000.
1500         (Qmax_code): Likewise.
1501         (Qmother): Likewise.
1502         (Qconversion): Likewise.
1503         (Q94x60): Likewise.
1504         (Qmojikyo): Deleted.
1505         (Qmojikyo_2022_1): Deleted.
1506         (Qmojikyo_pj_{1..22}): Deleted.
1507         (mark_charset): Mark `cs->mother'.
1508         (charset_description): Add description for `mother'.
1509         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1510         new arguments `mother' and `conversion'; use
1511         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1512         (charset_code_point): Moved from char-ucs.h; support `mother'
1513         charset feature.
1514         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1515         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1516         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1517         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1518         allow 2 as the value of `graphic' in UTF-2000; add new properties
1519         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1520         require `final' in UTF-2000; modify for `make_charset'.
1521         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1522         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1523         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1524         (Fencode_char): New function.
1525         (syms_of_mule_charset): Add new builtin function `encode-char' in
1526         UTF-2000; add new symbols `min-code', `max-code', `mother',
1527         `conversion' and `94x60'; delete symbols `mojikyo',
1528         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1529         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1530         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1531         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1532
1533         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1534         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1535
1536         * char-ucs.h (Vcharset_mojikyo): Deleted.
1537         (Vcharset_mojikyo_2022_1): Deleted.
1538         (LEADING_BYTE_MOJIKYO): Deleted.
1539         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1540         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1541         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1542         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1543         add new member `mother'; add new member `conversion'.
1544         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1545         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1546         (CHARSET_MOTHER): New macro.
1547         (CHARSET_CONVERSION): New macro.
1548         (CONVERSION_IDENTICAL): New macro.
1549         (CONVERSION_94x60): New macro.
1550         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1551         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1552         (XCHARSET_MOTHER): New macro.
1553         (XCHARSET_CONVERSION): New macro.
1554         (MIN_CHAR_MOJIKYO): Deleted.
1555         (MAX_CHAR_MOJIKYO): Deleted.
1556         (DECODE_MOJIKYO_2022): Deleted.
1557         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1558         (charset_code_point): Changed to non-inline function.
1559         (encode_char_1): Use `charset_code_point'.
1560         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1561
1562 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1563
1564         * lread.c (read_compiled_function): Fix prototype.
1565         (read_vector): Likewise.
1566
1567 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1568
1569         * lrecord.h (struct lrecord_header): Delete `older'.
1570         (set_lheader_implementation): Delete code for `older'.
1571         (set_lheader_older_implementation): Deleted.
1572         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1573         (OLDER_RECORD_P): Deleted.
1574         (OLDER_RECORD_HEADER_P): Deleted.
1575         (alloc_older_lcrecord): Deleted.
1576         (alloc_older_lcrecord_type): Deleted.
1577
1578         * alloc.c (all_older_lcrecords): Deleted.
1579         (alloc_older_lcrecord): Deleted.
1580         (disksave_object_finalization_1): Delete code for older objects.
1581         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1582         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1583
1584 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1585
1586         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1587         instead of `make_older_vector'.
1588         (put_char_ccs_code_point): Likewise.
1589         (mark_charset): Mark `cs->decoding_table'.
1590         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1591
1592         * lisp.h (make_older_vector): Deleted.
1593         (make_vector_newer): Deleted.
1594
1595         * config.h.in (HAVE_GGC): Deleted.
1596
1597         * alloc.c (make_older_vector): Deleted.
1598         (make_vector_newer_1): Deleted.
1599         (make_vector_newer): Deleted.
1600
1601 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1602
1603         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1604         (Qideograph_daikanwa_2): New variable.
1605         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1606         (complex_vars_of_mule_charset): Add new coded-charset
1607         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1608         `LEADING_BYTE_DAIKANWA'.
1609
1610         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1611         (LEADING_BYTE_DAIKANWA_1): New macro.
1612         (LEADING_BYTE_DAIKANWA_2): New macro.
1613         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1614
1615 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1616
1617         * mule-charset.c (complex_vars_of_mule_charset): Change
1618         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1619         the second revised version.
1620
1621 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1622
1623         * mule-charset.c (Vcharset_ucs_smp): New variable.
1624         (Vcharset_ucs_sip): New variable.
1625         (Qucs_smp): New variable.
1626         (Qucs_sip): New variable.
1627         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1628         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1629         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1630         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1631         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1632         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1633
1634         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1635         (LEADING_BYTE_UCS_SIP): New macro.
1636         (MIN_CHAR_SMP): New macro.
1637         (MAX_CHAR_SMP): New macro.
1638         (MIN_CHAR_SIP): New macro.
1639         (MAX_CHAR_SIP): New macro.
1640
1641 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1642
1643         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1644         utf-2000.
1645
1646 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1647
1648         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1649         value; don't store value into `encoding_table' of `Lisp_Charset'.
1650         (mark_charset): `encoding_table' was deleted.
1651         (charset_description): Likewise.
1652         (make_charset): Likewise.
1653         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1654         `put_char_ccs_code_point'.
1655
1656         * chartab.h (Fput_char_attribute): New EXFUN.
1657
1658         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1659         is unified with normal symbol space.
1660         (Fget_char_attribute): Likewise.
1661         (Fput_char_attribute): Likewise; behavior of
1662         `put_char_ccs_code_point' is changed.
1663
1664         * char-ucs.h: Include "elhash.h".
1665         (Vchar_attribute_hash_table): New external variable.
1666         (struct Lisp_Charset): Delete `encoding_table'.
1667         (CHARSET_ENCODING_TABLE): New implementation; refer
1668         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1669         `Lisp_Charset'.
1670
1671 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1672
1673         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1674         (cs) == 0.
1675
1676 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1677
1678         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1679         `chinese-big5'.
1680
1681 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1682
1683         * chartab.c (uint8_byte_table_description): New constant.
1684         (uint8-byte-table): Use `uint8_byte_table_description'.
1685         (uint16_byte_table_description): New constant.
1686         (uint16-byte-table): Use `uint16_byte_table_description'.
1687
1688 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1689
1690         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1691         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1692
1693 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1694
1695         * mule-charset.c (Vcharset_ucs_ks): New variable.
1696         (Qucs_ks): New variable.
1697         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1698         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1699
1700         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1701
1702 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1703
1704         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1705         (Fdecode_char): Likewise.
1706
1707         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1708         chartab.h.
1709         (Fdefine_char): Modify for Fdecode_char.
1710         (Ffind_char): Likewise.
1711
1712         * mule-charset.c (Fdecode_char): Add new optional argument
1713         `defined-only'.
1714         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1715
1716 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1717
1718         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1719         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1720         (allocate_coding_system): Initialize initial-charsets of
1721         CODESYS_BIG5 in XEmacs UTF-2000.
1722         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1723         CODESYS_BIG5 in XEmacs UTF-2000.
1724         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1725         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1726
1727         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1728         variables.
1729         (Qideograph_hanziku_{1 .. 12}): Likewise.
1730         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1731         .. 12}'.
1732         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1733         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1734         `ideograph-hanziku-{1 .. 12}'.
1735
1736         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1737         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1738         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1739         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1740         (DECODE_DEFINED_CHAR): New inline function.
1741         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1742
1743 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1744
1745         * mule-charset.c (Vcharset_china3_jef): Renamed from
1746         `Vcharset_japanese_jef_china3'.
1747         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1748         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1749         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1750         (syms_of_mule_charset): Rename `china3-jef' from
1751         `japanese-jef-china3'.
1752         (complex_vars_of_mule_charset): Likewise; rename
1753         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1754
1755         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1756         `LEADING_BYTE_JEF_CHINA3'.
1757         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1758         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1759
1760 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1761
1762         * mule-charset.c (encode_builtin_char_1): Comment out special code
1763         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1764
1765         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1766         (MAX_CHAR_MOJIKYO_0): Comment out.
1767         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1768         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1769         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1770         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1771
1772 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1773
1774         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1775         (Qideograph_cbeta): New variable.
1776         (encode_builtin_char_1): Comment out special code for
1777         coded-charset `mojikyo' and `japanese-jef-china3'.
1778         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1779         (complex_vars_of_mule_charset): Add new coded-charset
1780         `ideograph-cbeta'.
1781
1782         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1783         (MIN_CHAR_CBETA): New macro.
1784         (MAX_CHAR_CBETA): New macro.
1785
1786 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1787
1788         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1789         (LEADING_BYTE_JEF_CHINA3): New macro.
1790         (MIN_CHAR_JEF_CHINA3): New macro.
1791         (MAX_CHAR_JEF_CHINA3): Likewise.
1792         (DECODE_CHAR): Fixed.
1793
1794 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1795
1796         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1797         (Qjapanese_jef_china3): New variable.
1798         (encode_builtin_char_1): Support `japanese-jef-china3'.
1799         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1800         (complex_vars_of_mule_charset): Add new coded-charset
1801         `japanese-jef-china3'.
1802
1803 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1804
1805         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1806         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1807         94^4, 96^3, 96^4, 128^n and 256^n set.
1808         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1809         (map_char_table): Likewise.
1810
1811 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1812
1813         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1814         UTF-2000.
1815
1816 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1817
1818         * chartab.h (get_char_id_table): New inline function.
1819
1820         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1821         function.
1822
1823 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1824
1825         * chartab.h (decode_char_table_range): New prototype in XEmacs
1826         UTF-2000.
1827         (put_char_id_table): New inline function in XEmacs UTF-2000.
1828
1829         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1830         function.
1831         (decode_char_table_range): Delete static declaration in XEmacs
1832         UTF-2000.
1833
1834 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1835
1836         * chartab.c (put_char_id_table): Use `put_char_table'.
1837
1838 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1839
1840         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1841         (map_over_uint16_byte_table): Likewise.
1842         (map_over_byte_table): Likewise.
1843         (map_char_table): Modify for `map_over_uint8_byte_table',
1844         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1845         UTF-2000.
1846
1847 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1848
1849         * chartab.c (struct map_char_table_for_charset_arg): New
1850         structure.
1851         (map_char_table_for_charset_fun): New function.
1852         (map_char_table): Use `map_char_table' for encoding_table of
1853         `range->charset'.
1854
1855 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1856
1857         * chartab.c (map_char_table): Check a character is found in
1858         range->charset instead of non default value is defined in
1859         char-table when range is CHARTAB_RANGE_ROW.
1860
1861 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1862
1863         * chartab.c (map_char_id_table): Deleted.
1864         (Fmap_char_attribute): Use `map_char_table' instead of
1865         `map_char_id_table'.
1866
1867 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1868
1869         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1870         UTF-2000.
1871         (update_syntax_table): Deleted in XEmacs UTF-2000.
1872
1873         * syntax.c (find_defun_start): Use `syntax_table' instead of
1874         `mirror_syntax_table' in XEmacs UTF-2000.
1875         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1876         UTF-2000.
1877         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1878         XEmacs UTF-2000.
1879         (Fmatching_paren): Likewise.
1880         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1881         in XEmacs UTF-2000.
1882         (find_start_of_comment): Likewise.
1883         (find_end_of_comment): Likewise.
1884         (Fforward_comment): Likewise.
1885         (scan_lists): Likewise.
1886         (char_quoted): Likewise.
1887         (Fbackward_prefix_chars): Likewise.
1888         (scan_sexps_forward): Likewise.
1889         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1890         (update_syntax_table): Likewise.
1891
1892         * search.c (skip_chars): Use `syntax_table' instead of
1893         `mirror_syntax_table' in XEmacs UTF-2000.
1894         (wordify): Likewise.
1895         (Freplace_match): Likewise.
1896
1897         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1898         `mirror_syntax_table' in XEmacs UTF-2000.
1899         (WORDCHAR_P_UNSAFE): Likewise.
1900         (re_match_2_internal): Likewise.
1901
1902         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1903         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1904
1905         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1906         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1907
1908         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1909         XEmacs UTF-2000.
1910
1911         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1912         UTF-2000.
1913         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1914         (char_table_description): Delete `mirror_table' in XEmacs
1915         UTF-2000.
1916         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1917         UTF-2000.
1918         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1919         (Fcopy_char_table): Likewise.
1920         (put_char_table): Don't call `update_syntax_table' in XEmacs
1921         UTF-2000.
1922
1923         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1924         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1925         (casify_region_internal): Likewise.
1926
1927         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1928
1929         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1930         `mirror_syntax_table' in XEmacs UTF-2000.
1931
1932         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1933         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1934         (Fexpand_abbrev): Likewise.
1935
1936 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1937
1938         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1939
1940 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1941
1942         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1943         (map_over_uint16_byte_table): Likewise.
1944         (map_over_byte_table): Likewise.
1945         (get_char_id_table): Refer `cit->default_value'.
1946         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1947         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1948         of character-id ranges.
1949         (mark_char_table): Mark `ct->default_value'.
1950         (char_table_description): Add `default_value'.
1951         (fill_char_table): Use `default_value'.
1952         (decode_char_table_range): Decode `nil' as
1953         `CHARTAB_RANGE_DEFAULT'.
1954         (get_char_id_table): Refer `cit->default_value'.
1955         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1956         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1957         temporary hack; check value of char-table is bound or not.
1958         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1959
1960         * chartab.h (struct Lisp_Char_Table): Add new member
1961         `default_value' in XEmacs UTF-2000.
1962         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1963         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1964         UTF-2000.
1965
1966 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1967
1968         * chartab.h (Lisp_Char_ID_Table): Deleted.
1969
1970         * chartab.c (char_table_description): Fix typo.
1971         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1972         `Lisp_Char_ID_Table'.
1973
1974 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1975
1976         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1977         `CHAR_ID_TABLE_P'.
1978
1979         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1980         `CHAR_ID_TABLE_P'.
1981
1982         * chartab.h (XCHAR_ID_TABLE): Deleted.
1983         (XSETCHAR_ID_TABLE): Deleted.
1984         (CHAR_ID_TABLE_P): Deleted.
1985
1986         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1987         `CHAR_ID_TABLE_P'.
1988         (Fget_composite_char): Likewise.
1989         (put_char_table): Likewise.
1990         (add_char_attribute_alist_mapper): Fixed.
1991         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1992         `CHAR_ID_TABLE_P'.
1993         (Fget_char_attribute): Likewise.
1994         (Fget_char_attribute): Likewise.
1995         (Fmap_char_attribute): Likewise.
1996
1997         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1998         `CHAR_ID_TABLE_P'.
1999         (encode_char_1): Likewise.
2000
2001 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2002
2003         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2004         `XCHAR_ID_TABLE'.
2005
2006         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2007         instead of `XCHAR_ID_TABLE'.
2008         (remove_char_ccs): Likewise.
2009
2010         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2011         `XCHAR_ID_TABLE'.
2012         (Fget_composite_char): Likewise.
2013         (Fchar_variants): Likewise.
2014         (put_char_table): Likewise.
2015         (add_char_attribute_alist_mapper): Likewise.
2016         (Fchar_attribute_alist): Likewise.
2017         (Fget_char_attribute): Likewise.
2018         (Fput_char_attribute): Likewise.
2019         (Fmap_char_attribute): Likewise.
2020         (Fmap_char_attribute): Likewise.
2021
2022         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2023         `XCHAR_ID_TABLE'.
2024         (encode_char_1): Likewise.
2025
2026 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2027
2028         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2029         `Lisp_Char_ID_Table'.
2030         (mark_char_id_table): Deleted.
2031         (print_char_id_table): Likewise.
2032         (char_id_table_equal): Likewise.
2033         (char_id_table_hash): Likewise.
2034         (char_id_table_description): Likewise.
2035         (char_id_table): Likewise.
2036         (make_char_id_table): Use `Fmake_char_table' and
2037         `fill_char_table'.
2038         (get_char_id_table): Use `Lisp_Char_Table' instead of
2039         `Lisp_Char_ID_Table'.
2040         (put_char_id_table): Likewise.
2041         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2042         `XCHAR_ID_TABLE'.
2043         (Fremove_char_attribute): Likewise.
2044         (syms_of_chartab): Don't define type `char-id-table'.
2045
2046         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2047         (char_id_table): Likewise.
2048         (GC_CHAR_ID_TABLE_P): Likewise.
2049         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2050         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2051         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2052         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2053         (get_char_id_table): Use `Lisp_Char_Table' instead of
2054         `Lisp_Char_ID_Table'.
2055         (put_char_id_table_0): Likewise.
2056         (put_char_id_table): Likewise.
2057
2058 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2059
2060         * chartab.h: Lisp_Byte_Table related codes are moved from
2061         chartab.h.
2062
2063         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2064
2065 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2066
2067         * chartab.h: Don't include "chartab.h".
2068         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2069         (Lisp_Char_ID_Table): Likewise.
2070         (char_id_table): Likewise.
2071         (XCHAR_ID_TABLE): Likewise.
2072         (XSETCHAR_ID_TABLE): Likewise.
2073         (CHAR_ID_TABLE_P): Likewise.
2074         (GC_CHAR_ID_TABLE_P): Likewise.
2075         (get_char_id_table): Likewise.
2076
2077         * char-ucs.h: Include "chartab.h".
2078         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2079         (Lisp_Char_ID_Table): Likewise.
2080         (char_id_table): Likewise.
2081         (XCHAR_ID_TABLE): Likewise.
2082         (XSETCHAR_ID_TABLE): Likewise.
2083         (CHAR_ID_TABLE_P): Likewise.
2084         (GC_CHAR_ID_TABLE_P): Likewise.
2085         (get_char_id_table): Likewise.
2086
2087 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2088
2089         * chartab.c (copy_uint8_byte_table): New function.
2090         (copy_uint16_byte_table): New function.
2091         (copy_byte_table): New function.
2092         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2093         characters to call.
2094         (map_over_uint16_byte_table): Likewise.
2095         (map_over_byte_table): Likewise.
2096         (get_byte_table): Move prototype to chartab.h.
2097         (put_byte_table): Likewise.
2098         (put_char_id_table_0): Moved to chartab.h.
2099         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2100         (char_table_entry_equal): Likewise.
2101         (char_table_entry_hash): Likewise.
2102         (char_table_entry_description): Likewise.
2103         (char_table_entry): Likewise.
2104         (make_char_table_entry): Likewise.
2105         (copy_char_table_entry): Likewise.
2106         (get_non_ascii_char_table_value): Likewise.
2107         (map_over_charset_ascii): Likewise.
2108         (map_over_charset_control_1): Likewise.
2109         (map_over_charset_row): Likewise.
2110         (map_over_other_charset): Likewise.
2111         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2112         (print_char_table): Likewise.
2113         (char_table_equal): Likewise.
2114         (char_table_hash): Likewise.
2115         (char_table_description): Likewise.
2116         (fill_char_table): Likewise.
2117         (Fcopy_char_table): Likewise.
2118         (get_char_table): Likewise.
2119         (Fget_range_char_table): Likewise.
2120         (put_char_table): Likewise.
2121         (map_char_table): Likewise.
2122         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2123         UTF-2000.
2124
2125 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2126
2127         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2128         `Vauto_fill_chars' in XEmacs UTF-2000.
2129
2130         * chartab.h (get_byte_table): New prototype [moved from
2131         chartab.c].
2132         (put_byte_table): Likewise [moved from chartab.c].
2133         (put_char_id_table_0): New inline function [moved from chartab.c].
2134         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2135         (Lisp_Char_Table_Entry): Likewise.
2136         (char_table_entry): Likewise.
2137         (XCHAR_TABLE_ENTRY): Likewise.
2138         (XSETCHAR_TABLE_ENTRY): Likewise.
2139         (CHAR_TABLE_ENTRYP): Likewise.
2140         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2141         (NUM_ASCII_CHARS): Likewise.
2142         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2143         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2144
2145 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2146
2147         * chartab.c (get_char_id_table): Change interface.
2148         (put_char_id_table_0): New function.
2149         (put_char_id_table): Change interface; new implementation.
2150         (Fget_composite_char): Modify for interface change of
2151         `get_char_id_table'.
2152         (Fchar_variants): Likewise.
2153         (add_char_attribute_alist_mapper): Likewise.
2154         (Fchar_attribute_alist): Likewise.
2155         (Fget_char_attribute): Likewise.
2156         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2157         as same as character as the first argument like `put-char-table';
2158         modify for interface change of `put_char_id_table'.
2159         (Fremove_char_attribute): Modify for interface change of
2160         `put_char_id_table'.
2161
2162 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2163
2164         * text-coding.c: Sync up with XEmacs 21.2.41.
2165         (COMPOSE_ADD_CHAR): Modify for interface change of
2166         `get_char_id_table'.
2167
2168         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2169         change of `put_char_id_table'.
2170         (remove_char_ccs): Likewise.
2171
2172         * chartab.h (put_char_id_table): Change interface.
2173
2174         * char-ucs.h (get_char_id_table): Change interface.
2175         (charset_code_point): Modify for interface change of
2176         `get_char_id_table'.
2177         (encode_char_1): Likewise.
2178
2179 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2180
2181         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2182         argument `ccs'.
2183         (map_over_uint16_byte_table): Likewise.
2184         (map_over_byte_table): Likewise.
2185         (map_char_id_table): Add new argument `range' like
2186         `map_char_table'.
2187         (Fmap_char_attribute): Add new argument `range' like
2188         `Fmap_char_table'.
2189
2190 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2191
2192         * chartab.c (map_over_uint8_byte_table): Change interface of
2193         mapping function to use struct chartab_range instead of Emchar.
2194         (map_over_uint16_byte_table): Likewise.
2195         (map_over_byte_table): Likewise.
2196         (map_char_id_table): Likewise.
2197         (struct slow_map_char_id_table_arg): Deleted.
2198         (slow_map_char_id_table_fun): Deleted.
2199         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2200         function `slow_map_char_table_fun' instead of struct
2201         `slow_map_char_id_table_arg' and function
2202         `slow_map_char_id_table_fun'.
2203
2204 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2205
2206         * mule-charset.c: Move char-it-table related codes to chartab.c.
2207         (Vutf_2000_version): Moved to chartab.c.
2208         (Fdefine_char): Likewise.
2209         (Ffind_char): Likewise.
2210         (syms_of_mule_charset): Move types `uint8-byte-table',
2211         `uint16-byte-table', `byte-table' and `char-id-table' to
2212         chartab.c; move functions `char_attribute_list,
2213         `find_char_attribute_table, `char_attribute_alist,
2214         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2215         `map_char_attribute, `define_char, `find_char, `char_variants and
2216         `get_composite_char to chartab.c; move symbols `=>ucs',
2217         `->decomposition', `compat', `isolated', `initial', `medial',
2218         `final', `vertical', `noBreak', `fraction', `super', `sub',
2219         `circle', `square', `wide', `narrow', `small' and `font' to
2220         chartab.c.
2221         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2222         setting codes for `Vcharacter_composition_table' and
2223         `Vcharacter_variant_table' to chartab.c.
2224         (complex_vars_of_mule_charset): Move setting code for
2225         `Vchar_attribute_hash_table' to chartab.c.
2226
2227         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2228         (make_char_id_table): New prototype.
2229         (put_char_id_table): Likewise.
2230         (Fget_char_attribute): Likewise.
2231
2232         * chartab.c: Move char-id-table related code from mule-charset.c.
2233         (Vutf_2000_version): Moved from mule-charset.c.
2234
2235         * char-ucs.h (Qucs): New external variable.
2236         (put_char_ccs_code_point): New prototype.
2237         (remove_char_ccs): Likewise.
2238
2239 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2240
2241         * mule-charset.c (Vcharset_ucs_jis): New variable.
2242         (Qucs_jis): Likewise.
2243         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2244         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2245
2246         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2247
2248 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2249
2250         * mule-charset.c (map_over_uint8_byte_table): New function.
2251         (map_over_uint16_byte_table): Likewise.
2252         (map_over_byte_table): Likewise.
2253         (map_char_id_table): Likewise.
2254         (slow_map_char_id_table_fun): Likewise.
2255         (Fmap_char_attribute): Likewise.
2256         (syms_of_mule_charset): Add new function `map-char-attribute'.
2257
2258 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2259
2260         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2261         (syms_of_mule_charset): Add new function `find-char'.
2262
2263 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2264
2265         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2266         XEmacs UTF-2000.
2267         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2268         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2269         XEmacs UTF-2000.
2270         (complex_vars_of_mule_charset): Add new coded-charset
2271         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2272         `ideograph-gt-pj-*'.
2273
2274         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2275
2276 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2277
2278         * mule-charset.c (encode_builtin_char_1): Purge codes about
2279         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2280         {MIN|MAX}_CHAR_HEBREW.
2281         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2282         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2283
2284         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2285         (MAX_CHAR_GREEK): Purged.
2286         (MIN_CHAR_CYRILLIC): Purged.
2287         (MAX_CHAR_CYRILLIC): Purged.
2288         (MIN_CHAR_HEBREW): Commented out.
2289         (MAX_CHAR_HEBREW): Likewise.
2290
2291 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2292
2293         * mule-charset.c (Qto_ucs): New variable.
2294         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2295         (Fdefine_char): Likewise.
2296         (syms_of_mule_charset): Add new symbol `=>ucs'.
2297
2298 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2299
2300         * mule-charset.c (Fdecode_char): Fixed.
2301
2302 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2303
2304         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2305         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2306         "tcvn5712-1".
2307
2308 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2309
2310         * mule-charset.c (Vcharset_ucs_big5): New variable.
2311         (Qucs_big5): Likewise.
2312         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2313         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2314
2315         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2316
2317 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2318
2319         * mule-charset.c (decode_builtin_char): Check Big5 code range
2320         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2321
2322 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2323
2324         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2325         (Qchinese_gb12345): Likewise.
2326         (Fdecode_builtin_char): Fixed.
2327         (syms_of_mule_charset): Add `chinese-gb12345'.
2328         (complex_vars_of_mule_charset): Add coded-charset
2329         `chinese-gb12345'.
2330
2331         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2332         (LEADING_BYTE_CHINESE_GB12345): New macro.
2333
2334 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2335
2336         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2337         and `latin-viscii-upper' for `latin-viscii'.
2338
2339 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2340
2341         * mule-charset.c (Fdecode_builtin_char): Comment out
2342         regularization code for ISO-IR GR representation.
2343
2344 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2345
2346         * mule-charset.c (decode_builtin_char): New function; renamed from
2347         `make_builtin_char'; return -1 instead of signal.
2348         (Fdecode_builtin_char): Use `decode_builtin_char'.
2349
2350         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2351         `make_builtin_char'.
2352         (DECODE_CHAR): Use `decode_builtin_char' instead of
2353         `make_builtin_char'; use mapping table of `chinese-big5' for
2354         `chinese-big5-{1,2}'.
2355
2356 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2357
2358         * text-coding.c (char_encode_big5): New function.
2359         (char_finish_big5): Likewise.
2360         (reset_encoding_stream): Use `char_encode_big5' and
2361         `char_finish_big5' for CODESYS_BIG5.
2362         (mule_encode): Don't use `encode_coding_big5'.
2363         (encode_coding_big5): Deleted.
2364
2365 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2366
2367         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2368         0x81- in XEmacs UTF-2000.
2369         (detect_coding_big5): Likewise.
2370
2371 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2372
2373         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2374         generate character-id if the CCS property does not have
2375         corresponding predefined character.
2376         (make_builtin_char): Return -1 if corresponding predefined
2377         character is not found.
2378         (Fdecode_char): Return nil if corresponding character is not
2379         found.
2380         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2381         don't map to builtin ucs space.
2382
2383 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2384
2385         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2386         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2387
2388 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2389
2390         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2391         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2392         (Qideograph_gt): Likewise.
2393         (Qideograph_gt_pj_{1..11}): Likewise.
2394         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2395         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2396         `ideograph-gt-pj-11'.
2397         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2398         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2399         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2400
2401         * char-ucs.h (LEADING_BYTE_GT): New macro.
2402         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2403         (MIN_CHAR_GT): Likewise.
2404         (MAX_CHAR_GT): Likewise.
2405
2406 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2407
2408         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2409         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2410
2411         * doprnt.c (unsigned_int_converters): Add `c'.
2412         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2413
2414         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2415         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2416         `MIN_CHAR_MOJIKYO'.
2417         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2418         (MAX_CHAR_MOJIKYO_0): New macro.
2419         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2420
2421 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2422
2423         * mule-charset.c (Fdefine_char): Delete cemented out code.
2424         (encode_builtin_char_1): Modify for new allocation of builtin
2425         Mojikyo characters.
2426
2427         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2428
2429 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2430
2431         * mule-charset.c (Vcharset_ucs_cns): New variable.
2432         (Qucs_cns): New variable.
2433         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2434         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2435
2436 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2437
2438         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2439
2440 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2441
2442         * search.c (search_buffer): Make `charset_base_code' as
2443         character-id >> 6 to eliminate the corresponding last byte in
2444         UTF-8 representation [I'm not sure it is right thing].
2445         (boyer_moore): Likewise.
2446
2447 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2448
2449         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2450         representation in MULE.
2451
2452 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2453
2454         * text-coding.c (Fmake_coding_system): Use
2455         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2456         `EXTERNAL_PROPERTY_LIST_LOOP'.
2457
2458 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2459
2460         * text-coding.c (decode_output_utf8_partial_char): New function.
2461         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2462
2463 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2464
2465         * text-coding.c (decode_coding_utf8): Output original byte
2466         sequence if it is broken; change order of conditions.
2467
2468         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2469         of conditions.
2470
2471         * mb-multibyte.h (BYTE_ASCII_P):
2472         Use bit ops for char-signedness safety.
2473         (BYTE_C0_P): Use bit ops for char-signedness safety.
2474         (BYTE_C1_P): Use bit ops for char-signedness safety.
2475
2476         * character.h: (XCHAR_OR_CHAR_INT):
2477         Always use inline function.
2478         Remove redundant type checking assert() - XINT will abort quite
2479         nicely.
2480
2481 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2482
2483         * text-coding.c: (Fencode_shift_jis_char):
2484         (Fencode_big5_char):
2485         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2486         Replace 0 with '\0' when working with bytes.
2487         Replace initial "(" with "\(" in docstrings.
2488
2489         (Fmake_coding_system):
2490         When type is ccl and value is vector, register it with a proper
2491         symbol.  And checks whether the given ccl program is valid.
2492         (mule_decode): When calling ccl_driver, if src indicates
2493         NULL pointer, set an empty string instead.
2494         (mule_encode): Likewise.
2495
2496         (detect_eol_type):
2497         (detect_coding_sjis):
2498         (decode_coding_sjis):
2499         (detect_coding_big5):
2500         (decode_coding_big5):
2501         (detect_coding_ucs4):
2502         (decode_coding_ucs4):
2503         (detect_coding_utf8):
2504         (decode_coding_utf8):
2505         (detect_coding_iso2022):
2506         (decode_coding_iso2022):
2507         (decode_coding_no_conversion):
2508         (mule_decode):
2509         Make all detecting and decoding functions take an Extbyte * arg.
2510         (text_encode_generic):
2511         (encode_coding_big5):
2512         (encode_coding_no_conversion):
2513         (mule_encode):
2514         Make all encoding functions take a Bufbyte * arg.
2515         Use size_t instead of unsigned int for memory sizes.
2516         Only cast to unsigned char whenever dereferencing Extbyte *.
2517
2518         (struct lrecord_description fcd_description_1): Use countof.
2519         (complex_vars_of_file_coding):
2520         Use countof instead of sizeof.
2521         Use CHECK_NATNUM instead of CHECK_INT.
2522
2523 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2524
2525         * mule-charset.c (Fget_char_attribute): Add new optional argument
2526         `default-value'.
2527         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2528         (remove_char_ccs): Likewise.
2529
2530 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2531
2532         * text-coding.c (char_encode_shift_jis): New implementation in
2533         UTF-2000.
2534         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2535         ...)'.
2536
2537         * mule-charset.c (Vcharset_chinese_big5): New variable in
2538         UTF-2000.
2539         (Qchinese_big5): New variable in UTF-2000.
2540         (BIG5_SAME_ROW): New macro in UTF-2000.
2541         (make_builtin_char): Use builtin characters of
2542         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2543         characters of `Vcharset_chinese_big5'.
2544         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2545         (complex_vars_of_mule_charset): Add new coded-charset
2546         `chinese-big5' in UTF-2000.
2547
2548         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2549         (Vcharset_chinese_big5): New external variable declaration.
2550         (Vcharset_japanese_jisx0208_1990): Likewise.
2551
2552 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2553
2554         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2555         function.
2556         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2557
2558 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2559
2560         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2561         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2562         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2563         `mojikyo-pj-*'.
2564
2565 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2566
2567         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2568
2569 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2570
2571         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2572         to 0.17.
2573
2574 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2575
2576         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2577         for `CHARSET_BY_ATTRIBUTES'.
2578         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2579         `CHARSET_BY_ATTRIBUTES'.
2580
2581         * text-coding.c (struct decoding_stream): Rename member `CH' to
2582         `CPOS'.
2583         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2584         (decode_coding_sjis): Likewise.
2585         (decode_coding_big5): Likewise.
2586         (decode_coding_ucs4): Likewise.
2587         (decode_coding_utf8): Likewise.
2588         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2589         `CHARSET_BY_ATTRIBUTES'.
2590         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2591         `str->counter'; decode 3, 4 bytes sets.
2592         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2593         sets.
2594         (decode_coding_no_conversion): Use `str->cpos' instead of
2595         `str->ch'.
2596
2597         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2598         (Qmojikyo_2022_1): New variable.
2599         (make_charset): Don't use `CHARSET_TYPE_*'.
2600         (range_charset_code_point): Support coded-charset
2601         `mojikyo-2022-1'.
2602         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2603         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2604         `CHARSET_BY_ATTRIBUTES'.
2605         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2606         `CHARSET_BY_ATTRIBUTES'.
2607         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2608         (complex_vars_of_mule_charset): Add new coded-charset
2609         `mojikyo-2022-1'.
2610
2611         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2612         interface; changed to inline function.
2613
2614         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2615         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2616         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2617         (CHARSET_TYPE_94): Deleted.
2618         (CHARSET_TYPE_94X94): Deleted.
2619         (CHARSET_TYPE_96): Deleted.
2620         (CHARSET_TYPE_96X96): Deleted.
2621         (CHARSET_TYPE_128): Deleted.
2622         (CHARSET_TYPE_128X128): Deleted.
2623         (CHARSET_TYPE_256): Deleted.
2624         (CHARSET_TYPE_256X256): Deleted.
2625         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2626         to inline function.
2627         (DECODE_MOJIKYO_2022): New inline function.
2628         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2629         `Vcharset_mojikyo_2022_1'.
2630
2631 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632
2633         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2634         instead of `EQ'.
2635         (put_byte_table): Likewise.
2636         (char_id_table_equal): Use `get_byte_table' [new implementation].
2637
2638 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2639
2640         * mule-charset.c: Include <limits.h> in UTF-2000.
2641         (BT_UINT8_MIN): New macro in UTF-2000.
2642         (BT_UINT8_MAX): New macro in UTF-2000.
2643         (BT_UINT8_t): New macro in UTF-2000.
2644         (BT_UINT8_nil): New macro in UTF-2000.
2645         (BT_UINT8_unbound): New macro in UTF-2000.
2646         (INT_UINT8_P): New inline function in UTF-2000.
2647         (UINT8_VALUE_P): New inline function in UTF-2000.
2648         (UINT8_ENCODE): New inline function in UTF-2000.
2649         (UINT8_DECODE): New inline function in UTF-2000.
2650         (mark_uint8_byte_table): New function in UTF-2000.
2651         (print_uint8_byte_table): New function in UTF-2000.
2652         (uint8_byte_table_equal): New function in UTF-2000.
2653         (uint8_byte_table_hash): New function in UTF-2000.
2654         (make_uint8_byte_table): New function in UTF-2000.
2655         (uint8_byte_table_same_value_p): New function in UTF-2000.
2656         (BT_UINT16_MIN): New macro in UTF-2000.
2657         (BT_UINT16_MAX): New macro in UTF-2000.
2658         (BT_UINT16_t): New macro in UTF-2000.
2659         (BT_UINT16_nil): New macro in UTF-2000.
2660         (BT_UINT16_unbound): New macro in UTF-2000.
2661         (INT_UINT16_P): New inline function in UTF-2000.
2662         (UINT16_VALUE_P): New inline function in UTF-2000.
2663         (UINT16_ENCODE): New inline function in UTF-2000.
2664         (UINT16_DECODE): New inline function in UTF-2000.
2665         (UINT8_TO_UINT16): New inline function in UTF-2000.
2666         (mark_uint16_byte_table): New function in UTF-2000.
2667         (print_uint16_byte_table): New function in UTF-2000.
2668         (uint16_byte_table_equal): New function in UTF-2000.
2669         (uint16_byte_table_hash): New function in UTF-2000.
2670         (make_uint16_byte_table): New function in UTF-2000.
2671         (uint16_byte_table_same_value_p): New function in UTF-2000.
2672         (print_byte_table): New function in UTF-2000.
2673         (byte-table): Use `print_byte_table' as printer.
2674         (make_byte_table): Delete second argument `older'.
2675         (byte_table_same_value_p): New function in UTF-2000.
2676         (copy_byte_table): Deleted.
2677         (get_byte_table): New function in UTF-2000.
2678         (put_byte_table): New function in UTF-2000.
2679         (print_char_id_table): New function in UTF-2000.
2680         (char-id-table): Use `print_char_id_table' as printer.
2681         (make_char_id_table): Delete second argument `older'.
2682         (get_char_id_table): Use `get_byte_table [new implementation].
2683         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2684         implementation].
2685         (Ffind_char_attribute_table): New function in UTF-2000.
2686         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2687         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2688         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2689         (syms_of_mule_charset): Add new function
2690         `find-char-attribute-table' in UTF-2000.
2691
2692         * lrecord.h (enum lrecord_type): Add
2693         `lrecord_type_uint16_byte_table' and
2694         `lrecord_type_uint8_byte_table'.
2695
2696         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2697         (Lisp_Uint8_Byte_Table): New type.
2698         (XUINT8_BYTE_TABLE): New macro.
2699         (XSETUINT8_BYTE_TABLE): New macro.
2700         (UINT8_BYTE_TABLE_P): New macro.
2701         (GC_UINT8_BYTE_TABLE_P): New macro.
2702         (struct Lisp_Uint16_Byte_Table): New structure.
2703         (Lisp_Uint16_Byte_Table): New type.
2704         (XUINT16_BYTE_TABLE): New macro.
2705         (XSETUINT16_BYTE_TABLE): New macro.
2706         (UINT16_BYTE_TABLE_P): New macro.
2707         (GC_UINT16_BYTE_TABLE_P): New macro.
2708
2709 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2710
2711         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2712         (Vcharacter_ideographic_strokes_table): Deleted.
2713         (Vcharacter_total_strokes_table): Deleted.
2714         (Vcharacter_morohashi_daikanwa_table): Deleted.
2715         (Vcharacter_decomposition_table): Deleted.
2716         (Qname): Deleted because it is duplicated.
2717         (Qideographic_radical): Deleted.
2718         (Qideographic_strokes): Deleted.
2719         (Qtotal_strokes): Deleted.
2720         (Qmorohashi_daikanwa): Deleted.
2721         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2722         `ideographic-radical', `ideographic-strokes', `total-strokes',
2723         `morohashi-daikanwa' and `->decomposition'.
2724         (Fget_char_attribute): Likewise.
2725         (Fput_char_attribute): Likewise; use `make-vector' instead of
2726         `make_older_vector' for `->decomposition' value.
2727         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2728         `ideograph-daikanwa'.
2729         (syms_of_mule_charset): Delete builtin symbols `name',
2730         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2731         `morohashi-daikanwa'.
2732         (vars_of_mule_charset): Don't setup
2733         `Vcharacter_ideographic_radical_table',
2734         `Vcharacter_ideographic_strokes_table',
2735         `Vcharacter_total_strokes_table',
2736         `Vcharacter_morohashi_daikanwa_table' and
2737         `Vcharacter_decomposition_table'.
2738
2739 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2740
2741         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2742         `make_older_vector', `make_vector_newer_1' and
2743         `make_vector_newer'.
2744
2745         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2746         `make_older_vector' and `make_vector_newer'.
2747
2748         * config.h.in (HAVE_GGC): New macro.
2749
2750 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2751
2752         * mule-charset.c (struct char_attribute_list_closure): New
2753         structure in UTF-2000.
2754         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2755         (Fchar_attribute_list): Likewise.
2756         (Fset_charset_mapping_table): Use `make_vector_newer'.
2757         (Fdecode_builtin_char): New function in UTF-2000.
2758         (syms_of_mule_charset): Add new function `char-attribute-list' and
2759         `decode-builtin-char' in UTF-2000.
2760
2761         * lisp.h (make_vector_newer): New prototype.
2762
2763         * alloc.c (make_vector_newer_1): New function.
2764         (make_vector_newer): New function.
2765
2766 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2767
2768         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2769         50100)'.
2770
2771 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2772
2773         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2774         (Vcharacter_attribute_table): Deleted.
2775         (Vcharacter_name_table): Deleted.
2776         (put_char_attribute): Deleted.
2777         (remove_char_attribute): Deleted.
2778         (struct char_attribute_alist_closure): New structure.
2779         (add_char_attribute_alist_mapper): New function.
2780         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2781         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2782         (Fget_char_attribute): Likewise.
2783         (Fput_char_attribute): Likewise.
2784         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2785         of `remove_char_attribute'.
2786         (Fdefine_char): Return character.
2787         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2788         and `Vcharacter_name_table'.
2789         (complex_vars_of_mule_charset): Likewise
2790         `Vchar_attribute_hash_table'.
2791
2792 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2793
2794         * character.h (CHARC_CHARSET): New macro.
2795         (CHARC_CHARSET_ID): New macro.
2796         (CHARC_CODE_POINT): New macro.
2797         (CHARC_COLUMNS): New macro.
2798         (CHARC_TO_CHAR): New inline function.
2799         (CHARC_EQ): New inline function.
2800         (CHARC_ASCII_EQ): New inline function.
2801         (CHARC_IS_SPACE): New inline function.
2802         (ASCII_TO_CHARC): New inline function.
2803
2804         * char-ucs.h (encode_char_2): Deleted.
2805         (ENCODE_CHAR): Use `encode_char_1' again.
2806         (breakup_char_1): Likewise.
2807         (CHAR_TO_CHARC): New inline function.
2808
2809         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2810
2811 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2812
2813         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2814         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2815         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2816         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2817         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2818         `CHARC_IS_SPACE'.
2819         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2820
2821         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2822         `CHARC_CODE_POINT'.
2823         (x_output_display_block): Use `CHARC_CHARSET' and
2824         `CHARC_ASCII_EQ'.
2825
2826         * redisplay-tty.c (tty_output_display_block): Use
2827         `CHARC_ASCII_EQ'.
2828         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2829
2830         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2831
2832         * insdel.c (find_charsets_in_charc_string): Use
2833         `CHARC_CHARSET_ID'.
2834         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2835         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2836         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2837         (convert_charc_string_into_malloced_string): Likewise.
2838
2839 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2840
2841         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2842         instead of <Emchar_dynarr *> for buf; use
2843         `convert_bufbyte_string_into_charc_dynarr' instead of
2844         `convert_bufbyte_string_into_emchar_dynarr'; use
2845         `find_charsets_in_charc_string' instead of
2846         `find_charsets_in_emchar_string'.
2847
2848         * redisplay.h:
2849         - Include "character.h".
2850         (struct rune): New member `cglyph'; delete member `chr'.
2851
2852         * redisplay.c (redisplay_text_width_charc_string): New function;
2853         delete `redisplay_text_width_emchar_string'.
2854         (rtw_charc_dynarr): New variable; renamed from
2855         `rtw_emchar_dynarr'.
2856         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2857         `rtw_emchar_dynarr'; use
2858         `convert_bufbyte_string_into_charc_dynarr' instead of
2859         `convert_bufbyte_string_into_emchar_dynarr'; use
2860         `redisplay_text_width_charc_string' instead of
2861         `redisplay_text_width_emchar_string'.
2862         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2863         instead of `rtw_emchar_dynarr'; use
2864         `convert_bufbyte_string_into_charc_dynarr' instead of
2865         `convert_bufbyte_string_into_emchar_dynarr'.
2866         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2867         `redisplay_text_width_charc_string' instead of
2868         `redisplay_text_width_emchar_string'.
2869         (create_text_block): Modify for <struct rune> change.
2870         (generate_formatted_string_db): Likewise.
2871         (create_string_text_block): Likewise.
2872         (pixel_to_glyph_translation): Likewise.
2873
2874         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2875         instead of <const Emchar *>.
2876         (x_text_width): Likewise.
2877         (x_output_display_block): Use <Charc_dynarr *> instead
2878         <Emchar_dynarr *>; modify for <structure rune> change.
2879         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2880         *>.
2881
2882         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2883         <const Emchar *>; use `charc_string_displayed_columns' instead of
2884         `emchar_string_displayed_columns'.
2885         (tty_output_display_block): Use <Charc_dynarr *> instead of
2886         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2887         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2888         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2889         `tty_output_emchar_dynarr_dynarr'.
2890         (tty_output_charc_dynarr): New function; delete
2891         `tty_output_charc_dynarr'.
2892
2893         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2894         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2895         <Emchar_dynarr *> for buf; use
2896         `convert_bufbyte_string_into_charc_dynarr' instead of
2897         `convert_bufbyte_string_into_emchar_dynarr'.
2898
2899         * frame.c (title_string_charc_dynarr): New variable; renamed from
2900         `title_string_emchar_dynarr'.
2901         (generate_title_string): Use `title_string_charc_dynarr' instead
2902         of `title_string_emchar_dynarr'; use
2903         `convert_charc_string_into_malloced_string' instead of
2904         `convert_emchar_string_into_malloced_string'.
2905         (init_frame): Use `title_string_charc_dynarr' instead of
2906         `title_string_emchar_dynarr'.
2907
2908         * console.h:
2909         - Include "character.h".
2910         (struct console_methods): Use <const Charc *> instead of <const
2911         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2912         <Emchar_dynarr *> in output_string_method.
2913
2914         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2915         <Emchar_dynarr *>.
2916
2917         * console-stream.c (stream_text_width): Use <const Charc *>
2918         instead of <const Emchar *>.
2919
2920         * character.h (Charc_dynarr): New type.
2921
2922         * char-ucs.h (structure Charc): New structure; define new type
2923         `Charc'.
2924
2925         * char-lb.h (DECODE_CHAR): New inline function.
2926         (encode_char_1): New inline function.
2927         (ENCODE_CHAR): New macro.
2928         (structure Charc): New structure; define new type `Charc'.
2929
2930         * char-1byte.h (Vcharset_control_1): New macro.
2931         (Vcharset_latin_iso8859_1): New macro.
2932         (DECODE_CHAR): New inline function.
2933         (encode_char_1): New inline function.
2934         (ENCODE_CHAR): New macro.
2935         (structure Charc): New structure; define new type `Charc'.
2936
2937         * insdel.c (find_charsets_in_charc_string): New function; delete
2938         `find_charsets_in_emchar_string'.
2939         (charc_string_displayed_columns): New function; delete
2940         `emchar_string_displayed_columns'.
2941         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2942         `convert_bufbyte_string_into_emchar_dynarr'.
2943         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2944         `convert_charc_string_into_bufbyte_dynarr'.
2945         (convert_charc_string_into_malloced_string): New function; delete
2946         `convert_charc_string_into_malloced_string'.
2947
2948         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2949         `find_charsets_in_emchar_string'.
2950         (charc_string_displayed_columns): New prototype; delete
2951         `emchar_string_displayed_columns'.
2952         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2953         `convert_charc_string_into_bufbyte_dynarr'.
2954         (convert_charc_string_into_malloced_string): New prototype; delete
2955         `convert_charc_string_into_malloced_string'.
2956
2957 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2958
2959         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2960
2961 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2962
2963         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2964
2965         * char-ucs.h: Use <short> for <Charset_ID>.
2966
2967         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2968         <Charset_ID>.
2969
2970 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2971
2972         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2973         to 0.16.
2974
2975 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2976
2977         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2978         variable.
2979         (Qmorohashi_daikanwa): New variable.
2980         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2981         for `morohashi-daikanwa' attribute.
2982         (Fget_char_attribute): Likewise.
2983         (Fput_char_attribute): Likewise.
2984         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2985         has the same value of `ideograph-daikanwa'.
2986         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2987         (vars_of_mule_charset): Setup
2988         `Vcharacter_morohashi_daikanwa_table'.
2989
2990 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2991
2992         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2993         attributes.
2994         (add_charset_to_list_mapper): Add `key' instead of
2995         `XCHARSET_NAME (value)' to return aliases.
2996
2997 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2998
2999         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3000         variable.
3001         (Vcharacter_ideographic_strokes_table): New variable.
3002         (Qideographic_radical): New variable.
3003         (Qideographic_strokes): New variable.
3004         (Fchar_attribute_alist): Use
3005         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3006         attribute; use `Vcharacter_ideographic_strokes_table' for
3007         `ideographic-strokes' attribute.
3008         (Fget_char_attribute): Likewise.
3009         (Fput_char_attribute): Likewise.
3010         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3011         `ideographic-strokes'.
3012         (vars_of_mule_charset): Setup
3013         `Vcharacter_ideographic_radical_table' and
3014         `Vcharacter_ideographic_strokes_table'.
3015
3016 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3017
3018         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3019         (Qtotal_strokes): New variable.
3020         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3021         `total-strokes' attribute.
3022         (Fget_char_attribute): Likewise.
3023         (Fput_char_attribute): Likewise.
3024         (syms_of_mule_charset): Add new symbol `total-strokes'.
3025         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3026
3027 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3028
3029         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3030         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3031         are found.
3032         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3033         `->decomposition' attribute.
3034         (Fput_char_attribute): Likewise.
3035         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3036
3037 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3038
3039         * mule-charset.c (decoding_table_check_elements): New function.
3040         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3041
3042 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3043
3044         * mule-charset.c (Fset_charset_mapping_table): Use
3045         `put_char_ccs_code_point'.
3046
3047 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3048
3049         * mule-charset.c (decoding_table_put_char): New inline function.
3050         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3051
3052 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3053
3054         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3055         (XCHARSET_BYTE_SIZE): New macro.
3056         (decoding_table_remove_char): New inline function.
3057         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3058         `decoding_table_remove_char'.
3059         (remove_char_ccs): Use `decoding_table_remove_char'.
3060         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3061
3062 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3063
3064         * mule-charset.c (Vcharacter_name_table): New variable.
3065         (Qname): New variable.
3066         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3067         attribute.
3068         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3069         `Vcharacter_name_table' for `name' attribute.
3070         (Fremove_char_attribute): Use function `remove_char_ccs'.
3071         (put_char_ccs_code_point): New function.
3072         (remove_char_ccs): New function.
3073         (syms_of_mule_charset): Add new symbol `name'.
3074         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3075
3076 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3077
3078         * mule-charset.c (make_byte_table): Add new argument `older'.
3079         (make_char_id_table): Likewise.
3080         (copy_char_id_table): Comment out because it is not used.
3081         (put_char_id_table): Modify for `make_byte_table'.
3082         (Fput_char_attribute): Make encoding_table as older object;
3083         inherit older bit of `Vcharacter_composition_table'.
3084         (mark_charset): Don't mark `cs->encoding_table'.
3085         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3086         normal object; make `Vcharacter_composition_table' as an older
3087         object; delete staticpro for `Vcharacter_composition_table'; make
3088         `Vcharacter_variant_table' as a normal object.
3089
3090         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3091         (mark_object): Don't check older object in UTF-2000.
3092
3093         * lrecord.h (struct lrecord_header): Add new member `older' in
3094         UTF-2000.
3095         (set_lheader_implementation): Setup `SLI_header->older' in
3096         UTF-2000.
3097         (set_lheader_older_implementation): New macro in UTF-2000.
3098         (OLDER_RECORD_P): New macro in UTF-2000.
3099         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3100         (alloc_older_lcrecord): New prototype in UTF-2000.
3101         (alloc_older_lcrecord_type): New macro in UTF-2000.
3102
3103 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3104
3105         * mule-charset.c (byte_table_description): Use
3106         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3107         (char_id_table_description): Delete bogus `, 1'.
3108         (Fget_char_attribute): Refer encoding_table of each coded-charset
3109         to get value of coded-charset attribute of a character.
3110         (Fput_char_attribute): Use `make_older_vector' instead of
3111         `make_vector'; use encoding_table of each coded-charset to store
3112         value of coded-charset attribute of a character.
3113         (Fremove_char_attribute): Use encoding_table of each coded-charset
3114         to store value of coded-charset attribute of a character.
3115         (mark_charset): Mark `cs->encoding_table'; don't mark
3116         `cs->decoding_table'.
3117         (charset_description): Add description of new member
3118         `encoding_table'.
3119         (make_charset): Initialize `encoding_table'.
3120
3121         * char-ucs.h (struct Lisp_Charset): Add new member
3122         `encoding_table'.
3123         (CHARSET_ENCODING_TABLE): New macro.
3124         (XCHARSET_ENCODING_TABLE): New macro.
3125         (charset_code_point): New implementation.
3126         (encode_char_1): Likewise.
3127
3128         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3129         (disksave_object_finalization_1): Call finalizers of
3130         `all_older_lcrecords' in UTF-2000.
3131         (make_older_vector): New function in UTF-2000.
3132         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3133         UTF-2000.
3134
3135         * lisp.h (make_older_vector): New prototype in UTF-2000.
3136
3137 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3138
3139         * lrecord.h (enum lrecord_type): Rename
3140         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3141
3142         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3143         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3144         `get_char_code_table'.
3145
3146         * mule-charset.c (mark_char_id_table): Renamed from
3147         `mark_char_code_table'.
3148         (char_id_table_equal): Renamed from `char_code_table_equal'.
3149         (char_id_table_hash): Renamed from `char_code_table_hash'.
3150         (make_char_id_table): Renamed from `make_char_code_table'.
3151         (copy_char_id_table): Renamed from `copy_char_code_table'.
3152         (get_char_id_table): Renamed from `get_char_code_table'.
3153         (put_char_id_table): Renamed from `put_char_code_table'.
3154         (to_char_id): Renamed from `to_char_code'.
3155
3156         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3157         `Lisp_Char_Code_Table'.
3158         (char_id_table): Renamed from `char_code_table'.
3159         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3160         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3161         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3162         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3163         (get_char_id_table): Renamed from `get_char_code_table'.
3164
3165 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3166
3167         * lrecord.h (enum lrecord_type): Rename
3168         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3169
3170         * mule-charset.c (mark_byte_table): Renamed from
3171         `mark_char_byte_table'.
3172         (byte_table_equal): Renamed from `char_byte_table_equal'.
3173         (byte_table_hash): Renamed from `byte_table_hash'.
3174         (make_byte_table): Renamed from `make_byte_table'.
3175         (copy_byte_table): Renamed from `copy_char_byte_table'.
3176
3177         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3178         `Lisp_Char_Byte_Table'.
3179         (byte_table): Renamed from `char_byte_table'.
3180         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3181         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3182         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3183         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3184
3185 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3186
3187         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3188         (dfc_convert_to_internal_format): Likewise.
3189         
3190         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3191         * text-coding.c (Fcoding_system_alias_p): New function.
3192         * text-coding.c (Fcoding_system_aliasee): New function.
3193         * text-coding.c (append_suffix_to_symbol): New function.
3194         * text-coding.c (dangling_coding_system_alias_p): New function.
3195         * text-coding.c (Ffind_coding_system):
3196         * text-coding.c (Fcopy_coding_system):
3197         * text-coding.c (encode_coding_no_conversion):
3198         * text-coding.c (syms_of_file_coding):
3199         * text-coding.c (vars_of_file_coding):
3200         Rewrite coding system alias code.
3201         Allow nested aliases, like symbolic links.
3202         Allow redefinition of coding system aliases.
3203         Prevent existence of dangling coding system aliases.
3204         Eliminate convert_to_external_format.
3205         Eliminate convert_to_internal_format.
3206         
3207         * text-coding.c: Change enum eol_type to eol_type_t.
3208
3209 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3210
3211         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3212         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3213
3214         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3215         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3216
3217 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3218
3219         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3220         `ideograph-daikanwa'.
3221
3222         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3223         (Vcharset_ucs_bmp): Likewise.
3224         (Vcharset_mojikyo): Add new extern variable definition.
3225         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3226         (Vcharset_latin_iso8859_3): Likewise.
3227         (Vcharset_latin_iso8859_4): Likewise.
3228         (Vcharset_latin_iso8859_9): Likewise.
3229         (Vcharset_latin_viscii_lower): Likewise.
3230         (Vcharset_latin_viscii_upper): Likewise.
3231         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3232         `mojikyo' code-point is used to decode.
3233         (encode_char_2): New function [to convert `mojikyo' code-point to
3234         Mojikyo font encoding].
3235         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3236         (breakup_char_1): Likewise.
3237         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3238
3239 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3240
3241         * text-coding.c (Fmake_coding_system): Add document about
3242         `disable-composition' property.
3243
3244 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3245
3246         * text-coding.c (Qdisable_composition): New variable; delete
3247         `Qcomposite'.
3248         (Fmake_coding_system): Add new property `disable-composite';
3249         delete property `composite'.
3250         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3251         instead of `!CODING_SYSTEM_COMPOSITE'.
3252         (syms_of_file_coding): Add new symbol `disable-composition';
3253         delete symbol `composite'.
3254
3255         * file-coding.h (struct Lisp_Coding_System): Add
3256         `disable_composition'; delete `enable_composition'.
3257         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3258         `CODING_SYSTEM_COMPOSITE'.
3259         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3260         `XCODING_SYSTEM_COMPOSITE'.
3261
3262 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3263
3264         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3265         to 0.15.
3266
3267 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3268
3269         * text-coding.c (Qcomposite): New variable.
3270         (Fmake_coding_system): Add new property `composite'.
3271         (struct decoding_stream): Add `combined_char_count',
3272         `combined_chars' and `combining_table' in UTF-2000.
3273         (COMPOSE_FLUSH_CHARS): New macro.
3274         (COMPOSE_ADD_CHAR): New macro.
3275         (reset_decoding_stream): Reset `str->combined_char_count' and
3276         `str->combining_table' in UTF-2000.
3277         (decode_coding_iso2022): Modify for character-decomposition.
3278         (syms_of_file_coding): Add new symbol `composite'.
3279
3280 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3281
3282         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3283         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3284         of `Vcharacter_composition_table' if `->decomposition' property
3285         has only 1 element.
3286         (Qlatin_tcvn5712): New variable.
3287         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3288         (complex_vars_of_mule_charset): Add new coded-charset
3289         `latin-tcvn5712'.
3290
3291         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3292
3293 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3294
3295         * file-coding.h (struct Lisp_Coding_System): Add
3296         `enable_composition'.
3297         (CODING_SYSTEM_COMPOSITE): New macro.
3298         (XCODING_SYSTEM_COMPOSITE): New macro.
3299
3300 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3301
3302         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3303
3304 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3305
3306         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3307         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3308
3309 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3310
3311         * mule-charset.c (Vcharset_mojikyo): New variable.
3312         (Fdefine_char): Don't use coded-charset which does not have
3313         non-builtin character range to allocate character-id.
3314         (Qmojikyo): New variable.
3315         (syms_of_mule_charset): Add new symbol `mojikyo'.
3316         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3317
3318         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3319         (LEADING_BYTE_MOJIKYO): New macro.
3320         (MIN_CHAR_MOJIKYO): New macro.
3321         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3322         (MAX_CHAR_MOJIKYO): New macro.
3323
3324 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3325
3326         * mule-charset.c (remove_char_attribute): Fixed.
3327
3328 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3329
3330         * mule-charset.c (remove_char_attribute): New function.
3331         (Fremove_char_attribute): New function.
3332         (encode_builtin_char_1): Comment out builtin-support for
3333         greek-iso8859-7 and cyrillic-iso8859-5.
3334         (Fdecode_char): Check `code' is an integer.
3335         (syms_of_mule_charset): Add `remove-char-attribute'.
3336         (MIN_CHAR_GREEK): Deleted.
3337         (MAX_CHAR_GREEK): Likewise.
3338         (MIN_CHAR_CYRILLIC): Likewise.
3339         (MAX_CHAR_CYRILLIC): Likewise.
3340         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3341         MAX_CHAR_GREEK for `greek-iso8859-7'.
3342
3343         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3344         (MAX_CHAR_GREEK): Likewise.
3345         (MIN_CHAR_CYRILLIC): Likewise.
3346         (MAX_CHAR_CYRILLIC): Likewise.
3347
3348 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3349
3350         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3351         format is used without `ucs' property.
3352         (Fdecode_char): Fix problem with GR representation.
3353         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3354         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3355
3356 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3357
3358         * mule-charset.c (make_builtin_char): New function.
3359         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3360         (Fset_charset_mapping_table): Modify for new representation of
3361         code-point.
3362         (Fdecode_char): New function.
3363         (syms_of_mule_charset): Add new builtin function `decode-char' in
3364         UTF-2000.
3365
3366         * char-ucs.h (make_builtin_char): New prototype.
3367         (DECODE_CHAR): New inline function.
3368         (MAKE_CHAR): Use `DECODE_CHAR'.
3369
3370 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3371
3372         * text-coding.c (parse_charset_conversion_specs): Use
3373         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3374         `XCHARSET_TYPE'.
3375         (iso2022_designate): Likewise.
3376
3377         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3378         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3379
3380         * mule-charset.c (Vcharset_ucs): New variable.
3381         (print_charset): Change design; use `CHARSET_CHARS' and
3382         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3383         (make_charset): Change signature to specify `chars' and
3384         `dimension' instead of `type'.
3385         (range_charset_code_point): Modify for 256^n-set.
3386         (encode_builtin_char_1): Encode as `ucs' in default.
3387         (Fmake_charset): Modify for `make_charset'.
3388         (Fmake_reverse_direction_charset): Likewise.
3389         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3390         UTF-2000.
3391         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3392         for `make_charset'.
3393
3394         * char-ucs.h (Vcharset_ucs): New variable.
3395         (LEADING_BYTE_UCS): New macro.
3396         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3397         and `chars' to `unsigned short' from `unsigned int'.
3398         (CHARSET_TYPE): Deleted.
3399         (XCHARSET_TYPE): Deleted.
3400
3401 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3402
3403         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3404
3405         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3406         (ENCODE_CHAR): New macro.
3407
3408 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3409
3410         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3411         to 0.14 (Kawachi-Katakami).
3412
3413 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3414
3415         * text-coding.c (char_encode_shift_jis): Modify for
3416         `charset_code_point'.
3417         (char_encode_iso2022): Likewise.
3418
3419         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3420         (integer) instead of list of <Lisp_Object>s (integers) as the
3421         format of code-point of a coded-charset.
3422         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3423         (encode_builtin_char_1): New function; delete
3424         `split_builtin_char'.
3425         (charset_code_point): Return <int> instead of <Lisp_Object>.
3426         (Fsplit_char): Don't use `SPLIT_CHAR'.
3427
3428         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3429         prototype for `split_builtin_char'.
3430         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3431         (charset_code_point): Likewise.
3432         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3433         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3434
3435 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3436
3437         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3438         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3439
3440 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3441
3442         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3443
3444         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3445         (MAX_CHAR_OBS_94x94): Deleted.
3446
3447 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3448
3449         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3450
3451         * char-ucs.h (MAX_CHAR_BMP): New macro.
3452
3453 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3454
3455         * text-coding.c: Sync with r21-2-24.
3456
3457 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3458
3459         * file-coding.c: Modify for UTF-2000.
3460
3461 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3462
3463         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3464         to 0.13 (Takaida).
3465
3466 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3467
3468         * mule-charset.c (split_builtin_char): Delete builtin support for
3469         `katakana-jisx0201'.
3470         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3471         BMP area in builtin representation.
3472
3473         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3474         `Vcharset_katakana_jisx0201'.
3475
3476 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3477
3478         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3479         (Qisolated): New variable.
3480         (Qinitial): New variable.
3481         (Qmedial): New variable.
3482         (Qfinal): New variable.
3483         (Qvertical): New variable.
3484         (Qsmall): New variable.
3485         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3486         `Qvertical' and `Qsmall'.
3487         (Qmojikyo_pj_[1 .. 21]): New variable.
3488         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3489         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3490         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3491         .. 21]'.
3492
3493 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3494
3495         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3496         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3497         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3498
3499 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3500
3501         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3502         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3503         BMP.
3504         (Qjapanese_jisx0208_1990): New variable.
3505         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3506         (complex_vars_of_mule_charset): Add new coded-charset
3507         `japanese-jisx0208-1990'.
3508
3509         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3510         (MIN_CHAR_JIS_X0208_1990): New macro.
3511         (MAX_CHAR_JIS_X0208_1990): New macro.
3512
3513 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3514
3515         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3516         coded-charset is not found.
3517
3518 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3519
3520         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3521         (Fdefine_char): Use `Fmake_char'.
3522
3523 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3524
3525         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3526         (Vcharset_hiragana_jisx0208): Deleted.
3527         (Vcharset_katakana_jisx0208): Deleted.
3528         (Qideograph_daikanwa): New variable.
3529         (Qhiragana_jisx0208): Deleted.
3530         (Qkatakana_jisx0208): Deleted.
3531         (split_builtin_char): Split `ideograph-daikanwa'.
3532         (Fsplit_char): New implementation for UTF-2000.
3533         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3534         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3535         (complex_vars_of_mule_charset): Add new coded-charset
3536         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3537         `katakana-jisx0208'.
3538
3539         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3540         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3541         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3542         (MIN_CHAR_DAIKANWA): New macro.
3543         (MAX_CHAR_DAIKANWA): New macro.
3544
3545 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3546
3547         * data.c (Fstring_to_number): Don't recognize floating point if
3548         base is not 10.
3549
3550 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3551
3552         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3553
3554 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3555
3556         * mule-charset.c (Qsquare): New variable.
3557         (to_char_code): Add `Qsquare'.
3558         (syms_of_mule_charset): Add new symbol `square'.
3559
3560 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3561
3562         * mule-charset.c (Qcircle): New variable.
3563         (to_char_code): Add `Qcircle'.
3564         (syms_of_mule_charset): Add new symbol `circle'.
3565
3566 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3567
3568         * mule-charset.c (Qfont): New variable.
3569         (to_char_code): Add `Qfont'.
3570         (syms_of_mule_charset): Add new symbol `font'.
3571
3572 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3573
3574         * mule-charset.c (Qsub): New variable.
3575         (to_char_code): Add `Qsub'.
3576         (syms_of_mule_charset): Add new symbol `sub'.
3577
3578 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3579
3580         * mule-charset.c (Fput_char_attribute): Convert each element of
3581         VALUE to GL position if ATTRIBUTE is a GR-set,
3582
3583 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3584
3585         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3586         coded-charset is a GR-set.
3587
3588 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3589
3590         * mule-charset.c (Fput_char_attribute): Check each element of
3591         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3592
3593 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3594
3595         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3596         UTF-2000.
3597         (Qethiopic_ucs): New variable in UTF-2000.
3598         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3599         (complex_vars_of_mule_charset): Add new coded-charset
3600         `ethiopic-ucs' in UTF-2000.
3601
3602         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3603         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3604         9)'.
3605         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3606         10)'.
3607         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3608
3609 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3610
3611         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3612         `ascii'.
3613
3614 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3615
3616         * mule-charset.c (Vcharacter_variant_table): New variable.
3617         (Q_ucs): New variable.
3618         (Fchar_variants): New function.
3619         (Fput_char_attribute): Register `->ucs' value to
3620         `Vcharacter_variant_table'.
3621         (syms_of_mule_charset): Add new function `char-variants' and new
3622         symbol `->ucs'.
3623         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3624
3625 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3626
3627         * mule-charset.c (get_char_code_table): Allow negative character
3628         code.
3629         (put_char_code_table): Likewise.
3630         (Vcharacter_composition_table): New variable.
3631         (Q_decomposition): New variable.
3632         (Qwide): New variable.
3633         (Qnarrow): New variable.
3634         (Qcompat): New variable.
3635         (QnoBreak): New variable.
3636         (Qsuper): New variable.
3637         (Qfraction): New variable.
3638         (to_char_code): New function.
3639         (Fget_composite_char): New function.
3640         (Fput_char_attribute): Register `->decomposition' value to
3641         `Vcharacter_composition_table'.
3642         (syms_of_mule_charset): Add new function `get-composite-char', new
3643         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3644         `super' and `fraction'.
3645         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3646
3647 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3648
3649         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3650         character; copy the return value.
3651
3652 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3653
3654         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3655
3656         * mule-charset.c (range_charset_code_point): Must use make_int.
3657         (split_builtin_char): New function.
3658
3659 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3660
3661         * mule-charset.c (char_byte_table): Change name from
3662         "char-code-table" to "char-byte-table".
3663         (mark_char_code_table): New function.
3664         (char_code_table_equal): New function.
3665         (char_code_table_hash): New function.
3666         (char_code_table_description): New constant.
3667         (char_code_table): New type.
3668         (make_char_code_table): New function.
3669         (copy_char_code_table): New function.
3670         (get_char_code_table): Modify for `char_code_table' type.
3671         (put_char_code_table): Likewise.
3672         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3673         (Kashiwara).
3674
3675         * char-ucs.h (char_code_table): New type.
3676         (XCHAR_CODE_TABLE): New macro.
3677         (XSETCHAR_CODE_TABLE): New macro.
3678         (CHAR_CODE_TABLE_P): New macro.
3679         (GC_CHAR_CODE_TABLE_P): New macro.
3680         (struct Lisp_Char_Code_Table): New structure.
3681
3682 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3683
3684         * mule-charset.c (Fmake_charset): Setup byte_offset for
3685         {94|96}^n-set.
3686
3687 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3688
3689         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3690         character.
3691
3692 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3693
3694         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3695         is found.
3696
3697 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3698
3699         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3700         charset, it is regarded as a charset.
3701         (put_char_attribute): New function in UTF-2000.
3702         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3703         charset, mapping-table of the charset is modified.
3704         (Fdefine_char): New function in UTF-2000.
3705         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3706         `Fput_char_attribute'.
3707         (syms_of_mule_charset): Add new function `define-char' and new
3708         symbol `ucs' in UTF-2000.
3709         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3710
3711 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3712
3713         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3714         non-UTF-2000 configuration.
3715
3716 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3717
3718         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3719         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3720
3721         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3722         deleted.
3723         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3724         (Fset_charset_mapping_table): Likewise.
3725
3726         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3727         (CHARSET_ENCODING_TABLE): Delete.
3728         (XCHARSET_ENCODING_TABLE): Delete.
3729         (charset_code_point): New interface.
3730
3731 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3732
3733         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3734         instead of `charset_get_byte1' and `charset_get_byte2'.
3735
3736         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3737         (charset_get_byte2): Deleted.
3738
3739 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3740
3741         * char-ucs.h (SPLIT_CHAR): New inline function.
3742         (breakup_char_1): Use `SPLIT_CHAR'.
3743
3744         * mule-charset.c (range_charset_code_point): New function.
3745         (charset_code_point): New function.
3746
3747         * char-ucs.h (range_charset_code_point): New interface.
3748         (breakup_char_1): Use `range_charset_code_point'.
3749
3750 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3751
3752         * mule-charset.c (Fmake_charset): Delete unused local variable
3753         `code_offset'.
3754
3755         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3756         (breakup_char_1): Find a charset and code-point in
3757         `Vcharacter_attribute_table'.
3758
3759 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3760
3761         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3762         to 0.10 (Yao).
3763
3764 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3765
3766         * mule-charset.c (Vcharacter_attribute_table): New variable.
3767         (Fchar_attribute_alist): New function.
3768         (Fget_char_attribute): New function.
3769         (Fput_char_attribute): New function.
3770         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3771         too.
3772         (syms_of_mule_charset): Add new function `char-attribute-alist',
3773         `get-char-attribute' and `put-char-attribute'.
3774         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3775
3776 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3777
3778         * mule-charset.c (Fmake_charset): Just use
3779         `get_unallocated_leading_byte'.
3780
3781         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3782         sets; don't use final-byte based number for private sets.
3783
3784 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3785
3786         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3787         integer.
3788
3789 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3790
3791         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3792         to 0.9.
3793
3794 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3795
3796         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3797         of `CHAR_LEADING_BYTE' in UTF-2000.
3798
3799         * insdel.c (find_charsets_in_bufbyte_string): Use
3800         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3801         (find_charsets_in_emchar_string): Likewise.
3802
3803         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3804         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3805
3806         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3807         (CHAR_CHARSET_ID): New macro.
3808
3809 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3810
3811         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3812         charset-id - MIN_LEADING_BYTE.
3813         (put_char_table): Likewise.
3814
3815 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3816
3817         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3818         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3819         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3820         (CHARSET_ID_OFFSET): New macro.
3821         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3822         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3823         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3824         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3825         4).
3826         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3827         5).
3828         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3829         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3830         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3831         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3832         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3833
3834 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3835
3836         * mule-charset.c (next_allocated_leading_byte): New variable in
3837         UTF-2000.
3838         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3839         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3840         (get_unallocated_leading_byte): Simply use
3841         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3842         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3843         UTF-2000.
3844
3845         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3846         (MAX_LEADING_BYTE_PRIVATE): New macro.
3847         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3848         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3849
3850 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3851
3852         * mule-charset.c (Fmake_charset): Allocate final-byte based
3853         charset-id for 94-set, 96-set and 94x94-set.
3854
3855 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3856
3857         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3858         ambiguous `else'.
3859         (Fmake_charset): Likewise.
3860         (complex_vars_of_mule_charset): Modify the font registry of
3861         `ucs-bmp' not to match `Ethiopic-Unicode'.
3862
3863 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3864
3865         * mule-charset.c (complex_vars_of_mule_charset): Add font
3866         registory of `ucs-bmp'.
3867
3868 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3869
3870         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3871         coded-charsets in `default-coded-charset-priority-list' when
3872         breaking up a character.
3873
3874         * mule-charset.c (Vcharset_latin_viscii): New variable.
3875         (Qlatin_viscii): New variable.
3876         (make_charset): Don't use `decoding_table'.
3877         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3878         byte_offset.
3879         (Fset_charset_mapping_table): New implementation.
3880         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3881         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3882         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3883         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3884         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3885         charset `latin_viscii'.
3886
3887         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3888         (CHARSET_TYPE_94X94): Change to 1 from 2.
3889         (CHARSET_TYPE_96): Change to 2 from 1.
3890         (CHARSET_TYPE_128): New macro.
3891         (CHARSET_TYPE_128X128): Change to 5 from 4.
3892         (CHARSET_TYPE_256): New macro.
3893         (CHARSET_TYPE_256X256): Change to 7 from 5.
3894         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3895
3896 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3897
3898         * text-coding.c (char_encode_shift_jis): Refer
3899         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3900         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3901
3902         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3903         (char_byte_table_equal): New function in UTF-2000.
3904         (char_byte_table_hash): New function in UTF-2000.
3905         (char_byte_table_description): New constant in UTF-2000.
3906         (char_byte_table): New type in UTF-2000.
3907         (make_char_byte_table): New function in UTF-2000.
3908         (copy_char_byte_table): New function in UTF-2000.
3909         (make_char_code_table): New macro in UTF-2000.
3910         (get_char_code_table): New function in UTF-2000.
3911         (put_char_code_table): New function in UTF-2000.
3912         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3913         (charset_description): Add setting in UTF-2000.
3914         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3915         `CHARSET_TO_BYTE1_TABLE(cs)'.
3916         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3917         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3918         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3919         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3920         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3921         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3922         `CHARSET_TO_BYTE2_TABLE(cs)'.
3923
3924         * char-ucs.h (char_byte_table): New type.
3925         (XCHAR_BYTE_TABLE): New macro.
3926         (XSETCHAR_BYTE_TABLE): New macro.
3927         (CHAR_BYTE_TABLE_P): New macro.
3928         (GC_CHAR_BYTE_TABLE_P): New macro.
3929         (struct Lisp_Char_Byte_Table): New structure.
3930         (get_char_code_table): New interface.
3931         (Emchar_to_byte_table): Deleted.
3932         (get_byte_from_character_table): Deleted.
3933         (struct Lisp_Charset): Add `encoding_table'; delete
3934         `to_byte1_table' and `to_byte2_table'.
3935         (CHARSET_ENCODING_TABLE): New macro.
3936         (CHARSET_TO_BYTE1_TABLE): Deleted.
3937         (CHARSET_TO_BYTE2_TABLE): Deleted.
3938         (XCHARSET_ENCODING_TABLE): New macro.
3939         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3940         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3941
3942 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3943
3944         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3945         `vietnamese-viscii-*'.
3946
3947 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3948
3949         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3950         (Qvietnamese_viscii_upper): New variable.
3951         (Fdefine_charset_alias): New function.
3952         (syms_of_mule_charset): Add new function `define-charset-alias'.
3953         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3954         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3955         `latin-viscii-*'.
3956
3957 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3958
3959         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3960         (MAX_CHAR_OBS_94x94): New macro.
3961         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3962         for 94x94 sets.
3963
3964         * mule-charset.c (put_byte_from_character_table): Change unit size
3965         from 128 to 256.
3966         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3967         not defined.
3968         (Fmake_reverse_direction_charset): Modify dummy argument of
3969         `make_charset' for non-UTF-2000 environment.
3970
3971 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3972
3973         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3974
3975         * mule-charset.c (destroy_byte_from_character_table): New macro.
3976         (latin_jisx0201_to_ucs): Deleted.
3977         (latin_iso8859_2_to_ucs): Deleted.
3978         (latin_iso8859_3_to_ucs): Deleted.
3979         (latin_iso8859_4_to_ucs): Deleted.
3980         (latin_iso8859_9_to_ucs): Deleted.
3981         (latin_viscii_lower_to_ucs): Deleted.
3982         (latin_viscii_upper_to_ucs): Deleted.
3983         (mark_charset): Mark `cs->decoding_table'.
3984         (Fcharset_mapping_table): Fix DOC-string.
3985         (Fset_charset_mapping_table): New function.
3986         (syms_of_mule_charset): Add nwe function
3987         `set-charset-mapping-table'.
3988         (complex_vars_of_mule_charset): Don't setup and use
3989         `latin_*_to_ucs'.
3990
3991 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3992
3993         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3994         charset.
3995
3996 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3997
3998         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3999         (Vcharset_katakana_jisx0208): New variable.
4000         (Qhiragana_jisx0208): New variable.
4001         (Qkatakana_jisx0208): New variable.
4002         (make_charset): Add new argument `byte_offset'.
4003         (charset_get_byte1): Modify for new coded-charset definition; use
4004         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4005         `XCHARSET_BYTE_OFFSET'.
4006         (Fmake_charset): Modify for `make_charset'.
4007         (Fmake_reverse_direction_charset): Likewise.
4008         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4009         `katakana-jisx0208'.
4010         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4011         `.'  in font registry of charset `katakana-jisx0201',
4012         `latin-jisx0201', `vietnamese-viscii-lower' and
4013         `vietnamese-viscii-upper'; modify DOC-string of charset
4014         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4015         registry of charset `japanese-jisx0208' not to use font for JIS
4016         X0208:1990; add new charset `hiragana-jisx0208' and
4017         `katakana-jisx0208'.
4018
4019         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4020         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4021         (struct Lisp_Charset): Add `byte_offset'.
4022         (CHARSET_BYTE_OFFSET): New macro.
4023         (XCHARSET_UCS_MIN): New macro.
4024         (XCHARSET_UCS_MAX): New macro.
4025         (XCHARSET_CODE_OFFSET): New macro.
4026         (XCHARSET_BYTE_OFFSET): New macro.
4027         (MIN_CHAR_HIRAGANA): New macro.
4028         (MAX_CHAR_HIRAGANA): New macro.
4029         (MIN_CHAR_KATAKANA): New macro.
4030         (MAX_CHAR_KATAKANA): New macro.
4031         (MAKE_CHAR): Modify for new coded-charset definition; use
4032         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4033         `XCHARSET_BYTE_OFFSET'.
4034
4035 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4036
4037         * mule-charset.c (CHAR96): Deleted.
4038         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4039         <Lisp_Object>.
4040         (latin_iso8859_2_to_ucs): Likewise.
4041         (latin_iso8859_3_to_ucs): Likewise.
4042         (latin_iso8859_4_to_ucs): Likewise.
4043         (latin_iso8859_9_to_ucs): Likewise.
4044         (latin_viscii_lower_to_ucs): Likewise.
4045         (latin_viscii_upper_to_ucs): Likewise.
4046         (latin_tcvn5712_to_ucs): Commented out.
4047         (make_charset): Change type of argument `decoding_table' from
4048         <Emchar*> to <Lisp_Object> [vector of characters].
4049         (Fmake_charset): Modify for `make_charset'.
4050         (Fmake_reverse_direction_charset): Likewise.
4051         (Fcharset_mapping_table): New function in UTF-2000.
4052         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4053         UTF-2000.
4054         (complex_vars_of_mule_charset): Modify for type change of
4055         `*_to_ucs'; modify for `make_charset'.
4056
4057         * char-ucs.h (struct Lisp_Charset): Change type of
4058         `decoding_table' from <Emchar*> to <Lisp_Object>.
4059         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4060
4061 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4062
4063         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4064         error with non-UTF-2000-Mule.
4065
4066 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4067
4068         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4069         in lisp again].
4070         (Vcharset_chinese_cns11643_4): Likewise.
4071         (Vcharset_chinese_cns11643_5): Likewise.
4072         (Vcharset_chinese_cns11643_6): Likewise.
4073         (Vcharset_chinese_cns11643_7): Likewise.
4074         (Qchinese_cns11643_3): Likewise.
4075         (Qchinese_cns11643_4): Likewise.
4076         (Qchinese_cns11643_5): Likewise.
4077         (Qchinese_cns11643_6): Likewise.
4078         (Qchinese_cns11643_7): Likewise.
4079         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4080         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4081         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4082         (complex_vars_of_mule_charset): Likewise.
4083
4084 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4085
4086         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4087         96-set.
4088         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4089         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4090
4091 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4092
4093         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4094         0xFF60.
4095         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4096         (breakup_char_1): Likewise.
4097
4098         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4099         one of them includes the specified character.
4100
4101 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4102
4103         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4104
4105 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4106
4107         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4108
4109 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4110
4111         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4112         definition for non-UTF-2000 Mule.
4113         (latin_iso8859_3_to_ucs): Likewise.
4114         (latin_iso8859_4_to_ucs): Likewise.
4115         (latin_iso8859_9_to_ucs): Likewise.
4116         (latin_jisx0201_to_ucs): Likewise.
4117         (MIN_CHAR_THAI): Likewise.
4118         (MAX_CHAR_THAI): Likewise.
4119         (MIN_CHAR_GREEK): Likewise.
4120         (MAX_CHAR_GREEK): Likewise.
4121         (MIN_CHAR_HEBREW): Likewise.
4122         (MAX_CHAR_HEBREW): Likewise.
4123         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4124         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4125         (MIN_CHAR_CYRILLIC): Likewise.
4126         (MAX_CHAR_CYRILLIC): Likewise.
4127
4128 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4129
4130         * char-ucs.h (breakup_char_1): Use
4131         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4132         thai-tis620 and katakana-jisx0201 area.
4133
4134 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4135
4136         * char-ucs.h (breakup_char_1): Use
4137         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4138         area.
4139
4140         * text-coding.c (reset_encoding_stream): Fixed.
4141         (char_encode_ucs4): Delete `& 255'.
4142
4143         * char-ucs.h (breakup_char_1): Use
4144         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4145
4146 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4147
4148         * file-coding.c (Fmake_coding_system): Don't set up
4149         `codesys->fixed.size'.
4150         (encode_coding_no_conversion): Don't refer
4151         `str->codesys->fixed.size'.
4152
4153 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4154
4155         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4156         (latin_a_char_to_byte1): Deleted.
4157         (latin_a_char_to_byte2): Deleted.
4158
4159 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4160
4161         * mule-charset.c (make_charset): Add new argument `ucs_min',
4162         `ucs_max' and `code_offset'.
4163         (charset_get_byte1): New implementation [delete specific charset
4164         depended implementations].
4165         (Fmake_charset): Modify for `make_charset'.
4166         (Fmake_reverse_direction_charset): Likewise.
4167         (complex_vars_of_mule_charset): Likewise.
4168
4169         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4170         `code_offset'.
4171         (CHARSET_UCS_MIN): New macro.
4172         (CHARSET_UCS_MAX): New macro.
4173         (CHARSET_CODE_OFFSET): New macro.
4174         (MAKE_CHAR): Delete charset depended definitions [except
4175         katakana-jisx0201].
4176
4177 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4178
4179         * char-ucs.h (breakup_char_1): Use
4180         `Vdefault_coded_charset_priority_list' for C0-Controls,
4181         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4182
4183 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4184
4185         * char-ucs.h (charset_get_byte1): New function.
4186         (XCHARSET_GET_BYTE1): Deleted.
4187         (charset_get_byte2): New function.
4188         (XCHARSET_GET_BYTE2): Deleted.
4189         (Vdefault_coded_charset_priority_list): New external variable.
4190         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4191         `Vdefault_preferred_coded_charset_list'.
4192
4193         * mule-charset.c (charset_get_byte1): New function.
4194         (charset_get_byte2): New function.
4195         (Vdefault_coded_charset_priority_list): New variable.
4196         (vars_of_mule_charset): Add new variable
4197         `default-coded-charset-priority-list'.
4198
4199 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4200
4201         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4202         (XCHARSET_GET_BYTE2): New inline function.
4203         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4204         `XCHARSET_GET_BYTE2'.
4205
4206 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4207
4208         * mule-charset.c (make_charset): Initialize
4209         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4210         NULL if table is not defined.
4211
4212 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4213
4214         * text-coding.c (char_encode_shift_jis): Use
4215         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4216         `ucs_to_latin_jisx0201'.
4217
4218         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4219         (ucs_to_latin_iso8859_2): Deleted.
4220         (ucs_to_latin_iso8859_3): Deleted.
4221         (ucs_to_latin_iso8859_4): Deleted.
4222         (ucs_to_latin_iso8859_9): Deleted.
4223         (ucs_to_latin_viscii_lower): Deleted.
4224         (ucs_to_latin_viscii_upper): Deleted.
4225         (ucs_to_latin_tcvn5712): Deleted.
4226         (make_charset): Add new argument `decoding_table'; set up
4227         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4228         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4229         `decoding_table' is defined in UTF-2000.
4230         (Fmake_charset): Modify for `make_charset'.
4231         (Fmake_reverse_direction_charset): Likewise.
4232         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4233         and `GENERATE_96_SET'.
4234
4235         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4236         (ucs_to_latin_jisx0201): Deleted.
4237         (latin_iso8859_2_to_ucs): Deleted.
4238         (ucs_to_latin_iso8859_2): Deleted.
4239         (latin_iso8859_3_to_ucs): Deleted.
4240         (ucs_to_latin_iso8859_3): Deleted.
4241         (latin_iso8859_4_to_ucs): Deleted.
4242         (ucs_to_latin_iso8859_4): Deleted.
4243         (latin_iso8859_9_to_ucs): Deleted.
4244         (ucs_to_latin_iso8859_9): Deleted.
4245         (latin_viscii_lower_to_ucs): Deleted.
4246         (ucs_to_latin_viscii_lower): Deleted.
4247         (latin_viscii_upper_to_ucs): Deleted.
4248         (ucs_to_latin_viscii_upper): Deleted.
4249         (struct Lisp_Charset): Renamed `encoding_table' to
4250         `to_byte1_table'; add `to_byte2_table'.
4251         (CHARSET_DECODING_TABLE): New macro.
4252         (CHARSET_TO_BYTE1_TABLE): New macro.
4253         (CHARSET_TO_BYTE2_TABLE): New macro.
4254         (XCHARSET_DECODING_TABLE): New macro.
4255         (XCHARSET_TO_BYTE1_TABLE): New macro.
4256         (XCHARSET_TO_BYTE2_TABLE): New macro.
4257         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4258         tables.
4259         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4260         don't use `ucs_to_*' tables.
4261
4262 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4263
4264         * text-coding.c (Fmake_coding_system): Don't set up
4265         `codesys->fixed.size'.
4266         (encode_coding_no_conversion): Use `if' instead of `switch'.
4267
4268         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4269
4270 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4271
4272         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4273         (Fmake_charset): Modify for `make_charset'.
4274         (Fmake_reverse_direction_charset): Likewise.
4275         (complex_vars_of_mule_charset): Likewise.
4276
4277 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4278
4279         * text-coding.c (char_encode_shift_jis): Use table
4280         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4281
4282 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4283
4284         * text-coding.c (text_encode_generic): Use `if' instead of
4285         `switch'.
4286         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4287         decode JIS-Latin.
4288
4289 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4290
4291         * text-coding.c (encode_coding_sjis): Deleted.
4292         (char_encode_shift_jis): New function.
4293         (char_finish_shift_jis): New function.
4294         (reset_encoding_stream): Set up `encode_char' and `finish' for
4295         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4296         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4297         (char_encode_utf8): Treat `eol_type'.
4298
4299 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4300
4301         * file-coding.c (decode_coding_iso2022): Use
4302         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4303
4304 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4305
4306         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4307         to 0.7 (Hirano).
4308
4309 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4310
4311         * char-lb.h (CHAR_COLUMNS): New macro.
4312
4313 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4314
4315         * text-coding.c (char_encode_ucs4): New function.
4316         (char_finish_ucs4): New function.
4317         (encode_coding_ucs4): Deleted.
4318         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4319         (text_encode_generic): Delete local variable `charset' and `half'.
4320         (ucs_to_mule_table): Deleted.
4321         (mule_to_ucs_table): Deleted.
4322         (Fset_ucs_char): Deleted.
4323         (ucs_to_char): Deleted.
4324         (Fucs_char): Deleted.
4325         (Fset_char_ucs): Deleted.
4326         (Fchar_ucs): Deleted.
4327         (decode_ucs4): Deleted.
4328         (mule_char_to_ucs4): Deleted.
4329         (encode_ucs4): Deleted.
4330         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4331         (decode_coding_utf8): Likewise.
4332         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4333         (char_encode_iso2022): Fixed.
4334         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4335         `Fset_char_ucs' and `Fchar_ucs'.
4336         (complex_vars_of_file_coding): Don't initialize
4337         `ucs_to_mule_table'.
4338
4339         * objects-tty.c (tty_initialize_font_instance): Don't use
4340         `XCHARSET_COLUMNS'.
4341
4342         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4343         UTF-2000.
4344
4345         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4346         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4347
4348         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4349         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4350         (emchar_string_displayed_columns): Likewise.
4351
4352         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4353         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4354         (string_column_at_point): Likewise.
4355         (Fmove_to_column): Likewise.
4356
4357         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4358         `encoding_table' and `decoding_table'.
4359         (CHARSET_REP_BYTES): Deleted.
4360         (XCHARSET_REP_BYTES): Deleted.
4361         (XCHARSET_COLUMNS): Deleted.
4362         (CHAR_COLUMNS): New macro.
4363         (lookup_composite_char): Deleted unconditionally.
4364         (composite_char_string): Likewise.
4365
4366 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4367
4368         * char-ucs.h (Emchar_to_byte_table): New type.
4369         (get_byte_from_character_table): New function interface.
4370         (Vcharset_latin_jisx0201): New variable.
4371         (latin_jisx0201_to_ucs): New variable.
4372         (ucs_to_latin_jisx0201): New variable.
4373         (Vcharset_latin_iso8859_2): New variable.
4374         (latin_iso8859_2_to_ucs): New variable.
4375         (ucs_to_latin_iso8859_2): New variable.
4376         (Vcharset_latin_iso8859_3): New variable.
4377         (latin_iso8859_3_to_ucs): New variable.
4378         (ucs_to_latin_iso8859_3): New variable.
4379         (Vcharset_latin_iso8859_4): New variable.
4380         (latin_iso8859_4_to_ucs): New variable.
4381         (ucs_to_latin_iso8859_4): New variable.
4382         (Vcharset_latin_iso8859_9): New variable.
4383         (latin_iso8859_9_to_ucs): New variable.
4384         (ucs_to_latin_iso8859_9): New variable.
4385         (Vcharset_latin_viscii_lower): New variable.
4386         (latin_viscii_lower_to_ucs): New variable.
4387         (ucs_to_latin_viscii_lower): New variable.
4388         (Vcharset_latin_viscii_upper): New variable.
4389         (latin_viscii_upper_to_ucs): New variable.
4390         (ucs_to_latin_viscii_upper): New variable.
4391         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4392         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4393         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4394         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4395         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4396         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4397         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4398         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4399         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4400         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4401
4402         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4403         (Vcharset_latin_viscii_upper): New variable.
4404         (make_byte_from_character_table): New function.
4405         (put_byte_from_character_table): New function.
4406         (get_byte_from_character_table): New function.
4407         (CHAR96): New macro.
4408         (ucs_to_latin_jisx0201): New variable.
4409         (latin_jisx0201_to_ucs): New variable.
4410         (ucs_to_latin_iso8859_2): New variable.
4411         (latin_iso8859_2_to_ucs): New variable.
4412         (ucs_to_latin_iso8859_3): New variable.
4413         (latin_iso8859_3_to_ucs): New variable.
4414         (ucs_to_latin_iso8859_4): New variable.
4415         (latin_iso8859_4_to_ucs): New variable.
4416         (ucs_to_latin_iso8859_9): New variable.
4417         (latin_iso8859_9_to_ucs): New variable.
4418         (ucs_to_latin_viscii_lower): New variable.
4419         (latin_viscii_lower_to_ucs): New variable.
4420         (ucs_to_latin_viscii_upper): New variable.
4421         (latin_viscii_upper_to_ucs): New variable.
4422         (ucs_to_latin_tcvn5712): New variable.
4423         (latin_tcvn5712_to_ucs): New variable.
4424         (Qlatin_viscii_lower): New variable.
4425         (Qlatin_viscii_upper): New variable.
4426         (syms_of_mule_charset): Set up new symbol
4427         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4428         (complex_vars_of_mule_charset): Set up new charset
4429         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4430         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4431         `ucs_to_<CHARSET>' tables.
4432
4433 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4434
4435         * text-coding.c: New file.
4436
4437 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4438
4439         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4440
4441         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4442         (MAKE_CHAR): Modify for `ucs-bmp'.
4443         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4444         non-MULE characters of BMP.
4445
4446 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4447
4448         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4449         to 0.6.
4450
4451 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4452
4453         * lstream.h:
4454         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4455         - Include character.h for `CHAR_ASCII_P'.
4456
4457         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4458
4459         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4460         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4461
4462         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4463         (BYTE_C0_P): Likewise.
4464         (BYTE_C1_P): Likewise.
4465         (Lstream_get_emchar_1): Likewise.
4466         (Lstream_fput_emchar): Likewise.
4467         (Lstream_funget_emchar): Likewise.
4468         (copy_internal_to_external): Likewise.
4469         (copy_external_to_internal): Likewise.
4470
4471         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4472         (BYTE_C0_P): Likewise.
4473         (BYTE_C1_P): Likewise.
4474         (Lstream_get_emchar_1): Likewise.
4475         (Lstream_fput_emchar): Likewise.
4476         (Lstream_funget_emchar): Likewise.
4477         (copy_internal_to_external): Likewise.
4478         (copy_external_to_internal): Likewise.
4479
4480         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4481         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4482
4483         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4484         (BYTE_ASCII_P): Moved to mb-1byte.h.
4485
4486 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4487
4488         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4489
4490         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4491         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4492         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4493         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4494         (VALIDATE_CHARPTR_FORWARD): Likewise.
4495         (simple_charptr_emchar): Moved to mb-multibyte.h.
4496         (simple_set_charptr_emchar): Likewise.
4497         (simple_charptr_copy_char): Likewise.
4498         (non_ascii_charptr_emchar): Likewise.
4499         (non_ascii_set_charptr_emchar): Likewise.
4500         (non_ascii_charptr_copy_char): Likewise.
4501         (charptr_emchar): Moved to mb-*byte.h.
4502         (set_charptr_emchar): Likewise.
4503         (charptr_copy_char): Likewise.
4504
4505         * mb-1byte.h, mb-multibyte.h: New files.
4506
4507 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4508
4509         * mb-utf-8.h (MULTIBYTE): New macro.
4510         (MAX_EMCHAR_LEN): Moved from buffer.h.
4511         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4512
4513         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4514
4515         * mb-lb.h, multibyte.h: New files.
4516
4517         * char-1byte.h (Charset_ID): Moved from buffer.h.
4518         (MIN_LEADING_BYTE): Likewise.
4519         (LEADING_BYTE_ASCII): Likewise.
4520         (NUM_LEADING_BYTES): Likewise.
4521         (CHARSETP): Likewise.
4522         (CHARSET_BY_LEADING_BYTE): Likewise.
4523         (XCHARSET_LEADING_BYTE): Likewise.
4524         (XCHARSET_GRAPHIC): Likewise.
4525         (XCHARSET_COLUMNS): Likewise.
4526         (XCHARSET_DIMENSION): Likewise.
4527         (CHAR_CHARSET): Likewise.
4528         (CHAR_LEADING_BYTE): Likewise.
4529         (BREAKUP_CHAR): Likewise.
4530         (Vcharset_ascii): Likewise.
4531
4532         * buffer.h: Include multibyte.h unconditionally.
4533         (VALID_CHARPTR_P): Moved to multibyte.h.
4534         (ASSERT_VALID_CHARPTR): Likewise.
4535         (REAL_INC_CHARPTR): Likewise.
4536         (REAL_INC_CHARBYTIND): Likewise.
4537         (REAL_DEC_CHARPTR): Likewise.
4538         (INC_CHARPTR): Likewise.
4539         (INC_CHARBYTIND): Likewise.
4540         (DEC_CHARPTR): Likewise.
4541         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4542         (VALIDATE_CHARPTR_FORWARD): Likewise.
4543         (charptr_n_addr): Likewise.
4544         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4545         (simple_charptr_emchar): Moved to multibyte.h.
4546         (simple_set_charptr_emchar): Likewise.
4547         (simple_charptr_copy_char): Likewise.
4548         (non_ascii_charptr_emchar): Likewise.
4549         (non_ascii_set_charptr_emchar): Likewise.
4550         (non_ascii_charptr_copy_char): Likewise.
4551         (charptr_emchar): Likewise.
4552         (set_charptr_emchar): Likewise.
4553         (charptr_copy_char): Likewise.
4554         (charptr_emchar_n): Likewise.
4555         (Charset_ID): Moved to char-1byte.h.
4556         (Vcharset_ascii): Likewise.
4557         (CHAR_CHARSET): Likewise.
4558         (CHAR_LEADING_BYTE): Likewise.
4559         (LEADING_BYTE_ASCII): Likewise.
4560         (NUM_LEADING_BYTES): Likewise.
4561         (MIN_LEADING_BYTE): Likewise.
4562         (CHARSETP): Likewise.
4563         (CHARSET_BY_LEADING_BYTE): Likewise.
4564         (XCHARSET_LEADING_BYTE): Likewise.
4565         (XCHARSET_GRAPHIC): Likewise.
4566         (XCHARSET_COLUMNS): Likewise.
4567         (XCHARSET_DIMENSION): Likewise.
4568         (BREAKUP_CHAR): Likewise.
4569
4570 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4571
4572         * character.h: Add document about interface for characters.
4573
4574         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4575         (MAKE_CHAR): Delete comment about
4576         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4577         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4578         (BREAKUP_CHAR): Modify name of arguments.
4579         (CHAR_CHARSET): Modify name of argument.
4580
4581         * buffer.h: Delete document about Emchar accessors.
4582
4583 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4584
4585         * character.h (CHAR_INTP): Moved from buffer.h
4586         (CHAR_OR_CHAR_INTP): Likewise.
4587         (XCHAR_OR_CHAR_INT): Likewise.
4588         (CHECK_CHAR_COERCE_INT): Likewise.
4589
4590         * buffer.h (CHAR_INTP): Moved to character.h
4591         (CHAR_OR_CHAR_INTP): Likewise.
4592         (XCHAR_OR_CHAR_INT): Likewise.
4593         (CHECK_CHAR_COERCE_INT): Likewise.
4594
4595 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4596
4597         * character.h:
4598         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4599         - Include char-1byte.h, char-lb.h or char-ucs.h.
4600
4601         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4602
4603         * buffer.h: Include character unconditionally.
4604         (valid_char_p): Moved to char-*.h.
4605         (non_ascii_valid_char_p): Moved to char-lb.h.
4606
4607         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4608
4609 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4610
4611         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4612         in UTF-2000 because it is not ported yet and not to use
4613         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4614         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4615         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4616
4617         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4618         (CHAR_ASCII_P): Moved from character.h.
4619
4620         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4621         (CHAR_ASCII_P): Likewise.
4622         (CHAR_FIELD1_MASK): Deleted.
4623         (CHAR_FIELD2_MASK): Deleted.
4624         (CHAR_FIELD3_MASK): Deleted.
4625         (MAX_CHAR_BASIC_LATIN): New macro.
4626         (CHAR_FIELD1): Deleted.
4627         (CHAR_FIELD2_INTERNAL): Deleted.
4628         (CHAR_FIELD3_INTERNAL): Deleted.
4629         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4630         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4631         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4632         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4633         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4634         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4635         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4636         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4637         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4638         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4639         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4640         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4641         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4642         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4643         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4644         (MIN_CHAR_COMPOSITION): Deleted.
4645         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4646         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4647
4648 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4649
4650         * buffer.h: Include mb-utf-8.h in UTF-2000.
4651
4652         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4653
4654         * mb-utf-8.h: New file.
4655
4656 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4657
4658         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4659         instead of `int'.
4660
4661         * mule-charset.h, buffer.h (Charset_ID): New type.
4662
4663 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4664
4665         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4666         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4667         instead of `MULE_CHAR_PRIVATE_OFFSET',
4668         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4669         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4670         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4671
4672         * character.h (Vcharset_japanese_jisx0212): New variable
4673         definition.
4674
4675 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4676
4677         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4678         (charset_by_attributes): Delete array about direction.
4679         (latin_a_char_to_charset): New variable in UTF-2000.
4680         (latin_a_char_to_byte1): New variable in UTF-2000.
4681         (latin_a_char_to_byte2): New variable in UTF-2000.
4682         (Qucs_bmp): New variable.
4683         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4684         `Bufbyte'.
4685         (next_allocated_2_byte_leading_byte): Likewise.
4686         (non_ascii_set_charptr_emchar): Likewise.
4687         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4688         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4689         `charset_by_attributes'.
4690         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4691         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4692         and `CHARSET_BY_LEADING_BYTE'.
4693         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4694         `utf-2000-version' to `vars_of_mule_charset'.
4695         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4696         define `leading-code-private-11' in UTF-2000; move setting of
4697         `utf-2000-version' from `syms_of_mule_charset'.
4698         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4699         UTF-2000.
4700
4701         * character.h (Charset_ID): New type.
4702         (LEADING_BYTE_UCS_BMP): New macro.
4703         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4704         (CHARSET_ID_OFFSET_94): New macro.
4705         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4706         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4707         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4708         final-byte.
4709         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4710         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4711         (CHARSET_ID_OFFSET_96): New macro.
4712         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4713         CHARSET_ID_OFFSET_96 and final-byte.
4714         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4715         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4716         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4717         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4718         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4719         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4720         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4721         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4722         (LEADING_BYTE_THAI_TIS620): Likewise.
4723         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4724         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4725         (CHARSET_ID_OFFSET_94x94): New macro.
4726         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4727         CHARSET_ID_OFFSET_94x94 and final-byte.
4728         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4729         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4730         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4731         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4732         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4733         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4734         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4735         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4736         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4737         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4738         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4739         (CHARSET_TYPE_128X128): New macro.
4740         (CHARSET_TYPE_256X256): New macro.
4741         (XCHARSET_PRIVATE_P): Delete unconditionally.
4742         (charset_by_attributes): Delete array about direction.
4743         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4744         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4745         (MIN_CHAR_94): New macro.
4746         (MAX_CHAR_94): New macro.
4747         (MIN_CHAR_96): New macro.
4748         (MAX_CHAR_96): New macro.
4749         (MIN_CHAR_94x94): New macro.
4750         (MAX_CHAR_94x94): New macro.
4751         (MIN_CHAR_96x96): New macro.
4752         (MAX_CHAR_96x96): New macro.
4753         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4754         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4755         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4756         - 32)'.
4757         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4758         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4759         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4760         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4761         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4762         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4763         `XCHARSET_LEADING_BYTE' to make code-point.
4764         (latin_a_char_to_charset): New variable.
4765         (latin_a_char_to_byte1): New variable.
4766         (latin_a_char_to_byte2): New variable.
4767         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4768         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4769         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4770
4771         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4772         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4773         (find_charsets_in_emchar_string): Likewise.
4774         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4775
4776         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4777         `int'.
4778         (decode_coding_iso2022): Likewise.
4779
4780         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4781         of `unsigned char'.
4782
4783         * redisplay.c (redisplay_text_width_emchar_string): Use
4784         `Charset_ID' instead of `unsigned char'.
4785         (redisplay_frame_text_width_string): Likewise.
4786
4787         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4788         `unsigned char'.
4789
4790         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4791         instead of `unsigned char'.
4792         (face_cachel_charset_font_metric_info): Likewise.
4793
4794         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4795         (get_non_ascii_char_table_value): Likewise.
4796         (get_char_table): Likewise.
4797         (put_char_table): Likewise.
4798         (map_over_other_charset): Likewise.
4799         (map_char_table): Likewise.
4800
4801         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4802         instead of `unsigned char'.
4803
4804 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4805
4806         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4807         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4808
4809         * mule-charset.c (leading_code_private_11): Don't define in
4810         UTF-2000.
4811
4812         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4813         in UTF-2000 because it is not ported yet and not to use
4814         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4815
4816 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4817
4818         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4819
4820 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4821
4822         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4823         in UTF-2000.
4824
4825         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4826         of unsigned char to store leading-byte.
4827
4828         * chartab.c (get_non_ascii_char_table_value): Don't use
4829         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4830
4831         * file-coding.c (encode_coding_big5): Delete bogus implementation
4832         in UTF2000.
4833
4834         * character.h (LEADING_BYTE_*): Delete definition for
4835         non-UTF-2000.
4836         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4837         (LEADING_BYTE_PREFIX_P): Deleted.
4838         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4839         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4840         (BUFBYTE_LEADING_BYTE_P): Deleted.
4841         (CHARSET_PRIVATE_P): Deleted unconditionally.
4842         (rep_bytes_by_first_byte): Deleted unconditionally.
4843         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4844         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4845         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4846         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4847         (CHAR_FIELD2): Deleted.
4848         (CHAR_FIELD3): Deleted.
4849         (MAKE_CHAR): Delete definition for non-UTF-2000.
4850         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4851         (breakup_char_1): New implementation.
4852         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4853         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4854
4855 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4856
4857         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4858         condition.
4859
4860 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4861
4862         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4863         (CHARSET_PRIVATE_P): Likewise.
4864         (XCHARSET_PRIVATE_P): Likewise.
4865         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4866
4867         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4868         UTF2000.
4869         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4870
4871 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4872
4873         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4874         (NUM_LEADING_BYTES): Changed from 128 to 256.
4875         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4876         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4877         UTF2000.
4878         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4879
4880         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4881         UTF2000.
4882         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4883         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4884         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4885         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4886         (Qchinese_cns11643_3): New variable in UTF2000.
4887         (Qchinese_cns11643_4): New variable in UTF2000.
4888         (Qchinese_cns11643_5): New variable in UTF2000.
4889         (Qchinese_cns11643_6): New variable in UTF2000.
4890         (Qchinese_cns11643_7): New variable in UTF2000.
4891         (syms_of_mule_charset): Define `chinese-cns11643-3',
4892         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4893         and `chinese-cns11643-7' in UTF2000.
4894         (vars_of_mule_charset): Initialize
4895         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4896         + 1 in UTF2000.
4897         (complex_vars_of_mule_charset): Setup charset
4898         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4899         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4900
4901 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4902
4903         * mule-charset.c: Move setting for `leading-code-private-11' from
4904         `syms_of_mule_charset' to `vars_of_mule_charset'.
4905
4906 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4907
4908         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4909         and `NUM_LEADING_BYTES' in assert.
4910
4911 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4912
4913         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4914         instead of 128.
4915         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4916         `NUM_LEADING_BYTES' instead of 128.
4917
4918 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4919
4920         * mule-charset.h (charset_by_leading_byte): Use
4921         `NUM_LEADING_BYTES' instead of 128.
4922         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4923
4924         * mule-charset.c (charset_by_leading_byte): Use
4925         `NUM_LEADING_BYTES' instead of 128.
4926         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4927
4928         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4929         128.
4930
4931 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4932
4933         * mule-charset.c (syms_of_mule_charset): Update to
4934         0.4 (Shin-Imamiya).
4935
4936 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4937
4938         * file-coding.c (encode_coding_sjis): New implementation for
4939         UTF2000.  (decode_coding_sjis): Ditto.
4940
4941 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4942
4943         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4944         Don't define in UTF2000.
4945
4946         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4947         defined.
4948
4949         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4950         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4951         MULE.
4952
4953 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4954
4955         * config.h.in (CHAR_IS_UCS4): New macro.
4956
4957         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4958         conventional MULE representation.
4959         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4960
4961         * mule-charset.h: Reverted to original.
4962
4963         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4964         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4965         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4966
4967         * character.h: New file.
4968
4969         * file-coding.c (Fmake_coding_system): Set 1 to
4970         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4971         defined.
4972         (encode_coding_no_conversion): New implementation for UTF2000.
4973
4974         * file-coding.h (struct Lisp_Coding_System): Add new member
4975         `fixed.size'.
4976
4977 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4978
4979         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4980         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4981         (encode_coding_iso2022): New implementation for UTF2000.
4982
4983 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4984
4985         * mule-canna.c (c2mu): New implementation for UTF2000.
4986         (m2c): Likewise.
4987
4988 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4989
4990         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4991
4992 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4993
4994         * file-coding.c (reset_encoding_stream): Set 0 to
4995         `str->iso2022.current_char_boundary' in UTF2000.
4996         (encode_utf8): Don't define in UTF2000.
4997         (encode_coding_utf8): New implementation for UTF-8 representation
4998         of UTF2000.
4999         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5000
5001 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5002
5003         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5004
5005         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5006         UTF2000.
5007         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5008
5009         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5010
5011         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5012         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5013         as UTF-8 in UTF2000.
5014         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5015         (non_ascii_valid_char_p): Don't define in UTF2000.
5016         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5017         (Lstream_get_emchar_1): Likewise.
5018         (utf-2000-version): New variable in UTF2000.
5019
5020         * lread.c (read_escape): Add new reader `u'.
5021
5022         * insdel.c (three_to_one_table): Don't define in UTF2000.
5023         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5024         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5025         UTF2000.
5026         (bytind_to_bufpos_func): Likewise.
5027         (buffer_mule_signal_inserted_region): Likewise.
5028         (vars_of_insdel): Don't initialize `three_to_one_table'.
5029         (init_buffer_text): Use `buf->text->mule_size' instead of
5030         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5031         UTF2000.
5032
5033         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5034         UTF-8 representation in UTF2000.
5035         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5036         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5037         (decode_coding_iso2022): Don't define local variable `lb' in
5038         UTF2000; don't use LEADING_BYTE in UTF2000; use
5039         `DECODE_ADD_UCS_CHAR' in UTF2000.
5040         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5041
5042         * config.h.in (UTF2000): New macro.
5043
5044         * buffer.h (struct buffer_text): Add new member `mule_size' and
5045         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5046         (valid_char_p): Return always 1 in UTF2000.
5047         (MAX_EMCHAR_LEN): 6 in UTF2000.
5048         (three_to_one_table): Don't define in UTF2000.
5049         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5050         UTF2000.
5051         (real_bytind_to_bufpos): Likewise.
5052
5053         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5054
5055 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5056
5057         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5058         representation change.
5059         (Vutf_2000_version): New variable.
5060         (leading_code_private_11): New variable.
5061         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5062         `leading-code-private-11'.
5063
5064         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5065         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5066         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5067         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5068         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5069         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5070         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5071         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5072         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5073         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5074         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5075         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5076         (MIN_CHAR_GREEK): New macro.
5077         (MAX_CHAR_GREEK): New macro.
5078         (MIN_CHAR_CYRILLIC): New macro.
5079         (MAX_CHAR_CYRILLIC): New macro.
5080         (MIN_CHAR_HEBREW): New macro.
5081         (MAX_CHAR_HEBREW): New macro.
5082         (MIN_CHAR_THAI): New macro.
5083         (MAX_CHAR_THAI): New macro.
5084         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5085         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5086         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5087         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5088         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5089         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5090         (CHAR_FIELD2): New inline function.
5091         (CHAR_FIELD3): New inline function.
5092         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5093         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5094         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5095         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5096         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5097         (MIN_CHAR_COMPOSITION): Likewise.
5098         (CHAR_LEADING_BYTE): Modified for character representation change.
5099         (MAKE_CHAR): Likewise.
5100
5101         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5102         (Vcharset_greek_iso8859_7): Likewise.
5103         (Vcharset_cyrillic_iso8859_5): Likewise.
5104         (Vcharset_hebrew_iso8859_8): Likewise.
5105         (Vcharset_thai_tis620): Likewise.
5106         (Vcharset_katakana_jisx0201): Likewise.
5107
5108 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5109
5110         * XEmacs 21.4.12 "Portable Code" is released.
5111
5112 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5113
5114         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5115         * s/cygwin.sc: new linker file.
5116
5117 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5118
5119         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5120
5121         * redisplay-x.c (x_output_string): Use X11-specified types.
5122         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5123         * emacs.c (__free_hook): Use typeof with Intel compiler.
5124         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5125
5126 2003-01-08  Andy Piper  <andy@xemacs.org>
5127
5128         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5129         reserve size during unexec().
5130
5131 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5132
5133         * process-unix.c (unix_create_process): Don't let outchannel block.
5134
5135 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5136
5137         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5138         Needed for IsBadReadPtr().
5139
5140 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5141
5142         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5143
5144 2002-12-14  Ben Wing  <ben@xemacs.org>
5145
5146         * callint.c: Declaration error.
5147         * dumper.c (pdump):
5148         * dumper.c (pdump_load): Warning fix.
5149         * process.c: GCPRO error.
5150         * glyphs.c (unmap_subwindow):
5151         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5152         * event-stream.c (maybe_kbd_translate): Wrong argument to
5153         character_to_event().
5154
5155         * alloc.c (garbage_collect_1):
5156         * emacs.c:
5157         * emacs.c (debug_can_access_memory):
5158         * emacs.c (fatal_error_signal):
5159         * emacs.c (mswindows_handle_hardware_exceptions):
5160         * emacs.c (main_1):
5161         * emacs.c (main):
5162         * emacs.c (assert_failed):
5163         * emacs.c (syms_of_emacs):
5164         * lisp.h:
5165         * print.c:
5166         * print.c (std_handle_out_va):
5167         * print.c (write_string_to_stdio_stream):
5168         * print.c (write_fmt_string):
5169         * print.c (printing_badness):
5170         * print.c (printing_major_badness):
5171         * print.c (print_internal):
5172         * print.c (debug_print_no_newline):
5173         * print.c (debug_backtrace):
5174         Be more defensive in handling bad values when printing.  Add code
5175         from trunk involving inhibit_non_essential_printing_operations.
5176         When going down or in debug_print(), don't do external conversion
5177         and such and try really, really hard when printing to avoid core
5178         dumping.  Add force-debugging-signal, debug_break().
5179
5180 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5181
5182         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5183         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5184
5185 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5186
5187         * database.c: Fix open_database. Berkeley DB API has changed in
5188         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5189
5190 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5191
5192         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5193
5194 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5195
5196         * event-Xt.c (Xt_timeout):
5197         (Xt_timeout_callback):
5198         (emacs_Xt_add_timeout):
5199         (emacs_Xt_remove_timeout):
5200         (Xt_timeout_to_emacs_event):
5201         Turn completed_timeouts from a stack into a queue.  Fixes
5202         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5203
5204 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5205
5206         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5207         * emacs.c (main): Assert that mmap'd allocation is disabled.
5208
5209 2002-10-14  Andy Piper  <andy@xemacs.org>
5210
5211         * glyphs-widget.c (layout_query_geometry): add in fiddle
5212         factor. Include border text in width layout calculation.
5213         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5214
5215 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5216
5217         * XEmacs 21.4.10 "Military Intelligence" is released.
5218
5219 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5220
5221         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5222         using the NAS private array SoundFileInfo that no longer exists in
5223         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5224         and earlier.  This is broken for some versions between 1.5a and
5225         1.5f.
5226
5227 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5228
5229         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5230
5231         * emacs.c (shut_down_emacs): Improve crash message.
5232
5233 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5234
5235         * file-coding.c (determine_real_coding_system): Check for coding
5236         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5237         shebangs and Python PEP 263.
5238
5239 2002-10-08  Andy Piper  <andy@xemacs.org>
5240
5241         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5242         if static sizes haven't been set.
5243
5244 2002-08-30  Mike Alexander  <mta@arbortext.com>
5245
5246         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5247         to close a socket.
5248
5249 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5250
5251         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5252
5253 2002-09-20  Mike Sperber <mike@xemacs.org>
5254
5255         (This partially gets back my patch from 2002-07-20 without the
5256         bug.)
5257         * callproc.c (child_setup): Remove Ben's comment noting confusion
5258         over the file descriptors >= 3: close_process_descs() doesn't
5259         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5260         * process-unix.c (unix_create_process): Call
5261         begin_dont_check_for_quit to inhibit unwanted interaction (and
5262         thus breaking of X event synchronicity) in the child.
5263
5264 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5265
5266         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5267         widget.
5268
5269 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5270
5271         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5272         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5273         the xemacs process did not exit, but looped infinitely here.  This
5274         fixes that problem.
5275
5276 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5277
5278         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5279         (find_context): Improve comments.
5280
5281         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5282         (re_match_2): An XCHAR_TABLE operation was missing.
5283
5284         Many of the following changes were inspired by Andy Piper's (now
5285         obsolete) patch to make syntax-table text property lookup optional.
5286
5287         [Documentation]
5288
5289         * syntax.h (top level): Document semantics of syntax flags.
5290         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5291         * syntax.c, syntax.h (top level): Document syntax cache better in
5292         comments.
5293
5294         [Instrument syntax caching (temporary change)]
5295
5296         * syntax.h (enum syntax_cache_statistics_functions, struct
5297         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5298         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5299         * syntax.c (scan_words, Fforward_comment, scan_lists,
5300         Fbackward_prefix_characters):
5301         * font-lock.c (find_context):
5302         Use them to instrument syntax caching. 
5303         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5304         syntax_cache_statistics_function_names): New type and variables.
5305         * syntax.c (update_syntax_cache): Update and report statistics.
5306
5307         [Major syntax cache optimizations]
5308
5309         syntax.c (lookup_syntax_properties): Default off.
5310
5311         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5312         * syntax.c (update_syntax_cache):
5313         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5314
5315         [Minor syntax cache optimizations and code clarifications]
5316
5317         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5318         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5319         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5320         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5321         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5322         (Code clarification.)
5323
5324         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5325         scan_lists): Compute code from syncode, use Boolean macros instead
5326         of redundant masking operations.  (Code clarification; any decent
5327         compiler can do this optimization.)
5328
5329         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5330         for clarity.
5331
5332         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5333         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5334         use F*_single_property_change instead of F*_extent_change.
5335         Currently F*_single_property_change is _much_ less efficient.
5336
5337         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5338         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5339         syntax_cache.object properly, don't leave Qt or Qnil.
5340         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5341         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5342         tests for Qt or Qnil.
5343
5344 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5345
5346         * redisplay.c (point_in_line_start_cache): 
5347         * extents.c (print_extent_1):
5348         Fix warnings.
5349
5350         * extents.c (Fset_extent_property): Document `syntax-table' property.
5351
5352         * extents.h (Fnext_single_property_change): EXFUN it.
5353
5354 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5355
5356         * search.c (clear_unused_search_regs): New static function.
5357         (search_buffer): 
5358         (simple_search): 
5359         (boyer_moore):
5360         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5361         Minor clarifications in comments.
5362
5363         * regex.c (re_match_2_internal): Ensure no stale submatches.
5364
5365 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5366
5367         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5368
5369 2002-08-29  Jerry James  <james@xemacs.org>
5370
5371         * lisp.h: structrures -> structures.
5372
5373 2002-06-03  Andy Piper  <andy@xemacs.org>
5374
5375         * frame.c (frame_conversion_internal): add conversion appropriate
5376         for setting frame dimensions in pixels.
5377
5378         * console.h (struct console_methods): add device-specific widget
5379         layout functions.
5380
5381         * emacs.c (main_1): initialize glyph vars.
5382
5383         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5384         (handle_focus_event_2): new function. Allow focus to
5385         be set to a particular window and widget.
5386         (enqueue_focus_event): new function. Create a
5387         synthetic focus event.
5388         (emacs_Xt_handle_magic_event): call
5389         handle_focus_event_2.
5390
5391         * frame.c (Fset_frame_pixel_height): new function. Allow
5392         pixel-based sizing. Does the right thing on character-oriented
5393         displays.
5394         (Fset_frame_pixel_width): ditto.
5395         (Fset_frame_pixel_size): ditto.
5396         (syms_of_frame): declare.
5397
5398         * general-slots.h: add :vertically-justify and
5399         :horizontally-justify.
5400
5401         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5402         (mswindows_widget_border_width): new function.
5403         (mswindows_combo_box_instantiate): set border widths.
5404         (console_type_create_glyphs_mswindows): declare.
5405
5406         * glyphs-widget.c:
5407         (check_valid_justification): allow vertical and horizontal
5408         justification.
5409         (widget_border_width): new function. Call device methods.
5410         (widget_instance_border_width): ditto.
5411         (logical_unit_height): new function. Determine the height of a
5412         logical-unit. Logical units are intended to provide grid-like
5413         layout for subcontrols in a layout. If the layout is
5414         :vertically-justify top then subcontrols will be positioned on
5415         logical-unit boundaries, thus allowing adjacent subcontrols to
5416         line up.
5417         (widget_logical_unit_height): ditto for widgets.
5418         (redisplay_widget): misc cleanup.
5419         (widget_spacing): new function. Call device specific
5420         methods. Intended to be the default gap between adjacent widgets.
5421         (widget_query_geometry): use new spacing functions to determine
5422         appropriate geometry.
5423         (initialize_widget_image_instance): initialize horizontal and
5424         vertical justification.
5425         (widget_instantiate): use logica-units where appropriate for
5426         sizing large widgets.
5427         (button_query_geometry): use widget_instance_border_width.
5428         (tree_view_query_geometry): ditto.
5429         (tab_control_query_geometry): ditto.
5430         (edit_field_query_geometry): new function.
5431         (layout_update): pick up :justify, :horizontally-justify and
5432         :vertically-justify none of which worked previously. :justify is
5433         used as a fallback for both horizontal and vertical justification.
5434         (layout_query_geometry): use logical units to size appropriately.
5435         (layout_layout): ditto.
5436         (Fwidget_logical_to_character_width): new function. Allow users to
5437         convert from logical units to characters so that frame sizes can
5438         be set appropriately.
5439         (Fwidget_logical_to_character_height): ditto.
5440         (syms_of_glyphs_widget): declare.
5441         (image_instantiator_edit_fields): add edit_field_query_geometry.
5442         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5443         :horizontally-justify.
5444         (specifier_vars_of_glyphs_widget): new function. Declare
5445         Vwidget_border_width which is not yet used.
5446
5447         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5448         (x_widget_border_width): new function.
5449         (x_widget_instantiate): create a sensible name for widgets.
5450         (console_type_create_glyphs_x): declare x_widget_border_width.
5451
5452         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5453         (struct Lisp_Image_Instance): add :vertically-justify and
5454         :horizontally-justify.
5455         (LAYOUT_JUSTIFY_TOP): new.
5456         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5457         (ROUND_UP): new macro. Round argument up to next integral
5458         interval.
5459
5460         * redisplay-output.c (redisplay_output_layout): misc formatting.
5461
5462         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5463
5464 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5465
5466         * XEmacs 21.4.9 "Informed Management" is released.
5467
5468 2002-08-19  Andy Piper  <andy@xemacs.org>
5469
5470         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5471         win32 format.
5472
5473         * realpath.c (xrealpath): normalize drive spec also so that dir
5474         sep chars are not mixed on cygwin.
5475
5476 2002-08-06  Jerry James  <james@xemacs.org>
5477
5478         * window.c (Fsplit_window): Count only half of the divider width
5479         against the left window when splitting horizontally. 
5480
5481 2002-06-24  Andy Piper  <andy@xemacs.org>
5482
5483         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5484         toolbar was cleared.
5485
5486         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5487         function. Split out from mswindows_output_frame_toolbars.
5488         (mswindows_output_frame_toolbars): move clear pieces to
5489         mswindows_output_frame_toolbars.
5490
5491         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5492         out from gtk_output_frame_toolbars.
5493         (gtk_output_frame_toolbars): move clear pieces to
5494         gtk_clear_frame_toolbars.
5495
5496         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5497         the frame is cleared. How this ever worked before is a mystery.
5498         (x_output_frame_toolbars): Only output toolbars.
5499         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5500
5501         * gutter.c (update_gutter_geometry):
5502         Mark frame layout changed.
5503         (update_frame_gutter_geometry, update_frame_gutters):
5504         Respect frame_layout_changed.
5505
5506         * console.h (struct console_methods): add
5507         clear_frame_toolbars_method.
5508
5509         * redisplay.c (redisplay_frame): call
5510         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5511
5512         * toolbar.h: declare update_frame_toolbars_geometry.
5513
5514         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5515         out from update_frame_toolbars.  Call clear_frame_toolbars.
5516         (update_frame_toolbars): only output, do not change geometry.
5517
5518         * redisplay.c: add frame_layout_changed.
5519
5520         * redisplay.h: add frame_layout_changed.
5521         (CLASS_RESET_CHANGED_FLAGS): set it.
5522         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5523         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5524         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5525
5526         * device.h (struct device): add frame_layout_changed.
5527         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5528
5529         * frame.h (struct frame): add frame_layout_changed.
5530         (MARK_FRAME_LAYOUT_CHANGED): new.
5531
5532 2002-06-30  Mike Alexander  <mta@arbortext.com>
5533
5534         * event-msw.c (mswindows_need_event): Don't wait for a new message
5535         if the queue is not empty.  Suggested by Paul Moore.
5536
5537 2002-06-12  Andy Piper  <andy@xemacs.org>
5538
5539         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5540         for printing on accurately.
5541
5542 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5543
5544         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5545         WM_ACTIVATE message. Make sure that the frame is visible if the
5546         window is visible. This seemss to fix the problem where XEmacs
5547         appears to freeze after switching desktops with certain virtual
5548         window managers.
5549         (debug_output_mswin_message): Added code to output message
5550         parameters for WM_WINDOWPOSCHANGED, 
5551         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5552
5553 2002-05-25  Andy Piper  <andy@xemacs.org>
5554
5555         * select-x.c (vars_of_select_x): Fix docstring of
5556         x-selection-strict-motif-ownership
5557
5558 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5559
5560         * keymap.c (get_keymap):
5561         Add comment about do_autoload GCPROs own args.
5562
5563 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5564
5565         * bytecode.c (execute_optimized_program): check_opcode ifdef
5566         ERROR_CHECK_BYTE_CODE.
5567
5568 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5569
5570         Thanks to Ben Wing and Michael Sperber.
5571
5572         * eval.c (Fcommand_execute):
5573         (Feval):
5574         (Ffuncall):
5575         (Fmacroexpand_internal):
5576         (function_argcount):
5577         callint.c (Fcall_interactively):
5578         Add comment about do_autoload GCPROs own args.
5579
5580         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5581
5582         * eval.c (Ffuncall): Extra braces to placate GCC.
5583
5584 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5585
5586         * backtrace.h (grow_specpdl):
5587         (SPECPDL_RESERVE):
5588         * EmacsFrame.c (EmacsFrameSetValues):
5589         * eval.c (grow_specpdl):
5590         * ExternalShell.c (hack_event_masks_1):
5591         * glyphs-x.c (convert_EImage_to_XImage): 
5592         (x_finalize_image_instance):
5593         * ralloc.c (page_size):
5594         (r_alloc_sbrk):
5595         * xgccache.c (gc_cache_hash):
5596         Fix unsigned comparison warnings.
5597
5598 2002-07-29  Jerry James  <james@xemacs.org>
5599
5600         * lread.c (locate_file): Any nonnegative return value indicates
5601         success if MODE is nonnegative.
5602
5603 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5604
5605         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5606         argument. 
5607
5608 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5609
5610         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5611
5612         * dumper.c (pdump_get_indirect_count):
5613         (pdump_scan_by_alignment):
5614         (pdump_dump_root_struct_ptrs):
5615         (pdump_dump_rtables):
5616         (pdump_dump_root_objects):
5617         (pdump):
5618         * nas.c (WaveOpenDataForReading):
5619         * fns.c (print_bit_vector):
5620         * font-lock.c (SINGLE_SYNTAX_STYLE):
5621         * glyphs.c (check_for_ignored_expose):
5622         (find_matching_subwindow):
5623         * glyphs-eimage.c:
5624         * imgproc.c (get_histogram):
5625         * redisplay.c (point_in_line_start_cache):
5626         * redisplay-output.c (redisplay_unmap_subwindows):
5627         * symbols.c (defsymbol_massage_name_1):
5628         (defkeyword_massage_name):
5629         (deferror_massage_name_and_message):
5630         * redisplay-x.c (x_output_string): 
5631         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5632         * frame.h (struct frame):
5633         * filelock.c (current_lock_owner):
5634         * doprnt.c (emacs_doprnt_1):
5635         * lisp.h (struct Lisp_Bit_Vector):
5636         (DO_REALLOC):
5637         Fix warnings.
5638
5639 2002-02-13  Ben Wing  <ben@xemacs.org>
5640
5641         * event-stream.c (reset_key_echo):
5642         * event-stream.c (reset_this_command_keys):
5643         * event-stream.c (execute_command_event):
5644         If console is dead as a result of C-x 5 0, then post-command stuff
5645         needs to be careful and do only non-console-specific stuff.
5646
5647 2002-07-01  Mike Sperber <mike@xemacs.org>
5648
5649         * process-unix.c (unix_send_process): Mark coding_outstream as
5650         non-open upon SIGPIPE.
5651
5652         * event-stream.c (Fnext_event): Reorder switch cases to something
5653         that makes sense.
5654
5655 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5656
5657         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5658         Don't bogusly reinitialize ascii_character property.
5659
5660 2002-07-08  Mike Sperber <mike@xemacs.org>
5661
5662         * process.c (Fstart_process_internal): Do error checking before we
5663         fork off the child, so the child can't muck with the state of the
5664         parent.
5665
5666 2002-07-08  Mike Sperber <mike@xemacs.org>
5667
5668         * ralloc.c (init_ralloc): Allocate properly for pdump.
5669
5670 2002-06-12  Andy Piper  <andy@xemacs.org>
5671
5672         * glyphs.c (query_string_geometry): check the string.
5673
5674         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5675         widget names.
5676
5677 2002-06-17  Jerry James  <james@xemacs.org>
5678
5679         * sysdll.c: Remove RTLD_GLOBAL initialization.
5680         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5681
5682 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5683
5684         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5685
5686 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5687
5688         * sysdep.c (sys_rename): Make sys_rename work for the case where
5689         Windows rename sets errno to EACCES if target file exists.
5690
5691 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5692
5693         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5694         Fix detection of metric units to work on Win95
5695
5696 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5697
5698         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5699
5700 2002-04-25  Andy Piper  <andy@xemacs.org>
5701
5702         * redisplay.c (create_text_block): Remove extra comment trailer.
5703
5704 2002-04-24  Andy Piper  <andy@xemacs.org>
5705
5706         * redisplay.c (create_text_block): Don't actually add propagation
5707         data if the line ends after we have added a glyph.
5708
5709 2002-04-22  Andy Piper  <andy@xemacs.org>
5710
5711         * extents.c (extent_fragment_update): check for glyphs we have
5712         previously displayed.
5713         * extents.c (print_extent_1): warning removal.
5714         * extents.h: change prototype.
5715         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5716         widths correctly for wide glyphs.
5717         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5718         * redisplay.c (prop_type): add PROP_GLYPH.
5719         * redisplay.c (struct prop_block): add glyph type
5720         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5721         to the propagation data.
5722         * redisplay.c (create_text_block): if there is a glyph in the
5723         propagation data use it to salt extent_fragment_update.
5724         * redisplay.c (create_string_text_block): ditto.
5725
5726 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5727
5728         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5729         * redisplay-output.c (compare_runes): Compare them.
5730         * redisplay.c: Update copyright date.
5731         * redisplay.c (pos_data): Add need_baseline_computation field.
5732         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5733         need_baseline_computation; zero yoffset. Set max_pixmap_height
5734         for all pixmaps, not just automatically positioned ones.
5735         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5736         * redisplay.c (calculate_baseline): New, compute textual baseline.
5737         * redisplay.c (add_glyph_rune): Call them.
5738         * redisplay.c (create_text_block): Likewise.
5739         * redisplay.c (create_overlay_glyph_block): Likewise.
5740         * redisplay.c (add_margin_runes): Likewise.
5741         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5742
5743         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5744         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5745         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5746         * redisplay-msw.c (mswindows_output_string): Likewise.
5747         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5748         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5749         * redisplay-x.c (x_output_display_block): Likewise.
5750
5751 2002-03-28  Ben Wing  <ben@xemacs.org>
5752
5753         * redisplay.c: Fixed bug in redisplay
5754         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5755         and down of the lines, since they're bigger than the line
5756         size. (It was seen most obviously when there's a horizontal scroll
5757         bar, e.g. do C-h a glyph or something like that.) The problem was
5758         that the glyph-contrib-p setting on glyphs was ignored even if it
5759         was set properly, which it wasn't until now.
5760
5761 2002-04-24  Andy Piper  <andy@xemacs.org>
5762
5763         * lisp.h (Dynarr_end): Fix definition.
5764
5765 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5766
5767         * redisplay.c (mark_redisplay): Remove call to
5768         update_frame_window_mirror.
5769
5770 2001-11-15  Andy Piper  <andy@xemacs.org>
5771
5772         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5773         cygwin (again).
5774
5775 2002-02-13  Andy Piper  <andy@xemacs.org>
5776
5777         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5778         we did in fact enqueue the XM_MAPFRAME event.
5779
5780 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5781
5782         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5783         to fix problem switching between virtual desktops under virtuawin
5784         virtual window manager.
5785
5786 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5787
5788         * event-msw.c: Typo fix.
5789         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5790         magic XM_MAPFRAME event has been sent.
5791
5792 2001-11-23  Andy Piper  <andy@xemacs.org>
5793
5794         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5795
5796 2001-11-21  Andy Piper  <andy@xemacs.org>
5797
5798         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5799         mouse events outside the frame.
5800
5801 2002-03-20  Andy Piper  <andy@xemacs.org>
5802
5803         * menubar-msw.c (mswindows_popup_menu): warning removal.
5804         * dialog-msw.c (dialog_popped_down): ditto.
5805
5806 2001-12-11  Andy Piper  <andy@xemacs.org>
5807
5808         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5809         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5810         popup_up_p.
5811         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5812         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5813         * menubar-msw.c (mswindows_popup_menu): ditto.
5814
5815 2001-10-29  Andy Piper  <andy@xemacs.org>
5816
5817         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5818         cancels.
5819
5820 2002-01-03  Andy Piper  <andy@xemacs.org>
5821
5822         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5823         letters.
5824         (xrealpath): ditto.
5825
5826 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5827
5828         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5829         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5830         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5831         Detect and handle case where machine is set up for metric units
5832
5833 2002-04-02  Andy Piper  <andy@xemacs.org>
5834
5835         * dired-msw.c (mswindows_get_files): 
5836         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5837         completely handled by XEmacs. Suggested by Thomas Vogler
5838         <mail@thomas-vogler.de>.
5839
5840 2001-11-14  Andy Piper  <andy@xemacs.org>
5841
5842         * nt.c (REG_ROOT): change registry key to XEmacs.
5843
5844 2002-04-27  Andy Piper  <andy@xemacs.org>
5845
5846         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5847
5848 2002-04-26  Andy Piper  <andy@xemacs.org>
5849
5850         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5851         behavior.
5852
5853 2002-03-14  Mike Alexander  <mta@arbortext.com>
5854
5855         * event-msw.c (mswindows_unwait_process): New, remove process from
5856         wait list
5857         * process-nt.c (nt_finalize_process_data): Call
5858         mswindows_unwait_process
5859         * console-msw.h: Declare mswindows_unwait_process
5860
5861 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5862
5863         * editfns.c (Fdecode_time):
5864         (Fformat_time_string):
5865         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5866         (make_time): Warning elimination (change arg name).
5867
5868 2001-11-24  Andy Piper  <andy@xemacs.org>
5869
5870         * window.c (Fsplit_window): Doc return type.
5871
5872 2002-04-01  Andy Piper  <andy@xemacs.org>
5873
5874         * emacs.c (Fkill_emacs): Only output message box in interactive
5875         mode.
5876
5877 2002-04-26  Andy Piper  <andy@xemacs.org>
5878  
5879         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5880         cygwin.
5881
5882 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5883
5884         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5885         bit platform.
5886
5887 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5888
5889         * XEmacs 21.4.8 "Honest Recruiter" is released.
5890
5891 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5892
5893         Supersedes 2002-04-17 patch.
5894
5895         * process.h (PROCESS_LIVE_P): Use the process status as
5896         evidence of health, not the state of the input stream.
5897         (PROCESS_READABLE_P): Say if the process is readable
5898         from. (It may be dead nonetheless.)
5899         (CHECK_READABLE_PROCESS): Test for that condition.
5900
5901         * process.c (create_process): Use PROCESS_READABLE_P.
5902         (read_process_output, set_process_filter): Likewise.
5903
5904         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5905         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5906
5907         This code is #if 0'd, this is not the time to add new functions:
5908
5909         * process.c (Fprocess_readable_p): Report readability status.
5910         * process.c (Qprocess_readable_p): New, associated symbol...
5911         * process.c (syms_of_process): ... initialize it.
5912
5913 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5914
5915         * XEmacs 21.4.7 "Economic Science" is released.
5916
5917 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5918
5919         * process.h (PROCESS_LIVE_P): Use the process status as
5920         evidence of health, not the state of the input stream.
5921
5922 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5923
5924         * sysdep.c (sys_siglist): change "signum" to "signal"
5925
5926 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5927
5928         * s/darwin.h: New file.
5929         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5930         
5931 2002-04-23  Andreas Jaeger  <aj@suse.de>
5932
5933         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5934         which use lib64 for 64-bit libs.
5935         (START_FILES): Likewise.
5936
5937 2002-02-11  Mike Sperber  <mike@xemacs.org>
5938
5939         * device-x.c: 
5940         (x_IO_error_handler):
5941         (x_init_device): Temporarily keep device in static variable
5942         `device_being_initialized' so we can recover gracefully from
5943         internal XOpenDevice failure.  (XOpenDevice is documented to
5944         return NULL on failure, but sometimes calls the IO error handler
5945         instead.)
5946
5947 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5948
5949         * dired.c (Ffile_name_all_completions): Change documentation --
5950         remove reference to completion-ignored-extensions.
5951         * dired.c (vars_of_dired): Change documentation for
5952         completion-ignored-extensions -- remove reference to
5953         file-name-all-completions.
5954
5955 2002-03-06  Jerry James  <james@xemacs.org>
5956
5957         * emodules.c (emodules_load): Fix multiple loading of same module.
5958
5959 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5960         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5961         RTLD_LAZY to avoid incorrect symbol binding when using nested
5962         shared libraries on Solaris.
5963
5964 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5965
5966         * fileio.c (Ffind_file_name_handler): Improve docstring.
5967
5968 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5969
5970         * fns.c (Fmapconcat): Improve docstring.
5971
5972 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5973
5974         * device-gtk.c: Add prototype for
5975         emacs_gtk_selection_clear_event_handle.
5976         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5977         selection.  Setup signal handler for "selection_clear_event"
5978         (emacs_gtk_selection_clear_event_handle).
5979
5980         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5981         other applications owning the clipboard (based on
5982         x_handle_selection_clear).
5983
5984 2001-12-23  William M. Perry  <wmperry@gnu.org>
5985
5986         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5987         
5988 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5989
5990         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5991
5992 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5993
5994         * XEmacs 21.4.6 "Common Lisp" is released.
5995
5996 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5997
5998         * search.c (Freplace_match): Add missing sub-expression functionality.
5999
6000         * buffer.c (decode_buffer): Add a check for pointer type to
6001         decode_buffer, before gcc's CSE optimization reorders a
6002         dereference in front of the allow_string test.
6003
6004 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6005
6006         * window.c (window_loop): Fix bug that sometimes prevented
6007         window_loop() from iterating across multiple devices.  Also, at
6008         Ben's request, changed infloop-detecting code to abort() instead
6009         of silently terminating window_loop().
6010
6011 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6012
6013         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6014         * editfns.c (make_time): New function.
6015         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6016         * lisp.h (make_time): Prototype and comment it.
6017         * dired.c (wasteful_word_to_lisp): Deprecate.
6018         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6019
6020 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6021
6022         * fileio.c (auto_save_1): Use current coding system, not
6023         escape-quoted.
6024
6025 2001-11-13  Ben Wing  <ben@xemacs.org>
6026
6027         * window.c:
6028         * window.c (window_truncation_on):
6029         * window.c (syms_of_window):
6030         truncate-partial-width-windows should respect the buffer being
6031         displayed, like other redisplay vars.
6032
6033 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6034
6035         * event-stream.c (Fread_key_sequence): save current buffer.
6036
6037 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6038
6039         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6040
6041 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6042
6043         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6044
6045 2001-10-26  Mike Alexander  <mta@arbortext.com>
6046
6047         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6048
6049 2001-10-25  Andy Piper  <andy@xemacs.org>
6050
6051         * ChangeLog:
6052         * dialog-msw.c (handle_directory_proc): new function.
6053          (handle_directory_dialog_box): new fucntion.
6054          (handle_file_dialog_box): use new directory dialog support.
6055          (mswindows_make_dialog_box_internal): ditto.
6056         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6057         handling.
6058         (mswindows_find_frame): make global.
6059         * fileio.c (Fexpand_file_name): build fix.
6060         * general-slots.h: add Qdirectory.
6061         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6062         handling.
6063         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6064         cygwin not leaving win32 paths unchanged.
6065         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6066         cygwin runtime to do path conversion.
6067         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6068         (syms_of_win32): add new function.
6069         * window.c (window_loop): build fix.
6070
6071 2001-10-15  Andy Piper  <andy@xemacs.org>
6072
6073         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6074
6075 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6076
6077         * XEmacs 21.4.5 "Civil Service" is released.
6078
6079 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6080
6081         * glyphs-x.c: Force buffer-tab highlight update when moving the
6082         buffer, avoiding an ugly black border, used for keyboard focus
6083         indication, on a widget that can never have keyboard focus, the
6084         buffer tab.
6085
6086 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6087
6088         * process-unix.c (unix_open_multicast_group): Remove too much
6089         conversion between host and network byte order.
6090
6091 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6092
6093         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6094         before replacing them.
6095
6096         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6097         operation.
6098
6099         * src/window.c (undedicate_windows): Use it.
6100         * src/window.h: Add prototype.
6101
6102 2001-09-17  Ben Wing  <ben@xemacs.org>
6103
6104         * fileio.c (normalize_filename):
6105         * fileio.c (Fexpand_file_name):
6106         Fix various C++ compile errors in Andy's recent code.
6107         
6108         * callint.c (Fcall_interactively):
6109         * editfns.c (Ftemp_directory):
6110         * editfns.c (Fuser_full_name):
6111         * emacs.c (argmatch):
6112         * lread.c (locate_file_map_suffixes):
6113         * redisplay-x.c (x_ring_bell):
6114         Fix sign-compare warnings.
6115         
6116 2001-09-08  Andy Piper  <andy@xemacs.org>
6117
6118         * fileio.c (normalize_filename): copied from nt.c
6119         * (Ffile_name_directory): enable win32 paths under cygwin.
6120         * (Ffile_name_nondirectory): ditto.
6121         * (directory_file_name): ditto.
6122         * (Fexpand_file_name): ditto.
6123         * (Ffile_truename): ditto.
6124         * (Fsubstitute_in_file_name): ditto.
6125         * (Ffile_name_absolute_p): ditto.
6126         * (Ffile_readable_p): ditto.
6127
6128 2001-09-08  Andy Piper  <andy@xemacs.org>
6129
6130         * device-msw.c (mswindows_finish_init_device): remove dde
6131         initialization.
6132         * device-msw.c (mswindows_init_dde): factor out from
6133         mswindows_finish_init_device()
6134         * device-msw.c (init_mswindows_very_early): new function
6135         initialize but don't enable dde.
6136         * emacs.c (main_1): call init_mswindows_very_early.
6137         * event-msw.c:
6138         * event-msw.c (mswindows_dde_callback): only execute when we are
6139         ready.
6140         * symsinit.h: declare init_mswindows_very_early.
6141
6142 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6143
6144         [sjt: This has been in 21.5 for months with no complaints.]
6145
6146         * console.h (struct console_methods): Added flags member.
6147         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6148         (CONMETH_IMPL_FLAG):
6149         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6150         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6151
6152         * device.c (window_system_pixelated_geometry): Use the above macros.
6153
6154         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6155         implememntation flag.
6156         * device.h (DEVICE_DISPLAY_P): Use it.
6157
6158         * frame.c (delete_frame_internal): Use the above macro.
6159
6160         * redisplay.c (redisplay_device): Use it.
6161         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6162         (redisplay_frame): Ditto.
6163
6164         * device-msw.c (mswindows_device_implementation_flags): Removed.
6165         (msprinter_device_implementation_flags): Removed.
6166         (console_type_create_device_mswindows): Removed references to
6167         implementation_flags methods, set implementation flags here.
6168         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6169
6170         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6171         (console_type_create_device_gtk): Removed method declaration.
6172         Added commented out statement which semantically matches the
6173         commented out statement in the above removed method.
6174
6175 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6176
6177         The attached patch fixes a few warnings. 
6178
6179         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6180         * src/frame-gtk.c: guard against GNOME calls in GTK only
6181         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6182         * src/select-gtk.c: prototype lisp_to_time
6183
6184 2001-06-08  Ben Wing  <ben@xemacs.org>
6185
6186         ------ gc-in-window-procedure fixes ------
6187         
6188         * alloc.c:
6189         * alloc.c (struct post_gc_action):
6190         * alloc.c (register_post_gc_action):
6191         * alloc.c (run_post_gc_actions):
6192         * alloc.c (garbage_collect_1):
6193         Create "post-gc actions", to avoid those dreaded "GC during window
6194         procedure" problems.
6195
6196         * event-msw.c:
6197         Abort, clean and simple, when GC in window procedure.  We want
6198         to flush these puppies out.
6199
6200         * glyphs-msw.c:
6201         * glyphs-msw.c (finalize_destroy_window):
6202         * glyphs-msw.c (mswindows_finalize_image_instance):
6203         Use a post-gc action when destroying subwindows.
6204
6205         * lisp.h:
6206         Declare register_post_gc_action().
6207
6208         * scrollbar-msw.c:
6209         * scrollbar-msw.c (unshow_that_mofo):
6210         Use a post-gc action when unshowing scrollbar windows, if in gc.
6211
6212         * redisplay.c (mark_redisplay):
6213         Add comment about the utter evilness of what's going down here.
6214
6215         ------ cygwin setitimer fixes ------
6216         
6217         * Makefile.in.in (sheap_objs):
6218         * Makefile.in.in (profile_objs):
6219         * Makefile.in.in (objs):
6220         Compile profile.c only when HAVE_SETITIMER.
6221         
6222         * nt.c (mswindows_sigset):
6223         * nt.c (mswindows_sighold):
6224         * nt.c (mswindows_sigrelse):
6225         * nt.c (mswindows_sigpause):
6226         * nt.c (mswindows_raise):
6227         * nt.c (close_file_data):
6228         Style fixes.
6229         
6230         * nt.c:
6231         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6232         
6233         * profile.c:
6234         * profile.c (Fstart_profiling):
6235         * profile.c (Fstop_profiling):
6236         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6237         instead of just plain setitimer().
6238         
6239         * signal.c:
6240         * signal.c (set_one_shot_timer):
6241         * signal.c (alarm):
6242         Define qxe_setitimer() as an encapsulation around setitimer() --
6243         call setitimer() directly unless Cygwin or MS Win, in which case
6244         we use our simulated version in win32.c.
6245         
6246         * systime.h:
6247         * systime.h (struct itimerval):
6248         * systime.h (ITIMER_REAL):
6249         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6250         comment about "qxe" and the policy regarding encapsulation.
6251
6252         * win32.c:
6253         * win32.c (setitimer_helper_proc):
6254         * win32.c (setitimer_helper_period):
6255         * win32.c (setitimer_helper):
6256         * win32.c (mswindows_setitimer):
6257         Move setitimer() emulation here, so Cygwin can use it.
6258         Rename a couple of functions and variables to be longer and more
6259         descriptive.  In setitimer_helper_proc(), send the signal
6260         using either mswindows_raise() or (on Cygwin) kill().  If for
6261         some reason we are still getting lockups, we'll change the kill()
6262         to directly invoke the signal handlers.
6263
6264         ------ windows shell fixes ------
6265         
6266         * callproc.c:
6267         * ntproc.c:
6268         Comments about how these two files must die.
6269
6270         * callproc.c (init_callproc):
6271         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6272         not just COMSPEC. (more correct and closer to FSF.) Don't
6273         force a value for SHELL into the environment. (Comments added
6274         to explain why not.)
6275         
6276         * nt.c (init_user_info):
6277         Don't shove a fabricated SHELL into the environment.  See above.
6278
6279 2001-06-01  Ben Wing  <ben@xemacs.org>
6280
6281         * Makefile.in.in (ldflags):
6282         eliminate that pesky "defaulting to 00401000" warning.
6283         * nt.h:
6284         eliminate warnings.
6285
6286 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6287
6288         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6289         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6290
6291 2001-04-24  Jerry James <james@xemacs.org>
6292
6293         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6294         correct order.
6295
6296 2001-06-01  Ben Wing  <ben@xemacs.org>
6297
6298         * event-msw.c (debug_mswin_messages):
6299         conditionalize the messages that were causing compile errors.
6300         (if only macros could generate #ifdef statements ...)
6301
6302 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6303
6304         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6305
6306 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6307
6308         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6309
6310 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6311
6312         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6313         * process-unix.c (unix_canonicalize_host_name):
6314         sysdep.c (init_system_name):
6315         Use it to conditionally support IPv6 canonicalization.
6316
6317 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6318
6319         * event-msw.c:
6320         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6321
6322 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6323
6324         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6325         attempt is made to scroll when no scroll bar is available.
6326
6327 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6328
6329         * input-method-motif.c (XIM_delete_frame): New callback.
6330         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6331         got deleted from 21.4.3.)
6332
6333 2001-06-01  Ben Wing  <ben@xemacs.org>
6334
6335         * nt.c (mswindows_utime):
6336         * nt.c (close_file_data):
6337         fix off-by-one-indirection error.
6338
6339 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6340
6341         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6342         because set_file_times() now takes Lisp_Object path, instead of
6343         char*.
6344         * nt.c: Include buffer.h.
6345         * nt.c (convert_from_time_t): New.
6346         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6347         not set mtime correctly.
6348         * nt.h: Declare mswindows_utime().
6349         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6350         path, instead of char*.
6351         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6352
6353 2001-05-30  Ben Wing  <ben@xemacs.org>
6354
6355         For 21.4:
6356
6357         (Stephen, just take all event-msw.c patches.  This includes
6358         the "iconify" fix below.)
6359
6360         * event-msw.c:
6361         * event-msw.c (mswindows_dequeue_dispatch_event):
6362         * event-msw.c (assert):
6363         * event-msw.c (emacs_mswindows_quit_p):
6364         * event-msw.c (debug_mswin_messages):
6365         * event-msw.c (debug_output_mswin_message):
6366         * event-msw.c (vars_of_event_mswindows):
6367         Fix yet more problems with C-g handling.
6368         Implement debug-mswindows-events.
6369         
6370 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6371
6372         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6373         
6374 2001-05-23  Ben Wing  <ben@xemacs.org>
6375
6376         * event-msw.c (winsock_writer):
6377         * event-msw.c (winsock_closer):
6378         prior kludgy code was clobbering the buffer, thinking it was
6379         "unused" space to store an unneeded return value; instead, use
6380         the variable we've already got staring us in the face.
6381
6382 2001-05-17  Andy Piper  <andy@xemacs.org>
6383
6384         * sysfile.h: don't assume that file attributes are boolean
6385
6386 2001-05-23  Ben Wing  <ben@xemacs.org>
6387
6388         * device-msw.c (msprinter_init_device):
6389         signal an error rather than crash with an unavailable network
6390         printer (from Mike Alexander).
6391         
6392         * event-msw.c:
6393         * event-msw.c (struct winsock_stream):
6394         * event-msw.c (winsock_writer):
6395         * event-msw.c (winsock_closer):
6396         * event-msw.c (make_winsock_stream_1):
6397         cleanup headers.  fix (hopefully) an error with data corruption
6398         when sending to a network connection.
6399
6400         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6401         to handle the ~user prefix by (a) always assuming we're referencing
6402         ourselves and not even verifying the user -- hence any file with
6403         a tilde as its first char is invalid! (b) if there wasn't a slash
6404         following the filename, the pointer was set *past* the end of
6405         file and we started reading from uninitialized memory.  Now we
6406         simply treat these as files, always.
6407
6408         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6409         
6410 2001-05-19  Ben Wing  <ben@xemacs.org>
6411
6412         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6413
6414         * process-nt.c:
6415         * process-nt.c (vars_of_process_nt):
6416         remove unused mswindows-quote-process-args.  rec for 21.4.
6417         
6418 2001-05-12  Ben Wing  <ben@xemacs.org>
6419
6420         * event-msw.c (mswindows_dde_callback):
6421         * event-msw.c (mswindows_wnd_proc):
6422         eliminate cygwin warnings.
6423
6424 2001-05-06  Ben Wing  <ben@xemacs.org>
6425
6426         * console-msw.h:
6427         * device-msw.c:
6428         * device-msw.c (print_dialog_worker):
6429         * device-msw.c (mswindows_handle_print_dialog_box):
6430         * device-msw.c (syms_of_device_mswindows):
6431         * dialog-msw.c (mswindows_make_dialog_box_internal):
6432         * general-slots.h:
6433         implement printing the selection when it's selected.
6434
6435 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6436
6437         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6438
6439 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6440
6441         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6442         EMACS_INT is signed.
6443
6444 2001-04-15  Michael Lausch  <mla@1012surf.net>
6445
6446         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6447         gtk_widget_request_size() to give scrollbar >0 width for
6448         GTK >1.2.8.
6449
6450 2001-05-30  William M. Perry  <wmperry@gnu.org>
6451
6452         * event-gtk.c: Check for buttons as modifier keys.
6453
6454 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6455
6456         * s\mingw32.h:
6457         Properly find MinGW's <process.h> inside Cygwin's restructured
6458         include directories.  Don't try to include <cygwin/version.h>
6459         since we are dropping support for MinGW in versions of Cygwin
6460         earlier than b21.
6461         * nt.c:
6462         Drop support for MinGW in versions of Cygwin before b21.
6463         * sysdep.c:
6464         Properly find MinGW's <process.h> inside Cygwin's restructured
6465         include directories.
6466         * syswindows.h:
6467         Drop support for MinGW in versions of Cygwin before b21.
6468         * unexcw.c:
6469         Even though a.out.h is no longer detected by configure, allow
6470         MinGW to use it until we figure out how to do the job with Win32.
6471
6472 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6473
6474         * syntax.c (find_start_of_comment):
6475         Fix `unbalanced parentheses' bug when dealing with mixed comment
6476         styles in c++/java/etc. mode
6477
6478 2001-05-29  Mike Alexander  <mta@arbortext.com>
6479
6480         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6481         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6482
6483 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6484
6485         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6486
6487 2001-03-31  Mike Sperber <mike@xemacs.org>
6488
6489         * search.c (Freplace_match): Support FSF-style specification of
6490         match subexpression when applied to a buffer.
6491
6492 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6493
6494         * event-stream.c (is_scrollbar_event): add missing semicolon
6495
6496 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6497
6498         * Makefile.in.in: Use TAR macro instead of hardcoding
6499           tar.  Allows use of GNU tar instead of system tar
6500
6501 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6502
6503         * event-stream.c (is_scrollbar_event): add missing semicolon
6504
6505 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6506
6507         * XEmacs 21.4.3 "Academic Rigor" is released.
6508
6509 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6510
6511         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6512
6513 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6514
6515         * buffer.c (Vcase_fold_search): Remove obsolete
6516           comment about non ASCII case-fold-search.  This
6517           bug has been fixed by case-table changes.
6518
6519 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6520
6521         * event-msw.c: Restore include of events-mod.h.
6522
6523 2001-04-22   zhaoway  <zw@debian.org>
6524
6525         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6526         !HAVE_SCROLLBARS.
6527
6528 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6529
6530         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6531
6532 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6533
6534         * mule-charset.c (Fmake_charset): Add missing else.
6535
6536 2001-04-23  Ben Wing  <ben@xemacs.org>
6537
6538         * event-msw.c (FAKE_MOD_QUIT):
6539         * event-msw.c (mswindows_dequeue_dispatch_event):
6540         * event-msw.c (mswindows_wnd_proc):
6541         * event-msw.c (emacs_mswindows_quit_p):
6542         Get critical quit working.
6543
6544 2001-05-05  Ben Wing  <ben@xemacs.org>
6545
6546         * console-msw.h:
6547         * device-msw.c:
6548         * device-msw.c (mswindows_get_default_margin):
6549         * frame-msw.c (mswindows_size_frame_internal):
6550         * frame-msw.c (msprinter_init_frame_1):
6551         * frame-msw.c (vars_of_frame_mswindows):
6552         Change top/bottom margin defaults to 0.5 inches.
6553
6554 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6555
6556         Fix link error with gcc 3.0 on Linux.
6557         * terminfo.c (UP): Remove.
6558         * terminfo.c (BC): Remove.
6559         * terminfo.c (PC): Remove.
6560         They weren't used, and in any case, these symbols should be
6561         defined in the *library*.
6562
6563 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6564
6565         * s/aix4.h: Fix crash with xlc -O3.
6566         Improve comment explaining how -O3 works.
6567
6568 2001-04-15  Ben Wing  <ben@xemacs.org>
6569
6570         * event-stream.c:
6571         * event-stream.c (Fnext_event):
6572         * event-stream.c (is_scrollbar_event):
6573         * event-stream.c (execute_command_event):
6574         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6575         crash' problem.  His fix introduces other problems.  We filter
6576         out scrollbar events specifically, making them somewhat invisible
6577         to command-building, and not appearing in `this-command-keys'.
6578         More work is still needed (see comments in event-stream.c), but
6579         this fixes all the major problems.
6580
6581 2001-04-20  Ben Wing  <ben@xemacs.org>
6582
6583         * .cvsignore: Added stuff for Windows.
6584
6585 2001-04-28  Ben Wing  <ben@xemacs.org>
6586
6587         * buffer.c (Ferase_buffer):
6588         * editfns.c (buffer_insert1):
6589         * editfns.c (Finsert_before_markers):
6590         * editfns.c (Finsert_string):
6591         * editfns.c (Finsert_char):
6592         * editfns.c (Fdelete_region):
6593         * editfns.c (Fwiden):
6594         * editfns.c (Fnarrow_to_region):
6595         remove bogus lines setting zmacs_region_stays to 0.
6596         
6597 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6598
6599         * process-unix.c (unix_open_network_stream): If connect() fails
6600         invalidate file descriptor after closing it.
6601
6602 2001-03-08  Mike Alexander  <mta@arbortext.com>
6603
6604         * event-msw.c (mswindows_need_event_in_modal_loop):
6605         Don't dispatch a message if we didn't get one.
6606         (mswindows_need_event):
6607         Terminate the correct process when one exits instead of the first
6608         one on Vprocess_list and look for process termination when in
6609         mswindows_protect_modal_loop.
6610
6611 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6612
6613         * XEmacs 21.4.1 "Copyleft" is released.
6614
6615 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6616
6617         * input-method-motif.c (XIM_delete_frame): New callback.
6618         (XIM_init_frame): Register it.
6619
6620 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6621
6622         * XEmacs 21.4.0 "Solid Vapor" is released.
6623
6624 2001-04-15  Ben Wing  <ben@xemacs.org>
6625
6626         * cmdloop.c (call_command_loop):
6627         Fix braino in bit-rotting code.
6628         
6629 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6630
6631         * extents.c (Fset_extent_endpoints): Force creation of extent info
6632         in buffer_or_string.
6633
6634         * extents.c (process_extents_for_insertion_mapper): Correctly
6635         check for open-open zero-length extents.
6636
6637 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6638
6639         * lisp.h: New typedefs Memory_count, Element_count.
6640         * regex.c:
6641         * regex.h:
6642         Sign-compare warning elimination: several unsigned -> signed.
6643         Based on work by Ben Wing <ben@xemacs.org>.
6644
6645 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6646
6647         * XEmacs 21.2.47 "Zephir" is released.
6648
6649 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6650
6651         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6652
6653 2001-04-03  Mike Sperber <mike@xemacs.org>
6654
6655         * search.c: Revert previous patch due because of release.
6656
6657 2001-03-30  Ben Wing  <ben@xemacs.org>
6658
6659         * s\cygwin32.h:
6660         Add missing killpg prototype.
6661
6662         * elhash.c:
6663         Add a comment about fixing problems when a new entry is added
6664         while mapping.
6665
6666         * frame-msw.c (mswindows_init_frame_1):
6667         Fix compile warnings.
6668
6669         * menubar.c (vars_of_menubar):
6670         Provide `menu-accelerator-support' to indicate that we properly
6671         support %_ in menu specifications, so that package code can
6672         conditionalize on this (and remove %_ from menu specifications
6673         on older versions).
6674
6675         * event-msw.c:
6676         * scrollbar-msw.c:
6677         * scrollbar-msw.c (can_scroll):
6678         * scrollbar-msw.h:
6679         Fix handling of mouse wheel under Windows to follow standards --
6680         now scrolls window under pointer, not selected window.
6681
6682 2001-03-31  Mike Sperber <mike@xemacs.org>
6683
6684         * search.c (Freplace_match): Support FSF-style specification of
6685         match subexpression when applied to a buffer.
6686
6687 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6688
6689         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6690         function to modify KEYMAP, so map over a copy of the hash table.
6691
6692 2001-03-21  Martin Buchholz <martin@xemacs.org>
6693
6694         * XEmacs 21.2.46 "Urania" is released.
6695
6696 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6697
6698         * realpath.c (xrealpath): Make file-truename work with symlinks to
6699         /cygdrive paths on cygwin. Always lowercase drive-letters on
6700         native windows.
6701         (cygwin_readlink): Don't try to find canonical filename unless
6702         file exists.
6703
6704 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6705
6706         * ChangeLog: Log GTK merge.
6707
6708         * dumper.c:
6709         * select-x.c:
6710         * specifier.c:
6711         * symeval.h:
6712         Revert gratuitous whitespace changes from GTK merge.
6713
6714         * emacs.c: Document end of complex #ifdef @ l. 1495.
6715
6716
6717 2001-03-12  Andy Piper  <andy@xemacs.org>
6718
6719         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6720         have to do likewise.
6721
6722 2001-03-12  Andy Piper  <andy@xemacs.org>
6723
6724         * sysdep.c: we only support mingw now.
6725
6726 2001-03-09  Andy Piper  <andy@xemacs.org>
6727
6728         * unexcw.c (copy_executable_and_dump_data_section): making approx
6729         overrun a warning only.
6730
6731 2001-03-10  William M. Perry  <wmperry@aventail.com>
6732
6733         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6734         satisfy Stephen's identical-after-cpp plea.
6735
6736 2001-03-02  Ben Wing  <ben@xemacs.org>
6737
6738         * cmds.c:
6739         * cmds.c (Fforward_char):
6740         * syntax.c:
6741         * window.c:
6742
6743         Augment documentation of the most common motion commands to make
6744         note of the shifted-motion support.
6745         
6746 2001-03-02  Ben Wing  <ben@xemacs.org>
6747
6748         * nt.c (mswindows_fstat):
6749         * nt.c (mswindows_stat):
6750         * search.c (boyer_moore):
6751         Fix compile warnings under Windows.
6752         
6753         * sysdep.c (sys_readdir):
6754         Fix buggy filename-conversion code under Mule.
6755
6756 2001-03-09  William M. Perry  <wmperry@aventail.com>
6757
6758         * Makefile.in.in:
6759         * config.h.in:
6760         * console.c:
6761         * console.h:
6762         * device.c:
6763         * device.h:
6764         * dragdrop.c:
6765         * emacs.c:
6766         * event-stream.c:
6767         * events.c:
6768         * events.h:
6769         * faces.c:
6770         * frame.h:
6771         * general-slots.h:
6772         * glyphs.c:
6773         * gutter.c:
6774         * inline.c:
6775         * lisp.h:
6776         * lrecord.h:
6777         * make-src-depend:
6778         * redisplay-output.c:
6779         * redisplay.c:
6780         * symsinit.h:
6781         * sysfile.h:
6782         * toolbar.c:
6783         * window.c:
6784         The Great GTK Merge.
6785
6786         * ChangeLog.GTK:
6787         * console-gtk.c:
6788         * console-gtk.h:
6789         * device-gtk.c:
6790         * emacs-marshals.c:
6791         * emacs-widget-accessors.c:
6792         * event-gtk.c:
6793         * frame-gtk.c:
6794         * gccache-gtk.c:
6795         * gccache-gtk.h:
6796         * glade.c:
6797         * glyphs-gtk.c:
6798         * glyphs-gtk.h:
6799         * gtk-glue.c:
6800         * gtk-xemacs.c:
6801         * gtk-xemacs.h:
6802         * gui-gtk.c:
6803         * gui-gtk.h:
6804         * menubar-gtk.c:
6805         * native-gtk-toolbar.c:
6806         * objects-gtk.c:
6807         * objects-gtk.h:
6808         * redisplay-gtk.c:
6809         * scrollbar-gtk.c:
6810         * scrollbar-gtk.h:
6811         * select-gtk.c:
6812         * toolbar-gtk.c:
6813         * ui-byhand.c:
6814         * ui-gtk.c:
6815         * ui-gtk.h:
6816         The Great GTK Merge: new files.
6817
6818 2001-02-26  Ben Wing  <ben@xemacs.org>
6819
6820         Reapplied Lstream change.
6821
6822 2001-02-26  Ben Wing  <ben@xemacs.org>
6823
6824         Undid the last change, since it is more controversial than I
6825         thought.  It should be back in at some point soon.
6826         
6827 2001-02-25  Ben Wing  <ben@xemacs.org>
6828
6829         * buffer.c:
6830         * callproc.c (Fold_call_process_internal):
6831         * event-msw.c (ntpipe_slurp_reader):
6832         * event-msw.c (ntpipe_shove_writer):
6833         * event-msw.c (winsock_reader):
6834         * event-msw.c (winsock_writer):
6835         * file-coding.c:
6836         * file-coding.c (detect_eol_type):
6837         * file-coding.c (detect_coding_type):
6838         * file-coding.c (determine_real_coding_system):
6839         * file-coding.c (Fdetect_coding_region):
6840         * file-coding.c (decoding_reader):
6841         * file-coding.c (decoding_writer):
6842         * file-coding.c (mule_decode):
6843         * file-coding.c (Fdecode_coding_region):
6844         * file-coding.c (encoding_reader):
6845         * file-coding.c (encoding_writer):
6846         * file-coding.c (mule_encode):
6847         * file-coding.c (Fencode_coding_region):
6848         * file-coding.c (detect_coding_sjis):
6849         * file-coding.c (decode_coding_sjis):
6850         * file-coding.c (encode_coding_sjis):
6851         * file-coding.c (detect_coding_big5):
6852         * file-coding.c (decode_coding_big5):
6853         * file-coding.c (encode_coding_big5):
6854         * file-coding.c (detect_coding_ucs4):
6855         * file-coding.c (decode_coding_ucs4):
6856         * file-coding.c (encode_coding_ucs4):
6857         * file-coding.c (detect_coding_utf8):
6858         * file-coding.c (decode_coding_utf8):
6859         * file-coding.c (encode_coding_utf8):
6860         * file-coding.c (detect_coding_iso2022):
6861         * file-coding.c (decode_coding_iso2022):
6862         * file-coding.c (encode_coding_iso2022):
6863         * file-coding.c (decode_coding_no_conversion):
6864         * file-coding.c (encode_coding_no_conversion):
6865         * glyphs-x.c (write_lisp_string_to_temp_file):
6866         * gpmevent.c (tty_get_foreign_selection):
6867         * lisp.h:
6868         * lstream.c:
6869         * lstream.c (Lstream_flush_out):
6870         * lstream.c (Lstream_adding):
6871         * lstream.c (Lstream_write_1):
6872         * lstream.c (Lstream_write):
6873         * lstream.c (Lstream_raw_read):
6874         * lstream.c (Lstream_read_more):
6875         * lstream.c (Lstream_read):
6876         * lstream.c (Lstream_unread):
6877         * lstream.c (Lstream_fputc):
6878         * lstream.c (stdio_reader):
6879         * lstream.c (stdio_writer):
6880         * lstream.c (filedesc_reader):
6881         * lstream.c (filedesc_writer):
6882         * lstream.c (lisp_string_reader):
6883         * lstream.c (struct fixed_buffer_stream):
6884         * lstream.c (make_fixed_buffer_input_stream):
6885         * lstream.c (make_fixed_buffer_output_stream):
6886         * lstream.c (fixed_buffer_reader):
6887         * lstream.c (fixed_buffer_writer):
6888         * lstream.c (struct resizing_buffer_stream):
6889         * lstream.c (resizing_buffer_writer):
6890         * lstream.c (dynarr_writer):
6891         * lstream.c (lisp_buffer_reader):
6892         * lstream.c (lisp_buffer_writer):
6893         * lstream.h:
6894         * lstream.h (lstream_implementation):
6895         * lstream.h (struct lstream):
6896         * md5.c (Fmd5):
6897         * process-nt.c (nt_send_process):
6898         * process-unix.c (unix_send_process):
6899         
6900         Correct Lstream lossage due to mixing of signed and unsigned
6901         quantities.  All Lstream uses of size_t and ssize_t are now a
6902         single signed data type Lstream_data_count.  This fixes problems
6903         under Windows with sending large quantities of data to a process,
6904         and may well fix other subtle bugs.
6905
6906 2001-02-23  Martin Buchholz <martin@xemacs.org>
6907
6908         * XEmacs 21.2.45 "Thelxepeia" is released.
6909
6910 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6911
6912         * lisp-union.h (XSETINT): 
6913         (XSETCHAR):
6914         (XSETOBJ): 
6915         Reverse previous change of 2001-02-06.
6916
6917 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6918
6919         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6920         buffers.
6921         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6922         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6923         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6924         * regex.c (POS_AS_IN_BUFFER): removed
6925         * regex.c (re_search_2):
6926         * regex.c (re_match_2):
6927         Don't use an offset of 1 when calculating buffer positions, since
6928         `BI_BUF_BEGV' does it already.
6929
6930 2001-02-18  Wim Dumon  <wim@easics.be>
6931
6932         * insdel.c (prepare_to_modify_buffer): Also check for
6933         supersession when clash-detection is enabled. 
6934
6935 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6936
6937         * regex.c (re_match_2_internal):
6938         Convert temp characters from 'const unsigned char' to 're_char'.
6939         Fix crashing bug with extended characters under mule.
6940         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6941         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6942         font-lock, pdump, and new syntax-table code.
6943         * syntax.c (find_start_of_comment):
6944         (find_end_of_comment):
6945         (forward-comment):
6946         Fix crashing bugs involving moving beyond end of buffer.
6947         * syntax.c (find_start_of_comment):
6948         Fixed logic to allow proper detection of cases where the same
6949         character is used to end both a two-char comment start and a
6950         two-char comment end sequence. Fixes `(forward-comment -1)'.
6951         * syntax.c (find_start_of_comment):
6952         Return position just past last comment-end character for all cases
6953         (previously was only done for two-char comment-end sequences).
6954         * syntax.c (forward-comment):
6955         Take value returned from `find_end_of_comment', rather than
6956         incrementing it.
6957         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6958         Properly deal with BUFFERP (syntax_cache.object)
6959
6960 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6961
6962         * alloc.c (Fgarbage_collect): 
6963         * alloc.c (make_bit_vector_from_byte_vector):
6964         -Wsign-compare-correctness.
6965
6966 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6967
6968         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6969         (XSETCHAR): Likewise.
6970         (XSETOBJ): Likewise.
6971
6972 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6973
6974         * mule-canna.c (canna-func-delete_previous): 
6975         Rename to canna-func-delete-previous.
6976
6977 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6978
6979         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6980
6981 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6982
6983         * font-lock.c (find_context): Fix C++ compile errors introduced by
6984         recent patch
6985
6986 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6987
6988         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6989         pragma, but earlier ones barf on the same pragma.
6990
6991 2001-02-06  Mike Sperber <mike@xemacs.org>
6992
6993         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6994         `configure-mule-lisp-directory'.
6995
6996 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6997
6998         Make sure dump-id.c is compiled in the same way as other .c's.
6999         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7000         * dump-id.h: Remove.
7001         * emacs.c: Move dump-id.h into dumper.h.
7002         * dumper.h: Move dump-id.h into dumper.h.
7003         * Makefile.in.in:
7004         Use standard .c.o rule for building dump-id.o.
7005         Remove preprocessor flags from link command.
7006         Add dump-id.o to ${otherobjs} if PDUMP.
7007
7008 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7009
7010         Port FSF 20.7 syntax table improvements.
7011         * syntax.c.
7012         * syntax.h.
7013
7014         Fixups for new syntax table stuff.
7015         * dired.c: Include syntax.c.
7016         (Fdirectory_files): Initialize regex_match_object and
7017         regex_emacs_buffer.
7018         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7019         and Fget_char_property.
7020
7021         Use ported FSF 20.7 syntax table improvements.
7022         * font-lock.c.
7023         * regex.c.
7024         * search.c.
7025         
7026 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7027
7028         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7029         Unixware's enum boolean from sys/types.h.
7030
7031 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7032
7033         Fix support for building with latest Purify.
7034         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7035         (PURIFY_FLAGS): Likewise.
7036
7037 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7038
7039         * fileio.c (lisp_string_set_file_times): New.
7040         * fileio.c (Fcopy_file): Use it.
7041         Fixes bug:
7042         (copy-file filename non-ascii-filename t t)
7043         ==> No such file or directory, non-ascii-filename
7044
7045 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7046
7047         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7048         USHRT_MAX seems clearer than ~0 anyways.
7049
7050 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7051
7052         dumper improvements.  Inspired by Olivier.
7053         * dumper.c (pdump_max_align): New.
7054         * dumper.c (pdump_add_entry): Use pdump_max_align.
7055         * dumper.c (pdump_get_entry_list): Likewise.
7056         * dumper.c (pdump_scan_by_alignment): Likewise.
7057         Don't iterate through unnecessary alignments.
7058         * dumper.c (pdump_file_get): No need to align result of malloc().
7059         * dumper.c (pdump_mallocadr): Remove.  
7060         The result of malloc() is guaranteed to be maximally aligned.
7061         * dumper.c: s/elmt/elt/g;
7062         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7063         * dumper.c (pdump_alert_undump_object): Likewise.
7064         * dumper.c (pdump_align_table): 
7065         Don't support alignments > 64.
7066         Store ALIGNOF's, not shift counts, in table.
7067
7068 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7069
7070         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7071         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7072         * systime.h: Use HAVE_UTIME.
7073         * sysdep.c (struct utimbuf): Remove.
7074         * sysdep.c (set_file_times): Prefer utime() to utimes().
7075         * config.h.in (HAVE_UTIME): New.
7076         * config.h.in (HAVE_UTIME_H): Remove.
7077         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7078
7079 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7080
7081         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7082
7083 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7084
7085         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7086
7087 2001-02-08  Martin Buchholz <martin@xemacs.org>
7088
7089         * XEmacs 21.2.44 "Thalia" is released.
7090
7091 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7092
7093         Fixes crashes in kill-emacs on some systems.
7094         * process-unix.c (unix_kill_child_process):
7095         It's OK for kill() to fail with ESRCH.
7096
7097 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7098
7099         Contortions to make .gdbinit tricks work on most systems.
7100         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7101         * alloc.c (dbg_valmask): Make non-const.
7102         * alloc.c (dbg_typemask): Make non-const.
7103         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7104         * alloc.c (dbg_valbits): Make non-const.
7105         * alloc.c (dbg_gctypebits): Make non-const.
7106         * .gdbinit (decode_object): Make it work with AIX cc.
7107
7108 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7109
7110         * elhash.c (make_general_lisp_hash_table):
7111         Use simpler and more efficient calloc to clear entries.
7112
7113 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7114
7115         * window.c (window_scroll): Work around an AIX C compiler bug.
7116         Fixes 'scroll-up' does nothing problem with xlC.
7117
7118 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7119
7120         * .gdbinit: Remove obsolete comment.
7121
7122 2001-01-31  Mike Alexander  <mta@arbortext.com>
7123
7124         * select.c (Fown_selection_internal): Set owned_p for device
7125         method correctly.
7126
7127 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7128
7129         Port to g++ 2.97.
7130         "not" cannot be used as a macro name as it is an operator in C++
7131         * config.h.in: Stop #defining `not'.
7132         * chartab.c (check_category_char): not ==> not_p
7133         * chartab.h: Likewise.
7134         * regex.c (re_match_2_internal): Likewise.
7135
7136 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7137
7138         * lisp-disunion.h: Fix up comments.
7139
7140 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7141
7142         * keymap.c (define_key_check_and_coerce_keysym):
7143         (syms_of_keymap):
7144         Support mouse-6 and mouse-7 bindings in the obvious way.
7145
7146 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7147
7148         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7149
7150 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7151
7152         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7153         Previous patch missed DEFVAR_INT_MAGIC.
7154         Make sure future DEFVAR_foo use correct types.
7155         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7156         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7157         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7158         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7159         * (DEFVAR_INT): Likewise.
7160         * redisplay.c (vertical_clip): Should be of type Fixnum.
7161         * redisplay.c (horizontal_clip): Likewise.
7162         * lisp.h (dump_add_opaque_int): New.
7163         (dump_add_opaque_fixnum): New.
7164
7165 2001-01-29  Andy Piper  <andy@xemacs.org>
7166
7167         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7168         since they can be eval'ed
7169
7170 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7171
7172         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7173         Oops, XEmacs redefines `class'.  Use `typename' instead.
7174
7175 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7176
7177         * dumper.c: Fix C++ compile errors.
7178
7179 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7180
7181         * tparam.c: Use correct prototypes.
7182
7183 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7184
7185         * sysproc.h: #include util.h for NetBSD's openpty.
7186
7187 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7188
7189         More 64-bit correctness.
7190         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7191         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7192         Fix up comments.
7193         This finally finishes the 64-bit SGI port.
7194         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7195         * symbols.c: Fix up comments and type casts.
7196         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7197         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7198         * symeval.h (Fixnum): New type.
7199         * symeval.h (symbol_value_type): Fix up comment.
7200
7201         * commands.h:
7202         * nt.c:
7203         * emacs.c:
7204         * data.c:
7205         * redisplay.c:
7206         * abbrev.c:
7207         * dired-msw.c:
7208         * event-Xt.c:
7209         * eldap.c:
7210         * window.c:
7211         * sound.c:
7212         * event-stream.c:
7213         * eval.c:
7214         * buffer.c:
7215         * mule-canna.c: A million DEFVAR_INTs here...
7216         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7217         * extents.c:
7218         * cmdloop.c:
7219         * lisp.h:
7220         * select-x.c:
7221         * console-x.h:
7222         * event-msw.c:
7223         * mule-wnnfns.c:
7224         * hpplay.c:
7225         * ralloc.c:
7226         * alloc.c:
7227         * keymap.c:
7228         * profile.c:
7229         s/int/Fixnum/g in DEFVAR_INT declarations.
7230
7231 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7232
7233         Port pdump to SGI alignment-sensitive environment.
7234         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7235         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7236         properly aligned.
7237         Define and use aligned reading and writing macros.
7238         Use buffered stdio instead of posix i/o for faster dumping.
7239         Eliminate kludgy 256 byte space for header.
7240         Read and write from dump file using structs for alignment safety.
7241         * dumper.c (pdump_align_stream): New.
7242         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7243         * dumper.c (PDUMP_READ_ALIGNED): New.
7244         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7245         * dumper.c (pdump_static_Lisp_Object): New struct.
7246         * dumper.c (pdump_static_pointer): New struct.
7247         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7248         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7249         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7250         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7251
7252         * dumper.c (pdump_backtrace):
7253         * dumper.c (pdump_get_indirect_count):
7254         * dumper.c (pdump_register_object):
7255         * dumper.c (pdump_register_struct):
7256         * dumper.c (pdump_reloc_one):
7257         * dumper.c (pdump_scan_by_alignment):
7258         * dumper.c (pdump_dump_from_root_struct_ptrs):
7259         * dumper.c (pdump_dump_opaques):
7260         * dumper.c (pdump_dump_rtables):
7261         * dumper.c (pdump_dump_from_root_objects):
7262         * dumper.c (pdump):
7263         * dumper.c (pdump_load_finish):
7264         Use aligned reading and writing.
7265
7266         * dumper.c (pdump_free): Make static.
7267         * dumper.c (pdump_hFile): Likewise.
7268         * dumper.c (pdump_hMap): Likewise.
7269
7270 2001-01-26  Martin Buchholz <martin@xemacs.org>
7271
7272         * XEmacs 21.2.43 "Terspichore" is released.
7273
7274 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7275
7276         Type fiddling for window_config.saved_windows_count
7277         * window.c (struct window_config): 
7278         Make saved_windows_count member unsigned.
7279         * window.c (sizeof_window_config_for_n_windows): 
7280         Make parameter unsigned.
7281         * window.c (mark_window_config):
7282         * window.c (window_config_equal):
7283         * window.c (free_window_configuration):
7284         * window.c (Fset_window_configuration):
7285         * window.c (count_windows):
7286         * window.c (Fcurrent_window_configuration):
7287         * window.c (reinit_vars_of_window):
7288         Update all callers and users.
7289
7290 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7291
7292         Alignment correctness for flexible arrays.
7293         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7294         Make alignment-correct. Add interesting comments.
7295         * alloc.c (size_vector):
7296         * alloc.c (make_vector_internal):
7297         * alloc.c (make_bit_vector_internal):
7298         * alloc.c (sweep_bit_vectors_1):
7299         * fns.c (size_bit_vector):
7300         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7301         * window.c (sizeof_window_config_for_n_windows): 
7302         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7303
7304 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7305
7306         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7307
7308 2001-01-23  Andy Piper  <andy@xemacs.org>
7309
7310         * select.c (Fown_selection_internal): pass owned_p
7311
7312         * select-msw.c (mswindows_own_selection): New Signature.
7313
7314         * console.h (struct console_methods): add owned_p to
7315         _own_selection.
7316
7317         * select-x.c (x_own_selection): pass owned_p
7318         (hack_motif_clipboard_selection): use owned_p
7319         (vars_of_select_x): new variable -
7320         x_selection_strict_motif_ownership.
7321
7322 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7323
7324         * specifier.h (specifier_data_offset): Remove pointless parens.
7325         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7326
7327 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7328
7329         Make Lisp_Object sizeof methods be alignment-correct.
7330         pdump must restore objects to the same alignment as the C compiler
7331         assumes.  It really matters on SGIs.
7332         * lstream.c (aligned_sizeof_lstream): New.
7333         (sizeof_lstream): Use aligned_sizeof_lstream.
7334         (Lstream_new): Likewise.
7335         * opaque.c (aligned_sizeof_opaque): New.
7336         (sizeof_opaque): Use aligned_sizeof_opaque.
7337         (make_opaque): Likewise.
7338         * specifier.c (aligned_sizeof_specifier): New.
7339         (sizeof_specifier): Use aligned_sizeof_specifier.
7340         (make_specifier_internal): Likewise.
7341
7342 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7343
7344         * lstream.h (struct lstream): Use max_align_t for trailing data.
7345         * specifier.h (struct Lisp_Specifier): Likewise.
7346
7347 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7348
7349         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7350         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7351         (CCL_SUSPEND): Likewise.
7352         (CCL_INVALID_CMD): Likewise.
7353         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7354         (ccl_driver): Likewise.
7355         (CCL_WRITE_CHAR): Macro hygiene.
7356         (CCL_WRITE_STRING): Macro hygiene.
7357
7358 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7359
7360         Port "portable" dumper to SunOS 4 and HP-UX.
7361         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7362         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7363         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7364
7365 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7366
7367         * lisp.h (ALIGNOF): A better definition for C++.
7368
7369 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7370
7371         Macro hygiene.
7372         Fix printf warnings: int format, long int arg.
7373         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7374         (PUSH_FAILURE_POINT): Use correct printf formats.
7375         (POP_FAILURE_POINT): Use correct printf formats.  
7376         Use do {...} while (0)
7377
7378 2001-01-20  Martin Buchholz <martin@xemacs.org>
7379
7380         * XEmacs 21.2.42 "Poseidon" is released.
7381
7382 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7383
7384         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7385
7386 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7387
7388         De-kludgify FIXED_TYPE free list frobbing.
7389         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7390         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7391         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7392         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7393         * alloc.c (LRECORD_FREE_P): New.
7394         * alloc.c (MARK_LRECORD_AS_FREE): New.
7395         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7396         * alloc.c (STRUCT_FREE_P): Deleted.
7397         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7398         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7399         * alloc.c (STRING_CHARS_FREE_P): New.
7400         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7401         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7402         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7403         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7404         * alloc.c (resize_string): Use new definitions.
7405         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7406         * alloc.c (verify_string_chars_integrity): Use new definitions.
7407         * alloc.c (compact_string_chars): Use new definitions.
7408         * alloc.c: Update monster comments.
7409         * lrecord.h (lrecord_type): Add some new lrecord types for
7410         alloc.c's use.
7411
7412 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7413
7414         Improve alignment hackery.
7415         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7416         (max_align_t): Moved from opaque.h - general purpose.
7417         (ALIGN_PTR): Use size_t, not long.
7418         * opaque.h (max_align_t): Move to lisp.h.
7419
7420 2001-01-18  Norbert Koch  <nk@LF.net>
7421
7422         * gui.h: Fix and add prototypes to fix build problems.
7423
7424 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7425
7426         temacs is going away, so `dump-temacs' is now a bad name.
7427         * .dbxrc (dump-temacs): Rename to `dmp'.
7428         * .gdbinit (dump-temacs): Rename to `dmp'.
7429
7430 2001-01-17  Andy Piper  <andy@xemacs.org>
7431
7432         * glyphs.c (print_image_instance): comment to make martin happy.
7433
7434         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7435         change.
7436
7437         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7438         activation.
7439         (mswindows_tab_control_redisplay): warning suppression.
7440
7441         * glyphs-widget.c (widget_update): re-write to cope with updated
7442         items.
7443         (widget_instantiate): use new gui_item functions.
7444         (tab_control_update): deleted.
7445         (progress_gauge_update): deleted.
7446         (image_instantiator_progress_guage): take out update reference.
7447         (image_instantiator_tree_view): ditto.
7448         (image_instantiator_tab_control): ditto.
7449
7450         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7451         Right the new way.
7452         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7453         return whether anything was changed.
7454         (update_gui_item_keywords): as it sounds.
7455
7456         * gui.h: declare widget_gui_parse_item_keywords.
7457
7458         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7459         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7460
7461 2001-01-17  Martin Buchholz <martin@xemacs.org>
7462
7463         * XEmacs 21.2.41 "Polyhymnia" is released.
7464
7465 2001-01-16  Didier Verna  <didier@xemacs.org>
7466
7467         * glyphs.c (image_instantiate): don't use fallbacks when
7468         instantiating a face's background pixmap by inheritance.
7469
7470 2001-01-14  Mike Sperber <mike@xemacs.org>
7471
7472         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7473         Conditionalize accordingly.
7474
7475 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7476
7477         * dumper.c (pdump_file_get): Fix a compiler warning.
7478
7479 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7480
7481         Make Purify happy when pdumping.
7482         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7483         iniitalizing all bits of new lisp object memory.
7484         * symbols.c (Fmake_local_variable): Likewise.
7485         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7486         * symbols.c (Fdefvaralias): Likewise.
7487         * mule-charset.c (vars_of_mule_charset): Likewise.
7488
7489 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7490         Add the `-nd' flag when running pre-dump operations under the debugger.
7491         * .dbxrc (run-temacs): Add `-nd'.
7492         * .dbxrc (update-elc): Likewise.
7493         * .dbxrc (dump-temacs): Likewise.
7494         * .gdbinit (run-temacs): Likewise.
7495         * .gdbinit (check-temacs): Likewise.
7496         * .gdbinit (update-elc): Likewise.
7497         * .gdbinit (dump-temacs): Likewise.
7498
7499 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7500
7501         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7502         export OBJECT_MODE=64
7503         configure --pdump --use-union-type=no
7504         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7505         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7506
7507         * miscplay.c (sndcnv8U_2mono):
7508         Avoid two uses of `++' in the same expression.
7509         Suppresses a GCC warning.
7510
7511 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7512
7513         Make sure future compilers don't miscompile alloc.c.
7514         * alloc.c:
7515         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7516         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7517
7518 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7519
7520         * dumper.c: A little post-pdump-rename comment fixup.
7521
7522 2001-01-09  Jerry James  <james@eecs.ku.edu>
7523
7524         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7525
7526 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7527
7528         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7529         script:
7530         #!/bin/sh
7531         replace_symbol () {
7532           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7533         }
7534
7535         replace_symbol pdump_wire_lists pdump_weak_object_chains
7536         replace_symbol pdump_wire_list dump_add_weak_object_chain
7537
7538         replace_symbol pdump_wires pdump_root_objects
7539         replace_symbol pdump_wire dump_add_root_object
7540
7541         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7542         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7543
7544         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7545         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7546         replace_symbol dumpstructinfo pdump_root_struct_ptr
7547         replace_symbol dumpstruct dump_add_root_struct_ptr
7548
7549         replace_symbol dumpopaque dump_add_opaque
7550         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7551         replace_symbol dumpopaqueinfos pdump_opaques
7552         replace_symbol dumpopaqueinfo pdump_opaque
7553
7554         replace_symbol nb_structdump nb_root_struct_ptrs
7555         replace_symbol nb_opaquedump nb_opaques
7556
7557         replace_symbol align_table pdump_align_table
7558         replace_symbol dump_header pdump_header
7559
7560         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7561         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7562
7563
7564 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7565
7566         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7567         optimizing bytecount_to_charcount().
7568
7569 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7570
7571         * config.h.in:
7572         (HAVE_DLFCN_H): Removed.
7573         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7574
7575 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7576
7577         Portable dumper maintainability improvements.
7578         * alloc.c (staticpro):
7579         * alloc.c (staticpro_nodump):
7580         * alloc.c (garbage_collect_1):
7581         * alloc.c (reinit_alloc_once_early):
7582         * alloc.c (init_alloc_once_early):
7583         * alloc.c: Move dumper functions to alloc.c.
7584         * dumper.c (pdump_backtrace):
7585         * dumper.c (pdump_dump_structs):
7586         * dumper.c (pdump_dump_opaques):
7587         * dumper.c (pdump_dump_rtables):
7588         * dumper.c (pdump_dump_wired):
7589         * dumper.c (pdump):
7590         * dumper.c (pdump_load_check):
7591         * dumper.c (pdump_load_finish):
7592         * dumper.c (pdump_file_unmap):
7593         * dumper.c (pdump_file_get):
7594         * dumper.c (pdump_resource_free):
7595         * dumper.c (pdump_resource_get):
7596         * dumper.c (pdump_file_free):
7597         * dumper.c (pdump_file_try):
7598         * dumper.c (pdump_load):
7599         Remove fixed size limits on staticpro(), staticpro_nodump(),
7600         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7601         Remove custom code for dumping lrecord_implementations_table - use
7602         dumpopaque instead.
7603         Remove (most of the) custom code for dumping staticpros - dump it
7604         like any other dynarr.
7605
7606         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7607         * dumper.c: Moved functions from alloc.c.
7608         * alloc.c (dumpstruct): Moved to dumper.c.
7609         * alloc.c (dumpopaque): Likewise.
7610         * alloc.c (pdump_wire): Likewise.
7611         * alloc.c (pdump_wire_list): Likewise.
7612
7613         * lisp.h (Dynarr_sizeof): New.
7614         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7615         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7616         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7617
7618         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7619         * lisp.h (dumpopaque): ditto.
7620         * lisp.h (pdump_wire): ditto.
7621         * lisp.h (pdump_wire_list): ditto.
7622
7623 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7624
7625         * make-src-depend (PrintPatternDeps):
7626         Use `sort' to make output independent of perl version.
7627
7628 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7629
7630         Port to Netbsd 1.5.
7631         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7632         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7633
7634 2001-01-03  Didier Verna  <didier@xemacs.org>
7635
7636         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7637         that `focus_frame' is alive before thinking of calling
7638         `redisplay_redraw_cursor' on it.
7639
7640 2001-01-08  Martin Buchholz <martin@xemacs.org>
7641
7642         * XEmacs 21.2.40 is released.
7643
7644 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7645
7646         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7647
7648 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7649
7650         * alloc.c (dbg_valmask): Make const.
7651         * alloc.c (dbg_typemask): Make const.
7652         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7653         * alloc.c (dbg_valbits): Make const.
7654         * alloc.c (dbg_gctypebits): Make const.
7655
7656 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7657
7658         * redisplay-x.c (x_bevel_area):
7659         redisplay.h (struct rune):
7660         Typo fixes in comments.
7661
7662 2001-01-05  Andy Piper  <andy@xemacs.org>
7663
7664         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7665         adjustment.
7666
7667         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7668
7669 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7670
7671         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7672
7673         * mule-ccl.c (stack_idx_of_map_multiple):
7674         Non const global data must not be initialized!
7675         Found by MIYASHITA Hisashi.
7676
7677 2001-01-02  Andy Piper  <andy@xemacs.org>
7678
7679         * frame.c (change_frame_size): make sure frame size is always
7680         marked as changed.
7681
7682         * glyphs.c (image_instance_layout): minor code reuse.
7683
7684         * window.c (Fcurrent_window_configuration): revert previous
7685         change.
7686
7687 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7688
7689         * glyphs.h:
7690         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7691
7692 2000-12-31  Andy Piper  <andy@xemacs.org>
7693
7694         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7695         when widget gets unmapped.
7696
7697         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7698         function. Make sure widgets losing focus don't just drop it.
7699         (handle_focus_event_1): record the widget with focus.
7700
7701 2000-12-31  Andy Piper  <andy@xemacs.org>
7702
7703         * window.c (allocate_window): use
7704         make_image_instance_cache_hash_table.
7705         (make_dummy_parent): ditto.
7706         (Fset_window_configuration): ditto.
7707
7708         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7709
7710         * glyphs.c (process_image_string_instantiator): use
7711         INSTANTIATOR_TYPE.
7712         (get_image_instantiator_governing_domain): ditto.
7713         (normalize_image_instantiator): ditto.
7714         (instantiate_image_instantiator): ditto.
7715         (make_image_instance_1): ditto.
7716         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7717         (instantiator_eq_equal): new function for use with instance hash
7718         tables.
7719         (instantiator_eq_hash): ditto.
7720         (make_image_instance_cache_hash_table): create a suitable hash
7721         table for storing image instances.
7722
7723         * elhash.h (hash_table_weakness): new internal weakness type
7724         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7725         declare new functions.
7726
7727         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7728         another weakness type for glyphs.
7729         (make_standard_lisp_hash_table): new function split out from
7730         make_general_lisp_hash_table.
7731         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7732         (hash_table_instantiate): ditto.
7733         (Fmake_hash_table): ditto.
7734
7735 2000-12-31  Martin Buchholz <martin@xemacs.org>
7736
7737         * XEmacs 21.2.39 is released.
7738
7739 2000-12-29  Andy Piper  <andy@xemacs.org>
7740
7741         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7742
7743         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7744         the frame has changed so that we pick up geometry changes such as
7745         menubar visibility.
7746
7747 2000-12-28  Andy Piper  <andy@xemacs.org>
7748
7749         * lastfile.c (my_ebss): make a char array so we can pad the
7750         bss. Fixes cygwin unexec.
7751
7752         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7753
7754 2000-12-26  Andy Piper  <andy@xemacs.org>
7755
7756         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7757         comments and try and be more precise about a non-/SIGIO world.
7758         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7759         SIGIO.
7760
7761         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7762         we don't normalize to zero width or height.
7763
7764 2000-12-24  Andy Piper  <andy@xemacs.org>
7765
7766         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7767
7768 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7769
7770         * s/sco5.h: SCO 5 has pty support.
7771
7772 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7773
7774         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7775         input-method-xlib.c contains whole contents of input-method-xfs.c,
7776         so we can use input-method-xlib.c's code for USE_XFONTSET
7777         using #ifdefs.
7778         * input-method-xfs.c: removed.
7779
7780 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7781
7782         * file-coding.h (enum coding_category_type): reorder enumerators to
7783         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7784         (now one greater than largest real coding_category_type enumerator).
7785         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7786         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7787         Fcoding_category_list, Fset_coding_priority_list,
7788         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7789         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7790
7791 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7792
7793         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7794         * redisplay-output.c (redisplay_output_window): Clear top of window
7795         when face is changed.
7796         * redisplay-x.c (x_redraw_exposed_window): Call
7797         redisplay_clear_top_of_window.
7798         * redisplay.h: Publish redisplay_clear_top_of_window.
7799
7800 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7801
7802         * buffer.c (Fkill_buffer): Map over all devices.
7803         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7804         (list_windows): New function.
7805         (list_all_windows): Ditto.
7806         (Freplace_buffer_in_windows): Use them.
7807
7808 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7809
7810         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7811         (Fopen_database): Use `db_create' instead of `db_open'.
7812         (syms_of_database): Initialize Qqueue.
7813
7814 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7815
7816         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7817         buffer_local_face_property.
7818         * buffer.h (struct buffer): New member buffer_local_face_property.
7819         * window.c (Fset_window_buffer):  Mark window's face as changed
7820         when buffer has buffer local face.
7821         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7822         * objects.c (color_after_change): Set buffer_local_face_property
7823         when locale of face specifier is buffer.
7824         * objects.c (font_after_change): Ditto.
7825         * objects.c (face_boolean_after_change): Ditto.
7826         * glyphs.c (image_after_change): Ditto.
7827
7828 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7829
7830         * nt.c (mswindows_fstat): Report file permissions, volume serial
7831         number, etc. Code adapted from FSF Emacs 20.7.
7832
7833 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7834
7835         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7836         of stat when we don't have symbolic links, to make sure
7837         mswindows_stat is called on mswindows.
7838
7839 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7840
7841         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7842
7843 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7844
7845         * doprnt.c (emacs_doprnt_1): More printing fixes.
7846         Make printing of numbers compatible with libc and FSF Emacs.
7847         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7848         Use the system printf to do most of the hard work of formatting,
7849         instead of doprnt_1().
7850         Calculate memory to allocate for format string.
7851         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7852         (doprnt_1): Cleaner code and documentation.
7853
7854 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7855
7856         * Makefile.in.in: Use the loop variable to install headers.
7857
7858 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7859
7860         * window.c (Fsplit_window): Don't invalidate face cache.
7861
7862 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7863
7864         * minibuf.c (Fall_completions): Undo the previous change
7865         which removed checking elements start with space.
7866
7867 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7868
7869         * mule-canna.c: Didier suppression.
7870
7871 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7872
7873         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7874         (warning suppression).  Add English comment translations.
7875
7876 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7877
7878         * unexelfsgi.c (unexec): Better test for mmap failure.
7879
7880 2000-12-05  Martin Buchholz <martin@xemacs.org>
7881
7882         * XEmacs 21.2.38 is released.
7883
7884 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7885
7886         * redisplay.c (bar-cursor): Make a user variable.
7887
7888         * symsinit.h: Add init_postgresql_from_environment.
7889
7890 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7891
7892         * regex.c: Convert to clean C.
7893
7894 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7895
7896         * realpath.c:
7897         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7898         initialization.
7899         (sys_readlink): renamed to system_readlink to avoid conflict with
7900         the other sys_readlink.
7901
7902 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7903
7904         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7905
7906 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7907
7908         * postgresql.c (init_postgresql_from_environment): new function.
7909         (vars_of_postgresql): Move code initializing Lisp variables out and
7910         into init_postgresql_from_environment.
7911         emacs.c (main_1): Call init_postgresql_from_environment if and only
7912         if running a dumped XEmacs.
7913
7914 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7915
7916         * buffer.c: Make find-file-compare-truenames default to true on
7917         windows.
7918
7919         * realpath.c (win32_abs_start):
7920         (cygwin_readlink):
7921         (win32_readlink): New functions.
7922         (xrealpath): Return really real filenames on windows.
7923
7924         * fileio.c (Ffile_truename): Make file-truename work on windows.
7925
7926 2000-11-29  Didier Verna  <didier@xemacs.org>
7927
7928         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7929         * faces.c (update_face_cachel_data): use it.
7930         * faces.c (add_face_cachel): use it. Complete background pixmap
7931         frobbing in face cache if `update_face_cachel_data' has not done so.
7932
7933 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7934
7935         * search.c (string_match_1): Don't set last_thing_searched
7936         when search failed.
7937
7938 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7939
7940         * buffer.c: Include casetab.h
7941         (common_init_complex_vars_of_buffer): Use new case-table object.
7942         * buffer.h: Include casetab.h
7943         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7944         (DOWNCASE_TABLE_OF): Ditto.
7945         * bufslots.h: Remove char-tables and add case-table.
7946         * casetab.c: Include casetab.h
7947         (CASE_TABLE_P): Removed.
7948         (mark_case_table): New function.
7949         (allocate_case_table): New function.
7950         (Fcase_table_p): Use new case-table.
7951         (case_table_char): New function.
7952         (Fget_case_table): Ditto.
7953         (Fput_case_table): Ditto.
7954         (Fput_case_table_pair): Ditto.
7955         (Fcopy_case_table): Ditto.
7956         (Fcurrent_case_table): Return case-table.
7957         (Fstandard_case_table): Return case-table.
7958         (Fset_case_table): Fix doc-string.
7959         (set_case_table): Use case-table
7960         (syms_of_casetab): DEFSUBR new functions.
7961         (complex_vars_of_casetab): Set up standard case-table.
7962         * casetab.h: New file.
7963         * editfns.c: Include casetab.h
7964         (Fcompare_buffer_substrings): Use case-table.
7965         * inline.c: Include casetab.h
7966         * lisp.h: Remove bogus extern.
7967         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7968         * search.c: Include casetab.h
7969         (TRANSLATE_ASCII): Removed.
7970         (TRANSLATE): Unconditionally translate character.
7971         (looking_at_1): Use case-table.
7972         (string_match_1): Ditto.
7973         (fast_string_match): Ditto.
7974         (search_command): Ditto.
7975         (search_buffer): Separate boyer_moore.  Check whether
7976         boyer_moore is possible.
7977         (simple_search): New function.
7978         (boyer_moore): Separated from search_buffer. Translate char.
7979
7980 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7981
7982         * regex.c (RE_TR_ASCII): Removed.
7983         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7984         (PATFETCH): Call PATFETCH_RAW.
7985         (PATFETCH_RAW): Fetch Emchar.
7986         (PATUNFETCH): Decrement charptr.
7987         (GET_BUFFER_SPACE): Rename b to buf_end.
7988         (BUF_PUSH): Ditto.
7989         (BUF_PUSH_2): Ditto.
7990         (BUF_PUSH_3): Ditto.
7991         (EXTEND_BUFFER): Ditto.
7992         (SET_LIST_BIT): Ditto.
7993         (regex_compile): Ditto.  Translate non ASCII char.
7994         (compile_range): Ditto.
7995         (re_search_2): Ditto.
7996         (re_match_2_internal): Compare Emchar.
7997         (bcmp_translate): Ditto.
7998
7999 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8000
8001         * lisp.h (basic char/int typedefs):  comment improvement.
8002
8003 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8004
8005         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8006         unstomp inhibit_site_lisp.  Improve comments.
8007
8008 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8009
8010         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8011
8012 2000-11-28  Andy Piper  <andy@xemacs.org>
8013
8014         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8015         clipped display for windows in the gutter also.
8016         (redisplay_display_boxes_in_window_p): change semantics of return
8017         codes to be more intuitive.
8018
8019         * gutter.h: declare display_boxes_in_gutter_p.
8020
8021         * gutter.c (display_boxes_in_gutter_p): new function for
8022         redisplay.
8023
8024 2000-11-22  Andy Piper  <andy@xemacs.org>
8025
8026         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8027         autodetect domain.
8028
8029 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8030
8031         * callproc.c (Fold_call_process_internal):
8032         * gpm.c (Freceive_gpm_event):
8033         (tty_get_foreign_selection): Might be just warning supression.
8034         * fileio.c (Fwrite_region_internal):
8035         (Fset_visited_file_modtime):
8036         * keymap.c (event_matches_key_specifier_p):
8037         Initialize GCPROed variable.
8038
8039         * menubar-x.c (command_builder_find_menu_accelerator):
8040         Initialize before use.
8041
8042 2000-11-23  Andy Piper  <andy@xemacs.org>
8043
8044         * unexcw.c (unexec): make the resulting executable executable.
8045
8046 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8047
8048         * doc.c (get_doc_string):
8049         Use size_t, not int, for result of XSTRING_LENGTH.
8050
8051         * cmds.c (Fdelete_char):
8052         * cmds.c (Fpoint_at_eol):
8053         * cmds.c (Fself_insert_command):
8054         Use EMACS_INT, not int, for result of XINT.
8055         Someday, someone will want to insert more than 2**31 identical characters.
8056
8057         * cmds.c (Fdelete_char):
8058         * cmds.c (Fdelete_backward_char):
8059         * syntax.c (Fforward_word):
8060         * syntax.c (Fforward_comment):
8061         Make COUNT argument optional, for consistency with forward-char et al.
8062
8063 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8064
8065         * lisp.h:
8066         * print.c (long_to_string):
8067         Return a useful value: the pointer at end of data written.
8068
8069         * doprnt.c:
8070         Use `static const char * const' for constant strings.
8071         (union printf_arg): Delete `i', `ui' members.
8072         (get_doprnt_args):
8073         (emacs_doprnt_1):
8074         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8075         Do all printf-ing via the `l' specifier.
8076         Use EMACS_INT instead of int.
8077         Optimize.
8078
8079 2000-11-20  Didier Verna  <didier@xemacs.org>
8080
8081         * faces.c (update_face_cachel_data): don't frob the background
8082         pixmap when the window is being created. The face is needed but
8083         does not exist yet.
8084
8085 2000-11-20  Andy Piper  <andy@xemacs.org>
8086
8087         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8088         messing with a debug environment.
8089
8090 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8091
8092         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8093
8094 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8095
8096         * casetab.c (Fcase_table_p): Fix compile error and crash.
8097
8098 2000-11-18  Philip Aston  <philipa@mail.com>
8099
8100         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8101
8102 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8103
8104         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8105         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8106
8107 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8108
8109         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8110         * unexelf.c: Use HAVE_ELF_H.
8111         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8112         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8113         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8114         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8115         for testing.
8116         So this is an unexelfsgi.c from a different line of development.
8117
8118 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8119
8120         * regex.c (RE_TR_ASCII): New function.
8121         (RE_TRANSLATE): Call it.
8122
8123 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8124
8125         * buffer.h (TRT_TABLE_OF): Remove assert.
8126         (IN_TRT_TABLE_DOMAIN): Removed.
8127
8128 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8129
8130         * free-hook.c (log_gcpro):
8131         (show_gcprohist): Add support for GCPRO5.
8132
8133 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8134
8135         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8136
8137 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8138
8139         * symeval.h: Declare flush_all_buffer_local_cache.
8140
8141         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8142         (flush_buffer_local_cache): Added.
8143         (flush_all_buffer_local_cache): Added.
8144
8145         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8146
8147         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8148         (pdump_dump_data): Ditto.
8149         (pdump_reloc_one): Ditto.
8150         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8151         before dumping.
8152
8153
8154 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8155
8156         * buffer.c: Remove if 0'ed entry.
8157         * buffer.h: Rewrite TRT to use char-table.
8158         * bufslots.h: Remove mirror tables.
8159         * casetab.c: Remove mirror tables.
8160         (CASE_TABLE_P): New macro.
8161         (Fcase_table_p): Element of a case table is string or char-table.
8162         (make_mirror_trt_table): Removed.
8163         (set_case_table): Setup char-table from strings for backward
8164         compatibility.
8165         * dired.c (Fdirectory_files):
8166         * dired-msw.c: (mswindows_get_files):
8167         * lisp.h: Change prototype of re_pattern_buffer.
8168         * regex.c: (RE_TRANSLATE): New macro.
8169         (TRANSLATE_P): Ditto.
8170         Change translate to type RE_TRANSLATE_TYPE.
8171         * regex.h: Define RE_TRANSLATE_TYPE
8172         * search.c (TRANSLATE): New macro.
8173         (TRANSLATE_ASCII): New macro.
8174         Translate table is changed to Lisp_Object.
8175         (signal_failure): Inhibit return.
8176
8177 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8178
8179         * device-msw.c:
8180         * eldap.c:
8181         * event-Xt.c:
8182         * event-stream.c:
8183         * print.c:
8184         Do UNGCPRO before return.
8185
8186 2000-11-14  Martin Buchholz <martin@xemacs.org>
8187
8188         * XEmacs 21.2.37 is released.
8189
8190 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8191
8192         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8193         Add comments about discarded return value.
8194
8195 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8196
8197         * callint.c:
8198         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8199
8200 2000-10-27  Andy Piper  <andy@xemacs.org>
8201
8202         * gutter.c (Fset_default_gutter_position): default left and right
8203         gutters to visible.
8204         (calculate_gutter_size): calculate resonable heuristic for left
8205         and right gutter sizes.
8206         (specifier_vars_of_gutter): change left and right gutter sizes to
8207         autodetect.
8208         (calculate_gutter_size_from_display_lines): new function.
8209         (output_gutter): check for resizing on left and right gutters.
8210         (clear_gutter): don't special case top and left gutters.
8211         (specifier_vars_of_gutter): use new signature for
8212         set_specifier_caching.
8213
8214         * glyphs-x.c (x_redisplay_widget): spelling fix.
8215         * glyphs.c (specifier_vars_of_glyphs):
8216         * menubar.c (specifier_vars_of_menubar):
8217         * redisplay.c (specifier_vars_of_redisplay):
8218         * toolbar.c (specifier_vars_of_toolbar):
8219         * window.c (specifier_vars_of_window):
8220         * scrollbar.c (specifier_vars_of_scrollbar):
8221         (complex_vars_of_scrollbar): use new signature for
8222         set_specifier_caching.
8223
8224         * specifier.c (set_specifier_caching): include recompute flag.
8225         (recompute_one_cached_specifier_in_window): always recompute if
8226         flag set.
8227         (recompute_one_cached_specifier_in_frame): ditto.
8228
8229         * specifier.h (struct specifier_caching): add recompute flag.
8230
8231 2000-10-24  Andy Piper  <andy@xemacs.org>
8232
8233         * unexcw.c (copy_executable_and_dump_data_section): add new
8234         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8235         5.0 happy.
8236
8237 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8238
8239         * console-x.h (x_device): New member modifier_release_time.
8240         * event-Xt.c (x_handle_sticky_modifiers):
8241         Bound interval modifier keys are sticky.
8242         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8243         * events.h: extern it.
8244
8245 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8246
8247         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8248
8249 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8250
8251         * event-stream.c (execute_command_event): Preserve current_events
8252         and the like when event is misc-user-event.
8253         Inhibit quit during the call to maybe_echo_keys.
8254
8255 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8256
8257         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8258         symlink when buffer is killed.
8259         (inhibit_clash_detection): New variable.
8260
8261 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8262
8263         * console.c (Fset_input_method): Trigger redisplay on tty.
8264
8265 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8266
8267         * process.c (Fprocess_status): Revert to previous behavior:
8268         (process-status "nosuchprocess") ==> nil
8269
8270 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8271
8272         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8273         Work around another GCC 2.95.2 optimizer bug.
8274
8275 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8276
8277         * process.c (Fget_process): Use LIST_LOOP_2.
8278         (kill_buffer_processes): Use LIST_LOOP_2.
8279
8280         * minibuf.c (Fall_completions):
8281         Delete old non-functional code for FSF fourth argument.
8282
8283         * frame.c (frame_matches_frame_spec):
8284         Renamed from `frame_matches_frametype'.  Update all callers.
8285         (device_matches_device_spec):
8286         Renamed from 'device_matches_console_spec'.  Update all callers.
8287
8288         * doc.c (Fsubstitute_command_keys):
8289         Remove buffer overflow crash.  Small code cleanups.
8290
8291         * casetab.c (check_case_table): Simpler code.
8292
8293         * window.c (Freplace_buffer_in_windows):
8294         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8295         (and similar implementation) as Fdelete_windows_on.
8296         Update all callers.
8297
8298         * alloc.c (Fmake_list):
8299         * alloc.c (make_vector):
8300         * alloc.c (Fmake_vector):
8301         * alloc.c (make_bit_vector):
8302         * alloc.c (Fmake_bit_vector):
8303         * alloc.c (Fbit_vector):
8304         * alloc.c (Fmake_string):
8305         * alloc.c (Fpurecopy):
8306         * alloc.c (Fmemory_limit):
8307         * buffer.c:
8308         * buffer.c (Fget_buffer):
8309         * buffer.c (Fkill_buffer):
8310         * buffer.c (complex_vars_of_buffer):
8311         * bytecode.c (Fcompiled_function_stack_depth):
8312         * callint.c (Fprefix_numeric_value):
8313         * event-stream.c:
8314         * event-stream.c (Fread_key_sequence):
8315         * casetab.c:
8316         * casetab.c (Fcase_table_p):
8317         * casetab.c (check_case_table):
8318         * casetab.c (Fset_case_table):
8319         * casetab.c (Fset_standard_case_table):
8320         * chartab.c:
8321         * chartab.c (Fchar_table_type):
8322         * chartab.c (Freset_char_table):
8323         * chartab.c (Fget_char_table):
8324         * chartab.c (Fget_range_char_table):
8325         * chartab.c (Fput_char_table):
8326         * chartab.c (Fmap_char_table):
8327         * chartab.c (Fcategory_table_p):
8328         * chartab.c (Fcheck_category_at):
8329         * chartab.c (Fchar_in_category_p):
8330         * chartab.c (Fcategory_table):
8331         * chartab.c (Fcopy_category_table):
8332         * chartab.c (Fset_category_table):
8333         * chartab.c (Fcategory_designator_p):
8334         * chartab.c (Fcategory_table_value_p):
8335         * cmds.c (Fdelete_char):
8336         * cmds.c (Fdelete_backward_char):
8337         * cmds.c (Fself_insert_command):
8338         * cmds.c (Fself_insert_internal):
8339         * console.c (Fvalid_console_type_p):
8340         * console.c (Fcdfw_console):
8341         * console.c (Fconsole_type):
8342         * console.c (Fconsole_name):
8343         * console.c (Fconsole_device_list):
8344         * console.c (Fconsole_on_window_system_p):
8345         * data.c:
8346         * data.c (Feq):
8347         * data.c (Fold_eq):
8348         * data.c (Fsubr_interactive):
8349         * data.c (Fchar_to_int):
8350         * data.c (Fint_to_char):
8351         * data.c (Fsetcar):
8352         * data.c (Fsetcdr):
8353         * data.c (Fnumber_to_string):
8354         * data.c (Fstring_to_number):
8355         * data.c (Frem):
8356         * database.c (mark_database):
8357         * database.c (finalize_database):
8358         * database.c (Fdatabase_live_p):
8359         * database.c (Fdatabasep):
8360         * device-x.c (Fx_get_resource):
8361         * device.c (Fdfw_device):
8362         * dired.c:
8363         * dired.c (Ffile_name_completion):
8364         * dired.c (Ffile_name_all_completions):
8365         * dired.c (Fuser_name_completion):
8366         * dired.c (Fuser_name_completion_1):
8367         * dired.c (Fuser_name_all_completions):
8368         * doc.c (Fdocumentation):
8369         * doc.c (Fdocumentation_property):
8370         * doc.c (Fsubstitute_command_keys):
8371         * editfns.c:
8372         * editfns.c (Fchar_to_string):
8373         * editfns.c (Fstring_to_char):
8374         * editfns.c (Ftemp_directory):
8375         * editfns.c (Finsert_char):
8376         * editfns.c (Fbuffer_substring_no_properties):
8377         * editfns.c (Fnarrow_to_region):
8378         * editfns.c (Fchar_equal):
8379         * editfns.c (Fchar_Equal):
8380         * editfns.c (Ftranspose_regions):
8381         * emacs.c (Fdump_emacs):
8382         * eval.c (Fthrow):
8383         * eval.c (Fcommand_execute):
8384         * eval.c (Fautoload):
8385         * eval.c (Fbacktrace):
8386         * eval.c (Fbacktrace_frame):
8387         * events.c:
8388         * events.c (Fcopy_event):
8389         * events.c (Fcharacter_to_event):
8390         * events.c (Fevent_button):
8391         * events.c (Fevent_process):
8392         * extents.c:
8393         * extents.c (Fnext_extent_change):
8394         * extents.c (Fextent_property):
8395         * faces.c (Ffacep):
8396         * faces.c (Fmake_face):
8397         * file-coding.c:
8398         * file-coding.c (Fencode_shift_jis_char):
8399         * file-coding.c (Fencode_big5_char):
8400         * fileio.c (Ffile_name_directory):
8401         * fileio.c (Ffile_name_nondirectory):
8402         * fileio.c (Ffile_name_as_directory):
8403         * fileio.c (Fdirectory_file_name):
8404         * fileio.c (Ffile_truename):
8405         * fileio.c (Fsubstitute_in_file_name):
8406         * fileio.c (Ffile_modes):
8407         * fileio.c (Fset_file_modes):
8408         * fileio.c (Fset_default_file_modes):
8409         * fileio.c (Fverify_visited_file_modtime):
8410         * floatfns.c (Facos):
8411         * floatfns.c (Fasin):
8412         * floatfns.c (Fatan):
8413         * floatfns.c (Fcos):
8414         * floatfns.c (Fsin):
8415         * floatfns.c (Ftan):
8416         * floatfns.c (Fbessel_j0):
8417         * floatfns.c (Fbessel_j1):
8418         * floatfns.c (Fbessel_jn):
8419         * floatfns.c (Fbessel_y0):
8420         * floatfns.c (Fbessel_y1):
8421         * floatfns.c (Fbessel_yn):
8422         * floatfns.c (Ferf):
8423         * floatfns.c (Ferfc):
8424         * floatfns.c (Flog_gamma):
8425         * floatfns.c (Fexp):
8426         * floatfns.c (Fexpt):
8427         * floatfns.c (Flog):
8428         * floatfns.c (Flog10):
8429         * floatfns.c (Fsqrt):
8430         * floatfns.c (Fcube_root):
8431         * floatfns.c (Facosh):
8432         * floatfns.c (Fasinh):
8433         * floatfns.c (Fatanh):
8434         * floatfns.c (Fcosh):
8435         * floatfns.c (Fsinh):
8436         * floatfns.c (Ftanh):
8437         * floatfns.c (Fabs):
8438         * floatfns.c (Ffloat):
8439         * floatfns.c (Flogb):
8440         * floatfns.c (Fceiling):
8441         * floatfns.c (Ffloor):
8442         * floatfns.c (Fround):
8443         * floatfns.c (Ftruncate):
8444         * floatfns.c (Ffceiling):
8445         * floatfns.c (Fffloor):
8446         * floatfns.c (Ffround):
8447         * floatfns.c (Fftruncate):
8448         * fns.c (Fstring_equal):
8449         * fns.c (Fstring_lessp):
8450         * fns.c (concat2):
8451         * fns.c (concat3):
8452         * fns.c (vconcat2):
8453         * fns.c (vconcat3):
8454         * fns.c (Fsubstring):
8455         * fns.c (Fassoc):
8456         * fns.c (Fold_assoc):
8457         * fns.c (assoc_no_quit):
8458         * fns.c (Fassq):
8459         * fns.c (Fold_assq):
8460         * fns.c (assq_no_quit):
8461         * fns.c (Frassoc):
8462         * fns.c (Fold_rassoc):
8463         * fns.c (Frassq):
8464         * fns.c (Fold_rassq):
8465         * fns.c (rassq_no_quit):
8466         * fns.c (Fremassoc):
8467         * fns.c (remassoc_no_quit):
8468         * fns.c (Fremassq):
8469         * fns.c (remassq_no_quit):
8470         * fns.c (Fremrassoc):
8471         * fns.c (Fremrassq):
8472         * fns.c (remrassq_no_quit):
8473         * fns.c (Fsort):
8474         * fns.c (Fplist_get):
8475         * fns.c (Fplist_put):
8476         * fns.c (Fplist_remprop):
8477         * fns.c (Fplist_member):
8478         * fns.c (Flax_plist_get):
8479         * fns.c (Flax_plist_put):
8480         * fns.c (Flax_plist_remprop):
8481         * fns.c (Flax_plist_member):
8482         * fns.c (Fequal):
8483         * fns.c (Fold_equal):
8484         * fns.c (Frequire):
8485         * fns.c (Fbase64_encode_region):
8486         * fns.c (Fbase64_encode_string):
8487         * fns.c (Fbase64_decode_region):
8488         * frame.c:
8489         * frame.c (frame_matches_frame_spec):
8490         * frame.c (device_matches_device_spec):
8491         * frame.c (next_frame):
8492         * frame.c (previous_frame):
8493         * frame.c (Fnext_frame):
8494         * frame.c (Fprevious_frame):
8495         * frame.c (Fframe_property):
8496         * frame.c (Fset_frame_height):
8497         * frame.c (Fset_frame_size):
8498         * frame.h:
8499         * glyphs.c:
8500         * glyphs.c (if):
8501         * glyphs.c (decode_error_behavior_flag):
8502         * glyphs.c (Fmake_image_instance):
8503         * indent.c (Findent_to):
8504         * intl.c (Fignore_defer_gettext):
8505         * keymap.c (Fkeymapp):
8506         * keymap.c (Flookup_key):
8507         * lread.c:
8508         * lread.c (Fload_internal):
8509         * lread.c (Feval_buffer):
8510         * lread.c (Feval_region):
8511         * macros.c (Fexecute_kbd_macro):
8512         * marker.c (set_marker_internal):
8513         * marker.c (Fset_marker):
8514         * marker.c (set_marker_restricted):
8515         * marker.c (Fcopy_marker):
8516         * marker.c (noseeum_copy_marker):
8517         * menubar.c:
8518         * menubar.c (Fpopup_menu):
8519         * minibuf.c:
8520         * mule-charset.c (Fcharset_name):
8521         * mule-charset.c (Fchar_charset):
8522         * mule-charset.c (Fchar_octet):
8523         * mule-charset.c (Fsplit_char):
8524         * mule-wnnfns.c (Fwnn_open):
8525         * mule-wnnfns.c (Fwnn_dict_comment):
8526         * mule-wnnfns.c (Fwnn_quit_henkan):
8527         * mule-wnnfns.c (Fwnn_word_toroku):
8528         * mule-wnnfns.c (Fwnn_word_sakujo):
8529         * mule-wnnfns.c (Fwnn_word_use):
8530         * mule-wnnfns.c (Fwnn_hindo_set):
8531         * objects.c:
8532         * objects.c (Fmake_color_instance):
8533         * objects.c (Fmake_font_instance):
8534         * print.c (Fwrite_char):
8535         * process.c:
8536         * process.c (mark_process):
8537         * process.c (print_process):
8538         * process.c (get_process_from_usid):
8539         * process.c (Fprocessp):
8540         * process.c (Fprocess_live_p):
8541         * process.c (Fget_process):
8542         * process.c (Fget_buffer_process):
8543         * process.c (get_process):
8544         * process.c (Fprocess_id):
8545         * process.c (Fprocess_name):
8546         * process.c (Fprocess_command):
8547         * process.c (init_process_io_handles):
8548         * process.c (start_process_unwind):
8549         * process.c (Fstart_process_internal):
8550         * process.c (Fopen_multicast_group_internal):
8551         * process.c (Fset_process_window_size):
8552         * process.c (read_process_output):
8553         * process.c (send_process):
8554         * process.c (Fprocess_tty_name):
8555         * process.c (Fset_process_buffer):
8556         * process.c (Fprocess_buffer):
8557         * process.c (Fprocess_mark):
8558         * process.c (set_process_filter):
8559         * process.c (Fset_process_filter):
8560         * process.c (Fprocess_filter):
8561         * process.c (Fprocess_send_region):
8562         * process.c (Fprocess_send_string):
8563         * process.c (exec_sentinel):
8564         * process.c (Fset_process_sentinel):
8565         * process.c (Fprocess_sentinel):
8566         * process.c (status_notify):
8567         * process.c (Fprocess_status):
8568         * process.c (Fprocess_exit_status):
8569         * process.c (process_send_signal):
8570         * process.c (Fprocess_send_eof):
8571         * process.c (deactivate_process):
8572         * process.c (remove_process):
8573         * process.c (Fdelete_process):
8574         * process.c (kill_buffer_processes):
8575         * process.c (Fprocess_kill_without_query):
8576         * process.c (Fprocess_kill_without_query_p):
8577         * rangetab.c:
8578         * rangetab.c (Fget_range_table):
8579         * rangetab.c (Fput_range_table):
8580         * rangetab.c (Fremove_range_table):
8581         * rangetab.c (Fclear_range_table):
8582         * search.c:
8583         * search.c (Fskip_chars_forward):
8584         * search.c (Fskip_chars_backward):
8585         * search.c (Fskip_syntax_forward):
8586         * search.c (Fskip_syntax_backward):
8587         * search.c (search_command):
8588         * search.c (Freplace_match):
8589         * search.c (Fregexp_quote):
8590         * select.c (Fown_selection_internal):
8591         * select.c (Fselection_owner_p):
8592         * select.c (Fselection_exists_p):
8593         * select.c (Fget_selection_internal):
8594         * specifier.c:
8595         * symbols.c:
8596         * symbols.c (Fintern):
8597         * symbols.c (Fintern_soft):
8598         * symbols.c (Funintern):
8599         * symbols.c (Fapropos_internal):
8600         * symbols.c (Fset_default):
8601         * syntax.c:
8602         * syntax.c (Fsyntax_table_p):
8603         * syntax.c (Fcopy_syntax_table):
8604         * syntax.c (Fset_syntax_table):
8605         * syntax.c (Fchar_syntax):
8606         * syntax.c (syntax_match):
8607         * syntax.c (Fmatching_paren):
8608         * syntax.c (Fforward_word):
8609         * syntax.c (scan_lists):
8610         * syntax.c (Fscan_lists):
8611         * syntax.c (Fscan_sexps):
8612         * syntax.c (Fparse_partial_sexp):
8613         * toolbar.c (Fcheck_toolbar_button_syntax):
8614         * tooltalk.doc:
8615         * window.c:
8616         * window.c (Fwindowp):
8617         * window.c (Fwindow_live_p):
8618         * window.c (Fwindow_point):
8619         * window.c (Fdelete_window):
8620         * window.c (Fnext_window):
8621         * window.c (Fprevious_window):
8622         * window.c (Fother_window):
8623         * window.c (window_loop):
8624         * window.c (Fget_lru_window):
8625         * window.c (Fsplit_window):
8626         * window.c (Fenlarge_window):
8627         * window.c (Fenlarge_window_pixels):
8628         * window.c (Fshrink_window):
8629         * window.c (Fshrink_window_pixels):
8630         * window.c (change_window_height):
8631         * window.c (Fwindow_configuration_p):
8632         * window.c (Fcurrent_window_configuration):
8633         * window.h:
8634         * casefiddle.c (casify_object):
8635         * casefiddle.c (Fupcase):
8636         * casefiddle.c (Fdowncase):
8637         * casefiddle.c (Fcapitalize):
8638         * casefiddle.c (Fupcase_initials):
8639         * casefiddle.c (casify_region_internal):
8640         * casefiddle.c (casify_region):
8641         * casefiddle.c (Fupcase_region):
8642         * casefiddle.c (Fdowncase_region):
8643         * casefiddle.c (Fcapitalize_region):
8644         * casefiddle.c (Fupcase_initials_region):
8645         * casefiddle.c (Fupcase_word):
8646         * casefiddle.c (Fdowncase_word):
8647         * casefiddle.c (Fcapitalize_word):
8648         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8649         Replace 0 with '\0' when working with bytes.
8650         Replace initial "(" with "\(" in docstrings.
8651
8652 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8653
8654         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8655
8656         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8657
8658 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8659
8660         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8661
8662 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8663
8664         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8665         correctly.
8666
8667 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8668
8669         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8670         (inhibit_auto_save_session): New variable.
8671         (vars_of_fileio): Declare and initialize them.
8672         * fileio.c (Fdo_auto_save): Don't create session file if
8673         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8674
8675 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8676
8677         * sgiplay.c (play_internal): C++ compilability.
8678         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8679         * callproc.c (Fold_call_process_internal):
8680         Remove unused vars `env', `first'.
8681         * scrollbar.c (update_scrollbar_instance):
8682         #### unused var `current_window'.
8683         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8684         etc. within #ifdef NOT_YET.
8685         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8686         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8687         * specifier.c (specifier_instance):
8688         #### unused var `tag'.
8689         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8690
8691 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8692
8693         * fns.c (Fbutlast):
8694         * fns.c (list_sort):
8695         * fns.c (Ffillarray):
8696         * fns.c (bytecode_nconc2):
8697         * fns.c (Fnconc):
8698         * fns.c (mapcar1):
8699         * fns.c (Fmapconcat):
8700         Be pedantically 64-bit correct.  For the time when someone will
8701         want to have a list with length > 2**32.
8702
8703         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8704         Work around MIPSpro compiler bug.
8705
8706         * process-unix.c (unix_kill_child_process): Add snarky comment.
8707         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8708
8709         * config.h.in: Oops, _getpt ==> _getpty
8710
8711 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8712
8713         * config.h.in:
8714         * regex.c:
8715         Use void*, not char*, as return type of alloca().
8716
8717         * alloc.c (free_marker): Side effect inside assert expression!
8718
8719 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8720
8721         * mule-charset.c (Fset_charset_ccl_program): To check
8722         if the given ccl program is valid, use setup_ccl_program()
8723         instead of CHECK_VECTOR().
8724         (Fmake_charset): Likewise.
8725
8726 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8727
8728         * faces.c (get_extent_fragment_face_cache_index):
8729         Fix cachel.merged_faces memory leak.
8730
8731 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8732
8733         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8734         Reset MSB of octets obtained by DECODE_SJIS
8735         because of the incompatibility with Emacs.
8736         (ccl_driver)<CCL_ENCODE_SJIS>:
8737         Set MSB of octets before passing them to
8738         ENCODE_SJIS because of the incompatibility
8739         with Emacs.
8740
8741 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8742
8743         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8744         (DECLARE_LRECORD): Undo the last change.
8745         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8746
8747 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8748
8749         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8750         the implementation to lrecord_implementations_table.
8751
8752 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8753
8754         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8755         initial value of `lrecord_type_##c_name' and
8756         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8757         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8758         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8759         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8760         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8761
8762 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8763
8764         * miscplay.c (sndcnv8S_2mono):
8765         (sndcnv2monounsigned):
8766         (sndcnvULaw_2linear):
8767         (sndcnv16swap):
8768         Remove implementation-defined behavior.
8769
8770 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8771
8772         * input-method-xlib.c: Warning suppression.
8773
8774 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8775
8776         * mule-ccl.c: Sync up with Emacs 21.0.90.
8777         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8778         Do nothing.
8779         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8780         Likewise.
8781         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8782         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8783         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8784         leading char belongs to official 2-dimensional charset.
8785         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8786         write the given character as is.  Otherwise,
8787         if it is a multibyte char, convert it by
8788         non_ascii_set_charptr_emchar, then write it.
8789         (CCL_WRITE_STRING): Likewise.
8790         (ccl_get_compiled_code): New function.
8791         (setup_ccl_program): When ccl_prog is invalid,
8792         return -1.
8793         (Fregister_code_conversion_map): New function.
8794         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8795
8796         * mule-ccl.h: Sync up with Emacs 21.0.90.
8797         (Fregister_ccl_program): export it.
8798
8799         * redisplay-msw.c (separate_textual_runs):
8800         If ccl program is not valid, don't do ccl conversion.
8801
8802         * redisplay-x.c (separate_textual_runs): Ditto.
8803
8804         * file-coding.c (Fmake_coding_system):
8805         When type is ccl and value is vector, register it
8806         with a proper symbol.  And checks whether the
8807         given ccl program is valid.
8808         (mule_decode): When calling ccl_driver, if src indicates
8809         NULL pointer, set an empty string instead.
8810         (mule_encode): Likewise.
8811
8812 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8813
8814         The following large batch of changes gets us back to a state of
8815         C++ compilability.  Extbyte is now a char, which means that
8816         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8817
8818         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8819
8820         * sound.c (Fplay_sound): Type correctness.
8821
8822         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8823         (x_get_window_property): Type correctness.
8824         (receive_incremental_selection): unsigned char ==> Extbyte
8825         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8826         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8827         (Fx_store_cutbuffer_internal): Type correctness.
8828
8829         * process-unix.c (try_to_initialize_subtty): Type correctness.
8830
8831         * objects-x.c (x_print_color_instance): Type correctness.
8832         (x_print_font_instance): Type correctness.
8833         (x_list_fonts): SExtbyte ==> Extbyte.
8834         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8835         (x_find_charset_font): SExtbyte ==> Extbyte.
8836         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8837         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8838         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8839         Use bufbyte_strcmp.
8840
8841         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8842         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8843         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8844         (BYTE_C0_P): Use bit ops for char-signedness safety.
8845         (BYTE_C1_P): Use bit ops for char-signedness safety.
8846         (CHARSET_BY_LEADING_BYTE):
8847         (CHARSET_BY_ATTRIBUTES):
8848         Always use inline function.
8849         Use type_checking_assert.
8850         Hide chlook.
8851
8852         * mule-charset.c (non_ascii_charptr_copy_char):
8853         Modify to work with both ASCII and non-ASCII characters.
8854         Improve docs and variable names.
8855         Replace over-clever fall-through switch with a simple loop.
8856         (Lstream_get_emchar_1):
8857         Replace over-clever fall-through switch with a simple loop.
8858
8859         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8860         Warning suppression.
8861
8862         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8863         the return value of Lstream_getc, which could be EOF as well.
8864
8865         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8866
8867         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8868         APIs can be used on Extbytes without casts.  Risky!
8869         (SExtbyte): Remove.
8870         (UExtbyte): Remove.
8871
8872         * input-method-xlib.c (XIM_init_device):
8873         Use Xlib.h instead of IntrinsicP.h.
8874         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8875         which will break in X11R7.
8876         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8877         to call XRegisterIMInstantiateCallback with correct types.
8878
8879         * gui-x.c (button_item_to_widget_value): Type correctness.
8880
8881         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8882
8883         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8884         (xbm_instantiate_1): Type correctness.
8885         (BUILD_GLYPH_INST):  Type correctness.
8886
8887         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8888
8889         * file-coding.c:
8890         (decode_coding_sjis):
8891         (decode_coding_big5):
8892         (decode_coding_ucs4):
8893         (decode_coding_utf8):
8894         (decode_coding_iso2022):
8895         (decode_coding_no_conversion):
8896         Make all decoding functions take an Extbyte * arg.
8897         (encode_coding_sjis):
8898         (encode_coding_big5):
8899         (encode_coding_ucs4):
8900         (encode_coding_utf8):
8901         (encode_coding_iso2022):
8902         (encode_coding_no_conversion):
8903         Make all encoding functions take a Bufbyte * arg.
8904         Use size_t instead of unsigned int for memory sizes.
8905         Only cast to unsigned char whenever dereferencing Extbyte *.
8906
8907         * doc.c (unparesseuxify_doc_string): Type correctness.
8908
8909         * console-x.c (split_up_display_spec):
8910         Rewrite without using details of internal string representation.
8911         (x_semi_canonicalize_device_connection): Type correctness.
8912
8913         * config.h.in:
8914         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8915         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8916         (HAVE_XFREE386): Removed.
8917
8918         * buffer.h (DEC_CHARPTR): `const' correctness.
8919         (bufbyte_strcmp): New.
8920         (bufbyte_memcmp): New.
8921
8922         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8923
8924         * buffer.h (XCHAR_OR_CHAR_INT):
8925         Always use inline function.
8926         Remove redundant type checking assert() - XINT will abort quite nicely.
8927
8928 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8929
8930         * search.c (Freplace_match): Set newtext to an empty string.
8931
8932 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8933
8934         * s/decosf1-3.h: Remove #include of stropts.h
8935         * s/ptx.h: Remove #include of stropts.h
8936         * s/usg5-4.h: Remove #include of stropts.h
8937         * sysproc.h:
8938         * config.h.in:
8939         Use stropts.h, not sys/stropts.h.
8940         Use strtio.h, not sys/strtio.h.
8941
8942 2000-10-04  Martin Buchholz <martin@xemacs.org>
8943
8944         * XEmacs 21.2.36 is released.
8945
8946 2000-09-21  Andy Piper  <andy@xemacs.org>
8947
8948         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8949         changes still involve copying the widget tree.
8950         (update_widget_face): make sure a change is register in the widget
8951         tree. Call update_tab_widget_face appropriately.
8952         (update_tab_widget_face): ditto.
8953         (x_tab_control_redisplay): make sure non-structural changes still
8954         involve copying the widget tree.
8955
8956 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8957
8958         * lread.c (locate_file): Check the path element is non-nil.
8959
8960 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8961
8962         * lisp.h: Warning suppression for SCO compilers.
8963
8964         * redisplay-tty.c (reset_tty_modes): Fix crash.
8965         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8966
8967 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8968
8969         Big signal/process handling overhaul.  Bugs fixed:
8970         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8971         M-x comint-kill-subjob should work for both values nil and t of
8972         process-connection-type. It was broken on most platforms.
8973         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8974         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8975         * process-unix.c: Signal/Process handling overhaul.
8976         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8977         (allocate_pty): Use all available modern methods of allocating
8978         ptys, falling back to old style BSD allocation as a last resort.
8979         Use allegedly more secure Unix98 pty allocation by default.
8980         (allocate_pty_the_old_fashioned_way): New. the last resort.
8981         (unix_create_process): Push ptem, ldterm, ttcompat where
8982         available.  Autoconfiscate.
8983         (try_to_initialize_subtty): New.
8984         (unix_kill_child_process): Proper signal handling for ptys on most
8985         platforms, using special knowledge of AIX, BSD, etc...
8986         (unix_create_process): Always disconnect_controlling_terminal() for
8987         subprocesses, whether using ptys or not.
8988         * process.h: Remove old getpt-dependent PTY code.
8989         * process.c (Fprocess_send_signal): New, obvious generic function.
8990         (decode_signal): New.
8991         (Finterrupt_process):
8992         (Fkill_process):
8993         (Fquit_process):
8994         (Fstop_process):
8995         (Fcontinue_process):
8996         (Fsignal_process): Use decode_signal.
8997         (process_send_signal):
8998         Many docstring corrections.
8999         Allow any signal to be sent to a process object.
9000         * config.h.in: Add symbols for big signal/process overhaul.
9001         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9002         * sysproc.h: Include process-related headers, where available:
9003         sys/stropts.h sys/strtio.h pty.h libutil.h
9004         * s/irix4-0.h:
9005         * s/irix5-0.h:
9006         * s/cygwin32.h:
9007         * s/gnu.h:
9008         * s/linux.h:
9009         * s/hpux.h:
9010         * s/aix3-1.h:
9011         Remove old S&M pty stuff.
9012         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9013         * systty.h: Simplify cpp hackery, improve comments.
9014         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9015
9016         * editfns.c (Fformat_time_string):
9017         Be a little more paranoid with the return value of ctime.
9018
9019         * fileio.c (check_executable):
9020         (check_writable):
9021         Use symbolic constants X_OK, W_OK.
9022
9023         * console-x.c (split_up_display_spec): Fix a warning.
9024
9025 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9026
9027         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9028         * ntproc.c (sys_spawnve): make_string ==> build_string
9029         Small clarity improvements.
9030
9031 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9032
9033         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9034
9035         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9036
9037         * config.h.in (HAVE_STRCASECMP): Remove.
9038
9039 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9040
9041         * redisplay-output.c (redisplay_output_pixmap):
9042         Cleaner and possibly more 64-bit correct code.
9043
9044 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9045
9046         * dumper.c (pdump_load_finish): move restoration of
9047         `noninteractive1' to emacs.c (main_1).
9048         * emacs.c (main_1): protect LISP-visible command-line flags
9049         from pdump_load().
9050
9051 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9052
9053         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9054         DUMP_TARGET instead of literal program names.
9055
9056 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9057
9058         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9059
9060 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9061
9062         * *: Spelling mega-patch
9063
9064 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9065
9066         * fns.c (bad_bad_turtle):
9067         Delete "Eek!" comment, since we fixed the bug to which it refers.
9068
9069 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9070
9071         * alloca.c: Replace REGISTER with register.
9072
9073 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9074
9075         * file-coding.c (ucs_to_char): Use countof.
9076
9077 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9078
9079         * file-coding.c: (ucs_to_char):
9080         (complex_vars_of_file_coding):
9081         Use countof instead of sizeof.
9082         Use CHECK_NATNUM instead of CHECK_INT.
9083
9084         * sysdep.c (strcasecmp): Remove.
9085         * device-x.c (ascii_strcasecmp): New.
9086         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9087         Avoid using non-standard non-portable strcasecmp.
9088
9089 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9090
9091         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9092         * font-lock.c: remove reference to emacsfns.h.
9093         * search.c: small doc improvement.
9094         * event-Xt.c: correct file names in comments.
9095         * console-x.h Correct file names in comments.
9096         * frame.c: Correct file names in comments.
9097         * event-stream.c: remove Energize from comments.
9098
9099 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9100
9101         * symeval.h (DEFERROR_STANDARD):
9102         (DEFERROR):
9103         (DEFSYMBOL):
9104         (DEFSYMBOL_NO_DUMP):
9105         (DEFSYMBOL_MULTIWORD_PREDICATE):
9106         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9107         (DEFKEYWORD):
9108         The construct &##name is not sensible C.
9109         Fixes compilation errors with Unixware native compiler.
9110
9111 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9112
9113         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9114         (next_frame_internal): Removed.  We now just have next_frame.
9115         (next_frame):
9116         Write a simpler and cleaner one-pass algorithm.
9117         Remove called_from_delete_device arg and #ifdefed-out code.
9118         (previous_frame):
9119         Renamed from prev_frame.  Update callers.
9120         Cleaned up to have an analogous implementation to next_frame.
9121         (other_visible_frames_internal): Remove the
9122         called_from_delete_device bogus arg, and hence, remove this
9123         function.  Just use other_visible_frames().
9124
9125         * window.c (Fnext_window):
9126         Prettify docstring.
9127         Since next_frame() is guaranteed to return a frame, remove check
9128         for nil inserted in previous patch.
9129         (Fprevious_window):
9130         Prettify docstring.
9131         Make code look more like Fnext_window.
9132         (window_loop):
9133         Respect the `console' arg when iterating through windows.
9134         Fixes bug: (get-buffer-window buffer t device) not respecting
9135         the `device' arg.
9136         This function needs more work, as others have pointed out.
9137
9138         * frame.h: Rename prev_frame to previous_frame.
9139         device_matches_console_spec no longer takes a `frame' arg.
9140
9141         * s/gnu.h:
9142         * s/linux.h:
9143         * s/hpux.h:
9144         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9145         From "Golubev I. N." <gin@mo.msk.ru>.
9146
9147         * make-src-depend: Fix typo.
9148
9149 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9150
9151         * window.c (Fnext_window):
9152         next_frame() might return nil, not a frame.
9153         Fixes this crash:
9154         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9155
9156         * frame.c (next_frame_internal):
9157         We've passed a frame if we've passed its device.
9158         Fixes this crash:
9159         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9160 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9161
9162 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9163
9164         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9165         Allow option to suppress accelerators in menu/dialog items.
9166         (populate_or_checksum_helper): Pass dialog title through above.
9167
9168 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9169
9170         * event-msw.c (mswindows_key_to_emacs_keysym):
9171         Add "pause" key, fix "menu" key.
9172
9173 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9174
9175         * eval.c (reinit_vars_of_eval):
9176         Increase max_lisp_eval_depth to 1000,
9177         required for thai-xtis.el to byte-compile under some circumstances.
9178
9179 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9180
9181         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9182         From Kenichi Handa.
9183
9184 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9185
9186         * make-src-depend: Make the generated Makefiles smaller.
9187
9188         * s/hpux.h (SETUP_SLAVE_PTY):
9189         Provide a %d in the format string for the errno argument.
9190
9191         * editfns.c (Ftemp_directory):
9192         Warning fix.
9193         Avoid buffer overrun on very long file name.
9194
9195         * input-method-xlib.c (XIM_init_device):
9196         6th parameter of XRegisterIMInstantiateCallback has different
9197         pointer types on different OSes, so simply cast to (void *).
9198
9199         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9200
9201         * sysdll.c (dll_open):
9202         shl_load will hang hard if passed a NULL filename.
9203         Simply return NULL for compatibility with dlopen.
9204         * sysdll.c: Conform to XEmacs coding standards.
9205
9206         * sysdep.c (get_pty_max_bytes):
9207         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9208
9209 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9210
9211         * tooltalk.c: Add #include <syssignal.h>
9212
9213 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9214
9215         * s/hpux.h: Don't use undefined function sigunblock().
9216
9217 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9218
9219         * config.h.in: Add HAVE_BALLOON_HELP.
9220         * emacs.c: Use HAVE_BALLOON_HELP.
9221         * Makefile.in.in (x_objs):
9222         Make Balloon Help conditional on finding shape.h.
9223
9224 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9225
9226         * syntax.c (regex_emacs_buffer_p): New variable.
9227         * syntax.h (regex_emacs_buffer_p): extern.
9228         * search.c (looking_at_1):
9229         (string_match_1):
9230         (fast_string_match):
9231         (search_buffer): Set regex_emacs_buffer_p.
9232         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9233         when before_dot, at_dot, after_dot.
9234
9235 2000-08-23  Andy Piper  <andy@xemacs.org>
9236
9237         * gui-x.c (popup_selection_callback): Only set action_occurred
9238         when we really have an image instance.
9239         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9240
9241 2000-08-23  Andy Piper  <andy@xemacs.org>
9242
9243         * gui-msw.c (mswindows_handle_gui_wm_command): set
9244         action_occurred.
9245         * gui-x.c (popup_selection_callback): ditto.
9246
9247         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9248         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9249         (struct Lisp_Image_Instance): add action_occurred flag.
9250
9251         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9252         (image_instance_changed): ditto.
9253         (reset_frame_subwindow_instance_cache): only unmap windows - do
9254         not remove them from the cache also.
9255
9256         * glyphs-widget.c (tab_control_update): better debug.
9257         (progress_gauge_update): ditto.
9258         (layout_update): ditto.
9259         (layout_instantiate): ditto.
9260         (tab_control_order_only_changed): cope with null pending items.
9261
9262         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9263         debug. Force selection of an item when an action occurred. Cope
9264         with null pending_items.
9265         (mswindows_progress_gauge_redisplay): better debug.
9266         * glyphs-x.c (x_tab_control_redisplay): ditto.
9267
9268         * redisplay.c (redisplay_frame): reset the frame cache if the
9269         frame is garbaged.
9270
9271         * window.c (Fset_window_configuration): potentially re-enable
9272         frame cache reset.
9273         (window_unmap_subwindows): need to finalize instances here since
9274         it is only used in mark_window_as_deleted.
9275
9276 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9277
9278         * nas.c (SndOpenDataForReading):
9279         nas.c (WaveOpenDataForReading):
9280         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9281         Somehow escaped from the 2000-08-14 patch.
9282
9283 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9284
9285         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9286         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9287
9288 2000-08-21  Andy Piper  <andy@xemacs.org>
9289
9290         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9291         window if it is not already displayed.
9292
9293         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9294         it is not already displayed.
9295
9296         * window.c (Fset_window_configuration): don't reset the frame
9297         cache.
9298
9299         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9300         instances from the frame cache if we are actually finalizing them.
9301         (reset_frame_subwindow_instance_cache): reset frame cache only
9302         after unmapping everything.
9303         (map_subwindow): set displayed flag after mapping.
9304
9305 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9306
9307         * data.c (indirect_function):
9308         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9309
9310         * eval.c (function_argcount):
9311         Use original function when signaling errors.
9312
9313 2000-08-18  Andy Piper  <andy@xemacs.org>
9314
9315         * frame.c (delete_frame_internal): use new
9316         free_frame_subwindow_instances name.
9317
9318         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9319         (add_tab_item): make return type correct.
9320         (mswindows_tab_control_instantiate): assert index of tab.
9321         (mswindows_tab_control_redisplay): Re-code to use
9322         gui_item_equal_sans_selected and gui_item_list_find_selected.
9323
9324         * glyphs-widget.c (tab_control_update): Correct comment.
9325
9326         * window.c (window_unmap_subwindows): use new
9327         unmap_subwindow_instance_cache_mapper.
9328         (window_unmap_subwindows_cache_mapper): deleted.
9329         (Fset_window_configuration): comparisons should now be with
9330         EQ. Preserve the subwindow instance cache across configuration
9331         changes.
9332         (allocate_window): ditto.
9333         (make_dummy_parent): ditto.
9334
9335         * glyphs.c (free_frame_subwindow_instances): rename from
9336         free_frame_subwindow_instance_cache. finalize all instances rather
9337         than just those in the display cache.
9338         (finalize_all_subwindow_instances): walk windows unmapping and
9339         finalizing subwindows.
9340         (unmap_subwindow_instance_cache_mapper): moved from
9341         window.c. Allow finalization as well as unmapping.
9342
9343         * gui.c (gui_item_list_find_selected): new function.
9344
9345         * gui.h (gui_item_list_find_selected): declare.
9346
9347         * glyphs-x.c (x_tab_control_redisplay): pick tab
9348         explicitly. Re-code to use gui_item_equal_sans_selected and
9349         gui_item_list_find_selected.
9350
9351         * glyphs-x.h: add lwlib-utils.h
9352
9353         * buffer.c (Frecord_buffer): undo previous change.
9354
9355 2000-08-09  Vin Shelton  <acs@xemacs.org>
9356
9357         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9358         possible.  Create temporary files more securely.  The patch was
9359         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9360         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9361         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9362         for details.
9363
9364 2000-08-07  Ben Wing  <ben@xemacs.org>
9365
9366         * getloadavg.c: remove duplicate (and windows-breaking)
9367         includes of fcntl.h and sys/file.h.
9368
9369         * nt.c: remove duplicate getloadavg() definition.
9370
9371         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9372         encodings.
9373
9374 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9375
9376         * eval.c (function_argcount): If function needs to be autoloaded
9377         actually use the loaded definition.
9378         GCPRO function.
9379
9380 2000-08-05  Ben Wing  <ben@xemacs.org>
9381
9382         * getloadavg.c: add prototype for getloadavg().  remove
9383         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9384         of the code).  remove duplicate header includes.
9385
9386         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9387
9388         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9389         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9390         useful load average.
9391
9392         * alloc.c (reinit_alloc_once_early): removed references to
9393         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9394         the lisp vars are the only things referencing the malloc_sbrk_*
9395         vars, and they were already if 0'd out.  these vars only exist
9396         in the older malloc.c, which is basically unused, and they're
9397         only for informational purposes.
9398
9399         * m\*.h: removed useless VIRT_ADDR_VARIES.
9400
9401         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9402
9403 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9404
9405         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9406         color if the image is a mono pixmap.
9407
9408 2000-07-30  Ben Wing  <ben@xemacs.org>
9409
9410         * Makefile.in.in (release):
9411         Remove stray @.
9412
9413         * buffer.c (directory_is_current_directory):
9414         * dired-msw.c (mswindows_get_files):
9415         * dired.c:
9416         * dired.c (Fdirectory_files):
9417         * dired.c (file_name_completion_stat):
9418         * dired.c (Ffile_attributes):
9419         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9420         preprocessor tricks, to avoid problems on some machines
9421         (e.g. SCO).
9422
9423         * callproc.c (egetenv): GC docs.
9424
9425         * console-msw.h:
9426         * console-msw.h (struct mswindows_dialog_id):
9427         * lrecord.h (lrecord_type):
9428         New object for use with MSW dialogs.
9429
9430         * console.h (struct console_methods):
9431         New enable/disable frame methods, for proper modal dialogs.
9432
9433         * device-msw.c (msprinter_default_printer): Fix to follow
9434         proper Mule conventions.
9435
9436         * device-msw.c:
9437         * device-msw.c (signal_open_printer_error):
9438         * device-msw.c (msprinter_init_device):
9439         * device-msw.c (ensure_not_printing):
9440         * device-msw.c (plist_get_margin):
9441         * device-msw.c (Fmsprinter_select_settings):
9442         * device-msw.c (finalize_devmode):
9443         * device-msw.c (Fmsprinter_settings_despecialize):
9444         * device-msw.c (signal_enum_priner_error):
9445         * extents.c (decode_extent):
9446         * extents.c (decode_map_extents_flags):
9447         * extents.c (decode_extent_at_flag):
9448         * extents.c (Fextent_at):
9449         * extents.c (Fextents_at):
9450         * extents.c (symbol_to_glyph_layout):
9451         [[[[2]]]] Use structured errors.
9452
9453         * dialog-msw.c:
9454         * dialog-msw.c (mswindows_is_dialog_msg):
9455         * dialog-msw.c (mark_mswindows_dialog_id):
9456         * dialog-msw.c (dialog_proc):
9457         * dialog-msw.c (handle_question_dialog_box):
9458         * dialog-msw.c (syms_of_dialog_mswindows):
9459         Define new object to clean up marking; use it as a dialog identifier.
9460         Call new delete-dialog-box-hook.
9461
9462         * dialog-x.c (dbox_selection_callback):
9463         * dialog-x.c (dbox_descriptor_to_widget_value):
9464         * dialog-x.c (x_make_dialog_box_internal):
9465         Call new delete-dialog-box-hook.
9466         Return an id.
9467
9468         * dialog.c:
9469         * dialog.c (syms_of_dialog):
9470         * dialog.c (vars_of_dialog):
9471         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9472
9473         * eval.c:
9474         * eval.c (signal_call_debugger):
9475         when noninteractive, output stack traces on the console instead
9476         of in a (never-seen) buffer.
9477
9478         * eval.c (signal_type_error):
9479         * eval.c (invalid_argument_2):
9480         * lisp.h:
9481         new funs for use w/structured errors.
9482
9483         * event-Xt.c:
9484         * event-Xt.c (x_to_emacs_keysym):
9485         * event-Xt.c (describe_event):
9486         * event-Xt.c (emacs_Xt_event_handler):
9487         * event-Xt.c (vars_of_event_Xt):
9488         * event-msw.c:
9489         * event-msw.c (mswindows_wnd_proc):
9490         * event-msw.c (vars_of_event_mswindows):
9491         rename {x,mswindows}-debug-events to debug-{}-events for
9492         consistency with other debug-foo variables.
9493
9494         * event-stream.c:
9495         document next-event more clearly.
9496
9497         * fileio.c (Ffile_name_directory):
9498         * fileio.c (Ffile_name_nondirectory):
9499         * fileio.c (Funhandled_file_name_directory):
9500         * fileio.c (file_name_as_directory):
9501         * fileio.c (Ffile_name_as_directory):
9502         * fileio.c (directory_file_name):
9503         * fileio.c (Fdirectory_file_name):
9504         * fileio.c (Fmake_temp_name):
9505         * fileio.c (Ffile_truename):
9506         * fileio.c (Fsubstitute_in_file_name):
9507         * fileio.c (expand_and_dir_to_file):
9508         * fileio.c (barf_or_query_if_file_exists):
9509         * fileio.c (check_executable):
9510         * fileio.c (Ffile_exists_p):
9511         * fileio.c (Ffile_writable_p):
9512         * fileio.c (Ffile_directory_p):
9513         * fileio.c (Ffile_regular_p):
9514         * fileio.c (Ffile_modes):
9515         * fileio.c (Ffile_newer_than_file_p):
9516         * fileio.c (Fverify_visited_file_modtime):
9517         * fileio.c (Fset_visited_file_modtime):
9518         * fileio.c (auto_save_1):
9519         (1). (2).
9520         fix up gcpro's.
9521
9522         * frame-msw.c:
9523         * frame-msw.c (mswindows_init_frame_1):
9524         * frame-msw.c (mswindows_enable_frame):
9525         * frame-msw.c (error_frame_unsizable):
9526         * frame-msw.c (msprinter_init_frame_1):
9527         * frame-msw.c (msprinter_init_frame_3):
9528         * frame-msw.c (console_type_create_frame_mswindows):
9529         (2).
9530         implement new enable/disable frame methods.
9531
9532         * frame-x.c:
9533         * frame-x.c (x_enable_frame):
9534         * frame-x.c (console_type_create_frame_x):
9535         implement new enable/disable frame methods.
9536
9537         * frame.c:
9538         * frame.c (Fdisable_frame):
9539         * frame.c (syms_of_frame):
9540         * frame.h (struct frame):
9541         implement new enable/disable frame methods/functions.
9542
9543         * general-slots.h:
9544         add initial-focus.
9545
9546         * glyphs-msw.c (mswindows_widget_instantiate):
9547         comment that initial-focus should be implemented.
9548
9549         * glyphs-widget.c:
9550         * glyphs-widget.c (check_valid_instantiator):
9551         * glyphs-widget.c (check_valid_orientation):
9552         * glyphs-widget.c (check_valid_tab_orientation):
9553         * glyphs-widget.c (check_valid_justification):
9554         * glyphs-widget.c (check_valid_border):
9555         * glyphs-widget.c (check_valid_callback):
9556         * glyphs-widget.c (check_valid_int_or_function):
9557         * glyphs-widget.c (check_valid_string_or_vector):
9558         * glyphs-widget.c (check_valid_item_list_1):
9559         * glyphs-widget.c (widget_validate):
9560         * glyphs-widget.c (combo_box_validate):
9561         * glyphs-widget.c (widget_instantiate):
9562         * glyphs-widget.c (syms_of_glyphs_widget):
9563         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9564         * glyphs-widget.c (image_instantiator_combo_box):
9565         * glyphs-widget.c (image_instantiator_scrollbar):
9566         * glyphs-widget.c (image_instantiator_tab_control):
9567         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9568         (2).
9569         support (unimplemented) keyword initial-focus.
9570         reindent long macros.
9571
9572         * glyphs-x.c (x_redisplay_widget):
9573         * glyphs-x.c (x_button_instantiate):
9574         * glyphs-x.c (x_button_redisplay):
9575         * glyphs-x.c (x_progress_gauge_instantiate):
9576         * glyphs-x.c (x_edit_field_instantiate):
9577         * glyphs-x.c (x_combo_box_instantiate):
9578         * glyphs-x.c (x_tab_control_instantiate):
9579         * glyphs-x.c (x_label_instantiate):
9580         * gui-x.c:
9581         * gui-x.c (button_item_to_widget_value):
9582         * gui-x.c (gui_items_to_widget_values_1):
9583         * gui-x.c (gui_item_children_to_widget_values):
9584         * gui-x.c (gui_items_to_widget_values):
9585         * gui-x.h:
9586         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9587         add new flag to gui-parsing routines to indicate whether
9588         accelerator specs should be supported.
9589
9590         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9591
9592         * glyphs.h (struct Lisp_Image_Instance):
9593         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9594         add initial-focus flag.
9595
9596         * gui.c:
9597         * gui.c (syms_of_gui):
9598         * gui.c (vars_of_gui):
9599         clean up menu-no-selection-hook.
9600
9601         * gui.h:
9602         support delete-dialog-box-hook.
9603
9604         * lread.c (Fload_internal):
9605         * lread.c (locate_file_in_directory_mapper):
9606         (1).
9607
9608         * lrecord.h:
9609         * lrecord.h (struct toolbar_button):
9610         * lrecord.h (syms_of_toolbar):
9611         document how to create a new object.
9612
9613         * menubar-msw.c (mswindows_char_is_accelerator):
9614         may be called on frames w/o menus.
9615
9616         * menubar.c (vars_of_menubar):
9617         clean up :filter docs.
9618
9619         * nt.c (readdir):
9620         * ntproc.c:
9621         (1).
9622
9623         * process-nt.c:
9624         * process-nt.c (validate_signal_number):
9625         * process-nt.c (signal_cannot_launch):
9626         * process-nt.c (nt_create_process):
9627         * process-nt.c (nt_send_process):
9628         * process-nt.c (nt_kill_child_process):
9629         * process-nt.c (nt_open_network_stream):
9630         * process-nt.c (syms_of_process_nt):
9631         (2).
9632         delete quote-handling.  call new lisp code that does it better.
9633
9634         * process-unix.c (connect_to_file_descriptor):
9635         * process-unix.c (allocate_pty):
9636         * process-unix.c (unix_send_process):
9637         * process-unix.c (unix_kill_child_process):
9638         * process-unix.c (unix_open_network_stream):
9639         * process-unix.c (unix_open_multicast_group):
9640         (1). (2).
9641
9642         * process.c:
9643         * process.c (Fstart_process_internal):
9644         (2).  need to canonicalize process path even if absolute.
9645
9646         * select-msw.c (symbol_to_ms_cf):
9647         * select-msw.c (ms_cf_to_symbol):
9648         * select-msw.c (cf_is_autofreed):
9649         * select-msw.c (mswindows_destroy_selection):
9650         * select.c:
9651         * select.c (syms_of_select):
9652         * select.h:
9653         support dibv5, fix bugs. (from Mike Alexander)
9654
9655         * select.c (Fget_selection_internal):
9656         * select.c (select_convert_out):
9657
9658         * sysdep.c:
9659         * sysdep.c (xemacs_stat):
9660         renamed.
9661
9662         * sysdep.c (mkdir):
9663         * sysdep.c (rmdir):
9664         but keep original stat() here because we provide encapsulation
9665         around these funs.
9666
9667         * sysfile.h:
9668         * sysfile.h (fstat):
9669         remove stat garbage.
9670
9671         * syswindows.h:
9672         fix X/MSW conflict.
9673         don't include tchar.h.  it's inappropriate because it makes
9674         compile-time distinctions when we want runtime distinctions.
9675         (we provide our own tchar replacements)
9676
9677         * toolbar.c:
9678         use default object printer for toolbar-button.
9679
9680         * unexcw.c:
9681         make sure we don't encapsulate.
9682
9683         * window.c (vars_of_window):
9684         emphasize that temp-buffer-show-hook is obsolete.
9685
9686 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9687
9688         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9689         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9690
9691         * events.c (Fevent_timestamp_lessp):
9692         Not 64-bit clean.  Use EMACS_INT, not int.
9693
9694 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9695
9696         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9697         unsigned int and changed the last enum to
9698         lrecord_type_last_built_in_type.
9699         (lrecord_implementations_table): changed prototype to know how
9700         long the array is supposed to be.
9701         (lrecord_type_count): new unsigned int to keep track of the
9702         current number of lisp lrecord types.
9703         (DEFINE_EXTERNAL_LRECORD):
9704         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9705         dynamic-modules to declare new lisp types. They are the same
9706         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9707         int for each new type, and increment lrecord_type_count by 1.
9708
9709         * alloc.c (lrecord_implementations_table): Changed to reference
9710         lrecord_type_last_built_in_type for the size of the array.
9711         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9712
9713 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9714
9715         * glyphs.h (check_valid_item_list): Renamed from
9716         check_valid_item_list_1.
9717
9718 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9719
9720         * select.c (Qselect_coerce): New.
9721         * select.c (Vselection_coercion_alist): New.
9722         * select.c (syms_of_select): Declare.
9723         * select.c (get-selection-internal): Use it.
9724         Use the new select-coerce functionality.
9725
9726         * select.c (select_coerce): New.
9727         * select.h (select_coerce): Declare.
9728         New function to coerce one type of data into another.
9729
9730 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9731
9732         * callproc.c (Fcall_process_internal):
9733         (Fcall_process_internal):
9734         * process-unix.c (unix_create_process):
9735         Save and restore the value of errno, so that error messages are accurate.
9736
9737 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9738
9739         * elhash.c (print_hash_table):
9740         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9741         Prettify docstrings and indentation.
9742
9743 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9744
9745         * window.c (Fwindow_pixel_edges): Subtract frame border and
9746         gutter size.
9747
9748 2000-07-31  Andy Piper  <andy@xemacs.org>
9749
9750         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9751         will acknowledge the change.
9752
9753         * glyphs.h: declare tab_control_order_only_changed.
9754
9755         * glyphs-x.c (x_tab_control_redisplay): use
9756         tab_control_order_only_changed.
9757
9758         * glyphs-widget.c (tab_control_order_only_changed): new function.
9759
9760         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9761         tab_control_order_only_changed.
9762
9763         * gui.c (gui_item_equal_sans_selected): new function.
9764         (gui_item_equal): use it.
9765
9766         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9767         :properties in favor of :items..
9768
9769         * glyphs-widget.c (check_valid_item_list): rename from
9770         check_valid_item_list_1.
9771         (check_valid_item_list_1): renamed.
9772         (combo_box_validate): deprecate :properties in favor of :items.
9773         (widget_instantiate): ditto.
9774         (tab_control_update): ditto.
9775         (image_instantiator_combo_box): ditto.
9776         (image_instantiator_tree_view): ditto.
9777         (image_instantiator_tab_control): ditto.
9778         (layout_post_instantiate): remove dead code.
9779
9780         * print.c (debug_print_no_newline): only write to debugger if in
9781         WIN32_NATIVE.
9782
9783         * elhash.c (Fmake_hash_table): update doc string.
9784
9785         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9786         messages whilst in GC. This at least stops XEmacs crashing but has
9787         the potential for wierd behaviour.
9788
9789 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9790
9791         * config.h.in:
9792         Make existence of s&m files optional.
9793
9794         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9795         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9796         * s/gnu.h: Remove HAVE_GETLOADAVG.
9797         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9798         * s/sol2.h: Remove HAVE_GETLOADAVG.
9799         * lisp.h: Remove getloadavg() declaration.
9800         * fns.c:
9801         Include <sys/loadavg.h> if available.
9802         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9803         * config.h.in:  Group together getloadavg()-related macros.
9804         Use only configure-time tests to detect getloadavg().
9805
9806 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9807
9808         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9809
9810 2000-07-25  Andy Piper  <andy@xemacs.org>
9811
9812         * syswindows.h: add tchar.h for native builds.
9813
9814         * frame.c (syms_of_frame): remove set-glyph-image.
9815
9816         * general-slots.h: add Qset_glyph_image.
9817
9818         * glyphs-widget.c (layout_update): add domain arg to
9819         set-glyph-image.
9820         (syms_of_glyphs_widget): remove set-glyph-image.
9821
9822 2000-07-23  Ben Wing  <ben@xemacs.org>
9823
9824         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9825         Vpopup_frame_list.
9826
9827 2000-07-22  Andy Piper  <andy@xemacs.org>
9828
9829         * symsinit.h: add syms_of_win32().
9830
9831         * gui-msw.c (syms_of_gui_mswindows): remove
9832         Fmswindows_shell_execute.
9833         (Fmswindows_shell_execute): moved to win32.c.
9834
9835         * emacs.c (main_1): add syms_of_win32 ().
9836
9837         * win32.c (init_potentially_nonexistent_functions): rewrite in
9838         compiler-friendly terms.
9839         (Fmswindows_shell_execute): move here from gui-msw.c.
9840         (syms_of_win32): new.
9841
9842         * device-msw.c (Fmswindows_printer_list): clean up args to
9843         EnumPrinters.
9844         Don't include tchar under cygwin or mingw.
9845         (msprinter_default_printer): make cygwin-friendly.
9846
9847 2000-07-21  Andy Piper  <andy@xemacs.org>
9848
9849         * glyphs-widget.c (image_instantiator_tree_view): use tab
9850         control's update function.
9851         (layout_property): new function. Retrieve items.
9852
9853         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9854         function. Re-populate the tree view from the pending items.
9855
9856         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9857         is designated the parent if the domain is an image instance. This
9858         is needed so that dirtiness can be cascade up the hierarchy and
9859         thus for layout children to be redisplayed correctly.
9860         (allocate_image_instance): rename glyph -> parent.
9861
9862         * redisplay.h: change redisplay_output_layout signature.
9863
9864         * redisplay-msw.c (mswindows_output_display_block): use domain
9865         arg.
9866
9867         * redisplay-x.c (x_output_display_block): use domain arg.
9868
9869 2000-07-10  Andy Piper  <andy@xemacs.org>
9870
9871         * window.c (Fset_window_configuration): add comment.
9872
9873         * redisplay-output.c (compare_runes):
9874         (redisplay_output_subwindow): redisplay rather than update subwindow.
9875         (redisplay_output_layout): ditto.
9876
9877         * redisplay-msw.c (mswindows_frame_output_end):
9878         (mswindows_frame_output_end): make defer window pos optional.
9879
9880         * lisp.h: add Flast.
9881
9882         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9883         normalize method. Change update method to be for changed
9884         instantiators. Add redisplay method. Change signature of layout
9885         method.
9886         (struct Lisp_Image_Instance): add instantiator.
9887         (IMAGE_INSTANCE_INSTANTIATOR): new.
9888         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9889         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9890         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9891
9892         * glyphs.c:
9893         (find_instantiator_differences): new function.
9894         (Fset_instantiator_property): new convenience function.
9895         (check_image_instance_structure): strictly check for vector
9896         instantiators.
9897         (normalize_image_instantiator): make non-static.
9898         (instantiate_image_instantiator): pass on dest_mask and use new
9899         signatures for image_instance_layout and friends.
9900         (mark_image_instance): mark the instantiator. Mark the subwindow
9901         face not the widget face.
9902         (image_instance_equal): add instantiator.
9903         (image_instance_hash): ditto.
9904         (allocate_image_instance): ditto.
9905         (Fset_image_instance_property): removed.
9906         (Fimage_instance_file_name): ditto.
9907         (Fcolorize_image_instance): ditto.
9908         (image_instance_layout): add offsets to be set.
9909         (update_image_instance): new function. update an image instance
9910         from its changed instantiator.
9911         (inherit_normalize): add dest_mask.
9912         (xbm_normalize): ditto.
9913         (xface_normalize): ditto.
9914         (xpm_normalize): ditto.
9915         (text_update): set_property -> update.
9916         (image_instantiate): use the glyph identity as a hash key, not the
9917         instantiator.
9918         (glyph_width): use new image_instance_layout signature.
9919         (glyph_ascent): ditto.
9920         (glyph_descent): ditto.
9921         (glyph_height): ditto.
9922         (glyph_query_geometry): ressurrect.
9923         (glyph_layout): ditto.
9924         (redisplay_subwindow): update -> redisplay.
9925         (syms_of_glyphs): add Fset_instantiator_property.
9926         (image_instantiator_format_create): set_property -> update.
9927
9928         * glyphs-x.c:
9929         (autodetect_normalize): add dest_maks to signature.
9930         (x_redisplay_subwindow): update -> redisplay.
9931         (x_redisplay_widget): ditto.
9932         (x_button_redisplay): ditto.
9933         (x_progress_gauge_redisplay): ditto.
9934         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9935         stacking order.
9936         (console_type_create_glyphs_x): update -> redisplay.
9937         (image_instantiator_format_create_glyphs_x): ditto.
9938
9939         * glyphs-widget.c:
9940         (check_valid_instantiator): disallow glyphs in the instantiator,
9941         they must now be vectors.
9942         (check_valid_instantiator_list): ditto.
9943         (glyph_instantiator_to_glyph): use internal symbol rather than
9944         intern.
9945         (widget_update): renamed from widget_set_property. Call cascaded
9946         update methods.
9947         (redisplay_widget): renamed from update_widget.
9948         (widget_layout): image_instance_layout now takes position as well
9949         as size.
9950         (widget_normalize): ditto.
9951         (widget_instantiate): ditto.
9952         (tab_control_query_geometry) ditto.:
9953         (tab_control_update): renamed from tab_control_set_property.
9954         (progress_gauge_update): set_property -> update.
9955         (layout_normalize): rewrite so that child instantiators are
9956         normalized also.
9957         (layout_update): new function. Create glyphs from the normalized
9958         children and cope with any other layout keywords. We do not
9959         instantiate children here that will be take care of by
9960         redisplay_output_layout.
9961         (layout_instantiate): call layout_update and not much else.
9962         (layout_post_instantiate): not sure whether this is needed
9963         anymore.
9964         (layout_query_geometry): query glyph geometry rather than
9965         image_instance geometry.
9966         (layout_layout): set offsets from pass in parameters. Use glyph
9967         geometry and layout functions rather than image instance ones.
9968         (native_layout_layout): ditto.
9969         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9970         (image_instantiator_widget): set_property -> update.
9971         (image_instantiator_buttons): ditto.
9972         (image_instantiator_progress_guage): ditto.
9973         (image_instantiator_tab_control): ditto.
9974         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9975         (image_instantiator_layout): add update method.
9976
9977         * glyphs-msw.c (bmp_normalize):
9978         (mswindows_resource_normalize): add dest_mask so that it can be
9979         proprogated by layout_normalize.
9980         (begin_defer_window_pos): make optional because it may not be the
9981         right thing to do and it introduces differences with X.
9982         (mswindows_unmap_subwindow): ditto.
9983         (mswindows_map_subwindow): ditto.
9984         (mswindows_redisplay_subwindow): renamed from
9985         mswindows_update_subwindow.
9986         (mswindows_redisplay_widget): ditto.
9987         (mswindows_button_redisplay): renamed from
9988         mswindows_button_update. Update is now what the instantiation
9989         function does for a changed instantiator.
9990         (mswindows_progress_gauge_instantiate): set the progress value
9991         here if appropriate.
9992         (mswindows_tab_control_redisplay): cope with re-ordering of the
9993         members of the tab widget by simply selecting the new top
9994         widget. This makes things appear ok if you click on a tab.
9995         (mswindows_combo_box_instantiate): image_instance_layout now takes
9996         position as well as size.
9997         (mswindows_progress_gauge_redisplay): renamed from
9998         mswindows_progress_gauge_update.
9999         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10000         (image_instantiator_format_create_glyphs_mswindows): ditto.
10001
10002         * glyphs-eimage.c (jpeg_normalize):
10003         (gif_normalize):
10004         (png_normalize):
10005         (tiff_normalize): add dest_mask so that it can be proprogated by
10006         layout_normalize.
10007
10008         * elhash.c:
10009         (print_hash_table):
10010         (hash_table_weakness_validate):
10011         (decode_hash_table_weakness):
10012         (Fhash_table_weakness):
10013         (Fhash_table_type):
10014         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10015
10016         * console.h (struct console_methods): move update_* to
10017         redisplay_*.
10018
10019 2000-07-20  Ben Wing  <ben@xemacs.org>
10020
10021         * *.[ch] (XSETOBJ): remove unused middle argument.
10022         lisp-disunion.h: correct wrap_object() to one argument.
10023
10024 2000-07-15  Ben Wing  <ben@xemacs.org>
10025
10026         * s/cygwin32.h:
10027         * s/cygwin32.h (CYGWIN_CONV_PATH):
10028         Add missing logb prototype for v1.1.
10029         Use post-b20 names and alias to pre-b20 names when pre-b20.
10030
10031         * s/windowsnt.h: [5].
10032
10033 2000-07-15  Ben Wing  <ben@xemacs.org>
10034
10035         * Makefile.in.in (x_objs):
10036         * Makefile.in.in (sheap_objs):
10037         * Makefile.in.in (objs):
10038         added win32.o, cosmetic cleanups.
10039
10040         * alloc.c (Fmake_byte_code):
10041         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10042         etc. macros which declare their own args now.
10043
10044         * alloc.c (syms_of_alloc):
10045         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10046
10047         * buffer.c:
10048         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10049
10050         * buffer.c (Fget_file_buffer):
10051         Fixed GCPRO problem.
10052
10053         * buffer.c (get_truename_buffer):
10054         Fixed comment about GC checking.
10055
10056         * buffer.c (syms_of_buffer):
10057         Undeclared those dedicated frame funs.
10058         [2].
10059
10060         * buffer.h:
10061         Define convenience macros for internal/external conversions.
10062         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10063         and Qenvironment_variable_encoding for cleaner code.
10064
10065         * bufslots.h:
10066         Remove dedicated-frame; in lisp.
10067
10068         * bytecode.c (funcall_compiled_function):
10069         [1].
10070
10071         * bytecode.c (syms_of_bytecode):
10072         [2].
10073
10074         * console-msw.c:
10075         * console-msw.c (mswindows_show_console): Rewrote.
10076
10077         * console-msw.c (Fmswindows_debugging_output): New.
10078         Sends to OutputDebugString (special MSWin debugger interface).
10079
10080         * console-msw.c (Fmswindows_message_box):
10081         Fixed stupid bugs so it works when called from kill-emacs.
10082
10083         * console-msw.c (syms_of_console_mswindows):
10084         Declare Fmswindows_debugging_output.
10085
10086         * console-msw.h:
10087         New MSWin prototypes.
10088
10089         * console-msw.h (struct mswindows_frame):
10090         New entry last-click-mods for improved button-modifier support.
10091
10092         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10093         New struct entry `popup' with corresponding accessor.
10094
10095         * console-x.c:
10096         * console-x.c (split_up_display_spec):
10097         * console-x.c (get_display_arg_connection):
10098         * console-x.c (x_semi_canonicalize_console_connection):
10099         * console-x.c (x_canonicalize_device_connection):
10100         [[[6]]]: Change char to more specific type.
10101         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10102
10103         * console-x.c (x_semi_canonicalize_console_connection):
10104         * console-x.c (x_canonicalize_device_connection):
10105         [[[9]]]: Fix up error signalling to use new structured error system.
10106
10107         * console-x.h:
10108         [[[4]]]: Define codesys aliases:
10109         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10110         Qx_color_name_encoding, Qx_display_name_encoding.
10111
10112         * console.h (struct console_methods):
10113         New method make_dialog_box_internal supersedes older
10114         popup_dialog_box method.
10115
10116         * data.c:
10117         Define many new errors, part of new structured errors.
10118
10119         * data.c (init_errors_once_early):
10120         * data.c (syms_of_data):
10121         [2].
10122
10123         * device-msw.c (mswindows_init_device):
10124         [[[5]]]: Cleanup to support NT 3.51.
10125
10126         * device-msw.c (decode_devmode): Cleanup.
10127
10128         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10129         * device-msw.c (mswindows_handle_print_dialog_box):
10130         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10131         * device-msw.c (syms_of_device_mswindows):
10132         Delete the dialog box primitives recently introduced by Kirill and
10133         instead interface to general dialog box interface.
10134
10135         * device-x.c:
10136         * device-x.c (compute_x_app_name):
10137         * device-x.c (x_init_device):
10138         * device-x.c (Fx_valid_keysym_name_p):
10139         * device-x.c (Fx_set_font_path):
10140         [6].
10141         [7].
10142
10143         * device.h (wrap_device): New.
10144         First of its kind; meant to replace XSETDEVICE.
10145
10146         * dialog-msw.c: Many file-dialog symbols.
10147
10148         * dialog-msw.c (mswindows_register_popup_frame): New.
10149         * dialog-msw.c (mswindows_is_dialog_msg): New.
10150         For supporting kbd traversal in dialog boxes.
10151
10152         * dialog-msw.c (dialog_proc):
10153         Support hitting ESC in dialogs.
10154
10155         * dialog-msw.c (struct):
10156         Common dialog box errors.
10157
10158         * dialog-msw.c (handle_file_dialog_box): New.
10159         Add file dialog code.
10160
10161         * dialog-msw.c (handle_question_dialog_box):
10162         Redo existing code to support new question dialog syntax.
10163
10164         * dialog-msw.c (console_type_create_dialog_mswindows):
10165         We support new dialog console method.
10166
10167         * dialog-msw.c (syms_of_dialog_mswindows):
10168         * dialog-msw.c (vars_of_dialog_mswindows):
10169         New file dialog symbols, vars.
10170
10171         * dialog-x.c:
10172         * dialog-x.c (maybe_run_dbox_text_callback):
10173         * dialog-x.c (dbox_descriptor_to_widget_value):
10174         * dialog-x.c (x_make_dialog_box_internal):
10175         * dialog-x.c (console_type_create_dialog_x):
10176         Mule-ize entire file.
10177         Redo to support question dialog syntax.
10178         [6].
10179
10180         * dialog.c:
10181         * dialog.c (Fmake_dialog_box_internal):
10182         * dialog.c (syms_of_dialog):
10183         Kill old popup-dialog-box, replace with new primitive.
10184         Just call device method or signal error.
10185
10186         * eldap.c (Fldap_open):
10187         * eldap.c (Fldap_search_basic):
10188         * eldap.c (Fldap_add):
10189         * eldap.c (Fldap_modify):
10190         [1].
10191         [7].
10192
10193         * emacs.c:
10194         * emacs.c (make_arg_list_1):
10195         * emacs.c (make_arg_list):
10196         Mule-ize call to dll_init().
10197         [6].
10198         [8].
10199
10200         * emacs.c (make_argc_argv):
10201         * emacs.c (free_argc_argv):
10202         * emacs.c (init_cmdargs):
10203         * emacs.c (main_1):
10204         * emacs.c (Fkill_emacs):
10205         * emacs.c (Fdump_emacs):
10206         Update comments about what can be used in syms_* etc.
10207         Call init_win32() when necessary.
10208         Fix up MS Win dialog box in kill-buffer to actually work right.
10209         [7].
10210
10211         * eval.c:
10212         * eval.c (For):
10213         * eval.c (Fand):
10214         * eval.c (Fprogn):
10215         * eval.c (Fprog1):
10216         * eval.c (Fprog2):
10217         * eval.c (FletX):
10218         * eval.c (Flet):
10219         * eval.c (condition_case_3):
10220         * eval.c (Feval):
10221         * eval.c (function_argcount):
10222         * eval.c (funcall_lambda):
10223         [1].
10224
10225         * eval.c (type_error): New.
10226         * eval.c (maybe_type_error): New.
10227         * eval.c (continuable_type_error): New.
10228         * eval.c (maybe_continuable_type_error): New.
10229         * eval.c (type_error_with_frob): New.
10230         * eval.c (maybe_type_error_with_frob): New.
10231         * eval.c (continuable_type_error_with_frob): New.
10232         * eval.c (maybe_continuable_type_error_with_frob): New.
10233         New functions for use with structured errors.
10234
10235         * event-Xt.c:
10236         * event-Xt.c (x_event_to_emacs_event):
10237         Buttons are now modifiers too.
10238
10239         * event-Xt.c (emacs_Xt_current_event_timestamp):
10240         Implement new event method.
10241         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10242
10243         * event-msw.c:
10244         * event-msw.c (ntpipe_shove_writer): [5].
10245         * event-msw.c (mswindows_enqueue_mouse_button_event):
10246         * event-msw.c (mswindows_drain_windows_queue):
10247         * event-msw.c (mswindows_wnd_proc): [7].
10248         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10249         * event-msw.c (mswindows_modifier_state):
10250         Throughout: support new button modifiers.
10251
10252         * event-msw.c (emacs_mswindows_current_event_timestamp):
10253         Implement new event method.
10254         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10255
10256         * event-stream.c:
10257         * event-stream.c (event_stream_current_event_timestamp): New.
10258         * event-stream.c (maybe_kbd_translate): New functionality.
10259         * event-stream.c (vars_of_event_stream):
10260         Document new kbd-translate-table functionality.
10261
10262         * event-stream.c (Fcurrent_event_timestamp): New.
10263         New primitive for use in fabricated events.
10264         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10265
10266         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10267
10268         * events.c:
10269         * events.c (Fmake_event):
10270         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10271         [1].
10272         [9].
10273
10274         * events.c (format_event_object): fix gcc warnings.
10275
10276         * events.c (Fevent_timestamp): Document new primitives.
10277
10278         * events.c (TIMESTAMP_HALFSPACE): New.
10279
10280         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10281         comparing timestamps correctly (half-space algorithm).
10282
10283         * events.c (Fevent_modifier_bits): Doc fix.
10284
10285         * events.c (Fevent_modifiers): Major doc addition.
10286         * events.c (event_x_y_pixel_internal): Typo fix.
10287         * events.c (syms_of_events): Declare new primitives.
10288
10289         * events.h:
10290         Update long comment for button modifiers, timestamps.
10291
10292         * events.h (struct event_stream):
10293         New current_event_timestamp method.
10294
10295         * extents.c:
10296         * extents.c (extent_in_region_p):
10297         * extents.c (decode_extent):
10298         * extents.c (Fset_extent_parent):
10299         * extents.c (decode_map_extents_flags):
10300         Fix gcc warnings.
10301         [9].
10302
10303         * extents.c (struct extent_at_arg):
10304         * extents.c (decode_extent_at_flag):
10305         * extents.c (extent_at_mapper):
10306         * extents.c (extent_at_bytind):
10307         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10308         * extents.c (Fextents_at): New primitive. [9].
10309         * extents.c (symbol_to_glyph_layout): [9].
10310         Support new primitive `extents-at'.
10311
10312
10313         * extents.c (get_text_property_bytind):
10314         extent_at_bytind has another arg.
10315         [9].
10316
10317         * extents.c (syms_of_extents): New primitive.
10318
10319         * file-coding.c (Fmake_coding_system): [1].
10320         * file-coding.c (subsidiary_coding_system): fix gcc warning
10321         * file-coding.c (syms_of_file_coding): [2].
10322
10323         * fileio.c (Fexpand_file_name):
10324         * fileio.c (Fsysnetunam):
10325         * fileio.c (Ffile_exists_p):
10326         * fileio.c (Ffile_executable_p):
10327         * fileio.c (Fverify_visited_file_modtime):
10328         Clean up GCPROing.
10329
10330         * fileio.c (syms_of_fileio): [2].
10331
10332         * filelock.c (lock_file_1):
10333         * filelock.c (current_lock_owner):
10334         * filelock.c (lock_if_free):
10335         * filelock.c (lock_file):
10336         * filelock.c (unlock_file):
10337         Clean up GCPROing.
10338
10339         * fns.c (concat): Fix gcc warning.
10340
10341         * fns.c (Fmember):
10342         * fns.c (Fold_member):
10343         * fns.c (Fmemq):
10344         * fns.c (Fold_memq):
10345         * fns.c (memq_no_quit):
10346         * fns.c (Fassoc):
10347         * fns.c (Fold_assoc):
10348         * fns.c (Fassq):
10349         * fns.c (Fold_assq):
10350         * fns.c (assq_no_quit):
10351         * fns.c (Frassoc):
10352         * fns.c (Fold_rassoc):
10353         * fns.c (Frassq):
10354         * fns.c (Fold_rassq):
10355         * fns.c (rassq_no_quit):
10356         * fns.c (Fdelete):
10357         * fns.c (Fold_delete):
10358         * fns.c (Fdelq):
10359         * fns.c (Fold_delq):
10360         * fns.c (delq_no_quit):
10361         * fns.c (Fremassoc):
10362         * fns.c (Fremassq):
10363         * fns.c (remassq_no_quit):
10364         * fns.c (Fremrassoc):
10365         * fns.c (Fremrassq):
10366         * fns.c (remrassq_no_quit):
10367         * fns.c (Freverse):
10368         * fns.c (mapcar1):
10369         [1].
10370
10371         * frame-msw.c (mswindows_init_frame_1):
10372         * frame-msw.c (mswindows_delete_frame):
10373         Register popups with dialog code so keyboard traversing works.
10374
10375         * frame-tty.c (tty_raise_frame_no_select): [1].
10376
10377         * frame-x.c:
10378         * frame-x.c (x_set_frame_text_value):
10379         * frame-x.c (x_set_frame_properties):
10380         * frame-x.c (x_create_widgets):
10381         [7].
10382
10383         * frame.c:
10384         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10385
10386         * frame.h (wrap_frame): New.
10387         Macro like wrap_device.
10388
10389         * general.c:
10390         * general.c (SYMBOL):
10391         * general.c (syms_of_general):
10392         Major reorg.  This is now just a wrapper and symbols themselves
10393         are listed in general-slots.h.
10394
10395         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10396         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10397
10398         * glyphs-msw.c (mswindows_native_layout_instantiate):
10399         Add DS_CONTROL so keyboard traversal will work.
10400
10401         * glyphs-widget.c:
10402         * glyphs-widget.c (syms_of_glyphs_widget):
10403         Move some symbols to general-slots.h.
10404
10405         * glyphs-x.c:
10406         * glyphs-x.c (xbm_instantiate_1):
10407         * glyphs-x.c (x_xbm_instantiate):
10408         * glyphs-x.c (x_xface_instantiate):
10409         * glyphs-x.c (autodetect_instantiate):
10410         * glyphs-x.c (cursor_font_instantiate):
10411         * glyphs-x.c (x_update_widget):
10412         * glyphs-x.c (x_widget_instantiate):
10413         * glyphs.c (bitmap_to_lisp_data):
10414         * glyphs.c (pixmap_to_lisp_data):
10415         [7].
10416
10417         * glyphs.c (syms_of_glyphs):
10418         [2].
10419
10420         * gui-x.c:
10421         * gui-x.c (print_widget_value):
10422         * gui-x.c (menu_separator_style_and_to_external):
10423         * gui-x.c (add_accel_and_to_external):
10424         * gui-x.c (button_item_to_widget_value):
10425         * gui-x.c (gui_items_to_widget_values_1):
10426         * gui-x.c (gui_items_to_widget_values):
10427         * gui-x.c (syms_of_gui_x):
10428         * gui-x.c (vars_of_gui_x):
10429         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10430         [9].
10431
10432         * gui-x.h:
10433         Muleize, prototype changes matching gui-x.c.
10434
10435         * gui.c:
10436         * gui.c (separator_string_p):
10437         * gui.c (gui_item_add_keyval_pair):
10438         * gui.c (make_gui_item_from_keywords_internal):
10439         * gui.c (signal_too_long_error):
10440         * gui.c (parse_gui_item_tree_item):
10441         * gui.c (syms_of_gui):
10442         * gui.c (vars_of_gui):
10443         * gui.h:
10444         menu-no-selection-hook moved here (used by MSWin).
10445         Move some symbols to general-slots.h.
10446         [6].
10447         [9].
10448
10449         * insdel.c (get_buffer_pos_char):
10450         * insdel.c (get_buffer_range_char):
10451         Add GC comments.
10452
10453         * keymap.c (keymap_lookup_directly):
10454         * keymap.c (keymap_store):
10455         * keymap.c (ensure_meta_prefix_char_keymapp):
10456         * keymap.c (describe_map):
10457         * keymap.h:
10458         Support new button modifiers.
10459
10460         * lisp-disunion.h (wrap_object):
10461         * lisp-disunion.h (XSETOBJ):
10462         Rename make_obj to wrap_object.
10463
10464         * lisp-union.h:
10465         * lisp-union.h (make_int):
10466         * lisp-union.h (make_char):
10467         Support wrap_object.
10468
10469         * lisp.h:
10470         * lisp.h (LIST_LOOP):
10471         * lisp.h (EXTERNAL_LIST_LOOP):
10472         * lisp.h (LIST_LOOP_2):
10473         * lisp.h (EXTERNAL_LIST_LOOP_1):
10474         * lisp.h (EXTERNAL_LIST_LOOP_2):
10475         * lisp.h (EXTERNAL_LIST_LOOP_3):
10476         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10477         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10478         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10479         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10480         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10481         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10482         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10483         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10484         * lisp.h (struct Lisp_Symbol):
10485         * lisp.h (maybe_continuable_error_with_frob):
10486         Fix up section comments.
10487         Add new types for char to indicate usage.
10488         Delete symbols auto-generated from general-slots.h.
10489         Add prototypes for structured error functions.
10490         Add long comments describing looping macros and change interface
10491         so that lvalues are automatically declared.
10492         Add NO_DECLARE macro in case callers want to declare lvalues
10493         themselves.
10494
10495         * lread.c (read_syntax_error):
10496         * lread.c (continuable_read_syntax_error):
10497         * lread.c (read_structure):
10498         * lread.c (sequence_reader):
10499         * lread.c (read_list_conser):
10500         * lread.c (read_compiled_function):
10501         Rename syntax_error and continuable_syntax_error to avoid clash
10502         with same-named structured error functions.
10503
10504         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10505         * menubar-msw.c (populate_menu_add_item):
10506         * menubar-msw.c (populate_or_checksum_helper):
10507         [5].
10508         [9].
10509
10510         * menubar-x.c:
10511         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10512         Mule-ize whole file.
10513
10514         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10515
10516         * mule-charset.c (Fmake_charset):
10517         * mule-wnnfns.c (Fwnn_set_param):
10518         [1].
10519
10520         * ntproc.c (create_child):
10521         * ntproc.c (Fwin32_set_current_locale):
10522         Add comments portending doom.
10523
10524         * objects-msw.c:
10525         * objects-msw.c (old_font_enum_callback_2):
10526         * objects-msw.c (font_enum_callback_1):
10527         * objects-msw.c (mswindows_enumerate_fonts):
10528         [5].
10529
10530         * objects-x.c:
10531         * objects-x.c (allocate_nearest_color):
10532         * objects-x.c (x_parse_nearest_color):
10533         * objects-x.c (x_initialize_color_instance):
10534         * objects-x.c (x_print_color_instance):
10535         * objects-x.c (x_finalize_color_instance):
10536         * objects-x.c (x_valid_color_name_p):
10537         * objects-x.c (x_initialize_font_instance):
10538         * objects-x.c (x_print_font_instance):
10539         * objects-x.c (valid_x_font_name_p):
10540         * objects-x.c (truename_via_FONT_prop):
10541         * objects-x.c (truename_via_random_props):
10542         * objects-x.c (truename_via_XListFonts):
10543         * objects-x.c (x_font_truename):
10544         * objects-x.c (x_font_instance_truename):
10545         * objects-x.c (x_font_instance_properties):
10546         * objects-x.c (x_list_fonts):
10547         * objects-x.c (x_find_charset_font):
10548         Mule-ize entire file.
10549         [7].
10550
10551         * objects-x.h:
10552         Mule-verify.
10553
10554         * print.c:
10555         * print.c (std_handle_out_external):
10556         * print.c (debug_print_no_newline):
10557         * print.c (syms_of_print):
10558         Output to all debugger kinds in debug-print.
10559         Fix console-output code under MSWin to actually work.
10560
10561         * process-nt.c (send_signal):
10562         * process-nt.c (nt_create_process):
10563         Use newer Unicode macros.
10564
10565         * process-unix.c (unix_create_process):
10566         * process-unix.c (unix_canonicalize_host_name):
10567         * process-unix.c (unix_open_network_stream):
10568         [7].
10569
10570         * scrollbar-x.c:
10571         Mule-verify.
10572
10573         * search.c (syms_of_search):
10574         [2].
10575
10576         * select-msw.c (mswindows_destroy_selection):
10577         Use LIST_LOOP_2.
10578
10579         * select-x.c (symbol_to_x_atom):
10580         [7].
10581
10582         * select.c (syms_of_select):
10583         [2].
10584
10585         * sound.c (Fplay_sound_file):
10586         [7].
10587
10588         * specifier.c:
10589         * specifier.c (decode_specifier_type):
10590         * specifier.c (Fvalid_specifier_locale_type_p):
10591         * specifier.c (check_valid_locale_or_locale_type):
10592         * specifier.c (decode_locale):
10593         * specifier.c (decode_locale_type):
10594         * specifier.c (decode_locale_list):
10595         * specifier.c (check_valid_domain):
10596         * specifier.c (decode_specifier_tag_set):
10597         * specifier.c (Fcanonicalize_tag_set):
10598         * specifier.c (Fdefine_specifier_tag):
10599         * specifier.c (Fspecifier_tag_predicate):
10600         * specifier.c (check_valid_inst_list):
10601         * specifier.c (check_valid_spec_list):
10602         * specifier.c (decode_how_to_add_specification):
10603         * specifier.c (check_modifiable_specifier):
10604         * specifier.c (specifier_add_spec):
10605         * specifier.c (boolean_validate):
10606         * specifier.c (display_table_validate):
10607         [9].
10608
10609         * specifier.c (syms_of_specifier):
10610         Move some symbols to general-slots.h.
10611         [2].
10612
10613         * symbols.c:
10614         * symbols.c (Fmapatoms):
10615         * symbols.c (Fapropos_internal):
10616         Add GCPROs.
10617
10618         * symbols.c (set_default_buffer_slot_variable):
10619         * symbols.c (set_default_console_slot_variable):
10620         [1].
10621
10622         * symbols.c (defsymbol_massage_name_1):
10623         * symbols.c (defkeyword_massage_name):
10624         * symbols.c (deferror_1):
10625         * symbols.c (deferror):
10626         * symbols.c (deferror_massage_name_and_message):
10627         * symeval.h:
10628         * symeval.h (DEFSYMBOL):
10629         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10630
10631         * symbols.c (syms_of_symbols):
10632         [2].
10633
10634         * symsinit.h:
10635         * symsinit.h (init_win32): New.
10636         Also new is syms_of_dialog_mswindows.
10637
10638         * syswindows.h:
10639         Add new Unicode macros, missing Cygwin wide-char functions,
10640         convenience conversion macros for Qmswindows_tstr, macros for
10641         encapsulating required MSWin <-> Cygwin filename conversions,
10642         prototype for dynamically-extracted (not in NT 3.51) functions.
10643
10644         * toolbar-x.c:
10645         Mule-verify.
10646
10647         * tooltalk.c (Fadd_tooltalk_message_arg):
10648         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10649         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10650         [7].
10651
10652         * tooltalk.c (syms_of_tooltalk):
10653         [2].
10654
10655         * unexnt.c:
10656         * unexnt.c (unexec):
10657         Fix up headers, declaration of unexec() to be more standard.
10658
10659 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10660
10661         * offix.h: Revert change to guard macros - they're used in offix.c!
10662
10663 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10664
10665         * lisp.h: Defsubred Fdelete.
10666
10667         * console-msw.h:  (msprinter_default_printer): Added.
10668
10669         * console-msw.c (msprinter_canonicalize_console_connection):
10670         (msprinter_canonicalize_device_connection): Added.
10671
10672         * device-msw.c (msprinter_default_printer):
10673         (Fmswingows_get_default_printer):
10674         (signal_enum_priner_error):
10675         (Fmswingows_printer_list): Added.
10676
10677 2000-07-19  Martin Buchholz <martin@xemacs.org>
10678
10679         * XEmacs 21.2.35 is released.
10680
10681 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10682
10683         * select-x.c (x_handle_selection_request):
10684         Text selected in xemacs and pasted into xterm failed to appear.
10685         Spelling fixes and cosmetic changes.
10686
10687 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10688
10689         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10690         XEmacs frame (fix for doubling chars in dialog boxes).
10691
10692 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10693
10694         * select.c (select_convert_in, select_convert_out):
10695         Don't call intern() every time.
10696
10697         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10698         * select.c (vars_of_select): Initialise them.
10699
10700 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10701
10702         * select.c (selection-coercible-types): New.
10703
10704         * select.c (own-selection-internal):
10705         * select.c (get-selection-internal):
10706         MULE bug fix - these should default to COMPOUND_TEXT and not
10707         STRING for MULE. I think.
10708
10709         * select.c (select_convert_out): Use selection-coercible-types
10710         to find types that we can attempt to perform coercions on.
10711
10712 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10713
10714         * mule-wnnfns.c:
10715         * mule-canna.c:
10716         Add coding: cookie to identify encoding.
10717
10718         * mule-canna.c (CANNA_mode_keys): make static.
10719         Use proper prototypes, even for functions of no arguments.
10720         Remove external prototype for Fding().
10721
10722         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10723
10724         * select.c (syms_of_select): Add missing DEFSUBR.
10725
10726 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10727
10728         * select.c (get_selection_internal, own_selection_internal):
10729         Make the type default to STRING, rather than placing a nil type
10730         into Vselection_alist.
10731
10732 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10733
10734         * gpmevent.c (tty_selection_exists_p):
10735         * gpmevent.c (tty_own_selection):
10736         Updated parameter lists.
10737
10738 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10739
10740         * select.h (selection-alist): Removed declaration.
10741
10742         * select.h (get_local_selection):
10743         * select.c (get_local_selection):
10744         Made static.
10745
10746         * select.h (convert_selection): Removed declaration.
10747         * select.c (convert_selection): Removed.
10748         This function belongs in Lisp.
10749
10750         * select.h (select_convert_in): Declare.
10751         * select.h (select_convert_out): Declare.
10752         * select.c (select_convert_in): New.
10753         * select.c (select_convert_out): New.
10754         New conversion functions for other files to call.
10755
10756         * select.h (select_notify_buffer_kill): Declare.
10757         * select.c (select_notify_buffer_kill): New.
10758         New functions that get called from kill-buffer.
10759
10760         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10761         X-specific lisp code.
10762
10763         * select.h: Declare some of the lisp-visible functions for
10764         external use.
10765
10766         * select.c (clean_local_selection_data): Removed. This was
10767         a disgusting function, and previously should have been in
10768         select-x.c in any case. The functionality is now provided
10769         in select-convert-from-integer (select.el).
10770
10771         * select.c (available-selection-types): Fixed stupidity where
10772         INTEGER and ATOM got added twice. Also add STRING when we see an
10773         extent.
10774
10775         * select.c (get-selection-internal): Removed symbol stripping. No
10776         longer causes conversion when data comes from the internal cache.
10777
10778         * select.c (syms_of_select): Added new functions.
10779
10780         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10781         error checking - previously this called abort!
10782
10783         * select-x.c (x_own_selection): Changed comment.
10784
10785         * select-x.c (x_handle_selection_request): Use select_convert_out.
10786         Don't mess with selection-alist; it's an internal variable of select.c.
10787
10788         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10789
10790         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10791         rather than messing with selection-alist.
10792
10793         * select-msw.c (mswindows_get_foreign_selection):
10794         Use TO_INTERNAL_FORMAT rather than hacking.
10795
10796 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10797
10798         * process-unix.c (unix_open_multicast_group):
10799         (unix_open_multicast_group): Remove useless casts.
10800
10801 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10802
10803         * sound.c (Fplay_sound): Fix `unused variable' warning.
10804
10805         * emacs.c (main): Use correct type for _environ on SCO5.
10806
10807 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10808
10809         * console.h (own_selection_method):
10810         * console.h (selection_exists_p_method):
10811         * console.h (available_selection_types_method): New.
10812         * console.h (register_selection_data_type_method): New.
10813         * console.h (selection_data_type_name): New.
10814
10815         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10816         function & alist to track GlobalAlloc()'d handles that need
10817         releasing when the clipboard data gets replaced or emptied.
10818
10819         * event-msw.c (mswindows_wnd_proc): Call it.
10820
10821         * lisp.h, general.c (Qappend): New symbol representing a
10822         `how-to-add' mode.
10823
10824         * select.c (own-selection-internal):
10825         * select.c (selection-exists-p):
10826         * select.c (available-selection-types): New.
10827         * select.c (register-selection-data-type): New.
10828         * select.c (selection-data-type-name): New.  New functions to deal
10829         with device-specific selection data formats.
10830         * select.c (selection-converter-out-alist): Renamed.
10831         * select.c (selection-converter-in-alist): New.
10832         * select.c (selection-appender-alist): New.  Added new alists.
10833         * select.c (syms_of_select, vars_of_select): Added new symbols &
10834         variables.
10835         * select.c (get_local_selection): Split.
10836         * select.c: Removed spurious type checking - selections may now be
10837         of any type, not just strings.
10838         * select.c (own-selection-internal):
10839
10840         * select.h, select.c (convert_selection): New. Created
10841         convert_selection() function based on get_local_selection().
10842         * select.h, select.c (QCF_*): New symbols representing mswindows
10843         clipboard formats.
10844         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10845         symbols representing `how-to-add' modes.
10846
10847         * select-msw.c (x_sym_p): New.
10848         * select-msw.c (symbol_to_ms_cf): New.
10849         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10850         symbols & clipboard formats. Can also handle string names.
10851         * select-msw.c (mswindows_own_selection):
10852         * select-msw.c (mswindows_selection_exists_p):
10853         Added `data-type' parameter. Use it.
10854         * select-msw.c (mswindows_available_selection_types): New.
10855         * select-msw.c (mswindows_register_selection_data_type): New.
10856         * select-msw.c (mswindows_selection_data_type_name): New.
10857         * select-msw.c (mswindows_own_selection):
10858         * select-msw.c (mswindows_get_foreign_selection):
10859         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10860         * select-msw.c (console_create_select_mswindows): Added new methods.
10861         * select-msw.c (mswindows_destroy_selection): New.
10862         * select-msw.c (Vhandle_alist): New list.
10863         * select-msw.c (mswindows_own_selection):
10864
10865         * select-x.c (x_own_selection):
10866         * select-x.c (x_selection_exists_p):
10867         * select-x.c: Added some comments about maybe using new
10868         functionality.
10869         * select-x.c (x_own_selection):
10870
10871         * specifier.c: Remove definition of Qappend (now in general.c)
10872         * specifier.c (syms_of_specifier): Remove Qappend.
10873
10874 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10875
10876         * config.h.in: Add socklen_t.
10877
10878         * s/decosf4-0.h: No special compiler flags needed or desired.
10879         In particular, undefine _BSD for DEC OSF 4.0.
10880
10881 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10882
10883         * redisplay-msw.c (msprinter_frame_output_end): Added.
10884         (console_type_create_redisplay_mswindows): Referred the above.
10885
10886         * frame.c (setup_frame_without_minibuffer): Do not create a
10887         default minibuffer frame on a printer device.
10888
10889         * frame-msw.c (apply_dc_geometry): Added.
10890         (msprinter_start_page):
10891         (msprinter_init_frame_3):
10892         (msprinter_eject_page): Use it.
10893
10894         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10895         and removed residual duplex and orientation properties.
10896
10897 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10898
10899         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10900
10901         * unexalpha.c: Remove system prototypes from C sources!
10902
10903 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10904
10905         * eval.c: Remove references to M-x edit-options in DEFUNs for
10906         `defvar' and `defconst'.
10907
10908 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10909
10910         * config.h.in: Remove SMART_INCLUDE hackery.
10911
10912         PostgreSQL hacking:
10913         * config.h.in: Don't use SMART_INCLUDE.
10914
10915         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10916         * inline.c: Simply #include "postgresql.h"
10917         * postgresql.c:
10918         - Don't use SMART_INCLUDE
10919         - Use simply "const".
10920         - Use standard doc string conventions.
10921         - Use correct type for result of PQstatus.
10922
10923 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10924
10925         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10926
10927         C++ compilation changes.
10928         * config.h.in (EXTERN_C): Define.
10929         * config.h.in (not): This is also a C++ keyword.
10930         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10931         * cm.c: Use EXTERN_C.
10932         * redisplay-tty.c: Use EXTERN_C.
10933         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10934
10935 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10936
10937         * general.c: Remove duplicate definition for Qfunction.
10938
10939 2000-07-08  Ben Wing  <ben@xemacs.org>
10940
10941         * device-msw.c (msprinter_init_device):
10942         * device-msw.c (sync_printer_with_devmode):
10943         * device-msw.c (handle_devmode_changes):
10944         * device-msw.c (print_dialog_worker):
10945         * device-msw.c (Fmsprinter_apply_settings):
10946         * device-msw.c (hash_devmode):
10947         * device-msw.c (Fmsprinter_settings_despecialize):
10948         use Qmswindows_tstr, not Qctext.
10949
10950         * vm-limit.c (check_memory_limits):
10951         avoid infinite loop printing warning messages.
10952
10953 2000-07-05  Craig Lanning  <lanning@scra.org>
10954
10955         * Makefile.in.in: Add support for including the Windows resources
10956         when building with the cygwin and mingw targets.
10957
10958         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10959         not set or not correct.
10960         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10961         (init_initial_directory): Don't try to use $PWD on the
10962         WIN32_NATIVE target.
10963
10964         * s\cygwin32.h:
10965         [[Add -mwindows to eliminate console window.]] not required --ben
10966         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10967         (MAIL_USE_POP): removed; now handled by configure.
10968
10969         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10970         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10971         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10972         (MAIL_USE_POP): removed; now handled by configure.
10973         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10974         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10975         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10976         constant string.
10977         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10978         up from <winsock.h> via systime.h.
10979         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10980         (getpagesize): from Dan Holmsand, added.
10981         Added #endif which was left dangling by Ben's mega patch; added
10982         comment to help prevent this in the future.
10983
10984         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10985
10986 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10987
10988         * console-msw.h (struct mswindows_device): Removed unnecessary
10989         cached device geometry values.
10990         Added update_tick and an accessor macro.
10991         (Lisp_Devmode): Added lrecord declaration.
10992         (struct msprinter_device): Contain devmode as a Lisp object.
10993         Added mswindows_get_selected_frame_hwnd();
10994
10995         * console.h (struct console_methods): Indentation nitpicking.
10996
10997         * device-msw.c (mswindows_init_device): Do not initialize geometry
10998         cache. Initialize update tick.
10999         (mswindows_device_system_metrics): Ask the device for its geometry.
11000         (global_free_2_maybe):
11001         (devmode_to_hglobal):
11002         (handle_printer_changes):
11003         (ensure_not_printing):
11004         (print_dialog_worker):
11005         (Fmsprinter_print_setup_dialog):
11006         (Fmsprinter_print_dialog):
11007         (plist_get_margin):
11008         (plist_set_margin):
11009         (Fmsprinter_page_setup_dialog): Added functions.
11010         (sync_printer_with_devmode):
11011         (handle_devmode_changes):
11012         (Fmsprinter_get_settings):
11013         (Fmsprinter_select_settings):
11014         (Fmsprinter_apply_settings):
11015         (allocate_devmode):
11016         (Fmsprinter_settings_copy):
11017         (Fmsprinter_settings_despecialize):
11018         (print_devmode):
11019         (finalize_devmode):
11020         (equal_devmode):
11021         (hash_devmode): Added functions
11022         (syms_of_device_mswindows): Init devmode lrecord class.
11023
11024         * device.h: Added an exfun for find-device.
11025
11026         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11027         geometry; although, recreate the device compatible DC.
11028
11029         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11030         (msprinter_init_frame_3):
11031         (msprinter_frame_property):
11032         (msprinter_internal_frame_property_p):
11033         (msprinter_frame_properties):
11034         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11035         print job properties (will move to device settings).
11036
11037         * lisp.h: Added symbols.
11038
11039         * general.c (syms_of_general): Declared them.
11040
11041         * hash.c (string_hash): Added.
11042
11043         * lrecord.h (lrecord_type): Added devmode lrecord type.
11044
11045 2000-07-02  Mike Sperber <mike@xemacs.org>
11046
11047         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11048         FreeBSD 4.0.
11049
11050 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11051
11052         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11053         integer.
11054
11055 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11056
11057         * data.c (Fstring_to_number): Don't recognize floating point if
11058         base is not 10.
11059
11060 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11061
11062         * glyphs-widget.c (tab_control_query_geometry):
11063         (widget_query_geometry):
11064         (button_query_geometry):
11065         * glyphs.c (text_query_geometry):
11066         Enforce type correctness.
11067
11068 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11069
11070         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11071         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11072
11073 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11074
11075         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11076         conflicts with gcc's fixincluded version of FOO.h.
11077
11078         * glyphs.h (image_instance_geometry): Remove trailing `,'
11079
11080 2000-06-08  Mike Alexander  <mta@arbortext.com>
11081
11082         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11083         (shove_thread): Don't write the same output twice
11084         (make_ntpipe_output_stream): Increase priority of shove thread
11085         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11086         chance to run
11087         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11088         it.
11089
11090 2000-06-12  Ben Wing  <ben@xemacs.org>
11091
11092         * s\mingw32.h (sigset):
11093         * s\windowsnt.h (sigset):
11094         rename msw_ to mswindows_ for consistency with general convention.
11095
11096 2000-06-12  Ben Wing  <ben@xemacs.org>
11097
11098         * console-msw.c:
11099         * console-msw.c (mswindows_get_console_hwnd):
11100         * console-msw.c (mswindows_ensure_console_allocated):
11101         * console-msw.c (mswindows_hide_console):
11102         * console-msw.c (mswindows_show_console):
11103         * console-msw.c (mswindows_ensure_console_buffered):
11104         * console-msw.c (mswindows_output_console_string):
11105         * console-msw.c (mswindows_windows9x_p):
11106         * console-msw.h:
11107         * device-msw.c (mswindows_get_workspace_coords):
11108         * device-msw.c (mswindows_device_system_metrics):
11109         * dialog-msw.c (mswindows_popup_dialog_box):
11110         * event-msw.c (mswindows_wnd_proc):
11111         * frame-msw.c (mswindows_size_frame_internal):
11112         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11113         * menubar-msw.c (displayable_menu_item):
11114         * menubar-msw.c (mswindows_char_is_accelerator):
11115         * nt.c:
11116         * nt.c (mswindows_sigset):
11117         * nt.c (mswindows_sigrelse):
11118         * nt.c (mswindows_sigpause):
11119         * nt.c (mswindows_raise):
11120         * nt.c (timer_proc):
11121         * ntproc.c:
11122         * ntproc.c (find_child_console):
11123         * ntproc.c (sys_kill):
11124         * print.c:
11125         * print.c (std_handle_out_external):
11126         * process-nt.c (find_child_console):
11127         * process-nt.c (send_signal_the_95_way):
11128         * process-nt.c (ensure_console_window_exists):
11129         * process-nt.c (nt_create_process):
11130         * syssignal.h:
11131         rename msw_ to mswindows_ for consistency with general convention.
11132
11133         * emacs.c:
11134         * dumper.c:
11135         include nt.h, not syswindows.h.
11136
11137         * nt.c (mswindows_fstat):
11138         * nt.c (mswindows_stat):
11139         prefix mswindows_ instead of attempting to directly override the
11140         library functions.  fix declarations.
11141
11142         * nt.h:
11143         include syswindows.h.  move some sysdep.h stuff here.
11144
11145         * ntheap.h:
11146         include syswindows.h, not <windows.h>.
11147
11148         * ntplay.c:
11149         clean up headers.
11150
11151         * sysdep.c:
11152         clean up headers.
11153
11154         * sysdep.c (sys_fstat):
11155         * sysdep.c (sys_stat):
11156         call mswindows versions when appropriate.
11157
11158         * sysdep.h:
11159         move mswin decls to nt.h.
11160
11161         * syswindows.h:
11162         add long comment describing appropriate use of the various windows
11163         headers.
11164
11165 2000-06-11  Ben Wing  <ben@xemacs.org>
11166
11167         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11168
11169 2000-06-10  Ben Wing  <ben@xemacs.org>
11170
11171         * Makefile.in.in (release):
11172         Correction to make sure xemacs.exe always dumped when correct.
11173
11174         * alloca.c:
11175         * balloon_help.c:
11176         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11177
11178         * buffer.c (set_buffer_internal):
11179         [[[[2]]]]: Remove HAVE_FEP code.
11180
11181         * buffer.c (init_initial_directory):
11182         [3].
11183
11184         * bytecode.c:
11185         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11186         individual files.
11187
11188         * callproc.c:
11189         * callproc.c (call_process_cleanup):
11190         * callproc.c (Fold_call_process_internal):
11191         * callproc.c (child_setup):
11192         * callproc.c (getenv_internal):
11193         * callproc.c (init_callproc):
11194         * callproc.c (vars_of_callproc):
11195         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11196         __CYGWIN32__ -> CYGWIN.
11197         DOS_NT -> WIN32_NATIVE.
11198         Remove MSDOS support/references, converting to WIN32_NATIVE
11199           where correct.
11200         __MINGW32__ -> MINGW.
11201         Fix windows.h includes.
11202         Remove bogus HAVE_NTGUI.
11203
11204         * config.h.in:
11205         [2].
11206
11207         * console-msw.c:
11208         mswindows_message_outputted added for use in allowing startup
11209         errors on the console to be seen.
11210
11211         * console-msw.c (msw_ensure_console_allocated):
11212         * console-msw.c (msw_output_console_string):
11213         * console-msw.c (DHEADER):
11214         * console-msw.c (DOPAQUE_DATA):
11215         * console-msw.c (DEVENT):
11216         * console-msw.c (DCONS):
11217         * console-msw.c (DCONSCDR):
11218         * console-msw.c (DSTRING):
11219         * console-msw.c (DVECTOR):
11220         * console-msw.c (DSYMBOL):
11221         * console-msw.c (DSYMNAME):
11222         Fix warnings.
11223
11224         * console-stream.c (stream_init_console):
11225         Fix text/binary problems.
11226
11227         * device-msw.c:
11228         * device-msw.c (mswindows_finish_init_device):
11229         * device-msw.c (mswindows_delete_device):
11230         [1].
11231
11232         * device.c (handle_asynch_device_change):
11233         [3].
11234
11235         * dgif_lib.c:
11236         * dgif_lib.c (DGifOpenFileName):
11237         * dgif_lib.c (DGifOpenFileHandle):
11238         * dgif_lib.c (DGifGetLine):
11239         * dgif_lib.c (DGifGetPixel):
11240         Added config.h/lisp.h, fix up includes.
11241         [1].
11242
11243         * dired-msw.c:
11244         [4].
11245
11246         * dired.c:
11247         * dired.c (file_name_completion):
11248         * dired.c (Ffile_attributes):
11249         * dired.c (syms_of_dired):
11250         [1].
11251
11252         * dumper.c:
11253         * dumper.c (pdump_file_unmap):
11254         * dumper.c (pdump_load):
11255         [1].
11256
11257         * editfns.c:
11258         * editfns.c (Ftemp_directory):
11259         * editfns.c (user_login_name):
11260         * editfns.c (Fuser_real_login_name):
11261         * editfns.c (get_home_directory):
11262         [1].
11263
11264         * elhash.c (finish_marking_weak_hash_tables):
11265         [[[[5]]]]: Fix GCC warnings.
11266
11267         * emacs.c:
11268         * emacs.c (mswindows_handle_hardware_exceptions):
11269         * emacs.c (make_arg_list_1):
11270         * emacs.c (main_1):
11271         * emacs.c (Fkill_emacs):
11272         * emacs.c (Fdump_emacs):
11273         [1].
11274         Fix problems with nested crashes, add long comment.
11275
11276         * event-Xt.c (init_event_Xt_late):
11277         [1].
11278
11279         * event-msw.c:
11280         * event-msw.c (mswindows_dde_callback):
11281         * event-msw.c (mswindows_handle_sticky_modifiers):
11282         * event-msw.c (mswindows_wnd_proc):
11283         [1].
11284         [5].
11285
11286         * events.c (character_to_event):
11287         [1].
11288
11289         * fileio.c:
11290         * fileio.c (Ffile_name_directory):
11291         * fileio.c (Ffile_name_nondirectory):
11292         * fileio.c (directory_file_name):
11293         * fileio.c (Fexpand_file_name):
11294         * fileio.c (Fsubstitute_in_file_name):
11295         * fileio.c (Ffile_name_absolute_p):
11296         * fileio.c (check_executable):
11297         * fileio.c (Ffile_readable_p):
11298         * fileio.c (Ffile_accessible_directory_p):
11299         * fileio.c (Ffile_modes):
11300         * fileio.c (Funix_sync):
11301         * fileio.c (vars_of_fileio):
11302         [1]. [4].
11303
11304         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11305
11306         Expand getdefdir defn.
11307         Fix bogus rename() comment.
11308
11309         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11310         to use standard XEmacs include files, e.g. sysfile.h, rather
11311         than system-specific includes.
11312
11313         * fns.c:
11314         * fns.c (Fsubseq):
11315         [5]. [6].
11316
11317         * frame.c (vars_of_frame):
11318         [1].
11319
11320         * getloadavg.c:
11321         * getloadavg.c (getloadavg):
11322         [1]. [6].
11323         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11324         (We don't use it elsewhere in the code; just add a comment.)
11325
11326         * gif_io.c:
11327         [6].
11328         Add config.h.
11329
11330         * glyphs-msw.c:
11331         * glyphs-msw.c (mswindows_resource_instantiate):
11332         [1].
11333
11334         * glyphs-x.c (x_native_layout_instantiate):
11335         [5].
11336
11337         * gui-msw.c (Fmswindows_shell_execute):
11338         [1].
11339
11340         * insdel.c:
11341         [4].
11342
11343         * lisp.h:
11344         [4]. [5].
11345
11346         * lread.c (locate_file_in_directory_mapper):
11347         [1].
11348
11349         * lstream.c:
11350         [4].
11351
11352         * mem-limits.h:
11353         * mem-limits.h (get_lim_data):
11354         [1].
11355
11356         * menubar-msw.c:
11357         [4].
11358
11359         * ndir.h:
11360         [1].
11361
11362         * nt.c:
11363         * nt.c (getwd):
11364         * nt.c (closedir):
11365         * nt.c (rva_to_section):
11366         * nt.c (mswindows_executable_type):
11367         [1]. [6].
11368         Fix closedir() defn.
11369
11370         * nt.h:
11371         [[[[8]]]]: *_OK defs moved to sysfile.h.
11372
11373         * ntproc.c:
11374         [6]. [7].
11375
11376         * objects-x.c:
11377         [4].
11378
11379         * print.c:
11380         * print.c (std_handle_out_external):
11381         [1]. [4].
11382
11383         * process-nt.c:
11384         * process-nt.c (nt_create_process):
11385         [6].
11386         try to fix process quoting somewhat.
11387
11388         * process-unix.c (unix_create_process):
11389         [1].
11390
11391         * process.c:
11392         * process.c (vars_of_process):
11393         Add Vnull_device.
11394
11395         * process.h:
11396         [1].
11397
11398         * realpath.c:
11399         * realpath.c (xrealpath):
11400         [1].
11401
11402         * redisplay-tty.c (init_tty_for_redisplay):
11403         [3].
11404
11405         * redisplay.c:
11406         [4]. [6].
11407
11408         * scrollbar-msw.c:
11409         [4].
11410
11411         * sheap.c:
11412         * sheap.c (more_static_core):
11413         * sheap.c (report_sheap_usage):
11414         [5]. [6].
11415
11416         * signal.c:
11417         * signal.c (alarm_signal):
11418         [1]. [6].
11419
11420         * sound.c:
11421         [6].
11422
11423         * strftime.c:
11424         * strftime.c (zone_name):
11425         [1]. [5].
11426
11427         * symsinit.h (init_sunpro):
11428         [1].
11429
11430         * syscommctrl.h:
11431         commctrl.h not in Cygwin b20.1.
11432
11433         * sysdep.c:
11434         * sysdep.c (endif):
11435         * sysdep.c (sys_subshell):
11436         * sysdep.c (init_baud_rate):
11437         * sysdep.c (emacs_get_tty):
11438         * sysdep.c (emacs_set_tty):
11439         * sysdep.c (tty_init_sys_modes_on_device):
11440         * sysdep.c (init_system_name):
11441         * sysdep.c (sys_open):
11442         * sysdep.c (interruptible_open):
11443         * sysdep.c (sys_fopen):
11444         * sysdep.c (sys_mkdir):
11445         * sysdep.c (sys_rename):
11446         * sysdep.c (get_process_times_1):
11447         [1]. [6].
11448
11449         * sysdep.h:
11450         [1].
11451
11452         * sysdir.h:
11453         * sysdir.h (DIRENTRY_NONEMPTY):
11454         [1]. [6].
11455
11456         * sysdll.c (dll_init):
11457         * sysdll.h:
11458         [1].
11459
11460         * sysfile.h:
11461         [1]. [6]. [8].
11462         added text/binary defs.
11463
11464         * sysfloat.h:
11465         [1].
11466
11467         * sysproc.h:
11468         * sysproc.h (EDESTADDRREQ):
11469         * sysproc.h (poll_fds_for_input):
11470         [1]. [6].
11471
11472         * syspwd.h:
11473         [6].
11474
11475         * syssignal.h:
11476         [1].
11477
11478         * systime.h:
11479         [1]. [6].
11480
11481         * systty.h:
11482         [1].
11483
11484         * syswindows.h:
11485         [1].
11486         Always define WIN32_LEAN_AND_MEAN.
11487
11488         * unexcw.c (unexec):
11489         [5].
11490
11491         * unexec.c:
11492         * unexec.c (copy_text_and_data):
11493         * unexec.c (adjust_lnnoptrs):
11494         [1].
11495
11496         * unexnt.c:
11497         * unexnt.c (_start):
11498         [1].
11499
11500 2000-06-07  Ben Wing  <ben@xemacs.org>
11501
11502         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11503         was used only as a model.  We've long since extracted any useful
11504         logic or code out of this. (I just did an exhaustive search.)
11505
11506         * s\msdos.h: Removed.
11507
11508         * s\windows95.h: Removed.
11509
11510 2000-06-10  Ben Wing  <ben@xemacs.org>
11511
11512         * s\cygwin32.h:
11513         [1]. [5].
11514         Don't use extern with fun defs.
11515
11516         * s\mingw32.h:
11517         [1]. [7].
11518         Remove nt\inc include.
11519         Remove getdisk, getdefdir. (The former is unused, the latter
11520         expanded in fileio.h.)
11521
11522         * s\windowsnt.h:
11523         * s\windowsnt.h (WIN32_NATIVE):
11524         * s\windowsnt.h (HAVE_STRCASECMP):
11525         [1]. [7].
11526         Add long comment about preprocessor changes.
11527         Remove getdisk, getdefdir. (The former is unused, the latter
11528         expanded in fileio.h.)
11529
11530 2000-06-10  Ben Wing  <ben@xemacs.org>
11531
11532         * m\arm.h:
11533         * m\delta.h:
11534         * m\intel386.h:
11535         * m\sequent.h:
11536         * m\template.h:
11537         * m\windowsnt.h:
11538         [1].
11539         Remove bogus/unused NO_SOCK_SIGIO.
11540
11541 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11542
11543         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11544         not an Emchar.
11545
11546 2000-06-04  Mike Sperber <mike@xemacs.org>
11547
11548         * casetab.c (set_case_table): For `set-standard-case-table',
11549         actually deposit the new case tables where the rest of XEmacs can
11550         see them.
11551
11552 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11553
11554         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11555
11556 2000-06-05  Ben Wing  <ben@xemacs.org>
11557
11558         * callproc.c (child_setup): Don't do close_load_descs() under
11559         MS Windows.  Put in a comment explaining why.
11560
11561 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11562
11563         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11564         Toolkit shell" which breaks `kill-compilation' on Windows NT
11565         native, retaining STDERR handling improvements.
11566
11567 2000-06-01  Andreas Jaeger  <aj@suse.de>
11568
11569         * s/s390.h: Support for S390, based on a patch by Martin
11570         Schwidefsky <schwidefsky@de.ibm.com>.
11571
11572 2000-05-30  Andy Piper  <andy@xemacs.org>
11573
11574         * window.c (allocate_window):
11575         (make_dummy_parent):
11576         (Fset_window_configuration): use new hashtable type.
11577
11578         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11579         (struct image_instantiator_methods):
11580         (struct Lisp_Image_Instance): make instance geometry signed.
11581
11582         * glyphs.c (instantiate_image_instantiator):
11583         (image_instance_query_geometry):
11584         (image_instance_layout):
11585         (image_instance_layout):
11586         (query_string_geometry):
11587         (text_query_geometry):
11588         (image_instantiate):
11589         (image_instantiate):
11590         (cache_subwindow_instance_in_frame_maybe):
11591         (subwindow_query_geometry): make instance geometry signed.
11592
11593         * glyphs-widget.c (widget_query_geometry):
11594         (widget_layout):
11595         (button_query_geometry):
11596         (tree_view_query_geometry):
11597         (tab_control_query_geometry):
11598         (layout_query_geometry):
11599         (layout_layout):
11600         (native_layout_layout): make instance geometry signed.
11601
11602 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11603
11604         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11605         constant.
11606
11607         * general.c (syms_of_general): Add Qfull_assoc symbol.
11608
11609         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11610         correctly.
11611         (decode_weak_list_type): Decode full-assoc type.
11612         (encode_weak_list_type): Encode full-assoc type.
11613         (Fmake_weak_list): Update doc string.
11614
11615 2000-05-30  Andy Piper  <andy@xemacs.org>
11616
11617         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11618
11619         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11620         (decode_hash_table_weakness): ditto.
11621         (Fhash_table_weakness): ditto.
11622         (Fhash_table_type): ditto.
11623         (finish_marking_weak_hash_tables): ditto.
11624         (hash_table_weakness_validate): ditto.
11625         (syms_of_elhash): ditto.
11626
11627 2000-05-28  Martin Buchholz <martin@xemacs.org>
11628
11629         * XEmacs 21.2.34 is released.
11630
11631 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11632
11633         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11634         start cache.
11635         (updating_line_start_cache): Gone.
11636         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11637         generic code to force a minimum of 1 line laid out in the
11638         CMOTION_DISP case.
11639
11640 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11641
11642         * glyphs.c (instantiate_image_instantiator): Check for initialized
11643         height & width no longer special cases IMAGE_NOTHING.
11644         (nothing_instantiate): Set height and width of instance.
11645
11646 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11647
11648         * unexelf.c (unexec): Search for ".data" section.
11649         Initialize new_data2_offset from old_data_index.
11650         Remove redundant check for ElfW.
11651
11652 2000-05-23  Andy Piper  <andy@xemacs.org>
11653
11654         * glyphs.c (get_image_instantiator_governing_domain): allow more
11655         specific domains as the governing domain rather than expecting an
11656         exact match. This fixes problems with layouts.
11657
11658 2000-05-22  Andy Piper  <andy@xemacs.org>
11659
11660         * redisplay-output.c (compare_runes): check for non-images
11661
11662         * glyphs.c (set_glyph_dirty_p): ditto.
11663         (update_glyph_cachel_data): ditto.
11664
11665         * glyphs-widget.c (layout_post_instantiate): ditto.
11666         (layout_post_instantiate): ditto.
11667
11668         * event-msw.c (mswindows_wnd_proc): warning removal.
11669
11670 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11671
11672         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11673
11674         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11675
11676         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11677
11678         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11679         (mswindows_executable_type): mingw32 now has enough headers for
11680         this to work.
11681
11682 2000-05-20  Andy Piper  <andy@xemacs.org>
11683
11684         * console-msw.c (mswindows_output_last_error): ; -> ,
11685
11686 2000-05-12  Andy Piper  <andy@xemacs.org>
11687
11688         * console-msw.c (FROB): compare ints with ints.
11689
11690 2000-05-11  Andy Piper  <andy@xemacs.org>
11691
11692         * glyphs-x.c (x_finalize_image_instance): make minimal build
11693         happy.
11694
11695 2000-05-20  Ben Wing  <ben@xemacs.org>
11696
11697         * event-Xt.c:
11698         * event-Xt.c (vars_of_event_Xt):
11699         move modifier-keys-are-sticky to event-stream.c.
11700
11701         * event-msw.c:
11702         * event-msw.c (mswindows_enqueue_mouse_button_event):
11703         * event-msw.c (key_needs_default_processing_p):
11704         * event-msw.c (XEMSW_LCONTROL):
11705         * event-msw.c (mswindows_handle_sticky_modifiers):
11706         * event-msw.c (FROB):
11707         * event-msw.c (clear_sticky_modifiers):
11708         * event-msw.c (output_modifier_keyboard_state):
11709         * event-msw.c (output_alt_keyboard_state):
11710         * event-msw.c (mswindows_wnd_proc):
11711         * event-msw.c (mswindows_modifier_state):
11712         * event-msw.c (emacs_mswindows_handle_magic_event):
11713         implement sticky modifiers.
11714
11715         * event-stream.c:
11716         * event-stream.c (vars_of_event_stream):
11717         move modifier-keys-are-sticky here.
11718
11719         * lisp.h:
11720         add CHECK_FUNCTION.
11721
11722         * rangetab.c:
11723         implement map-range-table.
11724
11725
11726 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11727
11728         * redisplay-tty.c (reset_tty_modes):
11729         (tty_redisplay_shutdown): Adjust argument type to
11730         tty_frame_output_end.
11731
11732 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11733
11734         * eval.c (Fbacktrace): Don't output a line with only right
11735         parenthesis.
11736
11737 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11738
11739         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11740         (Fpq_reset_poll): Ditto.
11741
11742 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11743
11744         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11745
11746 2000-05-16  Ben Wing  <ben@xemacs.org>
11747
11748         * buffer.c:
11749         * buffer.c (dfc_convert_to/from_internal_format):
11750         * buffer.c (reinit_vars_of_buffer):
11751         Fix conversion functions to allow reentrancy.
11752
11753         * console-msw.c:
11754         * console-msw.c (mswindows_output_last_error):
11755         New fun, generally useful -- output a human-readable
11756         version of GetLastError() on the console.
11757
11758         * console-msw.h:
11759         * console-msw.h (struct mswindows_frame):
11760         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11761
11762         * console-stream.c (stream_output_begin):
11763         * console-stream.c (stream_output_end):
11764         * console-stream.c (stream_output_vertical_divider):
11765         * console-stream.c (stream_clear_region):
11766         * console-stream.c (stream_flash):
11767         * console-stream.c (console_type_create_stream):
11768         Delete blank stream methods, not needed.
11769
11770         * console.h (struct console_methods):
11771         Split begin/end methods into window and frame.
11772
11773         * event-msw.c:
11774         * event-msw.c (mswindows_handle_paint):
11775         * event-msw.c (output_alt_keyboard_state):
11776         * event-msw.c (mswindows_wnd_proc):
11777         * event-msw.c (vars_of_event_mswindows):
11778         Comment about problems with ignored-expose.
11779         Define mswindows-debug-events; not really implemented.
11780
11781         * frame-msw.c (mswindows_init_frame_1):
11782         random cleanups.
11783
11784         * glyphs-msw.c:
11785         * glyphs-msw.c (begin_defer_window_pos):
11786         * glyphs-msw.c (mswindows_unmap_subwindow):
11787         * glyphs-msw.c (mswindows_map_subwindow):
11788         * glyphs-msw.c (mswindows_resize_subwindow):
11789         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11790
11791         * glyphs.c (make_image_instance_1):
11792         Fix crash.
11793
11794         * gutter.c (Fredisplay_gutter_area):
11795         Use new begin/end methods.
11796
11797         * lisp.h (Dynarr_new2):
11798         New creation fun.
11799
11800         * redisplay-msw.c:
11801         * redisplay-msw.c (mswindows_frame_output_begin):
11802         * redisplay-msw.c (mswindows_frame_output_end):
11803         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11804         New begin/end methods -- handle DeferWindowPos.
11805
11806         * redisplay-output.c (redisplay_move_cursor):
11807         * redisplay-output.c (redraw_cursor_in_window):
11808         * redisplay-output.c (redisplay_update_line):
11809         * redisplay-output.c (redisplay_output_window):
11810         New begin/end methods.
11811
11812         * redisplay-tty.c:
11813         * redisplay-tty.c (tty_frame_output_begin):
11814         * redisplay-tty.c (tty_frame_output_end):
11815         * redisplay-tty.c (console_type_create_redisplay_tty):
11816         New begin/end methods.
11817
11818         * redisplay-x.c:
11819         * redisplay-x.c (x_window_output_begin):
11820         * redisplay-x.c (x_window_output_end):
11821         * redisplay-x.c (console_type_create_redisplay_x):
11822         New begin/end methods.
11823
11824         * redisplay.c (redisplay_frame):
11825         * redisplay.c (Fredisplay_echo_area):
11826         New begin/end methods.
11827         use MAYBE_DEVMETH for clear_frame; it may not exist.
11828
11829         * window.h (WINDOW_XFRAME):
11830         WINDOW_XFOO macros -- get locale and decode struct pointer.
11831
11832
11833 2000-05-12  Ben Wing  <ben@xemacs.org>
11834
11835         * emacs.c:
11836         * emacs.c (ensure_no_quitting_from_now_on):
11837         * emacs.c (fatal_error_signal):
11838         * emacs.c (mswindows_handle_hardware_exceptions):
11839         * emacs.c (main):
11840         * emacs.c (Fkill_emacs):
11841         * emacs.c (shut_down_emacs):
11842         * emacs.c (assert_failed):
11843         various improvements in fatal error handling.
11844
11845         * eval.c:
11846         move preparing_for_armageddon to emacs.c.
11847
11848         * lisp.h:
11849         declare fatal_error_in_progress.
11850
11851         * print.c:
11852         * print.c (std_handle_out_external):
11853         * print.c (std_handle_out_va):
11854         * print.c (stderr_out):
11855         * print.c (stdout_out):
11856         use console under mswin when no standard output.
11857         don't do code conversion during fatal error.
11858
11859         * scrollbar.c (Fscrollbar_page_up):
11860         * scrollbar.c (Fscrollbar_page_down):
11861         fix missing else.  reindent.
11862
11863 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11864
11865         Emergency fix.
11866
11867         * glyphs.h (GLYPH_CACHEL_DESCENT):
11868         (GLYPH_CACHEL_DESCENT):
11869         (GLYPH_CACHEL_DESCENT):
11870         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11871         used in case these are inline functions.
11872         Use more absurd values to error check.
11873
11874         include window.h for error check functions.
11875
11876 2000-05-11  Ben Wing  <ben@xemacs.org>
11877
11878         * cmdloop.c (Freally_early_error_handler):
11879         Display message box under windows; otherwise, message will disappear
11880         before it can be viewed.
11881
11882         * console-msw.c:
11883         * console-msw.c (Fmswindows_message_box):
11884         * console-msw.c (FROB):
11885         * console-msw.c (syms_of_console_mswindows):
11886         Define new fun `mswindows-message-box'.
11887         #### I will merge this into `popup-dialog-box'; just give me
11888         a bit of time.
11889
11890         * general.c:
11891         * general.c (syms_of_general):
11892         Some new symbols used in `mswindows-message-box'.
11893
11894         * glyphs.c:
11895         * glyphs.c (Fset_image_instance_property):
11896         put warning in this fun.
11897
11898         * glyphs.h:
11899         * glyphs.h (GLYPH_CACHEL_WIDTH):
11900         * glyphs.h (GLYPH_CACHEL_ASCENT):
11901         * glyphs.h (GLYPH_CACHEL):
11902         * glyphs.h (GLYPH_CACHEL_GLYPH):
11903         define error-checking versions to try to catch a bug i've seen --
11904         redisplay gets in an infinite loop because the glyph width of the
11905         continuation glyph is 65535.
11906
11907         * lisp.h:
11908         Extern message-box stuff.
11909
11910         * window.c (allocate_window):
11911         * window.c (make_dummy_parent):
11912         * window.c (Fset_window_configuration):
11913         Use EQUAL not EQ for subwindow caches to make them work a bit
11914         better. (Something is still very broken.)
11915
11916
11917 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11918
11919         * glyphs.c (image_instantiate): Suppress gcc warnings.
11920         (Fmake_image_instance): Fix doc string.
11921         * specifier.c (Fmake_specifier): Ditto.
11922
11923 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11924
11925         * paths.h.in (PATH_LOCK): Removed.
11926         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11927         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11928
11929 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11930
11931         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11932         Document (featurep '(and xemacs 21.02)).
11933
11934 2000-05-09  Ben Wing  <ben@xemacs.org>
11935
11936         * buffer.c (complex_vars_of_buffer):
11937         update modeline-format doc.
11938
11939         * device.h:
11940         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11941
11942         * emacs.c:
11943         timeline of all released versions of Emacs, for use in creating
11944         authorship comments and in synching up.
11945
11946         * glyphs-widget.c (image_instantiator_buttons):
11947         * glyphs-widget.c (image_instantiator_edit_fields):
11948         * glyphs-widget.c (image_instantiator_combo_box):
11949         * glyphs-widget.c (image_instantiator_scrollbar):
11950         * glyphs-widget.c (image_instantiator_progress_guage):
11951         * glyphs-widget.c (image_instantiator_tree_view):
11952         * glyphs-widget.c (image_instantiator_tab_control):
11953         * glyphs-widget.c (image_instantiator_labels):
11954         * glyphs-widget.c (image_instantiator_layout):
11955         * glyphs-widget.c (image_instantiator_native_layout):
11956         rename decode_domain method to governing_domain.
11957
11958         * glyphs.c:
11959         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11960         * glyphs.c (add_entry_to_device_ii_format_list):
11961         make sure we don't put an entry more than once into the list.
11962         * glyphs.c (check_instance_cache_mapper):
11963         *************************************************************
11964         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11965         HAVE BEEN GETTING.
11966         *************************************************************
11967         * glyphs.c (get_image_instantiator_governing_domain):
11968         clean up, expand on new concept of governing domain.
11969         * glyphs.c (instantiate_image_instantiator):
11970         * glyphs.c (allocate_image_instance):
11971         use governing_domain instead of cache_domain in naming.
11972         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11973         * glyphs.c (make_image_instance_1):
11974         * glyphs.c (Fmake_image_instance):
11975         allow for any domain (not just device), and process the
11976         governing domain correctly.  very big doc fix.
11977         * glyphs.c (Fimage_instance_domain):
11978         new primitive, to retrieve the governing domain of an image instance.
11979         * glyphs.c (image_instantiate):
11980         use new governing_domain stuff.  this fixes a crash you could get
11981         by instantiating certain widget glyphs in frame locales. (should
11982         signal an error instead of crashing.)
11983         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11984         * glyphs.c (Fglyphp): clean up doc.
11985         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11986         * glyphs.c (syms_of_glyphs):
11987         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11988         * glyphs.c (image_instantiator_format_create): add some comments about
11989         bogus code.
11990         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11991         for current-display-table. (Apparently Hrjove implemented in 1998 a
11992         design I wrote up in 1996, but didn't update the doc string.)
11993
11994         * glyphs.h: clean up a doc string.
11995         * glyphs.h (governing_domain):
11996         * glyphs.h (struct image_instantiator_methods):
11997         changes for governing_domain stuff.
11998
11999         * gutter.c:
12000         * gutter.c (Fgutter_specifier_p):
12001         * gutter.c (Fgutter_size_specifier_p):
12002         * gutter.c (Fgutter_visible_specifier_p):
12003         * objects.c:
12004         * objects.c (Fcolor_specifier_p):
12005         * objects.c (Ffont_specifier_p):
12006         * objects.c (Fface_boolean_specifier_p):
12007         doc strings moved to make-*-specifier.
12008
12009         * redisplay.c (add_disp_table_entry_runes_1):
12010         * redisplay.c (generate_fstring_runes):
12011         * redisplay.c (screen):
12012         add random comments and doc strings.
12013
12014         * specifier.c:
12015         * specifier.c (Fmake_specifier):
12016         major overhaul of this doc string.
12017
12018         * specifier.c (Fvalid_specifier_domain_p):
12019         comment about the bogosity of image instances being domains.
12020         * specifier.c (decode_domain):
12021         now non-static, used in glyphs.c.
12022         * specifier.c (specifier_instance):
12023         comment about the bogosity of image instances being domains.
12024         * specifier.c (Fgeneric_specifier_p):
12025         move doc string to make-generic-specifier.
12026         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12027         rebackslashify.
12028
12029         * specifier.h:
12030         * specifier.h (DOMAIN_FRAME):
12031         * specifier.h (DOMAIN_LIVE_P):
12032         * specifier.h (DOMAIN_XDEVICE):
12033         rebackslashify.
12034         add comments about problems with these macros.
12035         prototype for decode_domain.
12036
12037         * toolbar.c:
12038         * toolbar.c (Ftoolbar_specifier_p):
12039         move doc string to `make-toolbar-specifier'.
12040
12041         * window.c (window_unmap_subwindows_cache_mapper):
12042         *************************************************************
12043         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12044         HAVE BEEN GETTING.
12045         *************************************************************
12046
12047 2000-05-09  Andy Piper  <andy@xemacs.org>
12048
12049         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12050
12051         * window.c (Fset_window_configuration): reset the frame subwindow
12052         cache and re-initialize the window subwindow caches.
12053
12054         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12055
12056 2000-05-09  Ben Wing  <ben@xemacs.org>
12057
12058         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12059         DWORD.
12060
12061 2000-04-26  Mike Woolley  <mike@bulsara.com>
12062
12063         * ntheap.c: Changed recreate_heap to limit the amount reserved
12064         for the heap to that which is actually available. Also now
12065         displays a message box (with some dignostics) in the event that
12066         it still can't start.
12067
12068 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12069
12070         * callproc.c (Fold_call_process_internal): GCPRO path
12071
12072 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12073
12074         Patch by Bill Perry.
12075
12076         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12077         back data instead of #ifdef.
12078         (Fscrollbar_page_down): ditto.
12079
12080 2000-05-07  Ben Wing  <ben@xemacs.org>
12081
12082         * buffer.h:
12083         Kludge for defining Qmswindows_tstr.
12084
12085         * nt.c:
12086         * nt.c (open_input_file):
12087         * nt.c (open_output_file):
12088         * nt.c (rva_to_section):
12089         * nt.c (mswindows_executable_type):
12090         Move all memory-mapped-file routines here (some were in unexnt.c,
12091         which is bad because they are used by process-nt.c, and unexnt
12092         won't be around when portable dumping).  Synched the above routines
12093         with FSF 20.6.
12094
12095         * nt.h:
12096         Removed ifdef'd out bogus code.
12097         Fixed some prototypes.
12098
12099         * nt.h (file_data):
12100         * nt.h (OFFSET_TO_RVA):
12101         * nt.h (RVA_TO_OFFSET):
12102         * nt.h (RVA_TO_PTR):
12103         Moved the memory-mapped-file structures, macros and prototypes
12104         here, to parallel nt.c.  ntheap.h should really be removed
12105         entirely, and it's a non-portable-dumper specific file.
12106
12107         * ntheap.h (round_to_next):
12108         Moved the memory-mapped-file structures, macros and prototypes
12109         to nt.h.
12110
12111         * ntproc.c (compare_env):
12112         Moved rva_to_section and mswindows_executable_type to nt.c.
12113         Moved compare_env to process-nt.c.
12114         ntproc.c will die, one day.
12115
12116         * ntproc.c (sys_spawnve):
12117         Account for win32_ -> mswindows_.
12118
12119         * process-nt.c:
12120         * process-nt.c (struct nt_process_data):
12121         * process-nt.c (ensure_console_window_exists):
12122         * process-nt.c (compare_env):
12123         * process-nt.c (nt_create_process):
12124         * process-nt.c (nt_kill_process_by_pid):
12125         * process-nt.c (syms_of_process_nt):
12126         * process-nt.c (vars_of_process_nt):
12127         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12128         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12129         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12130         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12131         Move compare_env here from ntproc.c.
12132
12133         * process.c (Fprocess_send_region):
12134         Takes an optional fourth argument, BUFFER, which should fix some
12135         problems with call-process.
12136
12137         * syscommctrl.h:
12138         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12139
12140         * syswindows.h:
12141         Move ICC_BAR_CLASSES to syscommctrl.h.
12142         Add preliminary macros for MSWindows/Mule.  More to come.
12143
12144         * unexnt.c:
12145         * unexnt.c (unexec):
12146         open_output_file moved to nt.c.
12147
12148
12149 2000-05-05  Andy Piper  <andy@xemacs.org>
12150
12151         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12152         instance from the frame cache also since GC may catch up too late
12153         to make frame deletion sane.
12154
12155 2000-05-04  Andy Piper  <andy@xemacs.org>
12156
12157         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12158         (x_finalize_image_instance): ungcpro on deletion.
12159
12160         * glyphs.c (image_instantiator_format_create): give pointers a
12161         query geometry method so that the geometry is at least set.
12162
12163         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12164         initialize layouts if using widgets.
12165
12166 2000-05-03  Andy Piper  <andy@xemacs.org>
12167
12168         * nt.c: remove bogus reference to sysmmsystem.h
12169
12170         * gui-x.c (popup_selection_callback): fix no selection abort.
12171
12172 2000-05-02  Andy Piper  <andy@xemacs.org>
12173
12174         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12175         (mswindows_widget_instantiate): ditto.
12176
12177         * glyphs-widget.c (initialize_widget_image_instance): initialize
12178         children correctly.
12179         (widget_instantiate): cope with children and items in the same
12180         instance.
12181
12182         * glyphs.c (mark_image_instance): cope with children as a first
12183         class member.
12184         (image_instance_equal): ditto.
12185         (image_instance_hash): ditto.
12186         (image_instance_changed): ditto.
12187
12188 2000-04-30  Andy Piper  <andy@xemacs.org>
12189
12190         * glyphs.c (subwindow_query_geometry): new function. Return some
12191         defaults.
12192         (subwindow_instantiate): don't assign dimensions if none have been
12193         given.
12194         (image_instantiator_format_create): add subwindow_query_geometry.
12195         (print_image_instance): cope with layouts as widgets.
12196
12197 2000-04-29  Andy Piper  <andy@xemacs.org>
12198
12199         * frame.c (delete_frame_internal): call
12200         free_frame_subwindow_instance_cache so that all subwindows are
12201         finalized before their parent.
12202         (mark_frame): remove subwindow_cachels.
12203         (Fmake_frame): remove subwindow_cachel manipulation.
12204         (allocate_frame_core): subwindow_instance_cache is a weak list.
12205         (delete_frame_internal): set subwindow_instance_cache to nil.
12206
12207         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12208         finalization safe.
12209         (mswindows_finalize_image_instance): use the device
12210         not the domain as the domain may have died already.
12211
12212         * glyphs-x.c (x_finalize_image_instance): ditto.
12213         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12214         HEIGHT.
12215
12216         * redisplay-output.c (redisplay_unmap_subwindows): update for
12217         subwindow instance cache as a weak list.
12218         (redisplay_unmap_subwindows_maybe): ditto.
12219         (redisplay_unmap_subwindows_except_us): ditto.
12220
12221         * glyphs.c (unmap_subwindow): error checking will check the domain
12222         so don't deal with it here. Don't use cachels anymore.
12223         (map_subwindow): ditto.
12224         (update_subwindow_cachel_data): remove old accessor names.
12225         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12226         (Fresize_subwindow): don't update cachel.
12227         (mark_subwindow_cachels):
12228         (update_subwindow_cachel_data):
12229         (add_subwindow_cachel):
12230         (get_subwindow_cachel_index):
12231         (update_subwindow_cachel):
12232         (reset_subwindow_cachels):
12233         (mark_subwindow_cachels_as_not_updated): deleted.
12234         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12235         subwindow instance to the frame cache.
12236         (find_matching_subwindow): update for subwindow instance cache as
12237         a weak list.
12238         (update_widget_instances): ditto.
12239         (image_instance_type_to_mask):inlined.
12240         (free_frame_subwindow_instance_cache): new function. finalize all
12241         subwindows that are instantiated.
12242
12243         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12244         of cachel information.
12245         (IMAGE_INSTANCE_DISPLAY_X):
12246         (IMAGE_INSTANCE_DISPLAY_Y):
12247         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12248         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12249         (XIMAGE_INSTANCE_DISPLAY_X):
12250         (XIMAGE_INSTANCE_DISPLAY_Y):
12251         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12252         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12253         remove subwindow_cachel structure and function references.
12254         (image_instance_type_to_mask): inline from glyphs.c
12255
12256         * redisplay.c (redisplay_frame): remove subwindow_cachel
12257         references.
12258
12259         * frame.h (struct frame): remove subwindow_cachels.
12260         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12261
12262         * frameslots.h: add subwindow_instance_cache.
12263
12264         * window.c (replace_window): check subwindow cache of replacement.
12265         (window_unmap_subwindows_cache_mapper):
12266         (window_unmap_subwindows): new functions. Unmap all subwindows
12267         cached on this window.
12268         (mark_window_as_deleted): unmap all subwindows.
12269
12270 2000-04-27  Andy Piper  <andy@xemacs.org>
12271
12272         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12273
12274         * glyphs-widget.c (widget_layout): return something.
12275         (layout_layout): return something. Fail if not initialized.
12276         (layout_query_geometry): ditto.
12277         (image_instantiator_native_layout): new function. Initialized the
12278         native layout type.
12279         (widget_instantiate): don't do layout stuff here.
12280
12281         * glyphs.c (instantiate_image_instantiator): reorded calling or
12282         instantiate and post_instantiate with layout in between.
12283         (image_instance_layout): be more selective about deciding whether
12284         the layout has been done or not.
12285
12286         * glyphs.h (struct image_instantiator_methods): return a value
12287         from layout_method.
12288
12289 2000-04-26  Andy Piper  <andy@xemacs.org>
12290
12291         * glyphs.c (allocate_image_instance): make initial width and
12292         height unspecified. Set initialized to 0.
12293
12294         * syscommctrl.h new file. Encapsulates commctrl.h.
12295
12296         * syswindows.h new file. Encapsulates windows.h.
12297
12298         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12299         * nt.c: ditto.
12300         * console-msw.h: ditto.
12301
12302         * redisplay-tty.c (tty_output_display_block): remove layout references.
12303
12304         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12305         window handle rather than just the frame.
12306
12307         * glyphs.c (mark_image_instance): remove layout references.
12308         (print_image_instance): ditto.
12309         (image_instance_equal): ditto.
12310         (image_instance_hash): ditto.
12311         (decode_image_instance_type): ditto.
12312         (encode_image_instance_type): ditto.
12313         (image_instantiate): ditto.
12314         (allocate_glyph): ditto.
12315         (Fimage_instance_height): ditto.
12316         (Fimage_instance_width): ditto.
12317         (update_subwindow): ditto.
12318
12319         * redisplay-x.c (x_output_display_block): recode for layouts as
12320         widgets.
12321
12322         * redisplay-output.c (redisplay_output_layout): recode for layouts
12323         as widgets.
12324         (compare_runes): remove layout references.
12325
12326         * redisplay-msw.c (mswindows_output_display_block): recode for
12327         layouts as widgets.
12328
12329         * glyphs-widget.c (image_instantiator_layout): remove
12330         layout_possible_dest_types.
12331         (layout_possible_dest_types): deleted.
12332
12333         * glyphs.h (image_instance_type): remove layout references.
12334         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12335         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12336         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12337
12338 2000-04-25  Andy Piper  <andy@xemacs.org>
12339
12340         * glyphs-widget.c (image_instantiator_buttons):
12341         (image_instantiator_edit_fields):
12342         (image_instantiator_combo_box):
12343         (image_instantiator_scrollbar):
12344         (image_instantiator_progress_guage):
12345         (image_instantiator_tree_view):
12346         (image_instantiator_tab_control):
12347         (image_instantiator_labels):
12348         (image_instantiator_layout): call default post_instantiate method.
12349         (widget_post_instantiate): new function. Simply lays out the
12350         widgets.
12351
12352         * glyphs.h (struct image_instantiator_methods): add
12353         post_instantiate method.
12354
12355         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12356         method calls.
12357
12358 2000-04-23  Andy Piper  <andy@xemacs.org>
12359
12360         * glyphs.h (struct image_instantiator_methods): add
12361         decode_domain_method.
12362         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12363         derived from the domain.
12364         (IMAGE_INSTANCE_FRAME): new accessor.
12365         (XIMAGE_INSTANCE_FRAME): ditto.
12366
12367         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12368         instead of _SUBWINDOW_FRAME.
12369         (finalize_image_instance): ditto.
12370         (Fimage_instance_foreground): ditto.
12371         (Fimage_instance_background): ditto.
12372         (image_instantiate): ditto.
12373         (update_subwindow_cachel): ditto.
12374         (update_subwindow): ditto.
12375         (unmap_subwindow): ditto.
12376         (map_subwindow): ditto
12377         (subwindow_instantiate): ditto.
12378         * glyphs-msw.c (mswindows_update_widget): ditto.
12379         (mswindows_progress_gauge_instantiate): ditto.
12380         (mswindows_tab_control_update): ditto.
12381         * glyphs-x.c (x_update_widget): ditto.
12382         (x_widget_instantiate): ditto.
12383         (x_tab_control_instantiate): ditto.
12384         (x_tab_control_update): ditto.
12385         * event-msw.c (mswindows_wnd_proc): ditto
12386
12387         * glyphs-widget.c (image_instantiator_layout): use
12388         subwindow_decode_domain.
12389         (image_instantiator_buttons): ditto.
12390         (image_instantiator_edit_fields): ditto.
12391         (image_instantiator_combo_box): ditto.
12392         (image_instantiator_scrollbar): ditto.
12393         (image_instantiator_progress_guage): ditto.
12394         (image_instantiator_tree_view): ditto.
12395         (image_instantiator_tab_control): ditto.
12396         (image_instantiator_labels): ditto.
12397         (image_instantiator_layout): ditto.
12398
12399         * glyphs.c: add instance error checking to many functions.
12400         (instantiate_image_instantiator): decode device from cache_domain.
12401         (image_instantiate): partially rewrite by using
12402         decode_image_instantiator_domain to determine what domain the
12403         instance needs to be cached in.
12404         (decode_image_instantiator_domain): new function. Determine what
12405         domain the image needs to be cached in.
12406         (check_window_subwindow_cache): new error checking function.
12407         (check_instance_cache_mapper): ditto.
12408         (check_image_instance_structure): ditto.
12409         (subwindow_decode_domain): new function. Encodes a window as a
12410         subwindow's cache domain.
12411         (image_instantiator_format_create): use it for text and
12412         subwindows.
12413
12414 2000-04-21  Andy Piper  <andy@xemacs.org>
12415
12416         * glyphs.c (image_instance_device): new function.
12417         (image_instance_frame): new function.
12418         (image_instance_window): new function.
12419         (image_instance_live_p): new function.
12420
12421         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12422         cache to nil.
12423
12424         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12425         (IMAGE_INSTANCE_DOMAIN): new accessor.
12426         (XIMAGE_INSTANCE_DOMAIN): ditto.
12427
12428         * glyphs-x.c (x_finalize_image_instance): device->domain.
12429
12430         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12431         (mswindows_finalize_image_instance): ditto.
12432
12433         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12434         (gif_instantiate): ditto.
12435         (png_instantiate): ditto.
12436         (tiff_instantiate): ditto.
12437
12438         * glyphs.c (instantiate_image_instantiator): use domain rather
12439         than device.
12440         (mark_image_instance): device -> domain.
12441         (print_image_instance): ditto.
12442         (finalize_image_instance): ditto.
12443         (image_instance_equal): ditto.
12444         (allocate_image_instance): ditto.
12445         (Fcolorize_image_instance): ditto.
12446         (query_string_geometry): ditto.
12447         (image_instantiate): ditto
12448         (query_string_font): ditto.
12449         (image_instantiate): ditto.
12450         (update_subwindow): ditto.
12451         (unmap_subwindow): ditto.
12452         (map_subwindow): ditto.
12453         (subwindow_instantiate): ditto.
12454
12455         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12456         (DOMAIN_FRAME): ditto.
12457         (DOMAIN_WINDOW): ditto.
12458         (DOMAIN_LIVE_P): ditto.
12459         (XDOMAIN_DEVICE): ditto.
12460         (XDOMAIN_FRAME): ditto.
12461         (XDOMAIN_WINDOW): ditto.
12462
12463         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12464         a valid specifier domain.
12465
12466 2000-04-19  Andy Piper  <andy@xemacs.org>
12467
12468         * glyphs-widget.c (syms_of_glyphs_widget): remove
12469         widget-callback-current-channel.
12470         (vars_of_glyphs_widget): ditto.
12471         * glyphs.h: ditto
12472
12473         * gui.c (get_gui_callback): revert to previous behaviour.
12474
12475 2000-04-18  Andy Piper  <andy@xemacs.org>
12476
12477         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12478         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12479         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12480
12481         * glyphs.c (image_instance_equal): add margin_width.
12482         (image_instance_hash): ditto.
12483
12484         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12485         (layout_query_geometry): ditto.
12486         (layout_layout): ditto.
12487         (syms_of_glyphs_widget): add margin-width.
12488         (image_instantiator_layout): allow margin-width.
12489
12490         * glyphs.c (update_widget_instances): make a normal function.
12491         (syms_of_glyphs): remove Qupdate_widget_instances.
12492         * glyphs.h: ditto.
12493
12494         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12495         so that we don't corrupt ideas about the last event or
12496         command. Remove widget-callback-current-channel fiddling.
12497         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12498
12499 2000-05-01  Martin Buchholz <martin@xemacs.org>
12500
12501         * XEmacs 21.2.33 is released.
12502
12503 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12504
12505         * make-src-depend: Allow dots in header file name.
12506
12507 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12508
12509         * mule-charset.h (struct charset_lookup): Add
12510         next_allocated_1_byte_leading_byte and
12511         next_allocated_2_byte_leading_byte.
12512         * mule-charset.c: Move above two variables so that those values
12513         will be dumped.
12514
12515 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12516
12517         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12518         when string length is zero.
12519         (find_charsets_in_emchar_string): Ditto.
12520
12521 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12522
12523         * lisp.h: extern Qdialog and Qmenubar.
12524
12525         * gui-x.c: added events.h.
12526                 also fixed typo which made the file uncompilable.
12527
12528         * general.c: Added Qmenubar and Qdialog
12529
12530 2000-04-28  Ben Wing  <ben@xemacs.org>
12531
12532         * frame-msw.c (mswindows_init_frame_1):
12533         * frame-msw.c (mswindows_mark_frame):
12534         * event-msw.c (mswindows_enqueue_dispatch_event):
12535         * console-msw.h:
12536         * console-msw.h (struct mswindows_frame):
12537         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12538         there are now three hash tables for callbacks.
12539         mswindows_enqueue_dispatch_event is no longer static.
12540
12541         * dialog-x.c (maybe_run_dbox_text_callback):
12542         * dialog-x.c (dbox_descriptor_to_widget_value):
12543         switch to new cons3 form for callbacks.
12544
12545         * glyphs-msw.c (mswindows_register_gui_item):
12546         * glyphs-msw.c (mswindows_widget_instantiate):
12547         * glyphs-msw.c (add_tree_item):
12548         * glyphs-msw.c (add_tab_item):
12549         new image instance parameter, so it can be passed to callback-ex.
12550         respect :callback-ex as well as :callback.
12551
12552         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12553         add :callback-ex.
12554
12555         * glyphs.c (print_image_instance):
12556         prettify, e.g. now prints widget type.
12557
12558         * gui-x.h:
12559         certain funs have new image instance parameter.
12560
12561         * gui.c:
12562         * gui.c (get_gui_callback):
12563         * gui.c (gui_item_add_keyval_pair):
12564         * gui.c (gui_item_init):
12565         * gui.c (gui_add_item_keywords_to_plist):
12566         * gui.c (mark_gui_item):
12567         * gui.c (gui_item_hash):
12568         * gui.c (gui_item_equal):
12569         * gui.c (copy_gui_item):
12570         * gui.c (syms_of_gui):
12571         recognize callback-ex in a number of places.
12572         also, fix the annoying "can't get out of yes-no dialog" bug.
12573
12574         * gui.h:
12575         * gui.h (struct Lisp_Gui_Item):
12576         recognize callback-ex in a number of places.
12577
12578         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12579         new parameter in button_item_to_widget_value.
12580
12581         * glyphs-x.c (x_update_widget):
12582         * glyphs-x.c (x_button_instantiate):
12583         * glyphs-x.c (x_button_update):
12584         * glyphs-x.c (x_progress_gauge_instantiate):
12585         * glyphs-x.c (x_edit_field_instantiate):
12586         * glyphs-x.c (x_combo_box_instantiate):
12587         * glyphs-x.c (x_tab_control_instantiate):
12588         * glyphs-x.c (x_label_instantiate):
12589         new image instance parameter in various places.
12590
12591         * event-Xt.c:
12592         * event-Xt.c (enqueue_Xt_dispatch_event):
12593         this fun gets exported.
12594
12595         * gui-msw.c:
12596         * gui-msw.c (mswindows_handle_gui_wm_command):
12597         handle both :callback and :callback-ex, and generate our own
12598         event because it's one of the callback-ex arguments.
12599
12600         * gui-x.c:
12601         * gui-x.c (popup_selection_callback):
12602         handle both :callback and :callback-ex, and generate our own
12603         event because it's one of the callback-ex arguments.
12604         * gui-x.c (button_item_to_widget_value):
12605         * gui-x.c (gui_items_to_widget_values_1):
12606         * gui-x.c (gui_item_children_to_widget_values):
12607         * gui-x.c (gui_items_to_widget_values):
12608         new image instance parameter in various places.
12609
12610         * fns.c (Freplace_list):
12611         fix small typo in doc string.
12612
12613         * lisp.h:
12614         declare enqueue_Xt_dispatch_event.
12615
12616 2000-04-28  Ben Wing  <ben@xemacs.org>
12617
12618         * buffer.c:
12619         * buffer.c (Frecord_buffer):
12620         * buffer.c (syms_of_buffer):
12621         delete record-buffer-hook.
12622
12623         * fns.c:
12624         * fns.c (Freplace_list):
12625         * fns.c (syms_of_fns):
12626         new primitive replace-list.
12627
12628         * frameslots.h:
12629         slot for old buffer-alist.
12630
12631         * lisp.h:
12632         exfun replace-list.
12633
12634         * redisplay.c:
12635         * redisplay.c (redisplay_frame):
12636         * redisplay.c (syms_of_redisplay):
12637         * redisplay.c (vars_of_redisplay):
12638         new hook buffer-list-changed-hook.
12639         call it.
12640
12641 2000-04-27  Ben Wing  <ben@xemacs.org>
12642
12643         * extents.h: extern in_modeline_generation.
12644
12645         * redisplay.c (generate_formatted_string_db): set
12646         in_modeline_generation.
12647
12648         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12649         flags if in modeline generation.  otherwise frame-modified-tick
12650         is ticked far too often.
12651         Declare in_modeline_generation.
12652
12653 2000-04-26  Ben Wing  <ben@xemacs.org>
12654
12655         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12656         option.
12657         (vars_of_emacs): add quick-build as an error-checking option.
12658         A bit kludgy, but there doesn't seem much point in creating
12659         a real var for this.
12660
12661         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12662
12663 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12664
12665         * redisplay.h (struct display_line): Add a new variable,
12666         line_continuation.
12667
12668         * redisplay.c (create_text_block): Set dl->line_continuation if
12669         the line continues.
12670         (create_string_text_block): Ditto.
12671         (regenerate_window_incrementally): Use line_continuation instead
12672         of searching continuation glyph.
12673         (add_margin_runes): Call add_glyph_rune.
12674         (add_glyph_rune): Handle margin glyph.
12675
12676 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12677
12678         * filelock.c (fill_in_lock_file_name):
12679         ANSIfy.
12680         Check for IS_ANY_SEP instead of '/'.
12681         (lock_file_1):
12682         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12683         Never check errno without first seeing that system call failed.
12684         (unlock_file): Add GCPRO.
12685         (Flock_buffer): Fix docstring.
12686         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12687
12688 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12689
12690         * sysdep.c (get_pty_max_bytes):
12691         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12692         strings longer than 252 bytes.
12693
12694         * md5.c: Unconditionally include ANSI header <limits.h>
12695
12696         * glyphs-x.c (convert_EImage_to_XImage):
12697         * lisp-union.h (union Lisp_Object):
12698         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12699
12700 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12701
12702         * filelock.c (current_lock_owner): Remove unused variable o, p.
12703
12704 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12705
12706         * callint.c: Remove multiply defined symbol Qlet
12707         (syms_of_callint): ditto.
12708
12709 2000-04-14  Andy Piper  <andy@xemacs.org>
12710
12711         * general.c (syms_of_general): add last-command, this-command, let
12712         and funcall.
12713
12714         * lisp.h: declare various symbols.
12715
12716         * glyphs.h: declare Qwidget_callback_current_channel;
12717
12718         * glyphs-widget.c (syms_of_glyphs_widget): add
12719         Qgui_callback_current_channel.
12720         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12721
12722         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12723         widget-callback-current-channel when invoking the interactive
12724         arg. Also bind last-command and next-command when invoking the
12725         widget updates.
12726         * gui-x.c (popup_selection_callback): ditto.
12727
12728         * gui.c (get_gui_callback): massage args so that we are always
12729         calling eval. This allows us to add our own variable bindings
12730         outside.
12731
12732         * glyphs-x.c (x_button_instantiate): use
12733         gui_items_to_widget_values since this is GC safe.
12734         (x_progress_gauge_instantiate): ditto.
12735         (x_edit_field_instantiate): ditto.
12736         (x_label_instantiate): ditto.
12737
12738         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12739         (emacs_Xt_event_widget_focus_out): new function
12740         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12741         focus.
12742         (emacs_Xt_event_add_widget_actions): new function. add focus
12743         functions as actions.
12744         (init_event_Xt_late): use it.
12745
12746 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12747
12748         * event-stream.c (Fdispatch_event): Doc fix.
12749
12750 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12751
12752         * postgresql.c: Remove all references to PQsetenv*.
12753
12754         * postgresql.h: Remove references to PGsetenvHandler object.
12755         * lrecord.h (lrecord_type): Ditto.
12756
12757 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12758
12759         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12760         real_heigh and real_width members, and accessor macros for these.
12761
12762         * glyphs-msw.c (init_image_instance_geometry): New function.
12763         (init_image_instance_from_dibitmap): Use it.
12764         (mswindows_resource_instantiate): Use it.
12765         (init_image_instance_from_xbm_inline): Use it.
12766         (mswindows_initialize_image_instance_mask): Use real bitmap
12767         geometry.
12768         (mswindows_create_resized_bitmap): Ditto.
12769         (mswindows_create_resized_mask): Ditto.
12770
12771         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12772         and bitmap to their surface size.
12773
12774 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12775
12776         * process-unix.c (unix_send_process): Guard against process MIA
12777         after Faccept_process_output.
12778
12779 2000-04-11  Ben Wing  <ben@xemacs.org>
12780
12781         * eval.c (unbind_to_hairy): fix brokenness introduced by
12782         nanosecond speed improvements.
12783
12784 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12785
12786         * sunplay.c (init_device): To play sounds correctly, the device
12787         apparently needs to be initialized at least once by XEmacs.  Make
12788         it so.
12789
12790 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12791
12792         * redisplay.c (add_margin_runes): Add text image glyph
12793           handling.
12794
12795 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12796
12797         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12798         gcc is newer than 2.5.
12799
12800 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12801
12802         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12803
12804         * fns.c (size_bit_vector):
12805         * alloc.c (size_vector):
12806         (make_vector_internal):
12807         (make_bit_vector_internal):
12808         (sweep_bit_vectors_1):
12809         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12810
12811 2000-04-06  Andy Piper  <andy@xemacs.org>
12812
12813         * gmalloc.c (malloc): undo previous change.
12814         (malloc): ditto.
12815         (free): ditto.
12816         (realloc): ditto.
12817
12818 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12819
12820         * line-number.c (buffer_line_number): Revert to former version.
12821
12822 2000-04-06  Andy Piper  <andy@xemacs.org>
12823
12824         * gmalloc.c (malloc): add error checking.
12825         (malloc): ditto.
12826         (free): ditto.
12827         (realloc): ditto.
12828
12829         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12830         button_item_to_widget_value arg.
12831
12832         * glyphs-x.c (x_button_instantiate): add extra
12833         button_item_to_widget_value arg.
12834         (x_progress_gauge_instantiate): ditto.
12835         (x_edit_field_instantiate): ditto.
12836         (x_label_instantiate): ditto.
12837
12838         * gui-x.c (gui_items_to_widget_values_1): add extra
12839         button_item_to_widget_value arg.
12840         (button_item_to_widget_value): add extra menu_item_p arg.
12841
12842         * gui-x.h: change signature of button_item_to_widget_value.
12843
12844         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12845         button_item_to_widget_value arg.
12846
12847 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12848
12849         * buffer.h (struct buffer): auto_save_modified should be long.
12850
12851 2000-04-05  Andy Piper  <andy@xemacs.org>
12852
12853         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12854         type.
12855         (button_query_geometry): give a little more room so that athena
12856         buttons fit.
12857
12858 2000-04-05  Andy Piper  <andy@xemacs.org>
12859
12860         * faces.c (complex_vars_of_faces): The widget face should inherit
12861         the font of the gui-element face.
12862
12863 2000-04-04  Andy Piper  <andy@xemacs.org>
12864
12865         * glyphs-x.c (x_button_update): new function. unconditionally
12866         update a button's state when the instance is dirty.
12867         (image_instantiator_format_create_glyphs_x): add x_button_update.
12868         (x_widget_instantiate): remove old resize cruft.
12869
12870 2000-04-02  Andy Piper  <andy@xemacs.org>
12871
12872         * frame.c (change_frame_size_1): The introduction of gutters means
12873         that we need to allow 0 as a potential frame dimension.
12874
12875 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12876
12877         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12878         image glyph if allow_cursor.
12879         (add_hscroll_rune): Don't allow cursor to border glyph.
12880         (create_text_block): Ditto.
12881
12882         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12883         text not in buffer.
12884         (redisplay_output_layout): Call ensure_face_cachel_complete for
12885         text image glyph.
12886
12887
12888 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12889
12890         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12891
12892         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12893         not in buffer
12894
12895         * redisplay-tty.c (tty_output_display_block): Delete the routine
12896         for text image glyph
12897         * redisplay-x.c (x_output_display_block): ditto
12898         * redisplay-msw.c (mswindows_output_display_block): ditto
12899
12900 2000-02-02  Mike Alexander  <mta@arbortext.com>
12901
12902         Note: Some of these were committed by accident as part of other
12903         patches.
12904
12905         * regex.c (regex_compile): Avoid compiler warnings.
12906
12907         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12908
12909         * nt.h: Declare term_ntproc correctly.
12910
12911         * nt.c: Remove incorrect declaration of get_home_directory which
12912         is declared correctly in lisp.h.
12913
12914         * keymap.c (get_keyelt): Avoid compiler warnings.
12915         (raw_lookup_key_mapper): Avoid compiler warnings.
12916
12917         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12918
12919         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12920
12921         * filemode.c (mode_string): Avoid compiler warnings.
12922
12923         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12924         avoid warning.
12925
12926         * events-mod.h: Undef some things that winuser.h defines differently.
12927
12928         * data.c (Faset): Avoid compiler warnings.
12929
12930         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12931
12932 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12933
12934         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12935         Fall through to simple beep on error.
12936         Replace "extern" by real header file.
12937
12938         * linuxplay.c: Use nativesound.h
12939         (play_sound_data): Return error code. Be less verbose on error.
12940
12941         * sunplay.c: Use nativesound.h
12942         (play_sound_data): Return error code. Be less verbose on error.
12943
12944         * ntplay.c: Use nativesound.h
12945         (play_sound_data): Return fake error code
12946
12947         * sgiplay.c: Use nativesound.h
12948         (play_sound_data): Return error code
12949
12950         * hpplay.c: Use nativesound.h, partially implement
12951         new error code. Break compilation until finished.
12952         (play_sound_data): error code.
12953
12954         * nativesound.h (play_sound_file):
12955           (play_sound_data): Prototype in new header.
12956
12957 2000-03-31  Andy Piper  <andy@xemacs.org>
12958
12959         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12960         for toggle and radio buttons.
12961         (image_instantiator_buttons): use it.
12962
12963 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12964
12965         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12966         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12967         found. Scrollbar event probably belonged to some old config.
12968
12969 2000-03-31  Andy Piper  <andy@xemacs.org>
12970
12971         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12972         than 1.
12973         (initialize_widget_image_instance): default layout to
12974         LAYOUT_HORIZONTAL rather than 0.
12975         (widget_instantiate): reverse the item list at the end rather than
12976         every iteration.
12977         (layout_layout): re-code for the border text at the front of the
12978         item list rather than at the end.
12979         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12980         provided by the user.
12981         (widget_query_geometry): comment.
12982
12983 2000-03-30  Andy Piper  <andy@xemacs.org>
12984
12985         * glyphs-widget.c (image_instantiator_layout): allow standard
12986         widget keywords in layouts.
12987
12988         * gutter.c (output_gutter): cope with nil gutter contents.
12989
12990         * frame.c (Fset_frame_properties): add gutter docs.
12991
12992 2000-03-29  Andy Piper  <andy@xemacs.org>
12993
12994         * toolbar-msw.c (TBSTYLE_FLAT): add.
12995         (mswindows_output_toolbar): minor fiddling.
12996
12997 2000-03-29  Andy Piper  <andy@xemacs.org>
12998
12999         * gutter.c (output_gutter): force gutter size recalculation if
13000         what we are trying to display won't fit.
13001         (update_gutter_geometry): new function. A per-gutter version of
13002         update_frame_gutter_geometry.
13003         (update_frame_gutter_geometry): use it.
13004         (redraw_exposed_gutter): add extra debugging output.
13005
13006 2000-03-28  Mike Alexander  <mta@arbortext.com>
13007
13008         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13009         (pdump_file_unmap): Implement it on Windows
13010         (pdump_file_get): Save alocated handles for pdump_file_unmap
13011
13012 2000-03-28  Andy Piper  <andy@xemacs.org>
13013
13014         * gui.c (get_gui_callback): treat Quit specially.
13015
13016 2000-03-27  Andy Piper  <andy@xemacs.org>
13017
13018         * glyphs.c (image_instantiate): be careful to check in the same
13019         way we assigned.
13020
13021 2000-03-27  Didier Verna  <didier@xemacs.org>
13022
13023         * config.h.in: define the proper SMART_INCLUDE macro.
13024         handle renaming of `foo_h_path' to `foo_h_file'.
13025
13026         * database.c: ditto.
13027
13028         * emacs.c: ditto.
13029
13030         * linuxplay.c: ditto.
13031
13032         * terminfo.c: ditto.
13033
13034         * tooltalk.h: ditto.
13035
13036 2000-03-27  Andy Piper  <andy@xemacs.org>
13037
13038         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13039         gets updated whenever the face might have changed.
13040
13041 2000-03-26  Mike Alexander  <mta@arbortext.com>
13042
13043         * dumper.c (pdump_resource_free): Fix the comment.
13044
13045 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13046
13047         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13048
13049 2000-03-22  Mike Alexander  <mta@arbortext.com>
13050
13051         * dumper.c: Include Windows headers on Windows
13052         (pdump_resource_free): Add a body to the function
13053         (pdump_load): exe_name -> exe_path and add some comments.
13054
13055 2000-03-25  Mike Alexander  <mta@arbortext.com>
13056
13057         * gui.c (copy_gui_item_tree): Return a value in all cases
13058
13059 2000-03-21  Didier Verna  <didier@xemacs.org>
13060
13061         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13062         lwlib/config.h.in.
13063         (SMART_INCLUDE): new macro.
13064         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13065         the proper location.
13066
13067         * postgresql.c: use it.
13068
13069         * inline.c: ditto.
13070
13071 2000-03-24  Andy Piper  <andy@xemacs.org>
13072
13073         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13074         do this.
13075
13076 2000-03-24  Andy Piper  <andy@xemacs.org>
13077
13078         * redisplay-output.c (compare_runes): use image_instance_changed
13079         to detect changes. Do not depend on glyphs_changed, only depend on
13080         dirtiness.
13081          (redisplay_output_layout): add debug messages.
13082         (compare_runes): ditto.
13083
13084         * glyphs.h: declare new functions.
13085         (struct Lisp_Image_Instance): remove percent and associated
13086         accessors.
13087
13088         * gui.h: declare new copying functions.
13089
13090         * gui.c (copy_gui_item_tree): new function.
13091         (copy_gui_item): new function.
13092         (gui_item_id_hash): revert to standard hash.
13093         (gui_item_hash): ditto.
13094         (gui_item_hash_internal): deleted.
13095         (mark_gui_item): mark value.
13096         (gui_item_add_keyval_pair): add value.
13097         (gui_item_init): ditto.
13098         (gui_add_item_keywords_to_plist): ditto.
13099         (gui_item_equal): ditto.
13100         (syms_of_gui): add Q_value.
13101
13102         * glyphs-x.c (x_progress_gauge_update): use pending items and
13103         value for setting the state.
13104         (x_update_widget): don't set items from pending here.
13105
13106         * glyphs-widget.c (update_widget): update items here.
13107         (progress_gauge_set_property): use items for storing value. Put
13108         new value in pending items.
13109
13110         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13111         items for new value. Convert percent -> value.
13112         (mswindows_tab_control_update): don't update items here.
13113
13114         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13115         (update_subwindow): ditto.
13116         (image_instance_changed): new function. Compare hash values and
13117         past and present widget items.
13118         (image_instantiate): We more careful about where we instantiate
13119         things.
13120         (image_instantiate): add error checking.
13121
13122         * gutter.c (syms_of_gutter): use -hook.
13123
13124 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13125
13126         * console-tty.c (Fset_console_tty_input_coding_system): Use
13127         Qkeyboard.
13128         (Fset_console_tty_output_coding_system): Use Qterminal.
13129         (tty_init_console): Use Qkeyboard and Qterminal.
13130
13131 2000-03-21  Ben Wing  <ben@xemacs.org>
13132
13133         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13134         From Mike Alexander <mta@arbortext.com>.
13135
13136 2000-03-21  Ben Wing  <ben@xemacs.org>
13137
13138         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13139         process brokenness.  Proper implementation to come.
13140         * callproc.c:
13141         Rename call-process-internal to old-call-process-internal.
13142         New impl. in process.el.
13143
13144 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13145
13146         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13147
13148 2000-03-20  Andy Piper  <andy@xemacs.org>
13149
13150         * glyphs.c (full_list_hash): make hashes of the same elements in
13151         different orders return different values.
13152
13153 2000-03-20  Martin Buchholz <martin@xemacs.org>
13154
13155         * XEmacs 21.2.32 is released.
13156
13157 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13158
13159         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13160         (DFC_MALLOC_USE_CONVERTED_DATA):
13161         Add aliasing-safe casts to allow use with char* or unsigned char*
13162         lvalues.
13163
13164         * eldap.c (Fldap_open):
13165         (Fldap_search_basic):
13166         (Fldap_add):
13167         (Fldap_modify):
13168         Make C++-compilable.
13169         Make sure GCPRO'ed variables are initialized.
13170         Use temp variables to avoid repeated calls to Flength.
13171
13172 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13173
13174         * sysfile.h:
13175         Make sure PATH_MAX is always defined.
13176         Include limits.h for PATH_MAX.
13177         Deprecate use of MAXPATHLEN.
13178
13179 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13180
13181         * emacs.c: Add reinit_vars_of_fileio.
13182         * symsinit.h: Add reinit_vars_of_fileio.
13183         * fileio.c (reinit_vars_of_fileio): New.
13184         * fileio.c (Fmake_temp_name):
13185         Initialize temp_name random number from microseconds to make
13186         collisions even less likely.  Initialize always at process startup
13187         time.  (make-temp-name) used to return the same file name twice in
13188         a row when PDUMP.
13189         Random stylistic fiddling.
13190         Comment fixes.
13191
13192 2000-03-20  Andy Piper  <andy@xemacs.org>
13193
13194         * glyphs.c (image_instantiate): allow text glyphs to be
13195         instantiated in the minibuffer window.
13196
13197 2000-03-19  Andy Piper  <andy@xemacs.org>
13198
13199         * glyphs.c (image_instance_hash): be careful about which items we
13200         hash on.
13201
13202         * glyphs-widget.c (tab_control_set_property): record into pending
13203         items rather than the actual items.
13204
13205         * glyphs-x.c (x_update_widget): use pending items to update with.
13206
13207         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13208         to update with.
13209
13210         * glyphs.c (mark_image_instance): mark pending items.
13211
13212         * window.c (Fset_window_configuration): record the buffer.
13213         (Fselect_window): totally revert previous change which breaks many
13214         things.
13215
13216 2000-03-18  Andy Piper  <andy@xemacs.org>
13217
13218         * glyphs-msw.c (mswindows_tab_control_update): force selected
13219         item.
13220
13221         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13222         window domain cache, otherwise we get inconsistencies at
13223         startup. There is something fishy at startup which can lead to the
13224         minibuffer being the selected window when the gutter content is
13225         instantiated.
13226
13227         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13228         gcpros.
13229         (parse_gui_item_tree_children): ditto.
13230         (parse_gui_item_tree_item): ditto.
13231
13232         * glyphs.c (Fupdate_widget_instances): return something.
13233
13234 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13235
13236         * window.c (Fselect_window): Undo 2000-03-17 change.
13237
13238 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13239
13240         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13241         against v7.0 libraries.  Insta-coredump city until the postgres
13242         folks fix it.
13243
13244 2000-03-17  Andy Piper  <andy@xemacs.org>
13245
13246         * faces.c (complex_vars_of_faces): don't give the widget face an
13247         inherited background pixmap.
13248
13249         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13250         selected item.
13251
13252         * event-stream.c (Fdispatch_non_command_events): return something.
13253
13254         * gutter.c (output_gutter): use widget face.
13255         (clear_gutter): ditto.
13256
13257         * NEWS: adjust again.
13258
13259         * window.c (Fselect_window): make sure this runs to completion to
13260         avoid oddities with Fset_window_configuration.
13261         (Fcurrent_window_configuration): in general do not save the
13262         minibuffer as the selected window.
13263
13264         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13265
13266 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13267
13268         * emacs.c (Frunning_temacs_p): Revert previous patch.
13269         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13270
13271 2000-03-16  Andy Piper  <andy@xemacs.org>
13272
13273         * glyphs-x.c (x_tab_control_update): if no widget values then
13274         return.
13275
13276         * NEWS: update for new features.
13277
13278         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13279         synthetic event to the native system.
13280         (reinit_vars_of_event_Xt): set force_event_pending to
13281         emacs_Xt_force_event_pending.
13282
13283         * events.h (struct event_stream): add force_event_pending.
13284
13285         * specifier.c (recompute_one_cached_specifier_in_window): add
13286         comment.
13287
13288         * redisplay.c (redisplay_frame): don't call
13289         update_frame_subwindows. Reset subwindow cachels when
13290         subwindows_changed, removing this was an optimization too far.
13291
13292         * redisplay-output.c (compare_runes): reorganize so that we catch
13293         glyph changes when we want them. Set optimize_output when this
13294         would help layouts.
13295         (redisplay_output_layout): remove frame_really_changed, use
13296         optimize_output instead.
13297
13298         * redisplay-msw.c (mswindows_output_display_block): reset
13299         optimize_output after outputting a glyph.
13300         * redisplay-x.c (x_output_display_block): ditto.
13301         * redisplay-tty.c (tty_output_display_block): ditto.
13302
13303         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13304         functions.
13305         (gutter_specs_changed): do specific gutter positions.
13306         (top_gutter_specs_changed): new function. Only update the
13307         specified gutter specs.
13308         (bottom_gutter_specs_changed): ditto.
13309         (left_gutter_specs_changed): ditto.
13310         (right_gutter_specs_changed): ditto.
13311
13312         * gui.c (gui_item_hash_internal): new function, does a real hash.
13313         (gui_item_id_hash): use it.
13314         (gui_item_hash): hash the eval'ed gui_item.
13315
13316         * gui-x.c (popup_selection_callback): send an eval event to call
13317         Fupdate_widget_instances.
13318
13319         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13320         to call Fupdate_widget_instances.
13321
13322         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13323         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13324
13325         * glyphs.c: (update_frame_subwindows): deleted.
13326         (Fupdate_widget_instances): new function for updating the dirty
13327         state of widgets that might have changed.
13328         (syms_of_glyphs): add Qupdate_widget_instances.
13329         (full_list_hash): hash a list completely.
13330         (image_instance_hash): use it for items and properties.
13331
13332         * frame-msw.c (mswindows_size_frame_internal): remove unused
13333         variable.
13334
13335         * faces.h (struct face_cachel): fix comment.
13336
13337         * event-stream.c (Fdispatch_non_command_events): new
13338         function. Process non-command events, forcing an event cycle
13339         beforehand.
13340         (syms_of_event_stream): declare.
13341         (event_stream_force_event_pending): new function. Force an event
13342         on the native event queue so that an event cycle will occur next
13343         time we check.
13344
13345         * event-msw.c:
13346         (struct ntpipe_shove_stream):
13347         (mswindows_enqueue_dispatch_event):
13348         (mswindows_dequeue_dispatch_event):
13349         (mswindows_cancel_dispatch_event):
13350         (mswindows_pump_outstanding_events):
13351         (mswindows_drain_windows_queue):
13352         (mswindows_handle_paint):
13353         (mswindows_wnd_proc):
13354         (mswindows_key_to_emacs_keysym):
13355         (get_process_input_waitable):
13356         (emacs_mswindows_delete_stream_pair): re-indent file.
13357         (mswindows_need_event): do not process further fds if the windows
13358         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13359         fixes the 100% cpu problem.
13360         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13361
13362 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13363
13364         * alloc.h: New.
13365         * dumper.h: New.
13366         * dumper.c: New.
13367
13368         * emacs.c: Moved dump file searching to dumper.c.
13369         (Frunning_temacs_p): Fixed.
13370
13371         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13372         last_lrecord_type_index_assigned.
13373
13374 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13375
13376         * symsinit.h: Added reinit parameter to init_console_stream
13377         declaration.
13378
13379         * lisp.h: Added file parameter to pdump_load declaration.
13380
13381         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13382         support.  Added dump file searching.
13383
13384         * config.h.in: Added EMACS_PROGNAME.
13385
13386         * console-stream.c (init_console_stream): Fix reinitialisation
13387         when running from temacs.
13388
13389         * alloc.c (pdump): Add id support.
13390         (pdump_load): Add file parameter and signature/id support.
13391
13392         * Makefile.in.in: Add full pdump support.
13393
13394 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13395
13396         * postgresql.c: Update documentation to reflect latest code
13397         status.
13398         (print_result): Show tuple counts in printed representation when
13399         appropriate.
13400         (Fpq_put_nbytes): MULE-ize.
13401         (Fpq_get_line_async): Ditto.
13402
13403 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13404
13405         * postgresql.c (Fpq_lo_import): Fix return value.
13406         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13407
13408 2000-03-13  Ben Wing  <ben@xemacs.org>
13409
13410         * alloc.c (pdump_load):
13411         Fix compile warning under mswin.
13412
13413 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13414
13415         * postgresql.c: Mule-ization, bug fixes.
13416         Use PG_CODING to encapsulate coding system name changes.
13417         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13418         (pg-coding-system): Create.
13419
13420         (Fpq_conn_defaults): Mule-ize.
13421         (Fpq_connectdb): Mule-ize & bug fix.
13422         (Fpq_connect_start): Mule-ize.
13423         (Fpq_set_client_encoding): Mule-ize.
13424         (Fpq_finish): Document `DEAD' connection status.
13425         (Fpq_clear): Ditto.
13426         (Fpq_pgconn): Mule-ize.
13427         (Fpq_exec): Mule-ize & bug fix.
13428         (Fpq_send_query): Ditto.
13429         (Fpq_get_result): Ditto.
13430         (Fpq_res_status): Mule-ize.
13431         (Fpq_result_error_message): Mule-ize.
13432         (Fpq_ntuples): fix comments.
13433         (Fpq_fname): Mule-ize.
13434         (Fpq_fnumber): Mule-ize.
13435         (Fpq_ftype): fix comments.
13436         (Fpq_get_value): Mule-ize.
13437         (Fpq_cmd_status): Ditto.
13438         (Fpq_cmd_tuples): Ditto.
13439         (Fpq_oid_value): Ditto.
13440         (Fpq_notifies): Ditto.
13441         (Fpq_lo_import): Ditto.
13442         (Fpq_lo_export): Ditto.
13443         (Fpq_get_line): Ditto.
13444         (Fpq_put_line): Mule-ize and bug fix.
13445         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13446
13447 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13448
13449         * postgresql.c (vars_of_postgresql): Mule-ize.
13450         (Fpq_conn_defaults): Ditto.
13451
13452 2000-03-12  Ben Wing  <ben@xemacs.org>
13453
13454         * alloc.c (Fmake_byte_code):
13455         * alloc.c (debug_string_purity_print):
13456         * alloc.c (pdump_backtrace):
13457         * alloc.c (pdump_get_indirect_count):
13458         * alloc.c (pdump_register_sub):
13459         * alloc.c (pdump_register_object):
13460         * alloc.c (pdump_register_struct):
13461         * alloc.c (pdump_dump_data):
13462         * alloc.c (pdump_reloc_one):
13463         Minor cleanups.
13464
13465         * console-msw.c:
13466         * console-msw.c (GetConsoleHwnd):
13467         * console-msw.c (msw_hide_console):
13468         * console-msw.c (msw_show_console):
13469         * console-msw.c (msw_ensure_console_buffered):
13470         * console-msw.c (msw_output_console_string):
13471         * console-msw.c (console_type_create_mswindows):
13472
13473         a) Added functions to manipulate the console window for use with
13474         shell support.
13475
13476         b) Added support for writing text to the console, which is now
13477         used under Windows when xemacs is not being run non-interactively,
13478         to write text that would otherwise be destined for stdout because
13479         under these circumstances, text written to stdout tends to
13480         disappear and not be seen.
13481
13482         * console-msw.h:
13483         * event-Xt.c:
13484         * event-Xt.c (x_event_to_emacs_event):
13485         * event-Xt.c (describe_event_window):
13486         * events-mod.h (XEMACS_MOD_CONTROL):
13487         * events.c:
13488         * events.c (Fmake_event):
13489         * events.c (character_to_event):
13490         * events.c (event_to_character):
13491         * events.c (format_event_object):
13492         * events.c (Fevent_modifiers):
13493         * events.h:
13494         * events.h (struct key_data):
13495         * events.h (struct button_data):
13496         * events.h (struct misc_user_data):
13497         * frame-x.c (Fcde_start_drag_internal):
13498         * frame-x.c (Foffix_start_drag_internal):
13499         * gpmevent.c (Freceive_gpm_event):
13500         * keymap.c:
13501         * keymap.c (bucky_sym_to_bucky_bit):
13502         * keymap.c (control_meta_superify):
13503         * keymap.c (make_key_description):
13504         * keymap.c (keymap_lookup_directly):
13505         * keymap.c (create_bucky_submap):
13506         * keymap.c (keymap_store):
13507         * keymap.c (define_key_check_and_coerce_keysym):
13508         * keymap.c (define_key_parser):
13509         * keymap.c (define_key_alternate_name):
13510         * keymap.c (Fdefine_key):
13511         * keymap.c (raw_lookup_key_mapper):
13512         * keymap.c (struct map_keymap_unsorted_closure):
13513         * keymap.c (map_keymap_unsorted_mapper):
13514         * keymap.c (map_keymap_sort_predicate):
13515         * keymap.c (map_keymap_sorted):
13516         * keymap.c (accessible_keymaps_mapper_1):
13517         * keymap.c (where_is_recursive_mapper):
13518         * keymap.c (describe_map_mapper):
13519         * keymap.c (describe_map_sort_predicate):
13520         * keymap.c (describe_map):
13521         * keymap.c (complex_vars_of_keymap):
13522         And a number of other files, the key modifier preprocessor
13523         constants that xemacs uses have names that conflict with constants
13524         defined under MS Windows for other purposes, so they were renamed
13525         to begin with the prefix XEMACS_. The variables that hold such
13526         modifiers were changed to consistently be of type int to fix
13527         various compile warnings.
13528
13529         * console.c (complex_vars_of_console):
13530         * device.c:
13531         * device-msw.c:
13532         * device-msw.c (mswindows_finish_init_device):
13533         * device-msw.c (msw_get_workspace_coords):
13534         * device-msw.c (mswindows_device_system_metrics):
13535         and various other files, added support for a new
13536         device property called offset-workspace which returns the position
13537         of the upper left corner of the workspace area and goes along with
13538         the existing size-workspace property.
13539
13540         * dialog-msw.c:
13541         * dialog-msw.c (push_bufbyte_string_as_unicode):
13542         * dialog-msw.c (mswindows_popup_dialog_box):
13543         Added support for XEmacs-style accelerator specifications in
13544         button text.  Note: I didn't add support for this under X Windows,
13545         and somebody needs to do this.
13546
13547         * dialog.c:
13548         * dialog.c (Fpopup_dialog_box):
13549         Documented the support for accelerators that was just mentioned.
13550
13551         editfns.c (get_home_directory): Changed behavior under Windows
13552         when HOME not defined; former behavior was irretrievably broken.
13553
13554         * emacs.c:
13555         * emacs.c (main_1):
13556         * emacs.c (main):
13557         * minibuf.c (clear_echo_area_internal):
13558         * minibuf.c (echo_area_append):
13559         * print.c:
13560         * print.c (std_handle_out_external):
13561         * print.c (std_handle_out_va):
13562         * print.c (fatal):
13563         * print.c (write_string_to_stdio_stream):
13564         * print.c (output_string):
13565         * print.c (debug_print):
13566         * print.c (debug_backtrace):
13567         * print.c (debug_short_backtrace):
13568         Cleaned up the code that prints text to stdout so that this can be
13569         changed to output into a console window instead under MS Windows,
13570         as described above.
13571
13572         * eval.c:
13573         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13574         * eval.c (internal_catch):
13575         * eval.c (unwind_to_catch):
13576         * eval.c (throw_or_bomb_out):
13577         * eval.c (condition_case_1):
13578         * eval.c (signal_1):
13579         * eval.c (check_error_state_sanity):
13580         * eval.c (call_with_suspended_errors_1):
13581         * eval.c (call_with_suspended_errors):
13582         * eval.c (reinit_vars_of_eval):
13583         Added code to catch throw loops and check for a pesky bug that may
13584         be gone now.
13585
13586         * event-msw.c:
13587         * event-msw.c (key_needs_default_processing_p):
13588         * event-msw.c (mswindows_wnd_proc):
13589         * event-msw.c (mswindows_modifier_state):
13590         * event-msw.c (emacs_mswindows_quit_p):
13591         * event-msw.c (vars_of_event_mswindows):
13592         a) Added support for using the alt key to select menu items as is
13593         standard under MS Windows.  This is controlled using the variable
13594         menu-accelerator-enabled, just like under X Windows.  There is an
13595         option on the options menu to turn this support on.  I really
13596         think that it should be on by default under Windows, but I'm not
13597         going to make this change yet.
13598
13599         b)  Added support for dynamic display size changes under Windows.
13600
13601         * event-stream.c:
13602         * event-stream.c (maybe_echo_keys):
13603         * event-stream.c (Fnext_event):
13604         * event-stream.c (command_builder_find_leaf):
13605         * event-stream.c (lookup_command_event):
13606         * event-stream.c (execute_command_event):
13607         * event-stream.c (pre_command_hook):
13608         * event-stream.c (post_command_hook):
13609         * event-stream.c (syms_of_event_stream):
13610         * event-stream.c (vars_of_event_stream):
13611         * event-stream.c (complex_vars_of_event_stream):
13612         * events.h (struct command_builder):
13613
13614         a) Tried to clean up a little bit the horribly written x-specific
13615         accelerator code that crept into this file.  I moved this code
13616         into menubar-x.c where it belongs. I also needed to move the
13617         command builder structure into the file events.h because it is
13618         accessed directly by this accelerator code.  What I didn't do, but
13619         which should be done at some point, is to properly abstract this
13620         code using device methods instead of the kludgy way that it
13621         currently hooks into the event code.
13622
13623         b) Added the lisp variables this-command-properties and
13624         last-command- properties, which should be used to synchronize two
13625         adjacent commands in preference to playing games with the variable
13626         this-command, which is typically what happens.
13627
13628         c) Added some slightly nasty code to hook into the lisp support
13629         for shifted- motion-key selection.  This is actually necessary for
13630         somewhat complicated reasons, which are described in
13631         simple.el. (NB: I think the proper thing would be to have the code
13632         that calls the pre and post command hooks also call out to generic
13633         lisp functions in simple.el, where all built-in stuff could be
13634         added.  I will think about this more.)
13635
13636         * event-unixoid.c (poll_fds_for_input):
13637         * lread.c (readchar):
13638         * redisplay-tty.c (tty_clear_frame):
13639         * redisplay-x.c (x_get_gc):
13640         * signal.c (interrupt_signal):
13641         And a whole bunch of other files: fixed up places that printed
13642         directly to stderr to instead call the function stderr_out so that
13643         the changes I made under Windows work correctly.
13644
13645         * filemode.c (mode_string):
13646         Warning fixes.
13647
13648         * frame-msw.c:
13649         * frame-msw.c (mswindows_size_frame_internal):
13650         Fixed the computation of frame size and position to keep the frame
13651         within the workspace area, rather than within the physical
13652         dimensions of the screen, so that the frame doesn't overlap window
13653         manager decorations, such as the start menu and toolbar, typically
13654         at the bottom of the screen.
13655
13656         * frame.c (vars_of_frame):
13657         Changed the default frame title format under MS Windows to consist
13658         of buffername-XEmacs, which is standard under MS Windows.  I think
13659         it might be a good idea to change this everywhere because I think
13660         it is superior to the current frame title format, but this is the
13661         kind of change that is likely to cause some people to get annoyed,
13662         so I'm not making it.
13663
13664         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13665
13666         * gui-msw.c (mswindows_handle_gui_wm_command):
13667         Fixed compile warnings.
13668
13669         * gui-x.c:
13670         * gui-x.c (strdup_and_add_accel):
13671         * gui-x.c (button_item_to_widget_value):
13672         * gui-x.h:
13673         Added code to automatically put an accelerator onto the beginning
13674         of menu items that don't have one as is now the standard, and is
13675         described more later.  Also fixed things so that the menu item
13676         name can be an evaluated expression, again a new standard.
13677
13678         * gui.c:
13679         * gui.c (gui_item_add_keyval_pair):
13680         * gui.c (make_gui_item_from_keywords_internal):
13681         * gui.c (gui_add_item_keywords_to_plist):
13682         * gui.c (gui_item_accelerator):
13683         * gui.c (gui_name_accelerator):
13684         * gui.c (gui_item_included_p):
13685         * gui.c (gui_item_display_flush_left):
13686         * gui.c (gui_item_display_flush_right):
13687         * gui.c (parse_gui_item_tree_item):
13688         * gui.c (parse_gui_item_tree_children):
13689         * gui.c (parse_gui_item_tree_list):
13690         Mule-ized.  Cleanup.  GCPRO addition.
13691
13692         * line-number.c (buffer_line_number):
13693         * lisp.h:
13694         * lisp.h (EMACS_INT_MAX):
13695         Added the manifest constant EMACS_INT_MIN corresponding to the
13696         existing constant EMACS_INT_MAX.  This is partially to fix compile
13697         warnings under Windows, and partly for cleanliness.
13698
13699         * menubar-msw.c:
13700         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13701         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13702         * menubar-msw.c (displayable_menu_item):
13703         * menubar-msw.c (populate_menu_add_item):
13704         * menubar-msw.c (populate_or_checksum_helper):
13705         * menubar-msw.c (populate_menu):
13706         * menubar-msw.c (update_frame_menubar_maybe):
13707         * menubar-msw.c (prune_menubar):
13708         * menubar-msw.c (msw_char_is_accelerator):
13709         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13710         * menubar-msw.c (mswindows_handle_wm_command):
13711         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13712         * menubar-msw.c (mswindows_handle_wm_initmenu):
13713         * menubar-msw.c (mswindows_update_frame_menubars):
13714         * menubar-msw.c (mswindows_free_frame_menubars):
13715         * menubar-msw.c (mswindows_popup_menu):
13716         Fixed a bug in handling accelerators where an extra character
13717         would be displayed in the menu item.  Also generalized the
13718         function displayable_menu_item because it is now used by the
13719         dialog box code as well.  And finally, added code in the functions
13720         that create the menubar to extract a list of accelerators for the
13721         top level menubar, which is used in the event code to determine
13722         whether a particular alt-key combination should be used to invoke
13723         a menu item, or should be passed through to access the standard
13724         XEmacs keymap binding for this key combination.
13725
13726         Much needed GCPROing.
13727
13728         * menubar-x.c:
13729         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13730         * menubar-x.c (menu_item_descriptor_to_widget_value):
13731         * menubar-x.c (restore_in_menu_callback):
13732         * menubar-x.c (x_popup_menu):
13733         * menubar-x.c (menu_move_up):
13734         * menubar-x.c (menu_move_down):
13735         * menubar-x.c (menu_move_left):
13736         * menubar-x.c (menu_move_right):
13737         * menubar-x.c (menu_select_item):
13738         * menubar-x.c (command_builder_operate_menu_accelerator):
13739         * menubar-x.c (menu_accelerator_junk_on_error):
13740         * menubar-x.c (command_builder_find_menu_accelerator):
13741         * menubar-x.c (Faccelerate_menu):
13742         * menubar.h:
13743         Moved a whole bunch of code here that was previously in
13744         event-stream.c as described above.  There is also code connected
13745         to the new standard of adding an accelerator to the beginning of
13746         menu items that don't have one as described above and below.
13747
13748         * menubar.c:
13749         * menubar.c (menu_parse_submenu_keywords):
13750         * menubar.c (Fmenu_find_real_submenu):
13751         * menubar.c (Fnormalize_menu_item_name):
13752         * menubar.c (syms_of_menubar):
13753         * menubar.c (vars_of_menubar):
13754         * menubar.c (complex_vars_of_menubar):
13755
13756         a) Cleaned up a bunch of documentation and improved it.
13757
13758         b) XEmacs now automatically adds an accelerator onto the beginning
13759         of any menu items that don't have one.  I did this because there
13760         will inevitably be some menu items on the main menubar that don't
13761         have accelerators on them because the package that adds that
13762         particular menu item hasn't yet been fixed up to have accelerators
13763         in them and it looked rather strange to have some items with and
13764         some items without accelerators, especially since even in items
13765         without accelerators, you can, at least under windows, still
13766         access the item through an accelerator corresponding to the first
13767         character in the item's name.  If people don't like this behavior,
13768         I can add a variable to turn it off optionally, but I'm not sure
13769         this is a good idea because we really do need to have accelerators
13770         on all of the menu items, and if a package doesn't like the
13771         accelerators being put on the first character, then it should put
13772         the accelerators where they belong.
13773
13774         c) I made a behavior change, which is that the descriptor that
13775         specifies the text of the menu item, which formerly was just a
13776         string, can now also be an evaluated expression.  This makes this
13777         descriptor parallel with all of the others, which could also be
13778         evaluated expressions.  This also obviates the need for the
13779         keyword :label, which was previously listed in the documentation
13780         as unimplemented, and which was for the same purpose.
13781
13782         d) GCPROing.
13783
13784         * ntproc.c:
13785         * ntproc.c (new_child):
13786         * ntproc.c (sys_spawnve):
13787         * ntproc.c (find_child_console):
13788         * ntproc.c (sys_kill):
13789         Fixed compile warnings.  By the way, this file should really go
13790         away entirely, and this will happen as soon as Kirill makes his
13791         final round of process cleanups, which affect the function
13792         call-process.
13793
13794         * process-nt.c:
13795         * process-nt.c (struct nt_process_data):
13796         * process-nt.c (find_process_from_pid):
13797         * process-nt.c (send_signal_the_nt_way):
13798         * process-nt.c (enable_child_signals):
13799         * process-nt.c (find_child_console):
13800         * process-nt.c (send_signal_the_95_way):
13801         * process-nt.c (nt_finalize_process_data):
13802         * process-nt.c (ensure_console_window_exists):
13803         * process-nt.c (nt_create_process):
13804         * process-nt.c (nt_kill_child_process):
13805         * process-nt.c (nt_kill_process_by_pid):
13806         * process-nt.c (nt_open_network_stream):
13807         * process-nt.c (vars_of_process_nt):
13808         Copied over code from Emacs 20.5 to correctly send signals to sub-
13809         processes under Windows 95.  Also added code to automatically
13810         create and hide console window when a sub-process is created under
13811         Windows 95, which obviates the need for the separate runemacs.exe
13812         executable, and finally implemented some variables that were
13813         implemented in Emacs 20.5, but previously not in XEmacs.  These
13814         include mswindows- start-process-share-console and
13815         mswindows-start-process-inherit-error-mode. (Both of these only
13816         apply to Windows 95.)
13817
13818         * regex.c (regex_compile): Fixed a compile warning.
13819
13820         * select-msw.c:
13821         * select-msw.c (mswindows_own_selection):
13822         * select-msw.c (mswindows_get_foreign_selection):
13823         * select-msw.c (mswindows_disown_selection):
13824         * select-msw.c (console_type_create_select_mswindows):
13825         * select-msw.c (syms_of_select_mswindows):
13826         Cleaned up the file and implemented the device method
13827         selection_exists_p, which had accidentally been left out.  Also
13828         removed four lisp functions that were remnants from before the
13829         time when the selection code was properly device abstracted.
13830         These functions are no longer needed because there are generic
13831         equivalents, and because they were added recently and don't exist
13832         in FSF Emacs, I don't think there's any problem with just deleting
13833         them.
13834
13835         * sysdep.c:
13836         * sysdep.c (sys_subshell):
13837         Fixed a compile warning, although in this case there's probably
13838         something wrong with this code, and it ought to be looked into
13839         more thoroughly by somebody who understands it.
13840
13841         * window.c:
13842         * window.c (Fwindow_text_area_height):
13843         * window.c (Fwindow_width):
13844         * window.c (Fwindow_full_width):
13845         * window.c (Fwindow_pixel_width):
13846         * window.c (debug_print_window):
13847         * window.c (syms_of_window):
13848         Added functions window-text-area-height and window-full-width,
13849         which are functions for returning various width and height
13850         characteristics of a window. (One of these functions is necessary
13851         for making the file dialog box work correctly, and the other one
13852         was added for completeness.)  Also added a table to the
13853         documentation for window-height which describes the entire scheme
13854         for accessing width and height characteristics of a window.
13855
13856 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13857
13858         * nt.c (fstat): Added a comment for another problem with
13859         non-encapsulated [f]stat(), reported by Adrian Aichner
13860         <aichner@ecf.teradyne.com>.
13861
13862 2000-03-11  Andy Piper  <andy@xemacs.org>
13863
13864         * window.c (make_dummy_parent): initialize subwindow instance
13865         cache.
13866         (Fset_window_configuration): zero extent_modiff.
13867
13868 2000-03-10  Andy Piper  <andy@xemacs.org>
13869
13870         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13871         more changes can be triggered.
13872         (Fredisplay_frame): ditto.
13873         (Fredraw_device): ditto.
13874         (Fredisplay_device): ditto.
13875         (redisplay_frame): make non-static.
13876         (redisplay_frame): call update_frame_gutter_geometry outside of
13877         display proper.
13878
13879         * gutter.h: declare update_frame_gutter_geometry.
13880
13881         * redisplay.h: declare redisplay_frame.
13882
13883         * gutter.c (update_frame_gutter_geometry): move geometry changes
13884         in update_frame_gutters here. Geometry changes can only occur
13885         outside of redisplay.
13886         (update_frame_gutters): remove geometry change code.
13887         (Fredisplay_gutter_area): make sure that we are in display when we
13888         update and that we have flushed any size changes.
13889
13890 2000-03-11  Andy Piper  <andy@xemacs.org>
13891
13892         * alloc.c (pdump_dump_data): remove i & count shadows.
13893
13894 2000-02-27  Mike Alexander  <mta@arbortext.com>
13895
13896         * sysdep.h: Declare pdump_read_file
13897
13898         * sysdep.c (pdump_read_file): New function
13899
13900         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13901         dump data
13902
13903 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13904
13905         * lrecord.h: add `lrecord_type_pgsetenv'.
13906
13907 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13908
13909         * symsinit.h: declare (vars|syms)_of* functions.
13910         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13911
13912 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13913
13914         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13915
13916         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13917         GCCs.
13918
13919         * emacs.c (main_1): Call postgres initialization code.
13920
13921         * postgresql.h: New file.  PostgreSQL RDBMS support.
13922         * postgresql.c: New file.
13923
13924 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13925
13926         * redisplay-output.c (redisplay_output_display_block): Disable
13927         redundant code.
13928
13929 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13930
13931         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13932         (Fcanna_henkan_next): Ditto.
13933         (Fcanna_bunsetu_henkou): Ditto.
13934         (Fcanna_henkan_kakutei): Ditto.
13935         (Fcanna_henkan_end): Ditto.
13936         (Fcanna_henkan_quit): Ditto.
13937         (Fcanna_henkan_next): Set retun value correctly.
13938         (c2mu): Use unsigned char instead of signed char.
13939
13940 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13941
13942         * emacs.c (main_1): Always call syms_of_gui.
13943         * inline.c: include gui.h
13944
13945 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13946
13947         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13948         converted to Lisp_Object.
13949         (Qtop_bottom): New variable.
13950         (syms_of_redisplay): Initialize it.
13951         * redisplay.h (Vvisible_bell): Ditto.
13952         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13953         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13954         only flash top and bottom.
13955
13956 2000-03-08  Andy Piper  <andy@xemacs.org>
13957
13958         * buffer.c (Frename_buffer): record new buffer name the right way.
13959
13960 2000-03-08  Andy Piper  <andy@xemacs.org>
13961
13962         * glyphs.c (update_subwindow): increase hash depth so that widget
13963         items get picked up properly.
13964
13965         * redisplay-output.c (compare_runes): increase hash depth so that
13966         widget items get picked up properly.
13967
13968 2000-03-08  Andy Piper  <andy@xemacs.org>
13969
13970         * gutter.c (output_gutter): add some debug.
13971
13972         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13973         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13974         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13975
13976         * redisplay-output.c (compare_runes): use display_hash to
13977         determine if glyphs really are not the same.
13978
13979         * glyphs.c (update_subwindow): check display_hash to see if
13980         anything really needs to be updated. If not then do
13981         nothing. Record the display_hash after updating.
13982         (image_instance_equal): compare the image_instance face also.
13983
13984 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13985
13986         * redisplay.h: Fix comment style.
13987
13988 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13989
13990         * consle-msw.h (struct mswindows_frame):
13991         Added new member paint_pending to indicate whether a WM_PAINT
13992         magic event has been queued for this frame.
13993
13994         * event-msw.c (mswindows_drain_windows_queue):
13995         Don't queue a WM_PAINT magic event if one is already queued.
13996         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13997
13998         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13999
14000 2000-03-07  Didier Verna  <didier@xemacs.org>
14001
14002         * dired.c: #include `regex.h' after `sysfile.h'.
14003
14004 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14005
14006         * sound.c (init_nas_sound): Fix compiler warning.
14007
14008         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14009         (FREE_STRUCT_P):
14010         (MARK_STRUCT_AS_FREE):
14011         (MARK_STRUCT_AS_NOT_FREE):
14012         Make `gcc -fstrict-aliasing' work properly.
14013
14014 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14015
14016         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14017         (mswindows_delete_device): Call CoUnnitialize().
14018
14019         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14020
14021 2000-02-25    <CraigL@DyCon.com>
14022
14023         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14024         <errno.h>.
14025
14026         * sysdep.c: This extern declaration for environ prevents MinGW
14027         from finding the variable in CRTDLL.DLL.
14028
14029         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14030         windows headers.
14031         (SHGFI_EXETYPE): ..
14032         (WM_MOUSEWHEEL): ..
14033         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14034         definitions.
14035         (MMRESULT): Removed, now defined in cygwin's windows headers.
14036         (TIMECAPS): ..
14037         (uid_t,gid_t,pid_t,ssize_t): ..
14038         (_timeb): Removed, MinGW defines both _timeb and timeb.
14039         (HAVE_H_ERRNO): Added.
14040         (HAVE_TZNAME): Added, configure is not detecting this.
14041
14042 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14043
14044         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14045         * syntax.c (syntax_match): Use it.
14046
14047         * cmds.c: Import auto-fill-chars from FSF Emacs.
14048         (Vauto_fill_chars): New variables.
14049         (internal_self_insert): Check Vauto_fill_chars.
14050         (vars_of_cmds):
14051         Declare auto-fill-chars as a Lisp variable and initialize it.
14052
14053 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14054
14055         * fileio.c (Fmake_symbolic_link):
14056         (Ffile_symlink_p):
14057         Run handlers even if local machine doesn't have symlinks.
14058
14059 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14060
14061         * event-msw.c (mswindows_drain_windows_queue):
14062         Don't generate paint magic events for non-XEmacs frames.
14063
14064 2000-03-05  Andy Piper  <andy@xemacs.org>
14065
14066         * redisplay.c (redisplay_frame): generate_displayable_area and
14067         friends assumes that we are not in GC, we therefore have to make
14068         sure that this doesn't happen.
14069
14070         * gutter.c (calculate_gutter_size): generate_displayable_area
14071         assumes that we are not in GC, we therefore have to make sure that
14072         this doesn't happen.
14073
14074 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14075
14076         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14077
14078 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14079
14080         * redisplay.c (regenerate_window): Make sure we set a sane value
14081         for end_pos even if we jump out of the loop.
14082         (regenerate_window): Answer Ben's question :-).
14083         (start_end_of_last_line): Add may_error argument.
14084         (start_of_last_line):
14085         (end_of_last_line): Pass may_error = 0.
14086         (end_of_last_line_may_error): New function.
14087         (pixel_to_glyph_translation): Use it, so we don't crash in
14088         event_to_glyph.
14089
14090 2000-03-04  Andy Piper  <andy@xemacs.org>
14091
14092         * window.h (struct window): add gutter_extent_modiff.
14093
14094         * window.c (allocate_window): zero out gutter_extent_modiff.
14095
14096         * redisplay.h: declare sync_display_line_structs.
14097
14098         * redisplay.c (add_glyph_rune): add a better comment.
14099
14100         * redisplay-output.c (sync_display_line_structs): made non-static.
14101         (compare_runes): remove unneccesary glyph cachel access.
14102
14103         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14104
14105         * gutter.c (output_gutter): don't output the gutter if extent
14106         changes only involve extents in buffers. use 4 sets of display
14107         lines.
14108         (gutter_extent_signal_changed_region_maybe): new function. Mark
14109         extents in gutters as changed.
14110         (update_frame_gutters): use 4 sets of display lines.
14111         (reset_gutter_display_lines): ditto.
14112         (free_frame_gutters): ditto.
14113         (redraw_exposed_gutter): force output of gutters.
14114
14115         * frame.h (struct frame): add 4 sets of gutter display lines.
14116
14117         * extents.c: (extent_changed_for_redisplay): signal changes to
14118         extents in strings in the gutter as well as extents in buffers.
14119
14120 2000-03-02  Andy Piper  <andy@xemacs.org>
14121
14122         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14123
14124         * frame.c (Fmake_frame): make sure the gutters get initialized
14125         after the frame is visible.
14126         (set_frame_selected_window): re-arrange compilation macros a
14127         little.
14128         (change_frame_size_1): mark gutters changed.
14129
14130         * device.c (Fset_device_class): mark gutters changed.
14131
14132 2000-03-01  Andy Piper  <andy@xemacs.org>
14133
14134         * window.c (window_top_frame_gutter_height): deleted.
14135         (window_bottom_frame_gutter_height): ditto.
14136         (window_left_frame_gutter_height): ditto.
14137         (window_right_frame_gutter_height): ditto.
14138         (window_top_gutter_height): don't use them.
14139         (window_bottom_gutter_height): ditto.
14140         (window_left_gutter_width): ditto.
14141         (window_right_gutter_width): ditto.
14142         (Fsplit_window): ditto.
14143         (Fwindow_pixel_edges): don't use border dimensions here.
14144
14145         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14146         (update_scrollbar_instance): ditto.
14147
14148         * redisplay.c (generate_modeline): don't take gutters into account.
14149         (generate_modeline): ditto.
14150         (redisplay_frame): small gutter display optimization.
14151
14152         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14153
14154         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14155         gutters into account.
14156
14157         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14158         for window position and type.
14159
14160         * gutter.c (get_gutter_coords): fix for frame gutters.
14161         (update_frame_gutters): update frame geometry if the gutters have
14162         changed.
14163         (init_frame_gutters): record current gutter geometries.
14164
14165         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14166         var.
14167         (mswindows_widget_instantiate): ditto.
14168
14169         * frame.h (struct frame): add current_gutter_bounds.
14170
14171         * frame.c (change_frame_size_1): position window and minibuffer
14172         appropriately taking into account the frame gutters.
14173
14174         * frame-x.c: (x_initialize_frame_size): take into account the
14175         frame gutters.
14176
14177 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14178
14179         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14180
14181 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14182
14183         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14184
14185 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14186
14187         * file-coding.c (reset_decoding_stream): Clear previous
14188         detection state when autodetect.
14189
14190 2000-02-29  Didier Verna  <didier@xemacs.org>
14191
14192         * extents.c (set_extent_glyph_1): don't require extents to be
14193         attached.
14194
14195 2000-02-27  Andy Piper  <andy@xemacs.org>
14196
14197         * gutter.c (Fset_default_gutter_position): don't default left and
14198         right gutter visibility to t.
14199         (Fset_default_gutter_position): run
14200         default-gutter-position-changed-hook.
14201         (syms_of_gutter): add default-gutter-position-changed-hook.
14202
14203 2000-02-26  Andy Piper  <andy@xemacs.org>
14204
14205         * specifier.c (Fmake_specifier): add gutter references.
14206
14207         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14208
14209         * lisp.h: declare Fvalid_plist_p.
14210
14211         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14212         as changed.
14213         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14214         well as its visibility so that it gets reconstructed.
14215         (construct_window_gutter_spec): new function. Construct a string
14216         to be displayed in the gutter from a plist of strings. Take care
14217         to only use elements that are declared as visible.
14218         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14219         WINDOW_GUTTER.
14220         (gutter_validate): allow plists of strings in the specifier.
14221         (gutter_specs_changed): construct the real_gutter from the gutter
14222         specs using construct_window_gutter_spec.
14223         (gutter_visible_validate): gutter-visible is a new specifier type.
14224         (Fgutter_visible_specifier_p): new function for the new specifier.
14225         (syms_of_gutter): declare gutter-visible and
14226         Fgutter_visible_specifier_p.
14227         (specifier_type_create_gutter): intitalize new gutter-visible
14228         specifier.
14229         (reinit_specifier_type_create_gutter): ditto.
14230         (specifier_vars_of_gutter): use new specifier type for gutter
14231         visibility.
14232         (init_frame_gutters): construct real_gutter correctly.
14233         (Fgutter_specifier_p): beef up documentation.
14234         (Fgutter_size_specifier_p): ditto.
14235
14236         * winslots.h: add real_gutter slots.
14237
14238 2000-02-25  Andy Piper  <andy@xemacs.org>
14239
14240         * device-msw.c: Be kind to older cygwin versions. From Raymond
14241         Toy <toy@rtp.ericsson.se>.
14242
14243         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14244         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14245
14246 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14247
14248         * elhash.c (MARK_OBJ): Practice macro hygiene.
14249
14250 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14251
14252         * miscplay.c: s/__inline__/inline/g;
14253         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14254         (get_device_compdc): INLINE ==> static inline
14255         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14256         find -name '*.h' | \
14257         xargs global-replace \
14258         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14259
14260 2000-02-25  Andy Piper  <andy@xemacs.org>
14261
14262         * window.c (window_top_frame_gutter_height): new function.
14263         (window_top_window_gutter_height): ditto.
14264         (window_top_gutter_height): use them.
14265         (window_bottom_frame_gutter_height): new function.
14266         (window_bottom_window_gutter_height): ditto.
14267         (window_bottom_gutter_height): use them.
14268         (window_left_window_gutter_width): new function.
14269         (window_left_frame_gutter_width): ditto.
14270         (window_left_gutter_width): use them.
14271         (window_right_window_gutter_width): new function.
14272         (window_right_frame_gutter_width): ditto.
14273         (window_right_gutter_width): use them.
14274         (window_pixel_height): new function. calulate window pixel height
14275         with frame gutter involvement.
14276         (Fsplit_window): calculate new sizes taking frame gutters into
14277         account.
14278         (window_char_height_to_pixel_height): don't include frame gutters.
14279         (window_char_height): use window_pixel_height.
14280         (window_pixheight): rename from window_pixel_height.
14281         (change_window_height): use it.
14282         (window_pixel_height_to_char_height): don't include frame gutters.
14283         (window_char_width_to_pixel_width): ditto.
14284
14285 2000-02-25  Andy Piper  <andy@xemacs.org>
14286
14287         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14288         if it is.
14289
14290 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14291
14292         * alloc.c (staticpro):
14293         (staticpro_nodump):
14294         (dumpstruct):
14295         (dumpopaque):
14296         (pdump_wire):
14297         (pdump_wire_list):
14298         (compact_string_chars):
14299         (pdump_dump_wired):
14300         Convert:  if (foo) abort();  ==>  assert (! foo);
14301
14302         * eldap.c (Fldap_search_basic):
14303         (Fldap_add):
14304         (Fldap_modify):
14305         (Fldap_delete):
14306         Fix compiler warnings, and possible crashes if (random) return
14307         value were to be used.
14308
14309 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14310
14311         * device-msw.c: Workaround ResetDC failure.
14312
14313         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14314         applying a devmode.
14315
14316         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14317         (mswindows_text_width): Do not start printer page.
14318
14319         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14320
14321         * glyphs-msw.c: Added image methods to msprinter console and
14322         msprinter-specific image instantiation.
14323
14324 2000-02-20  Mike Alexander  <mta@arbortext.com>
14325
14326         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14327         to avoid crashes when selection-sets-clipboard is on
14328         (mswindows_own_selection): ditto
14329
14330 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14331
14332         * glyphs-msw.c:
14333         * redisplay-msw.c (get_frame_dc):
14334         (get_frame_compdc):
14335         * console-msw.h:
14336         * device-msw.c (mswindows_init_device):
14337         (mswindows_delete_device):
14338         (msprinter_init_device):
14339         (msprinter_delete_device):
14340         * frame-msw.c (mswindows_init_frame_1):
14341         (mswindows_delete_frame):
14342         (msprinter_init_frame_3):
14343         (msprinter_delete_frame): Move compatible DC to device object from
14344         frame object, for both mswindows and msprinter. Only one at a time
14345         is needed, it is a real waste to have one per frame!
14346
14347 2000-02-23  Andy Piper  <andy@xemacs.org>
14348
14349         * glyphs.c: add dynamic width and height elements.
14350         (image_instance_equal): ditto.
14351
14352         * glyphs-widget.c (widget_query_geometry): calculate width and
14353         height dynamically if required.
14354         (initialize_widget_image_instance): initialize dynamic dimensions.
14355         (widget_instantiate): pick-up dynamic dimensions.
14356
14357         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14358         dynamic determination. Add appropriate macros.
14359
14360         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14361         dimensions safe.
14362         (WINDOW_GUTTER_SIZE): ditto.
14363         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14364
14365         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14366         inline.
14367         (get_frame_dc): ditto.
14368
14369         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14370         here.
14371
14372 2000-02-23  Martin Buchholz <martin@xemacs.org>
14373
14374         * XEmacs 21.2.31 is released.
14375
14376 2000-02-22  Ben Wing <ben@xemacs.org>
14377
14378         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14379
14380 2000-02-22  Andy Piper  <andy@xemacs.org>
14381
14382         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14383
14384 2000-02-21  Mike Sperber <mike@xemacs.org>
14385
14386         * .dbxrc:
14387         * .gdbinit:
14388         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14389         variables.
14390
14391 2000-02-21  Mike Sperber <mike@xemacs.org>
14392
14393         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14394
14395 2000-02-21  Martin Buchholz <martin@xemacs.org>
14396
14397         * XEmacs 21.2.30 is released.
14398
14399 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14400
14401         Performance hacking.
14402         * *.c (syms_of_*):
14403         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14404         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14405         * emacs.c (main_1):
14406         * lisp.h (DEFUN):
14407         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14408         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14409         * symeval.h (DEFVAR_SYMVAL_FWD):
14410         * symbols.c (guts_of_unbound_marker):
14411         Make all c_readonly objects also lisp_readonly and marked for life.
14412         * lrecord.h (struct lrecord_implementation):
14413         Document flags better.
14414         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14415         * lrecord.h (DECLARE_LRECORD):
14416         * lrecord.h (XSETRECORD):
14417         * lrecord.h (RECORDP):
14418         * lrecord.h (RECORD_TYPEP):
14419         * lrecord.h (RECORD_MARKER): New.
14420         * lrecord.h (error_check_*):
14421         * lrecord.h (CONCHECK_NONRECORD):
14422         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14423         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14424         * lrecord.h (set_lheader_implementation):
14425         * lrecord.h (enum lrecord_type): New.
14426         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14427         * alloc.c (disksave_object_finalization_1):
14428         * alloc.c (mark_object):
14429         * alloc.c (lrecord_type_index):
14430         * alloc.c (tick_lcrecord_stats):
14431         * alloc.c (Fgarbage_collect):
14432         * alloc.c (init_alloc_once_early):
14433         * alloc.c (pdump_load):
14434         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14435         * alloc.c (lrecord_type_index): Delete.
14436         Make lisp object type indexes be constant.
14437           Makes (byte-compile) 5% faster.
14438         Put all marker functions into their own array.
14439           Makes (garbage-collect) 5% faster.
14440         Optimize SYMBOL_VALUE_MAGIC_P.
14441           Makes (byte-compile) 2-3% faster.
14442         * config.h.in (gc_checking_assert): New.
14443         * alloc.c: Use gc_checking_assert().
14444         * .dbxrc: Make compatible with new object type implementation.
14445         * .gdbinit: Make compatible with new object type implementation.
14446         * alloc.c: Delete all symbols defined only for debugging, such as
14447         Lisp_Type_Vector and lrecord_charset.
14448
14449 2000-02-21  Andy Piper  <andy@xemacs.org>
14450
14451         * gui-msw.c (Fmswindows_shell_execute): fix file location
14452         problems.
14453
14454         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14455         unshowing so that set_window_buffer doesn't undo
14456         kill_buffer_hook's hard work.
14457
14458         * glyphs-widget.c (tab_control_query_geometry): don't count the
14459         first item when calculating geometry.
14460
14461         * glyphs.c (map_subwindow): remove redundant code.
14462         (update_frame_subwindows): be more circumspect about when to
14463         update subwindows.
14464
14465         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14466         when items haven't changed. Update faces if faces have changed as
14467         well as just the widget face.
14468         (x_tab_control_update): Update faces if faces have changed as well
14469         as just the widget face.
14470
14471 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14472
14473         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14474         registration.
14475         (build_syscolor_string): Use mswindows_color_to_string to try to
14476         get a named color.
14477         (mswindows_device_system_metrics): Reverse the foreground and
14478         background colors so that they match the documentation.
14479
14480         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14481         they match the default Windows palette.
14482         (mswindows_color_to_string): New function.
14483
14484 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14485
14486         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14487
14488 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14489
14490         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14491         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14492
14493         * symbols.c (init_symbols_once_early): Removed obsolete
14494         DATA_SEG_BITS related kludge.
14495         (defvar_magic): Ditto.
14496
14497         * malloc.c: Removed obsolete DATA_SEG_BITS
14498         * ralloc.c: Ditto.
14499         * mem-limits.h: Ditto.
14500
14501         * Makefile.in.in: Removed obsolete HAVE_SHM
14502         * emacs.c: Ditto.
14503
14504 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14505
14506         *  device-msw.c (mswindows_delete_device): Free DDE string
14507         handles.
14508
14509 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14510
14511         * keymap.c (get_keyelt):
14512         * unexnt.c (unexec):
14513         * vm-limit.c (memory_warnings):
14514         * ntheap.c (recreate_heap):
14515         * ntheap.h (UNINIT_PTR):
14516         * select-msw.c (Fmswindows_get_clipboard):
14517         (Fmswindows_set_clipboard):
14518         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14519         * objects-msw.c:
14520         * menubar-msw.c (displayable_menu_item):
14521         * glyphs-msw.c:
14522         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14523         * sysdep.c (sys_subshell):
14524         * process-nt.c (nt_create_process):
14525         * nt.c (normalize_filename):
14526         (dostounix_filename):
14527         (unixtodos_filename):
14528         * ntproc.c (win32_executable_type):
14529         * ntplay.c (play_sound_data_1):
14530         (play_sound_file):
14531         * editfns.c (get_home_directory):
14532         * event-msw.c (struct winsock_stream):
14533         (mswindows_dde_callback):
14534         * device-msw.c (msprinter_init_device):
14535         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14536
14537         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14538         mswindows_clear_toolbar were swapped!
14539
14540         * objects-msw.c:(colormap_t):
14541         (fontmap_t):
14542         * emacs.c (struct standard_args): Fixed const jumble.
14543
14544         * glyphs-widget.c (update_widget): Fixed comparison notation.
14545
14546         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14547
14548         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14549         __declspec(noreturn) syntax.
14550
14551 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14552
14553         * eldap.c (Fldap_open):
14554         (Fldap_search_basic):
14555         (Fldap_add):
14556         (Fldap_modify):
14557         Use new coding system conversion macros.
14558
14559 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14560
14561         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14562
14563 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14564
14565         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14566         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14567
14568         * eldap.c (Qadd, Qreplace): New constant symbols
14569         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14570         interruptions by XEmacs signals
14571         Remove unnecessary calls to slow_down_interrupts and
14572         speed_up_interrupts
14573         (Fldap_search_basic): Renamed from Fldap_search_internal
14574         Added new optional parameter VERBOSE that triggers the
14575         display of progress messages
14576         Remove unnecessary calls to slow_down_interrupts and
14577         speed_up_interrupts
14578         LDAP result code analysis rewritten
14579         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14580         (syms_of_eldap): Define the new symbols and functions
14581
14582
14583 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14584
14585         * realpath.c: Determine PATH_MAX maximally portably.
14586
14587         * insdel.c (bytecount_to_charcount): Optimize.
14588         The function used to be optimized for entirely ASCII sequences.
14589         Now it is optimized for successive characters from the same
14590         charset.  This also wins big for _mostly_ ASCII sequences.
14591
14592         * fileio.c (Ffile_truename): convert return from realpath() using
14593         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14594         - Rewrite GCPROing slightly.
14595
14596         * sysdep.c (sys_open): Do filename conversion, like all other
14597         sys_* functions.  Fixes bug:
14598         (let ((file-name-coding-system 'iso-8859-2))
14599            (write-region x y latin2-name))
14600         ==> writes filename using internal encoding.
14601
14602 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14603
14604         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14605         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14606         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14607         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14608         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14609         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14610         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14611         (CONST_IF_NOT_DEBUG): Delete.
14612         * alloc.c (this_one_is_unmarkable): Delete.
14613         (mark_object): Don't check for this_one_is_unmarkable. Use the
14614         c_readonly flag instead.
14615         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14616
14617 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14618
14619         * event-msw.c (mswindows_drain_windows_queue):
14620         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14621         away redundant repaint events.
14622
14623 2000-02-17  Andy Piper  <andy@xemacs.org>
14624
14625         * redisplay.h: declare mark_redisplay_structs.
14626
14627         * redisplay.c (redisplay_window):
14628         (redisplay_frame): don't check subwindows_state_changed.
14629         (mark_redisplay): mark gutters here.
14630
14631         * glyphs.c: (instantiate_image_instantiator): always layout if we
14632         haven't done so already.
14633         (allocate_image_instance): don't mark as dirty.
14634         (update_subwindow): bind inhibit_quit.
14635
14636         * gutter.c (mark_gutters): new function.
14637
14638         * glyphs-x.c (x_update_widget): Always resize to get round a
14639         widget bug.
14640
14641         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14642         breaking absolutely everything.
14643
14644         * gutter.h: declare mark_gutters.
14645
14646 2000-02-16  Martin Buchholz <martin@xemacs.org>
14647
14648         * XEmacs 21.2.29 is released.
14649
14650 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14651
14652         * fns.c (size_bit_vector): Fix computation of the size.
14653
14654 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14655
14656         * *.[ch]: Change CONST to const globally.
14657         find -name '*.[ch]' | \
14658         xargs global-replace \
14659         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14660         - Remove vestigial references to CONST_IS_LOSING
14661
14662 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14663
14664         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14665         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14666         events instead of dispatching them directly.
14667         (mswindows_handle_paint): New function to do repainting.
14668         (mswindows_wnd_proc):
14669         (emacs_mswindows_handle_magic_event): Call above function.
14670
14671 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14672
14673         * objects-msw.c (mswindows_create_font_variant): Return the new
14674         font handle.
14675         (initialize_font_instance): Get font metrics from the underlined
14676         variant of the font to cope with the case where the underlined
14677         font has a bigger descent.
14678
14679 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14680
14681         * gui.c (gui_item_accelerator): Return the first underlined
14682         character in item name.
14683
14684 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14685
14686         * lisp.h: Added Qprinter.
14687
14688         * general.c (syms_of_general): Initialized it.
14689
14690         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14691         (get_frame_dc):
14692         (get_frame_compdc): Made inline.
14693
14694         * console.h (struct console_methods): Added eject_page method.
14695
14696         * frame.h: Added FRAME_DISPLAY_P and friends.
14697         Aligned backslahes in many macros in more readable fashion.
14698         Added page_number to struct frame, and an accessor macro
14699         for it.
14700
14701         * defice.h: Added DEVICE_DISPLAY_P and friends.
14702
14703         * device.c (Fdevice_printer_p): Used these.
14704
14705         * frame.c (allocate_frame_core): Initialize page number.
14706         (Fprint_job_page_number):
14707         (Fprint_job_eject_page): Implemented.
14708
14709         * frame-msw.c (msprinter_eject_page): Added method.
14710         (msprinter_start_page): Added.
14711
14712         * window.c (Fwindow_truncated_p): Fixed docstring.
14713         (Fwindow_last_line_visible_height): Implemented.
14714
14715 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14716
14717         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14718
14719 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14720
14721         * syntax.c (scan_words): Always advance at least one character.
14722
14723 2000-02-13  Andy Piper  <andy@xemacs.org>
14724
14725         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14726         to make sure the glyph is in the cachels.
14727
14728         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14729         global image instance flag.
14730         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14731         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14732
14733         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14734         (Fset_image_instance_property): mark layout as changed.
14735         (invalidate_glyph_geometry_maybe): mark layout as changed.
14736         (glyph_width): use new NEEDS_LAYOUT macro.
14737         (glyph_ascent): ditto.
14738         (glyph_descent): ditto.
14739         (glyph_height): ditto.
14740         (image_instance_layout): mark layout as clean after laying out.
14741         (update_subwindow): don't mark layout as clean here.
14742
14743         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14744         should no longer be needed.
14745
14746         * glyphs-x.c (x_update_widget): sanitize asserts.
14747         (x_finalize_image_instance): sanitize assignment to widgets.
14748
14749         * glyphs-widget.c (widget_instantiate): don't need to clear the
14750         layout flag here.
14751
14752 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14753
14754         * sysdep.c (getcwd): Use standard prototype.
14755         * sysdep.h (getcwd): Use standard prototype.
14756
14757         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14758         (sequence, start, end).
14759         Remove redundant type checking.
14760         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14761         view of `caller-protects') to avoid a crash where the real fix was
14762         found elsewhere.
14763
14764 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14765
14766         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14767
14768         * s/sol2.h: Remove feature macro initialization.
14769
14770         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14771         (vector_hash): New.  Code from internal_hash.
14772         * lrecord.h:
14773         Fix up allocation subsystem comments.
14774
14775         * config.h.in: Add __EXTENSIONS__ for Solaris.
14776
14777         * systime.h (EMACS_GETTIMEOFDAY): New.
14778         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14779         Remove Solaris-specific code.
14780         Use void* for the (ignored) second arg for gettimeofday().
14781
14782         * elhash.c (hash_table_hash): Implement it, finally.
14783         * elhash.c:  Use hashcode_t.
14784
14785         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14786         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14787
14788         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14789         * fns.c (size_bit_vector):
14790         * alloc.c (size_vector):
14791         (make_vector_internal):
14792         (make_bit_vector_internal):
14793         (sweep_bit_vectors_1):
14794         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14795
14796 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14797
14798         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14799         Include strings.h to avoid warnings for bzero and strcasecmp.
14800
14801 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14802
14803         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14804         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14805
14806         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14807         sequence.
14808
14809 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14810
14811         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14812         use a value field instead.
14813         (symbol_value_forward_forward): Use value field.
14814         (DEFVAR_SYMVAL_FWD): Use value field.
14815         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14816         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14817         (DEFVAR_CONST_INT): Ditto.
14818         (DEFVAR_BOOL): Ditto.
14819         (DEFVAR_CONST_BOOL): Ditto.
14820         (DEFVAR_INT_MAGIC): Ditto.
14821         (DEFVAR_BOOL_MAGIC): Ditto.
14822
14823         * symbols.c (guts_of_unbound_marker): Use value field.
14824         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14825         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14826
14827         * lisp.h: Declare dumpopaque and noninteractive1.
14828
14829         * alloc.c (dumpopaque): Added.
14830         (pdump_dump_opaquevec): Added.
14831         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14832         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14833         noninteractive.
14834
14835 2000-02-10  Andy Piper  <andy@xemacs.org>
14836
14837         * glyphs.c (image_instance_layout): if the size changes, mark it
14838         as such.
14839
14840         * redisplay-output.c (redisplay_output_layout): Update the
14841         subwindow here.
14842         (redisplay_output_subwindow): ditto.
14843
14844         * glyphs.c (update_subwindow): make sure we reset flags for
14845         layouts as well as everything else.
14846
14847         * glyphs-widget.c (layout_layout): don't need to set the instances
14848         dimensions here.
14849
14850 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14851
14852         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14853         not HAVE_DLOPEN, which is a lower-level thing.
14854
14855         * .cvsignore: Ignore gmon.out
14856
14857 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14858
14859         * .cvsignore: Ignore portable dumper xemacs.dmp file
14860
14861 2000-02-09  Andy Piper  <andy@xemacs.org>
14862
14863         * redisplay-output.c (redisplay_output_layout): be more clever
14864         about when we output based on the changed flags.
14865
14866         * glyphs.h (struct image_instantiator_methods): add update_method.
14867         (struct Lisp_Image_Instance): add changed flags. Declare new
14868         macros for manipulating them.
14869
14870         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14871         (image_instance_parent_glyph): find an image_instance's parent
14872         glyph or image_instance.
14873         (image_instance_layout): mark the size as changed.
14874         (set_image_instance_dirty_p): new function. mark an image
14875         instance, plus all of its parents, as dirty.
14876         (Fset_image_instance_property): use it.
14877         (Fglyph_animated_timeout_handler): use it.
14878         (update_subwindow): call update_widget and device methods for
14879         update_subwindow. Mark all changed flags as clean.
14880         (Fresize_subwindow): mark size as changed.
14881
14882         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14883         failures.
14884         (x_update_subwindow): only resize subwindows here.
14885         (x_update_widget): new function. Update all changed properties of
14886         a widget.
14887         (x_resize_subwindow): deleted.
14888         (x_widget_set_property): deleted.
14889         (x_progress_gauge_set_property): deleted.
14890         (x_progress_gauge_update): new function. Implement recorded
14891         changes.
14892         (x_tab_control_update): ditto.
14893         (x_tab_control_set_property): deleted.
14894         (console_type_create_glyphs_x): declare new functions.
14895         (image_instantiator_format_create_glyphs_x): ditto.
14896
14897         * glyphs-widget.c (widget_set_property): mark text changed.
14898         (update_widget): new function. Update properties of a widget.
14899         (widget_instantiate): for layouts make sure we set their
14900         children's parent correctly.
14901         (tab_control_set_property): new function. Record changes that will
14902         take place under redisplay's control.
14903         (progress_gauge_set_property): ditto.
14904         (image_instantiator_progress_guage): declare new functions.
14905         (image_instantiator_tab_control): ditto.
14906
14907         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14908         now.
14909         (mswindows_update_widget): new function. Update all properties on
14910         a widget that have changed.
14911         (mswindows_button_update): new function. Update a button's set
14912         state.
14913         (mswindows_tab_control_update): new function. Update the items in
14914         a tab.
14915         (mswindows_tab_control_set_property): deleted.
14916         (mswindows_progress_gauge_update): new function. Update the
14917         progress gauge's progress.
14918         (mswindows_widget_set_property): deleted. This is all done
14919         asynchronously now.
14920         (mswindows_progress_gauge_set_property): ditto.
14921         (console_type_create_glyphs_mswindows): declare new methods.
14922         (image_instantiator_format_create_glyphs_mswindows): ditto.
14923
14924         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14925         (msprinter_set_frame_properties): ditto.
14926
14927         * console.h (struct console_methods): Add update_widget_method.
14928
14929 2000-02-09  Andy Piper  <andy@xemacs.org>
14930
14931         * gui-msw.c (Fmswindows_shell_execute): Make
14932         mswindows-shell-execute industrial strength.
14933
14934 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14935
14936         * lrecord.h: Make macro argument `props' match member function `plist'.
14937         * fns.c (Fget):
14938         * fns.c (Fput):
14939         * fns.c (Fremprop):
14940         * fns.c (Fobject_plist):
14941         * alloc.c:
14942         * symbols.c:
14943         Object property list frobbing cleanup.
14944         - Allow any lisp object (compared with `eq'), not just symbols, as
14945           keys in object plists.
14946         - Move symbol plist frobbing into symbols.c, where it belongs.
14947         - Move string plist frobbing into alloc.c, where it belongs.
14948         - Everything's an lrecord now, so no need to test for symbolp, etc.
14949         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14950
14951         * extents.c: Reorder code to remove declarations.
14952
14953         * frame.h (store_in_alist): Remove useless declaration.
14954
14955 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14956
14957         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14958         * config.h.in: Add HAVE_XCONVERTCASE.
14959
14960 2000-02-07  Andy Piper  <andy@xemacs.org>
14961
14962         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14963         it breaks many things.
14964
14965 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14966
14967         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14968         actually can start a common comment type.
14969         * src/syntax.h (SYNTAX_END_P): ditto for end.
14970
14971 2000-02-07  Martin Buchholz <martin@xemacs.org>
14972
14973         * XEmacs 21.2.28 is released.
14974
14975 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14976
14977         * event-Xt.c (x_keysym_to_character): New.
14978         (maybe_define_x_key_as_self_inserting_character): New.
14979         (x_has_keysym): New.
14980         Auto-define all keys on the keyboard as self-insert-key.
14981
14982 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14983
14984         * menubar.c (vars_of_menubar): A small code simplification.
14985
14986         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14987
14988         * ExternalShell.c:
14989         * ExternalClient.c:
14990         * EmacsShell-sub.c:
14991         * EmacsManager.c:
14992         * EmacsFrame.c:
14993         Use consistent style for specifying X resources.
14994
14995         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14996         This makes (dontusethis-set-symbol-value-handler) actually usable.
14997
14998         * lrecord.h (lrecord_decription_type):
14999         * alloc.c (pdump_register_sub):
15000         (pdump_dump_data):
15001         (pdump_reloc_one):
15002         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15003         Comply with XEmacs coding style.
15004         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15005         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15006
15007         * keymap.c (Faccessible_keymaps):
15008         Make (accessible-keymaps map "\C-h") do the Right Thing.
15009         Make (accessible-keymaps map []) do the Right Thing.
15010         Make (accessible-keymaps map "") do the Right Thing.
15011         (check_keymap_definition_loop): New function.
15012         (keymap_store_internal): Keep luser from shooting self in foot,
15013           via (define-key ctl-x-4-map "p" global-map).
15014         Remove fullness slot from struct Lisp_Keymap, since hash tables
15015         are now reliable.
15016         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15017
15018 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15019
15020         * redisplay.c (init_redisplay): Fix small memory leak.
15021         * elhash.h:
15022         * elhash.c (pdump_reorganize_hash_table):
15023         Rename from reorganize_hash_table. Change prototype.
15024         Reuse the original memory for hentries.  Save 100k.
15025         * alloc.c (PDUMP_READ): new macro.
15026         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15027         * alloc.c: No need to #ifndef before #undef.
15028
15029         * print.c: Allow debug_print() to print readably by modifying
15030         debug_print_readably.  Use consistent variable names.
15031
15032         * .dbxrc: Try to get things to work even if stopped in a function
15033         without source available by explicitly specifying source files.
15034 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15035
15036         * unexnt.c (_start): Removed bogus code which caused loading heap
15037         from differrent executable file.
15038         Removed bogus assignment to _fmode, which caused inconsistencies.
15039
15040 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15041
15042         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15043         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15044         Do not preliminary `#define signal sigset'.
15045
15046         * systime.h: Do not prototype environ on windows nt and cygwin,
15047         this conflicts with system header.
15048
15049         * syssignal.h: Use correct define for WINDOWSNT
15050
15051         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15052         with system header.
15053
15054         * sysdep.c (near start of file): Fixed commentary and rearranged
15055         ifdefs in readable order.
15056         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15057         (start_of_text):
15058         (end_of_text):
15059         (end_of_data): Do not compile in if using PDUMP.
15060
15061         * symsinit.h: Prototyped vars_of_nt().
15062
15063         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15064         (find_child_console): Use it.
15065         (sys_kill): Use it.
15066
15067         * ntheap.h: Do not extern os_subtype.
15068
15069         * ntheap.c (cache_system_info): Do not cache unneeded:
15070         nt_major_version, nt_minor_version and os_subtype.
15071         (recreate_heap): Do not compile in when PDUMPing.
15072
15073         * nt.c (geteuid and friends): Use the new varibale
15074         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15075         (init_user_info): Removed the above mentioned hackery.
15076         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15077         stat has been fixed in the C runtime.
15078         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15079
15080         * file-coding.c (struct file_coding_dump): Do not define
15081         ucs_to_mule_table in the struct if not MULE.
15082         (struct struct lrecord_description fcd_description_1): Do not dump
15083         the above.
15084
15085         * emacs.c (main_1): Call vars_of_nt().
15086         (right before Fdump_emacs_data): Don't need lastfile if using both
15087         portabe dumper and system malloc.
15088
15089         * alloc.c (Fmemory_limit): Conditionalized out.
15090         (pdump): Use OPEN_BINARY for the portable dump file.
15091         (pdump_load): Ditto.
15092
15093 2000-02-02  Mike Alexander  <mta@arbortext.com>
15094
15095         * nt.c (convert_time): Set tm_isdst before calling mktime and
15096         avoid calling it at all if the compiler supports 64 bit integers.
15097         Also initialize utc_base_ft before using it.
15098
15099 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15100
15101         * frame.c (change_frame_size_1): Take f->internal_border_width
15102         into consideration when calculating the width of the frame.
15103
15104 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15105
15106         * window.c (frame_min_height):
15107         (frame_size_valid_p):
15108         (frame_pixsize_valid_p): Added.
15109         (check_frame_size): Generalized.
15110
15111         * window.h: Prototyped the above.
15112
15113         * lisp.h:
15114         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15115         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15116         Deleted Vwin32_* and Vbinary_process_* unused variables.
15117
15118         * device-msw.c (msprinter_init_device): Do not get printer font
15119         list; Added DEVMODE functions.
15120
15121         * frame-msw.c: Added lots of printer code.
15122
15123         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15124         general.c.
15125
15126         * console-msw.h: Added more msprinter device private slots.
15127
15128 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15129
15130         * event-msw.c (key_needs_default_processing_p): Added.
15131         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15132
15133 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15134
15135         * glyphs.c (image_instance_layout): Mark image instance as clean
15136         after layout.
15137         (glyph_dirty_p): Removed redundant function.
15138         (invalidate_glyph_geometry_maybe): Added.
15139         (update_glyph_cachel_data): Call it.
15140
15141         * glyphs.h: Prototyped it.
15142
15143         * redisplay.c (add_glyph_rune): Call it.
15144         (redisplay_window): Reset glyphs cachels when frame faces have
15145         changed, thus forcing recomputation of built-in border glyphs.
15146
15147 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15148
15149         * Makefile.in.in: Make portable dumper and purify play well together.
15150         Add imperfect, but better than nothing, support for pdump.
15151         Remove xemacs.dmp when temacs is re-generated.
15152         Don't ignore errors when dumping xemacs.
15153
15154         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15155
15156 2000-01-28  Andy Piper  <andy@xemacs.org>
15157
15158         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15159         (setup_normal_frame): ditto.
15160         (setup_frame_without_minibuffer): ditto.
15161         (setup_minibuffer_frame): ditto.
15162         (delete_frame_internal): ditto.
15163         (Fmake_frame_invisible): ditto.
15164         (Ficonify_frame): ditto.
15165
15166         * window.h: change Fset_window_buffer signature.
15167
15168         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15169         (Fset_window_buffer): allow recording of buffer if the window is
15170         the selected window.
15171         (window_loop): Use new Fset_window signature.
15172
15173 2000-01-23  Daniel Pittman  <daniel@danann.net>
15174
15175         * config.h.in: Added template for `HAVE_ATHENA_3D'
15176
15177 2000-01-29  Andy Piper  <andy@xemacs.org>
15178
15179         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15180
15181         * gutter.c (output_gutter): Don't output if the window isn't live.
15182
15183 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15184
15185         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15186         of 01/12/00: Moved SetFocus back here where it belongs.
15187
15188 2000-01-23  Andy Piper  <andy@xemacs.org>
15189
15190         * s/cygwin32.h: declare printer things.
15191
15192 2000-01-26  Andy Piper  <andy@xemacs.org>
15193
15194         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15195         Alexander.
15196
15197 2000-01-24  Andy Piper  <andy@xemacs.org>
15198
15199         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15200         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15201
15202         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15203
15204         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15205
15206         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15207
15208         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15209         (mswindows_output_display_block): Avoid local shadows.
15210
15211         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15212         (mswindows_enqueue_mouse_button_event): ditto.
15213         (mswindows_handle_gui_wm_command): remove declaration.
15214
15215         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15216         warnings.
15217
15218         * console-msw.h: Avoid shadows.
15219         (mswindows_get_toolbar_button_text):
15220         (emacs_mswindows_create_stream_pair):
15221         (emacs_mswindows_delete_stream_pair):
15222         (mswindows_handle_toolbar_wm_command): declare.
15223
15224         * device-msw.c (build_syscolor_string): Avoid shadows.
15225
15226 2000-01-23  Andy Piper  <andy@xemacs.org>
15227
15228         * glyphs-widget.c (widget_instantiate): reverse the items for
15229         layouts so that children are in the expected order.
15230
15231 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15232
15233         * ralloc.c: safe_bcopy ==> memmove
15234         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15235         * s/msdos.h: Remove BCOPY macros.
15236         * insdel.c (gap_right): Remove BCOPY conditional code.
15237         * insdel.c (gap_left): Remove BCOPY conditional code.
15238         XEmacs demands a working ANSI C compiler - hence memmove.
15239
15240         * regex.c (regex_compile): Remove accidental use of trigraphs.
15241
15242 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15243
15244         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15245         event timestamp.
15246
15247 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15248
15249         * event-msw.c (mswindows_drain_windows_queue): Added the
15250         parameter.
15251         (mswindows_need_event): Commented the call to
15252         mswindows_drain_windows_queue().
15253         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15254         only.
15255
15256         * console-msw.h: Moved a few function prototypes here from
15257         event-msw.c.
15258
15259         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15260         parameter from unsigned short to unsigned long.
15261         (Fmswindows_shell_execute): Added return value.
15262
15263 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15264
15265         * sysdep.c (init_system_name):
15266           process-unix.c (unix_canonicalized_host_name):
15267         Don't call freeaddrinfo() if getaddrinfo() fails.
15268
15269         * process-unix.c (unix_open_unix_network_stream):
15270         Moved the code to get a port # into address loop.
15271
15272 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15273
15274         * buffer.c (reinit_vars_of_buffer):
15275         The right place to initialize conversion_in_dynarr and
15276         conversion_out_dynarr.
15277
15278         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15279
15280         * process-unix.c (unix_canonicalize_host_name): Muleize.
15281         (unix_open_network_stream): Muleize.
15282
15283         * buffer.h: Fix up prototypes for ralloc.c functions.
15284
15285 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15286         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15287         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15288                 instead of gethostbyname()
15289         * process-unix.c: In unix_canonicalize_host_name() and
15290                 unix_open_network_stream(), add code to use getaddrinfo()
15291                 instead of gethostbyname().
15292
15293 2000-01-27  Daniel Pittman <daniel@danann.net>
15294
15295         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15296         libs when built with flat Athena.
15297
15298 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15299
15300         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15301         Use coding standards for function prototypes.
15302
15303 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15304
15305         * dialog-msw.c (push_lisp_string_as_unicode):
15306         * doc.c (unparesseuxify_doc_string):
15307         * dired.c (Fuser_name_completion_1):
15308         * dired.c (Fuser_name_all_completions):
15309         * dired.c (free_user_cache):
15310         * dired.c (user_name_completion):
15311         * console-x.c (get_display_arg_connection):
15312         * minibuf.c (clear_echo_area_internal):
15313         * minibuf.c (echo_area_append):
15314         * eldap.c (Fldap_open):
15315         * eldap.c (Fldap_search_internal):
15316         * frame-x.c (x_set_frame_text_value):
15317         * frame-x.c (x_set_frame_properties):
15318         * frame-x.c (x_create_widgets):
15319         * redisplay-tty.c (term_get_fkeys_1):
15320         * objects-x.c (x_parse_nearest_color):
15321         * objects-x.c (x_valid_color_name_p):
15322         * objects-x.c (x_initialize_font_instance):
15323         * objects-x.c (x_list_fonts):
15324         * objects-x.c (x_find_charset_font):
15325         * tooltalk.c (Fadd_tooltalk_message_arg):
15326         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15327         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15328         * process-unix.c (unix_create_process):
15329         * ntproc.c (sys_spawnve):
15330         * sound.c (Fplay_sound_file):
15331         * sound.c (Fplay_sound):
15332         * buffer.c (init_initial_directory):
15333         * buffer.c (init_buffer):
15334         * editfns.c (init_editfns):
15335         * editfns.c (Ftemp_directory):
15336         * editfns.c (Fuser_full_name):
15337         * editfns.c (uncache_home_directory):
15338         * editfns.c (get_home_directory):
15339         * editfns.c (Fuser_home_directory):
15340         * editfns.c (Fformat_time_string):
15341         * editfns.c (Fcurrent_time_string):
15342         * gui-x.c (button_item_to_widget_value):
15343         * database.c (Fopen_database):
15344         * event-Xt.c (x_to_emacs_keysym):
15345         * event-Xt.c (x_event_to_emacs_event):
15346         * event-Xt.c (describe_event_window):
15347         * event-msw.c (mswindows_wnd_proc):
15348         * glyphs-eimage.c (jpeg_instantiate):
15349         * glyphs-eimage.c (gif_instantiate):
15350         * glyphs-eimage.c (png_instantiate):
15351         * glyphs-eimage.c (tiff_instantiate):
15352         * glyphs-x.c (xbm_instantiate_1):
15353         * glyphs-x.c (x_xbm_instantiate):
15354         * glyphs-x.c (x_xface_instantiate):
15355         * glyphs-x.c (autodetect_instantiate):
15356         * glyphs-x.c (cursor_font_instantiate):
15357         * glyphs-x.c (x_widget_instantiate):
15358         * glyphs-x.c (x_widget_set_property):
15359         * glyphs-x.c (x_widget_property):
15360         * glyphs-x.c (BUILD_GLYPH_INST):
15361         * print.c (write_string_to_stdio_stream):
15362         * print.c (output_string):
15363         * print.c (Falternate_debugging_output):
15364         * print.c (Fexternal_debugging_output):
15365         * glyphs-msw.c (extract_xpm_color_names):
15366         * glyphs-msw.c (mswindows_xpm_instantiate):
15367         * glyphs-msw.c (bmp_instantiate):
15368         * glyphs-msw.c (resource_name_to_resource):
15369         * glyphs-msw.c (mswindows_resource_instantiate):
15370         * glyphs-msw.c (xbm_instantiate_1):
15371         * glyphs-msw.c (mswindows_xbm_instantiate):
15372         * glyphs-msw.c (mswindows_xface_instantiate):
15373         * glyphs-msw.c (mswindows_widget_instantiate):
15374         * glyphs-msw.c (add_tree_item):
15375         * glyphs-msw.c (add_tab_item):
15376         * glyphs-msw.c (mswindows_combo_box_instantiate):
15377         * glyphs-msw.c (mswindows_widget_property):
15378         * glyphs-msw.c (mswindows_combo_box_property):
15379         * glyphs-msw.c (mswindows_widget_set_property):
15380         * console.c (stuff_buffered_input):
15381         * objects-msw.c (mswindows_initialize_color_instance):
15382         * objects-msw.c (mswindows_valid_color_name_p):
15383         * objects-msw.c (mswindows_list_fonts):
15384         * objects-msw.c (mswindows_font_instance_truename):
15385         * bytecode.c (optimize_compiled_function):
15386         * select-x.c (symbol_to_x_atom):
15387         * select-x.c (x_atom_to_symbol):
15388         * select-x.c (hack_motif_clipboard_selection):
15389         * select-x.c (selection_data_to_lisp_data):
15390         * select-x.c (lisp_data_to_selection_data):
15391         * select-x.c (Fx_get_cutbuffer_internal):
15392         * select-x.c (Fx_store_cutbuffer_internal):
15393         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15394         * buffer.h (TO_INTERNAL_FORMAT): New function.
15395         * emacs.c (make_arg_list_1):
15396         * emacs.c (make_argc_argv):
15397         * emacs.c (main_1):
15398         * emacs.c (Fdump_emacs):
15399         * emacs.c (split_string_by_emchar_1):
15400         * file-coding.h:
15401         * lisp.h:
15402         * lstream.h:
15403         * symsinit.h:
15404         * device-x.c (x_init_device):
15405         * device-x.c (Fx_valid_keysym_name_p):
15406         * device-x.c (Fx_get_font_path):
15407         * device-x.c (Fx_set_font_path):
15408         * glyphs.c (bitmap_to_lisp_data):
15409         * glyphs.c (pixmap_to_lisp_data):
15410         * alloc.c (make_ext_string): Use coding system arguments.  Update
15411         all callers.
15412         * alloc.c (build_string):
15413         * callproc.c (child_setup):
15414         * callproc.c (init_callproc):
15415         * fileio.c (lisp_strerror):
15416         * fileio.c (directory_file_name):
15417         * fileio.c (Fexpand_file_name):
15418         * fileio.c (Ffile_truename):
15419         * fileio.c (Fsysnetunam):
15420         * fileio.c (Fdo_auto_save):
15421         * sysdep.c (sys_readdir):
15422         * tests.c: New file.  Allow adding C tests.
15423         Replace GET_* macros with a more comprehensible and flexible
15424         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15425         Modify all calls.
15426         Any coding system can be used to do format conversion.
15427         Eliminate enum external_data_format.
15428         Eliminate convert_to_external_format.
15429         Eliminate convert_to_internal_format.
15430         Make sure file-name, keyboard, terminal, and ctext are always
15431         defined as coding systems or aliases.  Make
15432         file-name-coding-system, terminal-coding-system, and
15433         keyboard-coding-system magical variables that are equivalent to
15434         defining the corresponding coding system aliases.
15435
15436         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15437         * file-coding.c (Fcoding_system_alias_p): New function.
15438         * file-coding.c (Fcoding_system_aliasee): New function.
15439         * file-coding.c (append_suffix_to_symbol): New function.
15440         * file-coding.c (dangling_coding_system_alias_p): New function.
15441         * file-coding.c (Ffind_coding_system):
15442         * file-coding.c (Fcopy_coding_system):
15443         * file-coding.c (encode_coding_no_conversion):
15444         * file-coding.c (syms_of_file_coding):
15445         * file-coding.c (vars_of_file_coding):
15446         Rewrite coding system alias code.
15447         Allow nested aliases, like symbolic links.
15448         Allow redefinition of coding system aliases.
15449         Prevent existence of dangling coding system aliases.
15450
15451         * dired.c (Fuser_name_completion_1):
15452         * dired.c (Fuser_name_all_completions):
15453         A crash would happen if user did QUIT in the middle of building
15454         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15455
15456         * lisp.h:
15457         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15458
15459         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15460         an unsigned char *.  Update all callers.
15461
15462 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15463
15464         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15465
15466 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15467
15468         * elhash.c (hentry_description): Use more portable definition.
15469         (resize_hash_table): Initialize new hentries using
15470         xnew_array_and_zero, thereby simplifying the code.
15471
15472         * mule-charset.c (make_charset): Make sure entire object is
15473         initialized, to avoid Purify warnings.
15474
15475         * alloc.c (resize_string): Fix unlikely crash with big strings.
15476
15477 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15478
15479         * realpath.c (xrealpath):
15480         Don't call getwd().
15481
15482 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15483
15484         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15485
15486 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15487
15488         * unexelfsgi.c (unexec): Change the way we decide which segment
15489         should be extended.
15490
15491         Assumption that .bss section should be outside the PT_LOADable
15492         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15493         it's present) is inside the 'data' segment. This would fail the
15494         test which was used to find a segment to grow and cover new
15495         heap. Instead of this assumption, I created another one - on IRIX
15496         the segment to grow should start below .bss and it's address
15497         should extent above the end of .bss. Once this segment is
15498         identified, it's grown to accommodate the new heap and new
15499         zero-length .bss section is added at the end of .data2.
15500
15501 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15502
15503         * eval.c (Feval): Wrong number of arguments should use original
15504         function, not the indirect_function version of it.
15505
15506 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15507
15508         * glyphs-x.c (x_button_instantiate): Don't add image if
15509         it is not a pixmap.
15510         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15511         is relative.
15512
15513 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15514
15515         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15516         declaration.
15517         (DEFVAR_INT_MAGIC): Ditto.
15518         (DEFVAR_BOOL_MAGIC): Ditto.
15519         * glyphs.h: Reindent backslash.
15520
15521 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15522
15523         * glyphs-widget.c (layout_query_geometry):
15524         (layout_layout): Use correct types for gheight, gwidth.
15525
15526 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15527
15528         * EmacsManager.c (QueryGeometry): Purified.
15529
15530 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15531
15532         * alloc.c (make_float): Make sure entire object is initialized, to
15533         avoid Purify warnings.
15534         (pdump_register_sub): Remove useless assignment.
15535         (pdump): Use xmalloc, not malloc.
15536         (pdump_load): Use xmalloc, not malloc.
15537
15538 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15539
15540         * callproc.c:
15541         * dired-msw.c:
15542         * fileio.c:
15543         * process-nt.c:
15544         * redisplay-msw.c:
15545         * sysdep.c: Removed redundant #include <windows.h>
15546
15547 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15548
15549         * frame.c (delete_frame_internal): Do not delete device when its
15550         implementation so declares.
15551         (delete_frame_internal): Set device selected frame to nil when
15552         last frame goes away.
15553
15554         * device-msw.c (msprinter_device_system_metrics): Implemented.
15555         (mswindows_device_system_metrics): Added 'device-dpi property.
15556
15557         * device.c: (Fdevice_printer_p): Added.
15558         Added 'offset-workspace device metric.
15559
15560         * console.h (device_metrics): Declared DM_offset_workspace.
15561
15562 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15563
15564         * fileio.c (Ffile_truename): Remove pointless and confusing
15565         initialization of elen.
15566
15567         * glyphs-widget.c: Compiler warning fixes.
15568
15569 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15570
15571         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15572         instead of a Lisp_Object as argument to make it consistent with
15573         the other LIVE_P macros.
15574         (CHECK_LIVE_PROCESS): New macro.
15575
15576         * process.c: Declare Qprocess_live_p.
15577         (Fprocess_live_p): New function.
15578         (create_process): Use PROCESS_LIVE_P.
15579         (read_process_output): Ditto.
15580         (set_process_filter): Ditto.
15581         (Fdelete_process): Ditto.
15582         (kill_buffer_processes): Ditto
15583         (process_send_signal): Use CHECK_LIVE_PROCESS.
15584         (Fprocess_input_coding_system): Check whether process is still
15585         alive (fix PR#1061).
15586         (Fprocess_output_coding_system): Ditto.
15587         (Fprocess_coding_system): Ditto.
15588         (Fset_process_input_coding_system): Ditto.
15589         (Fset_process_output_coding_system): Ditto.
15590
15591 2000-01-23  Andy Piper  <andy@xemacs.org>
15592
15593         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15594         layout and widget.
15595
15596         * glyphs.c (mark_image_instance): take into account changed
15597         image_instance format.
15598         (image_instance_equal): ditto.
15599         (image_instance_hash): ditto.
15600
15601         * glyphs-widget.c (widget_instantiate): Incorporate layout
15602         instantiation here. Delay layout of the layout until later.
15603         (layout_instantiate): deleted.
15604         (layout_query_geometry): new function. get the geometry of a
15605         layout.
15606         (layout_layout): layout a layout dynamically.
15607         (image_instantiator_widget): New function - splitting up
15608         image_instantiator_format_create_glyphs_widget for netwinder
15609         compilation.
15610         (image_instantiator_buttons):
15611         (image_instantiator_edit_fields):
15612         (image_instantiator_combo_box):
15613         (image_instantiator_scrollbar):
15614         (image_instantiator_progress_guage):
15615         (image_instantiator_tree_view):
15616         (image_instantiator_tab_control):
15617         (image_instantiator_labels):
15618         (image_instantiator_layout): ditto.
15619         (image_instantiator_format_create_glyphs_widget): Call preceding
15620         functions.
15621
15622 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15623
15624         * process.c (Fset_process_coding_system):
15625         * device-x.c (Fx_keysym_hash_table):
15626         Docstring fixes.
15627
15628         * lstream.c (Lstream_write): Return documented value, not 0.
15629
15630         * fileio.c (directory_file_name):
15631         (Fsubstitute_in_file_name):
15632         (Fsubstitute_insert_file_contents_internal):
15633         (Fwrite_region_internal):
15634         * emacs.c:
15635         * sysdep.c:
15636         * getloadavg.c:
15637         * systty.h:
15638         Remove vestigial APOLLO-conditional code.
15639
15640 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15641
15642         * getpagesize.h: Add guard macros.
15643         * libsst.h: Add guard macros.
15644         * libst.h: Add guard macros.
15645         * line-number.h: Add guard macros.
15646         * ndir.h: Add guard macros.
15647         * sysfloat.h: Add guard macros.
15648         * sysfile.h: Add guard macros.
15649         * sysproc.h: Add guard macros.
15650         * syswait.h: Add guard macros.
15651         * xintrinsic.h: Add guard macros.
15652         * xintrinsicp.h: Add guard macros.
15653         * xmmanager.h: Add guard macros.
15654         * xmmanagerp.h: Add guard macros.
15655         * xmprimitive.h: Add guard macros.
15656         * xmu.h: Add guard macros.
15657         * gpmevent.h: Add copyright statement. Add guard macros.
15658         * miscplay.h: Add guard macros.
15659         * *.h: Use consistent C-standards-approved guard macro names.
15660
15661         * opaque.c (make_opaque): Switch parameter order.
15662         * opaque.h (make_opaque): Switch parameter order.
15663         Update all callers.
15664         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15665
15666         * config.h.in (type_checking_assert): Added.
15667         (bufpos_checking_assert): Added.
15668
15669 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15670
15671         * alloc.c: Harmless pdump changes.
15672         - Use countof().
15673         - spell alignment correctly.
15674         * sysdep.c: Use countof()
15675
15676 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15677
15678         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15679         initially_selected_for_input() console method, default to 0.
15680         (semi_canonicalize_console_connection): Try to delegate to
15681         canonicalize_console_connection if no such console method.
15682         (canonicalize_console_connection): Vice versa.
15683         (print_console): Do not print nil connection.
15684
15685         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15686         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15687         (XDEVIMPF_FRAMELESS_OK): Added.
15688         (CONSOLE_INHERITS_METHOD): Added.
15689
15690         * console-msw.c (mswindows_canonicalize_console_connection):
15691         Added.
15692         (mswindows_canonicalize_device_connection): Added.
15693
15694         * console-msw.h (struct msprinter_device): Added this struct and
15695         accessor macros.
15696         (mswindows_device): Made fontlist a lisp object.
15697
15698         * device.c (semi_canonicalize_device_connection):  Try to delegate
15699         to canonicalize_device_connection if no such console method.
15700         (canonicalize_device_connection): Vice versa.
15701         (print_device): Do not print nil connection.
15702
15703         * device-msw.c (mswindows_init_device): Call InitCommonControls
15704         when have widgets.
15705         (mswindows_delete_device): Removed fontlist deallocation.
15706         (mswindows_mark_device): Added.
15707
15708         * events.c (event_equal): Added abort() at unreached code.
15709         (event_hash): Ditto.
15710
15711         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15712         fallback tags of Windows devices.
15713
15714         * general.c (syms_of_general): Initialized Qmsprinter.
15715
15716         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15717         of fallback tags of Windows devices.
15718
15719         * lisp.h: Declared Qmsprinter.
15720
15721         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15722         of strings.
15723         (mswindows_list_fonts): Ditto.
15724         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15725         that it can be used by both mswindows and msprinter devices.
15726         (initialize_font_instance): Added.
15727         (mswindows_initialize_font_instance): Use it.
15728         (msprinter_initialize_font_instance): Added.
15729
15730         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15731         and implementation flags check.
15732         (redisplay_without_hooks): Changed the call to the above.
15733         (Fredraw_device): Ditto.
15734         (Fredisplay_device): Ditto.
15735
15736         * redisplay-msw.c (get_frame_dc): Implemented.
15737         (get_frame_compdc): Implemented.
15738         (many functions): Use the two functions above to get device
15739         contexts, ether for a window or a printer.
15740
15741 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15742
15743         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15744         initialization here.
15745         (init_symbols_once_early): Call it.
15746         * emacs.c (main_1): Call it.
15747         * symsinit.h: Declare it.
15748
15749 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15750
15751         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15752         Lisp_Object.
15753         (pdump_backtrace): Ditto.
15754         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15755         (pdump_get_entry): Abort if trying to register a null pointer.
15756         (pdump_dump_data): Cleanup types when relocating.
15757         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15758         (pdump_dump_rtables): Remove bad casts.
15759         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15760         Lisp_Object instead of a EMACS_INT for the hashtable
15761         reorganization.
15762
15763 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15764
15765         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15766
15767         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15768
15769         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15770
15771         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15772
15773 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15774
15775         * faces.h (FACE_STRIKETHRU_P): Added.
15776
15777         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15778         of font variants.
15779
15780         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15781         (mswindows_set_dc_font): New function, aware of font variants,
15782         separated from mswindows_update_dc.
15783
15784         * objects-msw.h (struct mswindows_font_instance_data): Added
15785         definition.
15786
15787         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15788         cached fonts and the data structure.
15789         (mswindows_initialize_font_instance): Added creation of font data
15790         structure.
15791         (mswindows_print_font_instance): Print at least something.
15792         (mswindows_create_font_variant): Implemented.
15793         (mswindows_get_hfont): Implemented.
15794
15795 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15796
15797         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15798         prototyping problem with msvc.
15799
15800         * emacs.c (main_1): added syms_of_gui_mswindows() call
15801
15802         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15803         syms_of_gui_mswindows() function
15804
15805         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15806
15807 2000-01-18  Martin Buchholz <martin@xemacs.org>
15808
15809         * XEmacs 21.2.27 is released.
15810
15811 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15812
15813         * glyphs-eimage.c (struct tiff_error_struct):
15814         (tiff_error_func):
15815         (tiff_warning_func):
15816         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15817
15818         * unexmips.c:
15819         * unexhp9k3.c:
15820         * unexfreebsd.c:
15821         * unexec.c: Remove vestigial Lucid C code.
15822         * unexalpha.c:
15823         * unexaix.c:
15824         * termcap.c:
15825         * libsst.c: Ansify.
15826         Remove declarations of errno and strerror().
15827
15828         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15829
15830         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15831
15832 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15833
15834         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15835         Optimize.
15836
15837 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15838
15839         * md5.c:
15840         * file-coding.c:
15841         * file-coding.h:
15842         Change enum eol_type to eol_type_t.
15843
15844 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15845
15846         * gui.c (get_gui_callback): Check cons before accessing car.
15847
15848 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15849
15850         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15851         (XSETSPECIFIER_TYPE): Ditto.
15852
15853 2000-01-17  Didier Verna  <didier@xemacs.org>
15854
15855         * redisplay.c (generate_fstring_runes): compute string size in
15856         characters, not bytes.
15857
15858 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15859
15860         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15861
15862 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15863
15864         * print.c (print_error_message): Call print_prepare().
15865
15866 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15867
15868         * .dbxrc: Renamed from dbxrc.
15869
15870         * events.c (event_to_character):
15871         Use `assert (foo)' instead of `if (!foo) abort()'
15872
15873         * .gdbinit (xtype): Add documentation.
15874         * .gdbinit (check-temacs): New function.
15875         * .gdbinit (check-xemacs): New function.
15876         * dbxrc (check-xemacs): New function.
15877         * dbxrc (check-xemacs): New function.
15878
15879 2000-01-14  Andy Piper  <andy@xemacs.org>
15880
15881         * glyphs-widget.c (widget_query_geometry): Make sure that we
15882         calculate default dimensions correctly.
15883
15884 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15885
15886         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15887
15888         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15889         pdump_wire'd variable.
15890
15891         * emacs.c: (main_1): Conditionalized calls to
15892         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15893
15894 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15895
15896         * window.c (Fset_window_configuration):
15897         * sysdep.c (_start):
15898         * input-method-motif.c (res):
15899         * event-Xt.c (Xt_process_to_emacs_event):
15900         Simple compiler warning fixes.
15901
15902         * bytecode.c (funcall_compiled_function): Use the original
15903         function symbol on the backtrace list in preference to the
15904         compiled_function object in error messages.
15905
15906 2000-01-13  Andy Piper  <andy@xemacs.org>
15907
15908         * glyphs-x.c (update_widget_face): Make sure we update the widget
15909         background as well as foreground.
15910
15911 2000-01-13  Andy Piper  <andy@xemacs.org>
15912
15913         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15914         fields to subwindow.
15915         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15916         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15917         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15918         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15919
15920         * glyphs-widget.c (check_valid_tab_orientation): new function.
15921         (initialize_widget_image_instance): zero orientation and
15922         justification.
15923         (widget_instantiate): pick up orientation.
15924         (tab_control_query_geometry): return appropriate values for
15925         vertical tabs.
15926
15927         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15928         appropriate creation flags for left, right and bottom tabs.
15929
15930         * s/cygwin32.h: add tab definitions.
15931
15932 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15933
15934         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15935         frame upon hiding a subwindow.
15936         (mswindows_button_instantiate): Changed the push button style to
15937         BS_PUSHBUTTON.
15938         (mswindows_button_instantiate): Removed button BS_NOTIFY
15939         style.
15940         (mswindows_button_instantiate): Removed redundant check for
15941         a disabled gui item.
15942         (mswindows_button_instantiate): Made use of WS_TABSTOP
15943         consistent: "operable" controls (edit, button, tree, scroll) have
15944         this style, "display-only" ones (static, progress gauge) do
15945         not. This style is currently ignored by XEmacs though. Also,
15946         removed the WS_EX_CONTROLPARENT style - it is not for children,
15947         it is for their parents!
15948         (mswindows_edit_field_instantiate): Ditto.
15949         (mswindows_progress_gauge_instantiate): Ditto.
15950         (mswindows_tree_view_instantiate): Ditto.
15951         (mswindows_tab_control_instantiate): Ditto.
15952         (mswindows_scrollbar_instantiate): Ditto.
15953         (mswindows_combo_box_instantiate): Ditto.
15954         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15955         style to the "clip" window.
15956         (mswindows_button_instantiate): Removed compilation warning by
15957         equally typing terms of the ?: operator.
15958
15959 2000-01-12  Didier Verna  <didier@xemacs.org>
15960
15961         * redisplay.c (generate_fstring_runes): new parameter holding the
15962         last modeline-format extent.
15963         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15964         extent, fill the glyph block with it.
15965         (generate_fstring_runes): handle these parameters.
15966         (generate_formatted_string_db): ditto.
15967
15968         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15969         glyphs'extents in the modeline.
15970
15971 1999-01-11  Mike Woolley  <mike@bulsara.com>
15972
15973         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15974         256Mb, as a workaround for the non-starting problem many people
15975         have experienced.
15976
15977 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15978
15979         * console-tty.c (Fset_console_tty_output_coding_system):
15980         Force redrawing tty frame.
15981
15982 2000-01-10  Didier Verna  <didier@xemacs.org>
15983
15984         * redisplay.c (generate_fstring_runes): fix size computation bug.
15985
15986 2000-01-09  William M. Perry <wmperry@aventail.com>
15987
15988         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15989
15990 2000-01-09  Andy Piper  <andy@xemacs.org>
15991
15992         * glyphs-msw.c: index -> i to avoid shadows.
15993         (xbm_create_bitmap_from_data): make static.
15994         (check_valid_string_or_int): deleted.
15995         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15996
15997         * glyphs-x.c (x_update_subwindow): remove unused args.
15998
15999         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16000         back pointer - this is done in allocate_image_instance.
16001         (query_string_font): return Qnil to make the compiler happy.
16002         (unmap_subwindow): set to ~0 to make the compiler happy.
16003         (glyph_query_geometry): comment out until used.
16004         (glyph_layout): ditto.
16005
16006 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16007
16008         * insdel.c (signal_after_change): Remove extraneous unbind_to().