Merge r21-4-13-chise-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-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5109
5110         * XEmacs 21.4.13 is released
5111
5112 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5113
5114         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5115         * lisp.h (<inttypes.h>):
5116         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5117         the definition.
5118
5119 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5120
5121         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5122         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5123         Result: "temacs can only be run in -batch mode."
5124         Fix: Check xemacs executable candidate for directory-ness.
5125
5126 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5127
5128         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5129           they conflict with <sys/types.h>.
5130
5131 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5132
5133         * database.c: Berkeley DB wants __STDC__ to be defined.
5134
5135 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5136
5137         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5138
5139 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5140
5141         * process-unix.c (unix_send_process): Fix C++ compile error.
5142
5143 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5144
5145         * Added .dylib as an acceptable shared library file extension
5146         * to support MacOSX.
5147
5148 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5149
5150         * EmacsFrameP.h (EmacsFramePart):
5151         Kludge to allow compiling with Motif1, but linking with Motif2.
5152
5153 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5154
5155         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5156
5157
5158 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5159
5160         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5161
5162 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5163
5164         * sysdll.c: Included lisp.h to define needed alloca_array.
5165
5166 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5167
5168         Make XEmacs redisplay 10 times faster.
5169         If, that is, you're using a slow X connection and MoveOpaque.
5170         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5171         Use compress_motion = TRUE.
5172         * EmacsFrame.c (emacsFrameClassRec): 
5173         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5174         * EmacsManager.c (emacsManagerClassRec):
5175         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5176
5177 2003-01-30  Vin Shelton  <acs@xemacs.org>
5178
5179         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5180
5181 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5182
5183         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5184         Patch by Martin Buchholz.
5185
5186 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5187
5188         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5189         Thanks to icc for warning and Martin Buchholz for reporting.
5190
5191 2003-01-29  Vin Shelton <acs@xemacs.org>
5192
5193         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5194
5195         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5196         remember to multiply by the element size.
5197
5198 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5199
5200         * XEmacs 21.4.12 "Portable Code" is released.
5201
5202 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5203
5204         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5205         * s/cygwin.sc: new linker file.
5206
5207 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5208
5209         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5210
5211         * redisplay-x.c (x_output_string): Use X11-specified types.
5212         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5213         * emacs.c (__free_hook): Use typeof with Intel compiler.
5214         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5215
5216 2003-01-08  Andy Piper  <andy@xemacs.org>
5217
5218         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5219         reserve size during unexec().
5220
5221 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5222
5223         * process-unix.c (unix_create_process): Don't let outchannel block.
5224
5225 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5226
5227         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5228         Needed for IsBadReadPtr().
5229
5230 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5231
5232         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5233
5234 2002-12-14  Ben Wing  <ben@xemacs.org>
5235
5236         * callint.c: Declaration error.
5237         * dumper.c (pdump):
5238         * dumper.c (pdump_load): Warning fix.
5239         * process.c: GCPRO error.
5240         * glyphs.c (unmap_subwindow):
5241         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5242         * event-stream.c (maybe_kbd_translate): Wrong argument to
5243         character_to_event().
5244
5245         * alloc.c (garbage_collect_1):
5246         * emacs.c:
5247         * emacs.c (debug_can_access_memory):
5248         * emacs.c (fatal_error_signal):
5249         * emacs.c (mswindows_handle_hardware_exceptions):
5250         * emacs.c (main_1):
5251         * emacs.c (main):
5252         * emacs.c (assert_failed):
5253         * emacs.c (syms_of_emacs):
5254         * lisp.h:
5255         * print.c:
5256         * print.c (std_handle_out_va):
5257         * print.c (write_string_to_stdio_stream):
5258         * print.c (write_fmt_string):
5259         * print.c (printing_badness):
5260         * print.c (printing_major_badness):
5261         * print.c (print_internal):
5262         * print.c (debug_print_no_newline):
5263         * print.c (debug_backtrace):
5264         Be more defensive in handling bad values when printing.  Add code
5265         from trunk involving inhibit_non_essential_printing_operations.
5266         When going down or in debug_print(), don't do external conversion
5267         and such and try really, really hard when printing to avoid core
5268         dumping.  Add force-debugging-signal, debug_break().
5269
5270 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5271
5272         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5273         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5274
5275 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5276
5277         * database.c: Fix open_database. Berkeley DB API has changed in
5278         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5279
5280 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5281
5282         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5283
5284 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5285
5286         * event-Xt.c (Xt_timeout):
5287         (Xt_timeout_callback):
5288         (emacs_Xt_add_timeout):
5289         (emacs_Xt_remove_timeout):
5290         (Xt_timeout_to_emacs_event):
5291         Turn completed_timeouts from a stack into a queue.  Fixes
5292         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5293
5294 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5295
5296         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5297         * emacs.c (main): Assert that mmap'd allocation is disabled.
5298
5299 2002-10-14  Andy Piper  <andy@xemacs.org>
5300
5301         * glyphs-widget.c (layout_query_geometry): add in fiddle
5302         factor. Include border text in width layout calculation.
5303         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5304
5305 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5306
5307         * XEmacs 21.4.10 "Military Intelligence" is released.
5308
5309 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5310
5311         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5312         using the NAS private array SoundFileInfo that no longer exists in
5313         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5314         and earlier.  This is broken for some versions between 1.5a and
5315         1.5f.
5316
5317 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5318
5319         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5320
5321         * emacs.c (shut_down_emacs): Improve crash message.
5322
5323 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5324
5325         * file-coding.c (determine_real_coding_system): Check for coding
5326         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5327         shebangs and Python PEP 263.
5328
5329 2002-10-08  Andy Piper  <andy@xemacs.org>
5330
5331         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5332         if static sizes haven't been set.
5333
5334 2002-08-30  Mike Alexander  <mta@arbortext.com>
5335
5336         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5337         to close a socket.
5338
5339 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5340
5341         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5342
5343 2002-09-20  Mike Sperber <mike@xemacs.org>
5344
5345         (This partially gets back my patch from 2002-07-20 without the
5346         bug.)
5347         * callproc.c (child_setup): Remove Ben's comment noting confusion
5348         over the file descriptors >= 3: close_process_descs() doesn't
5349         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5350         * process-unix.c (unix_create_process): Call
5351         begin_dont_check_for_quit to inhibit unwanted interaction (and
5352         thus breaking of X event synchronicity) in the child.
5353
5354 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5355
5356         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5357         widget.
5358
5359 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5360
5361         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5362         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5363         the xemacs process did not exit, but looped infinitely here.  This
5364         fixes that problem.
5365
5366 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5367
5368         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5369         (find_context): Improve comments.
5370
5371         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5372         (re_match_2): An XCHAR_TABLE operation was missing.
5373
5374         Many of the following changes were inspired by Andy Piper's (now
5375         obsolete) patch to make syntax-table text property lookup optional.
5376
5377         [Documentation]
5378
5379         * syntax.h (top level): Document semantics of syntax flags.
5380         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5381         * syntax.c, syntax.h (top level): Document syntax cache better in
5382         comments.
5383
5384         [Instrument syntax caching (temporary change)]
5385
5386         * syntax.h (enum syntax_cache_statistics_functions, struct
5387         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5388         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5389         * syntax.c (scan_words, Fforward_comment, scan_lists,
5390         Fbackward_prefix_characters):
5391         * font-lock.c (find_context):
5392         Use them to instrument syntax caching. 
5393         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5394         syntax_cache_statistics_function_names): New type and variables.
5395         * syntax.c (update_syntax_cache): Update and report statistics.
5396
5397         [Major syntax cache optimizations]
5398
5399         syntax.c (lookup_syntax_properties): Default off.
5400
5401         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5402         * syntax.c (update_syntax_cache):
5403         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5404
5405         [Minor syntax cache optimizations and code clarifications]
5406
5407         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5408         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5409         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5410         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5411         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5412         (Code clarification.)
5413
5414         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5415         scan_lists): Compute code from syncode, use Boolean macros instead
5416         of redundant masking operations.  (Code clarification; any decent
5417         compiler can do this optimization.)
5418
5419         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5420         for clarity.
5421
5422         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5423         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5424         use F*_single_property_change instead of F*_extent_change.
5425         Currently F*_single_property_change is _much_ less efficient.
5426
5427         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5428         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5429         syntax_cache.object properly, don't leave Qt or Qnil.
5430         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5431         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5432         tests for Qt or Qnil.
5433
5434 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5435
5436         * redisplay.c (point_in_line_start_cache): 
5437         * extents.c (print_extent_1):
5438         Fix warnings.
5439
5440         * extents.c (Fset_extent_property): Document `syntax-table' property.
5441
5442         * extents.h (Fnext_single_property_change): EXFUN it.
5443
5444 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5445
5446         * search.c (clear_unused_search_regs): New static function.
5447         (search_buffer): 
5448         (simple_search): 
5449         (boyer_moore):
5450         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5451         Minor clarifications in comments.
5452
5453         * regex.c (re_match_2_internal): Ensure no stale submatches.
5454
5455 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5456
5457         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5458
5459 2002-08-29  Jerry James  <james@xemacs.org>
5460
5461         * lisp.h: structrures -> structures.
5462
5463 2002-06-03  Andy Piper  <andy@xemacs.org>
5464
5465         * frame.c (frame_conversion_internal): add conversion appropriate
5466         for setting frame dimensions in pixels.
5467
5468         * console.h (struct console_methods): add device-specific widget
5469         layout functions.
5470
5471         * emacs.c (main_1): initialize glyph vars.
5472
5473         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5474         (handle_focus_event_2): new function. Allow focus to
5475         be set to a particular window and widget.
5476         (enqueue_focus_event): new function. Create a
5477         synthetic focus event.
5478         (emacs_Xt_handle_magic_event): call
5479         handle_focus_event_2.
5480
5481         * frame.c (Fset_frame_pixel_height): new function. Allow
5482         pixel-based sizing. Does the right thing on character-oriented
5483         displays.
5484         (Fset_frame_pixel_width): ditto.
5485         (Fset_frame_pixel_size): ditto.
5486         (syms_of_frame): declare.
5487
5488         * general-slots.h: add :vertically-justify and
5489         :horizontally-justify.
5490
5491         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5492         (mswindows_widget_border_width): new function.
5493         (mswindows_combo_box_instantiate): set border widths.
5494         (console_type_create_glyphs_mswindows): declare.
5495
5496         * glyphs-widget.c:
5497         (check_valid_justification): allow vertical and horizontal
5498         justification.
5499         (widget_border_width): new function. Call device methods.
5500         (widget_instance_border_width): ditto.
5501         (logical_unit_height): new function. Determine the height of a
5502         logical-unit. Logical units are intended to provide grid-like
5503         layout for subcontrols in a layout. If the layout is
5504         :vertically-justify top then subcontrols will be positioned on
5505         logical-unit boundaries, thus allowing adjacent subcontrols to
5506         line up.
5507         (widget_logical_unit_height): ditto for widgets.
5508         (redisplay_widget): misc cleanup.
5509         (widget_spacing): new function. Call device specific
5510         methods. Intended to be the default gap between adjacent widgets.
5511         (widget_query_geometry): use new spacing functions to determine
5512         appropriate geometry.
5513         (initialize_widget_image_instance): initialize horizontal and
5514         vertical justification.
5515         (widget_instantiate): use logica-units where appropriate for
5516         sizing large widgets.
5517         (button_query_geometry): use widget_instance_border_width.
5518         (tree_view_query_geometry): ditto.
5519         (tab_control_query_geometry): ditto.
5520         (edit_field_query_geometry): new function.
5521         (layout_update): pick up :justify, :horizontally-justify and
5522         :vertically-justify none of which worked previously. :justify is
5523         used as a fallback for both horizontal and vertical justification.
5524         (layout_query_geometry): use logical units to size appropriately.
5525         (layout_layout): ditto.
5526         (Fwidget_logical_to_character_width): new function. Allow users to
5527         convert from logical units to characters so that frame sizes can
5528         be set appropriately.
5529         (Fwidget_logical_to_character_height): ditto.
5530         (syms_of_glyphs_widget): declare.
5531         (image_instantiator_edit_fields): add edit_field_query_geometry.
5532         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5533         :horizontally-justify.
5534         (specifier_vars_of_glyphs_widget): new function. Declare
5535         Vwidget_border_width which is not yet used.
5536
5537         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5538         (x_widget_border_width): new function.
5539         (x_widget_instantiate): create a sensible name for widgets.
5540         (console_type_create_glyphs_x): declare x_widget_border_width.
5541
5542         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5543         (struct Lisp_Image_Instance): add :vertically-justify and
5544         :horizontally-justify.
5545         (LAYOUT_JUSTIFY_TOP): new.
5546         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5547         (ROUND_UP): new macro. Round argument up to next integral
5548         interval.
5549
5550         * redisplay-output.c (redisplay_output_layout): misc formatting.
5551
5552         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5553
5554 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5555
5556         * XEmacs 21.4.9 "Informed Management" is released.
5557
5558 2002-08-19  Andy Piper  <andy@xemacs.org>
5559
5560         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5561         win32 format.
5562
5563         * realpath.c (xrealpath): normalize drive spec also so that dir
5564         sep chars are not mixed on cygwin.
5565
5566 2002-08-06  Jerry James  <james@xemacs.org>
5567
5568         * window.c (Fsplit_window): Count only half of the divider width
5569         against the left window when splitting horizontally. 
5570
5571 2002-06-24  Andy Piper  <andy@xemacs.org>
5572
5573         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5574         toolbar was cleared.
5575
5576         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5577         function. Split out from mswindows_output_frame_toolbars.
5578         (mswindows_output_frame_toolbars): move clear pieces to
5579         mswindows_output_frame_toolbars.
5580
5581         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5582         out from gtk_output_frame_toolbars.
5583         (gtk_output_frame_toolbars): move clear pieces to
5584         gtk_clear_frame_toolbars.
5585
5586         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5587         the frame is cleared. How this ever worked before is a mystery.
5588         (x_output_frame_toolbars): Only output toolbars.
5589         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5590
5591         * gutter.c (update_gutter_geometry):
5592         Mark frame layout changed.
5593         (update_frame_gutter_geometry, update_frame_gutters):
5594         Respect frame_layout_changed.
5595
5596         * console.h (struct console_methods): add
5597         clear_frame_toolbars_method.
5598
5599         * redisplay.c (redisplay_frame): call
5600         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5601
5602         * toolbar.h: declare update_frame_toolbars_geometry.
5603
5604         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5605         out from update_frame_toolbars.  Call clear_frame_toolbars.
5606         (update_frame_toolbars): only output, do not change geometry.
5607
5608         * redisplay.c: add frame_layout_changed.
5609
5610         * redisplay.h: add frame_layout_changed.
5611         (CLASS_RESET_CHANGED_FLAGS): set it.
5612         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5613         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5614         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5615
5616         * device.h (struct device): add frame_layout_changed.
5617         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5618
5619         * frame.h (struct frame): add frame_layout_changed.
5620         (MARK_FRAME_LAYOUT_CHANGED): new.
5621
5622 2002-06-30  Mike Alexander  <mta@arbortext.com>
5623
5624         * event-msw.c (mswindows_need_event): Don't wait for a new message
5625         if the queue is not empty.  Suggested by Paul Moore.
5626
5627 2002-06-12  Andy Piper  <andy@xemacs.org>
5628
5629         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5630         for printing on accurately.
5631
5632 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5633
5634         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5635         WM_ACTIVATE message. Make sure that the frame is visible if the
5636         window is visible. This seemss to fix the problem where XEmacs
5637         appears to freeze after switching desktops with certain virtual
5638         window managers.
5639         (debug_output_mswin_message): Added code to output message
5640         parameters for WM_WINDOWPOSCHANGED, 
5641         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5642
5643 2002-05-25  Andy Piper  <andy@xemacs.org>
5644
5645         * select-x.c (vars_of_select_x): Fix docstring of
5646         x-selection-strict-motif-ownership
5647
5648 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5649
5650         * keymap.c (get_keymap):
5651         Add comment about do_autoload GCPROs own args.
5652
5653 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5654
5655         * bytecode.c (execute_optimized_program): check_opcode ifdef
5656         ERROR_CHECK_BYTE_CODE.
5657
5658 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5659
5660         Thanks to Ben Wing and Michael Sperber.
5661
5662         * eval.c (Fcommand_execute):
5663         (Feval):
5664         (Ffuncall):
5665         (Fmacroexpand_internal):
5666         (function_argcount):
5667         callint.c (Fcall_interactively):
5668         Add comment about do_autoload GCPROs own args.
5669
5670         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5671
5672         * eval.c (Ffuncall): Extra braces to placate GCC.
5673
5674 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5675
5676         * backtrace.h (grow_specpdl):
5677         (SPECPDL_RESERVE):
5678         * EmacsFrame.c (EmacsFrameSetValues):
5679         * eval.c (grow_specpdl):
5680         * ExternalShell.c (hack_event_masks_1):
5681         * glyphs-x.c (convert_EImage_to_XImage): 
5682         (x_finalize_image_instance):
5683         * ralloc.c (page_size):
5684         (r_alloc_sbrk):
5685         * xgccache.c (gc_cache_hash):
5686         Fix unsigned comparison warnings.
5687
5688 2002-07-29  Jerry James  <james@xemacs.org>
5689
5690         * lread.c (locate_file): Any nonnegative return value indicates
5691         success if MODE is nonnegative.
5692
5693 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5694
5695         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5696         argument. 
5697
5698 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5699
5700         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5701
5702         * dumper.c (pdump_get_indirect_count):
5703         (pdump_scan_by_alignment):
5704         (pdump_dump_root_struct_ptrs):
5705         (pdump_dump_rtables):
5706         (pdump_dump_root_objects):
5707         (pdump):
5708         * nas.c (WaveOpenDataForReading):
5709         * fns.c (print_bit_vector):
5710         * font-lock.c (SINGLE_SYNTAX_STYLE):
5711         * glyphs.c (check_for_ignored_expose):
5712         (find_matching_subwindow):
5713         * glyphs-eimage.c:
5714         * imgproc.c (get_histogram):
5715         * redisplay.c (point_in_line_start_cache):
5716         * redisplay-output.c (redisplay_unmap_subwindows):
5717         * symbols.c (defsymbol_massage_name_1):
5718         (defkeyword_massage_name):
5719         (deferror_massage_name_and_message):
5720         * redisplay-x.c (x_output_string): 
5721         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5722         * frame.h (struct frame):
5723         * filelock.c (current_lock_owner):
5724         * doprnt.c (emacs_doprnt_1):
5725         * lisp.h (struct Lisp_Bit_Vector):
5726         (DO_REALLOC):
5727         Fix warnings.
5728
5729 2002-02-13  Ben Wing  <ben@xemacs.org>
5730
5731         * event-stream.c (reset_key_echo):
5732         * event-stream.c (reset_this_command_keys):
5733         * event-stream.c (execute_command_event):
5734         If console is dead as a result of C-x 5 0, then post-command stuff
5735         needs to be careful and do only non-console-specific stuff.
5736
5737 2002-07-01  Mike Sperber <mike@xemacs.org>
5738
5739         * process-unix.c (unix_send_process): Mark coding_outstream as
5740         non-open upon SIGPIPE.
5741
5742         * event-stream.c (Fnext_event): Reorder switch cases to something
5743         that makes sense.
5744
5745 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5746
5747         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5748         Don't bogusly reinitialize ascii_character property.
5749
5750 2002-07-08  Mike Sperber <mike@xemacs.org>
5751
5752         * process.c (Fstart_process_internal): Do error checking before we
5753         fork off the child, so the child can't muck with the state of the
5754         parent.
5755
5756 2002-07-08  Mike Sperber <mike@xemacs.org>
5757
5758         * ralloc.c (init_ralloc): Allocate properly for pdump.
5759
5760 2002-06-12  Andy Piper  <andy@xemacs.org>
5761
5762         * glyphs.c (query_string_geometry): check the string.
5763
5764         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5765         widget names.
5766
5767 2002-06-17  Jerry James  <james@xemacs.org>
5768
5769         * sysdll.c: Remove RTLD_GLOBAL initialization.
5770         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5771
5772 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5773
5774         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5775
5776 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5777
5778         * sysdep.c (sys_rename): Make sys_rename work for the case where
5779         Windows rename sets errno to EACCES if target file exists.
5780
5781 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5782
5783         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5784         Fix detection of metric units to work on Win95
5785
5786 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5787
5788         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5789
5790 2002-04-25  Andy Piper  <andy@xemacs.org>
5791
5792         * redisplay.c (create_text_block): Remove extra comment trailer.
5793
5794 2002-04-24  Andy Piper  <andy@xemacs.org>
5795
5796         * redisplay.c (create_text_block): Don't actually add propagation
5797         data if the line ends after we have added a glyph.
5798
5799 2002-04-22  Andy Piper  <andy@xemacs.org>
5800
5801         * extents.c (extent_fragment_update): check for glyphs we have
5802         previously displayed.
5803         * extents.c (print_extent_1): warning removal.
5804         * extents.h: change prototype.
5805         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5806         widths correctly for wide glyphs.
5807         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5808         * redisplay.c (prop_type): add PROP_GLYPH.
5809         * redisplay.c (struct prop_block): add glyph type
5810         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5811         to the propagation data.
5812         * redisplay.c (create_text_block): if there is a glyph in the
5813         propagation data use it to salt extent_fragment_update.
5814         * redisplay.c (create_string_text_block): ditto.
5815
5816 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5817
5818         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5819         * redisplay-output.c (compare_runes): Compare them.
5820         * redisplay.c: Update copyright date.
5821         * redisplay.c (pos_data): Add need_baseline_computation field.
5822         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5823         need_baseline_computation; zero yoffset. Set max_pixmap_height
5824         for all pixmaps, not just automatically positioned ones.
5825         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5826         * redisplay.c (calculate_baseline): New, compute textual baseline.
5827         * redisplay.c (add_glyph_rune): Call them.
5828         * redisplay.c (create_text_block): Likewise.
5829         * redisplay.c (create_overlay_glyph_block): Likewise.
5830         * redisplay.c (add_margin_runes): Likewise.
5831         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5832
5833         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5834         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5835         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5836         * redisplay-msw.c (mswindows_output_string): Likewise.
5837         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5838         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5839         * redisplay-x.c (x_output_display_block): Likewise.
5840
5841 2002-03-28  Ben Wing  <ben@xemacs.org>
5842
5843         * redisplay.c: Fixed bug in redisplay
5844         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5845         and down of the lines, since they're bigger than the line
5846         size. (It was seen most obviously when there's a horizontal scroll
5847         bar, e.g. do C-h a glyph or something like that.) The problem was
5848         that the glyph-contrib-p setting on glyphs was ignored even if it
5849         was set properly, which it wasn't until now.
5850
5851 2002-04-24  Andy Piper  <andy@xemacs.org>
5852
5853         * lisp.h (Dynarr_end): Fix definition.
5854
5855 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5856
5857         * redisplay.c (mark_redisplay): Remove call to
5858         update_frame_window_mirror.
5859
5860 2001-11-15  Andy Piper  <andy@xemacs.org>
5861
5862         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5863         cygwin (again).
5864
5865 2002-02-13  Andy Piper  <andy@xemacs.org>
5866
5867         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5868         we did in fact enqueue the XM_MAPFRAME event.
5869
5870 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5871
5872         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5873         to fix problem switching between virtual desktops under virtuawin
5874         virtual window manager.
5875
5876 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5877
5878         * event-msw.c: Typo fix.
5879         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5880         magic XM_MAPFRAME event has been sent.
5881
5882 2001-11-23  Andy Piper  <andy@xemacs.org>
5883
5884         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5885
5886 2001-11-21  Andy Piper  <andy@xemacs.org>
5887
5888         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5889         mouse events outside the frame.
5890
5891 2002-03-20  Andy Piper  <andy@xemacs.org>
5892
5893         * menubar-msw.c (mswindows_popup_menu): warning removal.
5894         * dialog-msw.c (dialog_popped_down): ditto.
5895
5896 2001-12-11  Andy Piper  <andy@xemacs.org>
5897
5898         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5899         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5900         popup_up_p.
5901         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5902         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5903         * menubar-msw.c (mswindows_popup_menu): ditto.
5904
5905 2001-10-29  Andy Piper  <andy@xemacs.org>
5906
5907         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5908         cancels.
5909
5910 2002-01-03  Andy Piper  <andy@xemacs.org>
5911
5912         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5913         letters.
5914         (xrealpath): ditto.
5915
5916 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5917
5918         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5919         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5920         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5921         Detect and handle case where machine is set up for metric units
5922
5923 2002-04-02  Andy Piper  <andy@xemacs.org>
5924
5925         * dired-msw.c (mswindows_get_files): 
5926         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5927         completely handled by XEmacs. Suggested by Thomas Vogler
5928         <mail@thomas-vogler.de>.
5929
5930 2001-11-14  Andy Piper  <andy@xemacs.org>
5931
5932         * nt.c (REG_ROOT): change registry key to XEmacs.
5933
5934 2002-04-27  Andy Piper  <andy@xemacs.org>
5935
5936         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5937
5938 2002-04-26  Andy Piper  <andy@xemacs.org>
5939
5940         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5941         behavior.
5942
5943 2002-03-14  Mike Alexander  <mta@arbortext.com>
5944
5945         * event-msw.c (mswindows_unwait_process): New, remove process from
5946         wait list
5947         * process-nt.c (nt_finalize_process_data): Call
5948         mswindows_unwait_process
5949         * console-msw.h: Declare mswindows_unwait_process
5950
5951 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5952
5953         * editfns.c (Fdecode_time):
5954         (Fformat_time_string):
5955         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5956         (make_time): Warning elimination (change arg name).
5957
5958 2001-11-24  Andy Piper  <andy@xemacs.org>
5959
5960         * window.c (Fsplit_window): Doc return type.
5961
5962 2002-04-01  Andy Piper  <andy@xemacs.org>
5963
5964         * emacs.c (Fkill_emacs): Only output message box in interactive
5965         mode.
5966
5967 2002-04-26  Andy Piper  <andy@xemacs.org>
5968  
5969         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5970         cygwin.
5971
5972 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5973
5974         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5975         bit platform.
5976
5977 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5978
5979         * XEmacs 21.4.8 "Honest Recruiter" is released.
5980
5981 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5982
5983         Supersedes 2002-04-17 patch.
5984
5985         * process.h (PROCESS_LIVE_P): Use the process status as
5986         evidence of health, not the state of the input stream.
5987         (PROCESS_READABLE_P): Say if the process is readable
5988         from. (It may be dead nonetheless.)
5989         (CHECK_READABLE_PROCESS): Test for that condition.
5990
5991         * process.c (create_process): Use PROCESS_READABLE_P.
5992         (read_process_output, set_process_filter): Likewise.
5993
5994         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5995         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5996
5997         This code is #if 0'd, this is not the time to add new functions:
5998
5999         * process.c (Fprocess_readable_p): Report readability status.
6000         * process.c (Qprocess_readable_p): New, associated symbol...
6001         * process.c (syms_of_process): ... initialize it.
6002
6003 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6004
6005         * XEmacs 21.4.7 "Economic Science" is released.
6006
6007 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6008
6009         * process.h (PROCESS_LIVE_P): Use the process status as
6010         evidence of health, not the state of the input stream.
6011
6012 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6013
6014         * sysdep.c (sys_siglist): change "signum" to "signal"
6015
6016 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6017
6018         * s/darwin.h: New file.
6019         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6020         
6021 2002-04-23  Andreas Jaeger  <aj@suse.de>
6022
6023         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6024         which use lib64 for 64-bit libs.
6025         (START_FILES): Likewise.
6026
6027 2002-02-11  Mike Sperber  <mike@xemacs.org>
6028
6029         * device-x.c: 
6030         (x_IO_error_handler):
6031         (x_init_device): Temporarily keep device in static variable
6032         `device_being_initialized' so we can recover gracefully from
6033         internal XOpenDevice failure.  (XOpenDevice is documented to
6034         return NULL on failure, but sometimes calls the IO error handler
6035         instead.)
6036
6037 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6038
6039         * dired.c (Ffile_name_all_completions): Change documentation --
6040         remove reference to completion-ignored-extensions.
6041         * dired.c (vars_of_dired): Change documentation for
6042         completion-ignored-extensions -- remove reference to
6043         file-name-all-completions.
6044
6045 2002-03-06  Jerry James  <james@xemacs.org>
6046
6047         * emodules.c (emodules_load): Fix multiple loading of same module.
6048
6049 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6050         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6051         RTLD_LAZY to avoid incorrect symbol binding when using nested
6052         shared libraries on Solaris.
6053
6054 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6055
6056         * fileio.c (Ffind_file_name_handler): Improve docstring.
6057
6058 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6059
6060         * fns.c (Fmapconcat): Improve docstring.
6061
6062 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6063
6064         * device-gtk.c: Add prototype for
6065         emacs_gtk_selection_clear_event_handle.
6066         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6067         selection.  Setup signal handler for "selection_clear_event"
6068         (emacs_gtk_selection_clear_event_handle).
6069
6070         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6071         other applications owning the clipboard (based on
6072         x_handle_selection_clear).
6073
6074 2001-12-23  William M. Perry  <wmperry@gnu.org>
6075
6076         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6077         
6078 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6079
6080         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6081
6082 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6083
6084         * XEmacs 21.4.6 "Common Lisp" is released.
6085
6086 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6087
6088         * search.c (Freplace_match): Add missing sub-expression functionality.
6089
6090         * buffer.c (decode_buffer): Add a check for pointer type to
6091         decode_buffer, before gcc's CSE optimization reorders a
6092         dereference in front of the allow_string test.
6093
6094 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6095
6096         * window.c (window_loop): Fix bug that sometimes prevented
6097         window_loop() from iterating across multiple devices.  Also, at
6098         Ben's request, changed infloop-detecting code to abort() instead
6099         of silently terminating window_loop().
6100
6101 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6102
6103         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6104         * editfns.c (make_time): New function.
6105         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6106         * lisp.h (make_time): Prototype and comment it.
6107         * dired.c (wasteful_word_to_lisp): Deprecate.
6108         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6109
6110 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6111
6112         * fileio.c (auto_save_1): Use current coding system, not
6113         escape-quoted.
6114
6115 2001-11-13  Ben Wing  <ben@xemacs.org>
6116
6117         * window.c:
6118         * window.c (window_truncation_on):
6119         * window.c (syms_of_window):
6120         truncate-partial-width-windows should respect the buffer being
6121         displayed, like other redisplay vars.
6122
6123 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6124
6125         * event-stream.c (Fread_key_sequence): save current buffer.
6126
6127 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6128
6129         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6130
6131 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6132
6133         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6134
6135 2001-10-26  Mike Alexander  <mta@arbortext.com>
6136
6137         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6138
6139 2001-10-25  Andy Piper  <andy@xemacs.org>
6140
6141         * ChangeLog:
6142         * dialog-msw.c (handle_directory_proc): new function.
6143          (handle_directory_dialog_box): new fucntion.
6144          (handle_file_dialog_box): use new directory dialog support.
6145          (mswindows_make_dialog_box_internal): ditto.
6146         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6147         handling.
6148         (mswindows_find_frame): make global.
6149         * fileio.c (Fexpand_file_name): build fix.
6150         * general-slots.h: add Qdirectory.
6151         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6152         handling.
6153         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6154         cygwin not leaving win32 paths unchanged.
6155         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6156         cygwin runtime to do path conversion.
6157         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6158         (syms_of_win32): add new function.
6159         * window.c (window_loop): build fix.
6160
6161 2001-10-15  Andy Piper  <andy@xemacs.org>
6162
6163         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6164
6165 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6166
6167         * XEmacs 21.4.5 "Civil Service" is released.
6168
6169 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6170
6171         * glyphs-x.c: Force buffer-tab highlight update when moving the
6172         buffer, avoiding an ugly black border, used for keyboard focus
6173         indication, on a widget that can never have keyboard focus, the
6174         buffer tab.
6175
6176 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6177
6178         * process-unix.c (unix_open_multicast_group): Remove too much
6179         conversion between host and network byte order.
6180
6181 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6182
6183         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6184         before replacing them.
6185
6186         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6187         operation.
6188
6189         * src/window.c (undedicate_windows): Use it.
6190         * src/window.h: Add prototype.
6191
6192 2001-09-17  Ben Wing  <ben@xemacs.org>
6193
6194         * fileio.c (normalize_filename):
6195         * fileio.c (Fexpand_file_name):
6196         Fix various C++ compile errors in Andy's recent code.
6197         
6198         * callint.c (Fcall_interactively):
6199         * editfns.c (Ftemp_directory):
6200         * editfns.c (Fuser_full_name):
6201         * emacs.c (argmatch):
6202         * lread.c (locate_file_map_suffixes):
6203         * redisplay-x.c (x_ring_bell):
6204         Fix sign-compare warnings.
6205         
6206 2001-09-08  Andy Piper  <andy@xemacs.org>
6207
6208         * fileio.c (normalize_filename): copied from nt.c
6209         * (Ffile_name_directory): enable win32 paths under cygwin.
6210         * (Ffile_name_nondirectory): ditto.
6211         * (directory_file_name): ditto.
6212         * (Fexpand_file_name): ditto.
6213         * (Ffile_truename): ditto.
6214         * (Fsubstitute_in_file_name): ditto.
6215         * (Ffile_name_absolute_p): ditto.
6216         * (Ffile_readable_p): ditto.
6217
6218 2001-09-08  Andy Piper  <andy@xemacs.org>
6219
6220         * device-msw.c (mswindows_finish_init_device): remove dde
6221         initialization.
6222         * device-msw.c (mswindows_init_dde): factor out from
6223         mswindows_finish_init_device()
6224         * device-msw.c (init_mswindows_very_early): new function
6225         initialize but don't enable dde.
6226         * emacs.c (main_1): call init_mswindows_very_early.
6227         * event-msw.c:
6228         * event-msw.c (mswindows_dde_callback): only execute when we are
6229         ready.
6230         * symsinit.h: declare init_mswindows_very_early.
6231
6232 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6233
6234         [sjt: This has been in 21.5 for months with no complaints.]
6235
6236         * console.h (struct console_methods): Added flags member.
6237         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6238         (CONMETH_IMPL_FLAG):
6239         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6240         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6241
6242         * device.c (window_system_pixelated_geometry): Use the above macros.
6243
6244         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6245         implememntation flag.
6246         * device.h (DEVICE_DISPLAY_P): Use it.
6247
6248         * frame.c (delete_frame_internal): Use the above macro.
6249
6250         * redisplay.c (redisplay_device): Use it.
6251         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6252         (redisplay_frame): Ditto.
6253
6254         * device-msw.c (mswindows_device_implementation_flags): Removed.
6255         (msprinter_device_implementation_flags): Removed.
6256         (console_type_create_device_mswindows): Removed references to
6257         implementation_flags methods, set implementation flags here.
6258         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6259
6260         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6261         (console_type_create_device_gtk): Removed method declaration.
6262         Added commented out statement which semantically matches the
6263         commented out statement in the above removed method.
6264
6265 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6266
6267         The attached patch fixes a few warnings. 
6268
6269         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6270         * src/frame-gtk.c: guard against GNOME calls in GTK only
6271         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6272         * src/select-gtk.c: prototype lisp_to_time
6273
6274 2001-06-08  Ben Wing  <ben@xemacs.org>
6275
6276         ------ gc-in-window-procedure fixes ------
6277         
6278         * alloc.c:
6279         * alloc.c (struct post_gc_action):
6280         * alloc.c (register_post_gc_action):
6281         * alloc.c (run_post_gc_actions):
6282         * alloc.c (garbage_collect_1):
6283         Create "post-gc actions", to avoid those dreaded "GC during window
6284         procedure" problems.
6285
6286         * event-msw.c:
6287         Abort, clean and simple, when GC in window procedure.  We want
6288         to flush these puppies out.
6289
6290         * glyphs-msw.c:
6291         * glyphs-msw.c (finalize_destroy_window):
6292         * glyphs-msw.c (mswindows_finalize_image_instance):
6293         Use a post-gc action when destroying subwindows.
6294
6295         * lisp.h:
6296         Declare register_post_gc_action().
6297
6298         * scrollbar-msw.c:
6299         * scrollbar-msw.c (unshow_that_mofo):
6300         Use a post-gc action when unshowing scrollbar windows, if in gc.
6301
6302         * redisplay.c (mark_redisplay):
6303         Add comment about the utter evilness of what's going down here.
6304
6305         ------ cygwin setitimer fixes ------
6306         
6307         * Makefile.in.in (sheap_objs):
6308         * Makefile.in.in (profile_objs):
6309         * Makefile.in.in (objs):
6310         Compile profile.c only when HAVE_SETITIMER.
6311         
6312         * nt.c (mswindows_sigset):
6313         * nt.c (mswindows_sighold):
6314         * nt.c (mswindows_sigrelse):
6315         * nt.c (mswindows_sigpause):
6316         * nt.c (mswindows_raise):
6317         * nt.c (close_file_data):
6318         Style fixes.
6319         
6320         * nt.c:
6321         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6322         
6323         * profile.c:
6324         * profile.c (Fstart_profiling):
6325         * profile.c (Fstop_profiling):
6326         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6327         instead of just plain setitimer().
6328         
6329         * signal.c:
6330         * signal.c (set_one_shot_timer):
6331         * signal.c (alarm):
6332         Define qxe_setitimer() as an encapsulation around setitimer() --
6333         call setitimer() directly unless Cygwin or MS Win, in which case
6334         we use our simulated version in win32.c.
6335         
6336         * systime.h:
6337         * systime.h (struct itimerval):
6338         * systime.h (ITIMER_REAL):
6339         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6340         comment about "qxe" and the policy regarding encapsulation.
6341
6342         * win32.c:
6343         * win32.c (setitimer_helper_proc):
6344         * win32.c (setitimer_helper_period):
6345         * win32.c (setitimer_helper):
6346         * win32.c (mswindows_setitimer):
6347         Move setitimer() emulation here, so Cygwin can use it.
6348         Rename a couple of functions and variables to be longer and more
6349         descriptive.  In setitimer_helper_proc(), send the signal
6350         using either mswindows_raise() or (on Cygwin) kill().  If for
6351         some reason we are still getting lockups, we'll change the kill()
6352         to directly invoke the signal handlers.
6353
6354         ------ windows shell fixes ------
6355         
6356         * callproc.c:
6357         * ntproc.c:
6358         Comments about how these two files must die.
6359
6360         * callproc.c (init_callproc):
6361         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6362         not just COMSPEC. (more correct and closer to FSF.) Don't
6363         force a value for SHELL into the environment. (Comments added
6364         to explain why not.)
6365         
6366         * nt.c (init_user_info):
6367         Don't shove a fabricated SHELL into the environment.  See above.
6368
6369 2001-06-01  Ben Wing  <ben@xemacs.org>
6370
6371         * Makefile.in.in (ldflags):
6372         eliminate that pesky "defaulting to 00401000" warning.
6373         * nt.h:
6374         eliminate warnings.
6375
6376 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6377
6378         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6379         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6380
6381 2001-04-24  Jerry James <james@xemacs.org>
6382
6383         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6384         correct order.
6385
6386 2001-06-01  Ben Wing  <ben@xemacs.org>
6387
6388         * event-msw.c (debug_mswin_messages):
6389         conditionalize the messages that were causing compile errors.
6390         (if only macros could generate #ifdef statements ...)
6391
6392 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6393
6394         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6395
6396 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6397
6398         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6399
6400 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6401
6402         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6403         * process-unix.c (unix_canonicalize_host_name):
6404         sysdep.c (init_system_name):
6405         Use it to conditionally support IPv6 canonicalization.
6406
6407 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6408
6409         * event-msw.c:
6410         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6411
6412 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6413
6414         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6415         attempt is made to scroll when no scroll bar is available.
6416
6417 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6418
6419         * input-method-motif.c (XIM_delete_frame): New callback.
6420         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6421         got deleted from 21.4.3.)
6422
6423 2001-06-01  Ben Wing  <ben@xemacs.org>
6424
6425         * nt.c (mswindows_utime):
6426         * nt.c (close_file_data):
6427         fix off-by-one-indirection error.
6428
6429 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6430
6431         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6432         because set_file_times() now takes Lisp_Object path, instead of
6433         char*.
6434         * nt.c: Include buffer.h.
6435         * nt.c (convert_from_time_t): New.
6436         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6437         not set mtime correctly.
6438         * nt.h: Declare mswindows_utime().
6439         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6440         path, instead of char*.
6441         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6442
6443 2001-05-30  Ben Wing  <ben@xemacs.org>
6444
6445         For 21.4:
6446
6447         (Stephen, just take all event-msw.c patches.  This includes
6448         the "iconify" fix below.)
6449
6450         * event-msw.c:
6451         * event-msw.c (mswindows_dequeue_dispatch_event):
6452         * event-msw.c (assert):
6453         * event-msw.c (emacs_mswindows_quit_p):
6454         * event-msw.c (debug_mswin_messages):
6455         * event-msw.c (debug_output_mswin_message):
6456         * event-msw.c (vars_of_event_mswindows):
6457         Fix yet more problems with C-g handling.
6458         Implement debug-mswindows-events.
6459         
6460 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6461
6462         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6463         
6464 2001-05-23  Ben Wing  <ben@xemacs.org>
6465
6466         * event-msw.c (winsock_writer):
6467         * event-msw.c (winsock_closer):
6468         prior kludgy code was clobbering the buffer, thinking it was
6469         "unused" space to store an unneeded return value; instead, use
6470         the variable we've already got staring us in the face.
6471
6472 2001-05-17  Andy Piper  <andy@xemacs.org>
6473
6474         * sysfile.h: don't assume that file attributes are boolean
6475
6476 2001-05-23  Ben Wing  <ben@xemacs.org>
6477
6478         * device-msw.c (msprinter_init_device):
6479         signal an error rather than crash with an unavailable network
6480         printer (from Mike Alexander).
6481         
6482         * event-msw.c:
6483         * event-msw.c (struct winsock_stream):
6484         * event-msw.c (winsock_writer):
6485         * event-msw.c (winsock_closer):
6486         * event-msw.c (make_winsock_stream_1):
6487         cleanup headers.  fix (hopefully) an error with data corruption
6488         when sending to a network connection.
6489
6490         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6491         to handle the ~user prefix by (a) always assuming we're referencing
6492         ourselves and not even verifying the user -- hence any file with
6493         a tilde as its first char is invalid! (b) if there wasn't a slash
6494         following the filename, the pointer was set *past* the end of
6495         file and we started reading from uninitialized memory.  Now we
6496         simply treat these as files, always.
6497
6498         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6499         
6500 2001-05-19  Ben Wing  <ben@xemacs.org>
6501
6502         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6503
6504         * process-nt.c:
6505         * process-nt.c (vars_of_process_nt):
6506         remove unused mswindows-quote-process-args.  rec for 21.4.
6507         
6508 2001-05-12  Ben Wing  <ben@xemacs.org>
6509
6510         * event-msw.c (mswindows_dde_callback):
6511         * event-msw.c (mswindows_wnd_proc):
6512         eliminate cygwin warnings.
6513
6514 2001-05-06  Ben Wing  <ben@xemacs.org>
6515
6516         * console-msw.h:
6517         * device-msw.c:
6518         * device-msw.c (print_dialog_worker):
6519         * device-msw.c (mswindows_handle_print_dialog_box):
6520         * device-msw.c (syms_of_device_mswindows):
6521         * dialog-msw.c (mswindows_make_dialog_box_internal):
6522         * general-slots.h:
6523         implement printing the selection when it's selected.
6524
6525 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6526
6527         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6528
6529 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6530
6531         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6532         EMACS_INT is signed.
6533
6534 2001-04-15  Michael Lausch  <mla@1012surf.net>
6535
6536         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6537         gtk_widget_request_size() to give scrollbar >0 width for
6538         GTK >1.2.8.
6539
6540 2001-05-30  William M. Perry  <wmperry@gnu.org>
6541
6542         * event-gtk.c: Check for buttons as modifier keys.
6543
6544 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6545
6546         * s\mingw32.h:
6547         Properly find MinGW's <process.h> inside Cygwin's restructured
6548         include directories.  Don't try to include <cygwin/version.h>
6549         since we are dropping support for MinGW in versions of Cygwin
6550         earlier than b21.
6551         * nt.c:
6552         Drop support for MinGW in versions of Cygwin before b21.
6553         * sysdep.c:
6554         Properly find MinGW's <process.h> inside Cygwin's restructured
6555         include directories.
6556         * syswindows.h:
6557         Drop support for MinGW in versions of Cygwin before b21.
6558         * unexcw.c:
6559         Even though a.out.h is no longer detected by configure, allow
6560         MinGW to use it until we figure out how to do the job with Win32.
6561
6562 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6563
6564         * syntax.c (find_start_of_comment):
6565         Fix `unbalanced parentheses' bug when dealing with mixed comment
6566         styles in c++/java/etc. mode
6567
6568 2001-05-29  Mike Alexander  <mta@arbortext.com>
6569
6570         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6571         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6572
6573 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6574
6575         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6576
6577 2001-03-31  Mike Sperber <mike@xemacs.org>
6578
6579         * search.c (Freplace_match): Support FSF-style specification of
6580         match subexpression when applied to a buffer.
6581
6582 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6583
6584         * event-stream.c (is_scrollbar_event): add missing semicolon
6585
6586 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6587
6588         * Makefile.in.in: Use TAR macro instead of hardcoding
6589           tar.  Allows use of GNU tar instead of system tar
6590
6591 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6592
6593         * event-stream.c (is_scrollbar_event): add missing semicolon
6594
6595 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6596
6597         * XEmacs 21.4.3 "Academic Rigor" is released.
6598
6599 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6600
6601         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6602
6603 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6604
6605         * buffer.c (Vcase_fold_search): Remove obsolete
6606           comment about non ASCII case-fold-search.  This
6607           bug has been fixed by case-table changes.
6608
6609 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6610
6611         * event-msw.c: Restore include of events-mod.h.
6612
6613 2001-04-22   zhaoway  <zw@debian.org>
6614
6615         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6616         !HAVE_SCROLLBARS.
6617
6618 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6619
6620         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6621
6622 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6623
6624         * mule-charset.c (Fmake_charset): Add missing else.
6625
6626 2001-04-23  Ben Wing  <ben@xemacs.org>
6627
6628         * event-msw.c (FAKE_MOD_QUIT):
6629         * event-msw.c (mswindows_dequeue_dispatch_event):
6630         * event-msw.c (mswindows_wnd_proc):
6631         * event-msw.c (emacs_mswindows_quit_p):
6632         Get critical quit working.
6633
6634 2001-05-05  Ben Wing  <ben@xemacs.org>
6635
6636         * console-msw.h:
6637         * device-msw.c:
6638         * device-msw.c (mswindows_get_default_margin):
6639         * frame-msw.c (mswindows_size_frame_internal):
6640         * frame-msw.c (msprinter_init_frame_1):
6641         * frame-msw.c (vars_of_frame_mswindows):
6642         Change top/bottom margin defaults to 0.5 inches.
6643
6644 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6645
6646         Fix link error with gcc 3.0 on Linux.
6647         * terminfo.c (UP): Remove.
6648         * terminfo.c (BC): Remove.
6649         * terminfo.c (PC): Remove.
6650         They weren't used, and in any case, these symbols should be
6651         defined in the *library*.
6652
6653 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6654
6655         * s/aix4.h: Fix crash with xlc -O3.
6656         Improve comment explaining how -O3 works.
6657
6658 2001-04-15  Ben Wing  <ben@xemacs.org>
6659
6660         * event-stream.c:
6661         * event-stream.c (Fnext_event):
6662         * event-stream.c (is_scrollbar_event):
6663         * event-stream.c (execute_command_event):
6664         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6665         crash' problem.  His fix introduces other problems.  We filter
6666         out scrollbar events specifically, making them somewhat invisible
6667         to command-building, and not appearing in `this-command-keys'.
6668         More work is still needed (see comments in event-stream.c), but
6669         this fixes all the major problems.
6670
6671 2001-04-20  Ben Wing  <ben@xemacs.org>
6672
6673         * .cvsignore: Added stuff for Windows.
6674
6675 2001-04-28  Ben Wing  <ben@xemacs.org>
6676
6677         * buffer.c (Ferase_buffer):
6678         * editfns.c (buffer_insert1):
6679         * editfns.c (Finsert_before_markers):
6680         * editfns.c (Finsert_string):
6681         * editfns.c (Finsert_char):
6682         * editfns.c (Fdelete_region):
6683         * editfns.c (Fwiden):
6684         * editfns.c (Fnarrow_to_region):
6685         remove bogus lines setting zmacs_region_stays to 0.
6686         
6687 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6688
6689         * process-unix.c (unix_open_network_stream): If connect() fails
6690         invalidate file descriptor after closing it.
6691
6692 2001-03-08  Mike Alexander  <mta@arbortext.com>
6693
6694         * event-msw.c (mswindows_need_event_in_modal_loop):
6695         Don't dispatch a message if we didn't get one.
6696         (mswindows_need_event):
6697         Terminate the correct process when one exits instead of the first
6698         one on Vprocess_list and look for process termination when in
6699         mswindows_protect_modal_loop.
6700
6701 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6702
6703         * XEmacs 21.4.1 "Copyleft" is released.
6704
6705 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6706
6707         * input-method-motif.c (XIM_delete_frame): New callback.
6708         (XIM_init_frame): Register it.
6709
6710 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6711
6712         * XEmacs 21.4.0 "Solid Vapor" is released.
6713
6714 2001-04-15  Ben Wing  <ben@xemacs.org>
6715
6716         * cmdloop.c (call_command_loop):
6717         Fix braino in bit-rotting code.
6718         
6719 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6720
6721         * extents.c (Fset_extent_endpoints): Force creation of extent info
6722         in buffer_or_string.
6723
6724         * extents.c (process_extents_for_insertion_mapper): Correctly
6725         check for open-open zero-length extents.
6726
6727 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6728
6729         * lisp.h: New typedefs Memory_count, Element_count.
6730         * regex.c:
6731         * regex.h:
6732         Sign-compare warning elimination: several unsigned -> signed.
6733         Based on work by Ben Wing <ben@xemacs.org>.
6734
6735 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6736
6737         * XEmacs 21.2.47 "Zephir" is released.
6738
6739 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6740
6741         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6742
6743 2001-04-03  Mike Sperber <mike@xemacs.org>
6744
6745         * search.c: Revert previous patch due because of release.
6746
6747 2001-03-30  Ben Wing  <ben@xemacs.org>
6748
6749         * s\cygwin32.h:
6750         Add missing killpg prototype.
6751
6752         * elhash.c:
6753         Add a comment about fixing problems when a new entry is added
6754         while mapping.
6755
6756         * frame-msw.c (mswindows_init_frame_1):
6757         Fix compile warnings.
6758
6759         * menubar.c (vars_of_menubar):
6760         Provide `menu-accelerator-support' to indicate that we properly
6761         support %_ in menu specifications, so that package code can
6762         conditionalize on this (and remove %_ from menu specifications
6763         on older versions).
6764
6765         * event-msw.c:
6766         * scrollbar-msw.c:
6767         * scrollbar-msw.c (can_scroll):
6768         * scrollbar-msw.h:
6769         Fix handling of mouse wheel under Windows to follow standards --
6770         now scrolls window under pointer, not selected window.
6771
6772 2001-03-31  Mike Sperber <mike@xemacs.org>
6773
6774         * search.c (Freplace_match): Support FSF-style specification of
6775         match subexpression when applied to a buffer.
6776
6777 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6778
6779         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6780         function to modify KEYMAP, so map over a copy of the hash table.
6781
6782 2001-03-21  Martin Buchholz <martin@xemacs.org>
6783
6784         * XEmacs 21.2.46 "Urania" is released.
6785
6786 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6787
6788         * realpath.c (xrealpath): Make file-truename work with symlinks to
6789         /cygdrive paths on cygwin. Always lowercase drive-letters on
6790         native windows.
6791         (cygwin_readlink): Don't try to find canonical filename unless
6792         file exists.
6793
6794 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6795
6796         * ChangeLog: Log GTK merge.
6797
6798         * dumper.c:
6799         * select-x.c:
6800         * specifier.c:
6801         * symeval.h:
6802         Revert gratuitous whitespace changes from GTK merge.
6803
6804         * emacs.c: Document end of complex #ifdef @ l. 1495.
6805
6806
6807 2001-03-12  Andy Piper  <andy@xemacs.org>
6808
6809         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6810         have to do likewise.
6811
6812 2001-03-12  Andy Piper  <andy@xemacs.org>
6813
6814         * sysdep.c: we only support mingw now.
6815
6816 2001-03-09  Andy Piper  <andy@xemacs.org>
6817
6818         * unexcw.c (copy_executable_and_dump_data_section): making approx
6819         overrun a warning only.
6820
6821 2001-03-10  William M. Perry  <wmperry@aventail.com>
6822
6823         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6824         satisfy Stephen's identical-after-cpp plea.
6825
6826 2001-03-02  Ben Wing  <ben@xemacs.org>
6827
6828         * cmds.c:
6829         * cmds.c (Fforward_char):
6830         * syntax.c:
6831         * window.c:
6832
6833         Augment documentation of the most common motion commands to make
6834         note of the shifted-motion support.
6835         
6836 2001-03-02  Ben Wing  <ben@xemacs.org>
6837
6838         * nt.c (mswindows_fstat):
6839         * nt.c (mswindows_stat):
6840         * search.c (boyer_moore):
6841         Fix compile warnings under Windows.
6842         
6843         * sysdep.c (sys_readdir):
6844         Fix buggy filename-conversion code under Mule.
6845
6846 2001-03-09  William M. Perry  <wmperry@aventail.com>
6847
6848         * Makefile.in.in:
6849         * config.h.in:
6850         * console.c:
6851         * console.h:
6852         * device.c:
6853         * device.h:
6854         * dragdrop.c:
6855         * emacs.c:
6856         * event-stream.c:
6857         * events.c:
6858         * events.h:
6859         * faces.c:
6860         * frame.h:
6861         * general-slots.h:
6862         * glyphs.c:
6863         * gutter.c:
6864         * inline.c:
6865         * lisp.h:
6866         * lrecord.h:
6867         * make-src-depend:
6868         * redisplay-output.c:
6869         * redisplay.c:
6870         * symsinit.h:
6871         * sysfile.h:
6872         * toolbar.c:
6873         * window.c:
6874         The Great GTK Merge.
6875
6876         * ChangeLog.GTK:
6877         * console-gtk.c:
6878         * console-gtk.h:
6879         * device-gtk.c:
6880         * emacs-marshals.c:
6881         * emacs-widget-accessors.c:
6882         * event-gtk.c:
6883         * frame-gtk.c:
6884         * gccache-gtk.c:
6885         * gccache-gtk.h:
6886         * glade.c:
6887         * glyphs-gtk.c:
6888         * glyphs-gtk.h:
6889         * gtk-glue.c:
6890         * gtk-xemacs.c:
6891         * gtk-xemacs.h:
6892         * gui-gtk.c:
6893         * gui-gtk.h:
6894         * menubar-gtk.c:
6895         * native-gtk-toolbar.c:
6896         * objects-gtk.c:
6897         * objects-gtk.h:
6898         * redisplay-gtk.c:
6899         * scrollbar-gtk.c:
6900         * scrollbar-gtk.h:
6901         * select-gtk.c:
6902         * toolbar-gtk.c:
6903         * ui-byhand.c:
6904         * ui-gtk.c:
6905         * ui-gtk.h:
6906         The Great GTK Merge: new files.
6907
6908 2001-02-26  Ben Wing  <ben@xemacs.org>
6909
6910         Reapplied Lstream change.
6911
6912 2001-02-26  Ben Wing  <ben@xemacs.org>
6913
6914         Undid the last change, since it is more controversial than I
6915         thought.  It should be back in at some point soon.
6916         
6917 2001-02-25  Ben Wing  <ben@xemacs.org>
6918
6919         * buffer.c:
6920         * callproc.c (Fold_call_process_internal):
6921         * event-msw.c (ntpipe_slurp_reader):
6922         * event-msw.c (ntpipe_shove_writer):
6923         * event-msw.c (winsock_reader):
6924         * event-msw.c (winsock_writer):
6925         * file-coding.c:
6926         * file-coding.c (detect_eol_type):
6927         * file-coding.c (detect_coding_type):
6928         * file-coding.c (determine_real_coding_system):
6929         * file-coding.c (Fdetect_coding_region):
6930         * file-coding.c (decoding_reader):
6931         * file-coding.c (decoding_writer):
6932         * file-coding.c (mule_decode):
6933         * file-coding.c (Fdecode_coding_region):
6934         * file-coding.c (encoding_reader):
6935         * file-coding.c (encoding_writer):
6936         * file-coding.c (mule_encode):
6937         * file-coding.c (Fencode_coding_region):
6938         * file-coding.c (detect_coding_sjis):
6939         * file-coding.c (decode_coding_sjis):
6940         * file-coding.c (encode_coding_sjis):
6941         * file-coding.c (detect_coding_big5):
6942         * file-coding.c (decode_coding_big5):
6943         * file-coding.c (encode_coding_big5):
6944         * file-coding.c (detect_coding_ucs4):
6945         * file-coding.c (decode_coding_ucs4):
6946         * file-coding.c (encode_coding_ucs4):
6947         * file-coding.c (detect_coding_utf8):
6948         * file-coding.c (decode_coding_utf8):
6949         * file-coding.c (encode_coding_utf8):
6950         * file-coding.c (detect_coding_iso2022):
6951         * file-coding.c (decode_coding_iso2022):
6952         * file-coding.c (encode_coding_iso2022):
6953         * file-coding.c (decode_coding_no_conversion):
6954         * file-coding.c (encode_coding_no_conversion):
6955         * glyphs-x.c (write_lisp_string_to_temp_file):
6956         * gpmevent.c (tty_get_foreign_selection):
6957         * lisp.h:
6958         * lstream.c:
6959         * lstream.c (Lstream_flush_out):
6960         * lstream.c (Lstream_adding):
6961         * lstream.c (Lstream_write_1):
6962         * lstream.c (Lstream_write):
6963         * lstream.c (Lstream_raw_read):
6964         * lstream.c (Lstream_read_more):
6965         * lstream.c (Lstream_read):
6966         * lstream.c (Lstream_unread):
6967         * lstream.c (Lstream_fputc):
6968         * lstream.c (stdio_reader):
6969         * lstream.c (stdio_writer):
6970         * lstream.c (filedesc_reader):
6971         * lstream.c (filedesc_writer):
6972         * lstream.c (lisp_string_reader):
6973         * lstream.c (struct fixed_buffer_stream):
6974         * lstream.c (make_fixed_buffer_input_stream):
6975         * lstream.c (make_fixed_buffer_output_stream):
6976         * lstream.c (fixed_buffer_reader):
6977         * lstream.c (fixed_buffer_writer):
6978         * lstream.c (struct resizing_buffer_stream):
6979         * lstream.c (resizing_buffer_writer):
6980         * lstream.c (dynarr_writer):
6981         * lstream.c (lisp_buffer_reader):
6982         * lstream.c (lisp_buffer_writer):
6983         * lstream.h:
6984         * lstream.h (lstream_implementation):
6985         * lstream.h (struct lstream):
6986         * md5.c (Fmd5):
6987         * process-nt.c (nt_send_process):
6988         * process-unix.c (unix_send_process):
6989         
6990         Correct Lstream lossage due to mixing of signed and unsigned
6991         quantities.  All Lstream uses of size_t and ssize_t are now a
6992         single signed data type Lstream_data_count.  This fixes problems
6993         under Windows with sending large quantities of data to a process,
6994         and may well fix other subtle bugs.
6995
6996 2001-02-23  Martin Buchholz <martin@xemacs.org>
6997
6998         * XEmacs 21.2.45 "Thelxepeia" is released.
6999
7000 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7001
7002         * lisp-union.h (XSETINT): 
7003         (XSETCHAR):
7004         (XSETOBJ): 
7005         Reverse previous change of 2001-02-06.
7006
7007 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7008
7009         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7010         buffers.
7011         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7012         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7013         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7014         * regex.c (POS_AS_IN_BUFFER): removed
7015         * regex.c (re_search_2):
7016         * regex.c (re_match_2):
7017         Don't use an offset of 1 when calculating buffer positions, since
7018         `BI_BUF_BEGV' does it already.
7019
7020 2001-02-18  Wim Dumon  <wim@easics.be>
7021
7022         * insdel.c (prepare_to_modify_buffer): Also check for
7023         supersession when clash-detection is enabled. 
7024
7025 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7026
7027         * regex.c (re_match_2_internal):
7028         Convert temp characters from 'const unsigned char' to 're_char'.
7029         Fix crashing bug with extended characters under mule.
7030         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7031         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7032         font-lock, pdump, and new syntax-table code.
7033         * syntax.c (find_start_of_comment):
7034         (find_end_of_comment):
7035         (forward-comment):
7036         Fix crashing bugs involving moving beyond end of buffer.
7037         * syntax.c (find_start_of_comment):
7038         Fixed logic to allow proper detection of cases where the same
7039         character is used to end both a two-char comment start and a
7040         two-char comment end sequence. Fixes `(forward-comment -1)'.
7041         * syntax.c (find_start_of_comment):
7042         Return position just past last comment-end character for all cases
7043         (previously was only done for two-char comment-end sequences).
7044         * syntax.c (forward-comment):
7045         Take value returned from `find_end_of_comment', rather than
7046         incrementing it.
7047         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7048         Properly deal with BUFFERP (syntax_cache.object)
7049
7050 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7051
7052         * alloc.c (Fgarbage_collect): 
7053         * alloc.c (make_bit_vector_from_byte_vector):
7054         -Wsign-compare-correctness.
7055
7056 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7057
7058         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7059         (XSETCHAR): Likewise.
7060         (XSETOBJ): Likewise.
7061
7062 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7063
7064         * mule-canna.c (canna-func-delete_previous): 
7065         Rename to canna-func-delete-previous.
7066
7067 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7068
7069         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7070
7071 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7072
7073         * font-lock.c (find_context): Fix C++ compile errors introduced by
7074         recent patch
7075
7076 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7077
7078         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7079         pragma, but earlier ones barf on the same pragma.
7080
7081 2001-02-06  Mike Sperber <mike@xemacs.org>
7082
7083         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7084         `configure-mule-lisp-directory'.
7085
7086 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7087
7088         Make sure dump-id.c is compiled in the same way as other .c's.
7089         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7090         * dump-id.h: Remove.
7091         * emacs.c: Move dump-id.h into dumper.h.
7092         * dumper.h: Move dump-id.h into dumper.h.
7093         * Makefile.in.in:
7094         Use standard .c.o rule for building dump-id.o.
7095         Remove preprocessor flags from link command.
7096         Add dump-id.o to ${otherobjs} if PDUMP.
7097
7098 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7099
7100         Port FSF 20.7 syntax table improvements.
7101         * syntax.c.
7102         * syntax.h.
7103
7104         Fixups for new syntax table stuff.
7105         * dired.c: Include syntax.c.
7106         (Fdirectory_files): Initialize regex_match_object and
7107         regex_emacs_buffer.
7108         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7109         and Fget_char_property.
7110
7111         Use ported FSF 20.7 syntax table improvements.
7112         * font-lock.c.
7113         * regex.c.
7114         * search.c.
7115         
7116 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7117
7118         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7119         Unixware's enum boolean from sys/types.h.
7120
7121 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7122
7123         Fix support for building with latest Purify.
7124         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7125         (PURIFY_FLAGS): Likewise.
7126
7127 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7128
7129         * fileio.c (lisp_string_set_file_times): New.
7130         * fileio.c (Fcopy_file): Use it.
7131         Fixes bug:
7132         (copy-file filename non-ascii-filename t t)
7133         ==> No such file or directory, non-ascii-filename
7134
7135 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7136
7137         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7138         USHRT_MAX seems clearer than ~0 anyways.
7139
7140 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7141
7142         dumper improvements.  Inspired by Olivier.
7143         * dumper.c (pdump_max_align): New.
7144         * dumper.c (pdump_add_entry): Use pdump_max_align.
7145         * dumper.c (pdump_get_entry_list): Likewise.
7146         * dumper.c (pdump_scan_by_alignment): Likewise.
7147         Don't iterate through unnecessary alignments.
7148         * dumper.c (pdump_file_get): No need to align result of malloc().
7149         * dumper.c (pdump_mallocadr): Remove.  
7150         The result of malloc() is guaranteed to be maximally aligned.
7151         * dumper.c: s/elmt/elt/g;
7152         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7153         * dumper.c (pdump_alert_undump_object): Likewise.
7154         * dumper.c (pdump_align_table): 
7155         Don't support alignments > 64.
7156         Store ALIGNOF's, not shift counts, in table.
7157
7158 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7159
7160         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7161         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7162         * systime.h: Use HAVE_UTIME.
7163         * sysdep.c (struct utimbuf): Remove.
7164         * sysdep.c (set_file_times): Prefer utime() to utimes().
7165         * config.h.in (HAVE_UTIME): New.
7166         * config.h.in (HAVE_UTIME_H): Remove.
7167         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7168
7169 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7170
7171         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7172
7173 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7174
7175         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7176
7177 2001-02-08  Martin Buchholz <martin@xemacs.org>
7178
7179         * XEmacs 21.2.44 "Thalia" is released.
7180
7181 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7182
7183         Fixes crashes in kill-emacs on some systems.
7184         * process-unix.c (unix_kill_child_process):
7185         It's OK for kill() to fail with ESRCH.
7186
7187 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7188
7189         Contortions to make .gdbinit tricks work on most systems.
7190         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7191         * alloc.c (dbg_valmask): Make non-const.
7192         * alloc.c (dbg_typemask): Make non-const.
7193         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7194         * alloc.c (dbg_valbits): Make non-const.
7195         * alloc.c (dbg_gctypebits): Make non-const.
7196         * .gdbinit (decode_object): Make it work with AIX cc.
7197
7198 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7199
7200         * elhash.c (make_general_lisp_hash_table):
7201         Use simpler and more efficient calloc to clear entries.
7202
7203 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7204
7205         * window.c (window_scroll): Work around an AIX C compiler bug.
7206         Fixes 'scroll-up' does nothing problem with xlC.
7207
7208 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7209
7210         * .gdbinit: Remove obsolete comment.
7211
7212 2001-01-31  Mike Alexander  <mta@arbortext.com>
7213
7214         * select.c (Fown_selection_internal): Set owned_p for device
7215         method correctly.
7216
7217 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7218
7219         Port to g++ 2.97.
7220         "not" cannot be used as a macro name as it is an operator in C++
7221         * config.h.in: Stop #defining `not'.
7222         * chartab.c (check_category_char): not ==> not_p
7223         * chartab.h: Likewise.
7224         * regex.c (re_match_2_internal): Likewise.
7225
7226 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7227
7228         * lisp-disunion.h: Fix up comments.
7229
7230 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7231
7232         * keymap.c (define_key_check_and_coerce_keysym):
7233         (syms_of_keymap):
7234         Support mouse-6 and mouse-7 bindings in the obvious way.
7235
7236 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7237
7238         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7239
7240 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7241
7242         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7243         Previous patch missed DEFVAR_INT_MAGIC.
7244         Make sure future DEFVAR_foo use correct types.
7245         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7246         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7247         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7248         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7249         * (DEFVAR_INT): Likewise.
7250         * redisplay.c (vertical_clip): Should be of type Fixnum.
7251         * redisplay.c (horizontal_clip): Likewise.
7252         * lisp.h (dump_add_opaque_int): New.
7253         (dump_add_opaque_fixnum): New.
7254
7255 2001-01-29  Andy Piper  <andy@xemacs.org>
7256
7257         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7258         since they can be eval'ed
7259
7260 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7261
7262         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7263         Oops, XEmacs redefines `class'.  Use `typename' instead.
7264
7265 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7266
7267         * dumper.c: Fix C++ compile errors.
7268
7269 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7270
7271         * tparam.c: Use correct prototypes.
7272
7273 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7274
7275         * sysproc.h: #include util.h for NetBSD's openpty.
7276
7277 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7278
7279         More 64-bit correctness.
7280         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7281         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7282         Fix up comments.
7283         This finally finishes the 64-bit SGI port.
7284         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7285         * symbols.c: Fix up comments and type casts.
7286         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7287         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7288         * symeval.h (Fixnum): New type.
7289         * symeval.h (symbol_value_type): Fix up comment.
7290
7291         * commands.h:
7292         * nt.c:
7293         * emacs.c:
7294         * data.c:
7295         * redisplay.c:
7296         * abbrev.c:
7297         * dired-msw.c:
7298         * event-Xt.c:
7299         * eldap.c:
7300         * window.c:
7301         * sound.c:
7302         * event-stream.c:
7303         * eval.c:
7304         * buffer.c:
7305         * mule-canna.c: A million DEFVAR_INTs here...
7306         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7307         * extents.c:
7308         * cmdloop.c:
7309         * lisp.h:
7310         * select-x.c:
7311         * console-x.h:
7312         * event-msw.c:
7313         * mule-wnnfns.c:
7314         * hpplay.c:
7315         * ralloc.c:
7316         * alloc.c:
7317         * keymap.c:
7318         * profile.c:
7319         s/int/Fixnum/g in DEFVAR_INT declarations.
7320
7321 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7322
7323         Port pdump to SGI alignment-sensitive environment.
7324         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7325         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7326         properly aligned.
7327         Define and use aligned reading and writing macros.
7328         Use buffered stdio instead of posix i/o for faster dumping.
7329         Eliminate kludgy 256 byte space for header.
7330         Read and write from dump file using structs for alignment safety.
7331         * dumper.c (pdump_align_stream): New.
7332         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7333         * dumper.c (PDUMP_READ_ALIGNED): New.
7334         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7335         * dumper.c (pdump_static_Lisp_Object): New struct.
7336         * dumper.c (pdump_static_pointer): New struct.
7337         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7338         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7339         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7340         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7341
7342         * dumper.c (pdump_backtrace):
7343         * dumper.c (pdump_get_indirect_count):
7344         * dumper.c (pdump_register_object):
7345         * dumper.c (pdump_register_struct):
7346         * dumper.c (pdump_reloc_one):
7347         * dumper.c (pdump_scan_by_alignment):
7348         * dumper.c (pdump_dump_from_root_struct_ptrs):
7349         * dumper.c (pdump_dump_opaques):
7350         * dumper.c (pdump_dump_rtables):
7351         * dumper.c (pdump_dump_from_root_objects):
7352         * dumper.c (pdump):
7353         * dumper.c (pdump_load_finish):
7354         Use aligned reading and writing.
7355
7356         * dumper.c (pdump_free): Make static.
7357         * dumper.c (pdump_hFile): Likewise.
7358         * dumper.c (pdump_hMap): Likewise.
7359
7360 2001-01-26  Martin Buchholz <martin@xemacs.org>
7361
7362         * XEmacs 21.2.43 "Terspichore" is released.
7363
7364 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7365
7366         Type fiddling for window_config.saved_windows_count
7367         * window.c (struct window_config): 
7368         Make saved_windows_count member unsigned.
7369         * window.c (sizeof_window_config_for_n_windows): 
7370         Make parameter unsigned.
7371         * window.c (mark_window_config):
7372         * window.c (window_config_equal):
7373         * window.c (free_window_configuration):
7374         * window.c (Fset_window_configuration):
7375         * window.c (count_windows):
7376         * window.c (Fcurrent_window_configuration):
7377         * window.c (reinit_vars_of_window):
7378         Update all callers and users.
7379
7380 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7381
7382         Alignment correctness for flexible arrays.
7383         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7384         Make alignment-correct. Add interesting comments.
7385         * alloc.c (size_vector):
7386         * alloc.c (make_vector_internal):
7387         * alloc.c (make_bit_vector_internal):
7388         * alloc.c (sweep_bit_vectors_1):
7389         * fns.c (size_bit_vector):
7390         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7391         * window.c (sizeof_window_config_for_n_windows): 
7392         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7393
7394 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7395
7396         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7397
7398 2001-01-23  Andy Piper  <andy@xemacs.org>
7399
7400         * select.c (Fown_selection_internal): pass owned_p
7401
7402         * select-msw.c (mswindows_own_selection): New Signature.
7403
7404         * console.h (struct console_methods): add owned_p to
7405         _own_selection.
7406
7407         * select-x.c (x_own_selection): pass owned_p
7408         (hack_motif_clipboard_selection): use owned_p
7409         (vars_of_select_x): new variable -
7410         x_selection_strict_motif_ownership.
7411
7412 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7413
7414         * specifier.h (specifier_data_offset): Remove pointless parens.
7415         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7416
7417 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7418
7419         Make Lisp_Object sizeof methods be alignment-correct.
7420         pdump must restore objects to the same alignment as the C compiler
7421         assumes.  It really matters on SGIs.
7422         * lstream.c (aligned_sizeof_lstream): New.
7423         (sizeof_lstream): Use aligned_sizeof_lstream.
7424         (Lstream_new): Likewise.
7425         * opaque.c (aligned_sizeof_opaque): New.
7426         (sizeof_opaque): Use aligned_sizeof_opaque.
7427         (make_opaque): Likewise.
7428         * specifier.c (aligned_sizeof_specifier): New.
7429         (sizeof_specifier): Use aligned_sizeof_specifier.
7430         (make_specifier_internal): Likewise.
7431
7432 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7433
7434         * lstream.h (struct lstream): Use max_align_t for trailing data.
7435         * specifier.h (struct Lisp_Specifier): Likewise.
7436
7437 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7438
7439         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7440         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7441         (CCL_SUSPEND): Likewise.
7442         (CCL_INVALID_CMD): Likewise.
7443         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7444         (ccl_driver): Likewise.
7445         (CCL_WRITE_CHAR): Macro hygiene.
7446         (CCL_WRITE_STRING): Macro hygiene.
7447
7448 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7449
7450         Port "portable" dumper to SunOS 4 and HP-UX.
7451         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7452         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7453         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7454
7455 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7456
7457         * lisp.h (ALIGNOF): A better definition for C++.
7458
7459 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7460
7461         Macro hygiene.
7462         Fix printf warnings: int format, long int arg.
7463         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7464         (PUSH_FAILURE_POINT): Use correct printf formats.
7465         (POP_FAILURE_POINT): Use correct printf formats.  
7466         Use do {...} while (0)
7467
7468 2001-01-20  Martin Buchholz <martin@xemacs.org>
7469
7470         * XEmacs 21.2.42 "Poseidon" is released.
7471
7472 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7473
7474         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7475
7476 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7477
7478         De-kludgify FIXED_TYPE free list frobbing.
7479         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7480         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7481         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7482         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7483         * alloc.c (LRECORD_FREE_P): New.
7484         * alloc.c (MARK_LRECORD_AS_FREE): New.
7485         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7486         * alloc.c (STRUCT_FREE_P): Deleted.
7487         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7488         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7489         * alloc.c (STRING_CHARS_FREE_P): New.
7490         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7491         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7492         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7493         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7494         * alloc.c (resize_string): Use new definitions.
7495         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7496         * alloc.c (verify_string_chars_integrity): Use new definitions.
7497         * alloc.c (compact_string_chars): Use new definitions.
7498         * alloc.c: Update monster comments.
7499         * lrecord.h (lrecord_type): Add some new lrecord types for
7500         alloc.c's use.
7501
7502 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7503
7504         Improve alignment hackery.
7505         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7506         (max_align_t): Moved from opaque.h - general purpose.
7507         (ALIGN_PTR): Use size_t, not long.
7508         * opaque.h (max_align_t): Move to lisp.h.
7509
7510 2001-01-18  Norbert Koch  <nk@LF.net>
7511
7512         * gui.h: Fix and add prototypes to fix build problems.
7513
7514 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7515
7516         temacs is going away, so `dump-temacs' is now a bad name.
7517         * .dbxrc (dump-temacs): Rename to `dmp'.
7518         * .gdbinit (dump-temacs): Rename to `dmp'.
7519
7520 2001-01-17  Andy Piper  <andy@xemacs.org>
7521
7522         * glyphs.c (print_image_instance): comment to make martin happy.
7523
7524         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7525         change.
7526
7527         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7528         activation.
7529         (mswindows_tab_control_redisplay): warning suppression.
7530
7531         * glyphs-widget.c (widget_update): re-write to cope with updated
7532         items.
7533         (widget_instantiate): use new gui_item functions.
7534         (tab_control_update): deleted.
7535         (progress_gauge_update): deleted.
7536         (image_instantiator_progress_guage): take out update reference.
7537         (image_instantiator_tree_view): ditto.
7538         (image_instantiator_tab_control): ditto.
7539
7540         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7541         Right the new way.
7542         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7543         return whether anything was changed.
7544         (update_gui_item_keywords): as it sounds.
7545
7546         * gui.h: declare widget_gui_parse_item_keywords.
7547
7548         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7549         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7550
7551 2001-01-17  Martin Buchholz <martin@xemacs.org>
7552
7553         * XEmacs 21.2.41 "Polyhymnia" is released.
7554
7555 2001-01-16  Didier Verna  <didier@xemacs.org>
7556
7557         * glyphs.c (image_instantiate): don't use fallbacks when
7558         instantiating a face's background pixmap by inheritance.
7559
7560 2001-01-14  Mike Sperber <mike@xemacs.org>
7561
7562         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7563         Conditionalize accordingly.
7564
7565 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7566
7567         * dumper.c (pdump_file_get): Fix a compiler warning.
7568
7569 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7570
7571         Make Purify happy when pdumping.
7572         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7573         iniitalizing all bits of new lisp object memory.
7574         * symbols.c (Fmake_local_variable): Likewise.
7575         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7576         * symbols.c (Fdefvaralias): Likewise.
7577         * mule-charset.c (vars_of_mule_charset): Likewise.
7578
7579 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7580         Add the `-nd' flag when running pre-dump operations under the debugger.
7581         * .dbxrc (run-temacs): Add `-nd'.
7582         * .dbxrc (update-elc): Likewise.
7583         * .dbxrc (dump-temacs): Likewise.
7584         * .gdbinit (run-temacs): Likewise.
7585         * .gdbinit (check-temacs): Likewise.
7586         * .gdbinit (update-elc): Likewise.
7587         * .gdbinit (dump-temacs): Likewise.
7588
7589 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7590
7591         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7592         export OBJECT_MODE=64
7593         configure --pdump --use-union-type=no
7594         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7595         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7596
7597         * miscplay.c (sndcnv8U_2mono):
7598         Avoid two uses of `++' in the same expression.
7599         Suppresses a GCC warning.
7600
7601 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7602
7603         Make sure future compilers don't miscompile alloc.c.
7604         * alloc.c:
7605         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7606         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7607
7608 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7609
7610         * dumper.c: A little post-pdump-rename comment fixup.
7611
7612 2001-01-09  Jerry James  <james@eecs.ku.edu>
7613
7614         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7615
7616 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7617
7618         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7619         script:
7620         #!/bin/sh
7621         replace_symbol () {
7622           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7623         }
7624
7625         replace_symbol pdump_wire_lists pdump_weak_object_chains
7626         replace_symbol pdump_wire_list dump_add_weak_object_chain
7627
7628         replace_symbol pdump_wires pdump_root_objects
7629         replace_symbol pdump_wire dump_add_root_object
7630
7631         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7632         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7633
7634         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7635         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7636         replace_symbol dumpstructinfo pdump_root_struct_ptr
7637         replace_symbol dumpstruct dump_add_root_struct_ptr
7638
7639         replace_symbol dumpopaque dump_add_opaque
7640         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7641         replace_symbol dumpopaqueinfos pdump_opaques
7642         replace_symbol dumpopaqueinfo pdump_opaque
7643
7644         replace_symbol nb_structdump nb_root_struct_ptrs
7645         replace_symbol nb_opaquedump nb_opaques
7646
7647         replace_symbol align_table pdump_align_table
7648         replace_symbol dump_header pdump_header
7649
7650         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7651         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7652
7653
7654 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7655
7656         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7657         optimizing bytecount_to_charcount().
7658
7659 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7660
7661         * config.h.in:
7662         (HAVE_DLFCN_H): Removed.
7663         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7664
7665 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7666
7667         Portable dumper maintainability improvements.
7668         * alloc.c (staticpro):
7669         * alloc.c (staticpro_nodump):
7670         * alloc.c (garbage_collect_1):
7671         * alloc.c (reinit_alloc_once_early):
7672         * alloc.c (init_alloc_once_early):
7673         * alloc.c: Move dumper functions to alloc.c.
7674         * dumper.c (pdump_backtrace):
7675         * dumper.c (pdump_dump_structs):
7676         * dumper.c (pdump_dump_opaques):
7677         * dumper.c (pdump_dump_rtables):
7678         * dumper.c (pdump_dump_wired):
7679         * dumper.c (pdump):
7680         * dumper.c (pdump_load_check):
7681         * dumper.c (pdump_load_finish):
7682         * dumper.c (pdump_file_unmap):
7683         * dumper.c (pdump_file_get):
7684         * dumper.c (pdump_resource_free):
7685         * dumper.c (pdump_resource_get):
7686         * dumper.c (pdump_file_free):
7687         * dumper.c (pdump_file_try):
7688         * dumper.c (pdump_load):
7689         Remove fixed size limits on staticpro(), staticpro_nodump(),
7690         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7691         Remove custom code for dumping lrecord_implementations_table - use
7692         dumpopaque instead.
7693         Remove (most of the) custom code for dumping staticpros - dump it
7694         like any other dynarr.
7695
7696         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7697         * dumper.c: Moved functions from alloc.c.
7698         * alloc.c (dumpstruct): Moved to dumper.c.
7699         * alloc.c (dumpopaque): Likewise.
7700         * alloc.c (pdump_wire): Likewise.
7701         * alloc.c (pdump_wire_list): Likewise.
7702
7703         * lisp.h (Dynarr_sizeof): New.
7704         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7705         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7706         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7707
7708         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7709         * lisp.h (dumpopaque): ditto.
7710         * lisp.h (pdump_wire): ditto.
7711         * lisp.h (pdump_wire_list): ditto.
7712
7713 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7714
7715         * make-src-depend (PrintPatternDeps):
7716         Use `sort' to make output independent of perl version.
7717
7718 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7719
7720         Port to Netbsd 1.5.
7721         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7722         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7723
7724 2001-01-03  Didier Verna  <didier@xemacs.org>
7725
7726         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7727         that `focus_frame' is alive before thinking of calling
7728         `redisplay_redraw_cursor' on it.
7729
7730 2001-01-08  Martin Buchholz <martin@xemacs.org>
7731
7732         * XEmacs 21.2.40 is released.
7733
7734 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7735
7736         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7737
7738 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7739
7740         * alloc.c (dbg_valmask): Make const.
7741         * alloc.c (dbg_typemask): Make const.
7742         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7743         * alloc.c (dbg_valbits): Make const.
7744         * alloc.c (dbg_gctypebits): Make const.
7745
7746 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7747
7748         * redisplay-x.c (x_bevel_area):
7749         redisplay.h (struct rune):
7750         Typo fixes in comments.
7751
7752 2001-01-05  Andy Piper  <andy@xemacs.org>
7753
7754         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7755         adjustment.
7756
7757         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7758
7759 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7760
7761         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7762
7763         * mule-ccl.c (stack_idx_of_map_multiple):
7764         Non const global data must not be initialized!
7765         Found by MIYASHITA Hisashi.
7766
7767 2001-01-02  Andy Piper  <andy@xemacs.org>
7768
7769         * frame.c (change_frame_size): make sure frame size is always
7770         marked as changed.
7771
7772         * glyphs.c (image_instance_layout): minor code reuse.
7773
7774         * window.c (Fcurrent_window_configuration): revert previous
7775         change.
7776
7777 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7778
7779         * glyphs.h:
7780         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7781
7782 2000-12-31  Andy Piper  <andy@xemacs.org>
7783
7784         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7785         when widget gets unmapped.
7786
7787         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7788         function. Make sure widgets losing focus don't just drop it.
7789         (handle_focus_event_1): record the widget with focus.
7790
7791 2000-12-31  Andy Piper  <andy@xemacs.org>
7792
7793         * window.c (allocate_window): use
7794         make_image_instance_cache_hash_table.
7795         (make_dummy_parent): ditto.
7796         (Fset_window_configuration): ditto.
7797
7798         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7799
7800         * glyphs.c (process_image_string_instantiator): use
7801         INSTANTIATOR_TYPE.
7802         (get_image_instantiator_governing_domain): ditto.
7803         (normalize_image_instantiator): ditto.
7804         (instantiate_image_instantiator): ditto.
7805         (make_image_instance_1): ditto.
7806         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7807         (instantiator_eq_equal): new function for use with instance hash
7808         tables.
7809         (instantiator_eq_hash): ditto.
7810         (make_image_instance_cache_hash_table): create a suitable hash
7811         table for storing image instances.
7812
7813         * elhash.h (hash_table_weakness): new internal weakness type
7814         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7815         declare new functions.
7816
7817         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7818         another weakness type for glyphs.
7819         (make_standard_lisp_hash_table): new function split out from
7820         make_general_lisp_hash_table.
7821         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7822         (hash_table_instantiate): ditto.
7823         (Fmake_hash_table): ditto.
7824
7825 2000-12-31  Martin Buchholz <martin@xemacs.org>
7826
7827         * XEmacs 21.2.39 is released.
7828
7829 2000-12-29  Andy Piper  <andy@xemacs.org>
7830
7831         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7832
7833         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7834         the frame has changed so that we pick up geometry changes such as
7835         menubar visibility.
7836
7837 2000-12-28  Andy Piper  <andy@xemacs.org>
7838
7839         * lastfile.c (my_ebss): make a char array so we can pad the
7840         bss. Fixes cygwin unexec.
7841
7842         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7843
7844 2000-12-26  Andy Piper  <andy@xemacs.org>
7845
7846         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7847         comments and try and be more precise about a non-/SIGIO world.
7848         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7849         SIGIO.
7850
7851         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7852         we don't normalize to zero width or height.
7853
7854 2000-12-24  Andy Piper  <andy@xemacs.org>
7855
7856         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7857
7858 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7859
7860         * s/sco5.h: SCO 5 has pty support.
7861
7862 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7863
7864         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7865         input-method-xlib.c contains whole contents of input-method-xfs.c,
7866         so we can use input-method-xlib.c's code for USE_XFONTSET
7867         using #ifdefs.
7868         * input-method-xfs.c: removed.
7869
7870 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7871
7872         * file-coding.h (enum coding_category_type): reorder enumerators to
7873         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7874         (now one greater than largest real coding_category_type enumerator).
7875         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7876         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7877         Fcoding_category_list, Fset_coding_priority_list,
7878         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7879         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7880
7881 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7882
7883         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7884         * redisplay-output.c (redisplay_output_window): Clear top of window
7885         when face is changed.
7886         * redisplay-x.c (x_redraw_exposed_window): Call
7887         redisplay_clear_top_of_window.
7888         * redisplay.h: Publish redisplay_clear_top_of_window.
7889
7890 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7891
7892         * buffer.c (Fkill_buffer): Map over all devices.
7893         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7894         (list_windows): New function.
7895         (list_all_windows): Ditto.
7896         (Freplace_buffer_in_windows): Use them.
7897
7898 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7899
7900         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7901         (Fopen_database): Use `db_create' instead of `db_open'.
7902         (syms_of_database): Initialize Qqueue.
7903
7904 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7905
7906         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7907         buffer_local_face_property.
7908         * buffer.h (struct buffer): New member buffer_local_face_property.
7909         * window.c (Fset_window_buffer):  Mark window's face as changed
7910         when buffer has buffer local face.
7911         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7912         * objects.c (color_after_change): Set buffer_local_face_property
7913         when locale of face specifier is buffer.
7914         * objects.c (font_after_change): Ditto.
7915         * objects.c (face_boolean_after_change): Ditto.
7916         * glyphs.c (image_after_change): Ditto.
7917
7918 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7919
7920         * nt.c (mswindows_fstat): Report file permissions, volume serial
7921         number, etc. Code adapted from FSF Emacs 20.7.
7922
7923 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7924
7925         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7926         of stat when we don't have symbolic links, to make sure
7927         mswindows_stat is called on mswindows.
7928
7929 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7930
7931         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7932
7933 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7934
7935         * doprnt.c (emacs_doprnt_1): More printing fixes.
7936         Make printing of numbers compatible with libc and FSF Emacs.
7937         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7938         Use the system printf to do most of the hard work of formatting,
7939         instead of doprnt_1().
7940         Calculate memory to allocate for format string.
7941         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7942         (doprnt_1): Cleaner code and documentation.
7943
7944 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7945
7946         * Makefile.in.in: Use the loop variable to install headers.
7947
7948 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7949
7950         * window.c (Fsplit_window): Don't invalidate face cache.
7951
7952 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7953
7954         * minibuf.c (Fall_completions): Undo the previous change
7955         which removed checking elements start with space.
7956
7957 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7958
7959         * mule-canna.c: Didier suppression.
7960
7961 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7962
7963         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7964         (warning suppression).  Add English comment translations.
7965
7966 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7967
7968         * unexelfsgi.c (unexec): Better test for mmap failure.
7969
7970 2000-12-05  Martin Buchholz <martin@xemacs.org>
7971
7972         * XEmacs 21.2.38 is released.
7973
7974 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7975
7976         * redisplay.c (bar-cursor): Make a user variable.
7977
7978         * symsinit.h: Add init_postgresql_from_environment.
7979
7980 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7981
7982         * regex.c: Convert to clean C.
7983
7984 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7985
7986         * realpath.c:
7987         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7988         initialization.
7989         (sys_readlink): renamed to system_readlink to avoid conflict with
7990         the other sys_readlink.
7991
7992 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7993
7994         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7995
7996 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7997
7998         * postgresql.c (init_postgresql_from_environment): new function.
7999         (vars_of_postgresql): Move code initializing Lisp variables out and
8000         into init_postgresql_from_environment.
8001         emacs.c (main_1): Call init_postgresql_from_environment if and only
8002         if running a dumped XEmacs.
8003
8004 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8005
8006         * buffer.c: Make find-file-compare-truenames default to true on
8007         windows.
8008
8009         * realpath.c (win32_abs_start):
8010         (cygwin_readlink):
8011         (win32_readlink): New functions.
8012         (xrealpath): Return really real filenames on windows.
8013
8014         * fileio.c (Ffile_truename): Make file-truename work on windows.
8015
8016 2000-11-29  Didier Verna  <didier@xemacs.org>
8017
8018         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8019         * faces.c (update_face_cachel_data): use it.
8020         * faces.c (add_face_cachel): use it. Complete background pixmap
8021         frobbing in face cache if `update_face_cachel_data' has not done so.
8022
8023 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8024
8025         * search.c (string_match_1): Don't set last_thing_searched
8026         when search failed.
8027
8028 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8029
8030         * buffer.c: Include casetab.h
8031         (common_init_complex_vars_of_buffer): Use new case-table object.
8032         * buffer.h: Include casetab.h
8033         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8034         (DOWNCASE_TABLE_OF): Ditto.
8035         * bufslots.h: Remove char-tables and add case-table.
8036         * casetab.c: Include casetab.h
8037         (CASE_TABLE_P): Removed.
8038         (mark_case_table): New function.
8039         (allocate_case_table): New function.
8040         (Fcase_table_p): Use new case-table.
8041         (case_table_char): New function.
8042         (Fget_case_table): Ditto.
8043         (Fput_case_table): Ditto.
8044         (Fput_case_table_pair): Ditto.
8045         (Fcopy_case_table): Ditto.
8046         (Fcurrent_case_table): Return case-table.
8047         (Fstandard_case_table): Return case-table.
8048         (Fset_case_table): Fix doc-string.
8049         (set_case_table): Use case-table
8050         (syms_of_casetab): DEFSUBR new functions.
8051         (complex_vars_of_casetab): Set up standard case-table.
8052         * casetab.h: New file.
8053         * editfns.c: Include casetab.h
8054         (Fcompare_buffer_substrings): Use case-table.
8055         * inline.c: Include casetab.h
8056         * lisp.h: Remove bogus extern.
8057         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8058         * search.c: Include casetab.h
8059         (TRANSLATE_ASCII): Removed.
8060         (TRANSLATE): Unconditionally translate character.
8061         (looking_at_1): Use case-table.
8062         (string_match_1): Ditto.
8063         (fast_string_match): Ditto.
8064         (search_command): Ditto.
8065         (search_buffer): Separate boyer_moore.  Check whether
8066         boyer_moore is possible.
8067         (simple_search): New function.
8068         (boyer_moore): Separated from search_buffer. Translate char.
8069
8070 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8071
8072         * regex.c (RE_TR_ASCII): Removed.
8073         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8074         (PATFETCH): Call PATFETCH_RAW.
8075         (PATFETCH_RAW): Fetch Emchar.
8076         (PATUNFETCH): Decrement charptr.
8077         (GET_BUFFER_SPACE): Rename b to buf_end.
8078         (BUF_PUSH): Ditto.
8079         (BUF_PUSH_2): Ditto.
8080         (BUF_PUSH_3): Ditto.
8081         (EXTEND_BUFFER): Ditto.
8082         (SET_LIST_BIT): Ditto.
8083         (regex_compile): Ditto.  Translate non ASCII char.
8084         (compile_range): Ditto.
8085         (re_search_2): Ditto.
8086         (re_match_2_internal): Compare Emchar.
8087         (bcmp_translate): Ditto.
8088
8089 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8090
8091         * lisp.h (basic char/int typedefs):  comment improvement.
8092
8093 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8094
8095         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8096         unstomp inhibit_site_lisp.  Improve comments.
8097
8098 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8099
8100         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8101
8102 2000-11-28  Andy Piper  <andy@xemacs.org>
8103
8104         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8105         clipped display for windows in the gutter also.
8106         (redisplay_display_boxes_in_window_p): change semantics of return
8107         codes to be more intuitive.
8108
8109         * gutter.h: declare display_boxes_in_gutter_p.
8110
8111         * gutter.c (display_boxes_in_gutter_p): new function for
8112         redisplay.
8113
8114 2000-11-22  Andy Piper  <andy@xemacs.org>
8115
8116         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8117         autodetect domain.
8118
8119 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8120
8121         * callproc.c (Fold_call_process_internal):
8122         * gpm.c (Freceive_gpm_event):
8123         (tty_get_foreign_selection): Might be just warning supression.
8124         * fileio.c (Fwrite_region_internal):
8125         (Fset_visited_file_modtime):
8126         * keymap.c (event_matches_key_specifier_p):
8127         Initialize GCPROed variable.
8128
8129         * menubar-x.c (command_builder_find_menu_accelerator):
8130         Initialize before use.
8131
8132 2000-11-23  Andy Piper  <andy@xemacs.org>
8133
8134         * unexcw.c (unexec): make the resulting executable executable.
8135
8136 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8137
8138         * doc.c (get_doc_string):
8139         Use size_t, not int, for result of XSTRING_LENGTH.
8140
8141         * cmds.c (Fdelete_char):
8142         * cmds.c (Fpoint_at_eol):
8143         * cmds.c (Fself_insert_command):
8144         Use EMACS_INT, not int, for result of XINT.
8145         Someday, someone will want to insert more than 2**31 identical characters.
8146
8147         * cmds.c (Fdelete_char):
8148         * cmds.c (Fdelete_backward_char):
8149         * syntax.c (Fforward_word):
8150         * syntax.c (Fforward_comment):
8151         Make COUNT argument optional, for consistency with forward-char et al.
8152
8153 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8154
8155         * lisp.h:
8156         * print.c (long_to_string):
8157         Return a useful value: the pointer at end of data written.
8158
8159         * doprnt.c:
8160         Use `static const char * const' for constant strings.
8161         (union printf_arg): Delete `i', `ui' members.
8162         (get_doprnt_args):
8163         (emacs_doprnt_1):
8164         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8165         Do all printf-ing via the `l' specifier.
8166         Use EMACS_INT instead of int.
8167         Optimize.
8168
8169 2000-11-20  Didier Verna  <didier@xemacs.org>
8170
8171         * faces.c (update_face_cachel_data): don't frob the background
8172         pixmap when the window is being created. The face is needed but
8173         does not exist yet.
8174
8175 2000-11-20  Andy Piper  <andy@xemacs.org>
8176
8177         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8178         messing with a debug environment.
8179
8180 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8181
8182         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8183
8184 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8185
8186         * casetab.c (Fcase_table_p): Fix compile error and crash.
8187
8188 2000-11-18  Philip Aston  <philipa@mail.com>
8189
8190         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8191
8192 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8193
8194         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8195         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8196
8197 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8198
8199         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8200         * unexelf.c: Use HAVE_ELF_H.
8201         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8202         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8203         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8204         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8205         for testing.
8206         So this is an unexelfsgi.c from a different line of development.
8207
8208 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8209
8210         * regex.c (RE_TR_ASCII): New function.
8211         (RE_TRANSLATE): Call it.
8212
8213 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8214
8215         * buffer.h (TRT_TABLE_OF): Remove assert.
8216         (IN_TRT_TABLE_DOMAIN): Removed.
8217
8218 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8219
8220         * free-hook.c (log_gcpro):
8221         (show_gcprohist): Add support for GCPRO5.
8222
8223 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8224
8225         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8226
8227 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8228
8229         * symeval.h: Declare flush_all_buffer_local_cache.
8230
8231         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8232         (flush_buffer_local_cache): Added.
8233         (flush_all_buffer_local_cache): Added.
8234
8235         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8236
8237         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8238         (pdump_dump_data): Ditto.
8239         (pdump_reloc_one): Ditto.
8240         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8241         before dumping.
8242
8243
8244 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8245
8246         * buffer.c: Remove if 0'ed entry.
8247         * buffer.h: Rewrite TRT to use char-table.
8248         * bufslots.h: Remove mirror tables.
8249         * casetab.c: Remove mirror tables.
8250         (CASE_TABLE_P): New macro.
8251         (Fcase_table_p): Element of a case table is string or char-table.
8252         (make_mirror_trt_table): Removed.
8253         (set_case_table): Setup char-table from strings for backward
8254         compatibility.
8255         * dired.c (Fdirectory_files):
8256         * dired-msw.c: (mswindows_get_files):
8257         * lisp.h: Change prototype of re_pattern_buffer.
8258         * regex.c: (RE_TRANSLATE): New macro.
8259         (TRANSLATE_P): Ditto.
8260         Change translate to type RE_TRANSLATE_TYPE.
8261         * regex.h: Define RE_TRANSLATE_TYPE
8262         * search.c (TRANSLATE): New macro.
8263         (TRANSLATE_ASCII): New macro.
8264         Translate table is changed to Lisp_Object.
8265         (signal_failure): Inhibit return.
8266
8267 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8268
8269         * device-msw.c:
8270         * eldap.c:
8271         * event-Xt.c:
8272         * event-stream.c:
8273         * print.c:
8274         Do UNGCPRO before return.
8275
8276 2000-11-14  Martin Buchholz <martin@xemacs.org>
8277
8278         * XEmacs 21.2.37 is released.
8279
8280 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8281
8282         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8283         Add comments about discarded return value.
8284
8285 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8286
8287         * callint.c:
8288         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8289
8290 2000-10-27  Andy Piper  <andy@xemacs.org>
8291
8292         * gutter.c (Fset_default_gutter_position): default left and right
8293         gutters to visible.
8294         (calculate_gutter_size): calculate resonable heuristic for left
8295         and right gutter sizes.
8296         (specifier_vars_of_gutter): change left and right gutter sizes to
8297         autodetect.
8298         (calculate_gutter_size_from_display_lines): new function.
8299         (output_gutter): check for resizing on left and right gutters.
8300         (clear_gutter): don't special case top and left gutters.
8301         (specifier_vars_of_gutter): use new signature for
8302         set_specifier_caching.
8303
8304         * glyphs-x.c (x_redisplay_widget): spelling fix.
8305         * glyphs.c (specifier_vars_of_glyphs):
8306         * menubar.c (specifier_vars_of_menubar):
8307         * redisplay.c (specifier_vars_of_redisplay):
8308         * toolbar.c (specifier_vars_of_toolbar):
8309         * window.c (specifier_vars_of_window):
8310         * scrollbar.c (specifier_vars_of_scrollbar):
8311         (complex_vars_of_scrollbar): use new signature for
8312         set_specifier_caching.
8313
8314         * specifier.c (set_specifier_caching): include recompute flag.
8315         (recompute_one_cached_specifier_in_window): always recompute if
8316         flag set.
8317         (recompute_one_cached_specifier_in_frame): ditto.
8318
8319         * specifier.h (struct specifier_caching): add recompute flag.
8320
8321 2000-10-24  Andy Piper  <andy@xemacs.org>
8322
8323         * unexcw.c (copy_executable_and_dump_data_section): add new
8324         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8325         5.0 happy.
8326
8327 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8328
8329         * console-x.h (x_device): New member modifier_release_time.
8330         * event-Xt.c (x_handle_sticky_modifiers):
8331         Bound interval modifier keys are sticky.
8332         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8333         * events.h: extern it.
8334
8335 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8336
8337         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8338
8339 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8340
8341         * event-stream.c (execute_command_event): Preserve current_events
8342         and the like when event is misc-user-event.
8343         Inhibit quit during the call to maybe_echo_keys.
8344
8345 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8346
8347         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8348         symlink when buffer is killed.
8349         (inhibit_clash_detection): New variable.
8350
8351 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8352
8353         * console.c (Fset_input_method): Trigger redisplay on tty.
8354
8355 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8356
8357         * process.c (Fprocess_status): Revert to previous behavior:
8358         (process-status "nosuchprocess") ==> nil
8359
8360 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8361
8362         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8363         Work around another GCC 2.95.2 optimizer bug.
8364
8365 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8366
8367         * process.c (Fget_process): Use LIST_LOOP_2.
8368         (kill_buffer_processes): Use LIST_LOOP_2.
8369
8370         * minibuf.c (Fall_completions):
8371         Delete old non-functional code for FSF fourth argument.
8372
8373         * frame.c (frame_matches_frame_spec):
8374         Renamed from `frame_matches_frametype'.  Update all callers.
8375         (device_matches_device_spec):
8376         Renamed from 'device_matches_console_spec'.  Update all callers.
8377
8378         * doc.c (Fsubstitute_command_keys):
8379         Remove buffer overflow crash.  Small code cleanups.
8380
8381         * casetab.c (check_case_table): Simpler code.
8382
8383         * window.c (Freplace_buffer_in_windows):
8384         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8385         (and similar implementation) as Fdelete_windows_on.
8386         Update all callers.
8387
8388         * alloc.c (Fmake_list):
8389         * alloc.c (make_vector):
8390         * alloc.c (Fmake_vector):
8391         * alloc.c (make_bit_vector):
8392         * alloc.c (Fmake_bit_vector):
8393         * alloc.c (Fbit_vector):
8394         * alloc.c (Fmake_string):
8395         * alloc.c (Fpurecopy):
8396         * alloc.c (Fmemory_limit):
8397         * buffer.c:
8398         * buffer.c (Fget_buffer):
8399         * buffer.c (Fkill_buffer):
8400         * buffer.c (complex_vars_of_buffer):
8401         * bytecode.c (Fcompiled_function_stack_depth):
8402         * callint.c (Fprefix_numeric_value):
8403         * event-stream.c:
8404         * event-stream.c (Fread_key_sequence):
8405         * casetab.c:
8406         * casetab.c (Fcase_table_p):
8407         * casetab.c (check_case_table):
8408         * casetab.c (Fset_case_table):
8409         * casetab.c (Fset_standard_case_table):
8410         * chartab.c:
8411         * chartab.c (Fchar_table_type):
8412         * chartab.c (Freset_char_table):
8413         * chartab.c (Fget_char_table):
8414         * chartab.c (Fget_range_char_table):
8415         * chartab.c (Fput_char_table):
8416         * chartab.c (Fmap_char_table):
8417         * chartab.c (Fcategory_table_p):
8418         * chartab.c (Fcheck_category_at):
8419         * chartab.c (Fchar_in_category_p):
8420         * chartab.c (Fcategory_table):
8421         * chartab.c (Fcopy_category_table):
8422         * chartab.c (Fset_category_table):
8423         * chartab.c (Fcategory_designator_p):
8424         * chartab.c (Fcategory_table_value_p):
8425         * cmds.c (Fdelete_char):
8426         * cmds.c (Fdelete_backward_char):
8427         * cmds.c (Fself_insert_command):
8428         * cmds.c (Fself_insert_internal):
8429         * console.c (Fvalid_console_type_p):
8430         * console.c (Fcdfw_console):
8431         * console.c (Fconsole_type):
8432         * console.c (Fconsole_name):
8433         * console.c (Fconsole_device_list):
8434         * console.c (Fconsole_on_window_system_p):
8435         * data.c:
8436         * data.c (Feq):
8437         * data.c (Fold_eq):
8438         * data.c (Fsubr_interactive):
8439         * data.c (Fchar_to_int):
8440         * data.c (Fint_to_char):
8441         * data.c (Fsetcar):
8442         * data.c (Fsetcdr):
8443         * data.c (Fnumber_to_string):
8444         * data.c (Fstring_to_number):
8445         * data.c (Frem):
8446         * database.c (mark_database):
8447         * database.c (finalize_database):
8448         * database.c (Fdatabase_live_p):
8449         * database.c (Fdatabasep):
8450         * device-x.c (Fx_get_resource):
8451         * device.c (Fdfw_device):
8452         * dired.c:
8453         * dired.c (Ffile_name_completion):
8454         * dired.c (Ffile_name_all_completions):
8455         * dired.c (Fuser_name_completion):
8456         * dired.c (Fuser_name_completion_1):
8457         * dired.c (Fuser_name_all_completions):
8458         * doc.c (Fdocumentation):
8459         * doc.c (Fdocumentation_property):
8460         * doc.c (Fsubstitute_command_keys):
8461         * editfns.c:
8462         * editfns.c (Fchar_to_string):
8463         * editfns.c (Fstring_to_char):
8464         * editfns.c (Ftemp_directory):
8465         * editfns.c (Finsert_char):
8466         * editfns.c (Fbuffer_substring_no_properties):
8467         * editfns.c (Fnarrow_to_region):
8468         * editfns.c (Fchar_equal):
8469         * editfns.c (Fchar_Equal):
8470         * editfns.c (Ftranspose_regions):
8471         * emacs.c (Fdump_emacs):
8472         * eval.c (Fthrow):
8473         * eval.c (Fcommand_execute):
8474         * eval.c (Fautoload):
8475         * eval.c (Fbacktrace):
8476         * eval.c (Fbacktrace_frame):
8477         * events.c:
8478         * events.c (Fcopy_event):
8479         * events.c (Fcharacter_to_event):
8480         * events.c (Fevent_button):
8481         * events.c (Fevent_process):
8482         * extents.c:
8483         * extents.c (Fnext_extent_change):
8484         * extents.c (Fextent_property):
8485         * faces.c (Ffacep):
8486         * faces.c (Fmake_face):
8487         * file-coding.c:
8488         * file-coding.c (Fencode_shift_jis_char):
8489         * file-coding.c (Fencode_big5_char):
8490         * fileio.c (Ffile_name_directory):
8491         * fileio.c (Ffile_name_nondirectory):
8492         * fileio.c (Ffile_name_as_directory):
8493         * fileio.c (Fdirectory_file_name):
8494         * fileio.c (Ffile_truename):
8495         * fileio.c (Fsubstitute_in_file_name):
8496         * fileio.c (Ffile_modes):
8497         * fileio.c (Fset_file_modes):
8498         * fileio.c (Fset_default_file_modes):
8499         * fileio.c (Fverify_visited_file_modtime):
8500         * floatfns.c (Facos):
8501         * floatfns.c (Fasin):
8502         * floatfns.c (Fatan):
8503         * floatfns.c (Fcos):
8504         * floatfns.c (Fsin):
8505         * floatfns.c (Ftan):
8506         * floatfns.c (Fbessel_j0):
8507         * floatfns.c (Fbessel_j1):
8508         * floatfns.c (Fbessel_jn):
8509         * floatfns.c (Fbessel_y0):
8510         * floatfns.c (Fbessel_y1):
8511         * floatfns.c (Fbessel_yn):
8512         * floatfns.c (Ferf):
8513         * floatfns.c (Ferfc):
8514         * floatfns.c (Flog_gamma):
8515         * floatfns.c (Fexp):
8516         * floatfns.c (Fexpt):
8517         * floatfns.c (Flog):
8518         * floatfns.c (Flog10):
8519         * floatfns.c (Fsqrt):
8520         * floatfns.c (Fcube_root):
8521         * floatfns.c (Facosh):
8522         * floatfns.c (Fasinh):
8523         * floatfns.c (Fatanh):
8524         * floatfns.c (Fcosh):
8525         * floatfns.c (Fsinh):
8526         * floatfns.c (Ftanh):
8527         * floatfns.c (Fabs):
8528         * floatfns.c (Ffloat):
8529         * floatfns.c (Flogb):
8530         * floatfns.c (Fceiling):
8531         * floatfns.c (Ffloor):
8532         * floatfns.c (Fround):
8533         * floatfns.c (Ftruncate):
8534         * floatfns.c (Ffceiling):
8535         * floatfns.c (Fffloor):
8536         * floatfns.c (Ffround):
8537         * floatfns.c (Fftruncate):
8538         * fns.c (Fstring_equal):
8539         * fns.c (Fstring_lessp):
8540         * fns.c (concat2):
8541         * fns.c (concat3):
8542         * fns.c (vconcat2):
8543         * fns.c (vconcat3):
8544         * fns.c (Fsubstring):
8545         * fns.c (Fassoc):
8546         * fns.c (Fold_assoc):
8547         * fns.c (assoc_no_quit):
8548         * fns.c (Fassq):
8549         * fns.c (Fold_assq):
8550         * fns.c (assq_no_quit):
8551         * fns.c (Frassoc):
8552         * fns.c (Fold_rassoc):
8553         * fns.c (Frassq):
8554         * fns.c (Fold_rassq):
8555         * fns.c (rassq_no_quit):
8556         * fns.c (Fremassoc):
8557         * fns.c (remassoc_no_quit):
8558         * fns.c (Fremassq):
8559         * fns.c (remassq_no_quit):
8560         * fns.c (Fremrassoc):
8561         * fns.c (Fremrassq):
8562         * fns.c (remrassq_no_quit):
8563         * fns.c (Fsort):
8564         * fns.c (Fplist_get):
8565         * fns.c (Fplist_put):
8566         * fns.c (Fplist_remprop):
8567         * fns.c (Fplist_member):
8568         * fns.c (Flax_plist_get):
8569         * fns.c (Flax_plist_put):
8570         * fns.c (Flax_plist_remprop):
8571         * fns.c (Flax_plist_member):
8572         * fns.c (Fequal):
8573         * fns.c (Fold_equal):
8574         * fns.c (Frequire):
8575         * fns.c (Fbase64_encode_region):
8576         * fns.c (Fbase64_encode_string):
8577         * fns.c (Fbase64_decode_region):
8578         * frame.c:
8579         * frame.c (frame_matches_frame_spec):
8580         * frame.c (device_matches_device_spec):
8581         * frame.c (next_frame):
8582         * frame.c (previous_frame):
8583         * frame.c (Fnext_frame):
8584         * frame.c (Fprevious_frame):
8585         * frame.c (Fframe_property):
8586         * frame.c (Fset_frame_height):
8587         * frame.c (Fset_frame_size):
8588         * frame.h:
8589         * glyphs.c:
8590         * glyphs.c (if):
8591         * glyphs.c (decode_error_behavior_flag):
8592         * glyphs.c (Fmake_image_instance):
8593         * indent.c (Findent_to):
8594         * intl.c (Fignore_defer_gettext):
8595         * keymap.c (Fkeymapp):
8596         * keymap.c (Flookup_key):
8597         * lread.c:
8598         * lread.c (Fload_internal):
8599         * lread.c (Feval_buffer):
8600         * lread.c (Feval_region):
8601         * macros.c (Fexecute_kbd_macro):
8602         * marker.c (set_marker_internal):
8603         * marker.c (Fset_marker):
8604         * marker.c (set_marker_restricted):
8605         * marker.c (Fcopy_marker):
8606         * marker.c (noseeum_copy_marker):
8607         * menubar.c:
8608         * menubar.c (Fpopup_menu):
8609         * minibuf.c:
8610         * mule-charset.c (Fcharset_name):
8611         * mule-charset.c (Fchar_charset):
8612         * mule-charset.c (Fchar_octet):
8613         * mule-charset.c (Fsplit_char):
8614         * mule-wnnfns.c (Fwnn_open):
8615         * mule-wnnfns.c (Fwnn_dict_comment):
8616         * mule-wnnfns.c (Fwnn_quit_henkan):
8617         * mule-wnnfns.c (Fwnn_word_toroku):
8618         * mule-wnnfns.c (Fwnn_word_sakujo):
8619         * mule-wnnfns.c (Fwnn_word_use):
8620         * mule-wnnfns.c (Fwnn_hindo_set):
8621         * objects.c:
8622         * objects.c (Fmake_color_instance):
8623         * objects.c (Fmake_font_instance):
8624         * print.c (Fwrite_char):
8625         * process.c:
8626         * process.c (mark_process):
8627         * process.c (print_process):
8628         * process.c (get_process_from_usid):
8629         * process.c (Fprocessp):
8630         * process.c (Fprocess_live_p):
8631         * process.c (Fget_process):
8632         * process.c (Fget_buffer_process):
8633         * process.c (get_process):
8634         * process.c (Fprocess_id):
8635         * process.c (Fprocess_name):
8636         * process.c (Fprocess_command):
8637         * process.c (init_process_io_handles):
8638         * process.c (start_process_unwind):
8639         * process.c (Fstart_process_internal):
8640         * process.c (Fopen_multicast_group_internal):
8641         * process.c (Fset_process_window_size):
8642         * process.c (read_process_output):
8643         * process.c (send_process):
8644         * process.c (Fprocess_tty_name):
8645         * process.c (Fset_process_buffer):
8646         * process.c (Fprocess_buffer):
8647         * process.c (Fprocess_mark):
8648         * process.c (set_process_filter):
8649         * process.c (Fset_process_filter):
8650         * process.c (Fprocess_filter):
8651         * process.c (Fprocess_send_region):
8652         * process.c (Fprocess_send_string):
8653         * process.c (exec_sentinel):
8654         * process.c (Fset_process_sentinel):
8655         * process.c (Fprocess_sentinel):
8656         * process.c (status_notify):
8657         * process.c (Fprocess_status):
8658         * process.c (Fprocess_exit_status):
8659         * process.c (process_send_signal):
8660         * process.c (Fprocess_send_eof):
8661         * process.c (deactivate_process):
8662         * process.c (remove_process):
8663         * process.c (Fdelete_process):
8664         * process.c (kill_buffer_processes):
8665         * process.c (Fprocess_kill_without_query):
8666         * process.c (Fprocess_kill_without_query_p):
8667         * rangetab.c:
8668         * rangetab.c (Fget_range_table):
8669         * rangetab.c (Fput_range_table):
8670         * rangetab.c (Fremove_range_table):
8671         * rangetab.c (Fclear_range_table):
8672         * search.c:
8673         * search.c (Fskip_chars_forward):
8674         * search.c (Fskip_chars_backward):
8675         * search.c (Fskip_syntax_forward):
8676         * search.c (Fskip_syntax_backward):
8677         * search.c (search_command):
8678         * search.c (Freplace_match):
8679         * search.c (Fregexp_quote):
8680         * select.c (Fown_selection_internal):
8681         * select.c (Fselection_owner_p):
8682         * select.c (Fselection_exists_p):
8683         * select.c (Fget_selection_internal):
8684         * specifier.c:
8685         * symbols.c:
8686         * symbols.c (Fintern):
8687         * symbols.c (Fintern_soft):
8688         * symbols.c (Funintern):
8689         * symbols.c (Fapropos_internal):
8690         * symbols.c (Fset_default):
8691         * syntax.c:
8692         * syntax.c (Fsyntax_table_p):
8693         * syntax.c (Fcopy_syntax_table):
8694         * syntax.c (Fset_syntax_table):
8695         * syntax.c (Fchar_syntax):
8696         * syntax.c (syntax_match):
8697         * syntax.c (Fmatching_paren):
8698         * syntax.c (Fforward_word):
8699         * syntax.c (scan_lists):
8700         * syntax.c (Fscan_lists):
8701         * syntax.c (Fscan_sexps):
8702         * syntax.c (Fparse_partial_sexp):
8703         * toolbar.c (Fcheck_toolbar_button_syntax):
8704         * tooltalk.doc:
8705         * window.c:
8706         * window.c (Fwindowp):
8707         * window.c (Fwindow_live_p):
8708         * window.c (Fwindow_point):
8709         * window.c (Fdelete_window):
8710         * window.c (Fnext_window):
8711         * window.c (Fprevious_window):
8712         * window.c (Fother_window):
8713         * window.c (window_loop):
8714         * window.c (Fget_lru_window):
8715         * window.c (Fsplit_window):
8716         * window.c (Fenlarge_window):
8717         * window.c (Fenlarge_window_pixels):
8718         * window.c (Fshrink_window):
8719         * window.c (Fshrink_window_pixels):
8720         * window.c (change_window_height):
8721         * window.c (Fwindow_configuration_p):
8722         * window.c (Fcurrent_window_configuration):
8723         * window.h:
8724         * casefiddle.c (casify_object):
8725         * casefiddle.c (Fupcase):
8726         * casefiddle.c (Fdowncase):
8727         * casefiddle.c (Fcapitalize):
8728         * casefiddle.c (Fupcase_initials):
8729         * casefiddle.c (casify_region_internal):
8730         * casefiddle.c (casify_region):
8731         * casefiddle.c (Fupcase_region):
8732         * casefiddle.c (Fdowncase_region):
8733         * casefiddle.c (Fcapitalize_region):
8734         * casefiddle.c (Fupcase_initials_region):
8735         * casefiddle.c (Fupcase_word):
8736         * casefiddle.c (Fdowncase_word):
8737         * casefiddle.c (Fcapitalize_word):
8738         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8739         Replace 0 with '\0' when working with bytes.
8740         Replace initial "(" with "\(" in docstrings.
8741
8742 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8743
8744         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8745
8746         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8747
8748 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8749
8750         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8751
8752 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8753
8754         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8755         correctly.
8756
8757 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8758
8759         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8760         (inhibit_auto_save_session): New variable.
8761         (vars_of_fileio): Declare and initialize them.
8762         * fileio.c (Fdo_auto_save): Don't create session file if
8763         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8764
8765 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8766
8767         * sgiplay.c (play_internal): C++ compilability.
8768         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8769         * callproc.c (Fold_call_process_internal):
8770         Remove unused vars `env', `first'.
8771         * scrollbar.c (update_scrollbar_instance):
8772         #### unused var `current_window'.
8773         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8774         etc. within #ifdef NOT_YET.
8775         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8776         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8777         * specifier.c (specifier_instance):
8778         #### unused var `tag'.
8779         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8780
8781 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8782
8783         * fns.c (Fbutlast):
8784         * fns.c (list_sort):
8785         * fns.c (Ffillarray):
8786         * fns.c (bytecode_nconc2):
8787         * fns.c (Fnconc):
8788         * fns.c (mapcar1):
8789         * fns.c (Fmapconcat):
8790         Be pedantically 64-bit correct.  For the time when someone will
8791         want to have a list with length > 2**32.
8792
8793         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8794         Work around MIPSpro compiler bug.
8795
8796         * process-unix.c (unix_kill_child_process): Add snarky comment.
8797         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8798
8799         * config.h.in: Oops, _getpt ==> _getpty
8800
8801 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8802
8803         * config.h.in:
8804         * regex.c:
8805         Use void*, not char*, as return type of alloca().
8806
8807         * alloc.c (free_marker): Side effect inside assert expression!
8808
8809 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8810
8811         * mule-charset.c (Fset_charset_ccl_program): To check
8812         if the given ccl program is valid, use setup_ccl_program()
8813         instead of CHECK_VECTOR().
8814         (Fmake_charset): Likewise.
8815
8816 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8817
8818         * faces.c (get_extent_fragment_face_cache_index):
8819         Fix cachel.merged_faces memory leak.
8820
8821 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8822
8823         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8824         Reset MSB of octets obtained by DECODE_SJIS
8825         because of the incompatibility with Emacs.
8826         (ccl_driver)<CCL_ENCODE_SJIS>:
8827         Set MSB of octets before passing them to
8828         ENCODE_SJIS because of the incompatibility
8829         with Emacs.
8830
8831 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8832
8833         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8834         (DECLARE_LRECORD): Undo the last change.
8835         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8836
8837 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8838
8839         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8840         the implementation to lrecord_implementations_table.
8841
8842 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8843
8844         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8845         initial value of `lrecord_type_##c_name' and
8846         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8847         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8848         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8849         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8850         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8851
8852 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8853
8854         * miscplay.c (sndcnv8S_2mono):
8855         (sndcnv2monounsigned):
8856         (sndcnvULaw_2linear):
8857         (sndcnv16swap):
8858         Remove implementation-defined behavior.
8859
8860 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8861
8862         * input-method-xlib.c: Warning suppression.
8863
8864 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8865
8866         * mule-ccl.c: Sync up with Emacs 21.0.90.
8867         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8868         Do nothing.
8869         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8870         Likewise.
8871         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8872         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8873         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8874         leading char belongs to official 2-dimensional charset.
8875         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8876         write the given character as is.  Otherwise,
8877         if it is a multibyte char, convert it by
8878         non_ascii_set_charptr_emchar, then write it.
8879         (CCL_WRITE_STRING): Likewise.
8880         (ccl_get_compiled_code): New function.
8881         (setup_ccl_program): When ccl_prog is invalid,
8882         return -1.
8883         (Fregister_code_conversion_map): New function.
8884         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8885
8886         * mule-ccl.h: Sync up with Emacs 21.0.90.
8887         (Fregister_ccl_program): export it.
8888
8889         * redisplay-msw.c (separate_textual_runs):
8890         If ccl program is not valid, don't do ccl conversion.
8891
8892         * redisplay-x.c (separate_textual_runs): Ditto.
8893
8894         * file-coding.c (Fmake_coding_system):
8895         When type is ccl and value is vector, register it
8896         with a proper symbol.  And checks whether the
8897         given ccl program is valid.
8898         (mule_decode): When calling ccl_driver, if src indicates
8899         NULL pointer, set an empty string instead.
8900         (mule_encode): Likewise.
8901
8902 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8903
8904         The following large batch of changes gets us back to a state of
8905         C++ compilability.  Extbyte is now a char, which means that
8906         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8907
8908         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8909
8910         * sound.c (Fplay_sound): Type correctness.
8911
8912         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8913         (x_get_window_property): Type correctness.
8914         (receive_incremental_selection): unsigned char ==> Extbyte
8915         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8916         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8917         (Fx_store_cutbuffer_internal): Type correctness.
8918
8919         * process-unix.c (try_to_initialize_subtty): Type correctness.
8920
8921         * objects-x.c (x_print_color_instance): Type correctness.
8922         (x_print_font_instance): Type correctness.
8923         (x_list_fonts): SExtbyte ==> Extbyte.
8924         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8925         (x_find_charset_font): SExtbyte ==> Extbyte.
8926         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8927         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8928         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8929         Use bufbyte_strcmp.
8930
8931         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8932         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8933         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8934         (BYTE_C0_P): Use bit ops for char-signedness safety.
8935         (BYTE_C1_P): Use bit ops for char-signedness safety.
8936         (CHARSET_BY_LEADING_BYTE):
8937         (CHARSET_BY_ATTRIBUTES):
8938         Always use inline function.
8939         Use type_checking_assert.
8940         Hide chlook.
8941
8942         * mule-charset.c (non_ascii_charptr_copy_char):
8943         Modify to work with both ASCII and non-ASCII characters.
8944         Improve docs and variable names.
8945         Replace over-clever fall-through switch with a simple loop.
8946         (Lstream_get_emchar_1):
8947         Replace over-clever fall-through switch with a simple loop.
8948
8949         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8950         Warning suppression.
8951
8952         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8953         the return value of Lstream_getc, which could be EOF as well.
8954
8955         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8956
8957         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8958         APIs can be used on Extbytes without casts.  Risky!
8959         (SExtbyte): Remove.
8960         (UExtbyte): Remove.
8961
8962         * input-method-xlib.c (XIM_init_device):
8963         Use Xlib.h instead of IntrinsicP.h.
8964         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8965         which will break in X11R7.
8966         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8967         to call XRegisterIMInstantiateCallback with correct types.
8968
8969         * gui-x.c (button_item_to_widget_value): Type correctness.
8970
8971         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8972
8973         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8974         (xbm_instantiate_1): Type correctness.
8975         (BUILD_GLYPH_INST):  Type correctness.
8976
8977         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8978
8979         * file-coding.c:
8980         (decode_coding_sjis):
8981         (decode_coding_big5):
8982         (decode_coding_ucs4):
8983         (decode_coding_utf8):
8984         (decode_coding_iso2022):
8985         (decode_coding_no_conversion):
8986         Make all decoding functions take an Extbyte * arg.
8987         (encode_coding_sjis):
8988         (encode_coding_big5):
8989         (encode_coding_ucs4):
8990         (encode_coding_utf8):
8991         (encode_coding_iso2022):
8992         (encode_coding_no_conversion):
8993         Make all encoding functions take a Bufbyte * arg.
8994         Use size_t instead of unsigned int for memory sizes.
8995         Only cast to unsigned char whenever dereferencing Extbyte *.
8996
8997         * doc.c (unparesseuxify_doc_string): Type correctness.
8998
8999         * console-x.c (split_up_display_spec):
9000         Rewrite without using details of internal string representation.
9001         (x_semi_canonicalize_device_connection): Type correctness.
9002
9003         * config.h.in:
9004         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9005         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9006         (HAVE_XFREE386): Removed.
9007
9008         * buffer.h (DEC_CHARPTR): `const' correctness.
9009         (bufbyte_strcmp): New.
9010         (bufbyte_memcmp): New.
9011
9012         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9013
9014         * buffer.h (XCHAR_OR_CHAR_INT):
9015         Always use inline function.
9016         Remove redundant type checking assert() - XINT will abort quite nicely.
9017
9018 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9019
9020         * search.c (Freplace_match): Set newtext to an empty string.
9021
9022 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9023
9024         * s/decosf1-3.h: Remove #include of stropts.h
9025         * s/ptx.h: Remove #include of stropts.h
9026         * s/usg5-4.h: Remove #include of stropts.h
9027         * sysproc.h:
9028         * config.h.in:
9029         Use stropts.h, not sys/stropts.h.
9030         Use strtio.h, not sys/strtio.h.
9031
9032 2000-10-04  Martin Buchholz <martin@xemacs.org>
9033
9034         * XEmacs 21.2.36 is released.
9035
9036 2000-09-21  Andy Piper  <andy@xemacs.org>
9037
9038         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9039         changes still involve copying the widget tree.
9040         (update_widget_face): make sure a change is register in the widget
9041         tree. Call update_tab_widget_face appropriately.
9042         (update_tab_widget_face): ditto.
9043         (x_tab_control_redisplay): make sure non-structural changes still
9044         involve copying the widget tree.
9045
9046 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9047
9048         * lread.c (locate_file): Check the path element is non-nil.
9049
9050 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9051
9052         * lisp.h: Warning suppression for SCO compilers.
9053
9054         * redisplay-tty.c (reset_tty_modes): Fix crash.
9055         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9056
9057 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9058
9059         Big signal/process handling overhaul.  Bugs fixed:
9060         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9061         M-x comint-kill-subjob should work for both values nil and t of
9062         process-connection-type. It was broken on most platforms.
9063         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9064         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9065         * process-unix.c: Signal/Process handling overhaul.
9066         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9067         (allocate_pty): Use all available modern methods of allocating
9068         ptys, falling back to old style BSD allocation as a last resort.
9069         Use allegedly more secure Unix98 pty allocation by default.
9070         (allocate_pty_the_old_fashioned_way): New. the last resort.
9071         (unix_create_process): Push ptem, ldterm, ttcompat where
9072         available.  Autoconfiscate.
9073         (try_to_initialize_subtty): New.
9074         (unix_kill_child_process): Proper signal handling for ptys on most
9075         platforms, using special knowledge of AIX, BSD, etc...
9076         (unix_create_process): Always disconnect_controlling_terminal() for
9077         subprocesses, whether using ptys or not.
9078         * process.h: Remove old getpt-dependent PTY code.
9079         * process.c (Fprocess_send_signal): New, obvious generic function.
9080         (decode_signal): New.
9081         (Finterrupt_process):
9082         (Fkill_process):
9083         (Fquit_process):
9084         (Fstop_process):
9085         (Fcontinue_process):
9086         (Fsignal_process): Use decode_signal.
9087         (process_send_signal):
9088         Many docstring corrections.
9089         Allow any signal to be sent to a process object.
9090         * config.h.in: Add symbols for big signal/process overhaul.
9091         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9092         * sysproc.h: Include process-related headers, where available:
9093         sys/stropts.h sys/strtio.h pty.h libutil.h
9094         * s/irix4-0.h:
9095         * s/irix5-0.h:
9096         * s/cygwin32.h:
9097         * s/gnu.h:
9098         * s/linux.h:
9099         * s/hpux.h:
9100         * s/aix3-1.h:
9101         Remove old S&M pty stuff.
9102         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9103         * systty.h: Simplify cpp hackery, improve comments.
9104         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9105
9106         * editfns.c (Fformat_time_string):
9107         Be a little more paranoid with the return value of ctime.
9108
9109         * fileio.c (check_executable):
9110         (check_writable):
9111         Use symbolic constants X_OK, W_OK.
9112
9113         * console-x.c (split_up_display_spec): Fix a warning.
9114
9115 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9116
9117         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9118         * ntproc.c (sys_spawnve): make_string ==> build_string
9119         Small clarity improvements.
9120
9121 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9122
9123         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9124
9125         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9126
9127         * config.h.in (HAVE_STRCASECMP): Remove.
9128
9129 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9130
9131         * redisplay-output.c (redisplay_output_pixmap):
9132         Cleaner and possibly more 64-bit correct code.
9133
9134 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9135
9136         * dumper.c (pdump_load_finish): move restoration of
9137         `noninteractive1' to emacs.c (main_1).
9138         * emacs.c (main_1): protect LISP-visible command-line flags
9139         from pdump_load().
9140
9141 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9142
9143         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9144         DUMP_TARGET instead of literal program names.
9145
9146 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9147
9148         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9149
9150 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9151
9152         * *: Spelling mega-patch
9153
9154 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9155
9156         * fns.c (bad_bad_turtle):
9157         Delete "Eek!" comment, since we fixed the bug to which it refers.
9158
9159 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9160
9161         * alloca.c: Replace REGISTER with register.
9162
9163 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9164
9165         * file-coding.c (ucs_to_char): Use countof.
9166
9167 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9168
9169         * file-coding.c: (ucs_to_char):
9170         (complex_vars_of_file_coding):
9171         Use countof instead of sizeof.
9172         Use CHECK_NATNUM instead of CHECK_INT.
9173
9174         * sysdep.c (strcasecmp): Remove.
9175         * device-x.c (ascii_strcasecmp): New.
9176         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9177         Avoid using non-standard non-portable strcasecmp.
9178
9179 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9180
9181         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9182         * font-lock.c: remove reference to emacsfns.h.
9183         * search.c: small doc improvement.
9184         * event-Xt.c: correct file names in comments.
9185         * console-x.h Correct file names in comments.
9186         * frame.c: Correct file names in comments.
9187         * event-stream.c: remove Energize from comments.
9188
9189 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9190
9191         * symeval.h (DEFERROR_STANDARD):
9192         (DEFERROR):
9193         (DEFSYMBOL):
9194         (DEFSYMBOL_NO_DUMP):
9195         (DEFSYMBOL_MULTIWORD_PREDICATE):
9196         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9197         (DEFKEYWORD):
9198         The construct &##name is not sensible C.
9199         Fixes compilation errors with Unixware native compiler.
9200
9201 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9202
9203         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9204         (next_frame_internal): Removed.  We now just have next_frame.
9205         (next_frame):
9206         Write a simpler and cleaner one-pass algorithm.
9207         Remove called_from_delete_device arg and #ifdefed-out code.
9208         (previous_frame):
9209         Renamed from prev_frame.  Update callers.
9210         Cleaned up to have an analogous implementation to next_frame.
9211         (other_visible_frames_internal): Remove the
9212         called_from_delete_device bogus arg, and hence, remove this
9213         function.  Just use other_visible_frames().
9214
9215         * window.c (Fnext_window):
9216         Prettify docstring.
9217         Since next_frame() is guaranteed to return a frame, remove check
9218         for nil inserted in previous patch.
9219         (Fprevious_window):
9220         Prettify docstring.
9221         Make code look more like Fnext_window.
9222         (window_loop):
9223         Respect the `console' arg when iterating through windows.
9224         Fixes bug: (get-buffer-window buffer t device) not respecting
9225         the `device' arg.
9226         This function needs more work, as others have pointed out.
9227
9228         * frame.h: Rename prev_frame to previous_frame.
9229         device_matches_console_spec no longer takes a `frame' arg.
9230
9231         * s/gnu.h:
9232         * s/linux.h:
9233         * s/hpux.h:
9234         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9235         From "Golubev I. N." <gin@mo.msk.ru>.
9236
9237         * make-src-depend: Fix typo.
9238
9239 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9240
9241         * window.c (Fnext_window):
9242         next_frame() might return nil, not a frame.
9243         Fixes this crash:
9244         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9245
9246         * frame.c (next_frame_internal):
9247         We've passed a frame if we've passed its device.
9248         Fixes this crash:
9249         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9250 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9251
9252 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9253
9254         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9255         Allow option to suppress accelerators in menu/dialog items.
9256         (populate_or_checksum_helper): Pass dialog title through above.
9257
9258 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9259
9260         * event-msw.c (mswindows_key_to_emacs_keysym):
9261         Add "pause" key, fix "menu" key.
9262
9263 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9264
9265         * eval.c (reinit_vars_of_eval):
9266         Increase max_lisp_eval_depth to 1000,
9267         required for thai-xtis.el to byte-compile under some circumstances.
9268
9269 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9270
9271         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9272         From Kenichi Handa.
9273
9274 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9275
9276         * make-src-depend: Make the generated Makefiles smaller.
9277
9278         * s/hpux.h (SETUP_SLAVE_PTY):
9279         Provide a %d in the format string for the errno argument.
9280
9281         * editfns.c (Ftemp_directory):
9282         Warning fix.
9283         Avoid buffer overrun on very long file name.
9284
9285         * input-method-xlib.c (XIM_init_device):
9286         6th parameter of XRegisterIMInstantiateCallback has different
9287         pointer types on different OSes, so simply cast to (void *).
9288
9289         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9290
9291         * sysdll.c (dll_open):
9292         shl_load will hang hard if passed a NULL filename.
9293         Simply return NULL for compatibility with dlopen.
9294         * sysdll.c: Conform to XEmacs coding standards.
9295
9296         * sysdep.c (get_pty_max_bytes):
9297         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9298
9299 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9300
9301         * tooltalk.c: Add #include <syssignal.h>
9302
9303 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9304
9305         * s/hpux.h: Don't use undefined function sigunblock().
9306
9307 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9308
9309         * config.h.in: Add HAVE_BALLOON_HELP.
9310         * emacs.c: Use HAVE_BALLOON_HELP.
9311         * Makefile.in.in (x_objs):
9312         Make Balloon Help conditional on finding shape.h.
9313
9314 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9315
9316         * syntax.c (regex_emacs_buffer_p): New variable.
9317         * syntax.h (regex_emacs_buffer_p): extern.
9318         * search.c (looking_at_1):
9319         (string_match_1):
9320         (fast_string_match):
9321         (search_buffer): Set regex_emacs_buffer_p.
9322         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9323         when before_dot, at_dot, after_dot.
9324
9325 2000-08-23  Andy Piper  <andy@xemacs.org>
9326
9327         * gui-x.c (popup_selection_callback): Only set action_occurred
9328         when we really have an image instance.
9329         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9330
9331 2000-08-23  Andy Piper  <andy@xemacs.org>
9332
9333         * gui-msw.c (mswindows_handle_gui_wm_command): set
9334         action_occurred.
9335         * gui-x.c (popup_selection_callback): ditto.
9336
9337         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9338         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9339         (struct Lisp_Image_Instance): add action_occurred flag.
9340
9341         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9342         (image_instance_changed): ditto.
9343         (reset_frame_subwindow_instance_cache): only unmap windows - do
9344         not remove them from the cache also.
9345
9346         * glyphs-widget.c (tab_control_update): better debug.
9347         (progress_gauge_update): ditto.
9348         (layout_update): ditto.
9349         (layout_instantiate): ditto.
9350         (tab_control_order_only_changed): cope with null pending items.
9351
9352         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9353         debug. Force selection of an item when an action occurred. Cope
9354         with null pending_items.
9355         (mswindows_progress_gauge_redisplay): better debug.
9356         * glyphs-x.c (x_tab_control_redisplay): ditto.
9357
9358         * redisplay.c (redisplay_frame): reset the frame cache if the
9359         frame is garbaged.
9360
9361         * window.c (Fset_window_configuration): potentially re-enable
9362         frame cache reset.
9363         (window_unmap_subwindows): need to finalize instances here since
9364         it is only used in mark_window_as_deleted.
9365
9366 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9367
9368         * nas.c (SndOpenDataForReading):
9369         nas.c (WaveOpenDataForReading):
9370         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9371         Somehow escaped from the 2000-08-14 patch.
9372
9373 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9374
9375         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9376         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9377
9378 2000-08-21  Andy Piper  <andy@xemacs.org>
9379
9380         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9381         window if it is not already displayed.
9382
9383         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9384         it is not already displayed.
9385
9386         * window.c (Fset_window_configuration): don't reset the frame
9387         cache.
9388
9389         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9390         instances from the frame cache if we are actually finalizing them.
9391         (reset_frame_subwindow_instance_cache): reset frame cache only
9392         after unmapping everything.
9393         (map_subwindow): set displayed flag after mapping.
9394
9395 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9396
9397         * data.c (indirect_function):
9398         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9399
9400         * eval.c (function_argcount):
9401         Use original function when signaling errors.
9402
9403 2000-08-18  Andy Piper  <andy@xemacs.org>
9404
9405         * frame.c (delete_frame_internal): use new
9406         free_frame_subwindow_instances name.
9407
9408         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9409         (add_tab_item): make return type correct.
9410         (mswindows_tab_control_instantiate): assert index of tab.
9411         (mswindows_tab_control_redisplay): Re-code to use
9412         gui_item_equal_sans_selected and gui_item_list_find_selected.
9413
9414         * glyphs-widget.c (tab_control_update): Correct comment.
9415
9416         * window.c (window_unmap_subwindows): use new
9417         unmap_subwindow_instance_cache_mapper.
9418         (window_unmap_subwindows_cache_mapper): deleted.
9419         (Fset_window_configuration): comparisons should now be with
9420         EQ. Preserve the subwindow instance cache across configuration
9421         changes.
9422         (allocate_window): ditto.
9423         (make_dummy_parent): ditto.
9424
9425         * glyphs.c (free_frame_subwindow_instances): rename from
9426         free_frame_subwindow_instance_cache. finalize all instances rather
9427         than just those in the display cache.
9428         (finalize_all_subwindow_instances): walk windows unmapping and
9429         finalizing subwindows.
9430         (unmap_subwindow_instance_cache_mapper): moved from
9431         window.c. Allow finalization as well as unmapping.
9432
9433         * gui.c (gui_item_list_find_selected): new function.
9434
9435         * gui.h (gui_item_list_find_selected): declare.
9436
9437         * glyphs-x.c (x_tab_control_redisplay): pick tab
9438         explicitly. Re-code to use gui_item_equal_sans_selected and
9439         gui_item_list_find_selected.
9440
9441         * glyphs-x.h: add lwlib-utils.h
9442
9443         * buffer.c (Frecord_buffer): undo previous change.
9444
9445 2000-08-09  Vin Shelton  <acs@xemacs.org>
9446
9447         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9448         possible.  Create temporary files more securely.  The patch was
9449         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9450         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9451         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9452         for details.
9453
9454 2000-08-07  Ben Wing  <ben@xemacs.org>
9455
9456         * getloadavg.c: remove duplicate (and windows-breaking)
9457         includes of fcntl.h and sys/file.h.
9458
9459         * nt.c: remove duplicate getloadavg() definition.
9460
9461         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9462         encodings.
9463
9464 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9465
9466         * eval.c (function_argcount): If function needs to be autoloaded
9467         actually use the loaded definition.
9468         GCPRO function.
9469
9470 2000-08-05  Ben Wing  <ben@xemacs.org>
9471
9472         * getloadavg.c: add prototype for getloadavg().  remove
9473         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9474         of the code).  remove duplicate header includes.
9475
9476         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9477
9478         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9479         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9480         useful load average.
9481
9482         * alloc.c (reinit_alloc_once_early): removed references to
9483         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9484         the lisp vars are the only things referencing the malloc_sbrk_*
9485         vars, and they were already if 0'd out.  these vars only exist
9486         in the older malloc.c, which is basically unused, and they're
9487         only for informational purposes.
9488
9489         * m\*.h: removed useless VIRT_ADDR_VARIES.
9490
9491         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9492
9493 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9494
9495         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9496         color if the image is a mono pixmap.
9497
9498 2000-07-30  Ben Wing  <ben@xemacs.org>
9499
9500         * Makefile.in.in (release):
9501         Remove stray @.
9502
9503         * buffer.c (directory_is_current_directory):
9504         * dired-msw.c (mswindows_get_files):
9505         * dired.c:
9506         * dired.c (Fdirectory_files):
9507         * dired.c (file_name_completion_stat):
9508         * dired.c (Ffile_attributes):
9509         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9510         preprocessor tricks, to avoid problems on some machines
9511         (e.g. SCO).
9512
9513         * callproc.c (egetenv): GC docs.
9514
9515         * console-msw.h:
9516         * console-msw.h (struct mswindows_dialog_id):
9517         * lrecord.h (lrecord_type):
9518         New object for use with MSW dialogs.
9519
9520         * console.h (struct console_methods):
9521         New enable/disable frame methods, for proper modal dialogs.
9522
9523         * device-msw.c (msprinter_default_printer): Fix to follow
9524         proper Mule conventions.
9525
9526         * device-msw.c:
9527         * device-msw.c (signal_open_printer_error):
9528         * device-msw.c (msprinter_init_device):
9529         * device-msw.c (ensure_not_printing):
9530         * device-msw.c (plist_get_margin):
9531         * device-msw.c (Fmsprinter_select_settings):
9532         * device-msw.c (finalize_devmode):
9533         * device-msw.c (Fmsprinter_settings_despecialize):
9534         * device-msw.c (signal_enum_priner_error):
9535         * extents.c (decode_extent):
9536         * extents.c (decode_map_extents_flags):
9537         * extents.c (decode_extent_at_flag):
9538         * extents.c (Fextent_at):
9539         * extents.c (Fextents_at):
9540         * extents.c (symbol_to_glyph_layout):
9541         [[[[2]]]] Use structured errors.
9542
9543         * dialog-msw.c:
9544         * dialog-msw.c (mswindows_is_dialog_msg):
9545         * dialog-msw.c (mark_mswindows_dialog_id):
9546         * dialog-msw.c (dialog_proc):
9547         * dialog-msw.c (handle_question_dialog_box):
9548         * dialog-msw.c (syms_of_dialog_mswindows):
9549         Define new object to clean up marking; use it as a dialog identifier.
9550         Call new delete-dialog-box-hook.
9551
9552         * dialog-x.c (dbox_selection_callback):
9553         * dialog-x.c (dbox_descriptor_to_widget_value):
9554         * dialog-x.c (x_make_dialog_box_internal):
9555         Call new delete-dialog-box-hook.
9556         Return an id.
9557
9558         * dialog.c:
9559         * dialog.c (syms_of_dialog):
9560         * dialog.c (vars_of_dialog):
9561         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9562
9563         * eval.c:
9564         * eval.c (signal_call_debugger):
9565         when noninteractive, output stack traces on the console instead
9566         of in a (never-seen) buffer.
9567
9568         * eval.c (signal_type_error):
9569         * eval.c (invalid_argument_2):
9570         * lisp.h:
9571         new funs for use w/structured errors.
9572
9573         * event-Xt.c:
9574         * event-Xt.c (x_to_emacs_keysym):
9575         * event-Xt.c (describe_event):
9576         * event-Xt.c (emacs_Xt_event_handler):
9577         * event-Xt.c (vars_of_event_Xt):
9578         * event-msw.c:
9579         * event-msw.c (mswindows_wnd_proc):
9580         * event-msw.c (vars_of_event_mswindows):
9581         rename {x,mswindows}-debug-events to debug-{}-events for
9582         consistency with other debug-foo variables.
9583
9584         * event-stream.c:
9585         document next-event more clearly.
9586
9587         * fileio.c (Ffile_name_directory):
9588         * fileio.c (Ffile_name_nondirectory):
9589         * fileio.c (Funhandled_file_name_directory):
9590         * fileio.c (file_name_as_directory):
9591         * fileio.c (Ffile_name_as_directory):
9592         * fileio.c (directory_file_name):
9593         * fileio.c (Fdirectory_file_name):
9594         * fileio.c (Fmake_temp_name):
9595         * fileio.c (Ffile_truename):
9596         * fileio.c (Fsubstitute_in_file_name):
9597         * fileio.c (expand_and_dir_to_file):
9598         * fileio.c (barf_or_query_if_file_exists):
9599         * fileio.c (check_executable):
9600         * fileio.c (Ffile_exists_p):
9601         * fileio.c (Ffile_writable_p):
9602         * fileio.c (Ffile_directory_p):
9603         * fileio.c (Ffile_regular_p):
9604         * fileio.c (Ffile_modes):
9605         * fileio.c (Ffile_newer_than_file_p):
9606         * fileio.c (Fverify_visited_file_modtime):
9607         * fileio.c (Fset_visited_file_modtime):
9608         * fileio.c (auto_save_1):
9609         (1). (2).
9610         fix up gcpro's.
9611
9612         * frame-msw.c:
9613         * frame-msw.c (mswindows_init_frame_1):
9614         * frame-msw.c (mswindows_enable_frame):
9615         * frame-msw.c (error_frame_unsizable):
9616         * frame-msw.c (msprinter_init_frame_1):
9617         * frame-msw.c (msprinter_init_frame_3):
9618         * frame-msw.c (console_type_create_frame_mswindows):
9619         (2).
9620         implement new enable/disable frame methods.
9621
9622         * frame-x.c:
9623         * frame-x.c (x_enable_frame):
9624         * frame-x.c (console_type_create_frame_x):
9625         implement new enable/disable frame methods.
9626
9627         * frame.c:
9628         * frame.c (Fdisable_frame):
9629         * frame.c (syms_of_frame):
9630         * frame.h (struct frame):
9631         implement new enable/disable frame methods/functions.
9632
9633         * general-slots.h:
9634         add initial-focus.
9635
9636         * glyphs-msw.c (mswindows_widget_instantiate):
9637         comment that initial-focus should be implemented.
9638
9639         * glyphs-widget.c:
9640         * glyphs-widget.c (check_valid_instantiator):
9641         * glyphs-widget.c (check_valid_orientation):
9642         * glyphs-widget.c (check_valid_tab_orientation):
9643         * glyphs-widget.c (check_valid_justification):
9644         * glyphs-widget.c (check_valid_border):
9645         * glyphs-widget.c (check_valid_callback):
9646         * glyphs-widget.c (check_valid_int_or_function):
9647         * glyphs-widget.c (check_valid_string_or_vector):
9648         * glyphs-widget.c (check_valid_item_list_1):
9649         * glyphs-widget.c (widget_validate):
9650         * glyphs-widget.c (combo_box_validate):
9651         * glyphs-widget.c (widget_instantiate):
9652         * glyphs-widget.c (syms_of_glyphs_widget):
9653         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9654         * glyphs-widget.c (image_instantiator_combo_box):
9655         * glyphs-widget.c (image_instantiator_scrollbar):
9656         * glyphs-widget.c (image_instantiator_tab_control):
9657         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9658         (2).
9659         support (unimplemented) keyword initial-focus.
9660         reindent long macros.
9661
9662         * glyphs-x.c (x_redisplay_widget):
9663         * glyphs-x.c (x_button_instantiate):
9664         * glyphs-x.c (x_button_redisplay):
9665         * glyphs-x.c (x_progress_gauge_instantiate):
9666         * glyphs-x.c (x_edit_field_instantiate):
9667         * glyphs-x.c (x_combo_box_instantiate):
9668         * glyphs-x.c (x_tab_control_instantiate):
9669         * glyphs-x.c (x_label_instantiate):
9670         * gui-x.c:
9671         * gui-x.c (button_item_to_widget_value):
9672         * gui-x.c (gui_items_to_widget_values_1):
9673         * gui-x.c (gui_item_children_to_widget_values):
9674         * gui-x.c (gui_items_to_widget_values):
9675         * gui-x.h:
9676         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9677         add new flag to gui-parsing routines to indicate whether
9678         accelerator specs should be supported.
9679
9680         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9681
9682         * glyphs.h (struct Lisp_Image_Instance):
9683         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9684         add initial-focus flag.
9685
9686         * gui.c:
9687         * gui.c (syms_of_gui):
9688         * gui.c (vars_of_gui):
9689         clean up menu-no-selection-hook.
9690
9691         * gui.h:
9692         support delete-dialog-box-hook.
9693
9694         * lread.c (Fload_internal):
9695         * lread.c (locate_file_in_directory_mapper):
9696         (1).
9697
9698         * lrecord.h:
9699         * lrecord.h (struct toolbar_button):
9700         * lrecord.h (syms_of_toolbar):
9701         document how to create a new object.
9702
9703         * menubar-msw.c (mswindows_char_is_accelerator):
9704         may be called on frames w/o menus.
9705
9706         * menubar.c (vars_of_menubar):
9707         clean up :filter docs.
9708
9709         * nt.c (readdir):
9710         * ntproc.c:
9711         (1).
9712
9713         * process-nt.c:
9714         * process-nt.c (validate_signal_number):
9715         * process-nt.c (signal_cannot_launch):
9716         * process-nt.c (nt_create_process):
9717         * process-nt.c (nt_send_process):
9718         * process-nt.c (nt_kill_child_process):
9719         * process-nt.c (nt_open_network_stream):
9720         * process-nt.c (syms_of_process_nt):
9721         (2).
9722         delete quote-handling.  call new lisp code that does it better.
9723
9724         * process-unix.c (connect_to_file_descriptor):
9725         * process-unix.c (allocate_pty):
9726         * process-unix.c (unix_send_process):
9727         * process-unix.c (unix_kill_child_process):
9728         * process-unix.c (unix_open_network_stream):
9729         * process-unix.c (unix_open_multicast_group):
9730         (1). (2).
9731
9732         * process.c:
9733         * process.c (Fstart_process_internal):
9734         (2).  need to canonicalize process path even if absolute.
9735
9736         * select-msw.c (symbol_to_ms_cf):
9737         * select-msw.c (ms_cf_to_symbol):
9738         * select-msw.c (cf_is_autofreed):
9739         * select-msw.c (mswindows_destroy_selection):
9740         * select.c:
9741         * select.c (syms_of_select):
9742         * select.h:
9743         support dibv5, fix bugs. (from Mike Alexander)
9744
9745         * select.c (Fget_selection_internal):
9746         * select.c (select_convert_out):
9747
9748         * sysdep.c:
9749         * sysdep.c (xemacs_stat):
9750         renamed.
9751
9752         * sysdep.c (mkdir):
9753         * sysdep.c (rmdir):
9754         but keep original stat() here because we provide encapsulation
9755         around these funs.
9756
9757         * sysfile.h:
9758         * sysfile.h (fstat):
9759         remove stat garbage.
9760
9761         * syswindows.h:
9762         fix X/MSW conflict.
9763         don't include tchar.h.  it's inappropriate because it makes
9764         compile-time distinctions when we want runtime distinctions.
9765         (we provide our own tchar replacements)
9766
9767         * toolbar.c:
9768         use default object printer for toolbar-button.
9769
9770         * unexcw.c:
9771         make sure we don't encapsulate.
9772
9773         * window.c (vars_of_window):
9774         emphasize that temp-buffer-show-hook is obsolete.
9775
9776 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9777
9778         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9779         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9780
9781         * events.c (Fevent_timestamp_lessp):
9782         Not 64-bit clean.  Use EMACS_INT, not int.
9783
9784 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9785
9786         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9787         unsigned int and changed the last enum to
9788         lrecord_type_last_built_in_type.
9789         (lrecord_implementations_table): changed prototype to know how
9790         long the array is supposed to be.
9791         (lrecord_type_count): new unsigned int to keep track of the
9792         current number of lisp lrecord types.
9793         (DEFINE_EXTERNAL_LRECORD):
9794         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9795         dynamic-modules to declare new lisp types. They are the same
9796         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9797         int for each new type, and increment lrecord_type_count by 1.
9798
9799         * alloc.c (lrecord_implementations_table): Changed to reference
9800         lrecord_type_last_built_in_type for the size of the array.
9801         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9802
9803 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9804
9805         * glyphs.h (check_valid_item_list): Renamed from
9806         check_valid_item_list_1.
9807
9808 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9809
9810         * select.c (Qselect_coerce): New.
9811         * select.c (Vselection_coercion_alist): New.
9812         * select.c (syms_of_select): Declare.
9813         * select.c (get-selection-internal): Use it.
9814         Use the new select-coerce functionality.
9815
9816         * select.c (select_coerce): New.
9817         * select.h (select_coerce): Declare.
9818         New function to coerce one type of data into another.
9819
9820 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9821
9822         * callproc.c (Fcall_process_internal):
9823         (Fcall_process_internal):
9824         * process-unix.c (unix_create_process):
9825         Save and restore the value of errno, so that error messages are accurate.
9826
9827 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9828
9829         * elhash.c (print_hash_table):
9830         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9831         Prettify docstrings and indentation.
9832
9833 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9834
9835         * window.c (Fwindow_pixel_edges): Subtract frame border and
9836         gutter size.
9837
9838 2000-07-31  Andy Piper  <andy@xemacs.org>
9839
9840         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9841         will acknowledge the change.
9842
9843         * glyphs.h: declare tab_control_order_only_changed.
9844
9845         * glyphs-x.c (x_tab_control_redisplay): use
9846         tab_control_order_only_changed.
9847
9848         * glyphs-widget.c (tab_control_order_only_changed): new function.
9849
9850         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9851         tab_control_order_only_changed.
9852
9853         * gui.c (gui_item_equal_sans_selected): new function.
9854         (gui_item_equal): use it.
9855
9856         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9857         :properties in favor of :items..
9858
9859         * glyphs-widget.c (check_valid_item_list): rename from
9860         check_valid_item_list_1.
9861         (check_valid_item_list_1): renamed.
9862         (combo_box_validate): deprecate :properties in favor of :items.
9863         (widget_instantiate): ditto.
9864         (tab_control_update): ditto.
9865         (image_instantiator_combo_box): ditto.
9866         (image_instantiator_tree_view): ditto.
9867         (image_instantiator_tab_control): ditto.
9868         (layout_post_instantiate): remove dead code.
9869
9870         * print.c (debug_print_no_newline): only write to debugger if in
9871         WIN32_NATIVE.
9872
9873         * elhash.c (Fmake_hash_table): update doc string.
9874
9875         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9876         messages whilst in GC. This at least stops XEmacs crashing but has
9877         the potential for wierd behaviour.
9878
9879 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9880
9881         * config.h.in:
9882         Make existence of s&m files optional.
9883
9884         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9885         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9886         * s/gnu.h: Remove HAVE_GETLOADAVG.
9887         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9888         * s/sol2.h: Remove HAVE_GETLOADAVG.
9889         * lisp.h: Remove getloadavg() declaration.
9890         * fns.c:
9891         Include <sys/loadavg.h> if available.
9892         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9893         * config.h.in:  Group together getloadavg()-related macros.
9894         Use only configure-time tests to detect getloadavg().
9895
9896 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9897
9898         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9899
9900 2000-07-25  Andy Piper  <andy@xemacs.org>
9901
9902         * syswindows.h: add tchar.h for native builds.
9903
9904         * frame.c (syms_of_frame): remove set-glyph-image.
9905
9906         * general-slots.h: add Qset_glyph_image.
9907
9908         * glyphs-widget.c (layout_update): add domain arg to
9909         set-glyph-image.
9910         (syms_of_glyphs_widget): remove set-glyph-image.
9911
9912 2000-07-23  Ben Wing  <ben@xemacs.org>
9913
9914         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9915         Vpopup_frame_list.
9916
9917 2000-07-22  Andy Piper  <andy@xemacs.org>
9918
9919         * symsinit.h: add syms_of_win32().
9920
9921         * gui-msw.c (syms_of_gui_mswindows): remove
9922         Fmswindows_shell_execute.
9923         (Fmswindows_shell_execute): moved to win32.c.
9924
9925         * emacs.c (main_1): add syms_of_win32 ().
9926
9927         * win32.c (init_potentially_nonexistent_functions): rewrite in
9928         compiler-friendly terms.
9929         (Fmswindows_shell_execute): move here from gui-msw.c.
9930         (syms_of_win32): new.
9931
9932         * device-msw.c (Fmswindows_printer_list): clean up args to
9933         EnumPrinters.
9934         Don't include tchar under cygwin or mingw.
9935         (msprinter_default_printer): make cygwin-friendly.
9936
9937 2000-07-21  Andy Piper  <andy@xemacs.org>
9938
9939         * glyphs-widget.c (image_instantiator_tree_view): use tab
9940         control's update function.
9941         (layout_property): new function. Retrieve items.
9942
9943         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9944         function. Re-populate the tree view from the pending items.
9945
9946         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9947         is designated the parent if the domain is an image instance. This
9948         is needed so that dirtiness can be cascade up the hierarchy and
9949         thus for layout children to be redisplayed correctly.
9950         (allocate_image_instance): rename glyph -> parent.
9951
9952         * redisplay.h: change redisplay_output_layout signature.
9953
9954         * redisplay-msw.c (mswindows_output_display_block): use domain
9955         arg.
9956
9957         * redisplay-x.c (x_output_display_block): use domain arg.
9958
9959 2000-07-10  Andy Piper  <andy@xemacs.org>
9960
9961         * window.c (Fset_window_configuration): add comment.
9962
9963         * redisplay-output.c (compare_runes):
9964         (redisplay_output_subwindow): redisplay rather than update subwindow.
9965         (redisplay_output_layout): ditto.
9966
9967         * redisplay-msw.c (mswindows_frame_output_end):
9968         (mswindows_frame_output_end): make defer window pos optional.
9969
9970         * lisp.h: add Flast.
9971
9972         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9973         normalize method. Change update method to be for changed
9974         instantiators. Add redisplay method. Change signature of layout
9975         method.
9976         (struct Lisp_Image_Instance): add instantiator.
9977         (IMAGE_INSTANCE_INSTANTIATOR): new.
9978         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9979         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9980         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9981
9982         * glyphs.c:
9983         (find_instantiator_differences): new function.
9984         (Fset_instantiator_property): new convenience function.
9985         (check_image_instance_structure): strictly check for vector
9986         instantiators.
9987         (normalize_image_instantiator): make non-static.
9988         (instantiate_image_instantiator): pass on dest_mask and use new
9989         signatures for image_instance_layout and friends.
9990         (mark_image_instance): mark the instantiator. Mark the subwindow
9991         face not the widget face.
9992         (image_instance_equal): add instantiator.
9993         (image_instance_hash): ditto.
9994         (allocate_image_instance): ditto.
9995         (Fset_image_instance_property): removed.
9996         (Fimage_instance_file_name): ditto.
9997         (Fcolorize_image_instance): ditto.
9998         (image_instance_layout): add offsets to be set.
9999         (update_image_instance): new function. update an image instance
10000         from its changed instantiator.
10001         (inherit_normalize): add dest_mask.
10002         (xbm_normalize): ditto.
10003         (xface_normalize): ditto.
10004         (xpm_normalize): ditto.
10005         (text_update): set_property -> update.
10006         (image_instantiate): use the glyph identity as a hash key, not the
10007         instantiator.
10008         (glyph_width): use new image_instance_layout signature.
10009         (glyph_ascent): ditto.
10010         (glyph_descent): ditto.
10011         (glyph_height): ditto.
10012         (glyph_query_geometry): ressurrect.
10013         (glyph_layout): ditto.
10014         (redisplay_subwindow): update -> redisplay.
10015         (syms_of_glyphs): add Fset_instantiator_property.
10016         (image_instantiator_format_create): set_property -> update.
10017
10018         * glyphs-x.c:
10019         (autodetect_normalize): add dest_maks to signature.
10020         (x_redisplay_subwindow): update -> redisplay.
10021         (x_redisplay_widget): ditto.
10022         (x_button_redisplay): ditto.
10023         (x_progress_gauge_redisplay): ditto.
10024         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10025         stacking order.
10026         (console_type_create_glyphs_x): update -> redisplay.
10027         (image_instantiator_format_create_glyphs_x): ditto.
10028
10029         * glyphs-widget.c:
10030         (check_valid_instantiator): disallow glyphs in the instantiator,
10031         they must now be vectors.
10032         (check_valid_instantiator_list): ditto.
10033         (glyph_instantiator_to_glyph): use internal symbol rather than
10034         intern.
10035         (widget_update): renamed from widget_set_property. Call cascaded
10036         update methods.
10037         (redisplay_widget): renamed from update_widget.
10038         (widget_layout): image_instance_layout now takes position as well
10039         as size.
10040         (widget_normalize): ditto.
10041         (widget_instantiate): ditto.
10042         (tab_control_query_geometry) ditto.:
10043         (tab_control_update): renamed from tab_control_set_property.
10044         (progress_gauge_update): set_property -> update.
10045         (layout_normalize): rewrite so that child instantiators are
10046         normalized also.
10047         (layout_update): new function. Create glyphs from the normalized
10048         children and cope with any other layout keywords. We do not
10049         instantiate children here that will be take care of by
10050         redisplay_output_layout.
10051         (layout_instantiate): call layout_update and not much else.
10052         (layout_post_instantiate): not sure whether this is needed
10053         anymore.
10054         (layout_query_geometry): query glyph geometry rather than
10055         image_instance geometry.
10056         (layout_layout): set offsets from pass in parameters. Use glyph
10057         geometry and layout functions rather than image instance ones.
10058         (native_layout_layout): ditto.
10059         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10060         (image_instantiator_widget): set_property -> update.
10061         (image_instantiator_buttons): ditto.
10062         (image_instantiator_progress_guage): ditto.
10063         (image_instantiator_tab_control): ditto.
10064         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10065         (image_instantiator_layout): add update method.
10066
10067         * glyphs-msw.c (bmp_normalize):
10068         (mswindows_resource_normalize): add dest_mask so that it can be
10069         proprogated by layout_normalize.
10070         (begin_defer_window_pos): make optional because it may not be the
10071         right thing to do and it introduces differences with X.
10072         (mswindows_unmap_subwindow): ditto.
10073         (mswindows_map_subwindow): ditto.
10074         (mswindows_redisplay_subwindow): renamed from
10075         mswindows_update_subwindow.
10076         (mswindows_redisplay_widget): ditto.
10077         (mswindows_button_redisplay): renamed from
10078         mswindows_button_update. Update is now what the instantiation
10079         function does for a changed instantiator.
10080         (mswindows_progress_gauge_instantiate): set the progress value
10081         here if appropriate.
10082         (mswindows_tab_control_redisplay): cope with re-ordering of the
10083         members of the tab widget by simply selecting the new top
10084         widget. This makes things appear ok if you click on a tab.
10085         (mswindows_combo_box_instantiate): image_instance_layout now takes
10086         position as well as size.
10087         (mswindows_progress_gauge_redisplay): renamed from
10088         mswindows_progress_gauge_update.
10089         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10090         (image_instantiator_format_create_glyphs_mswindows): ditto.
10091
10092         * glyphs-eimage.c (jpeg_normalize):
10093         (gif_normalize):
10094         (png_normalize):
10095         (tiff_normalize): add dest_mask so that it can be proprogated by
10096         layout_normalize.
10097
10098         * elhash.c:
10099         (print_hash_table):
10100         (hash_table_weakness_validate):
10101         (decode_hash_table_weakness):
10102         (Fhash_table_weakness):
10103         (Fhash_table_type):
10104         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10105
10106         * console.h (struct console_methods): move update_* to
10107         redisplay_*.
10108
10109 2000-07-20  Ben Wing  <ben@xemacs.org>
10110
10111         * *.[ch] (XSETOBJ): remove unused middle argument.
10112         lisp-disunion.h: correct wrap_object() to one argument.
10113
10114 2000-07-15  Ben Wing  <ben@xemacs.org>
10115
10116         * s/cygwin32.h:
10117         * s/cygwin32.h (CYGWIN_CONV_PATH):
10118         Add missing logb prototype for v1.1.
10119         Use post-b20 names and alias to pre-b20 names when pre-b20.
10120
10121         * s/windowsnt.h: [5].
10122
10123 2000-07-15  Ben Wing  <ben@xemacs.org>
10124
10125         * Makefile.in.in (x_objs):
10126         * Makefile.in.in (sheap_objs):
10127         * Makefile.in.in (objs):
10128         added win32.o, cosmetic cleanups.
10129
10130         * alloc.c (Fmake_byte_code):
10131         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10132         etc. macros which declare their own args now.
10133
10134         * alloc.c (syms_of_alloc):
10135         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10136
10137         * buffer.c:
10138         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10139
10140         * buffer.c (Fget_file_buffer):
10141         Fixed GCPRO problem.
10142
10143         * buffer.c (get_truename_buffer):
10144         Fixed comment about GC checking.
10145
10146         * buffer.c (syms_of_buffer):
10147         Undeclared those dedicated frame funs.
10148         [2].
10149
10150         * buffer.h:
10151         Define convenience macros for internal/external conversions.
10152         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10153         and Qenvironment_variable_encoding for cleaner code.
10154
10155         * bufslots.h:
10156         Remove dedicated-frame; in lisp.
10157
10158         * bytecode.c (funcall_compiled_function):
10159         [1].
10160
10161         * bytecode.c (syms_of_bytecode):
10162         [2].
10163
10164         * console-msw.c:
10165         * console-msw.c (mswindows_show_console): Rewrote.
10166
10167         * console-msw.c (Fmswindows_debugging_output): New.
10168         Sends to OutputDebugString (special MSWin debugger interface).
10169
10170         * console-msw.c (Fmswindows_message_box):
10171         Fixed stupid bugs so it works when called from kill-emacs.
10172
10173         * console-msw.c (syms_of_console_mswindows):
10174         Declare Fmswindows_debugging_output.
10175
10176         * console-msw.h:
10177         New MSWin prototypes.
10178
10179         * console-msw.h (struct mswindows_frame):
10180         New entry last-click-mods for improved button-modifier support.
10181
10182         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10183         New struct entry `popup' with corresponding accessor.
10184
10185         * console-x.c:
10186         * console-x.c (split_up_display_spec):
10187         * console-x.c (get_display_arg_connection):
10188         * console-x.c (x_semi_canonicalize_console_connection):
10189         * console-x.c (x_canonicalize_device_connection):
10190         [[[6]]]: Change char to more specific type.
10191         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10192
10193         * console-x.c (x_semi_canonicalize_console_connection):
10194         * console-x.c (x_canonicalize_device_connection):
10195         [[[9]]]: Fix up error signalling to use new structured error system.
10196
10197         * console-x.h:
10198         [[[4]]]: Define codesys aliases:
10199         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10200         Qx_color_name_encoding, Qx_display_name_encoding.
10201
10202         * console.h (struct console_methods):
10203         New method make_dialog_box_internal supersedes older
10204         popup_dialog_box method.
10205
10206         * data.c:
10207         Define many new errors, part of new structured errors.
10208
10209         * data.c (init_errors_once_early):
10210         * data.c (syms_of_data):
10211         [2].
10212
10213         * device-msw.c (mswindows_init_device):
10214         [[[5]]]: Cleanup to support NT 3.51.
10215
10216         * device-msw.c (decode_devmode): Cleanup.
10217
10218         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10219         * device-msw.c (mswindows_handle_print_dialog_box):
10220         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10221         * device-msw.c (syms_of_device_mswindows):
10222         Delete the dialog box primitives recently introduced by Kirill and
10223         instead interface to general dialog box interface.
10224
10225         * device-x.c:
10226         * device-x.c (compute_x_app_name):
10227         * device-x.c (x_init_device):
10228         * device-x.c (Fx_valid_keysym_name_p):
10229         * device-x.c (Fx_set_font_path):
10230         [6].
10231         [7].
10232
10233         * device.h (wrap_device): New.
10234         First of its kind; meant to replace XSETDEVICE.
10235
10236         * dialog-msw.c: Many file-dialog symbols.
10237
10238         * dialog-msw.c (mswindows_register_popup_frame): New.
10239         * dialog-msw.c (mswindows_is_dialog_msg): New.
10240         For supporting kbd traversal in dialog boxes.
10241
10242         * dialog-msw.c (dialog_proc):
10243         Support hitting ESC in dialogs.
10244
10245         * dialog-msw.c (struct):
10246         Common dialog box errors.
10247
10248         * dialog-msw.c (handle_file_dialog_box): New.
10249         Add file dialog code.
10250
10251         * dialog-msw.c (handle_question_dialog_box):
10252         Redo existing code to support new question dialog syntax.
10253
10254         * dialog-msw.c (console_type_create_dialog_mswindows):
10255         We support new dialog console method.
10256
10257         * dialog-msw.c (syms_of_dialog_mswindows):
10258         * dialog-msw.c (vars_of_dialog_mswindows):
10259         New file dialog symbols, vars.
10260
10261         * dialog-x.c:
10262         * dialog-x.c (maybe_run_dbox_text_callback):
10263         * dialog-x.c (dbox_descriptor_to_widget_value):
10264         * dialog-x.c (x_make_dialog_box_internal):
10265         * dialog-x.c (console_type_create_dialog_x):
10266         Mule-ize entire file.
10267         Redo to support question dialog syntax.
10268         [6].
10269
10270         * dialog.c:
10271         * dialog.c (Fmake_dialog_box_internal):
10272         * dialog.c (syms_of_dialog):
10273         Kill old popup-dialog-box, replace with new primitive.
10274         Just call device method or signal error.
10275
10276         * eldap.c (Fldap_open):
10277         * eldap.c (Fldap_search_basic):
10278         * eldap.c (Fldap_add):
10279         * eldap.c (Fldap_modify):
10280         [1].
10281         [7].
10282
10283         * emacs.c:
10284         * emacs.c (make_arg_list_1):
10285         * emacs.c (make_arg_list):
10286         Mule-ize call to dll_init().
10287         [6].
10288         [8].
10289
10290         * emacs.c (make_argc_argv):
10291         * emacs.c (free_argc_argv):
10292         * emacs.c (init_cmdargs):
10293         * emacs.c (main_1):
10294         * emacs.c (Fkill_emacs):
10295         * emacs.c (Fdump_emacs):
10296         Update comments about what can be used in syms_* etc.
10297         Call init_win32() when necessary.
10298         Fix up MS Win dialog box in kill-buffer to actually work right.
10299         [7].
10300
10301         * eval.c:
10302         * eval.c (For):
10303         * eval.c (Fand):
10304         * eval.c (Fprogn):
10305         * eval.c (Fprog1):
10306         * eval.c (Fprog2):
10307         * eval.c (FletX):
10308         * eval.c (Flet):
10309         * eval.c (condition_case_3):
10310         * eval.c (Feval):
10311         * eval.c (function_argcount):
10312         * eval.c (funcall_lambda):
10313         [1].
10314
10315         * eval.c (type_error): New.
10316         * eval.c (maybe_type_error): New.
10317         * eval.c (continuable_type_error): New.
10318         * eval.c (maybe_continuable_type_error): New.
10319         * eval.c (type_error_with_frob): New.
10320         * eval.c (maybe_type_error_with_frob): New.
10321         * eval.c (continuable_type_error_with_frob): New.
10322         * eval.c (maybe_continuable_type_error_with_frob): New.
10323         New functions for use with structured errors.
10324
10325         * event-Xt.c:
10326         * event-Xt.c (x_event_to_emacs_event):
10327         Buttons are now modifiers too.
10328
10329         * event-Xt.c (emacs_Xt_current_event_timestamp):
10330         Implement new event method.
10331         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10332
10333         * event-msw.c:
10334         * event-msw.c (ntpipe_shove_writer): [5].
10335         * event-msw.c (mswindows_enqueue_mouse_button_event):
10336         * event-msw.c (mswindows_drain_windows_queue):
10337         * event-msw.c (mswindows_wnd_proc): [7].
10338         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10339         * event-msw.c (mswindows_modifier_state):
10340         Throughout: support new button modifiers.
10341
10342         * event-msw.c (emacs_mswindows_current_event_timestamp):
10343         Implement new event method.
10344         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10345
10346         * event-stream.c:
10347         * event-stream.c (event_stream_current_event_timestamp): New.
10348         * event-stream.c (maybe_kbd_translate): New functionality.
10349         * event-stream.c (vars_of_event_stream):
10350         Document new kbd-translate-table functionality.
10351
10352         * event-stream.c (Fcurrent_event_timestamp): New.
10353         New primitive for use in fabricated events.
10354         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10355
10356         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10357
10358         * events.c:
10359         * events.c (Fmake_event):
10360         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10361         [1].
10362         [9].
10363
10364         * events.c (format_event_object): fix gcc warnings.
10365
10366         * events.c (Fevent_timestamp): Document new primitives.
10367
10368         * events.c (TIMESTAMP_HALFSPACE): New.
10369
10370         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10371         comparing timestamps correctly (half-space algorithm).
10372
10373         * events.c (Fevent_modifier_bits): Doc fix.
10374
10375         * events.c (Fevent_modifiers): Major doc addition.
10376         * events.c (event_x_y_pixel_internal): Typo fix.
10377         * events.c (syms_of_events): Declare new primitives.
10378
10379         * events.h:
10380         Update long comment for button modifiers, timestamps.
10381
10382         * events.h (struct event_stream):
10383         New current_event_timestamp method.
10384
10385         * extents.c:
10386         * extents.c (extent_in_region_p):
10387         * extents.c (decode_extent):
10388         * extents.c (Fset_extent_parent):
10389         * extents.c (decode_map_extents_flags):
10390         Fix gcc warnings.
10391         [9].
10392
10393         * extents.c (struct extent_at_arg):
10394         * extents.c (decode_extent_at_flag):
10395         * extents.c (extent_at_mapper):
10396         * extents.c (extent_at_bytind):
10397         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10398         * extents.c (Fextents_at): New primitive. [9].
10399         * extents.c (symbol_to_glyph_layout): [9].
10400         Support new primitive `extents-at'.
10401
10402
10403         * extents.c (get_text_property_bytind):
10404         extent_at_bytind has another arg.
10405         [9].
10406
10407         * extents.c (syms_of_extents): New primitive.
10408
10409         * file-coding.c (Fmake_coding_system): [1].
10410         * file-coding.c (subsidiary_coding_system): fix gcc warning
10411         * file-coding.c (syms_of_file_coding): [2].
10412
10413         * fileio.c (Fexpand_file_name):
10414         * fileio.c (Fsysnetunam):
10415         * fileio.c (Ffile_exists_p):
10416         * fileio.c (Ffile_executable_p):
10417         * fileio.c (Fverify_visited_file_modtime):
10418         Clean up GCPROing.
10419
10420         * fileio.c (syms_of_fileio): [2].
10421
10422         * filelock.c (lock_file_1):
10423         * filelock.c (current_lock_owner):
10424         * filelock.c (lock_if_free):
10425         * filelock.c (lock_file):
10426         * filelock.c (unlock_file):
10427         Clean up GCPROing.
10428
10429         * fns.c (concat): Fix gcc warning.
10430
10431         * fns.c (Fmember):
10432         * fns.c (Fold_member):
10433         * fns.c (Fmemq):
10434         * fns.c (Fold_memq):
10435         * fns.c (memq_no_quit):
10436         * fns.c (Fassoc):
10437         * fns.c (Fold_assoc):
10438         * fns.c (Fassq):
10439         * fns.c (Fold_assq):
10440         * fns.c (assq_no_quit):
10441         * fns.c (Frassoc):
10442         * fns.c (Fold_rassoc):
10443         * fns.c (Frassq):
10444         * fns.c (Fold_rassq):
10445         * fns.c (rassq_no_quit):
10446         * fns.c (Fdelete):
10447         * fns.c (Fold_delete):
10448         * fns.c (Fdelq):
10449         * fns.c (Fold_delq):
10450         * fns.c (delq_no_quit):
10451         * fns.c (Fremassoc):
10452         * fns.c (Fremassq):
10453         * fns.c (remassq_no_quit):
10454         * fns.c (Fremrassoc):
10455         * fns.c (Fremrassq):
10456         * fns.c (remrassq_no_quit):
10457         * fns.c (Freverse):
10458         * fns.c (mapcar1):
10459         [1].
10460
10461         * frame-msw.c (mswindows_init_frame_1):
10462         * frame-msw.c (mswindows_delete_frame):
10463         Register popups with dialog code so keyboard traversing works.
10464
10465         * frame-tty.c (tty_raise_frame_no_select): [1].
10466
10467         * frame-x.c:
10468         * frame-x.c (x_set_frame_text_value):
10469         * frame-x.c (x_set_frame_properties):
10470         * frame-x.c (x_create_widgets):
10471         [7].
10472
10473         * frame.c:
10474         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10475
10476         * frame.h (wrap_frame): New.
10477         Macro like wrap_device.
10478
10479         * general.c:
10480         * general.c (SYMBOL):
10481         * general.c (syms_of_general):
10482         Major reorg.  This is now just a wrapper and symbols themselves
10483         are listed in general-slots.h.
10484
10485         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10486         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10487
10488         * glyphs-msw.c (mswindows_native_layout_instantiate):
10489         Add DS_CONTROL so keyboard traversal will work.
10490
10491         * glyphs-widget.c:
10492         * glyphs-widget.c (syms_of_glyphs_widget):
10493         Move some symbols to general-slots.h.
10494
10495         * glyphs-x.c:
10496         * glyphs-x.c (xbm_instantiate_1):
10497         * glyphs-x.c (x_xbm_instantiate):
10498         * glyphs-x.c (x_xface_instantiate):
10499         * glyphs-x.c (autodetect_instantiate):
10500         * glyphs-x.c (cursor_font_instantiate):
10501         * glyphs-x.c (x_update_widget):
10502         * glyphs-x.c (x_widget_instantiate):
10503         * glyphs.c (bitmap_to_lisp_data):
10504         * glyphs.c (pixmap_to_lisp_data):
10505         [7].
10506
10507         * glyphs.c (syms_of_glyphs):
10508         [2].
10509
10510         * gui-x.c:
10511         * gui-x.c (print_widget_value):
10512         * gui-x.c (menu_separator_style_and_to_external):
10513         * gui-x.c (add_accel_and_to_external):
10514         * gui-x.c (button_item_to_widget_value):
10515         * gui-x.c (gui_items_to_widget_values_1):
10516         * gui-x.c (gui_items_to_widget_values):
10517         * gui-x.c (syms_of_gui_x):
10518         * gui-x.c (vars_of_gui_x):
10519         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10520         [9].
10521
10522         * gui-x.h:
10523         Muleize, prototype changes matching gui-x.c.
10524
10525         * gui.c:
10526         * gui.c (separator_string_p):
10527         * gui.c (gui_item_add_keyval_pair):
10528         * gui.c (make_gui_item_from_keywords_internal):
10529         * gui.c (signal_too_long_error):
10530         * gui.c (parse_gui_item_tree_item):
10531         * gui.c (syms_of_gui):
10532         * gui.c (vars_of_gui):
10533         * gui.h:
10534         menu-no-selection-hook moved here (used by MSWin).
10535         Move some symbols to general-slots.h.
10536         [6].
10537         [9].
10538
10539         * insdel.c (get_buffer_pos_char):
10540         * insdel.c (get_buffer_range_char):
10541         Add GC comments.
10542
10543         * keymap.c (keymap_lookup_directly):
10544         * keymap.c (keymap_store):
10545         * keymap.c (ensure_meta_prefix_char_keymapp):
10546         * keymap.c (describe_map):
10547         * keymap.h:
10548         Support new button modifiers.
10549
10550         * lisp-disunion.h (wrap_object):
10551         * lisp-disunion.h (XSETOBJ):
10552         Rename make_obj to wrap_object.
10553
10554         * lisp-union.h:
10555         * lisp-union.h (make_int):
10556         * lisp-union.h (make_char):
10557         Support wrap_object.
10558
10559         * lisp.h:
10560         * lisp.h (LIST_LOOP):
10561         * lisp.h (EXTERNAL_LIST_LOOP):
10562         * lisp.h (LIST_LOOP_2):
10563         * lisp.h (EXTERNAL_LIST_LOOP_1):
10564         * lisp.h (EXTERNAL_LIST_LOOP_2):
10565         * lisp.h (EXTERNAL_LIST_LOOP_3):
10566         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10567         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10568         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10569         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10570         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10571         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10572         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10573         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10574         * lisp.h (struct Lisp_Symbol):
10575         * lisp.h (maybe_continuable_error_with_frob):
10576         Fix up section comments.
10577         Add new types for char to indicate usage.
10578         Delete symbols auto-generated from general-slots.h.
10579         Add prototypes for structured error functions.
10580         Add long comments describing looping macros and change interface
10581         so that lvalues are automatically declared.
10582         Add NO_DECLARE macro in case callers want to declare lvalues
10583         themselves.
10584
10585         * lread.c (read_syntax_error):
10586         * lread.c (continuable_read_syntax_error):
10587         * lread.c (read_structure):
10588         * lread.c (sequence_reader):
10589         * lread.c (read_list_conser):
10590         * lread.c (read_compiled_function):
10591         Rename syntax_error and continuable_syntax_error to avoid clash
10592         with same-named structured error functions.
10593
10594         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10595         * menubar-msw.c (populate_menu_add_item):
10596         * menubar-msw.c (populate_or_checksum_helper):
10597         [5].
10598         [9].
10599
10600         * menubar-x.c:
10601         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10602         Mule-ize whole file.
10603
10604         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10605
10606         * mule-charset.c (Fmake_charset):
10607         * mule-wnnfns.c (Fwnn_set_param):
10608         [1].
10609
10610         * ntproc.c (create_child):
10611         * ntproc.c (Fwin32_set_current_locale):
10612         Add comments portending doom.
10613
10614         * objects-msw.c:
10615         * objects-msw.c (old_font_enum_callback_2):
10616         * objects-msw.c (font_enum_callback_1):
10617         * objects-msw.c (mswindows_enumerate_fonts):
10618         [5].
10619
10620         * objects-x.c:
10621         * objects-x.c (allocate_nearest_color):
10622         * objects-x.c (x_parse_nearest_color):
10623         * objects-x.c (x_initialize_color_instance):
10624         * objects-x.c (x_print_color_instance):
10625         * objects-x.c (x_finalize_color_instance):
10626         * objects-x.c (x_valid_color_name_p):
10627         * objects-x.c (x_initialize_font_instance):
10628         * objects-x.c (x_print_font_instance):
10629         * objects-x.c (valid_x_font_name_p):
10630         * objects-x.c (truename_via_FONT_prop):
10631         * objects-x.c (truename_via_random_props):
10632         * objects-x.c (truename_via_XListFonts):
10633         * objects-x.c (x_font_truename):
10634         * objects-x.c (x_font_instance_truename):
10635         * objects-x.c (x_font_instance_properties):
10636         * objects-x.c (x_list_fonts):
10637         * objects-x.c (x_find_charset_font):
10638         Mule-ize entire file.
10639         [7].
10640
10641         * objects-x.h:
10642         Mule-verify.
10643
10644         * print.c:
10645         * print.c (std_handle_out_external):
10646         * print.c (debug_print_no_newline):
10647         * print.c (syms_of_print):
10648         Output to all debugger kinds in debug-print.
10649         Fix console-output code under MSWin to actually work.
10650
10651         * process-nt.c (send_signal):
10652         * process-nt.c (nt_create_process):
10653         Use newer Unicode macros.
10654
10655         * process-unix.c (unix_create_process):
10656         * process-unix.c (unix_canonicalize_host_name):
10657         * process-unix.c (unix_open_network_stream):
10658         [7].
10659
10660         * scrollbar-x.c:
10661         Mule-verify.
10662
10663         * search.c (syms_of_search):
10664         [2].
10665
10666         * select-msw.c (mswindows_destroy_selection):
10667         Use LIST_LOOP_2.
10668
10669         * select-x.c (symbol_to_x_atom):
10670         [7].
10671
10672         * select.c (syms_of_select):
10673         [2].
10674
10675         * sound.c (Fplay_sound_file):
10676         [7].
10677
10678         * specifier.c:
10679         * specifier.c (decode_specifier_type):
10680         * specifier.c (Fvalid_specifier_locale_type_p):
10681         * specifier.c (check_valid_locale_or_locale_type):
10682         * specifier.c (decode_locale):
10683         * specifier.c (decode_locale_type):
10684         * specifier.c (decode_locale_list):
10685         * specifier.c (check_valid_domain):
10686         * specifier.c (decode_specifier_tag_set):
10687         * specifier.c (Fcanonicalize_tag_set):
10688         * specifier.c (Fdefine_specifier_tag):
10689         * specifier.c (Fspecifier_tag_predicate):
10690         * specifier.c (check_valid_inst_list):
10691         * specifier.c (check_valid_spec_list):
10692         * specifier.c (decode_how_to_add_specification):
10693         * specifier.c (check_modifiable_specifier):
10694         * specifier.c (specifier_add_spec):
10695         * specifier.c (boolean_validate):
10696         * specifier.c (display_table_validate):
10697         [9].
10698
10699         * specifier.c (syms_of_specifier):
10700         Move some symbols to general-slots.h.
10701         [2].
10702
10703         * symbols.c:
10704         * symbols.c (Fmapatoms):
10705         * symbols.c (Fapropos_internal):
10706         Add GCPROs.
10707
10708         * symbols.c (set_default_buffer_slot_variable):
10709         * symbols.c (set_default_console_slot_variable):
10710         [1].
10711
10712         * symbols.c (defsymbol_massage_name_1):
10713         * symbols.c (defkeyword_massage_name):
10714         * symbols.c (deferror_1):
10715         * symbols.c (deferror):
10716         * symbols.c (deferror_massage_name_and_message):
10717         * symeval.h:
10718         * symeval.h (DEFSYMBOL):
10719         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10720
10721         * symbols.c (syms_of_symbols):
10722         [2].
10723
10724         * symsinit.h:
10725         * symsinit.h (init_win32): New.
10726         Also new is syms_of_dialog_mswindows.
10727
10728         * syswindows.h:
10729         Add new Unicode macros, missing Cygwin wide-char functions,
10730         convenience conversion macros for Qmswindows_tstr, macros for
10731         encapsulating required MSWin <-> Cygwin filename conversions,
10732         prototype for dynamically-extracted (not in NT 3.51) functions.
10733
10734         * toolbar-x.c:
10735         Mule-verify.
10736
10737         * tooltalk.c (Fadd_tooltalk_message_arg):
10738         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10739         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10740         [7].
10741
10742         * tooltalk.c (syms_of_tooltalk):
10743         [2].
10744
10745         * unexnt.c:
10746         * unexnt.c (unexec):
10747         Fix up headers, declaration of unexec() to be more standard.
10748
10749 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10750
10751         * offix.h: Revert change to guard macros - they're used in offix.c!
10752
10753 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10754
10755         * lisp.h: Defsubred Fdelete.
10756
10757         * console-msw.h:  (msprinter_default_printer): Added.
10758
10759         * console-msw.c (msprinter_canonicalize_console_connection):
10760         (msprinter_canonicalize_device_connection): Added.
10761
10762         * device-msw.c (msprinter_default_printer):
10763         (Fmswingows_get_default_printer):
10764         (signal_enum_priner_error):
10765         (Fmswingows_printer_list): Added.
10766
10767 2000-07-19  Martin Buchholz <martin@xemacs.org>
10768
10769         * XEmacs 21.2.35 is released.
10770
10771 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10772
10773         * select-x.c (x_handle_selection_request):
10774         Text selected in xemacs and pasted into xterm failed to appear.
10775         Spelling fixes and cosmetic changes.
10776
10777 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10778
10779         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10780         XEmacs frame (fix for doubling chars in dialog boxes).
10781
10782 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10783
10784         * select.c (select_convert_in, select_convert_out):
10785         Don't call intern() every time.
10786
10787         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10788         * select.c (vars_of_select): Initialise them.
10789
10790 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10791
10792         * select.c (selection-coercible-types): New.
10793
10794         * select.c (own-selection-internal):
10795         * select.c (get-selection-internal):
10796         MULE bug fix - these should default to COMPOUND_TEXT and not
10797         STRING for MULE. I think.
10798
10799         * select.c (select_convert_out): Use selection-coercible-types
10800         to find types that we can attempt to perform coercions on.
10801
10802 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10803
10804         * mule-wnnfns.c:
10805         * mule-canna.c:
10806         Add coding: cookie to identify encoding.
10807
10808         * mule-canna.c (CANNA_mode_keys): make static.
10809         Use proper prototypes, even for functions of no arguments.
10810         Remove external prototype for Fding().
10811
10812         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10813
10814         * select.c (syms_of_select): Add missing DEFSUBR.
10815
10816 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10817
10818         * select.c (get_selection_internal, own_selection_internal):
10819         Make the type default to STRING, rather than placing a nil type
10820         into Vselection_alist.
10821
10822 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10823
10824         * gpmevent.c (tty_selection_exists_p):
10825         * gpmevent.c (tty_own_selection):
10826         Updated parameter lists.
10827
10828 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10829
10830         * select.h (selection-alist): Removed declaration.
10831
10832         * select.h (get_local_selection):
10833         * select.c (get_local_selection):
10834         Made static.
10835
10836         * select.h (convert_selection): Removed declaration.
10837         * select.c (convert_selection): Removed.
10838         This function belongs in Lisp.
10839
10840         * select.h (select_convert_in): Declare.
10841         * select.h (select_convert_out): Declare.
10842         * select.c (select_convert_in): New.
10843         * select.c (select_convert_out): New.
10844         New conversion functions for other files to call.
10845
10846         * select.h (select_notify_buffer_kill): Declare.
10847         * select.c (select_notify_buffer_kill): New.
10848         New functions that get called from kill-buffer.
10849
10850         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10851         X-specific lisp code.
10852
10853         * select.h: Declare some of the lisp-visible functions for
10854         external use.
10855
10856         * select.c (clean_local_selection_data): Removed. This was
10857         a disgusting function, and previously should have been in
10858         select-x.c in any case. The functionality is now provided
10859         in select-convert-from-integer (select.el).
10860
10861         * select.c (available-selection-types): Fixed stupidity where
10862         INTEGER and ATOM got added twice. Also add STRING when we see an
10863         extent.
10864
10865         * select.c (get-selection-internal): Removed symbol stripping. No
10866         longer causes conversion when data comes from the internal cache.
10867
10868         * select.c (syms_of_select): Added new functions.
10869
10870         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10871         error checking - previously this called abort!
10872
10873         * select-x.c (x_own_selection): Changed comment.
10874
10875         * select-x.c (x_handle_selection_request): Use select_convert_out.
10876         Don't mess with selection-alist; it's an internal variable of select.c.
10877
10878         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10879
10880         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10881         rather than messing with selection-alist.
10882
10883         * select-msw.c (mswindows_get_foreign_selection):
10884         Use TO_INTERNAL_FORMAT rather than hacking.
10885
10886 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10887
10888         * process-unix.c (unix_open_multicast_group):
10889         (unix_open_multicast_group): Remove useless casts.
10890
10891 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10892
10893         * sound.c (Fplay_sound): Fix `unused variable' warning.
10894
10895         * emacs.c (main): Use correct type for _environ on SCO5.
10896
10897 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10898
10899         * console.h (own_selection_method):
10900         * console.h (selection_exists_p_method):
10901         * console.h (available_selection_types_method): New.
10902         * console.h (register_selection_data_type_method): New.
10903         * console.h (selection_data_type_name): New.
10904
10905         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10906         function & alist to track GlobalAlloc()'d handles that need
10907         releasing when the clipboard data gets replaced or emptied.
10908
10909         * event-msw.c (mswindows_wnd_proc): Call it.
10910
10911         * lisp.h, general.c (Qappend): New symbol representing a
10912         `how-to-add' mode.
10913
10914         * select.c (own-selection-internal):
10915         * select.c (selection-exists-p):
10916         * select.c (available-selection-types): New.
10917         * select.c (register-selection-data-type): New.
10918         * select.c (selection-data-type-name): New.  New functions to deal
10919         with device-specific selection data formats.
10920         * select.c (selection-converter-out-alist): Renamed.
10921         * select.c (selection-converter-in-alist): New.
10922         * select.c (selection-appender-alist): New.  Added new alists.
10923         * select.c (syms_of_select, vars_of_select): Added new symbols &
10924         variables.
10925         * select.c (get_local_selection): Split.
10926         * select.c: Removed spurious type checking - selections may now be
10927         of any type, not just strings.
10928         * select.c (own-selection-internal):
10929
10930         * select.h, select.c (convert_selection): New. Created
10931         convert_selection() function based on get_local_selection().
10932         * select.h, select.c (QCF_*): New symbols representing mswindows
10933         clipboard formats.
10934         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10935         symbols representing `how-to-add' modes.
10936
10937         * select-msw.c (x_sym_p): New.
10938         * select-msw.c (symbol_to_ms_cf): New.
10939         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10940         symbols & clipboard formats. Can also handle string names.
10941         * select-msw.c (mswindows_own_selection):
10942         * select-msw.c (mswindows_selection_exists_p):
10943         Added `data-type' parameter. Use it.
10944         * select-msw.c (mswindows_available_selection_types): New.
10945         * select-msw.c (mswindows_register_selection_data_type): New.
10946         * select-msw.c (mswindows_selection_data_type_name): New.
10947         * select-msw.c (mswindows_own_selection):
10948         * select-msw.c (mswindows_get_foreign_selection):
10949         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10950         * select-msw.c (console_create_select_mswindows): Added new methods.
10951         * select-msw.c (mswindows_destroy_selection): New.
10952         * select-msw.c (Vhandle_alist): New list.
10953         * select-msw.c (mswindows_own_selection):
10954
10955         * select-x.c (x_own_selection):
10956         * select-x.c (x_selection_exists_p):
10957         * select-x.c: Added some comments about maybe using new
10958         functionality.
10959         * select-x.c (x_own_selection):
10960
10961         * specifier.c: Remove definition of Qappend (now in general.c)
10962         * specifier.c (syms_of_specifier): Remove Qappend.
10963
10964 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10965
10966         * config.h.in: Add socklen_t.
10967
10968         * s/decosf4-0.h: No special compiler flags needed or desired.
10969         In particular, undefine _BSD for DEC OSF 4.0.
10970
10971 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10972
10973         * redisplay-msw.c (msprinter_frame_output_end): Added.
10974         (console_type_create_redisplay_mswindows): Referred the above.
10975
10976         * frame.c (setup_frame_without_minibuffer): Do not create a
10977         default minibuffer frame on a printer device.
10978
10979         * frame-msw.c (apply_dc_geometry): Added.
10980         (msprinter_start_page):
10981         (msprinter_init_frame_3):
10982         (msprinter_eject_page): Use it.
10983
10984         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10985         and removed residual duplex and orientation properties.
10986
10987 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10988
10989         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10990
10991         * unexalpha.c: Remove system prototypes from C sources!
10992
10993 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10994
10995         * eval.c: Remove references to M-x edit-options in DEFUNs for
10996         `defvar' and `defconst'.
10997
10998 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10999
11000         * config.h.in: Remove SMART_INCLUDE hackery.
11001
11002         PostgreSQL hacking:
11003         * config.h.in: Don't use SMART_INCLUDE.
11004
11005         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11006         * inline.c: Simply #include "postgresql.h"
11007         * postgresql.c:
11008         - Don't use SMART_INCLUDE
11009         - Use simply "const".
11010         - Use standard doc string conventions.
11011         - Use correct type for result of PQstatus.
11012
11013 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11014
11015         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11016
11017         C++ compilation changes.
11018         * config.h.in (EXTERN_C): Define.
11019         * config.h.in (not): This is also a C++ keyword.
11020         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11021         * cm.c: Use EXTERN_C.
11022         * redisplay-tty.c: Use EXTERN_C.
11023         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11024
11025 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11026
11027         * general.c: Remove duplicate definition for Qfunction.
11028
11029 2000-07-08  Ben Wing  <ben@xemacs.org>
11030
11031         * device-msw.c (msprinter_init_device):
11032         * device-msw.c (sync_printer_with_devmode):
11033         * device-msw.c (handle_devmode_changes):
11034         * device-msw.c (print_dialog_worker):
11035         * device-msw.c (Fmsprinter_apply_settings):
11036         * device-msw.c (hash_devmode):
11037         * device-msw.c (Fmsprinter_settings_despecialize):
11038         use Qmswindows_tstr, not Qctext.
11039
11040         * vm-limit.c (check_memory_limits):
11041         avoid infinite loop printing warning messages.
11042
11043 2000-07-05  Craig Lanning  <lanning@scra.org>
11044
11045         * Makefile.in.in: Add support for including the Windows resources
11046         when building with the cygwin and mingw targets.
11047
11048         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11049         not set or not correct.
11050         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11051         (init_initial_directory): Don't try to use $PWD on the
11052         WIN32_NATIVE target.
11053
11054         * s\cygwin32.h:
11055         [[Add -mwindows to eliminate console window.]] not required --ben
11056         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11057         (MAIL_USE_POP): removed; now handled by configure.
11058
11059         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11060         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11061         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11062         (MAIL_USE_POP): removed; now handled by configure.
11063         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11064         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11065         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11066         constant string.
11067         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11068         up from <winsock.h> via systime.h.
11069         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11070         (getpagesize): from Dan Holmsand, added.
11071         Added #endif which was left dangling by Ben's mega patch; added
11072         comment to help prevent this in the future.
11073
11074         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11075
11076 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11077
11078         * console-msw.h (struct mswindows_device): Removed unnecessary
11079         cached device geometry values.
11080         Added update_tick and an accessor macro.
11081         (Lisp_Devmode): Added lrecord declaration.
11082         (struct msprinter_device): Contain devmode as a Lisp object.
11083         Added mswindows_get_selected_frame_hwnd();
11084
11085         * console.h (struct console_methods): Indentation nitpicking.
11086
11087         * device-msw.c (mswindows_init_device): Do not initialize geometry
11088         cache. Initialize update tick.
11089         (mswindows_device_system_metrics): Ask the device for its geometry.
11090         (global_free_2_maybe):
11091         (devmode_to_hglobal):
11092         (handle_printer_changes):
11093         (ensure_not_printing):
11094         (print_dialog_worker):
11095         (Fmsprinter_print_setup_dialog):
11096         (Fmsprinter_print_dialog):
11097         (plist_get_margin):
11098         (plist_set_margin):
11099         (Fmsprinter_page_setup_dialog): Added functions.
11100         (sync_printer_with_devmode):
11101         (handle_devmode_changes):
11102         (Fmsprinter_get_settings):
11103         (Fmsprinter_select_settings):
11104         (Fmsprinter_apply_settings):
11105         (allocate_devmode):
11106         (Fmsprinter_settings_copy):
11107         (Fmsprinter_settings_despecialize):
11108         (print_devmode):
11109         (finalize_devmode):
11110         (equal_devmode):
11111         (hash_devmode): Added functions
11112         (syms_of_device_mswindows): Init devmode lrecord class.
11113
11114         * device.h: Added an exfun for find-device.
11115
11116         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11117         geometry; although, recreate the device compatible DC.
11118
11119         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11120         (msprinter_init_frame_3):
11121         (msprinter_frame_property):
11122         (msprinter_internal_frame_property_p):
11123         (msprinter_frame_properties):
11124         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11125         print job properties (will move to device settings).
11126
11127         * lisp.h: Added symbols.
11128
11129         * general.c (syms_of_general): Declared them.
11130
11131         * hash.c (string_hash): Added.
11132
11133         * lrecord.h (lrecord_type): Added devmode lrecord type.
11134
11135 2000-07-02  Mike Sperber <mike@xemacs.org>
11136
11137         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11138         FreeBSD 4.0.
11139
11140 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11141
11142         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11143         integer.
11144
11145 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11146
11147         * data.c (Fstring_to_number): Don't recognize floating point if
11148         base is not 10.
11149
11150 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11151
11152         * glyphs-widget.c (tab_control_query_geometry):
11153         (widget_query_geometry):
11154         (button_query_geometry):
11155         * glyphs.c (text_query_geometry):
11156         Enforce type correctness.
11157
11158 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11159
11160         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11161         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11162
11163 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11164
11165         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11166         conflicts with gcc's fixincluded version of FOO.h.
11167
11168         * glyphs.h (image_instance_geometry): Remove trailing `,'
11169
11170 2000-06-08  Mike Alexander  <mta@arbortext.com>
11171
11172         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11173         (shove_thread): Don't write the same output twice
11174         (make_ntpipe_output_stream): Increase priority of shove thread
11175         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11176         chance to run
11177         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11178         it.
11179
11180 2000-06-12  Ben Wing  <ben@xemacs.org>
11181
11182         * s\mingw32.h (sigset):
11183         * s\windowsnt.h (sigset):
11184         rename msw_ to mswindows_ for consistency with general convention.
11185
11186 2000-06-12  Ben Wing  <ben@xemacs.org>
11187
11188         * console-msw.c:
11189         * console-msw.c (mswindows_get_console_hwnd):
11190         * console-msw.c (mswindows_ensure_console_allocated):
11191         * console-msw.c (mswindows_hide_console):
11192         * console-msw.c (mswindows_show_console):
11193         * console-msw.c (mswindows_ensure_console_buffered):
11194         * console-msw.c (mswindows_output_console_string):
11195         * console-msw.c (mswindows_windows9x_p):
11196         * console-msw.h:
11197         * device-msw.c (mswindows_get_workspace_coords):
11198         * device-msw.c (mswindows_device_system_metrics):
11199         * dialog-msw.c (mswindows_popup_dialog_box):
11200         * event-msw.c (mswindows_wnd_proc):
11201         * frame-msw.c (mswindows_size_frame_internal):
11202         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11203         * menubar-msw.c (displayable_menu_item):
11204         * menubar-msw.c (mswindows_char_is_accelerator):
11205         * nt.c:
11206         * nt.c (mswindows_sigset):
11207         * nt.c (mswindows_sigrelse):
11208         * nt.c (mswindows_sigpause):
11209         * nt.c (mswindows_raise):
11210         * nt.c (timer_proc):
11211         * ntproc.c:
11212         * ntproc.c (find_child_console):
11213         * ntproc.c (sys_kill):
11214         * print.c:
11215         * print.c (std_handle_out_external):
11216         * process-nt.c (find_child_console):
11217         * process-nt.c (send_signal_the_95_way):
11218         * process-nt.c (ensure_console_window_exists):
11219         * process-nt.c (nt_create_process):
11220         * syssignal.h:
11221         rename msw_ to mswindows_ for consistency with general convention.
11222
11223         * emacs.c:
11224         * dumper.c:
11225         include nt.h, not syswindows.h.
11226
11227         * nt.c (mswindows_fstat):
11228         * nt.c (mswindows_stat):
11229         prefix mswindows_ instead of attempting to directly override the
11230         library functions.  fix declarations.
11231
11232         * nt.h:
11233         include syswindows.h.  move some sysdep.h stuff here.
11234
11235         * ntheap.h:
11236         include syswindows.h, not <windows.h>.
11237
11238         * ntplay.c:
11239         clean up headers.
11240
11241         * sysdep.c:
11242         clean up headers.
11243
11244         * sysdep.c (sys_fstat):
11245         * sysdep.c (sys_stat):
11246         call mswindows versions when appropriate.
11247
11248         * sysdep.h:
11249         move mswin decls to nt.h.
11250
11251         * syswindows.h:
11252         add long comment describing appropriate use of the various windows
11253         headers.
11254
11255 2000-06-11  Ben Wing  <ben@xemacs.org>
11256
11257         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11258
11259 2000-06-10  Ben Wing  <ben@xemacs.org>
11260
11261         * Makefile.in.in (release):
11262         Correction to make sure xemacs.exe always dumped when correct.
11263
11264         * alloca.c:
11265         * balloon_help.c:
11266         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11267
11268         * buffer.c (set_buffer_internal):
11269         [[[[2]]]]: Remove HAVE_FEP code.
11270
11271         * buffer.c (init_initial_directory):
11272         [3].
11273
11274         * bytecode.c:
11275         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11276         individual files.
11277
11278         * callproc.c:
11279         * callproc.c (call_process_cleanup):
11280         * callproc.c (Fold_call_process_internal):
11281         * callproc.c (child_setup):
11282         * callproc.c (getenv_internal):
11283         * callproc.c (init_callproc):
11284         * callproc.c (vars_of_callproc):
11285         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11286         __CYGWIN32__ -> CYGWIN.
11287         DOS_NT -> WIN32_NATIVE.
11288         Remove MSDOS support/references, converting to WIN32_NATIVE
11289           where correct.
11290         __MINGW32__ -> MINGW.
11291         Fix windows.h includes.
11292         Remove bogus HAVE_NTGUI.
11293
11294         * config.h.in:
11295         [2].
11296
11297         * console-msw.c:
11298         mswindows_message_outputted added for use in allowing startup
11299         errors on the console to be seen.
11300
11301         * console-msw.c (msw_ensure_console_allocated):
11302         * console-msw.c (msw_output_console_string):
11303         * console-msw.c (DHEADER):
11304         * console-msw.c (DOPAQUE_DATA):
11305         * console-msw.c (DEVENT):
11306         * console-msw.c (DCONS):
11307         * console-msw.c (DCONSCDR):
11308         * console-msw.c (DSTRING):
11309         * console-msw.c (DVECTOR):
11310         * console-msw.c (DSYMBOL):
11311         * console-msw.c (DSYMNAME):
11312         Fix warnings.
11313
11314         * console-stream.c (stream_init_console):
11315         Fix text/binary problems.
11316
11317         * device-msw.c:
11318         * device-msw.c (mswindows_finish_init_device):
11319         * device-msw.c (mswindows_delete_device):
11320         [1].
11321
11322         * device.c (handle_asynch_device_change):
11323         [3].
11324
11325         * dgif_lib.c:
11326         * dgif_lib.c (DGifOpenFileName):
11327         * dgif_lib.c (DGifOpenFileHandle):
11328         * dgif_lib.c (DGifGetLine):
11329         * dgif_lib.c (DGifGetPixel):
11330         Added config.h/lisp.h, fix up includes.
11331         [1].
11332
11333         * dired-msw.c:
11334         [4].
11335
11336         * dired.c:
11337         * dired.c (file_name_completion):
11338         * dired.c (Ffile_attributes):
11339         * dired.c (syms_of_dired):
11340         [1].
11341
11342         * dumper.c:
11343         * dumper.c (pdump_file_unmap):
11344         * dumper.c (pdump_load):
11345         [1].
11346
11347         * editfns.c:
11348         * editfns.c (Ftemp_directory):
11349         * editfns.c (user_login_name):
11350         * editfns.c (Fuser_real_login_name):
11351         * editfns.c (get_home_directory):
11352         [1].
11353
11354         * elhash.c (finish_marking_weak_hash_tables):
11355         [[[[5]]]]: Fix GCC warnings.
11356
11357         * emacs.c:
11358         * emacs.c (mswindows_handle_hardware_exceptions):
11359         * emacs.c (make_arg_list_1):
11360         * emacs.c (main_1):
11361         * emacs.c (Fkill_emacs):
11362         * emacs.c (Fdump_emacs):
11363         [1].
11364         Fix problems with nested crashes, add long comment.
11365
11366         * event-Xt.c (init_event_Xt_late):
11367         [1].
11368
11369         * event-msw.c:
11370         * event-msw.c (mswindows_dde_callback):
11371         * event-msw.c (mswindows_handle_sticky_modifiers):
11372         * event-msw.c (mswindows_wnd_proc):
11373         [1].
11374         [5].
11375
11376         * events.c (character_to_event):
11377         [1].
11378
11379         * fileio.c:
11380         * fileio.c (Ffile_name_directory):
11381         * fileio.c (Ffile_name_nondirectory):
11382         * fileio.c (directory_file_name):
11383         * fileio.c (Fexpand_file_name):
11384         * fileio.c (Fsubstitute_in_file_name):
11385         * fileio.c (Ffile_name_absolute_p):
11386         * fileio.c (check_executable):
11387         * fileio.c (Ffile_readable_p):
11388         * fileio.c (Ffile_accessible_directory_p):
11389         * fileio.c (Ffile_modes):
11390         * fileio.c (Funix_sync):
11391         * fileio.c (vars_of_fileio):
11392         [1]. [4].
11393
11394         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11395
11396         Expand getdefdir defn.
11397         Fix bogus rename() comment.
11398
11399         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11400         to use standard XEmacs include files, e.g. sysfile.h, rather
11401         than system-specific includes.
11402
11403         * fns.c:
11404         * fns.c (Fsubseq):
11405         [5]. [6].
11406
11407         * frame.c (vars_of_frame):
11408         [1].
11409
11410         * getloadavg.c:
11411         * getloadavg.c (getloadavg):
11412         [1]. [6].
11413         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11414         (We don't use it elsewhere in the code; just add a comment.)
11415
11416         * gif_io.c:
11417         [6].
11418         Add config.h.
11419
11420         * glyphs-msw.c:
11421         * glyphs-msw.c (mswindows_resource_instantiate):
11422         [1].
11423
11424         * glyphs-x.c (x_native_layout_instantiate):
11425         [5].
11426
11427         * gui-msw.c (Fmswindows_shell_execute):
11428         [1].
11429
11430         * insdel.c:
11431         [4].
11432
11433         * lisp.h:
11434         [4]. [5].
11435
11436         * lread.c (locate_file_in_directory_mapper):
11437         [1].
11438
11439         * lstream.c:
11440         [4].
11441
11442         * mem-limits.h:
11443         * mem-limits.h (get_lim_data):
11444         [1].
11445
11446         * menubar-msw.c:
11447         [4].
11448
11449         * ndir.h:
11450         [1].
11451
11452         * nt.c:
11453         * nt.c (getwd):
11454         * nt.c (closedir):
11455         * nt.c (rva_to_section):
11456         * nt.c (mswindows_executable_type):
11457         [1]. [6].
11458         Fix closedir() defn.
11459
11460         * nt.h:
11461         [[[[8]]]]: *_OK defs moved to sysfile.h.
11462
11463         * ntproc.c:
11464         [6]. [7].
11465
11466         * objects-x.c:
11467         [4].
11468
11469         * print.c:
11470         * print.c (std_handle_out_external):
11471         [1]. [4].
11472
11473         * process-nt.c:
11474         * process-nt.c (nt_create_process):
11475         [6].
11476         try to fix process quoting somewhat.
11477
11478         * process-unix.c (unix_create_process):
11479         [1].
11480
11481         * process.c:
11482         * process.c (vars_of_process):
11483         Add Vnull_device.
11484
11485         * process.h:
11486         [1].
11487
11488         * realpath.c:
11489         * realpath.c (xrealpath):
11490         [1].
11491
11492         * redisplay-tty.c (init_tty_for_redisplay):
11493         [3].
11494
11495         * redisplay.c:
11496         [4]. [6].
11497
11498         * scrollbar-msw.c:
11499         [4].
11500
11501         * sheap.c:
11502         * sheap.c (more_static_core):
11503         * sheap.c (report_sheap_usage):
11504         [5]. [6].
11505
11506         * signal.c:
11507         * signal.c (alarm_signal):
11508         [1]. [6].
11509
11510         * sound.c:
11511         [6].
11512
11513         * strftime.c:
11514         * strftime.c (zone_name):
11515         [1]. [5].
11516
11517         * symsinit.h (init_sunpro):
11518         [1].
11519
11520         * syscommctrl.h:
11521         commctrl.h not in Cygwin b20.1.
11522
11523         * sysdep.c:
11524         * sysdep.c (endif):
11525         * sysdep.c (sys_subshell):
11526         * sysdep.c (init_baud_rate):
11527         * sysdep.c (emacs_get_tty):
11528         * sysdep.c (emacs_set_tty):
11529         * sysdep.c (tty_init_sys_modes_on_device):
11530         * sysdep.c (init_system_name):
11531         * sysdep.c (sys_open):
11532         * sysdep.c (interruptible_open):
11533         * sysdep.c (sys_fopen):
11534         * sysdep.c (sys_mkdir):
11535         * sysdep.c (sys_rename):
11536         * sysdep.c (get_process_times_1):
11537         [1]. [6].
11538
11539         * sysdep.h:
11540         [1].
11541
11542         * sysdir.h:
11543         * sysdir.h (DIRENTRY_NONEMPTY):
11544         [1]. [6].
11545
11546         * sysdll.c (dll_init):
11547         * sysdll.h:
11548         [1].
11549
11550         * sysfile.h:
11551         [1]. [6]. [8].
11552         added text/binary defs.
11553
11554         * sysfloat.h:
11555         [1].
11556
11557         * sysproc.h:
11558         * sysproc.h (EDESTADDRREQ):
11559         * sysproc.h (poll_fds_for_input):
11560         [1]. [6].
11561
11562         * syspwd.h:
11563         [6].
11564
11565         * syssignal.h:
11566         [1].
11567
11568         * systime.h:
11569         [1]. [6].
11570
11571         * systty.h:
11572         [1].
11573
11574         * syswindows.h:
11575         [1].
11576         Always define WIN32_LEAN_AND_MEAN.
11577
11578         * unexcw.c (unexec):
11579         [5].
11580
11581         * unexec.c:
11582         * unexec.c (copy_text_and_data):
11583         * unexec.c (adjust_lnnoptrs):
11584         [1].
11585
11586         * unexnt.c:
11587         * unexnt.c (_start):
11588         [1].
11589
11590 2000-06-07  Ben Wing  <ben@xemacs.org>
11591
11592         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11593         was used only as a model.  We've long since extracted any useful
11594         logic or code out of this. (I just did an exhaustive search.)
11595
11596         * s\msdos.h: Removed.
11597
11598         * s\windows95.h: Removed.
11599
11600 2000-06-10  Ben Wing  <ben@xemacs.org>
11601
11602         * s\cygwin32.h:
11603         [1]. [5].
11604         Don't use extern with fun defs.
11605
11606         * s\mingw32.h:
11607         [1]. [7].
11608         Remove nt\inc include.
11609         Remove getdisk, getdefdir. (The former is unused, the latter
11610         expanded in fileio.h.)
11611
11612         * s\windowsnt.h:
11613         * s\windowsnt.h (WIN32_NATIVE):
11614         * s\windowsnt.h (HAVE_STRCASECMP):
11615         [1]. [7].
11616         Add long comment about preprocessor changes.
11617         Remove getdisk, getdefdir. (The former is unused, the latter
11618         expanded in fileio.h.)
11619
11620 2000-06-10  Ben Wing  <ben@xemacs.org>
11621
11622         * m\arm.h:
11623         * m\delta.h:
11624         * m\intel386.h:
11625         * m\sequent.h:
11626         * m\template.h:
11627         * m\windowsnt.h:
11628         [1].
11629         Remove bogus/unused NO_SOCK_SIGIO.
11630
11631 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11632
11633         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11634         not an Emchar.
11635
11636 2000-06-04  Mike Sperber <mike@xemacs.org>
11637
11638         * casetab.c (set_case_table): For `set-standard-case-table',
11639         actually deposit the new case tables where the rest of XEmacs can
11640         see them.
11641
11642 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11643
11644         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11645
11646 2000-06-05  Ben Wing  <ben@xemacs.org>
11647
11648         * callproc.c (child_setup): Don't do close_load_descs() under
11649         MS Windows.  Put in a comment explaining why.
11650
11651 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11652
11653         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11654         Toolkit shell" which breaks `kill-compilation' on Windows NT
11655         native, retaining STDERR handling improvements.
11656
11657 2000-06-01  Andreas Jaeger  <aj@suse.de>
11658
11659         * s/s390.h: Support for S390, based on a patch by Martin
11660         Schwidefsky <schwidefsky@de.ibm.com>.
11661
11662 2000-05-30  Andy Piper  <andy@xemacs.org>
11663
11664         * window.c (allocate_window):
11665         (make_dummy_parent):
11666         (Fset_window_configuration): use new hashtable type.
11667
11668         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11669         (struct image_instantiator_methods):
11670         (struct Lisp_Image_Instance): make instance geometry signed.
11671
11672         * glyphs.c (instantiate_image_instantiator):
11673         (image_instance_query_geometry):
11674         (image_instance_layout):
11675         (image_instance_layout):
11676         (query_string_geometry):
11677         (text_query_geometry):
11678         (image_instantiate):
11679         (image_instantiate):
11680         (cache_subwindow_instance_in_frame_maybe):
11681         (subwindow_query_geometry): make instance geometry signed.
11682
11683         * glyphs-widget.c (widget_query_geometry):
11684         (widget_layout):
11685         (button_query_geometry):
11686         (tree_view_query_geometry):
11687         (tab_control_query_geometry):
11688         (layout_query_geometry):
11689         (layout_layout):
11690         (native_layout_layout): make instance geometry signed.
11691
11692 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11693
11694         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11695         constant.
11696
11697         * general.c (syms_of_general): Add Qfull_assoc symbol.
11698
11699         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11700         correctly.
11701         (decode_weak_list_type): Decode full-assoc type.
11702         (encode_weak_list_type): Encode full-assoc type.
11703         (Fmake_weak_list): Update doc string.
11704
11705 2000-05-30  Andy Piper  <andy@xemacs.org>
11706
11707         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11708
11709         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11710         (decode_hash_table_weakness): ditto.
11711         (Fhash_table_weakness): ditto.
11712         (Fhash_table_type): ditto.
11713         (finish_marking_weak_hash_tables): ditto.
11714         (hash_table_weakness_validate): ditto.
11715         (syms_of_elhash): ditto.
11716
11717 2000-05-28  Martin Buchholz <martin@xemacs.org>
11718
11719         * XEmacs 21.2.34 is released.
11720
11721 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11722
11723         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11724         start cache.
11725         (updating_line_start_cache): Gone.
11726         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11727         generic code to force a minimum of 1 line laid out in the
11728         CMOTION_DISP case.
11729
11730 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11731
11732         * glyphs.c (instantiate_image_instantiator): Check for initialized
11733         height & width no longer special cases IMAGE_NOTHING.
11734         (nothing_instantiate): Set height and width of instance.
11735
11736 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11737
11738         * unexelf.c (unexec): Search for ".data" section.
11739         Initialize new_data2_offset from old_data_index.
11740         Remove redundant check for ElfW.
11741
11742 2000-05-23  Andy Piper  <andy@xemacs.org>
11743
11744         * glyphs.c (get_image_instantiator_governing_domain): allow more
11745         specific domains as the governing domain rather than expecting an
11746         exact match. This fixes problems with layouts.
11747
11748 2000-05-22  Andy Piper  <andy@xemacs.org>
11749
11750         * redisplay-output.c (compare_runes): check for non-images
11751
11752         * glyphs.c (set_glyph_dirty_p): ditto.
11753         (update_glyph_cachel_data): ditto.
11754
11755         * glyphs-widget.c (layout_post_instantiate): ditto.
11756         (layout_post_instantiate): ditto.
11757
11758         * event-msw.c (mswindows_wnd_proc): warning removal.
11759
11760 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11761
11762         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11763
11764         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11765
11766         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11767
11768         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11769         (mswindows_executable_type): mingw32 now has enough headers for
11770         this to work.
11771
11772 2000-05-20  Andy Piper  <andy@xemacs.org>
11773
11774         * console-msw.c (mswindows_output_last_error): ; -> ,
11775
11776 2000-05-12  Andy Piper  <andy@xemacs.org>
11777
11778         * console-msw.c (FROB): compare ints with ints.
11779
11780 2000-05-11  Andy Piper  <andy@xemacs.org>
11781
11782         * glyphs-x.c (x_finalize_image_instance): make minimal build
11783         happy.
11784
11785 2000-05-20  Ben Wing  <ben@xemacs.org>
11786
11787         * event-Xt.c:
11788         * event-Xt.c (vars_of_event_Xt):
11789         move modifier-keys-are-sticky to event-stream.c.
11790
11791         * event-msw.c:
11792         * event-msw.c (mswindows_enqueue_mouse_button_event):
11793         * event-msw.c (key_needs_default_processing_p):
11794         * event-msw.c (XEMSW_LCONTROL):
11795         * event-msw.c (mswindows_handle_sticky_modifiers):
11796         * event-msw.c (FROB):
11797         * event-msw.c (clear_sticky_modifiers):
11798         * event-msw.c (output_modifier_keyboard_state):
11799         * event-msw.c (output_alt_keyboard_state):
11800         * event-msw.c (mswindows_wnd_proc):
11801         * event-msw.c (mswindows_modifier_state):
11802         * event-msw.c (emacs_mswindows_handle_magic_event):
11803         implement sticky modifiers.
11804
11805         * event-stream.c:
11806         * event-stream.c (vars_of_event_stream):
11807         move modifier-keys-are-sticky here.
11808
11809         * lisp.h:
11810         add CHECK_FUNCTION.
11811
11812         * rangetab.c:
11813         implement map-range-table.
11814
11815
11816 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11817
11818         * redisplay-tty.c (reset_tty_modes):
11819         (tty_redisplay_shutdown): Adjust argument type to
11820         tty_frame_output_end.
11821
11822 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11823
11824         * eval.c (Fbacktrace): Don't output a line with only right
11825         parenthesis.
11826
11827 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11828
11829         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11830         (Fpq_reset_poll): Ditto.
11831
11832 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11833
11834         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11835
11836 2000-05-16  Ben Wing  <ben@xemacs.org>
11837
11838         * buffer.c:
11839         * buffer.c (dfc_convert_to/from_internal_format):
11840         * buffer.c (reinit_vars_of_buffer):
11841         Fix conversion functions to allow reentrancy.
11842
11843         * console-msw.c:
11844         * console-msw.c (mswindows_output_last_error):
11845         New fun, generally useful -- output a human-readable
11846         version of GetLastError() on the console.
11847
11848         * console-msw.h:
11849         * console-msw.h (struct mswindows_frame):
11850         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11851
11852         * console-stream.c (stream_output_begin):
11853         * console-stream.c (stream_output_end):
11854         * console-stream.c (stream_output_vertical_divider):
11855         * console-stream.c (stream_clear_region):
11856         * console-stream.c (stream_flash):
11857         * console-stream.c (console_type_create_stream):
11858         Delete blank stream methods, not needed.
11859
11860         * console.h (struct console_methods):
11861         Split begin/end methods into window and frame.
11862
11863         * event-msw.c:
11864         * event-msw.c (mswindows_handle_paint):
11865         * event-msw.c (output_alt_keyboard_state):
11866         * event-msw.c (mswindows_wnd_proc):
11867         * event-msw.c (vars_of_event_mswindows):
11868         Comment about problems with ignored-expose.
11869         Define mswindows-debug-events; not really implemented.
11870
11871         * frame-msw.c (mswindows_init_frame_1):
11872         random cleanups.
11873
11874         * glyphs-msw.c:
11875         * glyphs-msw.c (begin_defer_window_pos):
11876         * glyphs-msw.c (mswindows_unmap_subwindow):
11877         * glyphs-msw.c (mswindows_map_subwindow):
11878         * glyphs-msw.c (mswindows_resize_subwindow):
11879         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11880
11881         * glyphs.c (make_image_instance_1):
11882         Fix crash.
11883
11884         * gutter.c (Fredisplay_gutter_area):
11885         Use new begin/end methods.
11886
11887         * lisp.h (Dynarr_new2):
11888         New creation fun.
11889
11890         * redisplay-msw.c:
11891         * redisplay-msw.c (mswindows_frame_output_begin):
11892         * redisplay-msw.c (mswindows_frame_output_end):
11893         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11894         New begin/end methods -- handle DeferWindowPos.
11895
11896         * redisplay-output.c (redisplay_move_cursor):
11897         * redisplay-output.c (redraw_cursor_in_window):
11898         * redisplay-output.c (redisplay_update_line):
11899         * redisplay-output.c (redisplay_output_window):
11900         New begin/end methods.
11901
11902         * redisplay-tty.c:
11903         * redisplay-tty.c (tty_frame_output_begin):
11904         * redisplay-tty.c (tty_frame_output_end):
11905         * redisplay-tty.c (console_type_create_redisplay_tty):
11906         New begin/end methods.
11907
11908         * redisplay-x.c:
11909         * redisplay-x.c (x_window_output_begin):
11910         * redisplay-x.c (x_window_output_end):
11911         * redisplay-x.c (console_type_create_redisplay_x):
11912         New begin/end methods.
11913
11914         * redisplay.c (redisplay_frame):
11915         * redisplay.c (Fredisplay_echo_area):
11916         New begin/end methods.
11917         use MAYBE_DEVMETH for clear_frame; it may not exist.
11918
11919         * window.h (WINDOW_XFRAME):
11920         WINDOW_XFOO macros -- get locale and decode struct pointer.
11921
11922
11923 2000-05-12  Ben Wing  <ben@xemacs.org>
11924
11925         * emacs.c:
11926         * emacs.c (ensure_no_quitting_from_now_on):
11927         * emacs.c (fatal_error_signal):
11928         * emacs.c (mswindows_handle_hardware_exceptions):
11929         * emacs.c (main):
11930         * emacs.c (Fkill_emacs):
11931         * emacs.c (shut_down_emacs):
11932         * emacs.c (assert_failed):
11933         various improvements in fatal error handling.
11934
11935         * eval.c:
11936         move preparing_for_armageddon to emacs.c.
11937
11938         * lisp.h:
11939         declare fatal_error_in_progress.
11940
11941         * print.c:
11942         * print.c (std_handle_out_external):
11943         * print.c (std_handle_out_va):
11944         * print.c (stderr_out):
11945         * print.c (stdout_out):
11946         use console under mswin when no standard output.
11947         don't do code conversion during fatal error.
11948
11949         * scrollbar.c (Fscrollbar_page_up):
11950         * scrollbar.c (Fscrollbar_page_down):
11951         fix missing else.  reindent.
11952
11953 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11954
11955         Emergency fix.
11956
11957         * glyphs.h (GLYPH_CACHEL_DESCENT):
11958         (GLYPH_CACHEL_DESCENT):
11959         (GLYPH_CACHEL_DESCENT):
11960         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11961         used in case these are inline functions.
11962         Use more absurd values to error check.
11963
11964         include window.h for error check functions.
11965
11966 2000-05-11  Ben Wing  <ben@xemacs.org>
11967
11968         * cmdloop.c (Freally_early_error_handler):
11969         Display message box under windows; otherwise, message will disappear
11970         before it can be viewed.
11971
11972         * console-msw.c:
11973         * console-msw.c (Fmswindows_message_box):
11974         * console-msw.c (FROB):
11975         * console-msw.c (syms_of_console_mswindows):
11976         Define new fun `mswindows-message-box'.
11977         #### I will merge this into `popup-dialog-box'; just give me
11978         a bit of time.
11979
11980         * general.c:
11981         * general.c (syms_of_general):
11982         Some new symbols used in `mswindows-message-box'.
11983
11984         * glyphs.c:
11985         * glyphs.c (Fset_image_instance_property):
11986         put warning in this fun.
11987
11988         * glyphs.h:
11989         * glyphs.h (GLYPH_CACHEL_WIDTH):
11990         * glyphs.h (GLYPH_CACHEL_ASCENT):
11991         * glyphs.h (GLYPH_CACHEL):
11992         * glyphs.h (GLYPH_CACHEL_GLYPH):
11993         define error-checking versions to try to catch a bug i've seen --
11994         redisplay gets in an infinite loop because the glyph width of the
11995         continuation glyph is 65535.
11996
11997         * lisp.h:
11998         Extern message-box stuff.
11999
12000         * window.c (allocate_window):
12001         * window.c (make_dummy_parent):
12002         * window.c (Fset_window_configuration):
12003         Use EQUAL not EQ for subwindow caches to make them work a bit
12004         better. (Something is still very broken.)
12005
12006
12007 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12008
12009         * glyphs.c (image_instantiate): Suppress gcc warnings.
12010         (Fmake_image_instance): Fix doc string.
12011         * specifier.c (Fmake_specifier): Ditto.
12012
12013 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12014
12015         * paths.h.in (PATH_LOCK): Removed.
12016         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12017         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12018
12019 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12020
12021         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12022         Document (featurep '(and xemacs 21.02)).
12023
12024 2000-05-09  Ben Wing  <ben@xemacs.org>
12025
12026         * buffer.c (complex_vars_of_buffer):
12027         update modeline-format doc.
12028
12029         * device.h:
12030         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12031
12032         * emacs.c:
12033         timeline of all released versions of Emacs, for use in creating
12034         authorship comments and in synching up.
12035
12036         * glyphs-widget.c (image_instantiator_buttons):
12037         * glyphs-widget.c (image_instantiator_edit_fields):
12038         * glyphs-widget.c (image_instantiator_combo_box):
12039         * glyphs-widget.c (image_instantiator_scrollbar):
12040         * glyphs-widget.c (image_instantiator_progress_guage):
12041         * glyphs-widget.c (image_instantiator_tree_view):
12042         * glyphs-widget.c (image_instantiator_tab_control):
12043         * glyphs-widget.c (image_instantiator_labels):
12044         * glyphs-widget.c (image_instantiator_layout):
12045         * glyphs-widget.c (image_instantiator_native_layout):
12046         rename decode_domain method to governing_domain.
12047
12048         * glyphs.c:
12049         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12050         * glyphs.c (add_entry_to_device_ii_format_list):
12051         make sure we don't put an entry more than once into the list.
12052         * glyphs.c (check_instance_cache_mapper):
12053         *************************************************************
12054         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12055         HAVE BEEN GETTING.
12056         *************************************************************
12057         * glyphs.c (get_image_instantiator_governing_domain):
12058         clean up, expand on new concept of governing domain.
12059         * glyphs.c (instantiate_image_instantiator):
12060         * glyphs.c (allocate_image_instance):
12061         use governing_domain instead of cache_domain in naming.
12062         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12063         * glyphs.c (make_image_instance_1):
12064         * glyphs.c (Fmake_image_instance):
12065         allow for any domain (not just device), and process the
12066         governing domain correctly.  very big doc fix.
12067         * glyphs.c (Fimage_instance_domain):
12068         new primitive, to retrieve the governing domain of an image instance.
12069         * glyphs.c (image_instantiate):
12070         use new governing_domain stuff.  this fixes a crash you could get
12071         by instantiating certain widget glyphs in frame locales. (should
12072         signal an error instead of crashing.)
12073         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12074         * glyphs.c (Fglyphp): clean up doc.
12075         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12076         * glyphs.c (syms_of_glyphs):
12077         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12078         * glyphs.c (image_instantiator_format_create): add some comments about
12079         bogus code.
12080         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12081         for current-display-table. (Apparently Hrjove implemented in 1998 a
12082         design I wrote up in 1996, but didn't update the doc string.)
12083
12084         * glyphs.h: clean up a doc string.
12085         * glyphs.h (governing_domain):
12086         * glyphs.h (struct image_instantiator_methods):
12087         changes for governing_domain stuff.
12088
12089         * gutter.c:
12090         * gutter.c (Fgutter_specifier_p):
12091         * gutter.c (Fgutter_size_specifier_p):
12092         * gutter.c (Fgutter_visible_specifier_p):
12093         * objects.c:
12094         * objects.c (Fcolor_specifier_p):
12095         * objects.c (Ffont_specifier_p):
12096         * objects.c (Fface_boolean_specifier_p):
12097         doc strings moved to make-*-specifier.
12098
12099         * redisplay.c (add_disp_table_entry_runes_1):
12100         * redisplay.c (generate_fstring_runes):
12101         * redisplay.c (screen):
12102         add random comments and doc strings.
12103
12104         * specifier.c:
12105         * specifier.c (Fmake_specifier):
12106         major overhaul of this doc string.
12107
12108         * specifier.c (Fvalid_specifier_domain_p):
12109         comment about the bogosity of image instances being domains.
12110         * specifier.c (decode_domain):
12111         now non-static, used in glyphs.c.
12112         * specifier.c (specifier_instance):
12113         comment about the bogosity of image instances being domains.
12114         * specifier.c (Fgeneric_specifier_p):
12115         move doc string to make-generic-specifier.
12116         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12117         rebackslashify.
12118
12119         * specifier.h:
12120         * specifier.h (DOMAIN_FRAME):
12121         * specifier.h (DOMAIN_LIVE_P):
12122         * specifier.h (DOMAIN_XDEVICE):
12123         rebackslashify.
12124         add comments about problems with these macros.
12125         prototype for decode_domain.
12126
12127         * toolbar.c:
12128         * toolbar.c (Ftoolbar_specifier_p):
12129         move doc string to `make-toolbar-specifier'.
12130
12131         * window.c (window_unmap_subwindows_cache_mapper):
12132         *************************************************************
12133         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12134         HAVE BEEN GETTING.
12135         *************************************************************
12136
12137 2000-05-09  Andy Piper  <andy@xemacs.org>
12138
12139         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12140
12141         * window.c (Fset_window_configuration): reset the frame subwindow
12142         cache and re-initialize the window subwindow caches.
12143
12144         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12145
12146 2000-05-09  Ben Wing  <ben@xemacs.org>
12147
12148         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12149         DWORD.
12150
12151 2000-04-26  Mike Woolley  <mike@bulsara.com>
12152
12153         * ntheap.c: Changed recreate_heap to limit the amount reserved
12154         for the heap to that which is actually available. Also now
12155         displays a message box (with some dignostics) in the event that
12156         it still can't start.
12157
12158 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12159
12160         * callproc.c (Fold_call_process_internal): GCPRO path
12161
12162 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12163
12164         Patch by Bill Perry.
12165
12166         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12167         back data instead of #ifdef.
12168         (Fscrollbar_page_down): ditto.
12169
12170 2000-05-07  Ben Wing  <ben@xemacs.org>
12171
12172         * buffer.h:
12173         Kludge for defining Qmswindows_tstr.
12174
12175         * nt.c:
12176         * nt.c (open_input_file):
12177         * nt.c (open_output_file):
12178         * nt.c (rva_to_section):
12179         * nt.c (mswindows_executable_type):
12180         Move all memory-mapped-file routines here (some were in unexnt.c,
12181         which is bad because they are used by process-nt.c, and unexnt
12182         won't be around when portable dumping).  Synched the above routines
12183         with FSF 20.6.
12184
12185         * nt.h:
12186         Removed ifdef'd out bogus code.
12187         Fixed some prototypes.
12188
12189         * nt.h (file_data):
12190         * nt.h (OFFSET_TO_RVA):
12191         * nt.h (RVA_TO_OFFSET):
12192         * nt.h (RVA_TO_PTR):
12193         Moved the memory-mapped-file structures, macros and prototypes
12194         here, to parallel nt.c.  ntheap.h should really be removed
12195         entirely, and it's a non-portable-dumper specific file.
12196
12197         * ntheap.h (round_to_next):
12198         Moved the memory-mapped-file structures, macros and prototypes
12199         to nt.h.
12200
12201         * ntproc.c (compare_env):
12202         Moved rva_to_section and mswindows_executable_type to nt.c.
12203         Moved compare_env to process-nt.c.
12204         ntproc.c will die, one day.
12205
12206         * ntproc.c (sys_spawnve):
12207         Account for win32_ -> mswindows_.
12208
12209         * process-nt.c:
12210         * process-nt.c (struct nt_process_data):
12211         * process-nt.c (ensure_console_window_exists):
12212         * process-nt.c (compare_env):
12213         * process-nt.c (nt_create_process):
12214         * process-nt.c (nt_kill_process_by_pid):
12215         * process-nt.c (syms_of_process_nt):
12216         * process-nt.c (vars_of_process_nt):
12217         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12218         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12219         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12220         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12221         Move compare_env here from ntproc.c.
12222
12223         * process.c (Fprocess_send_region):
12224         Takes an optional fourth argument, BUFFER, which should fix some
12225         problems with call-process.
12226
12227         * syscommctrl.h:
12228         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12229
12230         * syswindows.h:
12231         Move ICC_BAR_CLASSES to syscommctrl.h.
12232         Add preliminary macros for MSWindows/Mule.  More to come.
12233
12234         * unexnt.c:
12235         * unexnt.c (unexec):
12236         open_output_file moved to nt.c.
12237
12238
12239 2000-05-05  Andy Piper  <andy@xemacs.org>
12240
12241         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12242         instance from the frame cache also since GC may catch up too late
12243         to make frame deletion sane.
12244
12245 2000-05-04  Andy Piper  <andy@xemacs.org>
12246
12247         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12248         (x_finalize_image_instance): ungcpro on deletion.
12249
12250         * glyphs.c (image_instantiator_format_create): give pointers a
12251         query geometry method so that the geometry is at least set.
12252
12253         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12254         initialize layouts if using widgets.
12255
12256 2000-05-03  Andy Piper  <andy@xemacs.org>
12257
12258         * nt.c: remove bogus reference to sysmmsystem.h
12259
12260         * gui-x.c (popup_selection_callback): fix no selection abort.
12261
12262 2000-05-02  Andy Piper  <andy@xemacs.org>
12263
12264         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12265         (mswindows_widget_instantiate): ditto.
12266
12267         * glyphs-widget.c (initialize_widget_image_instance): initialize
12268         children correctly.
12269         (widget_instantiate): cope with children and items in the same
12270         instance.
12271
12272         * glyphs.c (mark_image_instance): cope with children as a first
12273         class member.
12274         (image_instance_equal): ditto.
12275         (image_instance_hash): ditto.
12276         (image_instance_changed): ditto.
12277
12278 2000-04-30  Andy Piper  <andy@xemacs.org>
12279
12280         * glyphs.c (subwindow_query_geometry): new function. Return some
12281         defaults.
12282         (subwindow_instantiate): don't assign dimensions if none have been
12283         given.
12284         (image_instantiator_format_create): add subwindow_query_geometry.
12285         (print_image_instance): cope with layouts as widgets.
12286
12287 2000-04-29  Andy Piper  <andy@xemacs.org>
12288
12289         * frame.c (delete_frame_internal): call
12290         free_frame_subwindow_instance_cache so that all subwindows are
12291         finalized before their parent.
12292         (mark_frame): remove subwindow_cachels.
12293         (Fmake_frame): remove subwindow_cachel manipulation.
12294         (allocate_frame_core): subwindow_instance_cache is a weak list.
12295         (delete_frame_internal): set subwindow_instance_cache to nil.
12296
12297         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12298         finalization safe.
12299         (mswindows_finalize_image_instance): use the device
12300         not the domain as the domain may have died already.
12301
12302         * glyphs-x.c (x_finalize_image_instance): ditto.
12303         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12304         HEIGHT.
12305
12306         * redisplay-output.c (redisplay_unmap_subwindows): update for
12307         subwindow instance cache as a weak list.
12308         (redisplay_unmap_subwindows_maybe): ditto.
12309         (redisplay_unmap_subwindows_except_us): ditto.
12310
12311         * glyphs.c (unmap_subwindow): error checking will check the domain
12312         so don't deal with it here. Don't use cachels anymore.
12313         (map_subwindow): ditto.
12314         (update_subwindow_cachel_data): remove old accessor names.
12315         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12316         (Fresize_subwindow): don't update cachel.
12317         (mark_subwindow_cachels):
12318         (update_subwindow_cachel_data):
12319         (add_subwindow_cachel):
12320         (get_subwindow_cachel_index):
12321         (update_subwindow_cachel):
12322         (reset_subwindow_cachels):
12323         (mark_subwindow_cachels_as_not_updated): deleted.
12324         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12325         subwindow instance to the frame cache.
12326         (find_matching_subwindow): update for subwindow instance cache as
12327         a weak list.
12328         (update_widget_instances): ditto.
12329         (image_instance_type_to_mask):inlined.
12330         (free_frame_subwindow_instance_cache): new function. finalize all
12331         subwindows that are instantiated.
12332
12333         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12334         of cachel information.
12335         (IMAGE_INSTANCE_DISPLAY_X):
12336         (IMAGE_INSTANCE_DISPLAY_Y):
12337         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12338         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12339         (XIMAGE_INSTANCE_DISPLAY_X):
12340         (XIMAGE_INSTANCE_DISPLAY_Y):
12341         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12342         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12343         remove subwindow_cachel structure and function references.
12344         (image_instance_type_to_mask): inline from glyphs.c
12345
12346         * redisplay.c (redisplay_frame): remove subwindow_cachel
12347         references.
12348
12349         * frame.h (struct frame): remove subwindow_cachels.
12350         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12351
12352         * frameslots.h: add subwindow_instance_cache.
12353
12354         * window.c (replace_window): check subwindow cache of replacement.
12355         (window_unmap_subwindows_cache_mapper):
12356         (window_unmap_subwindows): new functions. Unmap all subwindows
12357         cached on this window.
12358         (mark_window_as_deleted): unmap all subwindows.
12359
12360 2000-04-27  Andy Piper  <andy@xemacs.org>
12361
12362         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12363
12364         * glyphs-widget.c (widget_layout): return something.
12365         (layout_layout): return something. Fail if not initialized.
12366         (layout_query_geometry): ditto.
12367         (image_instantiator_native_layout): new function. Initialized the
12368         native layout type.
12369         (widget_instantiate): don't do layout stuff here.
12370
12371         * glyphs.c (instantiate_image_instantiator): reorded calling or
12372         instantiate and post_instantiate with layout in between.
12373         (image_instance_layout): be more selective about deciding whether
12374         the layout has been done or not.
12375
12376         * glyphs.h (struct image_instantiator_methods): return a value
12377         from layout_method.
12378
12379 2000-04-26  Andy Piper  <andy@xemacs.org>
12380
12381         * glyphs.c (allocate_image_instance): make initial width and
12382         height unspecified. Set initialized to 0.
12383
12384         * syscommctrl.h new file. Encapsulates commctrl.h.
12385
12386         * syswindows.h new file. Encapsulates windows.h.
12387
12388         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12389         * nt.c: ditto.
12390         * console-msw.h: ditto.
12391
12392         * redisplay-tty.c (tty_output_display_block): remove layout references.
12393
12394         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12395         window handle rather than just the frame.
12396
12397         * glyphs.c (mark_image_instance): remove layout references.
12398         (print_image_instance): ditto.
12399         (image_instance_equal): ditto.
12400         (image_instance_hash): ditto.
12401         (decode_image_instance_type): ditto.
12402         (encode_image_instance_type): ditto.
12403         (image_instantiate): ditto.
12404         (allocate_glyph): ditto.
12405         (Fimage_instance_height): ditto.
12406         (Fimage_instance_width): ditto.
12407         (update_subwindow): ditto.
12408
12409         * redisplay-x.c (x_output_display_block): recode for layouts as
12410         widgets.
12411
12412         * redisplay-output.c (redisplay_output_layout): recode for layouts
12413         as widgets.
12414         (compare_runes): remove layout references.
12415
12416         * redisplay-msw.c (mswindows_output_display_block): recode for
12417         layouts as widgets.
12418
12419         * glyphs-widget.c (image_instantiator_layout): remove
12420         layout_possible_dest_types.
12421         (layout_possible_dest_types): deleted.
12422
12423         * glyphs.h (image_instance_type): remove layout references.
12424         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12425         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12426         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12427
12428 2000-04-25  Andy Piper  <andy@xemacs.org>
12429
12430         * glyphs-widget.c (image_instantiator_buttons):
12431         (image_instantiator_edit_fields):
12432         (image_instantiator_combo_box):
12433         (image_instantiator_scrollbar):
12434         (image_instantiator_progress_guage):
12435         (image_instantiator_tree_view):
12436         (image_instantiator_tab_control):
12437         (image_instantiator_labels):
12438         (image_instantiator_layout): call default post_instantiate method.
12439         (widget_post_instantiate): new function. Simply lays out the
12440         widgets.
12441
12442         * glyphs.h (struct image_instantiator_methods): add
12443         post_instantiate method.
12444
12445         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12446         method calls.
12447
12448 2000-04-23  Andy Piper  <andy@xemacs.org>
12449
12450         * glyphs.h (struct image_instantiator_methods): add
12451         decode_domain_method.
12452         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12453         derived from the domain.
12454         (IMAGE_INSTANCE_FRAME): new accessor.
12455         (XIMAGE_INSTANCE_FRAME): ditto.
12456
12457         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12458         instead of _SUBWINDOW_FRAME.
12459         (finalize_image_instance): ditto.
12460         (Fimage_instance_foreground): ditto.
12461         (Fimage_instance_background): ditto.
12462         (image_instantiate): ditto.
12463         (update_subwindow_cachel): ditto.
12464         (update_subwindow): ditto.
12465         (unmap_subwindow): ditto.
12466         (map_subwindow): ditto
12467         (subwindow_instantiate): ditto.
12468         * glyphs-msw.c (mswindows_update_widget): ditto.
12469         (mswindows_progress_gauge_instantiate): ditto.
12470         (mswindows_tab_control_update): ditto.
12471         * glyphs-x.c (x_update_widget): ditto.
12472         (x_widget_instantiate): ditto.
12473         (x_tab_control_instantiate): ditto.
12474         (x_tab_control_update): ditto.
12475         * event-msw.c (mswindows_wnd_proc): ditto
12476
12477         * glyphs-widget.c (image_instantiator_layout): use
12478         subwindow_decode_domain.
12479         (image_instantiator_buttons): ditto.
12480         (image_instantiator_edit_fields): ditto.
12481         (image_instantiator_combo_box): ditto.
12482         (image_instantiator_scrollbar): ditto.
12483         (image_instantiator_progress_guage): ditto.
12484         (image_instantiator_tree_view): ditto.
12485         (image_instantiator_tab_control): ditto.
12486         (image_instantiator_labels): ditto.
12487         (image_instantiator_layout): ditto.
12488
12489         * glyphs.c: add instance error checking to many functions.
12490         (instantiate_image_instantiator): decode device from cache_domain.
12491         (image_instantiate): partially rewrite by using
12492         decode_image_instantiator_domain to determine what domain the
12493         instance needs to be cached in.
12494         (decode_image_instantiator_domain): new function. Determine what
12495         domain the image needs to be cached in.
12496         (check_window_subwindow_cache): new error checking function.
12497         (check_instance_cache_mapper): ditto.
12498         (check_image_instance_structure): ditto.
12499         (subwindow_decode_domain): new function. Encodes a window as a
12500         subwindow's cache domain.
12501         (image_instantiator_format_create): use it for text and
12502         subwindows.
12503
12504 2000-04-21  Andy Piper  <andy@xemacs.org>
12505
12506         * glyphs.c (image_instance_device): new function.
12507         (image_instance_frame): new function.
12508         (image_instance_window): new function.
12509         (image_instance_live_p): new function.
12510
12511         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12512         cache to nil.
12513
12514         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12515         (IMAGE_INSTANCE_DOMAIN): new accessor.
12516         (XIMAGE_INSTANCE_DOMAIN): ditto.
12517
12518         * glyphs-x.c (x_finalize_image_instance): device->domain.
12519
12520         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12521         (mswindows_finalize_image_instance): ditto.
12522
12523         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12524         (gif_instantiate): ditto.
12525         (png_instantiate): ditto.
12526         (tiff_instantiate): ditto.
12527
12528         * glyphs.c (instantiate_image_instantiator): use domain rather
12529         than device.
12530         (mark_image_instance): device -> domain.
12531         (print_image_instance): ditto.
12532         (finalize_image_instance): ditto.
12533         (image_instance_equal): ditto.
12534         (allocate_image_instance): ditto.
12535         (Fcolorize_image_instance): ditto.
12536         (query_string_geometry): ditto.
12537         (image_instantiate): ditto
12538         (query_string_font): ditto.
12539         (image_instantiate): ditto.
12540         (update_subwindow): ditto.
12541         (unmap_subwindow): ditto.
12542         (map_subwindow): ditto.
12543         (subwindow_instantiate): ditto.
12544
12545         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12546         (DOMAIN_FRAME): ditto.
12547         (DOMAIN_WINDOW): ditto.
12548         (DOMAIN_LIVE_P): ditto.
12549         (XDOMAIN_DEVICE): ditto.
12550         (XDOMAIN_FRAME): ditto.
12551         (XDOMAIN_WINDOW): ditto.
12552
12553         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12554         a valid specifier domain.
12555
12556 2000-04-19  Andy Piper  <andy@xemacs.org>
12557
12558         * glyphs-widget.c (syms_of_glyphs_widget): remove
12559         widget-callback-current-channel.
12560         (vars_of_glyphs_widget): ditto.
12561         * glyphs.h: ditto
12562
12563         * gui.c (get_gui_callback): revert to previous behaviour.
12564
12565 2000-04-18  Andy Piper  <andy@xemacs.org>
12566
12567         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12568         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12569         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12570
12571         * glyphs.c (image_instance_equal): add margin_width.
12572         (image_instance_hash): ditto.
12573
12574         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12575         (layout_query_geometry): ditto.
12576         (layout_layout): ditto.
12577         (syms_of_glyphs_widget): add margin-width.
12578         (image_instantiator_layout): allow margin-width.
12579
12580         * glyphs.c (update_widget_instances): make a normal function.
12581         (syms_of_glyphs): remove Qupdate_widget_instances.
12582         * glyphs.h: ditto.
12583
12584         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12585         so that we don't corrupt ideas about the last event or
12586         command. Remove widget-callback-current-channel fiddling.
12587         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12588
12589 2000-05-01  Martin Buchholz <martin@xemacs.org>
12590
12591         * XEmacs 21.2.33 is released.
12592
12593 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12594
12595         * make-src-depend: Allow dots in header file name.
12596
12597 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12598
12599         * mule-charset.h (struct charset_lookup): Add
12600         next_allocated_1_byte_leading_byte and
12601         next_allocated_2_byte_leading_byte.
12602         * mule-charset.c: Move above two variables so that those values
12603         will be dumped.
12604
12605 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12606
12607         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12608         when string length is zero.
12609         (find_charsets_in_emchar_string): Ditto.
12610
12611 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12612
12613         * lisp.h: extern Qdialog and Qmenubar.
12614
12615         * gui-x.c: added events.h.
12616                 also fixed typo which made the file uncompilable.
12617
12618         * general.c: Added Qmenubar and Qdialog
12619
12620 2000-04-28  Ben Wing  <ben@xemacs.org>
12621
12622         * frame-msw.c (mswindows_init_frame_1):
12623         * frame-msw.c (mswindows_mark_frame):
12624         * event-msw.c (mswindows_enqueue_dispatch_event):
12625         * console-msw.h:
12626         * console-msw.h (struct mswindows_frame):
12627         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12628         there are now three hash tables for callbacks.
12629         mswindows_enqueue_dispatch_event is no longer static.
12630
12631         * dialog-x.c (maybe_run_dbox_text_callback):
12632         * dialog-x.c (dbox_descriptor_to_widget_value):
12633         switch to new cons3 form for callbacks.
12634
12635         * glyphs-msw.c (mswindows_register_gui_item):
12636         * glyphs-msw.c (mswindows_widget_instantiate):
12637         * glyphs-msw.c (add_tree_item):
12638         * glyphs-msw.c (add_tab_item):
12639         new image instance parameter, so it can be passed to callback-ex.
12640         respect :callback-ex as well as :callback.
12641
12642         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12643         add :callback-ex.
12644
12645         * glyphs.c (print_image_instance):
12646         prettify, e.g. now prints widget type.
12647
12648         * gui-x.h:
12649         certain funs have new image instance parameter.
12650
12651         * gui.c:
12652         * gui.c (get_gui_callback):
12653         * gui.c (gui_item_add_keyval_pair):
12654         * gui.c (gui_item_init):
12655         * gui.c (gui_add_item_keywords_to_plist):
12656         * gui.c (mark_gui_item):
12657         * gui.c (gui_item_hash):
12658         * gui.c (gui_item_equal):
12659         * gui.c (copy_gui_item):
12660         * gui.c (syms_of_gui):
12661         recognize callback-ex in a number of places.
12662         also, fix the annoying "can't get out of yes-no dialog" bug.
12663
12664         * gui.h:
12665         * gui.h (struct Lisp_Gui_Item):
12666         recognize callback-ex in a number of places.
12667
12668         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12669         new parameter in button_item_to_widget_value.
12670
12671         * glyphs-x.c (x_update_widget):
12672         * glyphs-x.c (x_button_instantiate):
12673         * glyphs-x.c (x_button_update):
12674         * glyphs-x.c (x_progress_gauge_instantiate):
12675         * glyphs-x.c (x_edit_field_instantiate):
12676         * glyphs-x.c (x_combo_box_instantiate):
12677         * glyphs-x.c (x_tab_control_instantiate):
12678         * glyphs-x.c (x_label_instantiate):
12679         new image instance parameter in various places.
12680
12681         * event-Xt.c:
12682         * event-Xt.c (enqueue_Xt_dispatch_event):
12683         this fun gets exported.
12684
12685         * gui-msw.c:
12686         * gui-msw.c (mswindows_handle_gui_wm_command):
12687         handle both :callback and :callback-ex, and generate our own
12688         event because it's one of the callback-ex arguments.
12689
12690         * gui-x.c:
12691         * gui-x.c (popup_selection_callback):
12692         handle both :callback and :callback-ex, and generate our own
12693         event because it's one of the callback-ex arguments.
12694         * gui-x.c (button_item_to_widget_value):
12695         * gui-x.c (gui_items_to_widget_values_1):
12696         * gui-x.c (gui_item_children_to_widget_values):
12697         * gui-x.c (gui_items_to_widget_values):
12698         new image instance parameter in various places.
12699
12700         * fns.c (Freplace_list):
12701         fix small typo in doc string.
12702
12703         * lisp.h:
12704         declare enqueue_Xt_dispatch_event.
12705
12706 2000-04-28  Ben Wing  <ben@xemacs.org>
12707
12708         * buffer.c:
12709         * buffer.c (Frecord_buffer):
12710         * buffer.c (syms_of_buffer):
12711         delete record-buffer-hook.
12712
12713         * fns.c:
12714         * fns.c (Freplace_list):
12715         * fns.c (syms_of_fns):
12716         new primitive replace-list.
12717
12718         * frameslots.h:
12719         slot for old buffer-alist.
12720
12721         * lisp.h:
12722         exfun replace-list.
12723
12724         * redisplay.c:
12725         * redisplay.c (redisplay_frame):
12726         * redisplay.c (syms_of_redisplay):
12727         * redisplay.c (vars_of_redisplay):
12728         new hook buffer-list-changed-hook.
12729         call it.
12730
12731 2000-04-27  Ben Wing  <ben@xemacs.org>
12732
12733         * extents.h: extern in_modeline_generation.
12734
12735         * redisplay.c (generate_formatted_string_db): set
12736         in_modeline_generation.
12737
12738         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12739         flags if in modeline generation.  otherwise frame-modified-tick
12740         is ticked far too often.
12741         Declare in_modeline_generation.
12742
12743 2000-04-26  Ben Wing  <ben@xemacs.org>
12744
12745         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12746         option.
12747         (vars_of_emacs): add quick-build as an error-checking option.
12748         A bit kludgy, but there doesn't seem much point in creating
12749         a real var for this.
12750
12751         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12752
12753 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12754
12755         * redisplay.h (struct display_line): Add a new variable,
12756         line_continuation.
12757
12758         * redisplay.c (create_text_block): Set dl->line_continuation if
12759         the line continues.
12760         (create_string_text_block): Ditto.
12761         (regenerate_window_incrementally): Use line_continuation instead
12762         of searching continuation glyph.
12763         (add_margin_runes): Call add_glyph_rune.
12764         (add_glyph_rune): Handle margin glyph.
12765
12766 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12767
12768         * filelock.c (fill_in_lock_file_name):
12769         ANSIfy.
12770         Check for IS_ANY_SEP instead of '/'.
12771         (lock_file_1):
12772         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12773         Never check errno without first seeing that system call failed.
12774         (unlock_file): Add GCPRO.
12775         (Flock_buffer): Fix docstring.
12776         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12777
12778 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12779
12780         * sysdep.c (get_pty_max_bytes):
12781         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12782         strings longer than 252 bytes.
12783
12784         * md5.c: Unconditionally include ANSI header <limits.h>
12785
12786         * glyphs-x.c (convert_EImage_to_XImage):
12787         * lisp-union.h (union Lisp_Object):
12788         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12789
12790 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12791
12792         * filelock.c (current_lock_owner): Remove unused variable o, p.
12793
12794 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12795
12796         * callint.c: Remove multiply defined symbol Qlet
12797         (syms_of_callint): ditto.
12798
12799 2000-04-14  Andy Piper  <andy@xemacs.org>
12800
12801         * general.c (syms_of_general): add last-command, this-command, let
12802         and funcall.
12803
12804         * lisp.h: declare various symbols.
12805
12806         * glyphs.h: declare Qwidget_callback_current_channel;
12807
12808         * glyphs-widget.c (syms_of_glyphs_widget): add
12809         Qgui_callback_current_channel.
12810         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12811
12812         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12813         widget-callback-current-channel when invoking the interactive
12814         arg. Also bind last-command and next-command when invoking the
12815         widget updates.
12816         * gui-x.c (popup_selection_callback): ditto.
12817
12818         * gui.c (get_gui_callback): massage args so that we are always
12819         calling eval. This allows us to add our own variable bindings
12820         outside.
12821
12822         * glyphs-x.c (x_button_instantiate): use
12823         gui_items_to_widget_values since this is GC safe.
12824         (x_progress_gauge_instantiate): ditto.
12825         (x_edit_field_instantiate): ditto.
12826         (x_label_instantiate): ditto.
12827
12828         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12829         (emacs_Xt_event_widget_focus_out): new function
12830         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12831         focus.
12832         (emacs_Xt_event_add_widget_actions): new function. add focus
12833         functions as actions.
12834         (init_event_Xt_late): use it.
12835
12836 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12837
12838         * event-stream.c (Fdispatch_event): Doc fix.
12839
12840 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12841
12842         * postgresql.c: Remove all references to PQsetenv*.
12843
12844         * postgresql.h: Remove references to PGsetenvHandler object.
12845         * lrecord.h (lrecord_type): Ditto.
12846
12847 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12848
12849         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12850         real_heigh and real_width members, and accessor macros for these.
12851
12852         * glyphs-msw.c (init_image_instance_geometry): New function.
12853         (init_image_instance_from_dibitmap): Use it.
12854         (mswindows_resource_instantiate): Use it.
12855         (init_image_instance_from_xbm_inline): Use it.
12856         (mswindows_initialize_image_instance_mask): Use real bitmap
12857         geometry.
12858         (mswindows_create_resized_bitmap): Ditto.
12859         (mswindows_create_resized_mask): Ditto.
12860
12861         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12862         and bitmap to their surface size.
12863
12864 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12865
12866         * process-unix.c (unix_send_process): Guard against process MIA
12867         after Faccept_process_output.
12868
12869 2000-04-11  Ben Wing  <ben@xemacs.org>
12870
12871         * eval.c (unbind_to_hairy): fix brokenness introduced by
12872         nanosecond speed improvements.
12873
12874 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12875
12876         * sunplay.c (init_device): To play sounds correctly, the device
12877         apparently needs to be initialized at least once by XEmacs.  Make
12878         it so.
12879
12880 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12881
12882         * redisplay.c (add_margin_runes): Add text image glyph
12883           handling.
12884
12885 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12886
12887         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12888         gcc is newer than 2.5.
12889
12890 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12891
12892         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12893
12894         * fns.c (size_bit_vector):
12895         * alloc.c (size_vector):
12896         (make_vector_internal):
12897         (make_bit_vector_internal):
12898         (sweep_bit_vectors_1):
12899         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12900
12901 2000-04-06  Andy Piper  <andy@xemacs.org>
12902
12903         * gmalloc.c (malloc): undo previous change.
12904         (malloc): ditto.
12905         (free): ditto.
12906         (realloc): ditto.
12907
12908 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12909
12910         * line-number.c (buffer_line_number): Revert to former version.
12911
12912 2000-04-06  Andy Piper  <andy@xemacs.org>
12913
12914         * gmalloc.c (malloc): add error checking.
12915         (malloc): ditto.
12916         (free): ditto.
12917         (realloc): ditto.
12918
12919         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12920         button_item_to_widget_value arg.
12921
12922         * glyphs-x.c (x_button_instantiate): add extra
12923         button_item_to_widget_value arg.
12924         (x_progress_gauge_instantiate): ditto.
12925         (x_edit_field_instantiate): ditto.
12926         (x_label_instantiate): ditto.
12927
12928         * gui-x.c (gui_items_to_widget_values_1): add extra
12929         button_item_to_widget_value arg.
12930         (button_item_to_widget_value): add extra menu_item_p arg.
12931
12932         * gui-x.h: change signature of button_item_to_widget_value.
12933
12934         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12935         button_item_to_widget_value arg.
12936
12937 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12938
12939         * buffer.h (struct buffer): auto_save_modified should be long.
12940
12941 2000-04-05  Andy Piper  <andy@xemacs.org>
12942
12943         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12944         type.
12945         (button_query_geometry): give a little more room so that athena
12946         buttons fit.
12947
12948 2000-04-05  Andy Piper  <andy@xemacs.org>
12949
12950         * faces.c (complex_vars_of_faces): The widget face should inherit
12951         the font of the gui-element face.
12952
12953 2000-04-04  Andy Piper  <andy@xemacs.org>
12954
12955         * glyphs-x.c (x_button_update): new function. unconditionally
12956         update a button's state when the instance is dirty.
12957         (image_instantiator_format_create_glyphs_x): add x_button_update.
12958         (x_widget_instantiate): remove old resize cruft.
12959
12960 2000-04-02  Andy Piper  <andy@xemacs.org>
12961
12962         * frame.c (change_frame_size_1): The introduction of gutters means
12963         that we need to allow 0 as a potential frame dimension.
12964
12965 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12966
12967         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12968         image glyph if allow_cursor.
12969         (add_hscroll_rune): Don't allow cursor to border glyph.
12970         (create_text_block): Ditto.
12971
12972         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12973         text not in buffer.
12974         (redisplay_output_layout): Call ensure_face_cachel_complete for
12975         text image glyph.
12976
12977
12978 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12979
12980         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12981
12982         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12983         not in buffer
12984
12985         * redisplay-tty.c (tty_output_display_block): Delete the routine
12986         for text image glyph
12987         * redisplay-x.c (x_output_display_block): ditto
12988         * redisplay-msw.c (mswindows_output_display_block): ditto
12989
12990 2000-02-02  Mike Alexander  <mta@arbortext.com>
12991
12992         Note: Some of these were committed by accident as part of other
12993         patches.
12994
12995         * regex.c (regex_compile): Avoid compiler warnings.
12996
12997         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12998
12999         * nt.h: Declare term_ntproc correctly.
13000
13001         * nt.c: Remove incorrect declaration of get_home_directory which
13002         is declared correctly in lisp.h.
13003
13004         * keymap.c (get_keyelt): Avoid compiler warnings.
13005         (raw_lookup_key_mapper): Avoid compiler warnings.
13006
13007         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13008
13009         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13010
13011         * filemode.c (mode_string): Avoid compiler warnings.
13012
13013         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13014         avoid warning.
13015
13016         * events-mod.h: Undef some things that winuser.h defines differently.
13017
13018         * data.c (Faset): Avoid compiler warnings.
13019
13020         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13021
13022 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13023
13024         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13025         Fall through to simple beep on error.
13026         Replace "extern" by real header file.
13027
13028         * linuxplay.c: Use nativesound.h
13029         (play_sound_data): Return error code. Be less verbose on error.
13030
13031         * sunplay.c: Use nativesound.h
13032         (play_sound_data): Return error code. Be less verbose on error.
13033
13034         * ntplay.c: Use nativesound.h
13035         (play_sound_data): Return fake error code
13036
13037         * sgiplay.c: Use nativesound.h
13038         (play_sound_data): Return error code
13039
13040         * hpplay.c: Use nativesound.h, partially implement
13041         new error code. Break compilation until finished.
13042         (play_sound_data): error code.
13043
13044         * nativesound.h (play_sound_file):
13045           (play_sound_data): Prototype in new header.
13046
13047 2000-03-31  Andy Piper  <andy@xemacs.org>
13048
13049         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13050         for toggle and radio buttons.
13051         (image_instantiator_buttons): use it.
13052
13053 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13054
13055         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13056         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13057         found. Scrollbar event probably belonged to some old config.
13058
13059 2000-03-31  Andy Piper  <andy@xemacs.org>
13060
13061         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13062         than 1.
13063         (initialize_widget_image_instance): default layout to
13064         LAYOUT_HORIZONTAL rather than 0.
13065         (widget_instantiate): reverse the item list at the end rather than
13066         every iteration.
13067         (layout_layout): re-code for the border text at the front of the
13068         item list rather than at the end.
13069         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13070         provided by the user.
13071         (widget_query_geometry): comment.
13072
13073 2000-03-30  Andy Piper  <andy@xemacs.org>
13074
13075         * glyphs-widget.c (image_instantiator_layout): allow standard
13076         widget keywords in layouts.
13077
13078         * gutter.c (output_gutter): cope with nil gutter contents.
13079
13080         * frame.c (Fset_frame_properties): add gutter docs.
13081
13082 2000-03-29  Andy Piper  <andy@xemacs.org>
13083
13084         * toolbar-msw.c (TBSTYLE_FLAT): add.
13085         (mswindows_output_toolbar): minor fiddling.
13086
13087 2000-03-29  Andy Piper  <andy@xemacs.org>
13088
13089         * gutter.c (output_gutter): force gutter size recalculation if
13090         what we are trying to display won't fit.
13091         (update_gutter_geometry): new function. A per-gutter version of
13092         update_frame_gutter_geometry.
13093         (update_frame_gutter_geometry): use it.
13094         (redraw_exposed_gutter): add extra debugging output.
13095
13096 2000-03-28  Mike Alexander  <mta@arbortext.com>
13097
13098         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13099         (pdump_file_unmap): Implement it on Windows
13100         (pdump_file_get): Save alocated handles for pdump_file_unmap
13101
13102 2000-03-28  Andy Piper  <andy@xemacs.org>
13103
13104         * gui.c (get_gui_callback): treat Quit specially.
13105
13106 2000-03-27  Andy Piper  <andy@xemacs.org>
13107
13108         * glyphs.c (image_instantiate): be careful to check in the same
13109         way we assigned.
13110
13111 2000-03-27  Didier Verna  <didier@xemacs.org>
13112
13113         * config.h.in: define the proper SMART_INCLUDE macro.
13114         handle renaming of `foo_h_path' to `foo_h_file'.
13115
13116         * database.c: ditto.
13117
13118         * emacs.c: ditto.
13119
13120         * linuxplay.c: ditto.
13121
13122         * terminfo.c: ditto.
13123
13124         * tooltalk.h: ditto.
13125
13126 2000-03-27  Andy Piper  <andy@xemacs.org>
13127
13128         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13129         gets updated whenever the face might have changed.
13130
13131 2000-03-26  Mike Alexander  <mta@arbortext.com>
13132
13133         * dumper.c (pdump_resource_free): Fix the comment.
13134
13135 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13136
13137         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13138
13139 2000-03-22  Mike Alexander  <mta@arbortext.com>
13140
13141         * dumper.c: Include Windows headers on Windows
13142         (pdump_resource_free): Add a body to the function
13143         (pdump_load): exe_name -> exe_path and add some comments.
13144
13145 2000-03-25  Mike Alexander  <mta@arbortext.com>
13146
13147         * gui.c (copy_gui_item_tree): Return a value in all cases
13148
13149 2000-03-21  Didier Verna  <didier@xemacs.org>
13150
13151         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13152         lwlib/config.h.in.
13153         (SMART_INCLUDE): new macro.
13154         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13155         the proper location.
13156
13157         * postgresql.c: use it.
13158
13159         * inline.c: ditto.
13160
13161 2000-03-24  Andy Piper  <andy@xemacs.org>
13162
13163         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13164         do this.
13165
13166 2000-03-24  Andy Piper  <andy@xemacs.org>
13167
13168         * redisplay-output.c (compare_runes): use image_instance_changed
13169         to detect changes. Do not depend on glyphs_changed, only depend on
13170         dirtiness.
13171          (redisplay_output_layout): add debug messages.
13172         (compare_runes): ditto.
13173
13174         * glyphs.h: declare new functions.
13175         (struct Lisp_Image_Instance): remove percent and associated
13176         accessors.
13177
13178         * gui.h: declare new copying functions.
13179
13180         * gui.c (copy_gui_item_tree): new function.
13181         (copy_gui_item): new function.
13182         (gui_item_id_hash): revert to standard hash.
13183         (gui_item_hash): ditto.
13184         (gui_item_hash_internal): deleted.
13185         (mark_gui_item): mark value.
13186         (gui_item_add_keyval_pair): add value.
13187         (gui_item_init): ditto.
13188         (gui_add_item_keywords_to_plist): ditto.
13189         (gui_item_equal): ditto.
13190         (syms_of_gui): add Q_value.
13191
13192         * glyphs-x.c (x_progress_gauge_update): use pending items and
13193         value for setting the state.
13194         (x_update_widget): don't set items from pending here.
13195
13196         * glyphs-widget.c (update_widget): update items here.
13197         (progress_gauge_set_property): use items for storing value. Put
13198         new value in pending items.
13199
13200         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13201         items for new value. Convert percent -> value.
13202         (mswindows_tab_control_update): don't update items here.
13203
13204         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13205         (update_subwindow): ditto.
13206         (image_instance_changed): new function. Compare hash values and
13207         past and present widget items.
13208         (image_instantiate): We more careful about where we instantiate
13209         things.
13210         (image_instantiate): add error checking.
13211
13212         * gutter.c (syms_of_gutter): use -hook.
13213
13214 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13215
13216         * console-tty.c (Fset_console_tty_input_coding_system): Use
13217         Qkeyboard.
13218         (Fset_console_tty_output_coding_system): Use Qterminal.
13219         (tty_init_console): Use Qkeyboard and Qterminal.
13220
13221 2000-03-21  Ben Wing  <ben@xemacs.org>
13222
13223         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13224         From Mike Alexander <mta@arbortext.com>.
13225
13226 2000-03-21  Ben Wing  <ben@xemacs.org>
13227
13228         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13229         process brokenness.  Proper implementation to come.
13230         * callproc.c:
13231         Rename call-process-internal to old-call-process-internal.
13232         New impl. in process.el.
13233
13234 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13235
13236         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13237
13238 2000-03-20  Andy Piper  <andy@xemacs.org>
13239
13240         * glyphs.c (full_list_hash): make hashes of the same elements in
13241         different orders return different values.
13242
13243 2000-03-20  Martin Buchholz <martin@xemacs.org>
13244
13245         * XEmacs 21.2.32 is released.
13246
13247 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13248
13249         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13250         (DFC_MALLOC_USE_CONVERTED_DATA):
13251         Add aliasing-safe casts to allow use with char* or unsigned char*
13252         lvalues.
13253
13254         * eldap.c (Fldap_open):
13255         (Fldap_search_basic):
13256         (Fldap_add):
13257         (Fldap_modify):
13258         Make C++-compilable.
13259         Make sure GCPRO'ed variables are initialized.
13260         Use temp variables to avoid repeated calls to Flength.
13261
13262 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13263
13264         * sysfile.h:
13265         Make sure PATH_MAX is always defined.
13266         Include limits.h for PATH_MAX.
13267         Deprecate use of MAXPATHLEN.
13268
13269 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13270
13271         * emacs.c: Add reinit_vars_of_fileio.
13272         * symsinit.h: Add reinit_vars_of_fileio.
13273         * fileio.c (reinit_vars_of_fileio): New.
13274         * fileio.c (Fmake_temp_name):
13275         Initialize temp_name random number from microseconds to make
13276         collisions even less likely.  Initialize always at process startup
13277         time.  (make-temp-name) used to return the same file name twice in
13278         a row when PDUMP.
13279         Random stylistic fiddling.
13280         Comment fixes.
13281
13282 2000-03-20  Andy Piper  <andy@xemacs.org>
13283
13284         * glyphs.c (image_instantiate): allow text glyphs to be
13285         instantiated in the minibuffer window.
13286
13287 2000-03-19  Andy Piper  <andy@xemacs.org>
13288
13289         * glyphs.c (image_instance_hash): be careful about which items we
13290         hash on.
13291
13292         * glyphs-widget.c (tab_control_set_property): record into pending
13293         items rather than the actual items.
13294
13295         * glyphs-x.c (x_update_widget): use pending items to update with.
13296
13297         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13298         to update with.
13299
13300         * glyphs.c (mark_image_instance): mark pending items.
13301
13302         * window.c (Fset_window_configuration): record the buffer.
13303         (Fselect_window): totally revert previous change which breaks many
13304         things.
13305
13306 2000-03-18  Andy Piper  <andy@xemacs.org>
13307
13308         * glyphs-msw.c (mswindows_tab_control_update): force selected
13309         item.
13310
13311         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13312         window domain cache, otherwise we get inconsistencies at
13313         startup. There is something fishy at startup which can lead to the
13314         minibuffer being the selected window when the gutter content is
13315         instantiated.
13316
13317         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13318         gcpros.
13319         (parse_gui_item_tree_children): ditto.
13320         (parse_gui_item_tree_item): ditto.
13321
13322         * glyphs.c (Fupdate_widget_instances): return something.
13323
13324 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13325
13326         * window.c (Fselect_window): Undo 2000-03-17 change.
13327
13328 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13329
13330         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13331         against v7.0 libraries.  Insta-coredump city until the postgres
13332         folks fix it.
13333
13334 2000-03-17  Andy Piper  <andy@xemacs.org>
13335
13336         * faces.c (complex_vars_of_faces): don't give the widget face an
13337         inherited background pixmap.
13338
13339         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13340         selected item.
13341
13342         * event-stream.c (Fdispatch_non_command_events): return something.
13343
13344         * gutter.c (output_gutter): use widget face.
13345         (clear_gutter): ditto.
13346
13347         * NEWS: adjust again.
13348
13349         * window.c (Fselect_window): make sure this runs to completion to
13350         avoid oddities with Fset_window_configuration.
13351         (Fcurrent_window_configuration): in general do not save the
13352         minibuffer as the selected window.
13353
13354         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13355
13356 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13357
13358         * emacs.c (Frunning_temacs_p): Revert previous patch.
13359         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13360
13361 2000-03-16  Andy Piper  <andy@xemacs.org>
13362
13363         * glyphs-x.c (x_tab_control_update): if no widget values then
13364         return.
13365
13366         * NEWS: update for new features.
13367
13368         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13369         synthetic event to the native system.
13370         (reinit_vars_of_event_Xt): set force_event_pending to
13371         emacs_Xt_force_event_pending.
13372
13373         * events.h (struct event_stream): add force_event_pending.
13374
13375         * specifier.c (recompute_one_cached_specifier_in_window): add
13376         comment.
13377
13378         * redisplay.c (redisplay_frame): don't call
13379         update_frame_subwindows. Reset subwindow cachels when
13380         subwindows_changed, removing this was an optimization too far.
13381
13382         * redisplay-output.c (compare_runes): reorganize so that we catch
13383         glyph changes when we want them. Set optimize_output when this
13384         would help layouts.
13385         (redisplay_output_layout): remove frame_really_changed, use
13386         optimize_output instead.
13387
13388         * redisplay-msw.c (mswindows_output_display_block): reset
13389         optimize_output after outputting a glyph.
13390         * redisplay-x.c (x_output_display_block): ditto.
13391         * redisplay-tty.c (tty_output_display_block): ditto.
13392
13393         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13394         functions.
13395         (gutter_specs_changed): do specific gutter positions.
13396         (top_gutter_specs_changed): new function. Only update the
13397         specified gutter specs.
13398         (bottom_gutter_specs_changed): ditto.
13399         (left_gutter_specs_changed): ditto.
13400         (right_gutter_specs_changed): ditto.
13401
13402         * gui.c (gui_item_hash_internal): new function, does a real hash.
13403         (gui_item_id_hash): use it.
13404         (gui_item_hash): hash the eval'ed gui_item.
13405
13406         * gui-x.c (popup_selection_callback): send an eval event to call
13407         Fupdate_widget_instances.
13408
13409         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13410         to call Fupdate_widget_instances.
13411
13412         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13413         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13414
13415         * glyphs.c: (update_frame_subwindows): deleted.
13416         (Fupdate_widget_instances): new function for updating the dirty
13417         state of widgets that might have changed.
13418         (syms_of_glyphs): add Qupdate_widget_instances.
13419         (full_list_hash): hash a list completely.
13420         (image_instance_hash): use it for items and properties.
13421
13422         * frame-msw.c (mswindows_size_frame_internal): remove unused
13423         variable.
13424
13425         * faces.h (struct face_cachel): fix comment.
13426
13427         * event-stream.c (Fdispatch_non_command_events): new
13428         function. Process non-command events, forcing an event cycle
13429         beforehand.
13430         (syms_of_event_stream): declare.
13431         (event_stream_force_event_pending): new function. Force an event
13432         on the native event queue so that an event cycle will occur next
13433         time we check.
13434
13435         * event-msw.c:
13436         (struct ntpipe_shove_stream):
13437         (mswindows_enqueue_dispatch_event):
13438         (mswindows_dequeue_dispatch_event):
13439         (mswindows_cancel_dispatch_event):
13440         (mswindows_pump_outstanding_events):
13441         (mswindows_drain_windows_queue):
13442         (mswindows_handle_paint):
13443         (mswindows_wnd_proc):
13444         (mswindows_key_to_emacs_keysym):
13445         (get_process_input_waitable):
13446         (emacs_mswindows_delete_stream_pair): re-indent file.
13447         (mswindows_need_event): do not process further fds if the windows
13448         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13449         fixes the 100% cpu problem.
13450         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13451
13452 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13453
13454         * alloc.h: New.
13455         * dumper.h: New.
13456         * dumper.c: New.
13457
13458         * emacs.c: Moved dump file searching to dumper.c.
13459         (Frunning_temacs_p): Fixed.
13460
13461         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13462         last_lrecord_type_index_assigned.
13463
13464 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13465
13466         * symsinit.h: Added reinit parameter to init_console_stream
13467         declaration.
13468
13469         * lisp.h: Added file parameter to pdump_load declaration.
13470
13471         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13472         support.  Added dump file searching.
13473
13474         * config.h.in: Added EMACS_PROGNAME.
13475
13476         * console-stream.c (init_console_stream): Fix reinitialisation
13477         when running from temacs.
13478
13479         * alloc.c (pdump): Add id support.
13480         (pdump_load): Add file parameter and signature/id support.
13481
13482         * Makefile.in.in: Add full pdump support.
13483
13484 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13485
13486         * postgresql.c: Update documentation to reflect latest code
13487         status.
13488         (print_result): Show tuple counts in printed representation when
13489         appropriate.
13490         (Fpq_put_nbytes): MULE-ize.
13491         (Fpq_get_line_async): Ditto.
13492
13493 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13494
13495         * postgresql.c (Fpq_lo_import): Fix return value.
13496         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13497
13498 2000-03-13  Ben Wing  <ben@xemacs.org>
13499
13500         * alloc.c (pdump_load):
13501         Fix compile warning under mswin.
13502
13503 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13504
13505         * postgresql.c: Mule-ization, bug fixes.
13506         Use PG_CODING to encapsulate coding system name changes.
13507         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13508         (pg-coding-system): Create.
13509
13510         (Fpq_conn_defaults): Mule-ize.
13511         (Fpq_connectdb): Mule-ize & bug fix.
13512         (Fpq_connect_start): Mule-ize.
13513         (Fpq_set_client_encoding): Mule-ize.
13514         (Fpq_finish): Document `DEAD' connection status.
13515         (Fpq_clear): Ditto.
13516         (Fpq_pgconn): Mule-ize.
13517         (Fpq_exec): Mule-ize & bug fix.
13518         (Fpq_send_query): Ditto.
13519         (Fpq_get_result): Ditto.
13520         (Fpq_res_status): Mule-ize.
13521         (Fpq_result_error_message): Mule-ize.
13522         (Fpq_ntuples): fix comments.
13523         (Fpq_fname): Mule-ize.
13524         (Fpq_fnumber): Mule-ize.
13525         (Fpq_ftype): fix comments.
13526         (Fpq_get_value): Mule-ize.
13527         (Fpq_cmd_status): Ditto.
13528         (Fpq_cmd_tuples): Ditto.
13529         (Fpq_oid_value): Ditto.
13530         (Fpq_notifies): Ditto.
13531         (Fpq_lo_import): Ditto.
13532         (Fpq_lo_export): Ditto.
13533         (Fpq_get_line): Ditto.
13534         (Fpq_put_line): Mule-ize and bug fix.
13535         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13536
13537 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13538
13539         * postgresql.c (vars_of_postgresql): Mule-ize.
13540         (Fpq_conn_defaults): Ditto.
13541
13542 2000-03-12  Ben Wing  <ben@xemacs.org>
13543
13544         * alloc.c (Fmake_byte_code):
13545         * alloc.c (debug_string_purity_print):
13546         * alloc.c (pdump_backtrace):
13547         * alloc.c (pdump_get_indirect_count):
13548         * alloc.c (pdump_register_sub):
13549         * alloc.c (pdump_register_object):
13550         * alloc.c (pdump_register_struct):
13551         * alloc.c (pdump_dump_data):
13552         * alloc.c (pdump_reloc_one):
13553         Minor cleanups.
13554
13555         * console-msw.c:
13556         * console-msw.c (GetConsoleHwnd):
13557         * console-msw.c (msw_hide_console):
13558         * console-msw.c (msw_show_console):
13559         * console-msw.c (msw_ensure_console_buffered):
13560         * console-msw.c (msw_output_console_string):
13561         * console-msw.c (console_type_create_mswindows):
13562
13563         a) Added functions to manipulate the console window for use with
13564         shell support.
13565
13566         b) Added support for writing text to the console, which is now
13567         used under Windows when xemacs is not being run non-interactively,
13568         to write text that would otherwise be destined for stdout because
13569         under these circumstances, text written to stdout tends to
13570         disappear and not be seen.
13571
13572         * console-msw.h:
13573         * event-Xt.c:
13574         * event-Xt.c (x_event_to_emacs_event):
13575         * event-Xt.c (describe_event_window):
13576         * events-mod.h (XEMACS_MOD_CONTROL):
13577         * events.c:
13578         * events.c (Fmake_event):
13579         * events.c (character_to_event):
13580         * events.c (event_to_character):
13581         * events.c (format_event_object):
13582         * events.c (Fevent_modifiers):
13583         * events.h:
13584         * events.h (struct key_data):
13585         * events.h (struct button_data):
13586         * events.h (struct misc_user_data):
13587         * frame-x.c (Fcde_start_drag_internal):
13588         * frame-x.c (Foffix_start_drag_internal):
13589         * gpmevent.c (Freceive_gpm_event):
13590         * keymap.c:
13591         * keymap.c (bucky_sym_to_bucky_bit):
13592         * keymap.c (control_meta_superify):
13593         * keymap.c (make_key_description):
13594         * keymap.c (keymap_lookup_directly):
13595         * keymap.c (create_bucky_submap):
13596         * keymap.c (keymap_store):
13597         * keymap.c (define_key_check_and_coerce_keysym):
13598         * keymap.c (define_key_parser):
13599         * keymap.c (define_key_alternate_name):
13600         * keymap.c (Fdefine_key):
13601         * keymap.c (raw_lookup_key_mapper):
13602         * keymap.c (struct map_keymap_unsorted_closure):
13603         * keymap.c (map_keymap_unsorted_mapper):
13604         * keymap.c (map_keymap_sort_predicate):
13605         * keymap.c (map_keymap_sorted):
13606         * keymap.c (accessible_keymaps_mapper_1):
13607         * keymap.c (where_is_recursive_mapper):
13608         * keymap.c (describe_map_mapper):
13609         * keymap.c (describe_map_sort_predicate):
13610         * keymap.c (describe_map):
13611         * keymap.c (complex_vars_of_keymap):
13612         And a number of other files, the key modifier preprocessor
13613         constants that xemacs uses have names that conflict with constants
13614         defined under MS Windows for other purposes, so they were renamed
13615         to begin with the prefix XEMACS_. The variables that hold such
13616         modifiers were changed to consistently be of type int to fix
13617         various compile warnings.
13618
13619         * console.c (complex_vars_of_console):
13620         * device.c:
13621         * device-msw.c:
13622         * device-msw.c (mswindows_finish_init_device):
13623         * device-msw.c (msw_get_workspace_coords):
13624         * device-msw.c (mswindows_device_system_metrics):
13625         and various other files, added support for a new
13626         device property called offset-workspace which returns the position
13627         of the upper left corner of the workspace area and goes along with
13628         the existing size-workspace property.
13629
13630         * dialog-msw.c:
13631         * dialog-msw.c (push_bufbyte_string_as_unicode):
13632         * dialog-msw.c (mswindows_popup_dialog_box):
13633         Added support for XEmacs-style accelerator specifications in
13634         button text.  Note: I didn't add support for this under X Windows,
13635         and somebody needs to do this.
13636
13637         * dialog.c:
13638         * dialog.c (Fpopup_dialog_box):
13639         Documented the support for accelerators that was just mentioned.
13640
13641         editfns.c (get_home_directory): Changed behavior under Windows
13642         when HOME not defined; former behavior was irretrievably broken.
13643
13644         * emacs.c:
13645         * emacs.c (main_1):
13646         * emacs.c (main):
13647         * minibuf.c (clear_echo_area_internal):
13648         * minibuf.c (echo_area_append):
13649         * print.c:
13650         * print.c (std_handle_out_external):
13651         * print.c (std_handle_out_va):
13652         * print.c (fatal):
13653         * print.c (write_string_to_stdio_stream):
13654         * print.c (output_string):
13655         * print.c (debug_print):
13656         * print.c (debug_backtrace):
13657         * print.c (debug_short_backtrace):
13658         Cleaned up the code that prints text to stdout so that this can be
13659         changed to output into a console window instead under MS Windows,
13660         as described above.
13661
13662         * eval.c:
13663         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13664         * eval.c (internal_catch):
13665         * eval.c (unwind_to_catch):
13666         * eval.c (throw_or_bomb_out):
13667         * eval.c (condition_case_1):
13668         * eval.c (signal_1):
13669         * eval.c (check_error_state_sanity):
13670         * eval.c (call_with_suspended_errors_1):
13671         * eval.c (call_with_suspended_errors):
13672         * eval.c (reinit_vars_of_eval):
13673         Added code to catch throw loops and check for a pesky bug that may
13674         be gone now.
13675
13676         * event-msw.c:
13677         * event-msw.c (key_needs_default_processing_p):
13678         * event-msw.c (mswindows_wnd_proc):
13679         * event-msw.c (mswindows_modifier_state):
13680         * event-msw.c (emacs_mswindows_quit_p):
13681         * event-msw.c (vars_of_event_mswindows):
13682         a) Added support for using the alt key to select menu items as is
13683         standard under MS Windows.  This is controlled using the variable
13684         menu-accelerator-enabled, just like under X Windows.  There is an
13685         option on the options menu to turn this support on.  I really
13686         think that it should be on by default under Windows, but I'm not
13687         going to make this change yet.
13688
13689         b)  Added support for dynamic display size changes under Windows.
13690
13691         * event-stream.c:
13692         * event-stream.c (maybe_echo_keys):
13693         * event-stream.c (Fnext_event):
13694         * event-stream.c (command_builder_find_leaf):
13695         * event-stream.c (lookup_command_event):
13696         * event-stream.c (execute_command_event):
13697         * event-stream.c (pre_command_hook):
13698         * event-stream.c (post_command_hook):
13699         * event-stream.c (syms_of_event_stream):
13700         * event-stream.c (vars_of_event_stream):
13701         * event-stream.c (complex_vars_of_event_stream):
13702         * events.h (struct command_builder):
13703
13704         a) Tried to clean up a little bit the horribly written x-specific
13705         accelerator code that crept into this file.  I moved this code
13706         into menubar-x.c where it belongs. I also needed to move the
13707         command builder structure into the file events.h because it is
13708         accessed directly by this accelerator code.  What I didn't do, but
13709         which should be done at some point, is to properly abstract this
13710         code using device methods instead of the kludgy way that it
13711         currently hooks into the event code.
13712
13713         b) Added the lisp variables this-command-properties and
13714         last-command- properties, which should be used to synchronize two
13715         adjacent commands in preference to playing games with the variable
13716         this-command, which is typically what happens.
13717
13718         c) Added some slightly nasty code to hook into the lisp support
13719         for shifted- motion-key selection.  This is actually necessary for
13720         somewhat complicated reasons, which are described in
13721         simple.el. (NB: I think the proper thing would be to have the code
13722         that calls the pre and post command hooks also call out to generic
13723         lisp functions in simple.el, where all built-in stuff could be
13724         added.  I will think about this more.)
13725
13726         * event-unixoid.c (poll_fds_for_input):
13727         * lread.c (readchar):
13728         * redisplay-tty.c (tty_clear_frame):
13729         * redisplay-x.c (x_get_gc):
13730         * signal.c (interrupt_signal):
13731         And a whole bunch of other files: fixed up places that printed
13732         directly to stderr to instead call the function stderr_out so that
13733         the changes I made under Windows work correctly.
13734
13735         * filemode.c (mode_string):
13736         Warning fixes.
13737
13738         * frame-msw.c:
13739         * frame-msw.c (mswindows_size_frame_internal):
13740         Fixed the computation of frame size and position to keep the frame
13741         within the workspace area, rather than within the physical
13742         dimensions of the screen, so that the frame doesn't overlap window
13743         manager decorations, such as the start menu and toolbar, typically
13744         at the bottom of the screen.
13745
13746         * frame.c (vars_of_frame):
13747         Changed the default frame title format under MS Windows to consist
13748         of buffername-XEmacs, which is standard under MS Windows.  I think
13749         it might be a good idea to change this everywhere because I think
13750         it is superior to the current frame title format, but this is the
13751         kind of change that is likely to cause some people to get annoyed,
13752         so I'm not making it.
13753
13754         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13755
13756         * gui-msw.c (mswindows_handle_gui_wm_command):
13757         Fixed compile warnings.
13758
13759         * gui-x.c:
13760         * gui-x.c (strdup_and_add_accel):
13761         * gui-x.c (button_item_to_widget_value):
13762         * gui-x.h:
13763         Added code to automatically put an accelerator onto the beginning
13764         of menu items that don't have one as is now the standard, and is
13765         described more later.  Also fixed things so that the menu item
13766         name can be an evaluated expression, again a new standard.
13767
13768         * gui.c:
13769         * gui.c (gui_item_add_keyval_pair):
13770         * gui.c (make_gui_item_from_keywords_internal):
13771         * gui.c (gui_add_item_keywords_to_plist):
13772         * gui.c (gui_item_accelerator):
13773         * gui.c (gui_name_accelerator):
13774         * gui.c (gui_item_included_p):
13775         * gui.c (gui_item_display_flush_left):
13776         * gui.c (gui_item_display_flush_right):
13777         * gui.c (parse_gui_item_tree_item):
13778         * gui.c (parse_gui_item_tree_children):
13779         * gui.c (parse_gui_item_tree_list):
13780         Mule-ized.  Cleanup.  GCPRO addition.
13781
13782         * line-number.c (buffer_line_number):
13783         * lisp.h:
13784         * lisp.h (EMACS_INT_MAX):
13785         Added the manifest constant EMACS_INT_MIN corresponding to the
13786         existing constant EMACS_INT_MAX.  This is partially to fix compile
13787         warnings under Windows, and partly for cleanliness.
13788
13789         * menubar-msw.c:
13790         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13791         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13792         * menubar-msw.c (displayable_menu_item):
13793         * menubar-msw.c (populate_menu_add_item):
13794         * menubar-msw.c (populate_or_checksum_helper):
13795         * menubar-msw.c (populate_menu):
13796         * menubar-msw.c (update_frame_menubar_maybe):
13797         * menubar-msw.c (prune_menubar):
13798         * menubar-msw.c (msw_char_is_accelerator):
13799         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13800         * menubar-msw.c (mswindows_handle_wm_command):
13801         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13802         * menubar-msw.c (mswindows_handle_wm_initmenu):
13803         * menubar-msw.c (mswindows_update_frame_menubars):
13804         * menubar-msw.c (mswindows_free_frame_menubars):
13805         * menubar-msw.c (mswindows_popup_menu):
13806         Fixed a bug in handling accelerators where an extra character
13807         would be displayed in the menu item.  Also generalized the
13808         function displayable_menu_item because it is now used by the
13809         dialog box code as well.  And finally, added code in the functions
13810         that create the menubar to extract a list of accelerators for the
13811         top level menubar, which is used in the event code to determine
13812         whether a particular alt-key combination should be used to invoke
13813         a menu item, or should be passed through to access the standard
13814         XEmacs keymap binding for this key combination.
13815
13816         Much needed GCPROing.
13817
13818         * menubar-x.c:
13819         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13820         * menubar-x.c (menu_item_descriptor_to_widget_value):
13821         * menubar-x.c (restore_in_menu_callback):
13822         * menubar-x.c (x_popup_menu):
13823         * menubar-x.c (menu_move_up):
13824         * menubar-x.c (menu_move_down):
13825         * menubar-x.c (menu_move_left):
13826         * menubar-x.c (menu_move_right):
13827         * menubar-x.c (menu_select_item):
13828         * menubar-x.c (command_builder_operate_menu_accelerator):
13829         * menubar-x.c (menu_accelerator_junk_on_error):
13830         * menubar-x.c (command_builder_find_menu_accelerator):
13831         * menubar-x.c (Faccelerate_menu):
13832         * menubar.h:
13833         Moved a whole bunch of code here that was previously in
13834         event-stream.c as described above.  There is also code connected
13835         to the new standard of adding an accelerator to the beginning of
13836         menu items that don't have one as described above and below.
13837
13838         * menubar.c:
13839         * menubar.c (menu_parse_submenu_keywords):
13840         * menubar.c (Fmenu_find_real_submenu):
13841         * menubar.c (Fnormalize_menu_item_name):
13842         * menubar.c (syms_of_menubar):
13843         * menubar.c (vars_of_menubar):
13844         * menubar.c (complex_vars_of_menubar):
13845
13846         a) Cleaned up a bunch of documentation and improved it.
13847
13848         b) XEmacs now automatically adds an accelerator onto the beginning
13849         of any menu items that don't have one.  I did this because there
13850         will inevitably be some menu items on the main menubar that don't
13851         have accelerators on them because the package that adds that
13852         particular menu item hasn't yet been fixed up to have accelerators
13853         in them and it looked rather strange to have some items with and
13854         some items without accelerators, especially since even in items
13855         without accelerators, you can, at least under windows, still
13856         access the item through an accelerator corresponding to the first
13857         character in the item's name.  If people don't like this behavior,
13858         I can add a variable to turn it off optionally, but I'm not sure
13859         this is a good idea because we really do need to have accelerators
13860         on all of the menu items, and if a package doesn't like the
13861         accelerators being put on the first character, then it should put
13862         the accelerators where they belong.
13863
13864         c) I made a behavior change, which is that the descriptor that
13865         specifies the text of the menu item, which formerly was just a
13866         string, can now also be an evaluated expression.  This makes this
13867         descriptor parallel with all of the others, which could also be
13868         evaluated expressions.  This also obviates the need for the
13869         keyword :label, which was previously listed in the documentation
13870         as unimplemented, and which was for the same purpose.
13871
13872         d) GCPROing.
13873
13874         * ntproc.c:
13875         * ntproc.c (new_child):
13876         * ntproc.c (sys_spawnve):
13877         * ntproc.c (find_child_console):
13878         * ntproc.c (sys_kill):
13879         Fixed compile warnings.  By the way, this file should really go
13880         away entirely, and this will happen as soon as Kirill makes his
13881         final round of process cleanups, which affect the function
13882         call-process.
13883
13884         * process-nt.c:
13885         * process-nt.c (struct nt_process_data):
13886         * process-nt.c (find_process_from_pid):
13887         * process-nt.c (send_signal_the_nt_way):
13888         * process-nt.c (enable_child_signals):
13889         * process-nt.c (find_child_console):
13890         * process-nt.c (send_signal_the_95_way):
13891         * process-nt.c (nt_finalize_process_data):
13892         * process-nt.c (ensure_console_window_exists):
13893         * process-nt.c (nt_create_process):
13894         * process-nt.c (nt_kill_child_process):
13895         * process-nt.c (nt_kill_process_by_pid):
13896         * process-nt.c (nt_open_network_stream):
13897         * process-nt.c (vars_of_process_nt):
13898         Copied over code from Emacs 20.5 to correctly send signals to sub-
13899         processes under Windows 95.  Also added code to automatically
13900         create and hide console window when a sub-process is created under
13901         Windows 95, which obviates the need for the separate runemacs.exe
13902         executable, and finally implemented some variables that were
13903         implemented in Emacs 20.5, but previously not in XEmacs.  These
13904         include mswindows- start-process-share-console and
13905         mswindows-start-process-inherit-error-mode. (Both of these only
13906         apply to Windows 95.)
13907
13908         * regex.c (regex_compile): Fixed a compile warning.
13909
13910         * select-msw.c:
13911         * select-msw.c (mswindows_own_selection):
13912         * select-msw.c (mswindows_get_foreign_selection):
13913         * select-msw.c (mswindows_disown_selection):
13914         * select-msw.c (console_type_create_select_mswindows):
13915         * select-msw.c (syms_of_select_mswindows):
13916         Cleaned up the file and implemented the device method
13917         selection_exists_p, which had accidentally been left out.  Also
13918         removed four lisp functions that were remnants from before the
13919         time when the selection code was properly device abstracted.
13920         These functions are no longer needed because there are generic
13921         equivalents, and because they were added recently and don't exist
13922         in FSF Emacs, I don't think there's any problem with just deleting
13923         them.
13924
13925         * sysdep.c:
13926         * sysdep.c (sys_subshell):
13927         Fixed a compile warning, although in this case there's probably
13928         something wrong with this code, and it ought to be looked into
13929         more thoroughly by somebody who understands it.
13930
13931         * window.c:
13932         * window.c (Fwindow_text_area_height):
13933         * window.c (Fwindow_width):
13934         * window.c (Fwindow_full_width):
13935         * window.c (Fwindow_pixel_width):
13936         * window.c (debug_print_window):
13937         * window.c (syms_of_window):
13938         Added functions window-text-area-height and window-full-width,
13939         which are functions for returning various width and height
13940         characteristics of a window. (One of these functions is necessary
13941         for making the file dialog box work correctly, and the other one
13942         was added for completeness.)  Also added a table to the
13943         documentation for window-height which describes the entire scheme
13944         for accessing width and height characteristics of a window.
13945
13946 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13947
13948         * nt.c (fstat): Added a comment for another problem with
13949         non-encapsulated [f]stat(), reported by Adrian Aichner
13950         <aichner@ecf.teradyne.com>.
13951
13952 2000-03-11  Andy Piper  <andy@xemacs.org>
13953
13954         * window.c (make_dummy_parent): initialize subwindow instance
13955         cache.
13956         (Fset_window_configuration): zero extent_modiff.
13957
13958 2000-03-10  Andy Piper  <andy@xemacs.org>
13959
13960         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13961         more changes can be triggered.
13962         (Fredisplay_frame): ditto.
13963         (Fredraw_device): ditto.
13964         (Fredisplay_device): ditto.
13965         (redisplay_frame): make non-static.
13966         (redisplay_frame): call update_frame_gutter_geometry outside of
13967         display proper.
13968
13969         * gutter.h: declare update_frame_gutter_geometry.
13970
13971         * redisplay.h: declare redisplay_frame.
13972
13973         * gutter.c (update_frame_gutter_geometry): move geometry changes
13974         in update_frame_gutters here. Geometry changes can only occur
13975         outside of redisplay.
13976         (update_frame_gutters): remove geometry change code.
13977         (Fredisplay_gutter_area): make sure that we are in display when we
13978         update and that we have flushed any size changes.
13979
13980 2000-03-11  Andy Piper  <andy@xemacs.org>
13981
13982         * alloc.c (pdump_dump_data): remove i & count shadows.
13983
13984 2000-02-27  Mike Alexander  <mta@arbortext.com>
13985
13986         * sysdep.h: Declare pdump_read_file
13987
13988         * sysdep.c (pdump_read_file): New function
13989
13990         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13991         dump data
13992
13993 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13994
13995         * lrecord.h: add `lrecord_type_pgsetenv'.
13996
13997 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13998
13999         * symsinit.h: declare (vars|syms)_of* functions.
14000         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14001
14002 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14003
14004         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14005
14006         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14007         GCCs.
14008
14009         * emacs.c (main_1): Call postgres initialization code.
14010
14011         * postgresql.h: New file.  PostgreSQL RDBMS support.
14012         * postgresql.c: New file.
14013
14014 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14015
14016         * redisplay-output.c (redisplay_output_display_block): Disable
14017         redundant code.
14018
14019 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14020
14021         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14022         (Fcanna_henkan_next): Ditto.
14023         (Fcanna_bunsetu_henkou): Ditto.
14024         (Fcanna_henkan_kakutei): Ditto.
14025         (Fcanna_henkan_end): Ditto.
14026         (Fcanna_henkan_quit): Ditto.
14027         (Fcanna_henkan_next): Set retun value correctly.
14028         (c2mu): Use unsigned char instead of signed char.
14029
14030 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14031
14032         * emacs.c (main_1): Always call syms_of_gui.
14033         * inline.c: include gui.h
14034
14035 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14036
14037         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14038         converted to Lisp_Object.
14039         (Qtop_bottom): New variable.
14040         (syms_of_redisplay): Initialize it.
14041         * redisplay.h (Vvisible_bell): Ditto.
14042         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14043         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14044         only flash top and bottom.
14045
14046 2000-03-08  Andy Piper  <andy@xemacs.org>
14047
14048         * buffer.c (Frename_buffer): record new buffer name the right way.
14049
14050 2000-03-08  Andy Piper  <andy@xemacs.org>
14051
14052         * glyphs.c (update_subwindow): increase hash depth so that widget
14053         items get picked up properly.
14054
14055         * redisplay-output.c (compare_runes): increase hash depth so that
14056         widget items get picked up properly.
14057
14058 2000-03-08  Andy Piper  <andy@xemacs.org>
14059
14060         * gutter.c (output_gutter): add some debug.
14061
14062         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14063         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14064         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14065
14066         * redisplay-output.c (compare_runes): use display_hash to
14067         determine if glyphs really are not the same.
14068
14069         * glyphs.c (update_subwindow): check display_hash to see if
14070         anything really needs to be updated. If not then do
14071         nothing. Record the display_hash after updating.
14072         (image_instance_equal): compare the image_instance face also.
14073
14074 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14075
14076         * redisplay.h: Fix comment style.
14077
14078 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14079
14080         * consle-msw.h (struct mswindows_frame):
14081         Added new member paint_pending to indicate whether a WM_PAINT
14082         magic event has been queued for this frame.
14083
14084         * event-msw.c (mswindows_drain_windows_queue):
14085         Don't queue a WM_PAINT magic event if one is already queued.
14086         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14087
14088         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14089
14090 2000-03-07  Didier Verna  <didier@xemacs.org>
14091
14092         * dired.c: #include `regex.h' after `sysfile.h'.
14093
14094 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14095
14096         * sound.c (init_nas_sound): Fix compiler warning.
14097
14098         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14099         (FREE_STRUCT_P):
14100         (MARK_STRUCT_AS_FREE):
14101         (MARK_STRUCT_AS_NOT_FREE):
14102         Make `gcc -fstrict-aliasing' work properly.
14103
14104 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14105
14106         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14107         (mswindows_delete_device): Call CoUnnitialize().
14108
14109         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14110
14111 2000-02-25    <CraigL@DyCon.com>
14112
14113         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14114         <errno.h>.
14115
14116         * sysdep.c: This extern declaration for environ prevents MinGW
14117         from finding the variable in CRTDLL.DLL.
14118
14119         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14120         windows headers.
14121         (SHGFI_EXETYPE): ..
14122         (WM_MOUSEWHEEL): ..
14123         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14124         definitions.
14125         (MMRESULT): Removed, now defined in cygwin's windows headers.
14126         (TIMECAPS): ..
14127         (uid_t,gid_t,pid_t,ssize_t): ..
14128         (_timeb): Removed, MinGW defines both _timeb and timeb.
14129         (HAVE_H_ERRNO): Added.
14130         (HAVE_TZNAME): Added, configure is not detecting this.
14131
14132 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14133
14134         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14135         * syntax.c (syntax_match): Use it.
14136
14137         * cmds.c: Import auto-fill-chars from FSF Emacs.
14138         (Vauto_fill_chars): New variables.
14139         (internal_self_insert): Check Vauto_fill_chars.
14140         (vars_of_cmds):
14141         Declare auto-fill-chars as a Lisp variable and initialize it.
14142
14143 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14144
14145         * fileio.c (Fmake_symbolic_link):
14146         (Ffile_symlink_p):
14147         Run handlers even if local machine doesn't have symlinks.
14148
14149 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14150
14151         * event-msw.c (mswindows_drain_windows_queue):
14152         Don't generate paint magic events for non-XEmacs frames.
14153
14154 2000-03-05  Andy Piper  <andy@xemacs.org>
14155
14156         * redisplay.c (redisplay_frame): generate_displayable_area and
14157         friends assumes that we are not in GC, we therefore have to make
14158         sure that this doesn't happen.
14159
14160         * gutter.c (calculate_gutter_size): generate_displayable_area
14161         assumes that we are not in GC, we therefore have to make sure that
14162         this doesn't happen.
14163
14164 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14165
14166         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14167
14168 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14169
14170         * redisplay.c (regenerate_window): Make sure we set a sane value
14171         for end_pos even if we jump out of the loop.
14172         (regenerate_window): Answer Ben's question :-).
14173         (start_end_of_last_line): Add may_error argument.
14174         (start_of_last_line):
14175         (end_of_last_line): Pass may_error = 0.
14176         (end_of_last_line_may_error): New function.
14177         (pixel_to_glyph_translation): Use it, so we don't crash in
14178         event_to_glyph.
14179
14180 2000-03-04  Andy Piper  <andy@xemacs.org>
14181
14182         * window.h (struct window): add gutter_extent_modiff.
14183
14184         * window.c (allocate_window): zero out gutter_extent_modiff.
14185
14186         * redisplay.h: declare sync_display_line_structs.
14187
14188         * redisplay.c (add_glyph_rune): add a better comment.
14189
14190         * redisplay-output.c (sync_display_line_structs): made non-static.
14191         (compare_runes): remove unneccesary glyph cachel access.
14192
14193         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14194
14195         * gutter.c (output_gutter): don't output the gutter if extent
14196         changes only involve extents in buffers. use 4 sets of display
14197         lines.
14198         (gutter_extent_signal_changed_region_maybe): new function. Mark
14199         extents in gutters as changed.
14200         (update_frame_gutters): use 4 sets of display lines.
14201         (reset_gutter_display_lines): ditto.
14202         (free_frame_gutters): ditto.
14203         (redraw_exposed_gutter): force output of gutters.
14204
14205         * frame.h (struct frame): add 4 sets of gutter display lines.
14206
14207         * extents.c: (extent_changed_for_redisplay): signal changes to
14208         extents in strings in the gutter as well as extents in buffers.
14209
14210 2000-03-02  Andy Piper  <andy@xemacs.org>
14211
14212         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14213
14214         * frame.c (Fmake_frame): make sure the gutters get initialized
14215         after the frame is visible.
14216         (set_frame_selected_window): re-arrange compilation macros a
14217         little.
14218         (change_frame_size_1): mark gutters changed.
14219
14220         * device.c (Fset_device_class): mark gutters changed.
14221
14222 2000-03-01  Andy Piper  <andy@xemacs.org>
14223
14224         * window.c (window_top_frame_gutter_height): deleted.
14225         (window_bottom_frame_gutter_height): ditto.
14226         (window_left_frame_gutter_height): ditto.
14227         (window_right_frame_gutter_height): ditto.
14228         (window_top_gutter_height): don't use them.
14229         (window_bottom_gutter_height): ditto.
14230         (window_left_gutter_width): ditto.
14231         (window_right_gutter_width): ditto.
14232         (Fsplit_window): ditto.
14233         (Fwindow_pixel_edges): don't use border dimensions here.
14234
14235         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14236         (update_scrollbar_instance): ditto.
14237
14238         * redisplay.c (generate_modeline): don't take gutters into account.
14239         (generate_modeline): ditto.
14240         (redisplay_frame): small gutter display optimization.
14241
14242         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14243
14244         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14245         gutters into account.
14246
14247         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14248         for window position and type.
14249
14250         * gutter.c (get_gutter_coords): fix for frame gutters.
14251         (update_frame_gutters): update frame geometry if the gutters have
14252         changed.
14253         (init_frame_gutters): record current gutter geometries.
14254
14255         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14256         var.
14257         (mswindows_widget_instantiate): ditto.
14258
14259         * frame.h (struct frame): add current_gutter_bounds.
14260
14261         * frame.c (change_frame_size_1): position window and minibuffer
14262         appropriately taking into account the frame gutters.
14263
14264         * frame-x.c: (x_initialize_frame_size): take into account the
14265         frame gutters.
14266
14267 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14268
14269         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14270
14271 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14272
14273         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14274
14275 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14276
14277         * file-coding.c (reset_decoding_stream): Clear previous
14278         detection state when autodetect.
14279
14280 2000-02-29  Didier Verna  <didier@xemacs.org>
14281
14282         * extents.c (set_extent_glyph_1): don't require extents to be
14283         attached.
14284
14285 2000-02-27  Andy Piper  <andy@xemacs.org>
14286
14287         * gutter.c (Fset_default_gutter_position): don't default left and
14288         right gutter visibility to t.
14289         (Fset_default_gutter_position): run
14290         default-gutter-position-changed-hook.
14291         (syms_of_gutter): add default-gutter-position-changed-hook.
14292
14293 2000-02-26  Andy Piper  <andy@xemacs.org>
14294
14295         * specifier.c (Fmake_specifier): add gutter references.
14296
14297         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14298
14299         * lisp.h: declare Fvalid_plist_p.
14300
14301         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14302         as changed.
14303         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14304         well as its visibility so that it gets reconstructed.
14305         (construct_window_gutter_spec): new function. Construct a string
14306         to be displayed in the gutter from a plist of strings. Take care
14307         to only use elements that are declared as visible.
14308         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14309         WINDOW_GUTTER.
14310         (gutter_validate): allow plists of strings in the specifier.
14311         (gutter_specs_changed): construct the real_gutter from the gutter
14312         specs using construct_window_gutter_spec.
14313         (gutter_visible_validate): gutter-visible is a new specifier type.
14314         (Fgutter_visible_specifier_p): new function for the new specifier.
14315         (syms_of_gutter): declare gutter-visible and
14316         Fgutter_visible_specifier_p.
14317         (specifier_type_create_gutter): intitalize new gutter-visible
14318         specifier.
14319         (reinit_specifier_type_create_gutter): ditto.
14320         (specifier_vars_of_gutter): use new specifier type for gutter
14321         visibility.
14322         (init_frame_gutters): construct real_gutter correctly.
14323         (Fgutter_specifier_p): beef up documentation.
14324         (Fgutter_size_specifier_p): ditto.
14325
14326         * winslots.h: add real_gutter slots.
14327
14328 2000-02-25  Andy Piper  <andy@xemacs.org>
14329
14330         * device-msw.c: Be kind to older cygwin versions. From Raymond
14331         Toy <toy@rtp.ericsson.se>.
14332
14333         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14334         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14335
14336 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14337
14338         * elhash.c (MARK_OBJ): Practice macro hygiene.
14339
14340 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14341
14342         * miscplay.c: s/__inline__/inline/g;
14343         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14344         (get_device_compdc): INLINE ==> static inline
14345         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14346         find -name '*.h' | \
14347         xargs global-replace \
14348         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14349
14350 2000-02-25  Andy Piper  <andy@xemacs.org>
14351
14352         * window.c (window_top_frame_gutter_height): new function.
14353         (window_top_window_gutter_height): ditto.
14354         (window_top_gutter_height): use them.
14355         (window_bottom_frame_gutter_height): new function.
14356         (window_bottom_window_gutter_height): ditto.
14357         (window_bottom_gutter_height): use them.
14358         (window_left_window_gutter_width): new function.
14359         (window_left_frame_gutter_width): ditto.
14360         (window_left_gutter_width): use them.
14361         (window_right_window_gutter_width): new function.
14362         (window_right_frame_gutter_width): ditto.
14363         (window_right_gutter_width): use them.
14364         (window_pixel_height): new function. calulate window pixel height
14365         with frame gutter involvement.
14366         (Fsplit_window): calculate new sizes taking frame gutters into
14367         account.
14368         (window_char_height_to_pixel_height): don't include frame gutters.
14369         (window_char_height): use window_pixel_height.
14370         (window_pixheight): rename from window_pixel_height.
14371         (change_window_height): use it.
14372         (window_pixel_height_to_char_height): don't include frame gutters.
14373         (window_char_width_to_pixel_width): ditto.
14374
14375 2000-02-25  Andy Piper  <andy@xemacs.org>
14376
14377         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14378         if it is.
14379
14380 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14381
14382         * alloc.c (staticpro):
14383         (staticpro_nodump):
14384         (dumpstruct):
14385         (dumpopaque):
14386         (pdump_wire):
14387         (pdump_wire_list):
14388         (compact_string_chars):
14389         (pdump_dump_wired):
14390         Convert:  if (foo) abort();  ==>  assert (! foo);
14391
14392         * eldap.c (Fldap_search_basic):
14393         (Fldap_add):
14394         (Fldap_modify):
14395         (Fldap_delete):
14396         Fix compiler warnings, and possible crashes if (random) return
14397         value were to be used.
14398
14399 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14400
14401         * device-msw.c: Workaround ResetDC failure.
14402
14403         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14404         applying a devmode.
14405
14406         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14407         (mswindows_text_width): Do not start printer page.
14408
14409         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14410
14411         * glyphs-msw.c: Added image methods to msprinter console and
14412         msprinter-specific image instantiation.
14413
14414 2000-02-20  Mike Alexander  <mta@arbortext.com>
14415
14416         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14417         to avoid crashes when selection-sets-clipboard is on
14418         (mswindows_own_selection): ditto
14419
14420 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14421
14422         * glyphs-msw.c:
14423         * redisplay-msw.c (get_frame_dc):
14424         (get_frame_compdc):
14425         * console-msw.h:
14426         * device-msw.c (mswindows_init_device):
14427         (mswindows_delete_device):
14428         (msprinter_init_device):
14429         (msprinter_delete_device):
14430         * frame-msw.c (mswindows_init_frame_1):
14431         (mswindows_delete_frame):
14432         (msprinter_init_frame_3):
14433         (msprinter_delete_frame): Move compatible DC to device object from
14434         frame object, for both mswindows and msprinter. Only one at a time
14435         is needed, it is a real waste to have one per frame!
14436
14437 2000-02-23  Andy Piper  <andy@xemacs.org>
14438
14439         * glyphs.c: add dynamic width and height elements.
14440         (image_instance_equal): ditto.
14441
14442         * glyphs-widget.c (widget_query_geometry): calculate width and
14443         height dynamically if required.
14444         (initialize_widget_image_instance): initialize dynamic dimensions.
14445         (widget_instantiate): pick-up dynamic dimensions.
14446
14447         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14448         dynamic determination. Add appropriate macros.
14449
14450         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14451         dimensions safe.
14452         (WINDOW_GUTTER_SIZE): ditto.
14453         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14454
14455         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14456         inline.
14457         (get_frame_dc): ditto.
14458
14459         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14460         here.
14461
14462 2000-02-23  Martin Buchholz <martin@xemacs.org>
14463
14464         * XEmacs 21.2.31 is released.
14465
14466 2000-02-22  Ben Wing <ben@xemacs.org>
14467
14468         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14469
14470 2000-02-22  Andy Piper  <andy@xemacs.org>
14471
14472         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14473
14474 2000-02-21  Mike Sperber <mike@xemacs.org>
14475
14476         * .dbxrc:
14477         * .gdbinit:
14478         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14479         variables.
14480
14481 2000-02-21  Mike Sperber <mike@xemacs.org>
14482
14483         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14484
14485 2000-02-21  Martin Buchholz <martin@xemacs.org>
14486
14487         * XEmacs 21.2.30 is released.
14488
14489 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14490
14491         Performance hacking.
14492         * *.c (syms_of_*):
14493         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14494         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14495         * emacs.c (main_1):
14496         * lisp.h (DEFUN):
14497         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14498         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14499         * symeval.h (DEFVAR_SYMVAL_FWD):
14500         * symbols.c (guts_of_unbound_marker):
14501         Make all c_readonly objects also lisp_readonly and marked for life.
14502         * lrecord.h (struct lrecord_implementation):
14503         Document flags better.
14504         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14505         * lrecord.h (DECLARE_LRECORD):
14506         * lrecord.h (XSETRECORD):
14507         * lrecord.h (RECORDP):
14508         * lrecord.h (RECORD_TYPEP):
14509         * lrecord.h (RECORD_MARKER): New.
14510         * lrecord.h (error_check_*):
14511         * lrecord.h (CONCHECK_NONRECORD):
14512         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14513         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14514         * lrecord.h (set_lheader_implementation):
14515         * lrecord.h (enum lrecord_type): New.
14516         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14517         * alloc.c (disksave_object_finalization_1):
14518         * alloc.c (mark_object):
14519         * alloc.c (lrecord_type_index):
14520         * alloc.c (tick_lcrecord_stats):
14521         * alloc.c (Fgarbage_collect):
14522         * alloc.c (init_alloc_once_early):
14523         * alloc.c (pdump_load):
14524         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14525         * alloc.c (lrecord_type_index): Delete.
14526         Make lisp object type indexes be constant.
14527           Makes (byte-compile) 5% faster.
14528         Put all marker functions into their own array.
14529           Makes (garbage-collect) 5% faster.
14530         Optimize SYMBOL_VALUE_MAGIC_P.
14531           Makes (byte-compile) 2-3% faster.
14532         * config.h.in (gc_checking_assert): New.
14533         * alloc.c: Use gc_checking_assert().
14534         * .dbxrc: Make compatible with new object type implementation.
14535         * .gdbinit: Make compatible with new object type implementation.
14536         * alloc.c: Delete all symbols defined only for debugging, such as
14537         Lisp_Type_Vector and lrecord_charset.
14538
14539 2000-02-21  Andy Piper  <andy@xemacs.org>
14540
14541         * gui-msw.c (Fmswindows_shell_execute): fix file location
14542         problems.
14543
14544         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14545         unshowing so that set_window_buffer doesn't undo
14546         kill_buffer_hook's hard work.
14547
14548         * glyphs-widget.c (tab_control_query_geometry): don't count the
14549         first item when calculating geometry.
14550
14551         * glyphs.c (map_subwindow): remove redundant code.
14552         (update_frame_subwindows): be more circumspect about when to
14553         update subwindows.
14554
14555         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14556         when items haven't changed. Update faces if faces have changed as
14557         well as just the widget face.
14558         (x_tab_control_update): Update faces if faces have changed as well
14559         as just the widget face.
14560
14561 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14562
14563         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14564         registration.
14565         (build_syscolor_string): Use mswindows_color_to_string to try to
14566         get a named color.
14567         (mswindows_device_system_metrics): Reverse the foreground and
14568         background colors so that they match the documentation.
14569
14570         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14571         they match the default Windows palette.
14572         (mswindows_color_to_string): New function.
14573
14574 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14575
14576         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14577
14578 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14579
14580         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14581         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14582
14583         * symbols.c (init_symbols_once_early): Removed obsolete
14584         DATA_SEG_BITS related kludge.
14585         (defvar_magic): Ditto.
14586
14587         * malloc.c: Removed obsolete DATA_SEG_BITS
14588         * ralloc.c: Ditto.
14589         * mem-limits.h: Ditto.
14590
14591         * Makefile.in.in: Removed obsolete HAVE_SHM
14592         * emacs.c: Ditto.
14593
14594 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14595
14596         *  device-msw.c (mswindows_delete_device): Free DDE string
14597         handles.
14598
14599 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14600
14601         * keymap.c (get_keyelt):
14602         * unexnt.c (unexec):
14603         * vm-limit.c (memory_warnings):
14604         * ntheap.c (recreate_heap):
14605         * ntheap.h (UNINIT_PTR):
14606         * select-msw.c (Fmswindows_get_clipboard):
14607         (Fmswindows_set_clipboard):
14608         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14609         * objects-msw.c:
14610         * menubar-msw.c (displayable_menu_item):
14611         * glyphs-msw.c:
14612         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14613         * sysdep.c (sys_subshell):
14614         * process-nt.c (nt_create_process):
14615         * nt.c (normalize_filename):
14616         (dostounix_filename):
14617         (unixtodos_filename):
14618         * ntproc.c (win32_executable_type):
14619         * ntplay.c (play_sound_data_1):
14620         (play_sound_file):
14621         * editfns.c (get_home_directory):
14622         * event-msw.c (struct winsock_stream):
14623         (mswindows_dde_callback):
14624         * device-msw.c (msprinter_init_device):
14625         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14626
14627         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14628         mswindows_clear_toolbar were swapped!
14629
14630         * objects-msw.c:(colormap_t):
14631         (fontmap_t):
14632         * emacs.c (struct standard_args): Fixed const jumble.
14633
14634         * glyphs-widget.c (update_widget): Fixed comparison notation.
14635
14636         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14637
14638         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14639         __declspec(noreturn) syntax.
14640
14641 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14642
14643         * eldap.c (Fldap_open):
14644         (Fldap_search_basic):
14645         (Fldap_add):
14646         (Fldap_modify):
14647         Use new coding system conversion macros.
14648
14649 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14650
14651         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14652
14653 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14654
14655         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14656         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14657
14658         * eldap.c (Qadd, Qreplace): New constant symbols
14659         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14660         interruptions by XEmacs signals
14661         Remove unnecessary calls to slow_down_interrupts and
14662         speed_up_interrupts
14663         (Fldap_search_basic): Renamed from Fldap_search_internal
14664         Added new optional parameter VERBOSE that triggers the
14665         display of progress messages
14666         Remove unnecessary calls to slow_down_interrupts and
14667         speed_up_interrupts
14668         LDAP result code analysis rewritten
14669         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14670         (syms_of_eldap): Define the new symbols and functions
14671
14672
14673 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14674
14675         * realpath.c: Determine PATH_MAX maximally portably.
14676
14677         * insdel.c (bytecount_to_charcount): Optimize.
14678         The function used to be optimized for entirely ASCII sequences.
14679         Now it is optimized for successive characters from the same
14680         charset.  This also wins big for _mostly_ ASCII sequences.
14681
14682         * fileio.c (Ffile_truename): convert return from realpath() using
14683         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14684         - Rewrite GCPROing slightly.
14685
14686         * sysdep.c (sys_open): Do filename conversion, like all other
14687         sys_* functions.  Fixes bug:
14688         (let ((file-name-coding-system 'iso-8859-2))
14689            (write-region x y latin2-name))
14690         ==> writes filename using internal encoding.
14691
14692 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14693
14694         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14695         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14696         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14697         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14698         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14699         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14700         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14701         (CONST_IF_NOT_DEBUG): Delete.
14702         * alloc.c (this_one_is_unmarkable): Delete.
14703         (mark_object): Don't check for this_one_is_unmarkable. Use the
14704         c_readonly flag instead.
14705         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14706
14707 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14708
14709         * event-msw.c (mswindows_drain_windows_queue):
14710         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14711         away redundant repaint events.
14712
14713 2000-02-17  Andy Piper  <andy@xemacs.org>
14714
14715         * redisplay.h: declare mark_redisplay_structs.
14716
14717         * redisplay.c (redisplay_window):
14718         (redisplay_frame): don't check subwindows_state_changed.
14719         (mark_redisplay): mark gutters here.
14720
14721         * glyphs.c: (instantiate_image_instantiator): always layout if we
14722         haven't done so already.
14723         (allocate_image_instance): don't mark as dirty.
14724         (update_subwindow): bind inhibit_quit.
14725
14726         * gutter.c (mark_gutters): new function.
14727
14728         * glyphs-x.c (x_update_widget): Always resize to get round a
14729         widget bug.
14730
14731         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14732         breaking absolutely everything.
14733
14734         * gutter.h: declare mark_gutters.
14735
14736 2000-02-16  Martin Buchholz <martin@xemacs.org>
14737
14738         * XEmacs 21.2.29 is released.
14739
14740 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14741
14742         * fns.c (size_bit_vector): Fix computation of the size.
14743
14744 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14745
14746         * *.[ch]: Change CONST to const globally.
14747         find -name '*.[ch]' | \
14748         xargs global-replace \
14749         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14750         - Remove vestigial references to CONST_IS_LOSING
14751
14752 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14753
14754         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14755         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14756         events instead of dispatching them directly.
14757         (mswindows_handle_paint): New function to do repainting.
14758         (mswindows_wnd_proc):
14759         (emacs_mswindows_handle_magic_event): Call above function.
14760
14761 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14762
14763         * objects-msw.c (mswindows_create_font_variant): Return the new
14764         font handle.
14765         (initialize_font_instance): Get font metrics from the underlined
14766         variant of the font to cope with the case where the underlined
14767         font has a bigger descent.
14768
14769 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14770
14771         * gui.c (gui_item_accelerator): Return the first underlined
14772         character in item name.
14773
14774 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14775
14776         * lisp.h: Added Qprinter.
14777
14778         * general.c (syms_of_general): Initialized it.
14779
14780         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14781         (get_frame_dc):
14782         (get_frame_compdc): Made inline.
14783
14784         * console.h (struct console_methods): Added eject_page method.
14785
14786         * frame.h: Added FRAME_DISPLAY_P and friends.
14787         Aligned backslahes in many macros in more readable fashion.
14788         Added page_number to struct frame, and an accessor macro
14789         for it.
14790
14791         * defice.h: Added DEVICE_DISPLAY_P and friends.
14792
14793         * device.c (Fdevice_printer_p): Used these.
14794
14795         * frame.c (allocate_frame_core): Initialize page number.
14796         (Fprint_job_page_number):
14797         (Fprint_job_eject_page): Implemented.
14798
14799         * frame-msw.c (msprinter_eject_page): Added method.
14800         (msprinter_start_page): Added.
14801
14802         * window.c (Fwindow_truncated_p): Fixed docstring.
14803         (Fwindow_last_line_visible_height): Implemented.
14804
14805 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14806
14807         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14808
14809 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14810
14811         * syntax.c (scan_words): Always advance at least one character.
14812
14813 2000-02-13  Andy Piper  <andy@xemacs.org>
14814
14815         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14816         to make sure the glyph is in the cachels.
14817
14818         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14819         global image instance flag.
14820         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14821         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14822
14823         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14824         (Fset_image_instance_property): mark layout as changed.
14825         (invalidate_glyph_geometry_maybe): mark layout as changed.
14826         (glyph_width): use new NEEDS_LAYOUT macro.
14827         (glyph_ascent): ditto.
14828         (glyph_descent): ditto.
14829         (glyph_height): ditto.
14830         (image_instance_layout): mark layout as clean after laying out.
14831         (update_subwindow): don't mark layout as clean here.
14832
14833         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14834         should no longer be needed.
14835
14836         * glyphs-x.c (x_update_widget): sanitize asserts.
14837         (x_finalize_image_instance): sanitize assignment to widgets.
14838
14839         * glyphs-widget.c (widget_instantiate): don't need to clear the
14840         layout flag here.
14841
14842 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14843
14844         * sysdep.c (getcwd): Use standard prototype.
14845         * sysdep.h (getcwd): Use standard prototype.
14846
14847         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14848         (sequence, start, end).
14849         Remove redundant type checking.
14850         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14851         view of `caller-protects') to avoid a crash where the real fix was
14852         found elsewhere.
14853
14854 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14855
14856         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14857
14858         * s/sol2.h: Remove feature macro initialization.
14859
14860         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14861         (vector_hash): New.  Code from internal_hash.
14862         * lrecord.h:
14863         Fix up allocation subsystem comments.
14864
14865         * config.h.in: Add __EXTENSIONS__ for Solaris.
14866
14867         * systime.h (EMACS_GETTIMEOFDAY): New.
14868         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14869         Remove Solaris-specific code.
14870         Use void* for the (ignored) second arg for gettimeofday().
14871
14872         * elhash.c (hash_table_hash): Implement it, finally.
14873         * elhash.c:  Use hashcode_t.
14874
14875         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14876         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14877
14878         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14879         * fns.c (size_bit_vector):
14880         * alloc.c (size_vector):
14881         (make_vector_internal):
14882         (make_bit_vector_internal):
14883         (sweep_bit_vectors_1):
14884         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14885
14886 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14887
14888         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14889         Include strings.h to avoid warnings for bzero and strcasecmp.
14890
14891 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14892
14893         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14894         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14895
14896         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14897         sequence.
14898
14899 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14900
14901         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14902         use a value field instead.
14903         (symbol_value_forward_forward): Use value field.
14904         (DEFVAR_SYMVAL_FWD): Use value field.
14905         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14906         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14907         (DEFVAR_CONST_INT): Ditto.
14908         (DEFVAR_BOOL): Ditto.
14909         (DEFVAR_CONST_BOOL): Ditto.
14910         (DEFVAR_INT_MAGIC): Ditto.
14911         (DEFVAR_BOOL_MAGIC): Ditto.
14912
14913         * symbols.c (guts_of_unbound_marker): Use value field.
14914         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14915         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14916
14917         * lisp.h: Declare dumpopaque and noninteractive1.
14918
14919         * alloc.c (dumpopaque): Added.
14920         (pdump_dump_opaquevec): Added.
14921         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14922         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14923         noninteractive.
14924
14925 2000-02-10  Andy Piper  <andy@xemacs.org>
14926
14927         * glyphs.c (image_instance_layout): if the size changes, mark it
14928         as such.
14929
14930         * redisplay-output.c (redisplay_output_layout): Update the
14931         subwindow here.
14932         (redisplay_output_subwindow): ditto.
14933
14934         * glyphs.c (update_subwindow): make sure we reset flags for
14935         layouts as well as everything else.
14936
14937         * glyphs-widget.c (layout_layout): don't need to set the instances
14938         dimensions here.
14939
14940 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14941
14942         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14943         not HAVE_DLOPEN, which is a lower-level thing.
14944
14945         * .cvsignore: Ignore gmon.out
14946
14947 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14948
14949         * .cvsignore: Ignore portable dumper xemacs.dmp file
14950
14951 2000-02-09  Andy Piper  <andy@xemacs.org>
14952
14953         * redisplay-output.c (redisplay_output_layout): be more clever
14954         about when we output based on the changed flags.
14955
14956         * glyphs.h (struct image_instantiator_methods): add update_method.
14957         (struct Lisp_Image_Instance): add changed flags. Declare new
14958         macros for manipulating them.
14959
14960         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14961         (image_instance_parent_glyph): find an image_instance's parent
14962         glyph or image_instance.
14963         (image_instance_layout): mark the size as changed.
14964         (set_image_instance_dirty_p): new function. mark an image
14965         instance, plus all of its parents, as dirty.
14966         (Fset_image_instance_property): use it.
14967         (Fglyph_animated_timeout_handler): use it.
14968         (update_subwindow): call update_widget and device methods for
14969         update_subwindow. Mark all changed flags as clean.
14970         (Fresize_subwindow): mark size as changed.
14971
14972         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14973         failures.
14974         (x_update_subwindow): only resize subwindows here.
14975         (x_update_widget): new function. Update all changed properties of
14976         a widget.
14977         (x_resize_subwindow): deleted.
14978         (x_widget_set_property): deleted.
14979         (x_progress_gauge_set_property): deleted.
14980         (x_progress_gauge_update): new function. Implement recorded
14981         changes.
14982         (x_tab_control_update): ditto.
14983         (x_tab_control_set_property): deleted.
14984         (console_type_create_glyphs_x): declare new functions.
14985         (image_instantiator_format_create_glyphs_x): ditto.
14986
14987         * glyphs-widget.c (widget_set_property): mark text changed.
14988         (update_widget): new function. Update properties of a widget.
14989         (widget_instantiate): for layouts make sure we set their
14990         children's parent correctly.
14991         (tab_control_set_property): new function. Record changes that will
14992         take place under redisplay's control.
14993         (progress_gauge_set_property): ditto.
14994         (image_instantiator_progress_guage): declare new functions.
14995         (image_instantiator_tab_control): ditto.
14996
14997         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14998         now.
14999         (mswindows_update_widget): new function. Update all properties on
15000         a widget that have changed.
15001         (mswindows_button_update): new function. Update a button's set
15002         state.
15003         (mswindows_tab_control_update): new function. Update the items in
15004         a tab.
15005         (mswindows_tab_control_set_property): deleted.
15006         (mswindows_progress_gauge_update): new function. Update the
15007         progress gauge's progress.
15008         (mswindows_widget_set_property): deleted. This is all done
15009         asynchronously now.
15010         (mswindows_progress_gauge_set_property): ditto.
15011         (console_type_create_glyphs_mswindows): declare new methods.
15012         (image_instantiator_format_create_glyphs_mswindows): ditto.
15013
15014         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15015         (msprinter_set_frame_properties): ditto.
15016
15017         * console.h (struct console_methods): Add update_widget_method.
15018
15019 2000-02-09  Andy Piper  <andy@xemacs.org>
15020
15021         * gui-msw.c (Fmswindows_shell_execute): Make
15022         mswindows-shell-execute industrial strength.
15023
15024 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15025
15026         * lrecord.h: Make macro argument `props' match member function `plist'.
15027         * fns.c (Fget):
15028         * fns.c (Fput):
15029         * fns.c (Fremprop):
15030         * fns.c (Fobject_plist):
15031         * alloc.c:
15032         * symbols.c:
15033         Object property list frobbing cleanup.
15034         - Allow any lisp object (compared with `eq'), not just symbols, as
15035           keys in object plists.
15036         - Move symbol plist frobbing into symbols.c, where it belongs.
15037         - Move string plist frobbing into alloc.c, where it belongs.
15038         - Everything's an lrecord now, so no need to test for symbolp, etc.
15039         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15040
15041         * extents.c: Reorder code to remove declarations.
15042
15043         * frame.h (store_in_alist): Remove useless declaration.
15044
15045 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15046
15047         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15048         * config.h.in: Add HAVE_XCONVERTCASE.
15049
15050 2000-02-07  Andy Piper  <andy@xemacs.org>
15051
15052         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15053         it breaks many things.
15054
15055 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15056
15057         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15058         actually can start a common comment type.
15059         * src/syntax.h (SYNTAX_END_P): ditto for end.
15060
15061 2000-02-07  Martin Buchholz <martin@xemacs.org>
15062
15063         * XEmacs 21.2.28 is released.
15064
15065 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15066
15067         * event-Xt.c (x_keysym_to_character): New.
15068         (maybe_define_x_key_as_self_inserting_character): New.
15069         (x_has_keysym): New.
15070         Auto-define all keys on the keyboard as self-insert-key.
15071
15072 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15073
15074         * menubar.c (vars_of_menubar): A small code simplification.
15075
15076         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15077
15078         * ExternalShell.c:
15079         * ExternalClient.c:
15080         * EmacsShell-sub.c:
15081         * EmacsManager.c:
15082         * EmacsFrame.c:
15083         Use consistent style for specifying X resources.
15084
15085         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15086         This makes (dontusethis-set-symbol-value-handler) actually usable.
15087
15088         * lrecord.h (lrecord_decription_type):
15089         * alloc.c (pdump_register_sub):
15090         (pdump_dump_data):
15091         (pdump_reloc_one):
15092         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15093         Comply with XEmacs coding style.
15094         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15095         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15096
15097         * keymap.c (Faccessible_keymaps):
15098         Make (accessible-keymaps map "\C-h") do the Right Thing.
15099         Make (accessible-keymaps map []) do the Right Thing.
15100         Make (accessible-keymaps map "") do the Right Thing.
15101         (check_keymap_definition_loop): New function.
15102         (keymap_store_internal): Keep luser from shooting self in foot,
15103           via (define-key ctl-x-4-map "p" global-map).
15104         Remove fullness slot from struct Lisp_Keymap, since hash tables
15105         are now reliable.
15106         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15107
15108 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15109
15110         * redisplay.c (init_redisplay): Fix small memory leak.
15111         * elhash.h:
15112         * elhash.c (pdump_reorganize_hash_table):
15113         Rename from reorganize_hash_table. Change prototype.
15114         Reuse the original memory for hentries.  Save 100k.
15115         * alloc.c (PDUMP_READ): new macro.
15116         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15117         * alloc.c: No need to #ifndef before #undef.
15118
15119         * print.c: Allow debug_print() to print readably by modifying
15120         debug_print_readably.  Use consistent variable names.
15121
15122         * .dbxrc: Try to get things to work even if stopped in a function
15123         without source available by explicitly specifying source files.
15124 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15125
15126         * unexnt.c (_start): Removed bogus code which caused loading heap
15127         from differrent executable file.
15128         Removed bogus assignment to _fmode, which caused inconsistencies.
15129
15130 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15131
15132         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15133         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15134         Do not preliminary `#define signal sigset'.
15135
15136         * systime.h: Do not prototype environ on windows nt and cygwin,
15137         this conflicts with system header.
15138
15139         * syssignal.h: Use correct define for WINDOWSNT
15140
15141         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15142         with system header.
15143
15144         * sysdep.c (near start of file): Fixed commentary and rearranged
15145         ifdefs in readable order.
15146         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15147         (start_of_text):
15148         (end_of_text):
15149         (end_of_data): Do not compile in if using PDUMP.
15150
15151         * symsinit.h: Prototyped vars_of_nt().
15152
15153         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15154         (find_child_console): Use it.
15155         (sys_kill): Use it.
15156
15157         * ntheap.h: Do not extern os_subtype.
15158
15159         * ntheap.c (cache_system_info): Do not cache unneeded:
15160         nt_major_version, nt_minor_version and os_subtype.
15161         (recreate_heap): Do not compile in when PDUMPing.
15162
15163         * nt.c (geteuid and friends): Use the new varibale
15164         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15165         (init_user_info): Removed the above mentioned hackery.
15166         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15167         stat has been fixed in the C runtime.
15168         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15169
15170         * file-coding.c (struct file_coding_dump): Do not define
15171         ucs_to_mule_table in the struct if not MULE.
15172         (struct struct lrecord_description fcd_description_1): Do not dump
15173         the above.
15174
15175         * emacs.c (main_1): Call vars_of_nt().
15176         (right before Fdump_emacs_data): Don't need lastfile if using both
15177         portabe dumper and system malloc.
15178
15179         * alloc.c (Fmemory_limit): Conditionalized out.
15180         (pdump): Use OPEN_BINARY for the portable dump file.
15181         (pdump_load): Ditto.
15182
15183 2000-02-02  Mike Alexander  <mta@arbortext.com>
15184
15185         * nt.c (convert_time): Set tm_isdst before calling mktime and
15186         avoid calling it at all if the compiler supports 64 bit integers.
15187         Also initialize utc_base_ft before using it.
15188
15189 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15190
15191         * frame.c (change_frame_size_1): Take f->internal_border_width
15192         into consideration when calculating the width of the frame.
15193
15194 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15195
15196         * window.c (frame_min_height):
15197         (frame_size_valid_p):
15198         (frame_pixsize_valid_p): Added.
15199         (check_frame_size): Generalized.
15200
15201         * window.h: Prototyped the above.
15202
15203         * lisp.h:
15204         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15205         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15206         Deleted Vwin32_* and Vbinary_process_* unused variables.
15207
15208         * device-msw.c (msprinter_init_device): Do not get printer font
15209         list; Added DEVMODE functions.
15210
15211         * frame-msw.c: Added lots of printer code.
15212
15213         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15214         general.c.
15215
15216         * console-msw.h: Added more msprinter device private slots.
15217
15218 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15219
15220         * event-msw.c (key_needs_default_processing_p): Added.
15221         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15222
15223 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15224
15225         * glyphs.c (image_instance_layout): Mark image instance as clean
15226         after layout.
15227         (glyph_dirty_p): Removed redundant function.
15228         (invalidate_glyph_geometry_maybe): Added.
15229         (update_glyph_cachel_data): Call it.
15230
15231         * glyphs.h: Prototyped it.
15232
15233         * redisplay.c (add_glyph_rune): Call it.
15234         (redisplay_window): Reset glyphs cachels when frame faces have
15235         changed, thus forcing recomputation of built-in border glyphs.
15236
15237 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15238
15239         * Makefile.in.in: Make portable dumper and purify play well together.
15240         Add imperfect, but better than nothing, support for pdump.
15241         Remove xemacs.dmp when temacs is re-generated.
15242         Don't ignore errors when dumping xemacs.
15243
15244         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15245
15246 2000-01-28  Andy Piper  <andy@xemacs.org>
15247
15248         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15249         (setup_normal_frame): ditto.
15250         (setup_frame_without_minibuffer): ditto.
15251         (setup_minibuffer_frame): ditto.
15252         (delete_frame_internal): ditto.
15253         (Fmake_frame_invisible): ditto.
15254         (Ficonify_frame): ditto.
15255
15256         * window.h: change Fset_window_buffer signature.
15257
15258         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15259         (Fset_window_buffer): allow recording of buffer if the window is
15260         the selected window.
15261         (window_loop): Use new Fset_window signature.
15262
15263 2000-01-23  Daniel Pittman  <daniel@danann.net>
15264
15265         * config.h.in: Added template for `HAVE_ATHENA_3D'
15266
15267 2000-01-29  Andy Piper  <andy@xemacs.org>
15268
15269         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15270
15271         * gutter.c (output_gutter): Don't output if the window isn't live.
15272
15273 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15274
15275         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15276         of 01/12/00: Moved SetFocus back here where it belongs.
15277
15278 2000-01-23  Andy Piper  <andy@xemacs.org>
15279
15280         * s/cygwin32.h: declare printer things.
15281
15282 2000-01-26  Andy Piper  <andy@xemacs.org>
15283
15284         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15285         Alexander.
15286
15287 2000-01-24  Andy Piper  <andy@xemacs.org>
15288
15289         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15290         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15291
15292         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15293
15294         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15295
15296         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15297
15298         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15299         (mswindows_output_display_block): Avoid local shadows.
15300
15301         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15302         (mswindows_enqueue_mouse_button_event): ditto.
15303         (mswindows_handle_gui_wm_command): remove declaration.
15304
15305         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15306         warnings.
15307
15308         * console-msw.h: Avoid shadows.
15309         (mswindows_get_toolbar_button_text):
15310         (emacs_mswindows_create_stream_pair):
15311         (emacs_mswindows_delete_stream_pair):
15312         (mswindows_handle_toolbar_wm_command): declare.
15313
15314         * device-msw.c (build_syscolor_string): Avoid shadows.
15315
15316 2000-01-23  Andy Piper  <andy@xemacs.org>
15317
15318         * glyphs-widget.c (widget_instantiate): reverse the items for
15319         layouts so that children are in the expected order.
15320
15321 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15322
15323         * ralloc.c: safe_bcopy ==> memmove
15324         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15325         * s/msdos.h: Remove BCOPY macros.
15326         * insdel.c (gap_right): Remove BCOPY conditional code.
15327         * insdel.c (gap_left): Remove BCOPY conditional code.
15328         XEmacs demands a working ANSI C compiler - hence memmove.
15329
15330         * regex.c (regex_compile): Remove accidental use of trigraphs.
15331
15332 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15333
15334         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15335         event timestamp.
15336
15337 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15338
15339         * event-msw.c (mswindows_drain_windows_queue): Added the
15340         parameter.
15341         (mswindows_need_event): Commented the call to
15342         mswindows_drain_windows_queue().
15343         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15344         only.
15345
15346         * console-msw.h: Moved a few function prototypes here from
15347         event-msw.c.
15348
15349         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15350         parameter from unsigned short to unsigned long.
15351         (Fmswindows_shell_execute): Added return value.
15352
15353 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15354
15355         * sysdep.c (init_system_name):
15356           process-unix.c (unix_canonicalized_host_name):
15357         Don't call freeaddrinfo() if getaddrinfo() fails.
15358
15359         * process-unix.c (unix_open_unix_network_stream):
15360         Moved the code to get a port # into address loop.
15361
15362 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15363
15364         * buffer.c (reinit_vars_of_buffer):
15365         The right place to initialize conversion_in_dynarr and
15366         conversion_out_dynarr.
15367
15368         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15369
15370         * process-unix.c (unix_canonicalize_host_name): Muleize.
15371         (unix_open_network_stream): Muleize.
15372
15373         * buffer.h: Fix up prototypes for ralloc.c functions.
15374
15375 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15376         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15377         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15378                 instead of gethostbyname()
15379         * process-unix.c: In unix_canonicalize_host_name() and
15380                 unix_open_network_stream(), add code to use getaddrinfo()
15381                 instead of gethostbyname().
15382
15383 2000-01-27  Daniel Pittman <daniel@danann.net>
15384
15385         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15386         libs when built with flat Athena.
15387
15388 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15389
15390         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15391         Use coding standards for function prototypes.
15392
15393 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15394
15395         * dialog-msw.c (push_lisp_string_as_unicode):
15396         * doc.c (unparesseuxify_doc_string):
15397         * dired.c (Fuser_name_completion_1):
15398         * dired.c (Fuser_name_all_completions):
15399         * dired.c (free_user_cache):
15400         * dired.c (user_name_completion):
15401         * console-x.c (get_display_arg_connection):
15402         * minibuf.c (clear_echo_area_internal):
15403         * minibuf.c (echo_area_append):
15404         * eldap.c (Fldap_open):
15405         * eldap.c (Fldap_search_internal):
15406         * frame-x.c (x_set_frame_text_value):
15407         * frame-x.c (x_set_frame_properties):
15408         * frame-x.c (x_create_widgets):
15409         * redisplay-tty.c (term_get_fkeys_1):
15410         * objects-x.c (x_parse_nearest_color):
15411         * objects-x.c (x_valid_color_name_p):
15412         * objects-x.c (x_initialize_font_instance):
15413         * objects-x.c (x_list_fonts):
15414         * objects-x.c (x_find_charset_font):
15415         * tooltalk.c (Fadd_tooltalk_message_arg):
15416         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15417         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15418         * process-unix.c (unix_create_process):
15419         * ntproc.c (sys_spawnve):
15420         * sound.c (Fplay_sound_file):
15421         * sound.c (Fplay_sound):
15422         * buffer.c (init_initial_directory):
15423         * buffer.c (init_buffer):
15424         * editfns.c (init_editfns):
15425         * editfns.c (Ftemp_directory):
15426         * editfns.c (Fuser_full_name):
15427         * editfns.c (uncache_home_directory):
15428         * editfns.c (get_home_directory):
15429         * editfns.c (Fuser_home_directory):
15430         * editfns.c (Fformat_time_string):
15431         * editfns.c (Fcurrent_time_string):
15432         * gui-x.c (button_item_to_widget_value):
15433         * database.c (Fopen_database):
15434         * event-Xt.c (x_to_emacs_keysym):
15435         * event-Xt.c (x_event_to_emacs_event):
15436         * event-Xt.c (describe_event_window):
15437         * event-msw.c (mswindows_wnd_proc):
15438         * glyphs-eimage.c (jpeg_instantiate):
15439         * glyphs-eimage.c (gif_instantiate):
15440         * glyphs-eimage.c (png_instantiate):
15441         * glyphs-eimage.c (tiff_instantiate):
15442         * glyphs-x.c (xbm_instantiate_1):
15443         * glyphs-x.c (x_xbm_instantiate):
15444         * glyphs-x.c (x_xface_instantiate):
15445         * glyphs-x.c (autodetect_instantiate):
15446         * glyphs-x.c (cursor_font_instantiate):
15447         * glyphs-x.c (x_widget_instantiate):
15448         * glyphs-x.c (x_widget_set_property):
15449         * glyphs-x.c (x_widget_property):
15450         * glyphs-x.c (BUILD_GLYPH_INST):
15451         * print.c (write_string_to_stdio_stream):
15452         * print.c (output_string):
15453         * print.c (Falternate_debugging_output):
15454         * print.c (Fexternal_debugging_output):
15455         * glyphs-msw.c (extract_xpm_color_names):
15456         * glyphs-msw.c (mswindows_xpm_instantiate):
15457         * glyphs-msw.c (bmp_instantiate):
15458         * glyphs-msw.c (resource_name_to_resource):
15459         * glyphs-msw.c (mswindows_resource_instantiate):
15460         * glyphs-msw.c (xbm_instantiate_1):
15461         * glyphs-msw.c (mswindows_xbm_instantiate):
15462         * glyphs-msw.c (mswindows_xface_instantiate):
15463         * glyphs-msw.c (mswindows_widget_instantiate):
15464         * glyphs-msw.c (add_tree_item):
15465         * glyphs-msw.c (add_tab_item):
15466         * glyphs-msw.c (mswindows_combo_box_instantiate):
15467         * glyphs-msw.c (mswindows_widget_property):
15468         * glyphs-msw.c (mswindows_combo_box_property):
15469         * glyphs-msw.c (mswindows_widget_set_property):
15470         * console.c (stuff_buffered_input):
15471         * objects-msw.c (mswindows_initialize_color_instance):
15472         * objects-msw.c (mswindows_valid_color_name_p):
15473         * objects-msw.c (mswindows_list_fonts):
15474         * objects-msw.c (mswindows_font_instance_truename):
15475         * bytecode.c (optimize_compiled_function):
15476         * select-x.c (symbol_to_x_atom):
15477         * select-x.c (x_atom_to_symbol):
15478         * select-x.c (hack_motif_clipboard_selection):
15479         * select-x.c (selection_data_to_lisp_data):
15480         * select-x.c (lisp_data_to_selection_data):
15481         * select-x.c (Fx_get_cutbuffer_internal):
15482         * select-x.c (Fx_store_cutbuffer_internal):
15483         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15484         * buffer.h (TO_INTERNAL_FORMAT): New function.
15485         * emacs.c (make_arg_list_1):
15486         * emacs.c (make_argc_argv):
15487         * emacs.c (main_1):
15488         * emacs.c (Fdump_emacs):
15489         * emacs.c (split_string_by_emchar_1):
15490         * file-coding.h:
15491         * lisp.h:
15492         * lstream.h:
15493         * symsinit.h:
15494         * device-x.c (x_init_device):
15495         * device-x.c (Fx_valid_keysym_name_p):
15496         * device-x.c (Fx_get_font_path):
15497         * device-x.c (Fx_set_font_path):
15498         * glyphs.c (bitmap_to_lisp_data):
15499         * glyphs.c (pixmap_to_lisp_data):
15500         * alloc.c (make_ext_string): Use coding system arguments.  Update
15501         all callers.
15502         * alloc.c (build_string):
15503         * callproc.c (child_setup):
15504         * callproc.c (init_callproc):
15505         * fileio.c (lisp_strerror):
15506         * fileio.c (directory_file_name):
15507         * fileio.c (Fexpand_file_name):
15508         * fileio.c (Ffile_truename):
15509         * fileio.c (Fsysnetunam):
15510         * fileio.c (Fdo_auto_save):
15511         * sysdep.c (sys_readdir):
15512         * tests.c: New file.  Allow adding C tests.
15513         Replace GET_* macros with a more comprehensible and flexible
15514         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15515         Modify all calls.
15516         Any coding system can be used to do format conversion.
15517         Eliminate enum external_data_format.
15518         Eliminate convert_to_external_format.
15519         Eliminate convert_to_internal_format.
15520         Make sure file-name, keyboard, terminal, and ctext are always
15521         defined as coding systems or aliases.  Make
15522         file-name-coding-system, terminal-coding-system, and
15523         keyboard-coding-system magical variables that are equivalent to
15524         defining the corresponding coding system aliases.
15525
15526         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15527         * file-coding.c (Fcoding_system_alias_p): New function.
15528         * file-coding.c (Fcoding_system_aliasee): New function.
15529         * file-coding.c (append_suffix_to_symbol): New function.
15530         * file-coding.c (dangling_coding_system_alias_p): New function.
15531         * file-coding.c (Ffind_coding_system):
15532         * file-coding.c (Fcopy_coding_system):
15533         * file-coding.c (encode_coding_no_conversion):
15534         * file-coding.c (syms_of_file_coding):
15535         * file-coding.c (vars_of_file_coding):
15536         Rewrite coding system alias code.
15537         Allow nested aliases, like symbolic links.
15538         Allow redefinition of coding system aliases.
15539         Prevent existence of dangling coding system aliases.
15540
15541         * dired.c (Fuser_name_completion_1):
15542         * dired.c (Fuser_name_all_completions):
15543         A crash would happen if user did QUIT in the middle of building
15544         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15545
15546         * lisp.h:
15547         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15548
15549         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15550         an unsigned char *.  Update all callers.
15551
15552 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15553
15554         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15555
15556 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15557
15558         * elhash.c (hentry_description): Use more portable definition.
15559         (resize_hash_table): Initialize new hentries using
15560         xnew_array_and_zero, thereby simplifying the code.
15561
15562         * mule-charset.c (make_charset): Make sure entire object is
15563         initialized, to avoid Purify warnings.
15564
15565         * alloc.c (resize_string): Fix unlikely crash with big strings.
15566
15567 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15568
15569         * realpath.c (xrealpath):
15570         Don't call getwd().
15571
15572 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15573
15574         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15575
15576 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15577
15578         * unexelfsgi.c (unexec): Change the way we decide which segment
15579         should be extended.
15580
15581         Assumption that .bss section should be outside the PT_LOADable
15582         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15583         it's present) is inside the 'data' segment. This would fail the
15584         test which was used to find a segment to grow and cover new
15585         heap. Instead of this assumption, I created another one - on IRIX
15586         the segment to grow should start below .bss and it's address
15587         should extent above the end of .bss. Once this segment is
15588         identified, it's grown to accommodate the new heap and new
15589         zero-length .bss section is added at the end of .data2.
15590
15591 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15592
15593         * eval.c (Feval): Wrong number of arguments should use original
15594         function, not the indirect_function version of it.
15595
15596 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15597
15598         * glyphs-x.c (x_button_instantiate): Don't add image if
15599         it is not a pixmap.
15600         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15601         is relative.
15602
15603 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15604
15605         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15606         declaration.
15607         (DEFVAR_INT_MAGIC): Ditto.
15608         (DEFVAR_BOOL_MAGIC): Ditto.
15609         * glyphs.h: Reindent backslash.
15610
15611 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15612
15613         * glyphs-widget.c (layout_query_geometry):
15614         (layout_layout): Use correct types for gheight, gwidth.
15615
15616 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15617
15618         * EmacsManager.c (QueryGeometry): Purified.
15619
15620 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15621
15622         * alloc.c (make_float): Make sure entire object is initialized, to
15623         avoid Purify warnings.
15624         (pdump_register_sub): Remove useless assignment.
15625         (pdump): Use xmalloc, not malloc.
15626         (pdump_load): Use xmalloc, not malloc.
15627
15628 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15629
15630         * callproc.c:
15631         * dired-msw.c:
15632         * fileio.c:
15633         * process-nt.c:
15634         * redisplay-msw.c:
15635         * sysdep.c: Removed redundant #include <windows.h>
15636
15637 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15638
15639         * frame.c (delete_frame_internal): Do not delete device when its
15640         implementation so declares.
15641         (delete_frame_internal): Set device selected frame to nil when
15642         last frame goes away.
15643
15644         * device-msw.c (msprinter_device_system_metrics): Implemented.
15645         (mswindows_device_system_metrics): Added 'device-dpi property.
15646
15647         * device.c: (Fdevice_printer_p): Added.
15648         Added 'offset-workspace device metric.
15649
15650         * console.h (device_metrics): Declared DM_offset_workspace.
15651
15652 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15653
15654         * fileio.c (Ffile_truename): Remove pointless and confusing
15655         initialization of elen.
15656
15657         * glyphs-widget.c: Compiler warning fixes.
15658
15659 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15660
15661         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15662         instead of a Lisp_Object as argument to make it consistent with
15663         the other LIVE_P macros.
15664         (CHECK_LIVE_PROCESS): New macro.
15665
15666         * process.c: Declare Qprocess_live_p.
15667         (Fprocess_live_p): New function.
15668         (create_process): Use PROCESS_LIVE_P.
15669         (read_process_output): Ditto.
15670         (set_process_filter): Ditto.
15671         (Fdelete_process): Ditto.
15672         (kill_buffer_processes): Ditto
15673         (process_send_signal): Use CHECK_LIVE_PROCESS.
15674         (Fprocess_input_coding_system): Check whether process is still
15675         alive (fix PR#1061).
15676         (Fprocess_output_coding_system): Ditto.
15677         (Fprocess_coding_system): Ditto.
15678         (Fset_process_input_coding_system): Ditto.
15679         (Fset_process_output_coding_system): Ditto.
15680
15681 2000-01-23  Andy Piper  <andy@xemacs.org>
15682
15683         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15684         layout and widget.
15685
15686         * glyphs.c (mark_image_instance): take into account changed
15687         image_instance format.
15688         (image_instance_equal): ditto.
15689         (image_instance_hash): ditto.
15690
15691         * glyphs-widget.c (widget_instantiate): Incorporate layout
15692         instantiation here. Delay layout of the layout until later.
15693         (layout_instantiate): deleted.
15694         (layout_query_geometry): new function. get the geometry of a
15695         layout.
15696         (layout_layout): layout a layout dynamically.
15697         (image_instantiator_widget): New function - splitting up
15698         image_instantiator_format_create_glyphs_widget for netwinder
15699         compilation.
15700         (image_instantiator_buttons):
15701         (image_instantiator_edit_fields):
15702         (image_instantiator_combo_box):
15703         (image_instantiator_scrollbar):
15704         (image_instantiator_progress_guage):
15705         (image_instantiator_tree_view):
15706         (image_instantiator_tab_control):
15707         (image_instantiator_labels):
15708         (image_instantiator_layout): ditto.
15709         (image_instantiator_format_create_glyphs_widget): Call preceding
15710         functions.
15711
15712 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15713
15714         * process.c (Fset_process_coding_system):
15715         * device-x.c (Fx_keysym_hash_table):
15716         Docstring fixes.
15717
15718         * lstream.c (Lstream_write): Return documented value, not 0.
15719
15720         * fileio.c (directory_file_name):
15721         (Fsubstitute_in_file_name):
15722         (Fsubstitute_insert_file_contents_internal):
15723         (Fwrite_region_internal):
15724         * emacs.c:
15725         * sysdep.c:
15726         * getloadavg.c:
15727         * systty.h:
15728         Remove vestigial APOLLO-conditional code.
15729
15730 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15731
15732         * getpagesize.h: Add guard macros.
15733         * libsst.h: Add guard macros.
15734         * libst.h: Add guard macros.
15735         * line-number.h: Add guard macros.
15736         * ndir.h: Add guard macros.
15737         * sysfloat.h: Add guard macros.
15738         * sysfile.h: Add guard macros.
15739         * sysproc.h: Add guard macros.
15740         * syswait.h: Add guard macros.
15741         * xintrinsic.h: Add guard macros.
15742         * xintrinsicp.h: Add guard macros.
15743         * xmmanager.h: Add guard macros.
15744         * xmmanagerp.h: Add guard macros.
15745         * xmprimitive.h: Add guard macros.
15746         * xmu.h: Add guard macros.
15747         * gpmevent.h: Add copyright statement. Add guard macros.
15748         * miscplay.h: Add guard macros.
15749         * *.h: Use consistent C-standards-approved guard macro names.
15750
15751         * opaque.c (make_opaque): Switch parameter order.
15752         * opaque.h (make_opaque): Switch parameter order.
15753         Update all callers.
15754         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15755
15756         * config.h.in (type_checking_assert): Added.
15757         (bufpos_checking_assert): Added.
15758
15759 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15760
15761         * alloc.c: Harmless pdump changes.
15762         - Use countof().
15763         - spell alignment correctly.
15764         * sysdep.c: Use countof()
15765
15766 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15767
15768         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15769         initially_selected_for_input() console method, default to 0.
15770         (semi_canonicalize_console_connection): Try to delegate to
15771         canonicalize_console_connection if no such console method.
15772         (canonicalize_console_connection): Vice versa.
15773         (print_console): Do not print nil connection.
15774
15775         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15776         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15777         (XDEVIMPF_FRAMELESS_OK): Added.
15778         (CONSOLE_INHERITS_METHOD): Added.
15779
15780         * console-msw.c (mswindows_canonicalize_console_connection):
15781         Added.
15782         (mswindows_canonicalize_device_connection): Added.
15783
15784         * console-msw.h (struct msprinter_device): Added this struct and
15785         accessor macros.
15786         (mswindows_device): Made fontlist a lisp object.
15787
15788         * device.c (semi_canonicalize_device_connection):  Try to delegate
15789         to canonicalize_device_connection if no such console method.
15790         (canonicalize_device_connection): Vice versa.
15791         (print_device): Do not print nil connection.
15792
15793         * device-msw.c (mswindows_init_device): Call InitCommonControls
15794         when have widgets.
15795         (mswindows_delete_device): Removed fontlist deallocation.
15796         (mswindows_mark_device): Added.
15797
15798         * events.c (event_equal): Added abort() at unreached code.
15799         (event_hash): Ditto.
15800
15801         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15802         fallback tags of Windows devices.
15803
15804         * general.c (syms_of_general): Initialized Qmsprinter.
15805
15806         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15807         of fallback tags of Windows devices.
15808
15809         * lisp.h: Declared Qmsprinter.
15810
15811         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15812         of strings.
15813         (mswindows_list_fonts): Ditto.
15814         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15815         that it can be used by both mswindows and msprinter devices.
15816         (initialize_font_instance): Added.
15817         (mswindows_initialize_font_instance): Use it.
15818         (msprinter_initialize_font_instance): Added.
15819
15820         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15821         and implementation flags check.
15822         (redisplay_without_hooks): Changed the call to the above.
15823         (Fredraw_device): Ditto.
15824         (Fredisplay_device): Ditto.
15825
15826         * redisplay-msw.c (get_frame_dc): Implemented.
15827         (get_frame_compdc): Implemented.
15828         (many functions): Use the two functions above to get device
15829         contexts, ether for a window or a printer.
15830
15831 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15832
15833         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15834         initialization here.
15835         (init_symbols_once_early): Call it.
15836         * emacs.c (main_1): Call it.
15837         * symsinit.h: Declare it.
15838
15839 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15840
15841         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15842         Lisp_Object.
15843         (pdump_backtrace): Ditto.
15844         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15845         (pdump_get_entry): Abort if trying to register a null pointer.
15846         (pdump_dump_data): Cleanup types when relocating.
15847         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15848         (pdump_dump_rtables): Remove bad casts.
15849         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15850         Lisp_Object instead of a EMACS_INT for the hashtable
15851         reorganization.
15852
15853 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15854
15855         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15856
15857         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15858
15859         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15860
15861         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15862
15863 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15864
15865         * faces.h (FACE_STRIKETHRU_P): Added.
15866
15867         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15868         of font variants.
15869
15870         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15871         (mswindows_set_dc_font): New function, aware of font variants,
15872         separated from mswindows_update_dc.
15873
15874         * objects-msw.h (struct mswindows_font_instance_data): Added
15875         definition.
15876
15877         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15878         cached fonts and the data structure.
15879         (mswindows_initialize_font_instance): Added creation of font data
15880         structure.
15881         (mswindows_print_font_instance): Print at least something.
15882         (mswindows_create_font_variant): Implemented.
15883         (mswindows_get_hfont): Implemented.
15884
15885 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15886
15887         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15888         prototyping problem with msvc.
15889
15890         * emacs.c (main_1): added syms_of_gui_mswindows() call
15891
15892         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15893         syms_of_gui_mswindows() function
15894
15895         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15896
15897 2000-01-18  Martin Buchholz <martin@xemacs.org>
15898
15899         * XEmacs 21.2.27 is released.
15900
15901 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15902
15903         * glyphs-eimage.c (struct tiff_error_struct):
15904         (tiff_error_func):
15905         (tiff_warning_func):
15906         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15907
15908         * unexmips.c:
15909         * unexhp9k3.c:
15910         * unexfreebsd.c:
15911         * unexec.c: Remove vestigial Lucid C code.
15912         * unexalpha.c:
15913         * unexaix.c:
15914         * termcap.c:
15915         * libsst.c: Ansify.
15916         Remove declarations of errno and strerror().
15917
15918         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15919
15920         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15921
15922 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15923
15924         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15925         Optimize.
15926
15927 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15928
15929         * md5.c:
15930         * file-coding.c:
15931         * file-coding.h:
15932         Change enum eol_type to eol_type_t.
15933
15934 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15935
15936         * gui.c (get_gui_callback): Check cons before accessing car.
15937
15938 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15939
15940         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15941         (XSETSPECIFIER_TYPE): Ditto.
15942
15943 2000-01-17  Didier Verna  <didier@xemacs.org>
15944
15945         * redisplay.c (generate_fstring_runes): compute string size in
15946         characters, not bytes.
15947
15948 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15949
15950         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15951
15952 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15953
15954         * print.c (print_error_message): Call print_prepare().
15955
15956 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15957
15958         * .dbxrc: Renamed from dbxrc.
15959
15960         * events.c (event_to_character):
15961         Use `assert (foo)' instead of `if (!foo) abort()'
15962
15963         * .gdbinit (xtype): Add documentation.
15964         * .gdbinit (check-temacs): New function.
15965         * .gdbinit (check-xemacs): New function.
15966         * dbxrc (check-xemacs): New function.
15967         * dbxrc (check-xemacs): New function.
15968
15969 2000-01-14  Andy Piper  <andy@xemacs.org>
15970
15971         * glyphs-widget.c (widget_query_geometry): Make sure that we
15972         calculate default dimensions correctly.
15973
15974 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15975
15976         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15977
15978         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15979         pdump_wire'd variable.
15980
15981         * emacs.c: (main_1): Conditionalized calls to
15982         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15983
15984 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15985
15986         * window.c (Fset_window_configuration):
15987         * sysdep.c (_start):
15988         * input-method-motif.c (res):
15989         * event-Xt.c (Xt_process_to_emacs_event):
15990         Simple compiler warning fixes.
15991
15992         * bytecode.c (funcall_compiled_function): Use the original
15993         function symbol on the backtrace list in preference to the
15994         compiled_function object in error messages.
15995
15996 2000-01-13  Andy Piper  <andy@xemacs.org>
15997
15998         * glyphs-x.c (update_widget_face): Make sure we update the widget
15999         background as well as foreground.
16000
16001 2000-01-13  Andy Piper  <andy@xemacs.org>
16002
16003         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16004         fields to subwindow.
16005         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16006         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16007         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16008         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16009
16010         * glyphs-widget.c (check_valid_tab_orientation): new function.
16011         (initialize_widget_image_instance): zero orientation and
16012         justification.
16013         (widget_instantiate): pick up orientation.
16014         (tab_control_query_geometry): return appropriate values for
16015         vertical tabs.
16016
16017         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16018         appropriate creation flags for left, right and bottom tabs.
16019
16020         * s/cygwin32.h: add tab definitions.
16021
16022 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16023
16024         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16025         frame upon hiding a subwindow.
16026         (mswindows_button_instantiate): Changed the push button style to
16027         BS_PUSHBUTTON.
16028         (mswindows_button_instantiate): Removed button BS_NOTIFY
16029         style.
16030         (mswindows_button_instantiate): Removed redundant check for
16031         a disabled gui item.
16032         (mswindows_button_instantiate): Made use of WS_TABSTOP
16033         consistent: "operable" controls (edit, button, tree, scroll) have
16034         this style, "display-only" ones (static, progress gauge) do
16035         not. This style is currently ignored by XEmacs though. Also,
16036         removed the WS_EX_CONTROLPARENT style - it is not for children,
16037         it is for their parents!
16038         (mswindows_edit_field_instantiate): Ditto.
16039         (mswindows_progress_gauge_instantiate): Ditto.
16040         (mswindows_tree_view_instantiate): Ditto.
16041         (mswindows_tab_control_instantiate): Ditto.
16042         (mswindows_scrollbar_instantiate): Ditto.
16043         (mswindows_combo_box_instantiate): Ditto.
16044         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16045         style to the "clip" window.
16046         (mswindows_button_instantiate): Removed compilation warning by
16047         equally typing terms of the ?: operator.
16048
16049 2000-01-12  Didier Verna  <didier@xemacs.org>
16050
16051         * redisplay.c (generate_fstring_runes): new parameter holding the
16052         last modeline-format extent.
16053         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16054         extent, fill the glyph block with it.
16055         (generate_fstring_runes): handle these parameters.
16056         (generate_formatted_string_db): ditto.
16057
16058         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16059         glyphs'extents in the modeline.
16060
16061 1999-01-11  Mike Woolley  <mike@bulsara.com>
16062
16063         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16064         256Mb, as a workaround for the non-starting problem many people
16065         have experienced.
16066
16067 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16068
16069         * console-tty.c (Fset_console_tty_output_coding_system):
16070         Force redrawing tty frame.
16071
16072 2000-01-10  Didier Verna  <didier@xemacs.org>
16073
16074         * redisplay.c (generate_fstring_runes): fix size computation bug.
16075
16076 2000-01-09  William M. Perry <wmperry@aventail.com>
16077
16078         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16079
16080 2000-01-09  Andy Piper  <andy@xemacs.org>
16081
16082         * glyphs-msw.c: index -> i to avoid shadows.
16083         (xbm_create_bitmap_from_data): make static.
16084         (check_valid_string_or_int): deleted.
16085         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16086
16087         * glyphs-x.c (x_update_subwindow): remove unused args.
16088
16089         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16090         back pointer - this is done in allocate_image_instance.
16091         (query_string_font): return Qnil to make the compiler happy.
16092         (unmap_subwindow): set to ~0 to make the compiler happy.
16093         (glyph_query_geometry): comment out until used.
16094         (glyph_layout): ditto.
16095
16096 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16097
16098         * insdel.c (signal_after_change): Remove extraneous unbind_to().