6fbc6b70f89bfb429e17dfc7fadb6fc562029b87
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
4         inheritance itself; fix typo; stop recursive search if cyclic
5         inheritance is found.
6
7 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
8
9         * chartab.c (Q_denotational): New variable.
10         (Q_denotational_from): New variable.
11         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
12         (put_char_attribute): New function.
13         (Fput_char_attribute): Use `put_char_attribute'; regard
14         `->denotational' and `<-denotational' as same as `->unified' and
15         `<-unified'.
16         (syms_of_chartab): Add new symbols `->denotational' and
17         `<-denotational'.
18
19 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
22         `Fget_char_attribute'.
23         (Fchar_variants): Likewise.
24         (get_char_table): Likewise.
25         (Fchar_feature): New function.
26         (put_char_composition): Use `Fchar_feature' instead of
27         `Fget_char_attribute'.
28         (Fput_char_attribute): Likewise; don't put the target character
29         into its `->unified' value.
30         (syms_of_chartab): Add new builtin function `char-feature'.
31
32 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
33
34         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
35         `Fget_char_attribute'.
36         (char_encode_utf8): Likewise.
37
38         * chartab.h: Add an EXFUN for `Fchar_feature'.
39
40 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
41
42         * chartab.c (Vnext_defined_char_id): New variable.
43         (Fput_char_attribute): Accept characters in `->unified'.
44         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
45         new characters which are not related with builtin char-id ranges.
46         (vars_of_chartab): Add new variable `next-defined-char-id'.
47
48 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
49
50         * chartab.c (Q_unified): New variable.
51         (Q_unified_from): New variable.
52         (Fput_char_attribute): Add code for `->unified'.
53         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
54         XEmacs CHISE.
55
56 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * mule-charset.c (decode_ccs_conversion): New function.
59         (decode_defined_char): Use `decode_ccs_conversion'.
60         (decode_builtin_char): Likewise.
61
62 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
63
64         * char-ucs.h: Change some charset-ids of private coded-charsets.
65
66 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
67
68         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
69         (char_encode_as_entity_reference): Likewise.
70         (decode_coding_big5): Modify for `decode_defined_char' and
71         `DECODE_CHAR'.
72         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
73         avoid compiler warning.
74         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
75
76         * mule-charset.c (decode_defined_char): Add new argument
77         `without_inheritance'.
78         (Fdecode_char): Add new optional argument `without_inheritance'.
79         (Fdecode_builtin_char): Modify for `Fdecode_char'.
80
81         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
82         (simplify_char_spec): Likewise.
83
84         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
85         setting.
86
87         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
88         (map_char_table): Likewise.
89         (Fdefine_char): Use `Fdecode_char' without inheritance.
90         (Ffind_char): Modify for `Fdecode_char'.
91
92         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
93
94         * char-ucs.h (decode_defined_char): Add new argument
95         `without_inheritance'.
96         (DECODE_CHAR): Likewise.
97         (MAKE_CHAR): Modify for `DECODE_CHAR'.
98
99 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * chartab.c (Vchise_system_db_directory): New variable.
102         (vars_of_chartab): Add new variable `chise-system-db-directory'.
103
104 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
105
106         * chartab.c: EXFUN `Fmount_char_attribute_table'.
107         (print_chartab_range): Don't define when `UTF2000' is defined.
108         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
109         `CHISE_DS_open'.
110
111 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
112
113         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
114         and optional argument `rehash' is specified, call
115         `open_chise_data_source_maybe' before
116         `chise_ds_foreach_char_feature_name' is called.
117
118 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
119
120         * chartab.c (char_attribute_list_reset_map_func): New function
121         when HAVE_LIBCHISE is defined.
122         (Fchar_attribute_list): Add new optional argument `rehash' when
123         HAVE_LIBCHISE is defined.
124         (open_chise_data_source_maybe): Use "chise-db" instead of
125         "char-db".
126         (char_attribute_system_db_file): Likewise.
127         (Fload_char_attribute_table): Use
128         `chise_feature_foreach_char_with_value' instead of
129         `chise_char_feature_value_iterate'.
130
131 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
132
133         * chartab.c (Vchise_db_directory): New variable.
134         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
135
136 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
137
138         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
139         instead of HAVE_CHISE to specify using with libchise.
140
141         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
142
143         * chartab.h: Don't use HAVE_CHISE_CLIENT.
144
145         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
146         defined or HAVE_LIBCHISE_LIBCHISE is defined.
147         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
148         is defined.
149         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
150         HAVE_CHISE to specify using with libchise.
151         (syms_of_chartab): Don't define symbol `system-char-id' when
152         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
153
154 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
157         specify CHISE DB support.
158         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
159         of `char_attribute_system_db_file' to check feature DB file.
160
161         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
162         HAVE_CHISE_CLIENT to specify CHISE DB support.
163
164         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
165         specify CHISE DB support.
166         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
167         not defined.
168         (Freset_char_attribute_table): Use `chise_feature_setup_db'
169         instead of `char_attribute_system_db_file' to check feature DB
170         file.
171
172 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
175         `HAVE_CHISE_CLIENT'.
176
177 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
180         (Fsave_charset_mapping_table): Don't use
181         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
182
183         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
184         (HAVE_LIBCHISE): New macro.
185
186         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
187
188         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
189         (Fsave_char_attribute_table): Don't use
190         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
191
192 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
193
194         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
195         defined.
196         (save_uint16_byte_table): Likewise.
197         (save_byte_table): Likewise.
198         (char_table_get_db): Use `chise_ds_load_char_feature_value'
199         instead of `chise_char_load_feature_value'.
200         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
201
202 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
203
204         * chartab.h (struct Lisp_Char_Table): Delete member
205         `feature_table' if CHISE is defined.
206
207         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
208         (Fcopy_char_table): Likewise.
209         (char_table_open_db_maybe): Likewise.
210         (char_table_close_db_maybe): Likewise.
211         (char_table_get_db): Likewise.
212         (Fmount_char_attribute_table): Likewise.
213         (Fload_char_attribute_table): Likewise.
214
215 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
216
217         * mule-charset.c (load_char_decoding_entry_maybe): Use
218         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
219         `chise_ccs_decode'.
220
221 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
222
223         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
224         instead of `chise_open_data_source'.
225         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
226         `chise_ds_close'.
227
228 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
231         instead of `chise_ds_open_feature_table'.
232         (char_table_close_db_maybe): Don't use `chise_ft_close'.
233
234 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * mule-charset.c (Fsave_charset_mapping_table): Use
237         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
238         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
239         `chise_ccs_sync' instead of `chise_ccst_close'.
240         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
241
242         * chartab.c (open_chise_data_source_maybe): Modify for
243         `chise_open_data_source'.
244         (char_table_open_db_maybe): Modify for
245         `chise_ds_open_feature_table'.
246
247 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
248
249         * mule-charset.c (load_char_decoding_entry_maybe): Use
250         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
251         `chise_ccst_close'.
252
253 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
254
255         * mule-charset.c (Fsave_charset_mapping_table): Use
256         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
257         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
258         `chise_dt_put_char' and `chise_dt_close'.
259         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
260         `chise_ccs_decode' and `chise_ccst_close' instead of
261         `chise_ds_open_decoding_table', `chise_dt_get_char' and
262         `chise_dt_close'.
263
264         * chartab.c (char_table_get_db): Use
265         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
266         (load_char_attribute_table_map_func): Modify for
267         `chise_char_feature_value_iterate'.
268         (Fload_char_attribute_table): Use
269         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
270
271 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
272
273         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
274
275 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
276
277         * chartab.c (put_char_table): Modify for inherited coded-charsets
278         in XEmacs CHISE.
279
280 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
281
282         * chartab.c (Fput_char_table_map_function): Fixed.
283         (word_boundary_p): Don't check charset in XEmacs CHISE.
284
285 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
286
287         * mule-charset.c (Fsave_charset_mapping_table): Use
288         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
289         instead of `chise_open_decoding_table'; refer
290         `default_chise_data_source'; use `chise_dt_close' instead of
291         `chise_close_decoding_table'.
292         (load_char_decoding_entry_maybe): Likewise.
293
294         * chartab.c (default_chise_data_source): New variable when `CHISE'
295         is defined.
296         (Fcopy_char_table): `ct->ds' is deleted.
297         (open_chise_data_source_maybe): New function.
298         (Fclose_char_data_source): New function.
299         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
300         use `chise_ds_open_feature_table' instead of
301         `chise_open_feature_table'.
302         (char_table_close_db_maybe): Use `chise_ft_close' instead of
303         `chise_close_feature_table'; `cit->ds' is deleted.
304         (syms_of_chartab): Add new builtin function
305         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
306
307         * chartab.h (default_chise_data_source): New extern variable.
308         (open_chise_data_source_maybe): New prototype.
309         (struct Lisp_Char_Table): Delete `ds'.
310
311 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
312
313         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
314         `CHISE' is defined.
315
316 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
317
318         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
319         not defined; add code for non-libchise setting.
320         (char_table_close_db_maybe): Likewise.
321         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
322         defined.
323         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
324         even if `CHISE' is not defined.
325         (Freset_char_attribute_table): Likewise.
326         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
327         `char_table_close_db_maybe' even if `CHISE' is not defined; use
328         `char_table_get_db'.
329         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
330         `char_table_close_db_maybe' even if `CHISE' is not defined.
331
332 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
333
334         * chartab.c (char_table_open_db_maybe): New function.
335         (char_table_close_db_maybe): New function.
336         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
337         (Freset_char_attribute_table): Likewise.
338         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
339         `char_table_close_db_maybe'.
340         (Fload_char_attribute_table): Likewise.
341
342 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
343
344         * chartab.c: Don't include <chise.h> because it is included in
345         chartab.h.
346         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
347         defined.
348         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
349         `CHISE' is defined.
350         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
351         `CHISE' is defined.
352         (Fclose_char_attribute_table): Close `ct->feature_table' and
353         `ct->ds' when `CHISE' is defined.
354         (Freset_char_attribute_table): Likewise.
355         (load_char_attribute_maybe): Use `cit->ds' and
356         `cit->feature_table' when `CHISE' is defined.
357         (Fload_char_attribute_table): Likewise.
358
359         * chartab.h: Include <chise.h> when `CHISE' is defined.
360         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
361         when `CHISE' is defined.
362
363 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
364
365         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
366         is defined.
367         (char_table_description): Likewise.
368         (Fmake_char_table): Likewise.
369         (Fcopy_char_table): Likewise.
370         (Fmount_char_attribute_table): Likewise.
371         (Fclose_char_attribute_table): Likewise.
372         (Freset_char_attribute_table): Likewise.
373         (load_char_attribute_maybe): Likewise.
374         (Fload_char_attribute_table): Likewise.
375
376         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
377         defined.
378
379 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
380
381         * chartab.c (load_char_attribute_table_map_func): New function
382         when CHISE is defined.
383         (Qload_char_attribute_table_map_function): Don't define when CHISE
384         is defined.
385         (Fload_char_attribute_table_map_function): Likewise.
386         (Fload_char_attribute_table): Use libchise when `CHISE' is
387         defined.
388         (syms_of_chartab): Don't define
389         `load-char-attribute-table-map-function' when CHISE is defined.
390
391 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
392
393         * chartab.c: Include <chise.h> when `CHISE' is defined.
394         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
395
396 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * mule-charset.c (charset_code_point): Fix problem when searching
399         in mother CCS fails with `defined_only' mode.
400
401 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
402
403         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
404         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
405         (put_char_composition): Likewise.
406         (Fput_char_attribute): Likewise.
407         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
408
409 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
410
411         * chartab.c (Q_ucs): Deleted.
412         (Fput_char_attribute): Don't refer `->ucs'.
413         (Fdefine_char): Likewise.
414         (Ffind_char): Likewise.
415         (syms_of_chartab): Delete `->ucs'.
416
417 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
418
419         * mule-charset.c (Qmap_cns11643_2): Renamed from
420         `Qchinese_cns11643_2'.
421         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
422         `chinese-cns11643-2'.
423         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
424         `=cns11643-2'.
425
426 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
427
428         * mule-charset.c (Qmap_cns11643_1): Renamed from
429         `Qchinese_cns11643_1'.
430         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
431         `chinese-cns11643-1'.
432         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
433         `=cns11643-1'.
434
435 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
436
437         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
438         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
439         `chinese-gb12345'.
440         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
441         `=gb12345'.
442
443 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
444
445         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
446         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
447         `chinese-gb2312'.
448         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
449         `=gb2312'.
450
451 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
452
453         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
454         (syms_of_mule_charset): Add new symbol `=big5' instead of
455         `chinese-big5'.
456         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
457
458 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
459
460         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
461         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
462         `korean-ksc5601'.
463         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
464         `=ks-x1001'.
465
466 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
467
468         * mule-charset.c (Qmap_jis_x0212): Renamed from
469         `Qjapanese_jisx0212'.
470         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
471         `japanese-jisx0212'.
472         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
473         `=jis-x0212'.
474
475 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
476
477         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
478         `Qjapanese_jisx0208'.
479         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
480         of `japanese-jisx0208'.
481         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
482         `=jis-x0208-1983'.
483
484 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
485
486         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
487         `Qjapanese_jisx0208_1978'.
488         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
489         of `japanese-jisx0208-1978'.
490         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
491         `=jis-x0208-1978'.
492
493 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
494
495         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
496         only for XEmacs CHISE.
497
498 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
499
500         * char-ucs.h: Compact non-ISO-IR charset-ids.
501         (LEADING_BYTE_UCS): Changed to -177.
502         (LEADING_BYTE_CONTROL_1): Changed to -77.
503         (LEADING_BYTE_UCS_BMP): Changed to -176.
504         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
505
506 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
507
508         * mule-charset.c (Qiso_ir): New variable.
509         (Fmake_charset): Recognise new property `iso-ir'.
510         (syms_of_mule_charset): Add new symbol `iso-ir'.
511
512 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
513
514         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
515         n to -n; charset-id of non ISO-IR sets are changed to positive
516         numbers.
517
518 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
519
520         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
521         for &MCS-XXXXXXXX; values.
522
523 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
524
525         * mule.c (Vxemacs_chise_version): Renamed from
526         `Vutf_2000_version'.
527         (vars_of_mule): Add new variable `xemacs-chise-version'; define
528         `utf-2000-version' as an alias for `xemacs-chise-version'.
529
530 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
531
532         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
533         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
534         defined.
535
536         * config.h.in (CHISE): New macro.
537
538 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
539
540         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
541         of `ucs'.
542         (Qmap_ucs): New variable.
543         (syms_of_mule_charset): Add new symbol `=ucs'.
544         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
545
546         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
547         (simplify_char_spec): Likewise.
548
549         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
550
551         * char-ucs.h (Qmap_ucs): New extern variable.
552
553 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
554
555         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
556         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
557         don't define it when UTF2000 is not defined.
558         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
559         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
560         when UTF2000 is not defined.
561         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
562         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
563
564 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
565
566         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
567
568         * mule-charset.c (Vcharset_ucs_gb): Deleted.
569         (Qucs_gb): Deleted.
570         (syms_of_mule_charset): Delete `ucs-gb'.
571         (complex_vars_of_mule_charset): Likewise.
572
573 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
574
575         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
576
577         * mule-charset.c (Vcharset_ucs_cns): Deleted.
578         (Qucs_cns): Deleted.
579         (syms_of_mule_charset): Delete `ucs-cns'.
580         (complex_vars_of_mule_charset): Likewise.
581
582 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
583
584         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
585
586         * mule-charset.c (Vcharset_ucs_jis): Deleted.
587         (Qucs_jis): Deleted.
588         (syms_of_mule_charset): Delete `ucs-jis'.
589         (complex_vars_of_mule_charset): Likewise.
590
591 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
592
593         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
594
595         * mule-charset.c (Vcharset_ucs_ks): Deleted.
596         (Qucs_ks): Deleted.
597         (syms_of_mule_charset): Delete `ucs-ks'.
598         (complex_vars_of_mule_charset): Likewise.
599
600 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
601
602         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
603         (Qideograph_daikanwa_2): Deleted.
604         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
605         (complex_vars_of_mule_charset): Likewise.
606
607         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
608         (LEADING_BYTE_DAIKANWA_1): Deleted.
609         (LEADING_BYTE_DAIKANWA_2): Deleted.
610         (MIN_CHAR_DAIKANWA): Deleted.
611         (MAX_CHAR_DAIKANWA): Deleted.
612
613 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
614
615         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
616         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
617         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
618
619         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
620         (Vcharset_ideograph_daikanwa): Deleted.
621         (Qideograph_hanziku_{1..12}): Deleted.
622         (Qideograph_daikanwa): Deleted.
623         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
624         Vcharset_ideograph_daikanwa.
625         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
626         `ideograph-hanziku-{1..12}'.
627         (complex_vars_of_mule_charset): Likewise.
628
629 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
630
631         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
632
633         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
634         (Qideograph_gt_pj_{1..11}): Deleted.
635         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
636         (complex_vars_of_mule_charset): Likewise.
637
638 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * mule-charset.c (Vcharset_ucs_big5): Deleted.
641         (Vcharset_ideograph_gt): Deleted.
642         (Qucs_big5): Deleted.
643         (Qideograph_gt): Deleted.
644         (syms_of_mule_charset): Delete symbol `ucs-big5' and
645         `ideograph-gt'.
646         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
647         and `ideograph-gt'.
648
649         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
650         (LEADING_BYTE_GT): Deleted.
651         (MIN_CHAR_GT): Deleted.
652         (MAX_CHAR_GT): Deleted.
653
654 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
655
656         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
657
658 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
661         (save_uint16_byte_table): Likewise.
662         (save_byte_table): Likewise; convert values by it.
663         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
664         for `ideographic-structure'.
665         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
666         as the filter for `ideographic-structure'.
667
668 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
669
670         * chartab.c (put_char_composition): New function.
671         (Fput_char_attribute): Use `put_char_composition'; use
672         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
673
674         * fns.c (simplify_char_spec): New function.
675         (char_ref_simplify_spec): New function.
676         (Fchar_refs_simplify_char_specs): New function.
677         (syms_of_fns): Add new builtin function
678         `char-refs-simplify-char-specs'.
679
680 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
681
682         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
683         (Qideograph_cbeta): Deleted.
684         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
685         (complex_vars_of_mule_charset): Likewise.
686
687         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
688         (MIN_CHAR_CBETA): Comment out.
689         (MAX_CHAR_CBETA): Likewise.
690
691 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
692
693         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
694         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
695         CHISE client feature.
696
697 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
698
699         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
700
701 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
702
703         * mule-charset.c (charset_lookup_description_1): Use
704         `NUM_LEADING_BYTES' in UTF-2000.
705
706 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
707
708         * char-ucs.h (GC_CHARSETP): Deleted.
709
710 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * char-ucs.h (MAX_CHAR_GT): Updated.
713
714 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
715
716         * text-coding.c: Sync with XEmacs 21.4.10.
717
718 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
719
720         * mule-charset.c (Vcharset_china3_jef): Deleted.
721         (Qchina3_jef): Deleted.
722         (syms_of_mule_charset): Don't define `china3-jef'.
723         (complex_vars_of_mule_charset): Likewise.
724
725         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
726         (MIN_CHAR_CHINA3_JEF): Comment out.
727         (MAX_CHAR_CHINA3_JEF): Comment out.
728
729 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
730
731         * mule-charset.c (Vcharset_ucs_gb): New variable.
732         (Qucs_gb): New variable.
733         (syms_of_mule_charset): Add new symbol `ucs-gb'.
734         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
735
736         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
737
738 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
739
740         * mule-charset.c (charset_code_point): if a coded-charset has a
741         final-byte, don't inherit the builtin range of the mother CCS.
742
743 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
744
745         * mule-charset.c (charset_code_point): Fix problem about
746         inheritance.
747
748 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
749
750         * mule-charset.c (decode_builtin_char): Reorganized.
751
752 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
753
754         * text-coding.c (char_encode_as_entity_reference): Modify for
755         `charset_code_point'.
756         (char_encode_shift_jis): Likewise.
757         (char_encode_big5): Likewise.
758         (char_encode_utf8): Likewise.
759         (char_encode_iso2022): Likewise.
760
761         * mule-charset.c (charset_code_point): Add new argument
762         `defined_only'.
763         (Fencode_char): Add new optional argument `defined_only'.
764
765         * chartab.c (put_char_table): Modify for `charset_code_point'.
766
767         * char-ucs.h (charset_code_point): Add new argument
768         `defined_only'.
769         (encode_char_1): Modify for `charset_code_point'.
770
771 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
774         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
775
776 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
777
778         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
779         (Qjis_x0208): Likewise.
780         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
781         XCHARSET_FINAL(charset).
782         (charset_code_point): Modify condition for final-byte based
783         builtin-chars.
784         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
785         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
786         in UTF-2000; specify `=jis-x0208' as the mother of
787         `japanese-jisx0208-1978', `japanese-jisx0208' and
788         `japanese-jisx0208-1990' in UTF-2000.
789
790 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
791
792         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
793
794 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
795
796         * text-coding.c (decode_coding_utf16): Support UTF-16.
797         (char_encode_utf16): Fixed.
798
799 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
800
801         * text-coding.c (Qutf16): New variable in MULE.
802         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
803         (Fcoding_system_type): Add `utf-16' in MULE.
804         (struct detection_state): Add a structure for utf16 in MULE.
805         (detect_coding_type): Setup st->utf16.mask in MULE.
806         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
807         MULE.
808         (reset_encoding_stream): Use `char_encode_utf16' and
809         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
810         (detect_coding_utf16): New function [incomplete].
811         (decode_coding_utf16): New function [support only UCS-2].
812         (char_encode_utf16): New function.
813         (char_finish_utf16): New function.
814         (syms_of_file_coding): Add new symbol `utf-16'; setup
815         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
816
817         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
818         UTF-2000.
819         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
820         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
821
822 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
823
824         * chartab.c (put_char_table): When a charset is specified as a
825         range in UTF-2000, don't support builtin characters.
826
827 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
828
829         * mule-charset.c (decode_defined_char): Don't refer external
830         database if Qunbound or Qnil are found.
831         (Fsave_charset_mapping_table): Don't define it if
832         HAVE_CHISE_CLIENT is not defined.
833         (Freset_charset_mapping_table): New function.
834         (load_char_decoding_entry_maybe): Store Qnil if a character is not
835         found in external database.
836         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
837         if HAVE_CHISE_CLIENT is not defined; add new builtin function
838         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
839
840 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
841
842         * text-coding.c (decode_coding_utf8): Check CCS is specified or
843         not.
844
845 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
846
847         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
848         Q_lowercase, Q_uppercase in UTF-2000.
849
850         * chartab.c (get_char_table): Add special code for the standard
851         case table to use character attribute `->downcase' and
852         `->uppercase' for case operations in UTF-2000.
853
854         * casetab.c (Qflippedcase): New variable in UTF-2000.
855         (Q_lowercase): Likewise.
856         (Q_uppercase): Likewise.
857         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
858         and `->uppercase' in UTF-2000.
859         (complex_vars_of_casetab): Assign attribute name `downcase' to
860         downcase and CANON table of Vstandard_case_table in UTF-2000;
861         assign attribute name `flippedcase' to upcase and EQV table of
862         Vstandard_case_table in UTF-2000.
863
864 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * text-coding.c (decode_add_er_char): Support isolated-chars.
867         (char_encode_as_entity_reference): Likewise.
868
869 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
870
871         * emacs.c (Vutf_2000_lisp_directory): New variable.
872         (Vconfigure_utf_2000_lisp_directory): Likewise.
873         (complex_vars_of_emacs): Add new variable
874         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
875
876 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
877
878         * char-ucs.h (DECODE_CHAR): Delete special code for
879         `chinese-big5-1' and `chinese-big5-2'.
880
881         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
882         (Qbig5_2): Likewise.
883         (decode_defined_char): Support CONVERSION_BIG5_1 and
884         CONVERSION_BIG5_2.
885         (decode_builtin_char): Likewise.
886         (charset_code_point): Likewise.
887         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
888         'conversion in UTF-2000.
889         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
890         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
891         `chinese-big5-2' as children of `chinese-big5'.
892
893         * char-ucs.h (CONVERSION_BIG5_1): New macro.
894         (CONVERSION_BIG5_2): New macro.
895
896 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
897
898         * text-coding.c (char_encode_big5): Support entity-reference.
899
900 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
901
902         * text-coding.c (char_encode_as_entity_reference): New function.
903         (char_encode_utf8): Use `char_encode_as_entity_reference'.
904
905 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
906
907         * text-coding.c (decode_coding_big5): Support entity-reference
908         decoding feature.
909
910 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
911
912         * text-coding.c (allocate_coding_system): Initialize initial
913         charsets for CODESYS_UTF8.
914         (Fmake_coding_system): Accept charset-g0, charset-g1 and
915         charset-g2 for CODESYS_UTF8.
916         (decode_coding_utf8): Use charset-g0.
917         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
918         to force variants to map to UCS.
919
920 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
921
922         * text-coding.c (Qutf_8_mcs): New variable.
923         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
924         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
925         instead of `utf-8' in UTF-2000.
926
927 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
928
929         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
930         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
931         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
932         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
933         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
934         CONVERSION_96x96x96x96 are introduced.
935         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
936         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
937         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
938
939         * char-ucs.h (CONVERSION_94): New macro.
940         (CONVERSION_96): New macro.
941         (CONVERSION_94x94): New macro.
942         (CONVERSION_96x96): New macro.
943         (CONVERSION_94x94x94): New macro.
944         (CONVERSION_96x96x96): New macro.
945         (CONVERSION_94x94x94x60): New macro.
946         (CONVERSION_94x94x94x94): New macro.
947         (CONVERSION_96x96x96x96): New macro.
948
949 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
950
951         * chartab.c (Vcharacter_variant_table): Deleted.
952         (Fchar_variants): Use character-attribute `->ucs-variants' instead
953         of `Vcharacter_variant_table'.
954         (Fput_char_attribute): Likewise.
955         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
956         (complex_vars_of_chartab): Likewise.
957
958 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
959
960         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
961
962         * fns.c (Qideographic_structure): New variable.
963         (Qkeyword_char): New variable.
964         (ids_format_unit): New function.
965         (Fideographic_structure_to_ids): New function.
966         (syms_of_fns): Add new symbols `ideographic-structure' and
967         `:char'; add new builtin function `ideographic-structure-to-ids'.
968
969         * data.c (Fchar_ref_p): New function.
970         (syms_of_data): Add new builtin function `char-ref-p'.
971
972         * chartab.h: Add an EXFUN for `Ffind_char'.
973
974 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
975
976         * text-coding.c (Vcharacter_composition_table): Deleted.
977         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
978         in every UTF-2000.
979
980         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
981         UTF-2000.
982         (Vcharacter_composition_table): Deleted.
983         (Fget_composite_char): Use the implementation for external-DB
984         support in every UTF-2000.
985         (Fput_char_attribute): Likewise.
986         (char_attribute_system_db_file): Don't define if external-DB
987         feature is not available.
988         (Fsave_char_attribute_table): Likewise.
989         (Fmount_char_attribute_table): Likewise.
990         (Fclose_char_attribute_table): Likewise.
991         (Freset_char_attribute_table): Likewise.
992         (Fload_char_attribute_table): Likewise.
993         (syms_of_chartab): Don't define `save-char-attribute-table',
994         `mount-char-attribute-table', `reset-char-attribute-table',
995         `close-char-attribute-table' and `load-char-attribute-table' if
996         external-DB feature is not available.
997         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
998
999 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1000
1001         * text-coding.c (Qcomposition): Add extern if external-DB feature
1002         is supported.
1003         (Vcharacter_composition_table): Don't add extern if external-DB
1004         feature is supported.
1005         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1006         character composition rule if external-DB feature is supported.
1007
1008         * chartab.c (Vcharacter_composition_table): Don't define if
1009         external-DB feature is supported.
1010         (Qcomposition): New variable.
1011         (Fget_composite_char): New implementation for external-DB support.
1012         (Fput_char_attribute): Use `composition' property of each
1013         character instead of `Vcharacter_composition_table' to store
1014         character-composition rules if external-DB feature is supported.
1015         (syms_of_chartab): Add new symbol `composition'.
1016         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1017         external-DB feature is supported.
1018
1019 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1020
1021         * chartab.c (Vchar_db_stingy_mode): New variable.
1022         (load_char_attribute_maybe): Close database if
1023         Vchar_db_stingy_mode is not NIL.
1024         (Fload_char_attribute_table_map_function): Use
1025         `get_char_id_table_0' instead of `get_char_id_table'.
1026         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1027
1028         * chartab.h (get_char_id_table_0): New inline function.
1029         (get_char_id_table): Use `get_char_id_table_0'.
1030
1031 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1032
1033         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1034         and `COMPOSE_ADD_CHAR'.
1035         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1036
1037 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1038
1039         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1040         instead of `DECODE_ADD_UCS_CHAR'.
1041         (COMPOSE_ADD_CHAR): Likewise.
1042
1043 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1044
1045         * text-coding.c (decode_flush_er_chars): New inline function.
1046         (decode_add_er_char): New function.
1047         (decode_coding_utf8): Use `decode_flush_er_chars' and
1048         `decode_add_er_char'.
1049
1050 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1051
1052         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1053         done before `decode_output_utf8_partial_char'.
1054
1055         * mule-charset.c (complex_vars_of_mule_charset): Specify
1056         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1057         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1058
1059 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1060
1061         * mule-charset.c (decode_defined_char): New function; search
1062         mother.
1063         (decode_builtin_char): Don't search mother if
1064         XCHARSET_MAX_CODE(charset) == 0.
1065         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1066         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1067         (Fdecode_char): Use `decode_defined_char' instead of
1068         `DECODE_DEFINED_CHAR'.
1069         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1070         mother of `Vcharset_ucs_jis'.
1071
1072         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1073         instead of `DECODE_DEFINED_CHAR'.
1074
1075         * char-ucs.h (decode_defined_char): Renamed from
1076         `DECODE_DEFINED_CHAR'; changed to normal function.
1077         (DECODE_CHAR): Use `decode_defined_char' instead of
1078         `DECODE_DEFINED_CHAR'.
1079
1080         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1081
1082 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1083
1084         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1085
1086         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1087         variable.
1088         (Quse_entity_reference): New variable.
1089         (Qd): New variable.
1090         (Qx): New variable.
1091         (QX): New variable.
1092         (coding_system_description): Add description for
1093         `ccs_priority_list'.
1094         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1095         (allocate_coding_system): Initialize `ccs_priority_list' in
1096         UTF-2000.
1097         (Fmake_coding_system): Add description about
1098         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1099         (codesys).
1100         (Fcoding_system_property): Accept `disable-composition' and
1101         `use-entity-reference' in UTF-2000.
1102         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1103         in UTF-2000.
1104         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1105         (decode_coding_utf8): Decode entity-reference if
1106         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1107         (char_encode_utf8): Encode non-Unicode characters as
1108         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1109         (str->codesys).
1110         (syms_of_file_coding): Add new symbols `use-entity-reference',
1111         `d', `x', `X'.
1112         (vars_of_file_coding): Add new variable
1113         `coded-charset-entity-reference-alist'.
1114         (complex_vars_of_file_coding): Declare `disable-composition' and
1115         `use-entity-reference' to be coding-system-properties in UTF-2000.
1116
1117         * file-coding.h (struct Lisp_Coding_System): Add new member
1118         `use_entity_reference' and `ccs_priority_list'.
1119         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1120         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1121         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1122
1123 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1124
1125         * chartab.c (save_uint8_byte_table): Don't clear the table.
1126         (save_uint16_byte_table): Likewise.
1127         (save_byte_table): Likewise.
1128         (Fmount_char_attribute_table): New function.
1129         (syms_of_chartab): Add new builtin function
1130         `mount-char-attribute-table'.
1131
1132 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1133
1134         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1135         "w+" mode.
1136         (load_char_decoding_entry_maybe): Open database as read-only mode.
1137
1138         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1139         open database as "w+" mode.
1140         (load_char_attribute_maybe): Open database as read-only mode.
1141         (Fload_char_attribute_table): Likewise.
1142
1143 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1144
1145         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1146         (char_table_description): Delete member `db_file'.
1147         (Fmake_char_table): Don't refer `ct->db_file'.
1148         (Fcopy_char_table): Likewise.
1149         (Fsave_char_attribute_table): Likewise.
1150         (Fclose_char_attribute_table): Likewise.
1151         (Freset_char_attribute_table): Likewise.
1152         (load_char_attribute_maybe): Likewise.
1153         (Fload_char_attribute_table): Likewise.
1154
1155         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1156
1157 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1158
1159         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1160         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1161         `ct->db' is living.
1162         (load_char_attribute_maybe): Likewise.
1163         (Fload_char_attribute_table): Likewise.
1164
1165 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1166
1167         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1168         `ct->db_file' unconditionally.
1169
1170 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1171
1172         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1173         UTF-2000.
1174         (char_table_description): Add description for `db_file' and `db'
1175         in UTF-2000.
1176         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1177         UTF-2000.
1178         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1179         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1180         (Fclose_char_attribute_table): New function.
1181         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1182         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1183         and `cit->db'.
1184         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1185         (syms_of_chartab): Add new builtin function
1186         `Fclose_char_attribute_table'.
1187
1188 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1189
1190         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1191         `db' in UTF-2000.
1192         (load_char_attribute_maybe): Change interface.
1193         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1194
1195 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1196
1197         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1198
1199 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1200
1201         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1202         instead of `DECODE_CHAR' for mother; don't use special code for
1203         chinese-big5 to use code space of chinese-big5-1 and
1204         chinese-big5-2.
1205         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1206         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1207
1208         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1209         (MAX_CHAR_BIG5_CDP): Revival.
1210
1211 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1212
1213         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1214         the XLFD registry-encoding name of `chinese-big5'.
1215
1216 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1217
1218         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1219         (Qchinese_big5_cdp): Deleted.
1220         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1221         (complex_vars_of_mule_charset): Delete coded-charset
1222         `chinese-big5-cdp'.
1223
1224         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1225         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1226         `CHARSET_ID_OFFSET - n' for private CCS.
1227         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1228         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1229         of `MIN_LEADING_BYTE'.
1230         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1231         `(CHARSET_ID_OFFSET - 97)'.
1232         (MIN_CHAR_BIG5_CDP): Deleted.
1233         (MAX_CHAR_BIG5_CDP): Deleted.
1234
1235 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1236
1237         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1238
1239 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1240
1241         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1242         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1243         chartab.c].
1244
1245         * chartab.c (Vutf_2000_version): Moved to mule.c.
1246         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1247
1248 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1249
1250         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1251         when HAVE_CHISE_CLIENT is not defined.
1252
1253         * mule.c (vars_of_mule): Provide feature `chise' when
1254         HAVE_CHISE_CLIENT is defined.
1255
1256 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1257
1258         * config.h.in (UTF2000): Add comment.
1259         (HAVE_CHISE_CLIENT): New macro.
1260
1261 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1262
1263         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1264         CONSP.
1265         (Fput_char_attribute): Likewise.
1266         (char_attribute_system_db_file): Encode file-name of attribute.
1267         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1268         the initial value.
1269
1270 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1271
1272         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1273         (Fsave_charset_mapping_table): Use
1274         `char_attribute_system_db_file'.
1275         (load_char_decoding_entry_maybe): Likewise.
1276
1277         * chartab.h (Qsystem_char_id): New external variable.
1278         (char_attribute_system_db_file): New prototype.
1279
1280         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1281         (char_attribute_system_db_file): New function.
1282         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1283         (Freset_char_attribute_table): Likewise.
1284         (load_char_attribute_maybe): Likewise.
1285         (Fload_char_attribute_table): Likewise.
1286         (syms_of_chartab): Add new symbol `system-char-id'.
1287
1288 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1289
1290         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1291         `XCHARSET_GRAPHIC(ccs)'.
1292
1293 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1294
1295         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1296
1297 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1298
1299         * chartab.c (Q_ucs_variants): New variable.
1300         (syms_of_chartab): Add new symbol `->ucs-variants'.
1301         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1302         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1303         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1304
1305         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1306
1307         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1308         `HAVE_DATABASE' is defined.
1309         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1310         `HAVE_DATABASE' is defined.
1311
1312 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1313
1314         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1315         attribute-table.
1316         (Freset_char_attribute_table): New function.
1317         (syms_of_chartab): Add new builtin function
1318         `reset-char-attribute-table'.
1319
1320 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1321
1322         * chartab.c (load_char_attribute_maybe): Don't make directories.
1323
1324 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1325
1326         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1327
1328         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1329         for decoding-table.
1330
1331 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1332
1333         * mule-charset.c (Fsave_charset_mapping_table): Use
1334         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1335
1336         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1337         instead of `XCHARSET_CHARS'.
1338
1339 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1340
1341         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1342         (XCHARSET_BYTE_SIZE): Likewise.
1343
1344         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1345         mule-charset.c].
1346         (XCHARSET_BYTE_SIZE): Likewise.
1347
1348 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1349
1350         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1351         data-directory to store database.
1352         (Fsave_char_attribute_table): Likewise.
1353         (load_char_attribute_maybe): Likewise.
1354         (Fload_char_attribute_table): Likewise.
1355
1356 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1357
1358         * mule-charset.c (Fsave_charset_mapping_table): New function.
1359         (syms_of_mule_charset): Add new builtin function
1360         `save-charset-mapping-table'.
1361
1362 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1363
1364         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1365         (get_ccs_octet_table): New inline function.
1366         (put_ccs_octet_table): Likewise.
1367         (decoding_table_put_char): Use `get_ccs_octet_table' and
1368         `put_ccs_octet_table'.
1369         (decoding_table_remove_char): Use `decoding_table_put_char'.
1370         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1371
1372         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1373         into encoding_table.
1374         (make_charset): Use Qunbound instead Qnil as initial value of
1375         decoding_table.
1376
1377 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1378
1379         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1380         element is Qunloaded.
1381         (map_over_uint16_byte_table): Likewise.
1382         (map_over_byte_table): Likewise.
1383         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1384         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1385         database support, load encoding-table of the specified
1386         coded-charset if it is not loaded yet.
1387         (save_uint8_byte_table): New function of UTF-2000 with external
1388         database support.
1389         (save_uint16_byte_table): Likewise.
1390         (save_byte_table): Likewise.
1391         (Fput_char_attribute): Don't store value into external database
1392         even if the external database feature is supported in UTF-2000;
1393         set `attribute' as name of char-table if the external database
1394         feature is supported.
1395         (Fsave_char_attribute_table): New function in UTF-2000.
1396         (syms_of_chartab): Add new builtin function
1397         `save-char-attribute-table' in UTF-2000.
1398
1399 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1400
1401         * chartab.c (char_attribute_table_to_put): New variable in
1402         UTF-2000.
1403         (Qput_char_table_map_function): Likewise.
1404         (value_to_put): Likewise.
1405         (Fput_char_table_map_function): New function in UTF-2000.
1406         (put_char_table): Use `Fmap_char_attribute' for
1407         CHARTAB_RANGE_CHARSET in UTF-2000.
1408         (Fput_char_attribute): Store symbol instead of string in
1409         `XCHAR_TABLE_NAME (table)'.
1410         (load_char_attribute_maybe): Likewise.
1411         (syms_of_chartab): Add new symbol/function
1412         `put-char-table-map-function'.
1413
1414 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1415
1416         * database.h: Add new EXFUN for `Fmap_database'.
1417
1418         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1419         (syms_of_database): Likewise.
1420
1421         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1422         UTF-2000.
1423         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1424         (XCHAR_TABLE_UNLOADED): Likewise.
1425
1426         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1427         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1428         HAVE_DATABASE is defined.
1429         (char_attribute_table_to_load): New variable of UTF-2000 with
1430         external database support.
1431         (Qload_char_attribute_table_map_function): Likewise.
1432         (Fload_char_attribute_table_map_function): New function of
1433         UTF-2000 with external database support.
1434         (Fload_char_attribute_table): New function of UTF-2000.
1435         (Fmap_char_attribute): Call Fload_char_attribute_table if
1436         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1437         (syms_of_chartab): Add new symbol and function
1438         `load-char-attribute-table-map-function' in UTF-2000 with external
1439         database support; add new function `load-char-attribute-table' in
1440         UTF-2000.
1441
1442 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1443
1444         * chartab.h (load_char_attribute_maybe): New prototype for
1445         UTF-2000 with DATABASE support.
1446         (get_char_id_table): Use `load_char_attribute_maybe' if
1447         HAVE_DATABASE is defined.
1448
1449         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1450         with DATABASE support.
1451
1452 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1453
1454         * chartab.c (Fput_char_attribute): Use S-expression as key of
1455         external database.
1456
1457         * chartab.h (get_char_id_table): Use S-expression as key of
1458         external database.
1459
1460 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1461
1462         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1463         if an element is not loaded, load the corresponding attributes
1464         from an external database.
1465         (map_over_uint16_byte_table): Likewise.
1466         (map_over_byte_table): Likewise.
1467         (map_char_table): Modify for `map_over_uint8_byte_table',
1468         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1469         element is not loaded, load the corresponding attributes from an
1470         external database.
1471         (Fput_char_attribute): Change initial values to Qunloaded.
1472
1473         * chartab.h (get_char_id_table): If a character attribute is not
1474         loaded and the attribute value is not found in an external
1475         database, store Qunbound as the attribute value.
1476
1477 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1478
1479         * chartab.c (BT_UINT8_unloaded): New macro.
1480         (UINT8_VALUE_P): Accept Qunloaded.
1481         (UINT8_ENCODE): Likewise.
1482         (UINT8_DECODE): Likewise.
1483         (BT_UINT16_unloaded): New macro.
1484         (UINT16_VALUE_P): Accept Qunloaded.
1485         (UINT16_ENCODE): Likewise.
1486         (UINT16_DECODE): Likewise.
1487         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1488         BT_UINT16_unloaded.
1489         (mark_char_table): Mark `ct->name' in UTF-2000.
1490         (char_table_description): Add `name' in UTF-2000.
1491         (Fmake_char_table): Initialize `ct->name'.
1492         (Fcopy_char_table): Copy `ct->name'.
1493         (Fput_char_attribute): Store value into an external database if
1494         HAVE_DATABASE is defined.
1495
1496         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1497         UTF-2000.
1498         (CHAR_TABLE_NAME): New macro in UTF-2000.
1499         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1500         (get_char_id_table): Try to read an external database if Qunloaded
1501         is stored in a table.
1502
1503         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1504         Qunloaded.
1505
1506 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1507
1508         * database.h: Add EXFUN definitions for Fopen_database,
1509         Fput_database, Fget_database and Fclose_database.
1510
1511         * data.c (Qunloaded): New variable in UTF-2000.
1512
1513         * lisp.h (Qunloaded): New variable in UTF-2000.
1514
1515 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1516
1517         * mule-charset.c (put_char_ccs_code_point): Modify for
1518         `decoding_table_remove_char' and `decoding_table_put_char'.
1519         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1520
1521         * char-ucs.h (decoding_table_remove_char): Change arguments to
1522         hide decoding_table vector.
1523         (decoding_table_put_char): Likewise.
1524
1525 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1526
1527         * mule-charset.c (decoding_table_remove_char): Moved to
1528         char-ucs.h.
1529         (decoding_table_put_char): Likewise.
1530
1531         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1532         from mule-charset.c].
1533         (decoding_table_remove_char): New inline function [moved from
1534         mule-charset.c].
1535         (decoding_table_put_char): Likewise.
1536
1537 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1538
1539         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1540         extension.
1541
1542 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1543
1544         * mule-charset.c (decode_builtin_char): Support mother charsets.
1545
1546 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1547
1548         * mule-charset.c (Q94x94x60): New variable.
1549         (charset_code_point): Support conversion `94x94x60'.
1550         (Fmake_charset): Likewise.
1551         (syms_of_mule_charset): Add new symbol `94x94x60'.
1552
1553         * char-ucs.h (CONVERSION_94x94x60): New macro.
1554
1555 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1556
1557         * mule-charset.c (charset_code_point): Unify code about
1558         `code-offset'.
1559
1560 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1561
1562         * mule-charset.c (charset_code_point): Merge code about builtin
1563         characters into code about mother charsets; don't use
1564         `range_charset_code_point'.
1565         (range_charset_code_point): Deleted.
1566
1567 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1568
1569         * mule-charset.c (Qcode_offset): New variable.
1570         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1571         `max-code'; accept new property `code-offset'.
1572         (syms_of_mule_charset): Add new symbol `code-offset'.
1573
1574 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1575
1576         * mule-charset.c (range_charset_code_point): Fixed.
1577
1578 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1579
1580         * mule-charset.c (decode_builtin_char): Change semantics of
1581         code-offset of coded-charset.
1582         (charset_code_point): Likewise.
1583         (range_charset_code_point): Likewise.
1584         (complex_vars_of_mule_charset): Modify for the change.
1585
1586 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1587
1588         * mule-charset.c (Fencode_char): Reverse arguments.
1589
1590         * mule-charset.c (charset_code_point): Fixed.
1591
1592 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1593
1594         * mule-charset.c (Vcharset_mojikyo): Deleted.
1595         (Vcharset_mojikyo_2022_1): Deleted.
1596         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1597         (Qmin_code): New variable in UTF-2000.
1598         (Qmax_code): Likewise.
1599         (Qmother): Likewise.
1600         (Qconversion): Likewise.
1601         (Q94x60): Likewise.
1602         (Qmojikyo): Deleted.
1603         (Qmojikyo_2022_1): Deleted.
1604         (Qmojikyo_pj_{1..22}): Deleted.
1605         (mark_charset): Mark `cs->mother'.
1606         (charset_description): Add description for `mother'.
1607         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1608         new arguments `mother' and `conversion'; use
1609         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1610         (charset_code_point): Moved from char-ucs.h; support `mother'
1611         charset feature.
1612         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1613         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1614         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1615         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1616         allow 2 as the value of `graphic' in UTF-2000; add new properties
1617         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1618         require `final' in UTF-2000; modify for `make_charset'.
1619         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1620         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1621         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1622         (Fencode_char): New function.
1623         (syms_of_mule_charset): Add new builtin function `encode-char' in
1624         UTF-2000; add new symbols `min-code', `max-code', `mother',
1625         `conversion' and `94x60'; delete symbols `mojikyo',
1626         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1627         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1628         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1629         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1630
1631         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1632         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1633
1634         * char-ucs.h (Vcharset_mojikyo): Deleted.
1635         (Vcharset_mojikyo_2022_1): Deleted.
1636         (LEADING_BYTE_MOJIKYO): Deleted.
1637         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1638         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1639         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1640         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1641         add new member `mother'; add new member `conversion'.
1642         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1643         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1644         (CHARSET_MOTHER): New macro.
1645         (CHARSET_CONVERSION): New macro.
1646         (CONVERSION_IDENTICAL): New macro.
1647         (CONVERSION_94x60): New macro.
1648         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1649         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1650         (XCHARSET_MOTHER): New macro.
1651         (XCHARSET_CONVERSION): New macro.
1652         (MIN_CHAR_MOJIKYO): Deleted.
1653         (MAX_CHAR_MOJIKYO): Deleted.
1654         (DECODE_MOJIKYO_2022): Deleted.
1655         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1656         (charset_code_point): Changed to non-inline function.
1657         (encode_char_1): Use `charset_code_point'.
1658         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1659
1660 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1661
1662         * lread.c (read_compiled_function): Fix prototype.
1663         (read_vector): Likewise.
1664
1665 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1666
1667         * lrecord.h (struct lrecord_header): Delete `older'.
1668         (set_lheader_implementation): Delete code for `older'.
1669         (set_lheader_older_implementation): Deleted.
1670         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1671         (OLDER_RECORD_P): Deleted.
1672         (OLDER_RECORD_HEADER_P): Deleted.
1673         (alloc_older_lcrecord): Deleted.
1674         (alloc_older_lcrecord_type): Deleted.
1675
1676         * alloc.c (all_older_lcrecords): Deleted.
1677         (alloc_older_lcrecord): Deleted.
1678         (disksave_object_finalization_1): Delete code for older objects.
1679         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1680         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1681
1682 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1683
1684         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1685         instead of `make_older_vector'.
1686         (put_char_ccs_code_point): Likewise.
1687         (mark_charset): Mark `cs->decoding_table'.
1688         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1689
1690         * lisp.h (make_older_vector): Deleted.
1691         (make_vector_newer): Deleted.
1692
1693         * config.h.in (HAVE_GGC): Deleted.
1694
1695         * alloc.c (make_older_vector): Deleted.
1696         (make_vector_newer_1): Deleted.
1697         (make_vector_newer): Deleted.
1698
1699 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1700
1701         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1702         (Qideograph_daikanwa_2): New variable.
1703         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1704         (complex_vars_of_mule_charset): Add new coded-charset
1705         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1706         `LEADING_BYTE_DAIKANWA'.
1707
1708         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1709         (LEADING_BYTE_DAIKANWA_1): New macro.
1710         (LEADING_BYTE_DAIKANWA_2): New macro.
1711         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1712
1713 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1714
1715         * mule-charset.c (complex_vars_of_mule_charset): Change
1716         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1717         the second revised version.
1718
1719 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1720
1721         * mule-charset.c (Vcharset_ucs_smp): New variable.
1722         (Vcharset_ucs_sip): New variable.
1723         (Qucs_smp): New variable.
1724         (Qucs_sip): New variable.
1725         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1726         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1727         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1728         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1729         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1730         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1731
1732         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1733         (LEADING_BYTE_UCS_SIP): New macro.
1734         (MIN_CHAR_SMP): New macro.
1735         (MAX_CHAR_SMP): New macro.
1736         (MIN_CHAR_SIP): New macro.
1737         (MAX_CHAR_SIP): New macro.
1738
1739 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1740
1741         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1742         utf-2000.
1743
1744 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1745
1746         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1747         value; don't store value into `encoding_table' of `Lisp_Charset'.
1748         (mark_charset): `encoding_table' was deleted.
1749         (charset_description): Likewise.
1750         (make_charset): Likewise.
1751         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1752         `put_char_ccs_code_point'.
1753
1754         * chartab.h (Fput_char_attribute): New EXFUN.
1755
1756         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1757         is unified with normal symbol space.
1758         (Fget_char_attribute): Likewise.
1759         (Fput_char_attribute): Likewise; behavior of
1760         `put_char_ccs_code_point' is changed.
1761
1762         * char-ucs.h: Include "elhash.h".
1763         (Vchar_attribute_hash_table): New external variable.
1764         (struct Lisp_Charset): Delete `encoding_table'.
1765         (CHARSET_ENCODING_TABLE): New implementation; refer
1766         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1767         `Lisp_Charset'.
1768
1769 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1770
1771         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1772         (cs) == 0.
1773
1774 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1775
1776         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1777         `chinese-big5'.
1778
1779 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1780
1781         * chartab.c (uint8_byte_table_description): New constant.
1782         (uint8-byte-table): Use `uint8_byte_table_description'.
1783         (uint16_byte_table_description): New constant.
1784         (uint16-byte-table): Use `uint16_byte_table_description'.
1785
1786 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1787
1788         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1789         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1790
1791 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792
1793         * mule-charset.c (Vcharset_ucs_ks): New variable.
1794         (Qucs_ks): New variable.
1795         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1796         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1797
1798         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1799
1800 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1801
1802         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1803         (Fdecode_char): Likewise.
1804
1805         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1806         chartab.h.
1807         (Fdefine_char): Modify for Fdecode_char.
1808         (Ffind_char): Likewise.
1809
1810         * mule-charset.c (Fdecode_char): Add new optional argument
1811         `defined-only'.
1812         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1813
1814 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815
1816         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1817         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1818         (allocate_coding_system): Initialize initial-charsets of
1819         CODESYS_BIG5 in XEmacs UTF-2000.
1820         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1821         CODESYS_BIG5 in XEmacs UTF-2000.
1822         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1823         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1824
1825         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1826         variables.
1827         (Qideograph_hanziku_{1 .. 12}): Likewise.
1828         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1829         .. 12}'.
1830         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1831         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1832         `ideograph-hanziku-{1 .. 12}'.
1833
1834         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1835         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1836         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1837         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1838         (DECODE_DEFINED_CHAR): New inline function.
1839         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1840
1841 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1842
1843         * mule-charset.c (Vcharset_china3_jef): Renamed from
1844         `Vcharset_japanese_jef_china3'.
1845         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1846         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1847         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1848         (syms_of_mule_charset): Rename `china3-jef' from
1849         `japanese-jef-china3'.
1850         (complex_vars_of_mule_charset): Likewise; rename
1851         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1852
1853         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1854         `LEADING_BYTE_JEF_CHINA3'.
1855         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1856         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1857
1858 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1859
1860         * mule-charset.c (encode_builtin_char_1): Comment out special code
1861         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1862
1863         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1864         (MAX_CHAR_MOJIKYO_0): Comment out.
1865         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1866         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1867         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1868         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1869
1870 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1871
1872         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1873         (Qideograph_cbeta): New variable.
1874         (encode_builtin_char_1): Comment out special code for
1875         coded-charset `mojikyo' and `japanese-jef-china3'.
1876         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1877         (complex_vars_of_mule_charset): Add new coded-charset
1878         `ideograph-cbeta'.
1879
1880         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1881         (MIN_CHAR_CBETA): New macro.
1882         (MAX_CHAR_CBETA): New macro.
1883
1884 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1885
1886         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1887         (LEADING_BYTE_JEF_CHINA3): New macro.
1888         (MIN_CHAR_JEF_CHINA3): New macro.
1889         (MAX_CHAR_JEF_CHINA3): Likewise.
1890         (DECODE_CHAR): Fixed.
1891
1892 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1893
1894         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1895         (Qjapanese_jef_china3): New variable.
1896         (encode_builtin_char_1): Support `japanese-jef-china3'.
1897         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1898         (complex_vars_of_mule_charset): Add new coded-charset
1899         `japanese-jef-china3'.
1900
1901 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1902
1903         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1904         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1905         94^4, 96^3, 96^4, 128^n and 256^n set.
1906         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1907         (map_char_table): Likewise.
1908
1909 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1910
1911         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1912         UTF-2000.
1913
1914 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1915
1916         * chartab.h (get_char_id_table): New inline function.
1917
1918         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1919         function.
1920
1921 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1922
1923         * chartab.h (decode_char_table_range): New prototype in XEmacs
1924         UTF-2000.
1925         (put_char_id_table): New inline function in XEmacs UTF-2000.
1926
1927         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1928         function.
1929         (decode_char_table_range): Delete static declaration in XEmacs
1930         UTF-2000.
1931
1932 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1933
1934         * chartab.c (put_char_id_table): Use `put_char_table'.
1935
1936 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1937
1938         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1939         (map_over_uint16_byte_table): Likewise.
1940         (map_over_byte_table): Likewise.
1941         (map_char_table): Modify for `map_over_uint8_byte_table',
1942         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1943         UTF-2000.
1944
1945 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1946
1947         * chartab.c (struct map_char_table_for_charset_arg): New
1948         structure.
1949         (map_char_table_for_charset_fun): New function.
1950         (map_char_table): Use `map_char_table' for encoding_table of
1951         `range->charset'.
1952
1953 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1954
1955         * chartab.c (map_char_table): Check a character is found in
1956         range->charset instead of non default value is defined in
1957         char-table when range is CHARTAB_RANGE_ROW.
1958
1959 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1960
1961         * chartab.c (map_char_id_table): Deleted.
1962         (Fmap_char_attribute): Use `map_char_table' instead of
1963         `map_char_id_table'.
1964
1965 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1966
1967         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1968         UTF-2000.
1969         (update_syntax_table): Deleted in XEmacs UTF-2000.
1970
1971         * syntax.c (find_defun_start): Use `syntax_table' instead of
1972         `mirror_syntax_table' in XEmacs UTF-2000.
1973         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1974         UTF-2000.
1975         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1976         XEmacs UTF-2000.
1977         (Fmatching_paren): Likewise.
1978         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1979         in XEmacs UTF-2000.
1980         (find_start_of_comment): Likewise.
1981         (find_end_of_comment): Likewise.
1982         (Fforward_comment): Likewise.
1983         (scan_lists): Likewise.
1984         (char_quoted): Likewise.
1985         (Fbackward_prefix_chars): Likewise.
1986         (scan_sexps_forward): Likewise.
1987         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1988         (update_syntax_table): Likewise.
1989
1990         * search.c (skip_chars): Use `syntax_table' instead of
1991         `mirror_syntax_table' in XEmacs UTF-2000.
1992         (wordify): Likewise.
1993         (Freplace_match): Likewise.
1994
1995         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1996         `mirror_syntax_table' in XEmacs UTF-2000.
1997         (WORDCHAR_P_UNSAFE): Likewise.
1998         (re_match_2_internal): Likewise.
1999
2000         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2001         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2002
2003         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2004         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2005
2006         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2007         XEmacs UTF-2000.
2008
2009         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2010         UTF-2000.
2011         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2012         (char_table_description): Delete `mirror_table' in XEmacs
2013         UTF-2000.
2014         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2015         UTF-2000.
2016         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2017         (Fcopy_char_table): Likewise.
2018         (put_char_table): Don't call `update_syntax_table' in XEmacs
2019         UTF-2000.
2020
2021         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2022         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2023         (casify_region_internal): Likewise.
2024
2025         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2026
2027         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2028         `mirror_syntax_table' in XEmacs UTF-2000.
2029
2030         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2031         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2032         (Fexpand_abbrev): Likewise.
2033
2034 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2035
2036         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2037
2038 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2039
2040         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2041         (map_over_uint16_byte_table): Likewise.
2042         (map_over_byte_table): Likewise.
2043         (get_char_id_table): Refer `cit->default_value'.
2044         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2045         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2046         of character-id ranges.
2047         (mark_char_table): Mark `ct->default_value'.
2048         (char_table_description): Add `default_value'.
2049         (fill_char_table): Use `default_value'.
2050         (decode_char_table_range): Decode `nil' as
2051         `CHARTAB_RANGE_DEFAULT'.
2052         (get_char_id_table): Refer `cit->default_value'.
2053         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2054         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2055         temporary hack; check value of char-table is bound or not.
2056         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2057
2058         * chartab.h (struct Lisp_Char_Table): Add new member
2059         `default_value' in XEmacs UTF-2000.
2060         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2061         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2062         UTF-2000.
2063
2064 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2065
2066         * chartab.h (Lisp_Char_ID_Table): Deleted.
2067
2068         * chartab.c (char_table_description): Fix typo.
2069         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2070         `Lisp_Char_ID_Table'.
2071
2072 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2073
2074         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2075         `CHAR_ID_TABLE_P'.
2076
2077         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2078         `CHAR_ID_TABLE_P'.
2079
2080         * chartab.h (XCHAR_ID_TABLE): Deleted.
2081         (XSETCHAR_ID_TABLE): Deleted.
2082         (CHAR_ID_TABLE_P): Deleted.
2083
2084         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2085         `CHAR_ID_TABLE_P'.
2086         (Fget_composite_char): Likewise.
2087         (put_char_table): Likewise.
2088         (add_char_attribute_alist_mapper): Fixed.
2089         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2090         `CHAR_ID_TABLE_P'.
2091         (Fget_char_attribute): Likewise.
2092         (Fget_char_attribute): Likewise.
2093         (Fmap_char_attribute): Likewise.
2094
2095         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2096         `CHAR_ID_TABLE_P'.
2097         (encode_char_1): Likewise.
2098
2099 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2100
2101         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2102         `XCHAR_ID_TABLE'.
2103
2104         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2105         instead of `XCHAR_ID_TABLE'.
2106         (remove_char_ccs): Likewise.
2107
2108         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2109         `XCHAR_ID_TABLE'.
2110         (Fget_composite_char): Likewise.
2111         (Fchar_variants): Likewise.
2112         (put_char_table): Likewise.
2113         (add_char_attribute_alist_mapper): Likewise.
2114         (Fchar_attribute_alist): Likewise.
2115         (Fget_char_attribute): Likewise.
2116         (Fput_char_attribute): Likewise.
2117         (Fmap_char_attribute): Likewise.
2118         (Fmap_char_attribute): Likewise.
2119
2120         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2121         `XCHAR_ID_TABLE'.
2122         (encode_char_1): Likewise.
2123
2124 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2125
2126         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2127         `Lisp_Char_ID_Table'.
2128         (mark_char_id_table): Deleted.
2129         (print_char_id_table): Likewise.
2130         (char_id_table_equal): Likewise.
2131         (char_id_table_hash): Likewise.
2132         (char_id_table_description): Likewise.
2133         (char_id_table): Likewise.
2134         (make_char_id_table): Use `Fmake_char_table' and
2135         `fill_char_table'.
2136         (get_char_id_table): Use `Lisp_Char_Table' instead of
2137         `Lisp_Char_ID_Table'.
2138         (put_char_id_table): Likewise.
2139         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2140         `XCHAR_ID_TABLE'.
2141         (Fremove_char_attribute): Likewise.
2142         (syms_of_chartab): Don't define type `char-id-table'.
2143
2144         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2145         (char_id_table): Likewise.
2146         (GC_CHAR_ID_TABLE_P): Likewise.
2147         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2148         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2149         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2150         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2151         (get_char_id_table): Use `Lisp_Char_Table' instead of
2152         `Lisp_Char_ID_Table'.
2153         (put_char_id_table_0): Likewise.
2154         (put_char_id_table): Likewise.
2155
2156 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2157
2158         * chartab.h: Lisp_Byte_Table related codes are moved from
2159         chartab.h.
2160
2161         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2162
2163 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2164
2165         * chartab.h: Don't include "chartab.h".
2166         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2167         (Lisp_Char_ID_Table): Likewise.
2168         (char_id_table): Likewise.
2169         (XCHAR_ID_TABLE): Likewise.
2170         (XSETCHAR_ID_TABLE): Likewise.
2171         (CHAR_ID_TABLE_P): Likewise.
2172         (GC_CHAR_ID_TABLE_P): Likewise.
2173         (get_char_id_table): Likewise.
2174
2175         * char-ucs.h: Include "chartab.h".
2176         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2177         (Lisp_Char_ID_Table): Likewise.
2178         (char_id_table): Likewise.
2179         (XCHAR_ID_TABLE): Likewise.
2180         (XSETCHAR_ID_TABLE): Likewise.
2181         (CHAR_ID_TABLE_P): Likewise.
2182         (GC_CHAR_ID_TABLE_P): Likewise.
2183         (get_char_id_table): Likewise.
2184
2185 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2186
2187         * chartab.c (copy_uint8_byte_table): New function.
2188         (copy_uint16_byte_table): New function.
2189         (copy_byte_table): New function.
2190         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2191         characters to call.
2192         (map_over_uint16_byte_table): Likewise.
2193         (map_over_byte_table): Likewise.
2194         (get_byte_table): Move prototype to chartab.h.
2195         (put_byte_table): Likewise.
2196         (put_char_id_table_0): Moved to chartab.h.
2197         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2198         (char_table_entry_equal): Likewise.
2199         (char_table_entry_hash): Likewise.
2200         (char_table_entry_description): Likewise.
2201         (char_table_entry): Likewise.
2202         (make_char_table_entry): Likewise.
2203         (copy_char_table_entry): Likewise.
2204         (get_non_ascii_char_table_value): Likewise.
2205         (map_over_charset_ascii): Likewise.
2206         (map_over_charset_control_1): Likewise.
2207         (map_over_charset_row): Likewise.
2208         (map_over_other_charset): Likewise.
2209         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2210         (print_char_table): Likewise.
2211         (char_table_equal): Likewise.
2212         (char_table_hash): Likewise.
2213         (char_table_description): Likewise.
2214         (fill_char_table): Likewise.
2215         (Fcopy_char_table): Likewise.
2216         (get_char_table): Likewise.
2217         (Fget_range_char_table): Likewise.
2218         (put_char_table): Likewise.
2219         (map_char_table): Likewise.
2220         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2221         UTF-2000.
2222
2223 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2224
2225         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2226         `Vauto_fill_chars' in XEmacs UTF-2000.
2227
2228         * chartab.h (get_byte_table): New prototype [moved from
2229         chartab.c].
2230         (put_byte_table): Likewise [moved from chartab.c].
2231         (put_char_id_table_0): New inline function [moved from chartab.c].
2232         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2233         (Lisp_Char_Table_Entry): Likewise.
2234         (char_table_entry): Likewise.
2235         (XCHAR_TABLE_ENTRY): Likewise.
2236         (XSETCHAR_TABLE_ENTRY): Likewise.
2237         (CHAR_TABLE_ENTRYP): Likewise.
2238         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2239         (NUM_ASCII_CHARS): Likewise.
2240         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2241         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2242
2243 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2244
2245         * chartab.c (get_char_id_table): Change interface.
2246         (put_char_id_table_0): New function.
2247         (put_char_id_table): Change interface; new implementation.
2248         (Fget_composite_char): Modify for interface change of
2249         `get_char_id_table'.
2250         (Fchar_variants): Likewise.
2251         (add_char_attribute_alist_mapper): Likewise.
2252         (Fchar_attribute_alist): Likewise.
2253         (Fget_char_attribute): Likewise.
2254         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2255         as same as character as the first argument like `put-char-table';
2256         modify for interface change of `put_char_id_table'.
2257         (Fremove_char_attribute): Modify for interface change of
2258         `put_char_id_table'.
2259
2260 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2261
2262         * text-coding.c: Sync up with XEmacs 21.2.41.
2263         (COMPOSE_ADD_CHAR): Modify for interface change of
2264         `get_char_id_table'.
2265
2266         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2267         change of `put_char_id_table'.
2268         (remove_char_ccs): Likewise.
2269
2270         * chartab.h (put_char_id_table): Change interface.
2271
2272         * char-ucs.h (get_char_id_table): Change interface.
2273         (charset_code_point): Modify for interface change of
2274         `get_char_id_table'.
2275         (encode_char_1): Likewise.
2276
2277 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2278
2279         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2280         argument `ccs'.
2281         (map_over_uint16_byte_table): Likewise.
2282         (map_over_byte_table): Likewise.
2283         (map_char_id_table): Add new argument `range' like
2284         `map_char_table'.
2285         (Fmap_char_attribute): Add new argument `range' like
2286         `Fmap_char_table'.
2287
2288 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2289
2290         * chartab.c (map_over_uint8_byte_table): Change interface of
2291         mapping function to use struct chartab_range instead of Emchar.
2292         (map_over_uint16_byte_table): Likewise.
2293         (map_over_byte_table): Likewise.
2294         (map_char_id_table): Likewise.
2295         (struct slow_map_char_id_table_arg): Deleted.
2296         (slow_map_char_id_table_fun): Deleted.
2297         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2298         function `slow_map_char_table_fun' instead of struct
2299         `slow_map_char_id_table_arg' and function
2300         `slow_map_char_id_table_fun'.
2301
2302 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2303
2304         * mule-charset.c: Move char-it-table related codes to chartab.c.
2305         (Vutf_2000_version): Moved to chartab.c.
2306         (Fdefine_char): Likewise.
2307         (Ffind_char): Likewise.
2308         (syms_of_mule_charset): Move types `uint8-byte-table',
2309         `uint16-byte-table', `byte-table' and `char-id-table' to
2310         chartab.c; move functions `char_attribute_list,
2311         `find_char_attribute_table, `char_attribute_alist,
2312         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2313         `map_char_attribute, `define_char, `find_char, `char_variants and
2314         `get_composite_char to chartab.c; move symbols `=>ucs',
2315         `->decomposition', `compat', `isolated', `initial', `medial',
2316         `final', `vertical', `noBreak', `fraction', `super', `sub',
2317         `circle', `square', `wide', `narrow', `small' and `font' to
2318         chartab.c.
2319         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2320         setting codes for `Vcharacter_composition_table' and
2321         `Vcharacter_variant_table' to chartab.c.
2322         (complex_vars_of_mule_charset): Move setting code for
2323         `Vchar_attribute_hash_table' to chartab.c.
2324
2325         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2326         (make_char_id_table): New prototype.
2327         (put_char_id_table): Likewise.
2328         (Fget_char_attribute): Likewise.
2329
2330         * chartab.c: Move char-id-table related code from mule-charset.c.
2331         (Vutf_2000_version): Moved from mule-charset.c.
2332
2333         * char-ucs.h (Qucs): New external variable.
2334         (put_char_ccs_code_point): New prototype.
2335         (remove_char_ccs): Likewise.
2336
2337 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2338
2339         * mule-charset.c (Vcharset_ucs_jis): New variable.
2340         (Qucs_jis): Likewise.
2341         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2342         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2343
2344         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2345
2346 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2347
2348         * mule-charset.c (map_over_uint8_byte_table): New function.
2349         (map_over_uint16_byte_table): Likewise.
2350         (map_over_byte_table): Likewise.
2351         (map_char_id_table): Likewise.
2352         (slow_map_char_id_table_fun): Likewise.
2353         (Fmap_char_attribute): Likewise.
2354         (syms_of_mule_charset): Add new function `map-char-attribute'.
2355
2356 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2357
2358         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2359         (syms_of_mule_charset): Add new function `find-char'.
2360
2361 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2362
2363         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2364         XEmacs UTF-2000.
2365         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2366         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2367         XEmacs UTF-2000.
2368         (complex_vars_of_mule_charset): Add new coded-charset
2369         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2370         `ideograph-gt-pj-*'.
2371
2372         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2373
2374 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2375
2376         * mule-charset.c (encode_builtin_char_1): Purge codes about
2377         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2378         {MIN|MAX}_CHAR_HEBREW.
2379         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2380         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2381
2382         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2383         (MAX_CHAR_GREEK): Purged.
2384         (MIN_CHAR_CYRILLIC): Purged.
2385         (MAX_CHAR_CYRILLIC): Purged.
2386         (MIN_CHAR_HEBREW): Commented out.
2387         (MAX_CHAR_HEBREW): Likewise.
2388
2389 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2390
2391         * mule-charset.c (Qto_ucs): New variable.
2392         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2393         (Fdefine_char): Likewise.
2394         (syms_of_mule_charset): Add new symbol `=>ucs'.
2395
2396 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2397
2398         * mule-charset.c (Fdecode_char): Fixed.
2399
2400 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2401
2402         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2403         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2404         "tcvn5712-1".
2405
2406 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2407
2408         * mule-charset.c (Vcharset_ucs_big5): New variable.
2409         (Qucs_big5): Likewise.
2410         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2411         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2412
2413         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2414
2415 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2416
2417         * mule-charset.c (decode_builtin_char): Check Big5 code range
2418         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2419
2420 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2421
2422         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2423         (Qchinese_gb12345): Likewise.
2424         (Fdecode_builtin_char): Fixed.
2425         (syms_of_mule_charset): Add `chinese-gb12345'.
2426         (complex_vars_of_mule_charset): Add coded-charset
2427         `chinese-gb12345'.
2428
2429         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2430         (LEADING_BYTE_CHINESE_GB12345): New macro.
2431
2432 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2433
2434         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2435         and `latin-viscii-upper' for `latin-viscii'.
2436
2437 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2438
2439         * mule-charset.c (Fdecode_builtin_char): Comment out
2440         regularization code for ISO-IR GR representation.
2441
2442 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2443
2444         * mule-charset.c (decode_builtin_char): New function; renamed from
2445         `make_builtin_char'; return -1 instead of signal.
2446         (Fdecode_builtin_char): Use `decode_builtin_char'.
2447
2448         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2449         `make_builtin_char'.
2450         (DECODE_CHAR): Use `decode_builtin_char' instead of
2451         `make_builtin_char'; use mapping table of `chinese-big5' for
2452         `chinese-big5-{1,2}'.
2453
2454 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2455
2456         * text-coding.c (char_encode_big5): New function.
2457         (char_finish_big5): Likewise.
2458         (reset_encoding_stream): Use `char_encode_big5' and
2459         `char_finish_big5' for CODESYS_BIG5.
2460         (mule_encode): Don't use `encode_coding_big5'.
2461         (encode_coding_big5): Deleted.
2462
2463 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2464
2465         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2466         0x81- in XEmacs UTF-2000.
2467         (detect_coding_big5): Likewise.
2468
2469 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2470
2471         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2472         generate character-id if the CCS property does not have
2473         corresponding predefined character.
2474         (make_builtin_char): Return -1 if corresponding predefined
2475         character is not found.
2476         (Fdecode_char): Return nil if corresponding character is not
2477         found.
2478         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2479         don't map to builtin ucs space.
2480
2481 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2482
2483         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2484         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2485
2486 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2487
2488         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2489         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2490         (Qideograph_gt): Likewise.
2491         (Qideograph_gt_pj_{1..11}): Likewise.
2492         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2493         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2494         `ideograph-gt-pj-11'.
2495         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2496         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2497         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2498
2499         * char-ucs.h (LEADING_BYTE_GT): New macro.
2500         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2501         (MIN_CHAR_GT): Likewise.
2502         (MAX_CHAR_GT): Likewise.
2503
2504 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2505
2506         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2507         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2508
2509         * doprnt.c (unsigned_int_converters): Add `c'.
2510         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2511
2512         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2513         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2514         `MIN_CHAR_MOJIKYO'.
2515         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2516         (MAX_CHAR_MOJIKYO_0): New macro.
2517         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2518
2519 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2520
2521         * mule-charset.c (Fdefine_char): Delete cemented out code.
2522         (encode_builtin_char_1): Modify for new allocation of builtin
2523         Mojikyo characters.
2524
2525         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2526
2527 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2528
2529         * mule-charset.c (Vcharset_ucs_cns): New variable.
2530         (Qucs_cns): New variable.
2531         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2532         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2533
2534 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2535
2536         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2537
2538 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2539
2540         * search.c (search_buffer): Make `charset_base_code' as
2541         character-id >> 6 to eliminate the corresponding last byte in
2542         UTF-8 representation [I'm not sure it is right thing].
2543         (boyer_moore): Likewise.
2544
2545 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2546
2547         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2548         representation in MULE.
2549
2550 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2551
2552         * text-coding.c (Fmake_coding_system): Use
2553         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2554         `EXTERNAL_PROPERTY_LIST_LOOP'.
2555
2556 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2557
2558         * text-coding.c (decode_output_utf8_partial_char): New function.
2559         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2560
2561 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2562
2563         * text-coding.c (decode_coding_utf8): Output original byte
2564         sequence if it is broken; change order of conditions.
2565
2566         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2567         of conditions.
2568
2569         * mb-multibyte.h (BYTE_ASCII_P):
2570         Use bit ops for char-signedness safety.
2571         (BYTE_C0_P): Use bit ops for char-signedness safety.
2572         (BYTE_C1_P): Use bit ops for char-signedness safety.
2573
2574         * character.h: (XCHAR_OR_CHAR_INT):
2575         Always use inline function.
2576         Remove redundant type checking assert() - XINT will abort quite
2577         nicely.
2578
2579 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2580
2581         * text-coding.c: (Fencode_shift_jis_char):
2582         (Fencode_big5_char):
2583         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2584         Replace 0 with '\0' when working with bytes.
2585         Replace initial "(" with "\(" in docstrings.
2586
2587         (Fmake_coding_system):
2588         When type is ccl and value is vector, register it with a proper
2589         symbol.  And checks whether the given ccl program is valid.
2590         (mule_decode): When calling ccl_driver, if src indicates
2591         NULL pointer, set an empty string instead.
2592         (mule_encode): Likewise.
2593
2594         (detect_eol_type):
2595         (detect_coding_sjis):
2596         (decode_coding_sjis):
2597         (detect_coding_big5):
2598         (decode_coding_big5):
2599         (detect_coding_ucs4):
2600         (decode_coding_ucs4):
2601         (detect_coding_utf8):
2602         (decode_coding_utf8):
2603         (detect_coding_iso2022):
2604         (decode_coding_iso2022):
2605         (decode_coding_no_conversion):
2606         (mule_decode):
2607         Make all detecting and decoding functions take an Extbyte * arg.
2608         (text_encode_generic):
2609         (encode_coding_big5):
2610         (encode_coding_no_conversion):
2611         (mule_encode):
2612         Make all encoding functions take a Bufbyte * arg.
2613         Use size_t instead of unsigned int for memory sizes.
2614         Only cast to unsigned char whenever dereferencing Extbyte *.
2615
2616         (struct lrecord_description fcd_description_1): Use countof.
2617         (complex_vars_of_file_coding):
2618         Use countof instead of sizeof.
2619         Use CHECK_NATNUM instead of CHECK_INT.
2620
2621 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2622
2623         * mule-charset.c (Fget_char_attribute): Add new optional argument
2624         `default-value'.
2625         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2626         (remove_char_ccs): Likewise.
2627
2628 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2629
2630         * text-coding.c (char_encode_shift_jis): New implementation in
2631         UTF-2000.
2632         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2633         ...)'.
2634
2635         * mule-charset.c (Vcharset_chinese_big5): New variable in
2636         UTF-2000.
2637         (Qchinese_big5): New variable in UTF-2000.
2638         (BIG5_SAME_ROW): New macro in UTF-2000.
2639         (make_builtin_char): Use builtin characters of
2640         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2641         characters of `Vcharset_chinese_big5'.
2642         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2643         (complex_vars_of_mule_charset): Add new coded-charset
2644         `chinese-big5' in UTF-2000.
2645
2646         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2647         (Vcharset_chinese_big5): New external variable declaration.
2648         (Vcharset_japanese_jisx0208_1990): Likewise.
2649
2650 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2651
2652         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2653         function.
2654         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2655
2656 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2657
2658         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2659         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2660         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2661         `mojikyo-pj-*'.
2662
2663 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2664
2665         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2666
2667 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2668
2669         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2670         to 0.17.
2671
2672 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2673
2674         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2675         for `CHARSET_BY_ATTRIBUTES'.
2676         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2677         `CHARSET_BY_ATTRIBUTES'.
2678
2679         * text-coding.c (struct decoding_stream): Rename member `CH' to
2680         `CPOS'.
2681         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2682         (decode_coding_sjis): Likewise.
2683         (decode_coding_big5): Likewise.
2684         (decode_coding_ucs4): Likewise.
2685         (decode_coding_utf8): Likewise.
2686         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2687         `CHARSET_BY_ATTRIBUTES'.
2688         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2689         `str->counter'; decode 3, 4 bytes sets.
2690         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2691         sets.
2692         (decode_coding_no_conversion): Use `str->cpos' instead of
2693         `str->ch'.
2694
2695         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2696         (Qmojikyo_2022_1): New variable.
2697         (make_charset): Don't use `CHARSET_TYPE_*'.
2698         (range_charset_code_point): Support coded-charset
2699         `mojikyo-2022-1'.
2700         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2701         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2702         `CHARSET_BY_ATTRIBUTES'.
2703         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2704         `CHARSET_BY_ATTRIBUTES'.
2705         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2706         (complex_vars_of_mule_charset): Add new coded-charset
2707         `mojikyo-2022-1'.
2708
2709         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2710         interface; changed to inline function.
2711
2712         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2713         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2714         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2715         (CHARSET_TYPE_94): Deleted.
2716         (CHARSET_TYPE_94X94): Deleted.
2717         (CHARSET_TYPE_96): Deleted.
2718         (CHARSET_TYPE_96X96): Deleted.
2719         (CHARSET_TYPE_128): Deleted.
2720         (CHARSET_TYPE_128X128): Deleted.
2721         (CHARSET_TYPE_256): Deleted.
2722         (CHARSET_TYPE_256X256): Deleted.
2723         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2724         to inline function.
2725         (DECODE_MOJIKYO_2022): New inline function.
2726         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2727         `Vcharset_mojikyo_2022_1'.
2728
2729 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2730
2731         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2732         instead of `EQ'.
2733         (put_byte_table): Likewise.
2734         (char_id_table_equal): Use `get_byte_table' [new implementation].
2735
2736 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2737
2738         * mule-charset.c: Include <limits.h> in UTF-2000.
2739         (BT_UINT8_MIN): New macro in UTF-2000.
2740         (BT_UINT8_MAX): New macro in UTF-2000.
2741         (BT_UINT8_t): New macro in UTF-2000.
2742         (BT_UINT8_nil): New macro in UTF-2000.
2743         (BT_UINT8_unbound): New macro in UTF-2000.
2744         (INT_UINT8_P): New inline function in UTF-2000.
2745         (UINT8_VALUE_P): New inline function in UTF-2000.
2746         (UINT8_ENCODE): New inline function in UTF-2000.
2747         (UINT8_DECODE): New inline function in UTF-2000.
2748         (mark_uint8_byte_table): New function in UTF-2000.
2749         (print_uint8_byte_table): New function in UTF-2000.
2750         (uint8_byte_table_equal): New function in UTF-2000.
2751         (uint8_byte_table_hash): New function in UTF-2000.
2752         (make_uint8_byte_table): New function in UTF-2000.
2753         (uint8_byte_table_same_value_p): New function in UTF-2000.
2754         (BT_UINT16_MIN): New macro in UTF-2000.
2755         (BT_UINT16_MAX): New macro in UTF-2000.
2756         (BT_UINT16_t): New macro in UTF-2000.
2757         (BT_UINT16_nil): New macro in UTF-2000.
2758         (BT_UINT16_unbound): New macro in UTF-2000.
2759         (INT_UINT16_P): New inline function in UTF-2000.
2760         (UINT16_VALUE_P): New inline function in UTF-2000.
2761         (UINT16_ENCODE): New inline function in UTF-2000.
2762         (UINT16_DECODE): New inline function in UTF-2000.
2763         (UINT8_TO_UINT16): New inline function in UTF-2000.
2764         (mark_uint16_byte_table): New function in UTF-2000.
2765         (print_uint16_byte_table): New function in UTF-2000.
2766         (uint16_byte_table_equal): New function in UTF-2000.
2767         (uint16_byte_table_hash): New function in UTF-2000.
2768         (make_uint16_byte_table): New function in UTF-2000.
2769         (uint16_byte_table_same_value_p): New function in UTF-2000.
2770         (print_byte_table): New function in UTF-2000.
2771         (byte-table): Use `print_byte_table' as printer.
2772         (make_byte_table): Delete second argument `older'.
2773         (byte_table_same_value_p): New function in UTF-2000.
2774         (copy_byte_table): Deleted.
2775         (get_byte_table): New function in UTF-2000.
2776         (put_byte_table): New function in UTF-2000.
2777         (print_char_id_table): New function in UTF-2000.
2778         (char-id-table): Use `print_char_id_table' as printer.
2779         (make_char_id_table): Delete second argument `older'.
2780         (get_char_id_table): Use `get_byte_table [new implementation].
2781         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2782         implementation].
2783         (Ffind_char_attribute_table): New function in UTF-2000.
2784         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2785         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2786         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2787         (syms_of_mule_charset): Add new function
2788         `find-char-attribute-table' in UTF-2000.
2789
2790         * lrecord.h (enum lrecord_type): Add
2791         `lrecord_type_uint16_byte_table' and
2792         `lrecord_type_uint8_byte_table'.
2793
2794         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2795         (Lisp_Uint8_Byte_Table): New type.
2796         (XUINT8_BYTE_TABLE): New macro.
2797         (XSETUINT8_BYTE_TABLE): New macro.
2798         (UINT8_BYTE_TABLE_P): New macro.
2799         (GC_UINT8_BYTE_TABLE_P): New macro.
2800         (struct Lisp_Uint16_Byte_Table): New structure.
2801         (Lisp_Uint16_Byte_Table): New type.
2802         (XUINT16_BYTE_TABLE): New macro.
2803         (XSETUINT16_BYTE_TABLE): New macro.
2804         (UINT16_BYTE_TABLE_P): New macro.
2805         (GC_UINT16_BYTE_TABLE_P): New macro.
2806
2807 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2808
2809         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2810         (Vcharacter_ideographic_strokes_table): Deleted.
2811         (Vcharacter_total_strokes_table): Deleted.
2812         (Vcharacter_morohashi_daikanwa_table): Deleted.
2813         (Vcharacter_decomposition_table): Deleted.
2814         (Qname): Deleted because it is duplicated.
2815         (Qideographic_radical): Deleted.
2816         (Qideographic_strokes): Deleted.
2817         (Qtotal_strokes): Deleted.
2818         (Qmorohashi_daikanwa): Deleted.
2819         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2820         `ideographic-radical', `ideographic-strokes', `total-strokes',
2821         `morohashi-daikanwa' and `->decomposition'.
2822         (Fget_char_attribute): Likewise.
2823         (Fput_char_attribute): Likewise; use `make-vector' instead of
2824         `make_older_vector' for `->decomposition' value.
2825         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2826         `ideograph-daikanwa'.
2827         (syms_of_mule_charset): Delete builtin symbols `name',
2828         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2829         `morohashi-daikanwa'.
2830         (vars_of_mule_charset): Don't setup
2831         `Vcharacter_ideographic_radical_table',
2832         `Vcharacter_ideographic_strokes_table',
2833         `Vcharacter_total_strokes_table',
2834         `Vcharacter_morohashi_daikanwa_table' and
2835         `Vcharacter_decomposition_table'.
2836
2837 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2838
2839         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2840         `make_older_vector', `make_vector_newer_1' and
2841         `make_vector_newer'.
2842
2843         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2844         `make_older_vector' and `make_vector_newer'.
2845
2846         * config.h.in (HAVE_GGC): New macro.
2847
2848 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2849
2850         * mule-charset.c (struct char_attribute_list_closure): New
2851         structure in UTF-2000.
2852         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2853         (Fchar_attribute_list): Likewise.
2854         (Fset_charset_mapping_table): Use `make_vector_newer'.
2855         (Fdecode_builtin_char): New function in UTF-2000.
2856         (syms_of_mule_charset): Add new function `char-attribute-list' and
2857         `decode-builtin-char' in UTF-2000.
2858
2859         * lisp.h (make_vector_newer): New prototype.
2860
2861         * alloc.c (make_vector_newer_1): New function.
2862         (make_vector_newer): New function.
2863
2864 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2865
2866         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2867         50100)'.
2868
2869 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2870
2871         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2872         (Vcharacter_attribute_table): Deleted.
2873         (Vcharacter_name_table): Deleted.
2874         (put_char_attribute): Deleted.
2875         (remove_char_attribute): Deleted.
2876         (struct char_attribute_alist_closure): New structure.
2877         (add_char_attribute_alist_mapper): New function.
2878         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2879         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2880         (Fget_char_attribute): Likewise.
2881         (Fput_char_attribute): Likewise.
2882         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2883         of `remove_char_attribute'.
2884         (Fdefine_char): Return character.
2885         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2886         and `Vcharacter_name_table'.
2887         (complex_vars_of_mule_charset): Likewise
2888         `Vchar_attribute_hash_table'.
2889
2890 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2891
2892         * character.h (CHARC_CHARSET): New macro.
2893         (CHARC_CHARSET_ID): New macro.
2894         (CHARC_CODE_POINT): New macro.
2895         (CHARC_COLUMNS): New macro.
2896         (CHARC_TO_CHAR): New inline function.
2897         (CHARC_EQ): New inline function.
2898         (CHARC_ASCII_EQ): New inline function.
2899         (CHARC_IS_SPACE): New inline function.
2900         (ASCII_TO_CHARC): New inline function.
2901
2902         * char-ucs.h (encode_char_2): Deleted.
2903         (ENCODE_CHAR): Use `encode_char_1' again.
2904         (breakup_char_1): Likewise.
2905         (CHAR_TO_CHARC): New inline function.
2906
2907         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2908
2909 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2910
2911         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2912         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2913         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2914         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2915         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2916         `CHARC_IS_SPACE'.
2917         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2918
2919         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2920         `CHARC_CODE_POINT'.
2921         (x_output_display_block): Use `CHARC_CHARSET' and
2922         `CHARC_ASCII_EQ'.
2923
2924         * redisplay-tty.c (tty_output_display_block): Use
2925         `CHARC_ASCII_EQ'.
2926         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2927
2928         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2929
2930         * insdel.c (find_charsets_in_charc_string): Use
2931         `CHARC_CHARSET_ID'.
2932         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2933         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2934         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2935         (convert_charc_string_into_malloced_string): Likewise.
2936
2937 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2938
2939         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2940         instead of <Emchar_dynarr *> for buf; use
2941         `convert_bufbyte_string_into_charc_dynarr' instead of
2942         `convert_bufbyte_string_into_emchar_dynarr'; use
2943         `find_charsets_in_charc_string' instead of
2944         `find_charsets_in_emchar_string'.
2945
2946         * redisplay.h:
2947         - Include "character.h".
2948         (struct rune): New member `cglyph'; delete member `chr'.
2949
2950         * redisplay.c (redisplay_text_width_charc_string): New function;
2951         delete `redisplay_text_width_emchar_string'.
2952         (rtw_charc_dynarr): New variable; renamed from
2953         `rtw_emchar_dynarr'.
2954         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2955         `rtw_emchar_dynarr'; use
2956         `convert_bufbyte_string_into_charc_dynarr' instead of
2957         `convert_bufbyte_string_into_emchar_dynarr'; use
2958         `redisplay_text_width_charc_string' instead of
2959         `redisplay_text_width_emchar_string'.
2960         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2961         instead of `rtw_emchar_dynarr'; use
2962         `convert_bufbyte_string_into_charc_dynarr' instead of
2963         `convert_bufbyte_string_into_emchar_dynarr'.
2964         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2965         `redisplay_text_width_charc_string' instead of
2966         `redisplay_text_width_emchar_string'.
2967         (create_text_block): Modify for <struct rune> change.
2968         (generate_formatted_string_db): Likewise.
2969         (create_string_text_block): Likewise.
2970         (pixel_to_glyph_translation): Likewise.
2971
2972         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2973         instead of <const Emchar *>.
2974         (x_text_width): Likewise.
2975         (x_output_display_block): Use <Charc_dynarr *> instead
2976         <Emchar_dynarr *>; modify for <structure rune> change.
2977         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2978         *>.
2979
2980         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2981         <const Emchar *>; use `charc_string_displayed_columns' instead of
2982         `emchar_string_displayed_columns'.
2983         (tty_output_display_block): Use <Charc_dynarr *> instead of
2984         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2985         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2986         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2987         `tty_output_emchar_dynarr_dynarr'.
2988         (tty_output_charc_dynarr): New function; delete
2989         `tty_output_charc_dynarr'.
2990
2991         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2992         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2993         <Emchar_dynarr *> for buf; use
2994         `convert_bufbyte_string_into_charc_dynarr' instead of
2995         `convert_bufbyte_string_into_emchar_dynarr'.
2996
2997         * frame.c (title_string_charc_dynarr): New variable; renamed from
2998         `title_string_emchar_dynarr'.
2999         (generate_title_string): Use `title_string_charc_dynarr' instead
3000         of `title_string_emchar_dynarr'; use
3001         `convert_charc_string_into_malloced_string' instead of
3002         `convert_emchar_string_into_malloced_string'.
3003         (init_frame): Use `title_string_charc_dynarr' instead of
3004         `title_string_emchar_dynarr'.
3005
3006         * console.h:
3007         - Include "character.h".
3008         (struct console_methods): Use <const Charc *> instead of <const
3009         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3010         <Emchar_dynarr *> in output_string_method.
3011
3012         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3013         <Emchar_dynarr *>.
3014
3015         * console-stream.c (stream_text_width): Use <const Charc *>
3016         instead of <const Emchar *>.
3017
3018         * character.h (Charc_dynarr): New type.
3019
3020         * char-ucs.h (structure Charc): New structure; define new type
3021         `Charc'.
3022
3023         * char-lb.h (DECODE_CHAR): New inline function.
3024         (encode_char_1): New inline function.
3025         (ENCODE_CHAR): New macro.
3026         (structure Charc): New structure; define new type `Charc'.
3027
3028         * char-1byte.h (Vcharset_control_1): New macro.
3029         (Vcharset_latin_iso8859_1): New macro.
3030         (DECODE_CHAR): New inline function.
3031         (encode_char_1): New inline function.
3032         (ENCODE_CHAR): New macro.
3033         (structure Charc): New structure; define new type `Charc'.
3034
3035         * insdel.c (find_charsets_in_charc_string): New function; delete
3036         `find_charsets_in_emchar_string'.
3037         (charc_string_displayed_columns): New function; delete
3038         `emchar_string_displayed_columns'.
3039         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3040         `convert_bufbyte_string_into_emchar_dynarr'.
3041         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3042         `convert_charc_string_into_bufbyte_dynarr'.
3043         (convert_charc_string_into_malloced_string): New function; delete
3044         `convert_charc_string_into_malloced_string'.
3045
3046         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3047         `find_charsets_in_emchar_string'.
3048         (charc_string_displayed_columns): New prototype; delete
3049         `emchar_string_displayed_columns'.
3050         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3051         `convert_charc_string_into_bufbyte_dynarr'.
3052         (convert_charc_string_into_malloced_string): New prototype; delete
3053         `convert_charc_string_into_malloced_string'.
3054
3055 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3056
3057         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3058
3059 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3060
3061         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3062
3063         * char-ucs.h: Use <short> for <Charset_ID>.
3064
3065         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3066         <Charset_ID>.
3067
3068 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3069
3070         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3071         to 0.16.
3072
3073 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3074
3075         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3076         variable.
3077         (Qmorohashi_daikanwa): New variable.
3078         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3079         for `morohashi-daikanwa' attribute.
3080         (Fget_char_attribute): Likewise.
3081         (Fput_char_attribute): Likewise.
3082         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3083         has the same value of `ideograph-daikanwa'.
3084         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3085         (vars_of_mule_charset): Setup
3086         `Vcharacter_morohashi_daikanwa_table'.
3087
3088 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3089
3090         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3091         attributes.
3092         (add_charset_to_list_mapper): Add `key' instead of
3093         `XCHARSET_NAME (value)' to return aliases.
3094
3095 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3096
3097         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3098         variable.
3099         (Vcharacter_ideographic_strokes_table): New variable.
3100         (Qideographic_radical): New variable.
3101         (Qideographic_strokes): New variable.
3102         (Fchar_attribute_alist): Use
3103         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3104         attribute; use `Vcharacter_ideographic_strokes_table' for
3105         `ideographic-strokes' attribute.
3106         (Fget_char_attribute): Likewise.
3107         (Fput_char_attribute): Likewise.
3108         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3109         `ideographic-strokes'.
3110         (vars_of_mule_charset): Setup
3111         `Vcharacter_ideographic_radical_table' and
3112         `Vcharacter_ideographic_strokes_table'.
3113
3114 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3115
3116         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3117         (Qtotal_strokes): New variable.
3118         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3119         `total-strokes' attribute.
3120         (Fget_char_attribute): Likewise.
3121         (Fput_char_attribute): Likewise.
3122         (syms_of_mule_charset): Add new symbol `total-strokes'.
3123         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3124
3125 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3126
3127         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3128         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3129         are found.
3130         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3131         `->decomposition' attribute.
3132         (Fput_char_attribute): Likewise.
3133         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3134
3135 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3136
3137         * mule-charset.c (decoding_table_check_elements): New function.
3138         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3139
3140 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3141
3142         * mule-charset.c (Fset_charset_mapping_table): Use
3143         `put_char_ccs_code_point'.
3144
3145 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3146
3147         * mule-charset.c (decoding_table_put_char): New inline function.
3148         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3149
3150 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3151
3152         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3153         (XCHARSET_BYTE_SIZE): New macro.
3154         (decoding_table_remove_char): New inline function.
3155         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3156         `decoding_table_remove_char'.
3157         (remove_char_ccs): Use `decoding_table_remove_char'.
3158         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3159
3160 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3161
3162         * mule-charset.c (Vcharacter_name_table): New variable.
3163         (Qname): New variable.
3164         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3165         attribute.
3166         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3167         `Vcharacter_name_table' for `name' attribute.
3168         (Fremove_char_attribute): Use function `remove_char_ccs'.
3169         (put_char_ccs_code_point): New function.
3170         (remove_char_ccs): New function.
3171         (syms_of_mule_charset): Add new symbol `name'.
3172         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3173
3174 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3175
3176         * mule-charset.c (make_byte_table): Add new argument `older'.
3177         (make_char_id_table): Likewise.
3178         (copy_char_id_table): Comment out because it is not used.
3179         (put_char_id_table): Modify for `make_byte_table'.
3180         (Fput_char_attribute): Make encoding_table as older object;
3181         inherit older bit of `Vcharacter_composition_table'.
3182         (mark_charset): Don't mark `cs->encoding_table'.
3183         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3184         normal object; make `Vcharacter_composition_table' as an older
3185         object; delete staticpro for `Vcharacter_composition_table'; make
3186         `Vcharacter_variant_table' as a normal object.
3187
3188         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3189         (mark_object): Don't check older object in UTF-2000.
3190
3191         * lrecord.h (struct lrecord_header): Add new member `older' in
3192         UTF-2000.
3193         (set_lheader_implementation): Setup `SLI_header->older' in
3194         UTF-2000.
3195         (set_lheader_older_implementation): New macro in UTF-2000.
3196         (OLDER_RECORD_P): New macro in UTF-2000.
3197         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3198         (alloc_older_lcrecord): New prototype in UTF-2000.
3199         (alloc_older_lcrecord_type): New macro in UTF-2000.
3200
3201 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3202
3203         * mule-charset.c (byte_table_description): Use
3204         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3205         (char_id_table_description): Delete bogus `, 1'.
3206         (Fget_char_attribute): Refer encoding_table of each coded-charset
3207         to get value of coded-charset attribute of a character.
3208         (Fput_char_attribute): Use `make_older_vector' instead of
3209         `make_vector'; use encoding_table of each coded-charset to store
3210         value of coded-charset attribute of a character.
3211         (Fremove_char_attribute): Use encoding_table of each coded-charset
3212         to store value of coded-charset attribute of a character.
3213         (mark_charset): Mark `cs->encoding_table'; don't mark
3214         `cs->decoding_table'.
3215         (charset_description): Add description of new member
3216         `encoding_table'.
3217         (make_charset): Initialize `encoding_table'.
3218
3219         * char-ucs.h (struct Lisp_Charset): Add new member
3220         `encoding_table'.
3221         (CHARSET_ENCODING_TABLE): New macro.
3222         (XCHARSET_ENCODING_TABLE): New macro.
3223         (charset_code_point): New implementation.
3224         (encode_char_1): Likewise.
3225
3226         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3227         (disksave_object_finalization_1): Call finalizers of
3228         `all_older_lcrecords' in UTF-2000.
3229         (make_older_vector): New function in UTF-2000.
3230         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3231         UTF-2000.
3232
3233         * lisp.h (make_older_vector): New prototype in UTF-2000.
3234
3235 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3236
3237         * lrecord.h (enum lrecord_type): Rename
3238         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3239
3240         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3241         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3242         `get_char_code_table'.
3243
3244         * mule-charset.c (mark_char_id_table): Renamed from
3245         `mark_char_code_table'.
3246         (char_id_table_equal): Renamed from `char_code_table_equal'.
3247         (char_id_table_hash): Renamed from `char_code_table_hash'.
3248         (make_char_id_table): Renamed from `make_char_code_table'.
3249         (copy_char_id_table): Renamed from `copy_char_code_table'.
3250         (get_char_id_table): Renamed from `get_char_code_table'.
3251         (put_char_id_table): Renamed from `put_char_code_table'.
3252         (to_char_id): Renamed from `to_char_code'.
3253
3254         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3255         `Lisp_Char_Code_Table'.
3256         (char_id_table): Renamed from `char_code_table'.
3257         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3258         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3259         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3260         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3261         (get_char_id_table): Renamed from `get_char_code_table'.
3262
3263 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3264
3265         * lrecord.h (enum lrecord_type): Rename
3266         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3267
3268         * mule-charset.c (mark_byte_table): Renamed from
3269         `mark_char_byte_table'.
3270         (byte_table_equal): Renamed from `char_byte_table_equal'.
3271         (byte_table_hash): Renamed from `byte_table_hash'.
3272         (make_byte_table): Renamed from `make_byte_table'.
3273         (copy_byte_table): Renamed from `copy_char_byte_table'.
3274
3275         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3276         `Lisp_Char_Byte_Table'.
3277         (byte_table): Renamed from `char_byte_table'.
3278         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3279         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3280         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3281         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3282
3283 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3284
3285         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3286         (dfc_convert_to_internal_format): Likewise.
3287         
3288         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3289         * text-coding.c (Fcoding_system_alias_p): New function.
3290         * text-coding.c (Fcoding_system_aliasee): New function.
3291         * text-coding.c (append_suffix_to_symbol): New function.
3292         * text-coding.c (dangling_coding_system_alias_p): New function.
3293         * text-coding.c (Ffind_coding_system):
3294         * text-coding.c (Fcopy_coding_system):
3295         * text-coding.c (encode_coding_no_conversion):
3296         * text-coding.c (syms_of_file_coding):
3297         * text-coding.c (vars_of_file_coding):
3298         Rewrite coding system alias code.
3299         Allow nested aliases, like symbolic links.
3300         Allow redefinition of coding system aliases.
3301         Prevent existence of dangling coding system aliases.
3302         Eliminate convert_to_external_format.
3303         Eliminate convert_to_internal_format.
3304         
3305         * text-coding.c: Change enum eol_type to eol_type_t.
3306
3307 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3308
3309         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3310         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3311
3312         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3313         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3314
3315 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3316
3317         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3318         `ideograph-daikanwa'.
3319
3320         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3321         (Vcharset_ucs_bmp): Likewise.
3322         (Vcharset_mojikyo): Add new extern variable definition.
3323         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3324         (Vcharset_latin_iso8859_3): Likewise.
3325         (Vcharset_latin_iso8859_4): Likewise.
3326         (Vcharset_latin_iso8859_9): Likewise.
3327         (Vcharset_latin_viscii_lower): Likewise.
3328         (Vcharset_latin_viscii_upper): Likewise.
3329         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3330         `mojikyo' code-point is used to decode.
3331         (encode_char_2): New function [to convert `mojikyo' code-point to
3332         Mojikyo font encoding].
3333         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3334         (breakup_char_1): Likewise.
3335         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3336
3337 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3338
3339         * text-coding.c (Fmake_coding_system): Add document about
3340         `disable-composition' property.
3341
3342 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3343
3344         * text-coding.c (Qdisable_composition): New variable; delete
3345         `Qcomposite'.
3346         (Fmake_coding_system): Add new property `disable-composite';
3347         delete property `composite'.
3348         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3349         instead of `!CODING_SYSTEM_COMPOSITE'.
3350         (syms_of_file_coding): Add new symbol `disable-composition';
3351         delete symbol `composite'.
3352
3353         * file-coding.h (struct Lisp_Coding_System): Add
3354         `disable_composition'; delete `enable_composition'.
3355         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3356         `CODING_SYSTEM_COMPOSITE'.
3357         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3358         `XCODING_SYSTEM_COMPOSITE'.
3359
3360 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3361
3362         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3363         to 0.15.
3364
3365 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3366
3367         * text-coding.c (Qcomposite): New variable.
3368         (Fmake_coding_system): Add new property `composite'.
3369         (struct decoding_stream): Add `combined_char_count',
3370         `combined_chars' and `combining_table' in UTF-2000.
3371         (COMPOSE_FLUSH_CHARS): New macro.
3372         (COMPOSE_ADD_CHAR): New macro.
3373         (reset_decoding_stream): Reset `str->combined_char_count' and
3374         `str->combining_table' in UTF-2000.
3375         (decode_coding_iso2022): Modify for character-decomposition.
3376         (syms_of_file_coding): Add new symbol `composite'.
3377
3378 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3379
3380         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3381         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3382         of `Vcharacter_composition_table' if `->decomposition' property
3383         has only 1 element.
3384         (Qlatin_tcvn5712): New variable.
3385         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3386         (complex_vars_of_mule_charset): Add new coded-charset
3387         `latin-tcvn5712'.
3388
3389         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3390
3391 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3392
3393         * file-coding.h (struct Lisp_Coding_System): Add
3394         `enable_composition'.
3395         (CODING_SYSTEM_COMPOSITE): New macro.
3396         (XCODING_SYSTEM_COMPOSITE): New macro.
3397
3398 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3399
3400         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3401
3402 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3403
3404         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3405         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3406
3407 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3408
3409         * mule-charset.c (Vcharset_mojikyo): New variable.
3410         (Fdefine_char): Don't use coded-charset which does not have
3411         non-builtin character range to allocate character-id.
3412         (Qmojikyo): New variable.
3413         (syms_of_mule_charset): Add new symbol `mojikyo'.
3414         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3415
3416         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3417         (LEADING_BYTE_MOJIKYO): New macro.
3418         (MIN_CHAR_MOJIKYO): New macro.
3419         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3420         (MAX_CHAR_MOJIKYO): New macro.
3421
3422 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3423
3424         * mule-charset.c (remove_char_attribute): Fixed.
3425
3426 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3427
3428         * mule-charset.c (remove_char_attribute): New function.
3429         (Fremove_char_attribute): New function.
3430         (encode_builtin_char_1): Comment out builtin-support for
3431         greek-iso8859-7 and cyrillic-iso8859-5.
3432         (Fdecode_char): Check `code' is an integer.
3433         (syms_of_mule_charset): Add `remove-char-attribute'.
3434         (MIN_CHAR_GREEK): Deleted.
3435         (MAX_CHAR_GREEK): Likewise.
3436         (MIN_CHAR_CYRILLIC): Likewise.
3437         (MAX_CHAR_CYRILLIC): Likewise.
3438         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3439         MAX_CHAR_GREEK for `greek-iso8859-7'.
3440
3441         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3442         (MAX_CHAR_GREEK): Likewise.
3443         (MIN_CHAR_CYRILLIC): Likewise.
3444         (MAX_CHAR_CYRILLIC): Likewise.
3445
3446 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3447
3448         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3449         format is used without `ucs' property.
3450         (Fdecode_char): Fix problem with GR representation.
3451         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3452         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3453
3454 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3455
3456         * mule-charset.c (make_builtin_char): New function.
3457         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3458         (Fset_charset_mapping_table): Modify for new representation of
3459         code-point.
3460         (Fdecode_char): New function.
3461         (syms_of_mule_charset): Add new builtin function `decode-char' in
3462         UTF-2000.
3463
3464         * char-ucs.h (make_builtin_char): New prototype.
3465         (DECODE_CHAR): New inline function.
3466         (MAKE_CHAR): Use `DECODE_CHAR'.
3467
3468 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3469
3470         * text-coding.c (parse_charset_conversion_specs): Use
3471         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3472         `XCHARSET_TYPE'.
3473         (iso2022_designate): Likewise.
3474
3475         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3476         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3477
3478         * mule-charset.c (Vcharset_ucs): New variable.
3479         (print_charset): Change design; use `CHARSET_CHARS' and
3480         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3481         (make_charset): Change signature to specify `chars' and
3482         `dimension' instead of `type'.
3483         (range_charset_code_point): Modify for 256^n-set.
3484         (encode_builtin_char_1): Encode as `ucs' in default.
3485         (Fmake_charset): Modify for `make_charset'.
3486         (Fmake_reverse_direction_charset): Likewise.
3487         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3488         UTF-2000.
3489         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3490         for `make_charset'.
3491
3492         * char-ucs.h (Vcharset_ucs): New variable.
3493         (LEADING_BYTE_UCS): New macro.
3494         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3495         and `chars' to `unsigned short' from `unsigned int'.
3496         (CHARSET_TYPE): Deleted.
3497         (XCHARSET_TYPE): Deleted.
3498
3499 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3500
3501         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3502
3503         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3504         (ENCODE_CHAR): New macro.
3505
3506 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3507
3508         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3509         to 0.14 (Kawachi-Katakami).
3510
3511 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3512
3513         * text-coding.c (char_encode_shift_jis): Modify for
3514         `charset_code_point'.
3515         (char_encode_iso2022): Likewise.
3516
3517         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3518         (integer) instead of list of <Lisp_Object>s (integers) as the
3519         format of code-point of a coded-charset.
3520         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3521         (encode_builtin_char_1): New function; delete
3522         `split_builtin_char'.
3523         (charset_code_point): Return <int> instead of <Lisp_Object>.
3524         (Fsplit_char): Don't use `SPLIT_CHAR'.
3525
3526         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3527         prototype for `split_builtin_char'.
3528         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3529         (charset_code_point): Likewise.
3530         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3531         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3532
3533 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3534
3535         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3536         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3537
3538 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3539
3540         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3541
3542         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3543         (MAX_CHAR_OBS_94x94): Deleted.
3544
3545 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3546
3547         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3548
3549         * char-ucs.h (MAX_CHAR_BMP): New macro.
3550
3551 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3552
3553         * text-coding.c: Sync with r21-2-24.
3554
3555 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3556
3557         * file-coding.c: Modify for UTF-2000.
3558
3559 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3560
3561         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3562         to 0.13 (Takaida).
3563
3564 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3565
3566         * mule-charset.c (split_builtin_char): Delete builtin support for
3567         `katakana-jisx0201'.
3568         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3569         BMP area in builtin representation.
3570
3571         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3572         `Vcharset_katakana_jisx0201'.
3573
3574 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3575
3576         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3577         (Qisolated): New variable.
3578         (Qinitial): New variable.
3579         (Qmedial): New variable.
3580         (Qfinal): New variable.
3581         (Qvertical): New variable.
3582         (Qsmall): New variable.
3583         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3584         `Qvertical' and `Qsmall'.
3585         (Qmojikyo_pj_[1 .. 21]): New variable.
3586         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3587         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3588         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3589         .. 21]'.
3590
3591 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3592
3593         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3594         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3595         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3596
3597 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3598
3599         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3600         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3601         BMP.
3602         (Qjapanese_jisx0208_1990): New variable.
3603         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3604         (complex_vars_of_mule_charset): Add new coded-charset
3605         `japanese-jisx0208-1990'.
3606
3607         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3608         (MIN_CHAR_JIS_X0208_1990): New macro.
3609         (MAX_CHAR_JIS_X0208_1990): New macro.
3610
3611 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3612
3613         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3614         coded-charset is not found.
3615
3616 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3617
3618         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3619         (Fdefine_char): Use `Fmake_char'.
3620
3621 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3622
3623         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3624         (Vcharset_hiragana_jisx0208): Deleted.
3625         (Vcharset_katakana_jisx0208): Deleted.
3626         (Qideograph_daikanwa): New variable.
3627         (Qhiragana_jisx0208): Deleted.
3628         (Qkatakana_jisx0208): Deleted.
3629         (split_builtin_char): Split `ideograph-daikanwa'.
3630         (Fsplit_char): New implementation for UTF-2000.
3631         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3632         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3633         (complex_vars_of_mule_charset): Add new coded-charset
3634         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3635         `katakana-jisx0208'.
3636
3637         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3638         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3639         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3640         (MIN_CHAR_DAIKANWA): New macro.
3641         (MAX_CHAR_DAIKANWA): New macro.
3642
3643 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3644
3645         * data.c (Fstring_to_number): Don't recognize floating point if
3646         base is not 10.
3647
3648 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3649
3650         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3651
3652 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3653
3654         * mule-charset.c (Qsquare): New variable.
3655         (to_char_code): Add `Qsquare'.
3656         (syms_of_mule_charset): Add new symbol `square'.
3657
3658 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3659
3660         * mule-charset.c (Qcircle): New variable.
3661         (to_char_code): Add `Qcircle'.
3662         (syms_of_mule_charset): Add new symbol `circle'.
3663
3664 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3665
3666         * mule-charset.c (Qfont): New variable.
3667         (to_char_code): Add `Qfont'.
3668         (syms_of_mule_charset): Add new symbol `font'.
3669
3670 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3671
3672         * mule-charset.c (Qsub): New variable.
3673         (to_char_code): Add `Qsub'.
3674         (syms_of_mule_charset): Add new symbol `sub'.
3675
3676 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3677
3678         * mule-charset.c (Fput_char_attribute): Convert each element of
3679         VALUE to GL position if ATTRIBUTE is a GR-set,
3680
3681 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3682
3683         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3684         coded-charset is a GR-set.
3685
3686 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3687
3688         * mule-charset.c (Fput_char_attribute): Check each element of
3689         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3690
3691 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3692
3693         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3694         UTF-2000.
3695         (Qethiopic_ucs): New variable in UTF-2000.
3696         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3697         (complex_vars_of_mule_charset): Add new coded-charset
3698         `ethiopic-ucs' in UTF-2000.
3699
3700         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3701         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3702         9)'.
3703         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3704         10)'.
3705         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3706
3707 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3708
3709         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3710         `ascii'.
3711
3712 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3713
3714         * mule-charset.c (Vcharacter_variant_table): New variable.
3715         (Q_ucs): New variable.
3716         (Fchar_variants): New function.
3717         (Fput_char_attribute): Register `->ucs' value to
3718         `Vcharacter_variant_table'.
3719         (syms_of_mule_charset): Add new function `char-variants' and new
3720         symbol `->ucs'.
3721         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3722
3723 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3724
3725         * mule-charset.c (get_char_code_table): Allow negative character
3726         code.
3727         (put_char_code_table): Likewise.
3728         (Vcharacter_composition_table): New variable.
3729         (Q_decomposition): New variable.
3730         (Qwide): New variable.
3731         (Qnarrow): New variable.
3732         (Qcompat): New variable.
3733         (QnoBreak): New variable.
3734         (Qsuper): New variable.
3735         (Qfraction): New variable.
3736         (to_char_code): New function.
3737         (Fget_composite_char): New function.
3738         (Fput_char_attribute): Register `->decomposition' value to
3739         `Vcharacter_composition_table'.
3740         (syms_of_mule_charset): Add new function `get-composite-char', new
3741         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3742         `super' and `fraction'.
3743         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3744
3745 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3746
3747         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3748         character; copy the return value.
3749
3750 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3751
3752         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3753
3754         * mule-charset.c (range_charset_code_point): Must use make_int.
3755         (split_builtin_char): New function.
3756
3757 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3758
3759         * mule-charset.c (char_byte_table): Change name from
3760         "char-code-table" to "char-byte-table".
3761         (mark_char_code_table): New function.
3762         (char_code_table_equal): New function.
3763         (char_code_table_hash): New function.
3764         (char_code_table_description): New constant.
3765         (char_code_table): New type.
3766         (make_char_code_table): New function.
3767         (copy_char_code_table): New function.
3768         (get_char_code_table): Modify for `char_code_table' type.
3769         (put_char_code_table): Likewise.
3770         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3771         (Kashiwara).
3772
3773         * char-ucs.h (char_code_table): New type.
3774         (XCHAR_CODE_TABLE): New macro.
3775         (XSETCHAR_CODE_TABLE): New macro.
3776         (CHAR_CODE_TABLE_P): New macro.
3777         (GC_CHAR_CODE_TABLE_P): New macro.
3778         (struct Lisp_Char_Code_Table): New structure.
3779
3780 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3781
3782         * mule-charset.c (Fmake_charset): Setup byte_offset for
3783         {94|96}^n-set.
3784
3785 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3786
3787         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3788         character.
3789
3790 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3791
3792         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3793         is found.
3794
3795 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3796
3797         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3798         charset, it is regarded as a charset.
3799         (put_char_attribute): New function in UTF-2000.
3800         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3801         charset, mapping-table of the charset is modified.
3802         (Fdefine_char): New function in UTF-2000.
3803         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3804         `Fput_char_attribute'.
3805         (syms_of_mule_charset): Add new function `define-char' and new
3806         symbol `ucs' in UTF-2000.
3807         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3808
3809 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3810
3811         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3812         non-UTF-2000 configuration.
3813
3814 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3815
3816         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3817         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3818
3819         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3820         deleted.
3821         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3822         (Fset_charset_mapping_table): Likewise.
3823
3824         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3825         (CHARSET_ENCODING_TABLE): Delete.
3826         (XCHARSET_ENCODING_TABLE): Delete.
3827         (charset_code_point): New interface.
3828
3829 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3830
3831         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3832         instead of `charset_get_byte1' and `charset_get_byte2'.
3833
3834         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3835         (charset_get_byte2): Deleted.
3836
3837 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3838
3839         * char-ucs.h (SPLIT_CHAR): New inline function.
3840         (breakup_char_1): Use `SPLIT_CHAR'.
3841
3842         * mule-charset.c (range_charset_code_point): New function.
3843         (charset_code_point): New function.
3844
3845         * char-ucs.h (range_charset_code_point): New interface.
3846         (breakup_char_1): Use `range_charset_code_point'.
3847
3848 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3849
3850         * mule-charset.c (Fmake_charset): Delete unused local variable
3851         `code_offset'.
3852
3853         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3854         (breakup_char_1): Find a charset and code-point in
3855         `Vcharacter_attribute_table'.
3856
3857 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3858
3859         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3860         to 0.10 (Yao).
3861
3862 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3863
3864         * mule-charset.c (Vcharacter_attribute_table): New variable.
3865         (Fchar_attribute_alist): New function.
3866         (Fget_char_attribute): New function.
3867         (Fput_char_attribute): New function.
3868         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3869         too.
3870         (syms_of_mule_charset): Add new function `char-attribute-alist',
3871         `get-char-attribute' and `put-char-attribute'.
3872         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3873
3874 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3875
3876         * mule-charset.c (Fmake_charset): Just use
3877         `get_unallocated_leading_byte'.
3878
3879         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3880         sets; don't use final-byte based number for private sets.
3881
3882 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3883
3884         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3885         integer.
3886
3887 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3888
3889         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3890         to 0.9.
3891
3892 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3893
3894         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3895         of `CHAR_LEADING_BYTE' in UTF-2000.
3896
3897         * insdel.c (find_charsets_in_bufbyte_string): Use
3898         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3899         (find_charsets_in_emchar_string): Likewise.
3900
3901         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3902         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3903
3904         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3905         (CHAR_CHARSET_ID): New macro.
3906
3907 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3908
3909         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3910         charset-id - MIN_LEADING_BYTE.
3911         (put_char_table): Likewise.
3912
3913 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3914
3915         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3916         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3917         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3918         (CHARSET_ID_OFFSET): New macro.
3919         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3920         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3921         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3922         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3923         4).
3924         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3925         5).
3926         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3927         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3928         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3929         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3930         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3931
3932 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3933
3934         * mule-charset.c (next_allocated_leading_byte): New variable in
3935         UTF-2000.
3936         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3937         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3938         (get_unallocated_leading_byte): Simply use
3939         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3940         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3941         UTF-2000.
3942
3943         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3944         (MAX_LEADING_BYTE_PRIVATE): New macro.
3945         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3946         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3947
3948 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3949
3950         * mule-charset.c (Fmake_charset): Allocate final-byte based
3951         charset-id for 94-set, 96-set and 94x94-set.
3952
3953 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3954
3955         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3956         ambiguous `else'.
3957         (Fmake_charset): Likewise.
3958         (complex_vars_of_mule_charset): Modify the font registry of
3959         `ucs-bmp' not to match `Ethiopic-Unicode'.
3960
3961 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3962
3963         * mule-charset.c (complex_vars_of_mule_charset): Add font
3964         registory of `ucs-bmp'.
3965
3966 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3967
3968         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3969         coded-charsets in `default-coded-charset-priority-list' when
3970         breaking up a character.
3971
3972         * mule-charset.c (Vcharset_latin_viscii): New variable.
3973         (Qlatin_viscii): New variable.
3974         (make_charset): Don't use `decoding_table'.
3975         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3976         byte_offset.
3977         (Fset_charset_mapping_table): New implementation.
3978         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3979         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3980         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3981         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3982         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3983         charset `latin_viscii'.
3984
3985         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3986         (CHARSET_TYPE_94X94): Change to 1 from 2.
3987         (CHARSET_TYPE_96): Change to 2 from 1.
3988         (CHARSET_TYPE_128): New macro.
3989         (CHARSET_TYPE_128X128): Change to 5 from 4.
3990         (CHARSET_TYPE_256): New macro.
3991         (CHARSET_TYPE_256X256): Change to 7 from 5.
3992         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3993
3994 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3995
3996         * text-coding.c (char_encode_shift_jis): Refer
3997         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3998         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3999
4000         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4001         (char_byte_table_equal): New function in UTF-2000.
4002         (char_byte_table_hash): New function in UTF-2000.
4003         (char_byte_table_description): New constant in UTF-2000.
4004         (char_byte_table): New type in UTF-2000.
4005         (make_char_byte_table): New function in UTF-2000.
4006         (copy_char_byte_table): New function in UTF-2000.
4007         (make_char_code_table): New macro in UTF-2000.
4008         (get_char_code_table): New function in UTF-2000.
4009         (put_char_code_table): New function in UTF-2000.
4010         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4011         (charset_description): Add setting in UTF-2000.
4012         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4013         `CHARSET_TO_BYTE1_TABLE(cs)'.
4014         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4015         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4016         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4017         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4018         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4019         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4020         `CHARSET_TO_BYTE2_TABLE(cs)'.
4021
4022         * char-ucs.h (char_byte_table): New type.
4023         (XCHAR_BYTE_TABLE): New macro.
4024         (XSETCHAR_BYTE_TABLE): New macro.
4025         (CHAR_BYTE_TABLE_P): New macro.
4026         (GC_CHAR_BYTE_TABLE_P): New macro.
4027         (struct Lisp_Char_Byte_Table): New structure.
4028         (get_char_code_table): New interface.
4029         (Emchar_to_byte_table): Deleted.
4030         (get_byte_from_character_table): Deleted.
4031         (struct Lisp_Charset): Add `encoding_table'; delete
4032         `to_byte1_table' and `to_byte2_table'.
4033         (CHARSET_ENCODING_TABLE): New macro.
4034         (CHARSET_TO_BYTE1_TABLE): Deleted.
4035         (CHARSET_TO_BYTE2_TABLE): Deleted.
4036         (XCHARSET_ENCODING_TABLE): New macro.
4037         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4038         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4039
4040 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4041
4042         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4043         `vietnamese-viscii-*'.
4044
4045 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4046
4047         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4048         (Qvietnamese_viscii_upper): New variable.
4049         (Fdefine_charset_alias): New function.
4050         (syms_of_mule_charset): Add new function `define-charset-alias'.
4051         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4052         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4053         `latin-viscii-*'.
4054
4055 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4056
4057         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4058         (MAX_CHAR_OBS_94x94): New macro.
4059         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4060         for 94x94 sets.
4061
4062         * mule-charset.c (put_byte_from_character_table): Change unit size
4063         from 128 to 256.
4064         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4065         not defined.
4066         (Fmake_reverse_direction_charset): Modify dummy argument of
4067         `make_charset' for non-UTF-2000 environment.
4068
4069 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4070
4071         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4072
4073         * mule-charset.c (destroy_byte_from_character_table): New macro.
4074         (latin_jisx0201_to_ucs): Deleted.
4075         (latin_iso8859_2_to_ucs): Deleted.
4076         (latin_iso8859_3_to_ucs): Deleted.
4077         (latin_iso8859_4_to_ucs): Deleted.
4078         (latin_iso8859_9_to_ucs): Deleted.
4079         (latin_viscii_lower_to_ucs): Deleted.
4080         (latin_viscii_upper_to_ucs): Deleted.
4081         (mark_charset): Mark `cs->decoding_table'.
4082         (Fcharset_mapping_table): Fix DOC-string.
4083         (Fset_charset_mapping_table): New function.
4084         (syms_of_mule_charset): Add nwe function
4085         `set-charset-mapping-table'.
4086         (complex_vars_of_mule_charset): Don't setup and use
4087         `latin_*_to_ucs'.
4088
4089 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4090
4091         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4092         charset.
4093
4094 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4095
4096         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4097         (Vcharset_katakana_jisx0208): New variable.
4098         (Qhiragana_jisx0208): New variable.
4099         (Qkatakana_jisx0208): New variable.
4100         (make_charset): Add new argument `byte_offset'.
4101         (charset_get_byte1): Modify for new coded-charset definition; use
4102         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4103         `XCHARSET_BYTE_OFFSET'.
4104         (Fmake_charset): Modify for `make_charset'.
4105         (Fmake_reverse_direction_charset): Likewise.
4106         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4107         `katakana-jisx0208'.
4108         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4109         `.'  in font registry of charset `katakana-jisx0201',
4110         `latin-jisx0201', `vietnamese-viscii-lower' and
4111         `vietnamese-viscii-upper'; modify DOC-string of charset
4112         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4113         registry of charset `japanese-jisx0208' not to use font for JIS
4114         X0208:1990; add new charset `hiragana-jisx0208' and
4115         `katakana-jisx0208'.
4116
4117         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4118         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4119         (struct Lisp_Charset): Add `byte_offset'.
4120         (CHARSET_BYTE_OFFSET): New macro.
4121         (XCHARSET_UCS_MIN): New macro.
4122         (XCHARSET_UCS_MAX): New macro.
4123         (XCHARSET_CODE_OFFSET): New macro.
4124         (XCHARSET_BYTE_OFFSET): New macro.
4125         (MIN_CHAR_HIRAGANA): New macro.
4126         (MAX_CHAR_HIRAGANA): New macro.
4127         (MIN_CHAR_KATAKANA): New macro.
4128         (MAX_CHAR_KATAKANA): New macro.
4129         (MAKE_CHAR): Modify for new coded-charset definition; use
4130         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4131         `XCHARSET_BYTE_OFFSET'.
4132
4133 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4134
4135         * mule-charset.c (CHAR96): Deleted.
4136         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4137         <Lisp_Object>.
4138         (latin_iso8859_2_to_ucs): Likewise.
4139         (latin_iso8859_3_to_ucs): Likewise.
4140         (latin_iso8859_4_to_ucs): Likewise.
4141         (latin_iso8859_9_to_ucs): Likewise.
4142         (latin_viscii_lower_to_ucs): Likewise.
4143         (latin_viscii_upper_to_ucs): Likewise.
4144         (latin_tcvn5712_to_ucs): Commented out.
4145         (make_charset): Change type of argument `decoding_table' from
4146         <Emchar*> to <Lisp_Object> [vector of characters].
4147         (Fmake_charset): Modify for `make_charset'.
4148         (Fmake_reverse_direction_charset): Likewise.
4149         (Fcharset_mapping_table): New function in UTF-2000.
4150         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4151         UTF-2000.
4152         (complex_vars_of_mule_charset): Modify for type change of
4153         `*_to_ucs'; modify for `make_charset'.
4154
4155         * char-ucs.h (struct Lisp_Charset): Change type of
4156         `decoding_table' from <Emchar*> to <Lisp_Object>.
4157         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4158
4159 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4160
4161         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4162         error with non-UTF-2000-Mule.
4163
4164 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4165
4166         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4167         in lisp again].
4168         (Vcharset_chinese_cns11643_4): Likewise.
4169         (Vcharset_chinese_cns11643_5): Likewise.
4170         (Vcharset_chinese_cns11643_6): Likewise.
4171         (Vcharset_chinese_cns11643_7): Likewise.
4172         (Qchinese_cns11643_3): Likewise.
4173         (Qchinese_cns11643_4): Likewise.
4174         (Qchinese_cns11643_5): Likewise.
4175         (Qchinese_cns11643_6): Likewise.
4176         (Qchinese_cns11643_7): Likewise.
4177         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4178         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4179         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4180         (complex_vars_of_mule_charset): Likewise.
4181
4182 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4183
4184         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4185         96-set.
4186         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4187         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4188
4189 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4190
4191         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4192         0xFF60.
4193         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4194         (breakup_char_1): Likewise.
4195
4196         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4197         one of them includes the specified character.
4198
4199 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4200
4201         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4202
4203 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4204
4205         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4206
4207 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4208
4209         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4210         definition for non-UTF-2000 Mule.
4211         (latin_iso8859_3_to_ucs): Likewise.
4212         (latin_iso8859_4_to_ucs): Likewise.
4213         (latin_iso8859_9_to_ucs): Likewise.
4214         (latin_jisx0201_to_ucs): Likewise.
4215         (MIN_CHAR_THAI): Likewise.
4216         (MAX_CHAR_THAI): Likewise.
4217         (MIN_CHAR_GREEK): Likewise.
4218         (MAX_CHAR_GREEK): Likewise.
4219         (MIN_CHAR_HEBREW): Likewise.
4220         (MAX_CHAR_HEBREW): Likewise.
4221         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4222         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4223         (MIN_CHAR_CYRILLIC): Likewise.
4224         (MAX_CHAR_CYRILLIC): Likewise.
4225
4226 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4227
4228         * char-ucs.h (breakup_char_1): Use
4229         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4230         thai-tis620 and katakana-jisx0201 area.
4231
4232 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4233
4234         * char-ucs.h (breakup_char_1): Use
4235         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4236         area.
4237
4238         * text-coding.c (reset_encoding_stream): Fixed.
4239         (char_encode_ucs4): Delete `& 255'.
4240
4241         * char-ucs.h (breakup_char_1): Use
4242         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4243
4244 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4245
4246         * file-coding.c (Fmake_coding_system): Don't set up
4247         `codesys->fixed.size'.
4248         (encode_coding_no_conversion): Don't refer
4249         `str->codesys->fixed.size'.
4250
4251 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4252
4253         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4254         (latin_a_char_to_byte1): Deleted.
4255         (latin_a_char_to_byte2): Deleted.
4256
4257 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4258
4259         * mule-charset.c (make_charset): Add new argument `ucs_min',
4260         `ucs_max' and `code_offset'.
4261         (charset_get_byte1): New implementation [delete specific charset
4262         depended implementations].
4263         (Fmake_charset): Modify for `make_charset'.
4264         (Fmake_reverse_direction_charset): Likewise.
4265         (complex_vars_of_mule_charset): Likewise.
4266
4267         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4268         `code_offset'.
4269         (CHARSET_UCS_MIN): New macro.
4270         (CHARSET_UCS_MAX): New macro.
4271         (CHARSET_CODE_OFFSET): New macro.
4272         (MAKE_CHAR): Delete charset depended definitions [except
4273         katakana-jisx0201].
4274
4275 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4276
4277         * char-ucs.h (breakup_char_1): Use
4278         `Vdefault_coded_charset_priority_list' for C0-Controls,
4279         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4280
4281 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4282
4283         * char-ucs.h (charset_get_byte1): New function.
4284         (XCHARSET_GET_BYTE1): Deleted.
4285         (charset_get_byte2): New function.
4286         (XCHARSET_GET_BYTE2): Deleted.
4287         (Vdefault_coded_charset_priority_list): New external variable.
4288         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4289         `Vdefault_preferred_coded_charset_list'.
4290
4291         * mule-charset.c (charset_get_byte1): New function.
4292         (charset_get_byte2): New function.
4293         (Vdefault_coded_charset_priority_list): New variable.
4294         (vars_of_mule_charset): Add new variable
4295         `default-coded-charset-priority-list'.
4296
4297 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4298
4299         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4300         (XCHARSET_GET_BYTE2): New inline function.
4301         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4302         `XCHARSET_GET_BYTE2'.
4303
4304 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4305
4306         * mule-charset.c (make_charset): Initialize
4307         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4308         NULL if table is not defined.
4309
4310 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4311
4312         * text-coding.c (char_encode_shift_jis): Use
4313         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4314         `ucs_to_latin_jisx0201'.
4315
4316         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4317         (ucs_to_latin_iso8859_2): Deleted.
4318         (ucs_to_latin_iso8859_3): Deleted.
4319         (ucs_to_latin_iso8859_4): Deleted.
4320         (ucs_to_latin_iso8859_9): Deleted.
4321         (ucs_to_latin_viscii_lower): Deleted.
4322         (ucs_to_latin_viscii_upper): Deleted.
4323         (ucs_to_latin_tcvn5712): Deleted.
4324         (make_charset): Add new argument `decoding_table'; set up
4325         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4326         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4327         `decoding_table' is defined in UTF-2000.
4328         (Fmake_charset): Modify for `make_charset'.
4329         (Fmake_reverse_direction_charset): Likewise.
4330         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4331         and `GENERATE_96_SET'.
4332
4333         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4334         (ucs_to_latin_jisx0201): Deleted.
4335         (latin_iso8859_2_to_ucs): Deleted.
4336         (ucs_to_latin_iso8859_2): Deleted.
4337         (latin_iso8859_3_to_ucs): Deleted.
4338         (ucs_to_latin_iso8859_3): Deleted.
4339         (latin_iso8859_4_to_ucs): Deleted.
4340         (ucs_to_latin_iso8859_4): Deleted.
4341         (latin_iso8859_9_to_ucs): Deleted.
4342         (ucs_to_latin_iso8859_9): Deleted.
4343         (latin_viscii_lower_to_ucs): Deleted.
4344         (ucs_to_latin_viscii_lower): Deleted.
4345         (latin_viscii_upper_to_ucs): Deleted.
4346         (ucs_to_latin_viscii_upper): Deleted.
4347         (struct Lisp_Charset): Renamed `encoding_table' to
4348         `to_byte1_table'; add `to_byte2_table'.
4349         (CHARSET_DECODING_TABLE): New macro.
4350         (CHARSET_TO_BYTE1_TABLE): New macro.
4351         (CHARSET_TO_BYTE2_TABLE): New macro.
4352         (XCHARSET_DECODING_TABLE): New macro.
4353         (XCHARSET_TO_BYTE1_TABLE): New macro.
4354         (XCHARSET_TO_BYTE2_TABLE): New macro.
4355         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4356         tables.
4357         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4358         don't use `ucs_to_*' tables.
4359
4360 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4361
4362         * text-coding.c (Fmake_coding_system): Don't set up
4363         `codesys->fixed.size'.
4364         (encode_coding_no_conversion): Use `if' instead of `switch'.
4365
4366         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4367
4368 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4369
4370         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4371         (Fmake_charset): Modify for `make_charset'.
4372         (Fmake_reverse_direction_charset): Likewise.
4373         (complex_vars_of_mule_charset): Likewise.
4374
4375 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4376
4377         * text-coding.c (char_encode_shift_jis): Use table
4378         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4379
4380 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4381
4382         * text-coding.c (text_encode_generic): Use `if' instead of
4383         `switch'.
4384         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4385         decode JIS-Latin.
4386
4387 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4388
4389         * text-coding.c (encode_coding_sjis): Deleted.
4390         (char_encode_shift_jis): New function.
4391         (char_finish_shift_jis): New function.
4392         (reset_encoding_stream): Set up `encode_char' and `finish' for
4393         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4394         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4395         (char_encode_utf8): Treat `eol_type'.
4396
4397 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4398
4399         * file-coding.c (decode_coding_iso2022): Use
4400         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4401
4402 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4403
4404         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4405         to 0.7 (Hirano).
4406
4407 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4408
4409         * char-lb.h (CHAR_COLUMNS): New macro.
4410
4411 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4412
4413         * text-coding.c (char_encode_ucs4): New function.
4414         (char_finish_ucs4): New function.
4415         (encode_coding_ucs4): Deleted.
4416         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4417         (text_encode_generic): Delete local variable `charset' and `half'.
4418         (ucs_to_mule_table): Deleted.
4419         (mule_to_ucs_table): Deleted.
4420         (Fset_ucs_char): Deleted.
4421         (ucs_to_char): Deleted.
4422         (Fucs_char): Deleted.
4423         (Fset_char_ucs): Deleted.
4424         (Fchar_ucs): Deleted.
4425         (decode_ucs4): Deleted.
4426         (mule_char_to_ucs4): Deleted.
4427         (encode_ucs4): Deleted.
4428         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4429         (decode_coding_utf8): Likewise.
4430         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4431         (char_encode_iso2022): Fixed.
4432         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4433         `Fset_char_ucs' and `Fchar_ucs'.
4434         (complex_vars_of_file_coding): Don't initialize
4435         `ucs_to_mule_table'.
4436
4437         * objects-tty.c (tty_initialize_font_instance): Don't use
4438         `XCHARSET_COLUMNS'.
4439
4440         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4441         UTF-2000.
4442
4443         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4444         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4445
4446         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4447         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4448         (emchar_string_displayed_columns): Likewise.
4449
4450         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4451         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4452         (string_column_at_point): Likewise.
4453         (Fmove_to_column): Likewise.
4454
4455         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4456         `encoding_table' and `decoding_table'.
4457         (CHARSET_REP_BYTES): Deleted.
4458         (XCHARSET_REP_BYTES): Deleted.
4459         (XCHARSET_COLUMNS): Deleted.
4460         (CHAR_COLUMNS): New macro.
4461         (lookup_composite_char): Deleted unconditionally.
4462         (composite_char_string): Likewise.
4463
4464 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4465
4466         * char-ucs.h (Emchar_to_byte_table): New type.
4467         (get_byte_from_character_table): New function interface.
4468         (Vcharset_latin_jisx0201): New variable.
4469         (latin_jisx0201_to_ucs): New variable.
4470         (ucs_to_latin_jisx0201): New variable.
4471         (Vcharset_latin_iso8859_2): New variable.
4472         (latin_iso8859_2_to_ucs): New variable.
4473         (ucs_to_latin_iso8859_2): New variable.
4474         (Vcharset_latin_iso8859_3): New variable.
4475         (latin_iso8859_3_to_ucs): New variable.
4476         (ucs_to_latin_iso8859_3): New variable.
4477         (Vcharset_latin_iso8859_4): New variable.
4478         (latin_iso8859_4_to_ucs): New variable.
4479         (ucs_to_latin_iso8859_4): New variable.
4480         (Vcharset_latin_iso8859_9): New variable.
4481         (latin_iso8859_9_to_ucs): New variable.
4482         (ucs_to_latin_iso8859_9): New variable.
4483         (Vcharset_latin_viscii_lower): New variable.
4484         (latin_viscii_lower_to_ucs): New variable.
4485         (ucs_to_latin_viscii_lower): New variable.
4486         (Vcharset_latin_viscii_upper): New variable.
4487         (latin_viscii_upper_to_ucs): New variable.
4488         (ucs_to_latin_viscii_upper): New variable.
4489         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4490         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4491         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4492         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4493         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4494         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4495         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4496         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4497         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4498         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4499
4500         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4501         (Vcharset_latin_viscii_upper): New variable.
4502         (make_byte_from_character_table): New function.
4503         (put_byte_from_character_table): New function.
4504         (get_byte_from_character_table): New function.
4505         (CHAR96): New macro.
4506         (ucs_to_latin_jisx0201): New variable.
4507         (latin_jisx0201_to_ucs): New variable.
4508         (ucs_to_latin_iso8859_2): New variable.
4509         (latin_iso8859_2_to_ucs): New variable.
4510         (ucs_to_latin_iso8859_3): New variable.
4511         (latin_iso8859_3_to_ucs): New variable.
4512         (ucs_to_latin_iso8859_4): New variable.
4513         (latin_iso8859_4_to_ucs): New variable.
4514         (ucs_to_latin_iso8859_9): New variable.
4515         (latin_iso8859_9_to_ucs): New variable.
4516         (ucs_to_latin_viscii_lower): New variable.
4517         (latin_viscii_lower_to_ucs): New variable.
4518         (ucs_to_latin_viscii_upper): New variable.
4519         (latin_viscii_upper_to_ucs): New variable.
4520         (ucs_to_latin_tcvn5712): New variable.
4521         (latin_tcvn5712_to_ucs): New variable.
4522         (Qlatin_viscii_lower): New variable.
4523         (Qlatin_viscii_upper): New variable.
4524         (syms_of_mule_charset): Set up new symbol
4525         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4526         (complex_vars_of_mule_charset): Set up new charset
4527         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4528         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4529         `ucs_to_<CHARSET>' tables.
4530
4531 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4532
4533         * text-coding.c: New file.
4534
4535 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4536
4537         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4538
4539         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4540         (MAKE_CHAR): Modify for `ucs-bmp'.
4541         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4542         non-MULE characters of BMP.
4543
4544 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4545
4546         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4547         to 0.6.
4548
4549 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4550
4551         * lstream.h:
4552         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4553         - Include character.h for `CHAR_ASCII_P'.
4554
4555         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4556
4557         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4558         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4559
4560         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4561         (BYTE_C0_P): Likewise.
4562         (BYTE_C1_P): Likewise.
4563         (Lstream_get_emchar_1): Likewise.
4564         (Lstream_fput_emchar): Likewise.
4565         (Lstream_funget_emchar): Likewise.
4566         (copy_internal_to_external): Likewise.
4567         (copy_external_to_internal): Likewise.
4568
4569         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4570         (BYTE_C0_P): Likewise.
4571         (BYTE_C1_P): Likewise.
4572         (Lstream_get_emchar_1): Likewise.
4573         (Lstream_fput_emchar): Likewise.
4574         (Lstream_funget_emchar): Likewise.
4575         (copy_internal_to_external): Likewise.
4576         (copy_external_to_internal): Likewise.
4577
4578         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4579         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4580
4581         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4582         (BYTE_ASCII_P): Moved to mb-1byte.h.
4583
4584 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4585
4586         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4587
4588         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4589         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4590         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4591         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4592         (VALIDATE_CHARPTR_FORWARD): Likewise.
4593         (simple_charptr_emchar): Moved to mb-multibyte.h.
4594         (simple_set_charptr_emchar): Likewise.
4595         (simple_charptr_copy_char): Likewise.
4596         (non_ascii_charptr_emchar): Likewise.
4597         (non_ascii_set_charptr_emchar): Likewise.
4598         (non_ascii_charptr_copy_char): Likewise.
4599         (charptr_emchar): Moved to mb-*byte.h.
4600         (set_charptr_emchar): Likewise.
4601         (charptr_copy_char): Likewise.
4602
4603         * mb-1byte.h, mb-multibyte.h: New files.
4604
4605 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4606
4607         * mb-utf-8.h (MULTIBYTE): New macro.
4608         (MAX_EMCHAR_LEN): Moved from buffer.h.
4609         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4610
4611         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4612
4613         * mb-lb.h, multibyte.h: New files.
4614
4615         * char-1byte.h (Charset_ID): Moved from buffer.h.
4616         (MIN_LEADING_BYTE): Likewise.
4617         (LEADING_BYTE_ASCII): Likewise.
4618         (NUM_LEADING_BYTES): Likewise.
4619         (CHARSETP): Likewise.
4620         (CHARSET_BY_LEADING_BYTE): Likewise.
4621         (XCHARSET_LEADING_BYTE): Likewise.
4622         (XCHARSET_GRAPHIC): Likewise.
4623         (XCHARSET_COLUMNS): Likewise.
4624         (XCHARSET_DIMENSION): Likewise.
4625         (CHAR_CHARSET): Likewise.
4626         (CHAR_LEADING_BYTE): Likewise.
4627         (BREAKUP_CHAR): Likewise.
4628         (Vcharset_ascii): Likewise.
4629
4630         * buffer.h: Include multibyte.h unconditionally.
4631         (VALID_CHARPTR_P): Moved to multibyte.h.
4632         (ASSERT_VALID_CHARPTR): Likewise.
4633         (REAL_INC_CHARPTR): Likewise.
4634         (REAL_INC_CHARBYTIND): Likewise.
4635         (REAL_DEC_CHARPTR): Likewise.
4636         (INC_CHARPTR): Likewise.
4637         (INC_CHARBYTIND): Likewise.
4638         (DEC_CHARPTR): Likewise.
4639         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4640         (VALIDATE_CHARPTR_FORWARD): Likewise.
4641         (charptr_n_addr): Likewise.
4642         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4643         (simple_charptr_emchar): Moved to multibyte.h.
4644         (simple_set_charptr_emchar): Likewise.
4645         (simple_charptr_copy_char): Likewise.
4646         (non_ascii_charptr_emchar): Likewise.
4647         (non_ascii_set_charptr_emchar): Likewise.
4648         (non_ascii_charptr_copy_char): Likewise.
4649         (charptr_emchar): Likewise.
4650         (set_charptr_emchar): Likewise.
4651         (charptr_copy_char): Likewise.
4652         (charptr_emchar_n): Likewise.
4653         (Charset_ID): Moved to char-1byte.h.
4654         (Vcharset_ascii): Likewise.
4655         (CHAR_CHARSET): Likewise.
4656         (CHAR_LEADING_BYTE): Likewise.
4657         (LEADING_BYTE_ASCII): Likewise.
4658         (NUM_LEADING_BYTES): Likewise.
4659         (MIN_LEADING_BYTE): Likewise.
4660         (CHARSETP): Likewise.
4661         (CHARSET_BY_LEADING_BYTE): Likewise.
4662         (XCHARSET_LEADING_BYTE): Likewise.
4663         (XCHARSET_GRAPHIC): Likewise.
4664         (XCHARSET_COLUMNS): Likewise.
4665         (XCHARSET_DIMENSION): Likewise.
4666         (BREAKUP_CHAR): Likewise.
4667
4668 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4669
4670         * character.h: Add document about interface for characters.
4671
4672         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4673         (MAKE_CHAR): Delete comment about
4674         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4675         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4676         (BREAKUP_CHAR): Modify name of arguments.
4677         (CHAR_CHARSET): Modify name of argument.
4678
4679         * buffer.h: Delete document about Emchar accessors.
4680
4681 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4682
4683         * character.h (CHAR_INTP): Moved from buffer.h
4684         (CHAR_OR_CHAR_INTP): Likewise.
4685         (XCHAR_OR_CHAR_INT): Likewise.
4686         (CHECK_CHAR_COERCE_INT): Likewise.
4687
4688         * buffer.h (CHAR_INTP): Moved to character.h
4689         (CHAR_OR_CHAR_INTP): Likewise.
4690         (XCHAR_OR_CHAR_INT): Likewise.
4691         (CHECK_CHAR_COERCE_INT): Likewise.
4692
4693 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4694
4695         * character.h:
4696         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4697         - Include char-1byte.h, char-lb.h or char-ucs.h.
4698
4699         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4700
4701         * buffer.h: Include character unconditionally.
4702         (valid_char_p): Moved to char-*.h.
4703         (non_ascii_valid_char_p): Moved to char-lb.h.
4704
4705         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4706
4707 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4708
4709         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4710         in UTF-2000 because it is not ported yet and not to use
4711         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4712         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4713         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4714
4715         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4716         (CHAR_ASCII_P): Moved from character.h.
4717
4718         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4719         (CHAR_ASCII_P): Likewise.
4720         (CHAR_FIELD1_MASK): Deleted.
4721         (CHAR_FIELD2_MASK): Deleted.
4722         (CHAR_FIELD3_MASK): Deleted.
4723         (MAX_CHAR_BASIC_LATIN): New macro.
4724         (CHAR_FIELD1): Deleted.
4725         (CHAR_FIELD2_INTERNAL): Deleted.
4726         (CHAR_FIELD3_INTERNAL): Deleted.
4727         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4728         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4729         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4730         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4731         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4732         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4733         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4734         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4735         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4736         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4737         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4738         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4739         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4740         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4741         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4742         (MIN_CHAR_COMPOSITION): Deleted.
4743         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4744         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4745
4746 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4747
4748         * buffer.h: Include mb-utf-8.h in UTF-2000.
4749
4750         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4751
4752         * mb-utf-8.h: New file.
4753
4754 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4755
4756         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4757         instead of `int'.
4758
4759         * mule-charset.h, buffer.h (Charset_ID): New type.
4760
4761 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4762
4763         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4764         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4765         instead of `MULE_CHAR_PRIVATE_OFFSET',
4766         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4767         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4768         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4769
4770         * character.h (Vcharset_japanese_jisx0212): New variable
4771         definition.
4772
4773 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4774
4775         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4776         (charset_by_attributes): Delete array about direction.
4777         (latin_a_char_to_charset): New variable in UTF-2000.
4778         (latin_a_char_to_byte1): New variable in UTF-2000.
4779         (latin_a_char_to_byte2): New variable in UTF-2000.
4780         (Qucs_bmp): New variable.
4781         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4782         `Bufbyte'.
4783         (next_allocated_2_byte_leading_byte): Likewise.
4784         (non_ascii_set_charptr_emchar): Likewise.
4785         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4786         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4787         `charset_by_attributes'.
4788         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4789         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4790         and `CHARSET_BY_LEADING_BYTE'.
4791         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4792         `utf-2000-version' to `vars_of_mule_charset'.
4793         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4794         define `leading-code-private-11' in UTF-2000; move setting of
4795         `utf-2000-version' from `syms_of_mule_charset'.
4796         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4797         UTF-2000.
4798
4799         * character.h (Charset_ID): New type.
4800         (LEADING_BYTE_UCS_BMP): New macro.
4801         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4802         (CHARSET_ID_OFFSET_94): New macro.
4803         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4804         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4805         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4806         final-byte.
4807         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4808         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4809         (CHARSET_ID_OFFSET_96): New macro.
4810         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4811         CHARSET_ID_OFFSET_96 and final-byte.
4812         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4813         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4814         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4815         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4816         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4817         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4818         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4819         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4820         (LEADING_BYTE_THAI_TIS620): Likewise.
4821         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4822         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4823         (CHARSET_ID_OFFSET_94x94): New macro.
4824         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4825         CHARSET_ID_OFFSET_94x94 and final-byte.
4826         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4827         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4828         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4829         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4830         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4831         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4832         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4833         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4834         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4835         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4836         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4837         (CHARSET_TYPE_128X128): New macro.
4838         (CHARSET_TYPE_256X256): New macro.
4839         (XCHARSET_PRIVATE_P): Delete unconditionally.
4840         (charset_by_attributes): Delete array about direction.
4841         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4842         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4843         (MIN_CHAR_94): New macro.
4844         (MAX_CHAR_94): New macro.
4845         (MIN_CHAR_96): New macro.
4846         (MAX_CHAR_96): New macro.
4847         (MIN_CHAR_94x94): New macro.
4848         (MAX_CHAR_94x94): New macro.
4849         (MIN_CHAR_96x96): New macro.
4850         (MAX_CHAR_96x96): New macro.
4851         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4852         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4853         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4854         - 32)'.
4855         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4856         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4857         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4858         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4859         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4860         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4861         `XCHARSET_LEADING_BYTE' to make code-point.
4862         (latin_a_char_to_charset): New variable.
4863         (latin_a_char_to_byte1): New variable.
4864         (latin_a_char_to_byte2): New variable.
4865         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4866         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4867         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4868
4869         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4870         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4871         (find_charsets_in_emchar_string): Likewise.
4872         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4873
4874         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4875         `int'.
4876         (decode_coding_iso2022): Likewise.
4877
4878         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4879         of `unsigned char'.
4880
4881         * redisplay.c (redisplay_text_width_emchar_string): Use
4882         `Charset_ID' instead of `unsigned char'.
4883         (redisplay_frame_text_width_string): Likewise.
4884
4885         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4886         `unsigned char'.
4887
4888         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4889         instead of `unsigned char'.
4890         (face_cachel_charset_font_metric_info): Likewise.
4891
4892         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4893         (get_non_ascii_char_table_value): Likewise.
4894         (get_char_table): Likewise.
4895         (put_char_table): Likewise.
4896         (map_over_other_charset): Likewise.
4897         (map_char_table): Likewise.
4898
4899         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4900         instead of `unsigned char'.
4901
4902 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4903
4904         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4905         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4906
4907         * mule-charset.c (leading_code_private_11): Don't define in
4908         UTF-2000.
4909
4910         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4911         in UTF-2000 because it is not ported yet and not to use
4912         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4913
4914 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4915
4916         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4917
4918 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4919
4920         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4921         in UTF-2000.
4922
4923         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4924         of unsigned char to store leading-byte.
4925
4926         * chartab.c (get_non_ascii_char_table_value): Don't use
4927         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4928
4929         * file-coding.c (encode_coding_big5): Delete bogus implementation
4930         in UTF2000.
4931
4932         * character.h (LEADING_BYTE_*): Delete definition for
4933         non-UTF-2000.
4934         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4935         (LEADING_BYTE_PREFIX_P): Deleted.
4936         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4937         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4938         (BUFBYTE_LEADING_BYTE_P): Deleted.
4939         (CHARSET_PRIVATE_P): Deleted unconditionally.
4940         (rep_bytes_by_first_byte): Deleted unconditionally.
4941         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4942         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4943         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4944         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4945         (CHAR_FIELD2): Deleted.
4946         (CHAR_FIELD3): Deleted.
4947         (MAKE_CHAR): Delete definition for non-UTF-2000.
4948         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4949         (breakup_char_1): New implementation.
4950         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4951         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4952
4953 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4954
4955         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4956         condition.
4957
4958 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4959
4960         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4961         (CHARSET_PRIVATE_P): Likewise.
4962         (XCHARSET_PRIVATE_P): Likewise.
4963         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4964
4965         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4966         UTF2000.
4967         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4968
4969 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4970
4971         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4972         (NUM_LEADING_BYTES): Changed from 128 to 256.
4973         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4974         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4975         UTF2000.
4976         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4977
4978         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4979         UTF2000.
4980         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4981         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4982         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4983         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4984         (Qchinese_cns11643_3): New variable in UTF2000.
4985         (Qchinese_cns11643_4): New variable in UTF2000.
4986         (Qchinese_cns11643_5): New variable in UTF2000.
4987         (Qchinese_cns11643_6): New variable in UTF2000.
4988         (Qchinese_cns11643_7): New variable in UTF2000.
4989         (syms_of_mule_charset): Define `chinese-cns11643-3',
4990         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4991         and `chinese-cns11643-7' in UTF2000.
4992         (vars_of_mule_charset): Initialize
4993         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4994         + 1 in UTF2000.
4995         (complex_vars_of_mule_charset): Setup charset
4996         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4997         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4998
4999 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5000
5001         * mule-charset.c: Move setting for `leading-code-private-11' from
5002         `syms_of_mule_charset' to `vars_of_mule_charset'.
5003
5004 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5005
5006         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5007         and `NUM_LEADING_BYTES' in assert.
5008
5009 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5010
5011         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5012         instead of 128.
5013         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5014         `NUM_LEADING_BYTES' instead of 128.
5015
5016 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5017
5018         * mule-charset.h (charset_by_leading_byte): Use
5019         `NUM_LEADING_BYTES' instead of 128.
5020         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5021
5022         * mule-charset.c (charset_by_leading_byte): Use
5023         `NUM_LEADING_BYTES' instead of 128.
5024         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5025
5026         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5027         128.
5028
5029 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5030
5031         * mule-charset.c (syms_of_mule_charset): Update to
5032         0.4 (Shin-Imamiya).
5033
5034 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5035
5036         * file-coding.c (encode_coding_sjis): New implementation for
5037         UTF2000.  (decode_coding_sjis): Ditto.
5038
5039 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5040
5041         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5042         Don't define in UTF2000.
5043
5044         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5045         defined.
5046
5047         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5048         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5049         MULE.
5050
5051 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5052
5053         * config.h.in (CHAR_IS_UCS4): New macro.
5054
5055         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5056         conventional MULE representation.
5057         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5058
5059         * mule-charset.h: Reverted to original.
5060
5061         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5062         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5063         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5064
5065         * character.h: New file.
5066
5067         * file-coding.c (Fmake_coding_system): Set 1 to
5068         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5069         defined.
5070         (encode_coding_no_conversion): New implementation for UTF2000.
5071
5072         * file-coding.h (struct Lisp_Coding_System): Add new member
5073         `fixed.size'.
5074
5075 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5076
5077         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5078         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5079         (encode_coding_iso2022): New implementation for UTF2000.
5080
5081 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5082
5083         * mule-canna.c (c2mu): New implementation for UTF2000.
5084         (m2c): Likewise.
5085
5086 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5087
5088         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5089
5090 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5091
5092         * file-coding.c (reset_encoding_stream): Set 0 to
5093         `str->iso2022.current_char_boundary' in UTF2000.
5094         (encode_utf8): Don't define in UTF2000.
5095         (encode_coding_utf8): New implementation for UTF-8 representation
5096         of UTF2000.
5097         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5098
5099 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5100
5101         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5102
5103         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5104         UTF2000.
5105         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5106
5107         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5108
5109         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5110         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5111         as UTF-8 in UTF2000.
5112         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5113         (non_ascii_valid_char_p): Don't define in UTF2000.
5114         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5115         (Lstream_get_emchar_1): Likewise.
5116         (utf-2000-version): New variable in UTF2000.
5117
5118         * lread.c (read_escape): Add new reader `u'.
5119
5120         * insdel.c (three_to_one_table): Don't define in UTF2000.
5121         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5122         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5123         UTF2000.
5124         (bytind_to_bufpos_func): Likewise.
5125         (buffer_mule_signal_inserted_region): Likewise.
5126         (vars_of_insdel): Don't initialize `three_to_one_table'.
5127         (init_buffer_text): Use `buf->text->mule_size' instead of
5128         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5129         UTF2000.
5130
5131         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5132         UTF-8 representation in UTF2000.
5133         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5134         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5135         (decode_coding_iso2022): Don't define local variable `lb' in
5136         UTF2000; don't use LEADING_BYTE in UTF2000; use
5137         `DECODE_ADD_UCS_CHAR' in UTF2000.
5138         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5139
5140         * config.h.in (UTF2000): New macro.
5141
5142         * buffer.h (struct buffer_text): Add new member `mule_size' and
5143         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5144         (valid_char_p): Return always 1 in UTF2000.
5145         (MAX_EMCHAR_LEN): 6 in UTF2000.
5146         (three_to_one_table): Don't define in UTF2000.
5147         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5148         UTF2000.
5149         (real_bytind_to_bufpos): Likewise.
5150
5151         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5152
5153 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5154
5155         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5156         representation change.
5157         (Vutf_2000_version): New variable.
5158         (leading_code_private_11): New variable.
5159         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5160         `leading-code-private-11'.
5161
5162         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5163         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5164         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5165         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5166         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5167         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5168         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5169         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5170         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5171         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5172         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5173         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5174         (MIN_CHAR_GREEK): New macro.
5175         (MAX_CHAR_GREEK): New macro.
5176         (MIN_CHAR_CYRILLIC): New macro.
5177         (MAX_CHAR_CYRILLIC): New macro.
5178         (MIN_CHAR_HEBREW): New macro.
5179         (MAX_CHAR_HEBREW): New macro.
5180         (MIN_CHAR_THAI): New macro.
5181         (MAX_CHAR_THAI): New macro.
5182         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5183         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5184         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5185         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5186         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5187         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5188         (CHAR_FIELD2): New inline function.
5189         (CHAR_FIELD3): New inline function.
5190         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5191         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5192         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5193         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5194         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5195         (MIN_CHAR_COMPOSITION): Likewise.
5196         (CHAR_LEADING_BYTE): Modified for character representation change.
5197         (MAKE_CHAR): Likewise.
5198
5199         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5200         (Vcharset_greek_iso8859_7): Likewise.
5201         (Vcharset_cyrillic_iso8859_5): Likewise.
5202         (Vcharset_hebrew_iso8859_8): Likewise.
5203         (Vcharset_thai_tis620): Likewise.
5204         (Vcharset_katakana_jisx0201): Likewise.
5205
5206 2003-09-03  Vin Shelton <acs@xemacs.org>
5207
5208         * XEmacs 21.4.14 is released
5209
5210 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5211
5212         * config.h.in (REGEX_MALLOC): Make it configure'able.
5213
5214 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5215
5216         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5217         linking.
5218         * sysdll.c (dll_init):
5219         * sysdll.c (dll_open):
5220         * sysdll.c (dll_close):
5221         * sysdll.c (dll_function):
5222         * sysdll.c (dll_variable):
5223         * sysdll.c (dll_error):
5224         Add support for loading bundles using Darwin/MacOSX
5225         native API.
5226
5227 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5228
5229         * process.c (start-process-internal): Document coding systems.
5230
5231 2003-07-30  Jerry James  <james@xemacs.org>
5232
5233         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5234
5235 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5236
5237         * event-msw.c (mswindows_enqueue_mouse_button_event):
5238         * event-msw.c (mswindows_wnd_proc):
5239           enqueue button event when scrollwheel event isn't handled by 
5240           mswindows_handle_mousewheel_event, such as when the scrollbars
5241           are not showing.
5242
5243 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5244
5245         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5246
5247 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5248
5249         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5250
5251 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5252
5253         * regex.c (re_match_2_internal): Fix matching degenerate word
5254         boundaries.
5255
5256 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5257
5258         * XEmacs 21.4.13 is released
5259
5260 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5261
5262         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5263         * lisp.h (<inttypes.h>):
5264         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5265         the definition.
5266
5267 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5268
5269         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5270         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5271         Result: "temacs can only be run in -batch mode."
5272         Fix: Check xemacs executable candidate for directory-ness.
5273
5274 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5275
5276         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5277           they conflict with <sys/types.h>.
5278
5279 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5280
5281         * database.c: Berkeley DB wants __STDC__ to be defined.
5282
5283 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5284
5285         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5286
5287 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5288
5289         * process-unix.c (unix_send_process): Fix C++ compile error.
5290
5291 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5292
5293         * Added .dylib as an acceptable shared library file extension
5294         * to support MacOSX.
5295
5296 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5297
5298         * EmacsFrameP.h (EmacsFramePart):
5299         Kludge to allow compiling with Motif1, but linking with Motif2.
5300
5301 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5302
5303         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5304
5305
5306 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5307
5308         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5309
5310 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5311
5312         * sysdll.c: Included lisp.h to define needed alloca_array.
5313
5314 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5315
5316         Make XEmacs redisplay 10 times faster.
5317         If, that is, you're using a slow X connection and MoveOpaque.
5318         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5319         Use compress_motion = TRUE.
5320         * EmacsFrame.c (emacsFrameClassRec): 
5321         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5322         * EmacsManager.c (emacsManagerClassRec):
5323         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5324
5325 2003-01-30  Vin Shelton  <acs@xemacs.org>
5326
5327         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5328
5329 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5330
5331         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5332         Patch by Martin Buchholz.
5333
5334 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5335
5336         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5337         Thanks to icc for warning and Martin Buchholz for reporting.
5338
5339 2003-01-29  Vin Shelton <acs@xemacs.org>
5340
5341         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5342
5343         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5344         remember to multiply by the element size.
5345
5346 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5347
5348         * XEmacs 21.4.12 "Portable Code" is released.
5349
5350 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5351
5352         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5353         * s/cygwin.sc: new linker file.
5354
5355 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5356
5357         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5358
5359         * redisplay-x.c (x_output_string): Use X11-specified types.
5360         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5361         * emacs.c (__free_hook): Use typeof with Intel compiler.
5362         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5363
5364 2003-01-08  Andy Piper  <andy@xemacs.org>
5365
5366         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5367         reserve size during unexec().
5368
5369 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5370
5371         * process-unix.c (unix_create_process): Don't let outchannel block.
5372
5373 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5374
5375         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5376         Needed for IsBadReadPtr().
5377
5378 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5379
5380         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5381
5382 2002-12-14  Ben Wing  <ben@xemacs.org>
5383
5384         * callint.c: Declaration error.
5385         * dumper.c (pdump):
5386         * dumper.c (pdump_load): Warning fix.
5387         * process.c: GCPRO error.
5388         * glyphs.c (unmap_subwindow):
5389         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5390         * event-stream.c (maybe_kbd_translate): Wrong argument to
5391         character_to_event().
5392
5393         * alloc.c (garbage_collect_1):
5394         * emacs.c:
5395         * emacs.c (debug_can_access_memory):
5396         * emacs.c (fatal_error_signal):
5397         * emacs.c (mswindows_handle_hardware_exceptions):
5398         * emacs.c (main_1):
5399         * emacs.c (main):
5400         * emacs.c (assert_failed):
5401         * emacs.c (syms_of_emacs):
5402         * lisp.h:
5403         * print.c:
5404         * print.c (std_handle_out_va):
5405         * print.c (write_string_to_stdio_stream):
5406         * print.c (write_fmt_string):
5407         * print.c (printing_badness):
5408         * print.c (printing_major_badness):
5409         * print.c (print_internal):
5410         * print.c (debug_print_no_newline):
5411         * print.c (debug_backtrace):
5412         Be more defensive in handling bad values when printing.  Add code
5413         from trunk involving inhibit_non_essential_printing_operations.
5414         When going down or in debug_print(), don't do external conversion
5415         and such and try really, really hard when printing to avoid core
5416         dumping.  Add force-debugging-signal, debug_break().
5417
5418 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5419
5420         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5421         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5422
5423 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5424
5425         * database.c: Fix open_database. Berkeley DB API has changed in
5426         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5427
5428 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5429
5430         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5431
5432 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5433
5434         * event-Xt.c (Xt_timeout):
5435         (Xt_timeout_callback):
5436         (emacs_Xt_add_timeout):
5437         (emacs_Xt_remove_timeout):
5438         (Xt_timeout_to_emacs_event):
5439         Turn completed_timeouts from a stack into a queue.  Fixes
5440         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5441
5442 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5443
5444         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5445         * emacs.c (main): Assert that mmap'd allocation is disabled.
5446
5447 2002-10-14  Andy Piper  <andy@xemacs.org>
5448
5449         * glyphs-widget.c (layout_query_geometry): add in fiddle
5450         factor. Include border text in width layout calculation.
5451         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5452
5453 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5454
5455         * XEmacs 21.4.10 "Military Intelligence" is released.
5456
5457 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5458
5459         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5460         using the NAS private array SoundFileInfo that no longer exists in
5461         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5462         and earlier.  This is broken for some versions between 1.5a and
5463         1.5f.
5464
5465 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5466
5467         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5468
5469         * emacs.c (shut_down_emacs): Improve crash message.
5470
5471 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5472
5473         * file-coding.c (determine_real_coding_system): Check for coding
5474         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5475         shebangs and Python PEP 263.
5476
5477 2002-10-08  Andy Piper  <andy@xemacs.org>
5478
5479         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5480         if static sizes haven't been set.
5481
5482 2002-08-30  Mike Alexander  <mta@arbortext.com>
5483
5484         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5485         to close a socket.
5486
5487 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5488
5489         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5490
5491 2002-09-20  Mike Sperber <mike@xemacs.org>
5492
5493         (This partially gets back my patch from 2002-07-20 without the
5494         bug.)
5495         * callproc.c (child_setup): Remove Ben's comment noting confusion
5496         over the file descriptors >= 3: close_process_descs() doesn't
5497         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5498         * process-unix.c (unix_create_process): Call
5499         begin_dont_check_for_quit to inhibit unwanted interaction (and
5500         thus breaking of X event synchronicity) in the child.
5501
5502 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5503
5504         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5505         widget.
5506
5507 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5508
5509         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5510         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5511         the xemacs process did not exit, but looped infinitely here.  This
5512         fixes that problem.
5513
5514 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5515
5516         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5517         (find_context): Improve comments.
5518
5519         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5520         (re_match_2): An XCHAR_TABLE operation was missing.
5521
5522         Many of the following changes were inspired by Andy Piper's (now
5523         obsolete) patch to make syntax-table text property lookup optional.
5524
5525         [Documentation]
5526
5527         * syntax.h (top level): Document semantics of syntax flags.
5528         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5529         * syntax.c, syntax.h (top level): Document syntax cache better in
5530         comments.
5531
5532         [Instrument syntax caching (temporary change)]
5533
5534         * syntax.h (enum syntax_cache_statistics_functions, struct
5535         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5536         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5537         * syntax.c (scan_words, Fforward_comment, scan_lists,
5538         Fbackward_prefix_characters):
5539         * font-lock.c (find_context):
5540         Use them to instrument syntax caching. 
5541         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5542         syntax_cache_statistics_function_names): New type and variables.
5543         * syntax.c (update_syntax_cache): Update and report statistics.
5544
5545         [Major syntax cache optimizations]
5546
5547         syntax.c (lookup_syntax_properties): Default off.
5548
5549         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5550         * syntax.c (update_syntax_cache):
5551         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5552
5553         [Minor syntax cache optimizations and code clarifications]
5554
5555         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5556         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5557         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5558         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5559         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5560         (Code clarification.)
5561
5562         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5563         scan_lists): Compute code from syncode, use Boolean macros instead
5564         of redundant masking operations.  (Code clarification; any decent
5565         compiler can do this optimization.)
5566
5567         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5568         for clarity.
5569
5570         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5571         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5572         use F*_single_property_change instead of F*_extent_change.
5573         Currently F*_single_property_change is _much_ less efficient.
5574
5575         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5576         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5577         syntax_cache.object properly, don't leave Qt or Qnil.
5578         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5579         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5580         tests for Qt or Qnil.
5581
5582 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5583
5584         * redisplay.c (point_in_line_start_cache): 
5585         * extents.c (print_extent_1):
5586         Fix warnings.
5587
5588         * extents.c (Fset_extent_property): Document `syntax-table' property.
5589
5590         * extents.h (Fnext_single_property_change): EXFUN it.
5591
5592 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5593
5594         * search.c (clear_unused_search_regs): New static function.
5595         (search_buffer): 
5596         (simple_search): 
5597         (boyer_moore):
5598         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5599         Minor clarifications in comments.
5600
5601         * regex.c (re_match_2_internal): Ensure no stale submatches.
5602
5603 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5604
5605         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5606
5607 2002-08-29  Jerry James  <james@xemacs.org>
5608
5609         * lisp.h: structrures -> structures.
5610
5611 2002-06-03  Andy Piper  <andy@xemacs.org>
5612
5613         * frame.c (frame_conversion_internal): add conversion appropriate
5614         for setting frame dimensions in pixels.
5615
5616         * console.h (struct console_methods): add device-specific widget
5617         layout functions.
5618
5619         * emacs.c (main_1): initialize glyph vars.
5620
5621         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5622         (handle_focus_event_2): new function. Allow focus to
5623         be set to a particular window and widget.
5624         (enqueue_focus_event): new function. Create a
5625         synthetic focus event.
5626         (emacs_Xt_handle_magic_event): call
5627         handle_focus_event_2.
5628
5629         * frame.c (Fset_frame_pixel_height): new function. Allow
5630         pixel-based sizing. Does the right thing on character-oriented
5631         displays.
5632         (Fset_frame_pixel_width): ditto.
5633         (Fset_frame_pixel_size): ditto.
5634         (syms_of_frame): declare.
5635
5636         * general-slots.h: add :vertically-justify and
5637         :horizontally-justify.
5638
5639         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5640         (mswindows_widget_border_width): new function.
5641         (mswindows_combo_box_instantiate): set border widths.
5642         (console_type_create_glyphs_mswindows): declare.
5643
5644         * glyphs-widget.c:
5645         (check_valid_justification): allow vertical and horizontal
5646         justification.
5647         (widget_border_width): new function. Call device methods.
5648         (widget_instance_border_width): ditto.
5649         (logical_unit_height): new function. Determine the height of a
5650         logical-unit. Logical units are intended to provide grid-like
5651         layout for subcontrols in a layout. If the layout is
5652         :vertically-justify top then subcontrols will be positioned on
5653         logical-unit boundaries, thus allowing adjacent subcontrols to
5654         line up.
5655         (widget_logical_unit_height): ditto for widgets.
5656         (redisplay_widget): misc cleanup.
5657         (widget_spacing): new function. Call device specific
5658         methods. Intended to be the default gap between adjacent widgets.
5659         (widget_query_geometry): use new spacing functions to determine
5660         appropriate geometry.
5661         (initialize_widget_image_instance): initialize horizontal and
5662         vertical justification.
5663         (widget_instantiate): use logica-units where appropriate for
5664         sizing large widgets.
5665         (button_query_geometry): use widget_instance_border_width.
5666         (tree_view_query_geometry): ditto.
5667         (tab_control_query_geometry): ditto.
5668         (edit_field_query_geometry): new function.
5669         (layout_update): pick up :justify, :horizontally-justify and
5670         :vertically-justify none of which worked previously. :justify is
5671         used as a fallback for both horizontal and vertical justification.
5672         (layout_query_geometry): use logical units to size appropriately.
5673         (layout_layout): ditto.
5674         (Fwidget_logical_to_character_width): new function. Allow users to
5675         convert from logical units to characters so that frame sizes can
5676         be set appropriately.
5677         (Fwidget_logical_to_character_height): ditto.
5678         (syms_of_glyphs_widget): declare.
5679         (image_instantiator_edit_fields): add edit_field_query_geometry.
5680         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5681         :horizontally-justify.
5682         (specifier_vars_of_glyphs_widget): new function. Declare
5683         Vwidget_border_width which is not yet used.
5684
5685         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5686         (x_widget_border_width): new function.
5687         (x_widget_instantiate): create a sensible name for widgets.
5688         (console_type_create_glyphs_x): declare x_widget_border_width.
5689
5690         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5691         (struct Lisp_Image_Instance): add :vertically-justify and
5692         :horizontally-justify.
5693         (LAYOUT_JUSTIFY_TOP): new.
5694         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5695         (ROUND_UP): new macro. Round argument up to next integral
5696         interval.
5697
5698         * redisplay-output.c (redisplay_output_layout): misc formatting.
5699
5700         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5701
5702 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5703
5704         * XEmacs 21.4.9 "Informed Management" is released.
5705
5706 2002-08-19  Andy Piper  <andy@xemacs.org>
5707
5708         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5709         win32 format.
5710
5711         * realpath.c (xrealpath): normalize drive spec also so that dir
5712         sep chars are not mixed on cygwin.
5713
5714 2002-08-06  Jerry James  <james@xemacs.org>
5715
5716         * window.c (Fsplit_window): Count only half of the divider width
5717         against the left window when splitting horizontally. 
5718
5719 2002-06-24  Andy Piper  <andy@xemacs.org>
5720
5721         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5722         toolbar was cleared.
5723
5724         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5725         function. Split out from mswindows_output_frame_toolbars.
5726         (mswindows_output_frame_toolbars): move clear pieces to
5727         mswindows_output_frame_toolbars.
5728
5729         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5730         out from gtk_output_frame_toolbars.
5731         (gtk_output_frame_toolbars): move clear pieces to
5732         gtk_clear_frame_toolbars.
5733
5734         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5735         the frame is cleared. How this ever worked before is a mystery.
5736         (x_output_frame_toolbars): Only output toolbars.
5737         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5738
5739         * gutter.c (update_gutter_geometry):
5740         Mark frame layout changed.
5741         (update_frame_gutter_geometry, update_frame_gutters):
5742         Respect frame_layout_changed.
5743
5744         * console.h (struct console_methods): add
5745         clear_frame_toolbars_method.
5746
5747         * redisplay.c (redisplay_frame): call
5748         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5749
5750         * toolbar.h: declare update_frame_toolbars_geometry.
5751
5752         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5753         out from update_frame_toolbars.  Call clear_frame_toolbars.
5754         (update_frame_toolbars): only output, do not change geometry.
5755
5756         * redisplay.c: add frame_layout_changed.
5757
5758         * redisplay.h: add frame_layout_changed.
5759         (CLASS_RESET_CHANGED_FLAGS): set it.
5760         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5761         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5762         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5763
5764         * device.h (struct device): add frame_layout_changed.
5765         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5766
5767         * frame.h (struct frame): add frame_layout_changed.
5768         (MARK_FRAME_LAYOUT_CHANGED): new.
5769
5770 2002-06-30  Mike Alexander  <mta@arbortext.com>
5771
5772         * event-msw.c (mswindows_need_event): Don't wait for a new message
5773         if the queue is not empty.  Suggested by Paul Moore.
5774
5775 2002-06-12  Andy Piper  <andy@xemacs.org>
5776
5777         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5778         for printing on accurately.
5779
5780 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5781
5782         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5783         WM_ACTIVATE message. Make sure that the frame is visible if the
5784         window is visible. This seemss to fix the problem where XEmacs
5785         appears to freeze after switching desktops with certain virtual
5786         window managers.
5787         (debug_output_mswin_message): Added code to output message
5788         parameters for WM_WINDOWPOSCHANGED, 
5789         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5790
5791 2002-05-25  Andy Piper  <andy@xemacs.org>
5792
5793         * select-x.c (vars_of_select_x): Fix docstring of
5794         x-selection-strict-motif-ownership
5795
5796 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5797
5798         * keymap.c (get_keymap):
5799         Add comment about do_autoload GCPROs own args.
5800
5801 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5802
5803         * bytecode.c (execute_optimized_program): check_opcode ifdef
5804         ERROR_CHECK_BYTE_CODE.
5805
5806 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5807
5808         Thanks to Ben Wing and Michael Sperber.
5809
5810         * eval.c (Fcommand_execute):
5811         (Feval):
5812         (Ffuncall):
5813         (Fmacroexpand_internal):
5814         (function_argcount):
5815         callint.c (Fcall_interactively):
5816         Add comment about do_autoload GCPROs own args.
5817
5818         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5819
5820         * eval.c (Ffuncall): Extra braces to placate GCC.
5821
5822 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5823
5824         * backtrace.h (grow_specpdl):
5825         (SPECPDL_RESERVE):
5826         * EmacsFrame.c (EmacsFrameSetValues):
5827         * eval.c (grow_specpdl):
5828         * ExternalShell.c (hack_event_masks_1):
5829         * glyphs-x.c (convert_EImage_to_XImage): 
5830         (x_finalize_image_instance):
5831         * ralloc.c (page_size):
5832         (r_alloc_sbrk):
5833         * xgccache.c (gc_cache_hash):
5834         Fix unsigned comparison warnings.
5835
5836 2002-07-29  Jerry James  <james@xemacs.org>
5837
5838         * lread.c (locate_file): Any nonnegative return value indicates
5839         success if MODE is nonnegative.
5840
5841 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5842
5843         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5844         argument. 
5845
5846 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5847
5848         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5849
5850         * dumper.c (pdump_get_indirect_count):
5851         (pdump_scan_by_alignment):
5852         (pdump_dump_root_struct_ptrs):
5853         (pdump_dump_rtables):
5854         (pdump_dump_root_objects):
5855         (pdump):
5856         * nas.c (WaveOpenDataForReading):
5857         * fns.c (print_bit_vector):
5858         * font-lock.c (SINGLE_SYNTAX_STYLE):
5859         * glyphs.c (check_for_ignored_expose):
5860         (find_matching_subwindow):
5861         * glyphs-eimage.c:
5862         * imgproc.c (get_histogram):
5863         * redisplay.c (point_in_line_start_cache):
5864         * redisplay-output.c (redisplay_unmap_subwindows):
5865         * symbols.c (defsymbol_massage_name_1):
5866         (defkeyword_massage_name):
5867         (deferror_massage_name_and_message):
5868         * redisplay-x.c (x_output_string): 
5869         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5870         * frame.h (struct frame):
5871         * filelock.c (current_lock_owner):
5872         * doprnt.c (emacs_doprnt_1):
5873         * lisp.h (struct Lisp_Bit_Vector):
5874         (DO_REALLOC):
5875         Fix warnings.
5876
5877 2002-02-13  Ben Wing  <ben@xemacs.org>
5878
5879         * event-stream.c (reset_key_echo):
5880         * event-stream.c (reset_this_command_keys):
5881         * event-stream.c (execute_command_event):
5882         If console is dead as a result of C-x 5 0, then post-command stuff
5883         needs to be careful and do only non-console-specific stuff.
5884
5885 2002-07-01  Mike Sperber <mike@xemacs.org>
5886
5887         * process-unix.c (unix_send_process): Mark coding_outstream as
5888         non-open upon SIGPIPE.
5889
5890         * event-stream.c (Fnext_event): Reorder switch cases to something
5891         that makes sense.
5892
5893 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5894
5895         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5896         Don't bogusly reinitialize ascii_character property.
5897
5898 2002-07-08  Mike Sperber <mike@xemacs.org>
5899
5900         * process.c (Fstart_process_internal): Do error checking before we
5901         fork off the child, so the child can't muck with the state of the
5902         parent.
5903
5904 2002-07-08  Mike Sperber <mike@xemacs.org>
5905
5906         * ralloc.c (init_ralloc): Allocate properly for pdump.
5907
5908 2002-06-12  Andy Piper  <andy@xemacs.org>
5909
5910         * glyphs.c (query_string_geometry): check the string.
5911
5912         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5913         widget names.
5914
5915 2002-06-17  Jerry James  <james@xemacs.org>
5916
5917         * sysdll.c: Remove RTLD_GLOBAL initialization.
5918         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5919
5920 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5921
5922         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5923
5924 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5925
5926         * sysdep.c (sys_rename): Make sys_rename work for the case where
5927         Windows rename sets errno to EACCES if target file exists.
5928
5929 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5930
5931         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5932         Fix detection of metric units to work on Win95
5933
5934 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5935
5936         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5937
5938 2002-04-25  Andy Piper  <andy@xemacs.org>
5939
5940         * redisplay.c (create_text_block): Remove extra comment trailer.
5941
5942 2002-04-24  Andy Piper  <andy@xemacs.org>
5943
5944         * redisplay.c (create_text_block): Don't actually add propagation
5945         data if the line ends after we have added a glyph.
5946
5947 2002-04-22  Andy Piper  <andy@xemacs.org>
5948
5949         * extents.c (extent_fragment_update): check for glyphs we have
5950         previously displayed.
5951         * extents.c (print_extent_1): warning removal.
5952         * extents.h: change prototype.
5953         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5954         widths correctly for wide glyphs.
5955         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5956         * redisplay.c (prop_type): add PROP_GLYPH.
5957         * redisplay.c (struct prop_block): add glyph type
5958         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5959         to the propagation data.
5960         * redisplay.c (create_text_block): if there is a glyph in the
5961         propagation data use it to salt extent_fragment_update.
5962         * redisplay.c (create_string_text_block): ditto.
5963
5964 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5965
5966         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5967         * redisplay-output.c (compare_runes): Compare them.
5968         * redisplay.c: Update copyright date.
5969         * redisplay.c (pos_data): Add need_baseline_computation field.
5970         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5971         need_baseline_computation; zero yoffset. Set max_pixmap_height
5972         for all pixmaps, not just automatically positioned ones.
5973         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5974         * redisplay.c (calculate_baseline): New, compute textual baseline.
5975         * redisplay.c (add_glyph_rune): Call them.
5976         * redisplay.c (create_text_block): Likewise.
5977         * redisplay.c (create_overlay_glyph_block): Likewise.
5978         * redisplay.c (add_margin_runes): Likewise.
5979         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5980
5981         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5982         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5983         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5984         * redisplay-msw.c (mswindows_output_string): Likewise.
5985         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5986         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5987         * redisplay-x.c (x_output_display_block): Likewise.
5988
5989 2002-03-28  Ben Wing  <ben@xemacs.org>
5990
5991         * redisplay.c: Fixed bug in redisplay
5992         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5993         and down of the lines, since they're bigger than the line
5994         size. (It was seen most obviously when there's a horizontal scroll
5995         bar, e.g. do C-h a glyph or something like that.) The problem was
5996         that the glyph-contrib-p setting on glyphs was ignored even if it
5997         was set properly, which it wasn't until now.
5998
5999 2002-04-24  Andy Piper  <andy@xemacs.org>
6000
6001         * lisp.h (Dynarr_end): Fix definition.
6002
6003 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6004
6005         * redisplay.c (mark_redisplay): Remove call to
6006         update_frame_window_mirror.
6007
6008 2001-11-15  Andy Piper  <andy@xemacs.org>
6009
6010         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6011         cygwin (again).
6012
6013 2002-02-13  Andy Piper  <andy@xemacs.org>
6014
6015         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6016         we did in fact enqueue the XM_MAPFRAME event.
6017
6018 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6019
6020         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6021         to fix problem switching between virtual desktops under virtuawin
6022         virtual window manager.
6023
6024 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6025
6026         * event-msw.c: Typo fix.
6027         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6028         magic XM_MAPFRAME event has been sent.
6029
6030 2001-11-23  Andy Piper  <andy@xemacs.org>
6031
6032         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6033
6034 2001-11-21  Andy Piper  <andy@xemacs.org>
6035
6036         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6037         mouse events outside the frame.
6038
6039 2002-03-20  Andy Piper  <andy@xemacs.org>
6040
6041         * menubar-msw.c (mswindows_popup_menu): warning removal.
6042         * dialog-msw.c (dialog_popped_down): ditto.
6043
6044 2001-12-11  Andy Piper  <andy@xemacs.org>
6045
6046         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6047         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6048         popup_up_p.
6049         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6050         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6051         * menubar-msw.c (mswindows_popup_menu): ditto.
6052
6053 2001-10-29  Andy Piper  <andy@xemacs.org>
6054
6055         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6056         cancels.
6057
6058 2002-01-03  Andy Piper  <andy@xemacs.org>
6059
6060         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6061         letters.
6062         (xrealpath): ditto.
6063
6064 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6065
6066         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6067         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6068         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6069         Detect and handle case where machine is set up for metric units
6070
6071 2002-04-02  Andy Piper  <andy@xemacs.org>
6072
6073         * dired-msw.c (mswindows_get_files): 
6074         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6075         completely handled by XEmacs. Suggested by Thomas Vogler
6076         <mail@thomas-vogler.de>.
6077
6078 2001-11-14  Andy Piper  <andy@xemacs.org>
6079
6080         * nt.c (REG_ROOT): change registry key to XEmacs.
6081
6082 2002-04-27  Andy Piper  <andy@xemacs.org>
6083
6084         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6085
6086 2002-04-26  Andy Piper  <andy@xemacs.org>
6087
6088         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6089         behavior.
6090
6091 2002-03-14  Mike Alexander  <mta@arbortext.com>
6092
6093         * event-msw.c (mswindows_unwait_process): New, remove process from
6094         wait list
6095         * process-nt.c (nt_finalize_process_data): Call
6096         mswindows_unwait_process
6097         * console-msw.h: Declare mswindows_unwait_process
6098
6099 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6100
6101         * editfns.c (Fdecode_time):
6102         (Fformat_time_string):
6103         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6104         (make_time): Warning elimination (change arg name).
6105
6106 2001-11-24  Andy Piper  <andy@xemacs.org>
6107
6108         * window.c (Fsplit_window): Doc return type.
6109
6110 2002-04-01  Andy Piper  <andy@xemacs.org>
6111
6112         * emacs.c (Fkill_emacs): Only output message box in interactive
6113         mode.
6114
6115 2002-04-26  Andy Piper  <andy@xemacs.org>
6116  
6117         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6118         cygwin.
6119
6120 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6121
6122         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6123         bit platform.
6124
6125 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6126
6127         * XEmacs 21.4.8 "Honest Recruiter" is released.
6128
6129 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6130
6131         Supersedes 2002-04-17 patch.
6132
6133         * process.h (PROCESS_LIVE_P): Use the process status as
6134         evidence of health, not the state of the input stream.
6135         (PROCESS_READABLE_P): Say if the process is readable
6136         from. (It may be dead nonetheless.)
6137         (CHECK_READABLE_PROCESS): Test for that condition.
6138
6139         * process.c (create_process): Use PROCESS_READABLE_P.
6140         (read_process_output, set_process_filter): Likewise.
6141
6142         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6143         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6144
6145         This code is #if 0'd, this is not the time to add new functions:
6146
6147         * process.c (Fprocess_readable_p): Report readability status.
6148         * process.c (Qprocess_readable_p): New, associated symbol...
6149         * process.c (syms_of_process): ... initialize it.
6150
6151 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6152
6153         * XEmacs 21.4.7 "Economic Science" is released.
6154
6155 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6156
6157         * process.h (PROCESS_LIVE_P): Use the process status as
6158         evidence of health, not the state of the input stream.
6159
6160 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6161
6162         * sysdep.c (sys_siglist): change "signum" to "signal"
6163
6164 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6165
6166         * s/darwin.h: New file.
6167         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6168         
6169 2002-04-23  Andreas Jaeger  <aj@suse.de>
6170
6171         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6172         which use lib64 for 64-bit libs.
6173         (START_FILES): Likewise.
6174
6175 2002-02-11  Mike Sperber  <mike@xemacs.org>
6176
6177         * device-x.c: 
6178         (x_IO_error_handler):
6179         (x_init_device): Temporarily keep device in static variable
6180         `device_being_initialized' so we can recover gracefully from
6181         internal XOpenDevice failure.  (XOpenDevice is documented to
6182         return NULL on failure, but sometimes calls the IO error handler
6183         instead.)
6184
6185 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6186
6187         * dired.c (Ffile_name_all_completions): Change documentation --
6188         remove reference to completion-ignored-extensions.
6189         * dired.c (vars_of_dired): Change documentation for
6190         completion-ignored-extensions -- remove reference to
6191         file-name-all-completions.
6192
6193 2002-03-06  Jerry James  <james@xemacs.org>
6194
6195         * emodules.c (emodules_load): Fix multiple loading of same module.
6196
6197 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6198         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6199         RTLD_LAZY to avoid incorrect symbol binding when using nested
6200         shared libraries on Solaris.
6201
6202 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6203
6204         * fileio.c (Ffind_file_name_handler): Improve docstring.
6205
6206 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6207
6208         * fns.c (Fmapconcat): Improve docstring.
6209
6210 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6211
6212         * device-gtk.c: Add prototype for
6213         emacs_gtk_selection_clear_event_handle.
6214         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6215         selection.  Setup signal handler for "selection_clear_event"
6216         (emacs_gtk_selection_clear_event_handle).
6217
6218         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6219         other applications owning the clipboard (based on
6220         x_handle_selection_clear).
6221
6222 2001-12-23  William M. Perry  <wmperry@gnu.org>
6223
6224         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6225         
6226 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6227
6228         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6229
6230 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6231
6232         * XEmacs 21.4.6 "Common Lisp" is released.
6233
6234 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6235
6236         * search.c (Freplace_match): Add missing sub-expression functionality.
6237
6238         * buffer.c (decode_buffer): Add a check for pointer type to
6239         decode_buffer, before gcc's CSE optimization reorders a
6240         dereference in front of the allow_string test.
6241
6242 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6243
6244         * window.c (window_loop): Fix bug that sometimes prevented
6245         window_loop() from iterating across multiple devices.  Also, at
6246         Ben's request, changed infloop-detecting code to abort() instead
6247         of silently terminating window_loop().
6248
6249 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6250
6251         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6252         * editfns.c (make_time): New function.
6253         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6254         * lisp.h (make_time): Prototype and comment it.
6255         * dired.c (wasteful_word_to_lisp): Deprecate.
6256         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6257
6258 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6259
6260         * fileio.c (auto_save_1): Use current coding system, not
6261         escape-quoted.
6262
6263 2001-11-13  Ben Wing  <ben@xemacs.org>
6264
6265         * window.c:
6266         * window.c (window_truncation_on):
6267         * window.c (syms_of_window):
6268         truncate-partial-width-windows should respect the buffer being
6269         displayed, like other redisplay vars.
6270
6271 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6272
6273         * event-stream.c (Fread_key_sequence): save current buffer.
6274
6275 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6276
6277         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6278
6279 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6280
6281         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6282
6283 2001-10-26  Mike Alexander  <mta@arbortext.com>
6284
6285         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6286
6287 2001-10-25  Andy Piper  <andy@xemacs.org>
6288
6289         * ChangeLog:
6290         * dialog-msw.c (handle_directory_proc): new function.
6291          (handle_directory_dialog_box): new fucntion.
6292          (handle_file_dialog_box): use new directory dialog support.
6293          (mswindows_make_dialog_box_internal): ditto.
6294         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6295         handling.
6296         (mswindows_find_frame): make global.
6297         * fileio.c (Fexpand_file_name): build fix.
6298         * general-slots.h: add Qdirectory.
6299         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6300         handling.
6301         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6302         cygwin not leaving win32 paths unchanged.
6303         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6304         cygwin runtime to do path conversion.
6305         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6306         (syms_of_win32): add new function.
6307         * window.c (window_loop): build fix.
6308
6309 2001-10-15  Andy Piper  <andy@xemacs.org>
6310
6311         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6312
6313 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6314
6315         * XEmacs 21.4.5 "Civil Service" is released.
6316
6317 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6318
6319         * glyphs-x.c: Force buffer-tab highlight update when moving the
6320         buffer, avoiding an ugly black border, used for keyboard focus
6321         indication, on a widget that can never have keyboard focus, the
6322         buffer tab.
6323
6324 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6325
6326         * process-unix.c (unix_open_multicast_group): Remove too much
6327         conversion between host and network byte order.
6328
6329 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6330
6331         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6332         before replacing them.
6333
6334         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6335         operation.
6336
6337         * src/window.c (undedicate_windows): Use it.
6338         * src/window.h: Add prototype.
6339
6340 2001-09-17  Ben Wing  <ben@xemacs.org>
6341
6342         * fileio.c (normalize_filename):
6343         * fileio.c (Fexpand_file_name):
6344         Fix various C++ compile errors in Andy's recent code.
6345         
6346         * callint.c (Fcall_interactively):
6347         * editfns.c (Ftemp_directory):
6348         * editfns.c (Fuser_full_name):
6349         * emacs.c (argmatch):
6350         * lread.c (locate_file_map_suffixes):
6351         * redisplay-x.c (x_ring_bell):
6352         Fix sign-compare warnings.
6353         
6354 2001-09-08  Andy Piper  <andy@xemacs.org>
6355
6356         * fileio.c (normalize_filename): copied from nt.c
6357         * (Ffile_name_directory): enable win32 paths under cygwin.
6358         * (Ffile_name_nondirectory): ditto.
6359         * (directory_file_name): ditto.
6360         * (Fexpand_file_name): ditto.
6361         * (Ffile_truename): ditto.
6362         * (Fsubstitute_in_file_name): ditto.
6363         * (Ffile_name_absolute_p): ditto.
6364         * (Ffile_readable_p): ditto.
6365
6366 2001-09-08  Andy Piper  <andy@xemacs.org>
6367
6368         * device-msw.c (mswindows_finish_init_device): remove dde
6369         initialization.
6370         * device-msw.c (mswindows_init_dde): factor out from
6371         mswindows_finish_init_device()
6372         * device-msw.c (init_mswindows_very_early): new function
6373         initialize but don't enable dde.
6374         * emacs.c (main_1): call init_mswindows_very_early.
6375         * event-msw.c:
6376         * event-msw.c (mswindows_dde_callback): only execute when we are
6377         ready.
6378         * symsinit.h: declare init_mswindows_very_early.
6379
6380 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6381
6382         [sjt: This has been in 21.5 for months with no complaints.]
6383
6384         * console.h (struct console_methods): Added flags member.
6385         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6386         (CONMETH_IMPL_FLAG):
6387         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6388         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6389
6390         * device.c (window_system_pixelated_geometry): Use the above macros.
6391
6392         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6393         implememntation flag.
6394         * device.h (DEVICE_DISPLAY_P): Use it.
6395
6396         * frame.c (delete_frame_internal): Use the above macro.
6397
6398         * redisplay.c (redisplay_device): Use it.
6399         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6400         (redisplay_frame): Ditto.
6401
6402         * device-msw.c (mswindows_device_implementation_flags): Removed.
6403         (msprinter_device_implementation_flags): Removed.
6404         (console_type_create_device_mswindows): Removed references to
6405         implementation_flags methods, set implementation flags here.
6406         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6407
6408         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6409         (console_type_create_device_gtk): Removed method declaration.
6410         Added commented out statement which semantically matches the
6411         commented out statement in the above removed method.
6412
6413 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6414
6415         The attached patch fixes a few warnings. 
6416
6417         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6418         * src/frame-gtk.c: guard against GNOME calls in GTK only
6419         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6420         * src/select-gtk.c: prototype lisp_to_time
6421
6422 2001-06-08  Ben Wing  <ben@xemacs.org>
6423
6424         ------ gc-in-window-procedure fixes ------
6425         
6426         * alloc.c:
6427         * alloc.c (struct post_gc_action):
6428         * alloc.c (register_post_gc_action):
6429         * alloc.c (run_post_gc_actions):
6430         * alloc.c (garbage_collect_1):
6431         Create "post-gc actions", to avoid those dreaded "GC during window
6432         procedure" problems.
6433
6434         * event-msw.c:
6435         Abort, clean and simple, when GC in window procedure.  We want
6436         to flush these puppies out.
6437
6438         * glyphs-msw.c:
6439         * glyphs-msw.c (finalize_destroy_window):
6440         * glyphs-msw.c (mswindows_finalize_image_instance):
6441         Use a post-gc action when destroying subwindows.
6442
6443         * lisp.h:
6444         Declare register_post_gc_action().
6445
6446         * scrollbar-msw.c:
6447         * scrollbar-msw.c (unshow_that_mofo):
6448         Use a post-gc action when unshowing scrollbar windows, if in gc.
6449
6450         * redisplay.c (mark_redisplay):
6451         Add comment about the utter evilness of what's going down here.
6452
6453         ------ cygwin setitimer fixes ------
6454         
6455         * Makefile.in.in (sheap_objs):
6456         * Makefile.in.in (profile_objs):
6457         * Makefile.in.in (objs):
6458         Compile profile.c only when HAVE_SETITIMER.
6459         
6460         * nt.c (mswindows_sigset):
6461         * nt.c (mswindows_sighold):
6462         * nt.c (mswindows_sigrelse):
6463         * nt.c (mswindows_sigpause):
6464         * nt.c (mswindows_raise):
6465         * nt.c (close_file_data):
6466         Style fixes.
6467         
6468         * nt.c:
6469         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6470         
6471         * profile.c:
6472         * profile.c (Fstart_profiling):
6473         * profile.c (Fstop_profiling):
6474         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6475         instead of just plain setitimer().
6476         
6477         * signal.c:
6478         * signal.c (set_one_shot_timer):
6479         * signal.c (alarm):
6480         Define qxe_setitimer() as an encapsulation around setitimer() --
6481         call setitimer() directly unless Cygwin or MS Win, in which case
6482         we use our simulated version in win32.c.
6483         
6484         * systime.h:
6485         * systime.h (struct itimerval):
6486         * systime.h (ITIMER_REAL):
6487         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6488         comment about "qxe" and the policy regarding encapsulation.
6489
6490         * win32.c:
6491         * win32.c (setitimer_helper_proc):
6492         * win32.c (setitimer_helper_period):
6493         * win32.c (setitimer_helper):
6494         * win32.c (mswindows_setitimer):
6495         Move setitimer() emulation here, so Cygwin can use it.
6496         Rename a couple of functions and variables to be longer and more
6497         descriptive.  In setitimer_helper_proc(), send the signal
6498         using either mswindows_raise() or (on Cygwin) kill().  If for
6499         some reason we are still getting lockups, we'll change the kill()
6500         to directly invoke the signal handlers.
6501
6502         ------ windows shell fixes ------
6503         
6504         * callproc.c:
6505         * ntproc.c:
6506         Comments about how these two files must die.
6507
6508         * callproc.c (init_callproc):
6509         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6510         not just COMSPEC. (more correct and closer to FSF.) Don't
6511         force a value for SHELL into the environment. (Comments added
6512         to explain why not.)
6513         
6514         * nt.c (init_user_info):
6515         Don't shove a fabricated SHELL into the environment.  See above.
6516
6517 2001-06-01  Ben Wing  <ben@xemacs.org>
6518
6519         * Makefile.in.in (ldflags):
6520         eliminate that pesky "defaulting to 00401000" warning.
6521         * nt.h:
6522         eliminate warnings.
6523
6524 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6525
6526         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6527         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6528
6529 2001-04-24  Jerry James <james@xemacs.org>
6530
6531         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6532         correct order.
6533
6534 2001-06-01  Ben Wing  <ben@xemacs.org>
6535
6536         * event-msw.c (debug_mswin_messages):
6537         conditionalize the messages that were causing compile errors.
6538         (if only macros could generate #ifdef statements ...)
6539
6540 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6541
6542         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6543
6544 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6545
6546         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6547
6548 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6549
6550         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6551         * process-unix.c (unix_canonicalize_host_name):
6552         sysdep.c (init_system_name):
6553         Use it to conditionally support IPv6 canonicalization.
6554
6555 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6556
6557         * event-msw.c:
6558         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6559
6560 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6561
6562         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6563         attempt is made to scroll when no scroll bar is available.
6564
6565 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6566
6567         * input-method-motif.c (XIM_delete_frame): New callback.
6568         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6569         got deleted from 21.4.3.)
6570
6571 2001-06-01  Ben Wing  <ben@xemacs.org>
6572
6573         * nt.c (mswindows_utime):
6574         * nt.c (close_file_data):
6575         fix off-by-one-indirection error.
6576
6577 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6578
6579         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6580         because set_file_times() now takes Lisp_Object path, instead of
6581         char*.
6582         * nt.c: Include buffer.h.
6583         * nt.c (convert_from_time_t): New.
6584         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6585         not set mtime correctly.
6586         * nt.h: Declare mswindows_utime().
6587         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6588         path, instead of char*.
6589         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6590
6591 2001-05-30  Ben Wing  <ben@xemacs.org>
6592
6593         For 21.4:
6594
6595         (Stephen, just take all event-msw.c patches.  This includes
6596         the "iconify" fix below.)
6597
6598         * event-msw.c:
6599         * event-msw.c (mswindows_dequeue_dispatch_event):
6600         * event-msw.c (assert):
6601         * event-msw.c (emacs_mswindows_quit_p):
6602         * event-msw.c (debug_mswin_messages):
6603         * event-msw.c (debug_output_mswin_message):
6604         * event-msw.c (vars_of_event_mswindows):
6605         Fix yet more problems with C-g handling.
6606         Implement debug-mswindows-events.
6607         
6608 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6609
6610         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6611         
6612 2001-05-23  Ben Wing  <ben@xemacs.org>
6613
6614         * event-msw.c (winsock_writer):
6615         * event-msw.c (winsock_closer):
6616         prior kludgy code was clobbering the buffer, thinking it was
6617         "unused" space to store an unneeded return value; instead, use
6618         the variable we've already got staring us in the face.
6619
6620 2001-05-17  Andy Piper  <andy@xemacs.org>
6621
6622         * sysfile.h: don't assume that file attributes are boolean
6623
6624 2001-05-23  Ben Wing  <ben@xemacs.org>
6625
6626         * device-msw.c (msprinter_init_device):
6627         signal an error rather than crash with an unavailable network
6628         printer (from Mike Alexander).
6629         
6630         * event-msw.c:
6631         * event-msw.c (struct winsock_stream):
6632         * event-msw.c (winsock_writer):
6633         * event-msw.c (winsock_closer):
6634         * event-msw.c (make_winsock_stream_1):
6635         cleanup headers.  fix (hopefully) an error with data corruption
6636         when sending to a network connection.
6637
6638         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6639         to handle the ~user prefix by (a) always assuming we're referencing
6640         ourselves and not even verifying the user -- hence any file with
6641         a tilde as its first char is invalid! (b) if there wasn't a slash
6642         following the filename, the pointer was set *past* the end of
6643         file and we started reading from uninitialized memory.  Now we
6644         simply treat these as files, always.
6645
6646         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6647         
6648 2001-05-19  Ben Wing  <ben@xemacs.org>
6649
6650         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6651
6652         * process-nt.c:
6653         * process-nt.c (vars_of_process_nt):
6654         remove unused mswindows-quote-process-args.  rec for 21.4.
6655         
6656 2001-05-12  Ben Wing  <ben@xemacs.org>
6657
6658         * event-msw.c (mswindows_dde_callback):
6659         * event-msw.c (mswindows_wnd_proc):
6660         eliminate cygwin warnings.
6661
6662 2001-05-06  Ben Wing  <ben@xemacs.org>
6663
6664         * console-msw.h:
6665         * device-msw.c:
6666         * device-msw.c (print_dialog_worker):
6667         * device-msw.c (mswindows_handle_print_dialog_box):
6668         * device-msw.c (syms_of_device_mswindows):
6669         * dialog-msw.c (mswindows_make_dialog_box_internal):
6670         * general-slots.h:
6671         implement printing the selection when it's selected.
6672
6673 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6674
6675         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6676
6677 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6678
6679         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6680         EMACS_INT is signed.
6681
6682 2001-04-15  Michael Lausch  <mla@1012surf.net>
6683
6684         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6685         gtk_widget_request_size() to give scrollbar >0 width for
6686         GTK >1.2.8.
6687
6688 2001-05-30  William M. Perry  <wmperry@gnu.org>
6689
6690         * event-gtk.c: Check for buttons as modifier keys.
6691
6692 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6693
6694         * s\mingw32.h:
6695         Properly find MinGW's <process.h> inside Cygwin's restructured
6696         include directories.  Don't try to include <cygwin/version.h>
6697         since we are dropping support for MinGW in versions of Cygwin
6698         earlier than b21.
6699         * nt.c:
6700         Drop support for MinGW in versions of Cygwin before b21.
6701         * sysdep.c:
6702         Properly find MinGW's <process.h> inside Cygwin's restructured
6703         include directories.
6704         * syswindows.h:
6705         Drop support for MinGW in versions of Cygwin before b21.
6706         * unexcw.c:
6707         Even though a.out.h is no longer detected by configure, allow
6708         MinGW to use it until we figure out how to do the job with Win32.
6709
6710 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6711
6712         * syntax.c (find_start_of_comment):
6713         Fix `unbalanced parentheses' bug when dealing with mixed comment
6714         styles in c++/java/etc. mode
6715
6716 2001-05-29  Mike Alexander  <mta@arbortext.com>
6717
6718         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6719         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6720
6721 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6722
6723         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6724
6725 2001-03-31  Mike Sperber <mike@xemacs.org>
6726
6727         * search.c (Freplace_match): Support FSF-style specification of
6728         match subexpression when applied to a buffer.
6729
6730 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6731
6732         * event-stream.c (is_scrollbar_event): add missing semicolon
6733
6734 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6735
6736         * Makefile.in.in: Use TAR macro instead of hardcoding
6737           tar.  Allows use of GNU tar instead of system tar
6738
6739 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6740
6741         * event-stream.c (is_scrollbar_event): add missing semicolon
6742
6743 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6744
6745         * XEmacs 21.4.3 "Academic Rigor" is released.
6746
6747 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6748
6749         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6750
6751 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6752
6753         * buffer.c (Vcase_fold_search): Remove obsolete
6754           comment about non ASCII case-fold-search.  This
6755           bug has been fixed by case-table changes.
6756
6757 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6758
6759         * event-msw.c: Restore include of events-mod.h.
6760
6761 2001-04-22   zhaoway  <zw@debian.org>
6762
6763         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6764         !HAVE_SCROLLBARS.
6765
6766 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6767
6768         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6769
6770 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6771
6772         * mule-charset.c (Fmake_charset): Add missing else.
6773
6774 2001-04-23  Ben Wing  <ben@xemacs.org>
6775
6776         * event-msw.c (FAKE_MOD_QUIT):
6777         * event-msw.c (mswindows_dequeue_dispatch_event):
6778         * event-msw.c (mswindows_wnd_proc):
6779         * event-msw.c (emacs_mswindows_quit_p):
6780         Get critical quit working.
6781
6782 2001-05-05  Ben Wing  <ben@xemacs.org>
6783
6784         * console-msw.h:
6785         * device-msw.c:
6786         * device-msw.c (mswindows_get_default_margin):
6787         * frame-msw.c (mswindows_size_frame_internal):
6788         * frame-msw.c (msprinter_init_frame_1):
6789         * frame-msw.c (vars_of_frame_mswindows):
6790         Change top/bottom margin defaults to 0.5 inches.
6791
6792 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6793
6794         Fix link error with gcc 3.0 on Linux.
6795         * terminfo.c (UP): Remove.
6796         * terminfo.c (BC): Remove.
6797         * terminfo.c (PC): Remove.
6798         They weren't used, and in any case, these symbols should be
6799         defined in the *library*.
6800
6801 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6802
6803         * s/aix4.h: Fix crash with xlc -O3.
6804         Improve comment explaining how -O3 works.
6805
6806 2001-04-15  Ben Wing  <ben@xemacs.org>
6807
6808         * event-stream.c:
6809         * event-stream.c (Fnext_event):
6810         * event-stream.c (is_scrollbar_event):
6811         * event-stream.c (execute_command_event):
6812         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6813         crash' problem.  His fix introduces other problems.  We filter
6814         out scrollbar events specifically, making them somewhat invisible
6815         to command-building, and not appearing in `this-command-keys'.
6816         More work is still needed (see comments in event-stream.c), but
6817         this fixes all the major problems.
6818
6819 2001-04-20  Ben Wing  <ben@xemacs.org>
6820
6821         * .cvsignore: Added stuff for Windows.
6822
6823 2001-04-28  Ben Wing  <ben@xemacs.org>
6824
6825         * buffer.c (Ferase_buffer):
6826         * editfns.c (buffer_insert1):
6827         * editfns.c (Finsert_before_markers):
6828         * editfns.c (Finsert_string):
6829         * editfns.c (Finsert_char):
6830         * editfns.c (Fdelete_region):
6831         * editfns.c (Fwiden):
6832         * editfns.c (Fnarrow_to_region):
6833         remove bogus lines setting zmacs_region_stays to 0.
6834         
6835 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6836
6837         * process-unix.c (unix_open_network_stream): If connect() fails
6838         invalidate file descriptor after closing it.
6839
6840 2001-03-08  Mike Alexander  <mta@arbortext.com>
6841
6842         * event-msw.c (mswindows_need_event_in_modal_loop):
6843         Don't dispatch a message if we didn't get one.
6844         (mswindows_need_event):
6845         Terminate the correct process when one exits instead of the first
6846         one on Vprocess_list and look for process termination when in
6847         mswindows_protect_modal_loop.
6848
6849 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6850
6851         * XEmacs 21.4.1 "Copyleft" is released.
6852
6853 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6854
6855         * input-method-motif.c (XIM_delete_frame): New callback.
6856         (XIM_init_frame): Register it.
6857
6858 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6859
6860         * XEmacs 21.4.0 "Solid Vapor" is released.
6861
6862 2001-04-15  Ben Wing  <ben@xemacs.org>
6863
6864         * cmdloop.c (call_command_loop):
6865         Fix braino in bit-rotting code.
6866         
6867 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6868
6869         * extents.c (Fset_extent_endpoints): Force creation of extent info
6870         in buffer_or_string.
6871
6872         * extents.c (process_extents_for_insertion_mapper): Correctly
6873         check for open-open zero-length extents.
6874
6875 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6876
6877         * lisp.h: New typedefs Memory_count, Element_count.
6878         * regex.c:
6879         * regex.h:
6880         Sign-compare warning elimination: several unsigned -> signed.
6881         Based on work by Ben Wing <ben@xemacs.org>.
6882
6883 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6884
6885         * XEmacs 21.2.47 "Zephir" is released.
6886
6887 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6888
6889         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6890
6891 2001-04-03  Mike Sperber <mike@xemacs.org>
6892
6893         * search.c: Revert previous patch due because of release.
6894
6895 2001-03-30  Ben Wing  <ben@xemacs.org>
6896
6897         * s\cygwin32.h:
6898         Add missing killpg prototype.
6899
6900         * elhash.c:
6901         Add a comment about fixing problems when a new entry is added
6902         while mapping.
6903
6904         * frame-msw.c (mswindows_init_frame_1):
6905         Fix compile warnings.
6906
6907         * menubar.c (vars_of_menubar):
6908         Provide `menu-accelerator-support' to indicate that we properly
6909         support %_ in menu specifications, so that package code can
6910         conditionalize on this (and remove %_ from menu specifications
6911         on older versions).
6912
6913         * event-msw.c:
6914         * scrollbar-msw.c:
6915         * scrollbar-msw.c (can_scroll):
6916         * scrollbar-msw.h:
6917         Fix handling of mouse wheel under Windows to follow standards --
6918         now scrolls window under pointer, not selected window.
6919
6920 2001-03-31  Mike Sperber <mike@xemacs.org>
6921
6922         * search.c (Freplace_match): Support FSF-style specification of
6923         match subexpression when applied to a buffer.
6924
6925 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6926
6927         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6928         function to modify KEYMAP, so map over a copy of the hash table.
6929
6930 2001-03-21  Martin Buchholz <martin@xemacs.org>
6931
6932         * XEmacs 21.2.46 "Urania" is released.
6933
6934 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6935
6936         * realpath.c (xrealpath): Make file-truename work with symlinks to
6937         /cygdrive paths on cygwin. Always lowercase drive-letters on
6938         native windows.
6939         (cygwin_readlink): Don't try to find canonical filename unless
6940         file exists.
6941
6942 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6943
6944         * ChangeLog: Log GTK merge.
6945
6946         * dumper.c:
6947         * select-x.c:
6948         * specifier.c:
6949         * symeval.h:
6950         Revert gratuitous whitespace changes from GTK merge.
6951
6952         * emacs.c: Document end of complex #ifdef @ l. 1495.
6953
6954
6955 2001-03-12  Andy Piper  <andy@xemacs.org>
6956
6957         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6958         have to do likewise.
6959
6960 2001-03-12  Andy Piper  <andy@xemacs.org>
6961
6962         * sysdep.c: we only support mingw now.
6963
6964 2001-03-09  Andy Piper  <andy@xemacs.org>
6965
6966         * unexcw.c (copy_executable_and_dump_data_section): making approx
6967         overrun a warning only.
6968
6969 2001-03-10  William M. Perry  <wmperry@aventail.com>
6970
6971         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6972         satisfy Stephen's identical-after-cpp plea.
6973
6974 2001-03-02  Ben Wing  <ben@xemacs.org>
6975
6976         * cmds.c:
6977         * cmds.c (Fforward_char):
6978         * syntax.c:
6979         * window.c:
6980
6981         Augment documentation of the most common motion commands to make
6982         note of the shifted-motion support.
6983         
6984 2001-03-02  Ben Wing  <ben@xemacs.org>
6985
6986         * nt.c (mswindows_fstat):
6987         * nt.c (mswindows_stat):
6988         * search.c (boyer_moore):
6989         Fix compile warnings under Windows.
6990         
6991         * sysdep.c (sys_readdir):
6992         Fix buggy filename-conversion code under Mule.
6993
6994 2001-03-09  William M. Perry  <wmperry@aventail.com>
6995
6996         * Makefile.in.in:
6997         * config.h.in:
6998         * console.c:
6999         * console.h:
7000         * device.c:
7001         * device.h:
7002         * dragdrop.c:
7003         * emacs.c:
7004         * event-stream.c:
7005         * events.c:
7006         * events.h:
7007         * faces.c:
7008         * frame.h:
7009         * general-slots.h:
7010         * glyphs.c:
7011         * gutter.c:
7012         * inline.c:
7013         * lisp.h:
7014         * lrecord.h:
7015         * make-src-depend:
7016         * redisplay-output.c:
7017         * redisplay.c:
7018         * symsinit.h:
7019         * sysfile.h:
7020         * toolbar.c:
7021         * window.c:
7022         The Great GTK Merge.
7023
7024         * ChangeLog.GTK:
7025         * console-gtk.c:
7026         * console-gtk.h:
7027         * device-gtk.c:
7028         * emacs-marshals.c:
7029         * emacs-widget-accessors.c:
7030         * event-gtk.c:
7031         * frame-gtk.c:
7032         * gccache-gtk.c:
7033         * gccache-gtk.h:
7034         * glade.c:
7035         * glyphs-gtk.c:
7036         * glyphs-gtk.h:
7037         * gtk-glue.c:
7038         * gtk-xemacs.c:
7039         * gtk-xemacs.h:
7040         * gui-gtk.c:
7041         * gui-gtk.h:
7042         * menubar-gtk.c:
7043         * native-gtk-toolbar.c:
7044         * objects-gtk.c:
7045         * objects-gtk.h:
7046         * redisplay-gtk.c:
7047         * scrollbar-gtk.c:
7048         * scrollbar-gtk.h:
7049         * select-gtk.c:
7050         * toolbar-gtk.c:
7051         * ui-byhand.c:
7052         * ui-gtk.c:
7053         * ui-gtk.h:
7054         The Great GTK Merge: new files.
7055
7056 2001-02-26  Ben Wing  <ben@xemacs.org>
7057
7058         Reapplied Lstream change.
7059
7060 2001-02-26  Ben Wing  <ben@xemacs.org>
7061
7062         Undid the last change, since it is more controversial than I
7063         thought.  It should be back in at some point soon.
7064         
7065 2001-02-25  Ben Wing  <ben@xemacs.org>
7066
7067         * buffer.c:
7068         * callproc.c (Fold_call_process_internal):
7069         * event-msw.c (ntpipe_slurp_reader):
7070         * event-msw.c (ntpipe_shove_writer):
7071         * event-msw.c (winsock_reader):
7072         * event-msw.c (winsock_writer):
7073         * file-coding.c:
7074         * file-coding.c (detect_eol_type):
7075         * file-coding.c (detect_coding_type):
7076         * file-coding.c (determine_real_coding_system):
7077         * file-coding.c (Fdetect_coding_region):
7078         * file-coding.c (decoding_reader):
7079         * file-coding.c (decoding_writer):
7080         * file-coding.c (mule_decode):
7081         * file-coding.c (Fdecode_coding_region):
7082         * file-coding.c (encoding_reader):
7083         * file-coding.c (encoding_writer):
7084         * file-coding.c (mule_encode):
7085         * file-coding.c (Fencode_coding_region):
7086         * file-coding.c (detect_coding_sjis):
7087         * file-coding.c (decode_coding_sjis):
7088         * file-coding.c (encode_coding_sjis):
7089         * file-coding.c (detect_coding_big5):
7090         * file-coding.c (decode_coding_big5):
7091         * file-coding.c (encode_coding_big5):
7092         * file-coding.c (detect_coding_ucs4):
7093         * file-coding.c (decode_coding_ucs4):
7094         * file-coding.c (encode_coding_ucs4):
7095         * file-coding.c (detect_coding_utf8):
7096         * file-coding.c (decode_coding_utf8):
7097         * file-coding.c (encode_coding_utf8):
7098         * file-coding.c (detect_coding_iso2022):
7099         * file-coding.c (decode_coding_iso2022):
7100         * file-coding.c (encode_coding_iso2022):
7101         * file-coding.c (decode_coding_no_conversion):
7102         * file-coding.c (encode_coding_no_conversion):
7103         * glyphs-x.c (write_lisp_string_to_temp_file):
7104         * gpmevent.c (tty_get_foreign_selection):
7105         * lisp.h:
7106         * lstream.c:
7107         * lstream.c (Lstream_flush_out):
7108         * lstream.c (Lstream_adding):
7109         * lstream.c (Lstream_write_1):
7110         * lstream.c (Lstream_write):
7111         * lstream.c (Lstream_raw_read):
7112         * lstream.c (Lstream_read_more):
7113         * lstream.c (Lstream_read):
7114         * lstream.c (Lstream_unread):
7115         * lstream.c (Lstream_fputc):
7116         * lstream.c (stdio_reader):
7117         * lstream.c (stdio_writer):
7118         * lstream.c (filedesc_reader):
7119         * lstream.c (filedesc_writer):
7120         * lstream.c (lisp_string_reader):
7121         * lstream.c (struct fixed_buffer_stream):
7122         * lstream.c (make_fixed_buffer_input_stream):
7123         * lstream.c (make_fixed_buffer_output_stream):
7124         * lstream.c (fixed_buffer_reader):
7125         * lstream.c (fixed_buffer_writer):
7126         * lstream.c (struct resizing_buffer_stream):
7127         * lstream.c (resizing_buffer_writer):
7128         * lstream.c (dynarr_writer):
7129         * lstream.c (lisp_buffer_reader):
7130         * lstream.c (lisp_buffer_writer):
7131         * lstream.h:
7132         * lstream.h (lstream_implementation):
7133         * lstream.h (struct lstream):
7134         * md5.c (Fmd5):
7135         * process-nt.c (nt_send_process):
7136         * process-unix.c (unix_send_process):
7137         
7138         Correct Lstream lossage due to mixing of signed and unsigned
7139         quantities.  All Lstream uses of size_t and ssize_t are now a
7140         single signed data type Lstream_data_count.  This fixes problems
7141         under Windows with sending large quantities of data to a process,
7142         and may well fix other subtle bugs.
7143
7144 2001-02-23  Martin Buchholz <martin@xemacs.org>
7145
7146         * XEmacs 21.2.45 "Thelxepeia" is released.
7147
7148 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7149
7150         * lisp-union.h (XSETINT): 
7151         (XSETCHAR):
7152         (XSETOBJ): 
7153         Reverse previous change of 2001-02-06.
7154
7155 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7156
7157         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7158         buffers.
7159         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7160         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7161         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7162         * regex.c (POS_AS_IN_BUFFER): removed
7163         * regex.c (re_search_2):
7164         * regex.c (re_match_2):
7165         Don't use an offset of 1 when calculating buffer positions, since
7166         `BI_BUF_BEGV' does it already.
7167
7168 2001-02-18  Wim Dumon  <wim@easics.be>
7169
7170         * insdel.c (prepare_to_modify_buffer): Also check for
7171         supersession when clash-detection is enabled. 
7172
7173 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7174
7175         * regex.c (re_match_2_internal):
7176         Convert temp characters from 'const unsigned char' to 're_char'.
7177         Fix crashing bug with extended characters under mule.
7178         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7179         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7180         font-lock, pdump, and new syntax-table code.
7181         * syntax.c (find_start_of_comment):
7182         (find_end_of_comment):
7183         (forward-comment):
7184         Fix crashing bugs involving moving beyond end of buffer.
7185         * syntax.c (find_start_of_comment):
7186         Fixed logic to allow proper detection of cases where the same
7187         character is used to end both a two-char comment start and a
7188         two-char comment end sequence. Fixes `(forward-comment -1)'.
7189         * syntax.c (find_start_of_comment):
7190         Return position just past last comment-end character for all cases
7191         (previously was only done for two-char comment-end sequences).
7192         * syntax.c (forward-comment):
7193         Take value returned from `find_end_of_comment', rather than
7194         incrementing it.
7195         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7196         Properly deal with BUFFERP (syntax_cache.object)
7197
7198 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7199
7200         * alloc.c (Fgarbage_collect): 
7201         * alloc.c (make_bit_vector_from_byte_vector):
7202         -Wsign-compare-correctness.
7203
7204 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7205
7206         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7207         (XSETCHAR): Likewise.
7208         (XSETOBJ): Likewise.
7209
7210 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7211
7212         * mule-canna.c (canna-func-delete_previous): 
7213         Rename to canna-func-delete-previous.
7214
7215 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7216
7217         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7218
7219 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7220
7221         * font-lock.c (find_context): Fix C++ compile errors introduced by
7222         recent patch
7223
7224 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7225
7226         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7227         pragma, but earlier ones barf on the same pragma.
7228
7229 2001-02-06  Mike Sperber <mike@xemacs.org>
7230
7231         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7232         `configure-mule-lisp-directory'.
7233
7234 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7235
7236         Make sure dump-id.c is compiled in the same way as other .c's.
7237         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7238         * dump-id.h: Remove.
7239         * emacs.c: Move dump-id.h into dumper.h.
7240         * dumper.h: Move dump-id.h into dumper.h.
7241         * Makefile.in.in:
7242         Use standard .c.o rule for building dump-id.o.
7243         Remove preprocessor flags from link command.
7244         Add dump-id.o to ${otherobjs} if PDUMP.
7245
7246 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7247
7248         Port FSF 20.7 syntax table improvements.
7249         * syntax.c.
7250         * syntax.h.
7251
7252         Fixups for new syntax table stuff.
7253         * dired.c: Include syntax.c.
7254         (Fdirectory_files): Initialize regex_match_object and
7255         regex_emacs_buffer.
7256         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7257         and Fget_char_property.
7258
7259         Use ported FSF 20.7 syntax table improvements.
7260         * font-lock.c.
7261         * regex.c.
7262         * search.c.
7263         
7264 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7265
7266         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7267         Unixware's enum boolean from sys/types.h.
7268
7269 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7270
7271         Fix support for building with latest Purify.
7272         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7273         (PURIFY_FLAGS): Likewise.
7274
7275 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7276
7277         * fileio.c (lisp_string_set_file_times): New.
7278         * fileio.c (Fcopy_file): Use it.
7279         Fixes bug:
7280         (copy-file filename non-ascii-filename t t)
7281         ==> No such file or directory, non-ascii-filename
7282
7283 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7284
7285         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7286         USHRT_MAX seems clearer than ~0 anyways.
7287
7288 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7289
7290         dumper improvements.  Inspired by Olivier.
7291         * dumper.c (pdump_max_align): New.
7292         * dumper.c (pdump_add_entry): Use pdump_max_align.
7293         * dumper.c (pdump_get_entry_list): Likewise.
7294         * dumper.c (pdump_scan_by_alignment): Likewise.
7295         Don't iterate through unnecessary alignments.
7296         * dumper.c (pdump_file_get): No need to align result of malloc().
7297         * dumper.c (pdump_mallocadr): Remove.  
7298         The result of malloc() is guaranteed to be maximally aligned.
7299         * dumper.c: s/elmt/elt/g;
7300         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7301         * dumper.c (pdump_alert_undump_object): Likewise.
7302         * dumper.c (pdump_align_table): 
7303         Don't support alignments > 64.
7304         Store ALIGNOF's, not shift counts, in table.
7305
7306 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7307
7308         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7309         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7310         * systime.h: Use HAVE_UTIME.
7311         * sysdep.c (struct utimbuf): Remove.
7312         * sysdep.c (set_file_times): Prefer utime() to utimes().
7313         * config.h.in (HAVE_UTIME): New.
7314         * config.h.in (HAVE_UTIME_H): Remove.
7315         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7316
7317 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7318
7319         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7320
7321 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7322
7323         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7324
7325 2001-02-08  Martin Buchholz <martin@xemacs.org>
7326
7327         * XEmacs 21.2.44 "Thalia" is released.
7328
7329 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7330
7331         Fixes crashes in kill-emacs on some systems.
7332         * process-unix.c (unix_kill_child_process):
7333         It's OK for kill() to fail with ESRCH.
7334
7335 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7336
7337         Contortions to make .gdbinit tricks work on most systems.
7338         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7339         * alloc.c (dbg_valmask): Make non-const.
7340         * alloc.c (dbg_typemask): Make non-const.
7341         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7342         * alloc.c (dbg_valbits): Make non-const.
7343         * alloc.c (dbg_gctypebits): Make non-const.
7344         * .gdbinit (decode_object): Make it work with AIX cc.
7345
7346 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7347
7348         * elhash.c (make_general_lisp_hash_table):
7349         Use simpler and more efficient calloc to clear entries.
7350
7351 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7352
7353         * window.c (window_scroll): Work around an AIX C compiler bug.
7354         Fixes 'scroll-up' does nothing problem with xlC.
7355
7356 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7357
7358         * .gdbinit: Remove obsolete comment.
7359
7360 2001-01-31  Mike Alexander  <mta@arbortext.com>
7361
7362         * select.c (Fown_selection_internal): Set owned_p for device
7363         method correctly.
7364
7365 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7366
7367         Port to g++ 2.97.
7368         "not" cannot be used as a macro name as it is an operator in C++
7369         * config.h.in: Stop #defining `not'.
7370         * chartab.c (check_category_char): not ==> not_p
7371         * chartab.h: Likewise.
7372         * regex.c (re_match_2_internal): Likewise.
7373
7374 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7375
7376         * lisp-disunion.h: Fix up comments.
7377
7378 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7379
7380         * keymap.c (define_key_check_and_coerce_keysym):
7381         (syms_of_keymap):
7382         Support mouse-6 and mouse-7 bindings in the obvious way.
7383
7384 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7385
7386         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7387
7388 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7389
7390         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7391         Previous patch missed DEFVAR_INT_MAGIC.
7392         Make sure future DEFVAR_foo use correct types.
7393         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7394         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7395         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7396         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7397         * (DEFVAR_INT): Likewise.
7398         * redisplay.c (vertical_clip): Should be of type Fixnum.
7399         * redisplay.c (horizontal_clip): Likewise.
7400         * lisp.h (dump_add_opaque_int): New.
7401         (dump_add_opaque_fixnum): New.
7402
7403 2001-01-29  Andy Piper  <andy@xemacs.org>
7404
7405         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7406         since they can be eval'ed
7407
7408 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7409
7410         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7411         Oops, XEmacs redefines `class'.  Use `typename' instead.
7412
7413 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7414
7415         * dumper.c: Fix C++ compile errors.
7416
7417 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7418
7419         * tparam.c: Use correct prototypes.
7420
7421 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7422
7423         * sysproc.h: #include util.h for NetBSD's openpty.
7424
7425 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7426
7427         More 64-bit correctness.
7428         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7429         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7430         Fix up comments.
7431         This finally finishes the 64-bit SGI port.
7432         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7433         * symbols.c: Fix up comments and type casts.
7434         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7435         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7436         * symeval.h (Fixnum): New type.
7437         * symeval.h (symbol_value_type): Fix up comment.
7438
7439         * commands.h:
7440         * nt.c:
7441         * emacs.c:
7442         * data.c:
7443         * redisplay.c:
7444         * abbrev.c:
7445         * dired-msw.c:
7446         * event-Xt.c:
7447         * eldap.c:
7448         * window.c:
7449         * sound.c:
7450         * event-stream.c:
7451         * eval.c:
7452         * buffer.c:
7453         * mule-canna.c: A million DEFVAR_INTs here...
7454         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7455         * extents.c:
7456         * cmdloop.c:
7457         * lisp.h:
7458         * select-x.c:
7459         * console-x.h:
7460         * event-msw.c:
7461         * mule-wnnfns.c:
7462         * hpplay.c:
7463         * ralloc.c:
7464         * alloc.c:
7465         * keymap.c:
7466         * profile.c:
7467         s/int/Fixnum/g in DEFVAR_INT declarations.
7468
7469 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7470
7471         Port pdump to SGI alignment-sensitive environment.
7472         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7473         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7474         properly aligned.
7475         Define and use aligned reading and writing macros.
7476         Use buffered stdio instead of posix i/o for faster dumping.
7477         Eliminate kludgy 256 byte space for header.
7478         Read and write from dump file using structs for alignment safety.
7479         * dumper.c (pdump_align_stream): New.
7480         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7481         * dumper.c (PDUMP_READ_ALIGNED): New.
7482         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7483         * dumper.c (pdump_static_Lisp_Object): New struct.
7484         * dumper.c (pdump_static_pointer): New struct.
7485         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7486         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7487         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7488         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7489
7490         * dumper.c (pdump_backtrace):
7491         * dumper.c (pdump_get_indirect_count):
7492         * dumper.c (pdump_register_object):
7493         * dumper.c (pdump_register_struct):
7494         * dumper.c (pdump_reloc_one):
7495         * dumper.c (pdump_scan_by_alignment):
7496         * dumper.c (pdump_dump_from_root_struct_ptrs):
7497         * dumper.c (pdump_dump_opaques):
7498         * dumper.c (pdump_dump_rtables):
7499         * dumper.c (pdump_dump_from_root_objects):
7500         * dumper.c (pdump):
7501         * dumper.c (pdump_load_finish):
7502         Use aligned reading and writing.
7503
7504         * dumper.c (pdump_free): Make static.
7505         * dumper.c (pdump_hFile): Likewise.
7506         * dumper.c (pdump_hMap): Likewise.
7507
7508 2001-01-26  Martin Buchholz <martin@xemacs.org>
7509
7510         * XEmacs 21.2.43 "Terspichore" is released.
7511
7512 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7513
7514         Type fiddling for window_config.saved_windows_count
7515         * window.c (struct window_config): 
7516         Make saved_windows_count member unsigned.
7517         * window.c (sizeof_window_config_for_n_windows): 
7518         Make parameter unsigned.
7519         * window.c (mark_window_config):
7520         * window.c (window_config_equal):
7521         * window.c (free_window_configuration):
7522         * window.c (Fset_window_configuration):
7523         * window.c (count_windows):
7524         * window.c (Fcurrent_window_configuration):
7525         * window.c (reinit_vars_of_window):
7526         Update all callers and users.
7527
7528 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7529
7530         Alignment correctness for flexible arrays.
7531         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7532         Make alignment-correct. Add interesting comments.
7533         * alloc.c (size_vector):
7534         * alloc.c (make_vector_internal):
7535         * alloc.c (make_bit_vector_internal):
7536         * alloc.c (sweep_bit_vectors_1):
7537         * fns.c (size_bit_vector):
7538         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7539         * window.c (sizeof_window_config_for_n_windows): 
7540         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7541
7542 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7543
7544         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7545
7546 2001-01-23  Andy Piper  <andy@xemacs.org>
7547
7548         * select.c (Fown_selection_internal): pass owned_p
7549
7550         * select-msw.c (mswindows_own_selection): New Signature.
7551
7552         * console.h (struct console_methods): add owned_p to
7553         _own_selection.
7554
7555         * select-x.c (x_own_selection): pass owned_p
7556         (hack_motif_clipboard_selection): use owned_p
7557         (vars_of_select_x): new variable -
7558         x_selection_strict_motif_ownership.
7559
7560 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7561
7562         * specifier.h (specifier_data_offset): Remove pointless parens.
7563         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7564
7565 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7566
7567         Make Lisp_Object sizeof methods be alignment-correct.
7568         pdump must restore objects to the same alignment as the C compiler
7569         assumes.  It really matters on SGIs.
7570         * lstream.c (aligned_sizeof_lstream): New.
7571         (sizeof_lstream): Use aligned_sizeof_lstream.
7572         (Lstream_new): Likewise.
7573         * opaque.c (aligned_sizeof_opaque): New.
7574         (sizeof_opaque): Use aligned_sizeof_opaque.
7575         (make_opaque): Likewise.
7576         * specifier.c (aligned_sizeof_specifier): New.
7577         (sizeof_specifier): Use aligned_sizeof_specifier.
7578         (make_specifier_internal): Likewise.
7579
7580 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7581
7582         * lstream.h (struct lstream): Use max_align_t for trailing data.
7583         * specifier.h (struct Lisp_Specifier): Likewise.
7584
7585 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7586
7587         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7588         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7589         (CCL_SUSPEND): Likewise.
7590         (CCL_INVALID_CMD): Likewise.
7591         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7592         (ccl_driver): Likewise.
7593         (CCL_WRITE_CHAR): Macro hygiene.
7594         (CCL_WRITE_STRING): Macro hygiene.
7595
7596 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7597
7598         Port "portable" dumper to SunOS 4 and HP-UX.
7599         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7600         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7601         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7602
7603 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7604
7605         * lisp.h (ALIGNOF): A better definition for C++.
7606
7607 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7608
7609         Macro hygiene.
7610         Fix printf warnings: int format, long int arg.
7611         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7612         (PUSH_FAILURE_POINT): Use correct printf formats.
7613         (POP_FAILURE_POINT): Use correct printf formats.  
7614         Use do {...} while (0)
7615
7616 2001-01-20  Martin Buchholz <martin@xemacs.org>
7617
7618         * XEmacs 21.2.42 "Poseidon" is released.
7619
7620 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7621
7622         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7623
7624 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7625
7626         De-kludgify FIXED_TYPE free list frobbing.
7627         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7628         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7629         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7630         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7631         * alloc.c (LRECORD_FREE_P): New.
7632         * alloc.c (MARK_LRECORD_AS_FREE): New.
7633         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7634         * alloc.c (STRUCT_FREE_P): Deleted.
7635         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7636         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7637         * alloc.c (STRING_CHARS_FREE_P): New.
7638         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7639         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7640         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7641         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7642         * alloc.c (resize_string): Use new definitions.
7643         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7644         * alloc.c (verify_string_chars_integrity): Use new definitions.
7645         * alloc.c (compact_string_chars): Use new definitions.
7646         * alloc.c: Update monster comments.
7647         * lrecord.h (lrecord_type): Add some new lrecord types for
7648         alloc.c's use.
7649
7650 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7651
7652         Improve alignment hackery.
7653         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7654         (max_align_t): Moved from opaque.h - general purpose.
7655         (ALIGN_PTR): Use size_t, not long.
7656         * opaque.h (max_align_t): Move to lisp.h.
7657
7658 2001-01-18  Norbert Koch  <nk@LF.net>
7659
7660         * gui.h: Fix and add prototypes to fix build problems.
7661
7662 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7663
7664         temacs is going away, so `dump-temacs' is now a bad name.
7665         * .dbxrc (dump-temacs): Rename to `dmp'.
7666         * .gdbinit (dump-temacs): Rename to `dmp'.
7667
7668 2001-01-17  Andy Piper  <andy@xemacs.org>
7669
7670         * glyphs.c (print_image_instance): comment to make martin happy.
7671
7672         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7673         change.
7674
7675         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7676         activation.
7677         (mswindows_tab_control_redisplay): warning suppression.
7678
7679         * glyphs-widget.c (widget_update): re-write to cope with updated
7680         items.
7681         (widget_instantiate): use new gui_item functions.
7682         (tab_control_update): deleted.
7683         (progress_gauge_update): deleted.
7684         (image_instantiator_progress_guage): take out update reference.
7685         (image_instantiator_tree_view): ditto.
7686         (image_instantiator_tab_control): ditto.
7687
7688         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7689         Right the new way.
7690         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7691         return whether anything was changed.
7692         (update_gui_item_keywords): as it sounds.
7693
7694         * gui.h: declare widget_gui_parse_item_keywords.
7695
7696         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7697         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7698
7699 2001-01-17  Martin Buchholz <martin@xemacs.org>
7700
7701         * XEmacs 21.2.41 "Polyhymnia" is released.
7702
7703 2001-01-16  Didier Verna  <didier@xemacs.org>
7704
7705         * glyphs.c (image_instantiate): don't use fallbacks when
7706         instantiating a face's background pixmap by inheritance.
7707
7708 2001-01-14  Mike Sperber <mike@xemacs.org>
7709
7710         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7711         Conditionalize accordingly.
7712
7713 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7714
7715         * dumper.c (pdump_file_get): Fix a compiler warning.
7716
7717 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7718
7719         Make Purify happy when pdumping.
7720         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7721         iniitalizing all bits of new lisp object memory.
7722         * symbols.c (Fmake_local_variable): Likewise.
7723         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7724         * symbols.c (Fdefvaralias): Likewise.
7725         * mule-charset.c (vars_of_mule_charset): Likewise.
7726
7727 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7728         Add the `-nd' flag when running pre-dump operations under the debugger.
7729         * .dbxrc (run-temacs): Add `-nd'.
7730         * .dbxrc (update-elc): Likewise.
7731         * .dbxrc (dump-temacs): Likewise.
7732         * .gdbinit (run-temacs): Likewise.
7733         * .gdbinit (check-temacs): Likewise.
7734         * .gdbinit (update-elc): Likewise.
7735         * .gdbinit (dump-temacs): Likewise.
7736
7737 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7738
7739         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7740         export OBJECT_MODE=64
7741         configure --pdump --use-union-type=no
7742         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7743         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7744
7745         * miscplay.c (sndcnv8U_2mono):
7746         Avoid two uses of `++' in the same expression.
7747         Suppresses a GCC warning.
7748
7749 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7750
7751         Make sure future compilers don't miscompile alloc.c.
7752         * alloc.c:
7753         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7754         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7755
7756 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7757
7758         * dumper.c: A little post-pdump-rename comment fixup.
7759
7760 2001-01-09  Jerry James  <james@eecs.ku.edu>
7761
7762         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7763
7764 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7765
7766         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7767         script:
7768         #!/bin/sh
7769         replace_symbol () {
7770           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7771         }
7772
7773         replace_symbol pdump_wire_lists pdump_weak_object_chains
7774         replace_symbol pdump_wire_list dump_add_weak_object_chain
7775
7776         replace_symbol pdump_wires pdump_root_objects
7777         replace_symbol pdump_wire dump_add_root_object
7778
7779         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7780         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7781
7782         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7783         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7784         replace_symbol dumpstructinfo pdump_root_struct_ptr
7785         replace_symbol dumpstruct dump_add_root_struct_ptr
7786
7787         replace_symbol dumpopaque dump_add_opaque
7788         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7789         replace_symbol dumpopaqueinfos pdump_opaques
7790         replace_symbol dumpopaqueinfo pdump_opaque
7791
7792         replace_symbol nb_structdump nb_root_struct_ptrs
7793         replace_symbol nb_opaquedump nb_opaques
7794
7795         replace_symbol align_table pdump_align_table
7796         replace_symbol dump_header pdump_header
7797
7798         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7799         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7800
7801
7802 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7803
7804         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7805         optimizing bytecount_to_charcount().
7806
7807 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7808
7809         * config.h.in:
7810         (HAVE_DLFCN_H): Removed.
7811         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7812
7813 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7814
7815         Portable dumper maintainability improvements.
7816         * alloc.c (staticpro):
7817         * alloc.c (staticpro_nodump):
7818         * alloc.c (garbage_collect_1):
7819         * alloc.c (reinit_alloc_once_early):
7820         * alloc.c (init_alloc_once_early):
7821         * alloc.c: Move dumper functions to alloc.c.
7822         * dumper.c (pdump_backtrace):
7823         * dumper.c (pdump_dump_structs):
7824         * dumper.c (pdump_dump_opaques):
7825         * dumper.c (pdump_dump_rtables):
7826         * dumper.c (pdump_dump_wired):
7827         * dumper.c (pdump):
7828         * dumper.c (pdump_load_check):
7829         * dumper.c (pdump_load_finish):
7830         * dumper.c (pdump_file_unmap):
7831         * dumper.c (pdump_file_get):
7832         * dumper.c (pdump_resource_free):
7833         * dumper.c (pdump_resource_get):
7834         * dumper.c (pdump_file_free):
7835         * dumper.c (pdump_file_try):
7836         * dumper.c (pdump_load):
7837         Remove fixed size limits on staticpro(), staticpro_nodump(),
7838         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7839         Remove custom code for dumping lrecord_implementations_table - use
7840         dumpopaque instead.
7841         Remove (most of the) custom code for dumping staticpros - dump it
7842         like any other dynarr.
7843
7844         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7845         * dumper.c: Moved functions from alloc.c.
7846         * alloc.c (dumpstruct): Moved to dumper.c.
7847         * alloc.c (dumpopaque): Likewise.
7848         * alloc.c (pdump_wire): Likewise.
7849         * alloc.c (pdump_wire_list): Likewise.
7850
7851         * lisp.h (Dynarr_sizeof): New.
7852         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7853         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7854         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7855
7856         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7857         * lisp.h (dumpopaque): ditto.
7858         * lisp.h (pdump_wire): ditto.
7859         * lisp.h (pdump_wire_list): ditto.
7860
7861 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7862
7863         * make-src-depend (PrintPatternDeps):
7864         Use `sort' to make output independent of perl version.
7865
7866 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7867
7868         Port to Netbsd 1.5.
7869         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7870         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7871
7872 2001-01-03  Didier Verna  <didier@xemacs.org>
7873
7874         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7875         that `focus_frame' is alive before thinking of calling
7876         `redisplay_redraw_cursor' on it.
7877
7878 2001-01-08  Martin Buchholz <martin@xemacs.org>
7879
7880         * XEmacs 21.2.40 is released.
7881
7882 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7883
7884         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7885
7886 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7887
7888         * alloc.c (dbg_valmask): Make const.
7889         * alloc.c (dbg_typemask): Make const.
7890         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7891         * alloc.c (dbg_valbits): Make const.
7892         * alloc.c (dbg_gctypebits): Make const.
7893
7894 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7895
7896         * redisplay-x.c (x_bevel_area):
7897         redisplay.h (struct rune):
7898         Typo fixes in comments.
7899
7900 2001-01-05  Andy Piper  <andy@xemacs.org>
7901
7902         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7903         adjustment.
7904
7905         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7906
7907 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7908
7909         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7910
7911         * mule-ccl.c (stack_idx_of_map_multiple):
7912         Non const global data must not be initialized!
7913         Found by MIYASHITA Hisashi.
7914
7915 2001-01-02  Andy Piper  <andy@xemacs.org>
7916
7917         * frame.c (change_frame_size): make sure frame size is always
7918         marked as changed.
7919
7920         * glyphs.c (image_instance_layout): minor code reuse.
7921
7922         * window.c (Fcurrent_window_configuration): revert previous
7923         change.
7924
7925 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7926
7927         * glyphs.h:
7928         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7929
7930 2000-12-31  Andy Piper  <andy@xemacs.org>
7931
7932         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7933         when widget gets unmapped.
7934
7935         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7936         function. Make sure widgets losing focus don't just drop it.
7937         (handle_focus_event_1): record the widget with focus.
7938
7939 2000-12-31  Andy Piper  <andy@xemacs.org>
7940
7941         * window.c (allocate_window): use
7942         make_image_instance_cache_hash_table.
7943         (make_dummy_parent): ditto.
7944         (Fset_window_configuration): ditto.
7945
7946         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7947
7948         * glyphs.c (process_image_string_instantiator): use
7949         INSTANTIATOR_TYPE.
7950         (get_image_instantiator_governing_domain): ditto.
7951         (normalize_image_instantiator): ditto.
7952         (instantiate_image_instantiator): ditto.
7953         (make_image_instance_1): ditto.
7954         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7955         (instantiator_eq_equal): new function for use with instance hash
7956         tables.
7957         (instantiator_eq_hash): ditto.
7958         (make_image_instance_cache_hash_table): create a suitable hash
7959         table for storing image instances.
7960
7961         * elhash.h (hash_table_weakness): new internal weakness type
7962         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7963         declare new functions.
7964
7965         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7966         another weakness type for glyphs.
7967         (make_standard_lisp_hash_table): new function split out from
7968         make_general_lisp_hash_table.
7969         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7970         (hash_table_instantiate): ditto.
7971         (Fmake_hash_table): ditto.
7972
7973 2000-12-31  Martin Buchholz <martin@xemacs.org>
7974
7975         * XEmacs 21.2.39 is released.
7976
7977 2000-12-29  Andy Piper  <andy@xemacs.org>
7978
7979         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7980
7981         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7982         the frame has changed so that we pick up geometry changes such as
7983         menubar visibility.
7984
7985 2000-12-28  Andy Piper  <andy@xemacs.org>
7986
7987         * lastfile.c (my_ebss): make a char array so we can pad the
7988         bss. Fixes cygwin unexec.
7989
7990         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7991
7992 2000-12-26  Andy Piper  <andy@xemacs.org>
7993
7994         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7995         comments and try and be more precise about a non-/SIGIO world.
7996         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7997         SIGIO.
7998
7999         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8000         we don't normalize to zero width or height.
8001
8002 2000-12-24  Andy Piper  <andy@xemacs.org>
8003
8004         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8005
8006 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8007
8008         * s/sco5.h: SCO 5 has pty support.
8009
8010 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8011
8012         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8013         input-method-xlib.c contains whole contents of input-method-xfs.c,
8014         so we can use input-method-xlib.c's code for USE_XFONTSET
8015         using #ifdefs.
8016         * input-method-xfs.c: removed.
8017
8018 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8019
8020         * file-coding.h (enum coding_category_type): reorder enumerators to
8021         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8022         (now one greater than largest real coding_category_type enumerator).
8023         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8024         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8025         Fcoding_category_list, Fset_coding_priority_list,
8026         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8027         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8028
8029 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8030
8031         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8032         * redisplay-output.c (redisplay_output_window): Clear top of window
8033         when face is changed.
8034         * redisplay-x.c (x_redraw_exposed_window): Call
8035         redisplay_clear_top_of_window.
8036         * redisplay.h: Publish redisplay_clear_top_of_window.
8037
8038 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8039
8040         * buffer.c (Fkill_buffer): Map over all devices.
8041         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8042         (list_windows): New function.
8043         (list_all_windows): Ditto.
8044         (Freplace_buffer_in_windows): Use them.
8045
8046 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8047
8048         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8049         (Fopen_database): Use `db_create' instead of `db_open'.
8050         (syms_of_database): Initialize Qqueue.
8051
8052 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8053
8054         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8055         buffer_local_face_property.
8056         * buffer.h (struct buffer): New member buffer_local_face_property.
8057         * window.c (Fset_window_buffer):  Mark window's face as changed
8058         when buffer has buffer local face.
8059         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8060         * objects.c (color_after_change): Set buffer_local_face_property
8061         when locale of face specifier is buffer.
8062         * objects.c (font_after_change): Ditto.
8063         * objects.c (face_boolean_after_change): Ditto.
8064         * glyphs.c (image_after_change): Ditto.
8065
8066 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8067
8068         * nt.c (mswindows_fstat): Report file permissions, volume serial
8069         number, etc. Code adapted from FSF Emacs 20.7.
8070
8071 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8072
8073         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8074         of stat when we don't have symbolic links, to make sure
8075         mswindows_stat is called on mswindows.
8076
8077 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8078
8079         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8080
8081 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8082
8083         * doprnt.c (emacs_doprnt_1): More printing fixes.
8084         Make printing of numbers compatible with libc and FSF Emacs.
8085         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8086         Use the system printf to do most of the hard work of formatting,
8087         instead of doprnt_1().
8088         Calculate memory to allocate for format string.
8089         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8090         (doprnt_1): Cleaner code and documentation.
8091
8092 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8093
8094         * Makefile.in.in: Use the loop variable to install headers.
8095
8096 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8097
8098         * window.c (Fsplit_window): Don't invalidate face cache.
8099
8100 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8101
8102         * minibuf.c (Fall_completions): Undo the previous change
8103         which removed checking elements start with space.
8104
8105 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8106
8107         * mule-canna.c: Didier suppression.
8108
8109 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8110
8111         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8112         (warning suppression).  Add English comment translations.
8113
8114 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8115
8116         * unexelfsgi.c (unexec): Better test for mmap failure.
8117
8118 2000-12-05  Martin Buchholz <martin@xemacs.org>
8119
8120         * XEmacs 21.2.38 is released.
8121
8122 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8123
8124         * redisplay.c (bar-cursor): Make a user variable.
8125
8126         * symsinit.h: Add init_postgresql_from_environment.
8127
8128 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8129
8130         * regex.c: Convert to clean C.
8131
8132 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8133
8134         * realpath.c:
8135         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8136         initialization.
8137         (sys_readlink): renamed to system_readlink to avoid conflict with
8138         the other sys_readlink.
8139
8140 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8141
8142         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8143
8144 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8145
8146         * postgresql.c (init_postgresql_from_environment): new function.
8147         (vars_of_postgresql): Move code initializing Lisp variables out and
8148         into init_postgresql_from_environment.
8149         emacs.c (main_1): Call init_postgresql_from_environment if and only
8150         if running a dumped XEmacs.
8151
8152 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8153
8154         * buffer.c: Make find-file-compare-truenames default to true on
8155         windows.
8156
8157         * realpath.c (win32_abs_start):
8158         (cygwin_readlink):
8159         (win32_readlink): New functions.
8160         (xrealpath): Return really real filenames on windows.
8161
8162         * fileio.c (Ffile_truename): Make file-truename work on windows.
8163
8164 2000-11-29  Didier Verna  <didier@xemacs.org>
8165
8166         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8167         * faces.c (update_face_cachel_data): use it.
8168         * faces.c (add_face_cachel): use it. Complete background pixmap
8169         frobbing in face cache if `update_face_cachel_data' has not done so.
8170
8171 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8172
8173         * search.c (string_match_1): Don't set last_thing_searched
8174         when search failed.
8175
8176 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8177
8178         * buffer.c: Include casetab.h
8179         (common_init_complex_vars_of_buffer): Use new case-table object.
8180         * buffer.h: Include casetab.h
8181         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8182         (DOWNCASE_TABLE_OF): Ditto.
8183         * bufslots.h: Remove char-tables and add case-table.
8184         * casetab.c: Include casetab.h
8185         (CASE_TABLE_P): Removed.
8186         (mark_case_table): New function.
8187         (allocate_case_table): New function.
8188         (Fcase_table_p): Use new case-table.
8189         (case_table_char): New function.
8190         (Fget_case_table): Ditto.
8191         (Fput_case_table): Ditto.
8192         (Fput_case_table_pair): Ditto.
8193         (Fcopy_case_table): Ditto.
8194         (Fcurrent_case_table): Return case-table.
8195         (Fstandard_case_table): Return case-table.
8196         (Fset_case_table): Fix doc-string.
8197         (set_case_table): Use case-table
8198         (syms_of_casetab): DEFSUBR new functions.
8199         (complex_vars_of_casetab): Set up standard case-table.
8200         * casetab.h: New file.
8201         * editfns.c: Include casetab.h
8202         (Fcompare_buffer_substrings): Use case-table.
8203         * inline.c: Include casetab.h
8204         * lisp.h: Remove bogus extern.
8205         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8206         * search.c: Include casetab.h
8207         (TRANSLATE_ASCII): Removed.
8208         (TRANSLATE): Unconditionally translate character.
8209         (looking_at_1): Use case-table.
8210         (string_match_1): Ditto.
8211         (fast_string_match): Ditto.
8212         (search_command): Ditto.
8213         (search_buffer): Separate boyer_moore.  Check whether
8214         boyer_moore is possible.
8215         (simple_search): New function.
8216         (boyer_moore): Separated from search_buffer. Translate char.
8217
8218 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8219
8220         * regex.c (RE_TR_ASCII): Removed.
8221         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8222         (PATFETCH): Call PATFETCH_RAW.
8223         (PATFETCH_RAW): Fetch Emchar.
8224         (PATUNFETCH): Decrement charptr.
8225         (GET_BUFFER_SPACE): Rename b to buf_end.
8226         (BUF_PUSH): Ditto.
8227         (BUF_PUSH_2): Ditto.
8228         (BUF_PUSH_3): Ditto.
8229         (EXTEND_BUFFER): Ditto.
8230         (SET_LIST_BIT): Ditto.
8231         (regex_compile): Ditto.  Translate non ASCII char.
8232         (compile_range): Ditto.
8233         (re_search_2): Ditto.
8234         (re_match_2_internal): Compare Emchar.
8235         (bcmp_translate): Ditto.
8236
8237 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8238
8239         * lisp.h (basic char/int typedefs):  comment improvement.
8240
8241 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8242
8243         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8244         unstomp inhibit_site_lisp.  Improve comments.
8245
8246 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8247
8248         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8249
8250 2000-11-28  Andy Piper  <andy@xemacs.org>
8251
8252         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8253         clipped display for windows in the gutter also.
8254         (redisplay_display_boxes_in_window_p): change semantics of return
8255         codes to be more intuitive.
8256
8257         * gutter.h: declare display_boxes_in_gutter_p.
8258
8259         * gutter.c (display_boxes_in_gutter_p): new function for
8260         redisplay.
8261
8262 2000-11-22  Andy Piper  <andy@xemacs.org>
8263
8264         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8265         autodetect domain.
8266
8267 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8268
8269         * callproc.c (Fold_call_process_internal):
8270         * gpm.c (Freceive_gpm_event):
8271         (tty_get_foreign_selection): Might be just warning supression.
8272         * fileio.c (Fwrite_region_internal):
8273         (Fset_visited_file_modtime):
8274         * keymap.c (event_matches_key_specifier_p):
8275         Initialize GCPROed variable.
8276
8277         * menubar-x.c (command_builder_find_menu_accelerator):
8278         Initialize before use.
8279
8280 2000-11-23  Andy Piper  <andy@xemacs.org>
8281
8282         * unexcw.c (unexec): make the resulting executable executable.
8283
8284 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8285
8286         * doc.c (get_doc_string):
8287         Use size_t, not int, for result of XSTRING_LENGTH.
8288
8289         * cmds.c (Fdelete_char):
8290         * cmds.c (Fpoint_at_eol):
8291         * cmds.c (Fself_insert_command):
8292         Use EMACS_INT, not int, for result of XINT.
8293         Someday, someone will want to insert more than 2**31 identical characters.
8294
8295         * cmds.c (Fdelete_char):
8296         * cmds.c (Fdelete_backward_char):
8297         * syntax.c (Fforward_word):
8298         * syntax.c (Fforward_comment):
8299         Make COUNT argument optional, for consistency with forward-char et al.
8300
8301 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8302
8303         * lisp.h:
8304         * print.c (long_to_string):
8305         Return a useful value: the pointer at end of data written.
8306
8307         * doprnt.c:
8308         Use `static const char * const' for constant strings.
8309         (union printf_arg): Delete `i', `ui' members.
8310         (get_doprnt_args):
8311         (emacs_doprnt_1):
8312         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8313         Do all printf-ing via the `l' specifier.
8314         Use EMACS_INT instead of int.
8315         Optimize.
8316
8317 2000-11-20  Didier Verna  <didier@xemacs.org>
8318
8319         * faces.c (update_face_cachel_data): don't frob the background
8320         pixmap when the window is being created. The face is needed but
8321         does not exist yet.
8322
8323 2000-11-20  Andy Piper  <andy@xemacs.org>
8324
8325         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8326         messing with a debug environment.
8327
8328 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8329
8330         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8331
8332 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8333
8334         * casetab.c (Fcase_table_p): Fix compile error and crash.
8335
8336 2000-11-18  Philip Aston  <philipa@mail.com>
8337
8338         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8339
8340 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8341
8342         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8343         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8344
8345 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8346
8347         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8348         * unexelf.c: Use HAVE_ELF_H.
8349         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8350         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8351         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8352         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8353         for testing.
8354         So this is an unexelfsgi.c from a different line of development.
8355
8356 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8357
8358         * regex.c (RE_TR_ASCII): New function.
8359         (RE_TRANSLATE): Call it.
8360
8361 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8362
8363         * buffer.h (TRT_TABLE_OF): Remove assert.
8364         (IN_TRT_TABLE_DOMAIN): Removed.
8365
8366 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8367
8368         * free-hook.c (log_gcpro):
8369         (show_gcprohist): Add support for GCPRO5.
8370
8371 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8372
8373         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8374
8375 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8376
8377         * symeval.h: Declare flush_all_buffer_local_cache.
8378
8379         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8380         (flush_buffer_local_cache): Added.
8381         (flush_all_buffer_local_cache): Added.
8382
8383         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8384
8385         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8386         (pdump_dump_data): Ditto.
8387         (pdump_reloc_one): Ditto.
8388         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8389         before dumping.
8390
8391
8392 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8393
8394         * buffer.c: Remove if 0'ed entry.
8395         * buffer.h: Rewrite TRT to use char-table.
8396         * bufslots.h: Remove mirror tables.
8397         * casetab.c: Remove mirror tables.
8398         (CASE_TABLE_P): New macro.
8399         (Fcase_table_p): Element of a case table is string or char-table.
8400         (make_mirror_trt_table): Removed.
8401         (set_case_table): Setup char-table from strings for backward
8402         compatibility.
8403         * dired.c (Fdirectory_files):
8404         * dired-msw.c: (mswindows_get_files):
8405         * lisp.h: Change prototype of re_pattern_buffer.
8406         * regex.c: (RE_TRANSLATE): New macro.
8407         (TRANSLATE_P): Ditto.
8408         Change translate to type RE_TRANSLATE_TYPE.
8409         * regex.h: Define RE_TRANSLATE_TYPE
8410         * search.c (TRANSLATE): New macro.
8411         (TRANSLATE_ASCII): New macro.
8412         Translate table is changed to Lisp_Object.
8413         (signal_failure): Inhibit return.
8414
8415 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8416
8417         * device-msw.c:
8418         * eldap.c:
8419         * event-Xt.c:
8420         * event-stream.c:
8421         * print.c:
8422         Do UNGCPRO before return.
8423
8424 2000-11-14  Martin Buchholz <martin@xemacs.org>
8425
8426         * XEmacs 21.2.37 is released.
8427
8428 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8429
8430         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8431         Add comments about discarded return value.
8432
8433 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8434
8435         * callint.c:
8436         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8437
8438 2000-10-27  Andy Piper  <andy@xemacs.org>
8439
8440         * gutter.c (Fset_default_gutter_position): default left and right
8441         gutters to visible.
8442         (calculate_gutter_size): calculate resonable heuristic for left
8443         and right gutter sizes.
8444         (specifier_vars_of_gutter): change left and right gutter sizes to
8445         autodetect.
8446         (calculate_gutter_size_from_display_lines): new function.
8447         (output_gutter): check for resizing on left and right gutters.
8448         (clear_gutter): don't special case top and left gutters.
8449         (specifier_vars_of_gutter): use new signature for
8450         set_specifier_caching.
8451
8452         * glyphs-x.c (x_redisplay_widget): spelling fix.
8453         * glyphs.c (specifier_vars_of_glyphs):
8454         * menubar.c (specifier_vars_of_menubar):
8455         * redisplay.c (specifier_vars_of_redisplay):
8456         * toolbar.c (specifier_vars_of_toolbar):
8457         * window.c (specifier_vars_of_window):
8458         * scrollbar.c (specifier_vars_of_scrollbar):
8459         (complex_vars_of_scrollbar): use new signature for
8460         set_specifier_caching.
8461
8462         * specifier.c (set_specifier_caching): include recompute flag.
8463         (recompute_one_cached_specifier_in_window): always recompute if
8464         flag set.
8465         (recompute_one_cached_specifier_in_frame): ditto.
8466
8467         * specifier.h (struct specifier_caching): add recompute flag.
8468
8469 2000-10-24  Andy Piper  <andy@xemacs.org>
8470
8471         * unexcw.c (copy_executable_and_dump_data_section): add new
8472         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8473         5.0 happy.
8474
8475 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8476
8477         * console-x.h (x_device): New member modifier_release_time.
8478         * event-Xt.c (x_handle_sticky_modifiers):
8479         Bound interval modifier keys are sticky.
8480         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8481         * events.h: extern it.
8482
8483 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8484
8485         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8486
8487 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8488
8489         * event-stream.c (execute_command_event): Preserve current_events
8490         and the like when event is misc-user-event.
8491         Inhibit quit during the call to maybe_echo_keys.
8492
8493 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8494
8495         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8496         symlink when buffer is killed.
8497         (inhibit_clash_detection): New variable.
8498
8499 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8500
8501         * console.c (Fset_input_method): Trigger redisplay on tty.
8502
8503 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8504
8505         * process.c (Fprocess_status): Revert to previous behavior:
8506         (process-status "nosuchprocess") ==> nil
8507
8508 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8509
8510         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8511         Work around another GCC 2.95.2 optimizer bug.
8512
8513 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8514
8515         * process.c (Fget_process): Use LIST_LOOP_2.
8516         (kill_buffer_processes): Use LIST_LOOP_2.
8517
8518         * minibuf.c (Fall_completions):
8519         Delete old non-functional code for FSF fourth argument.
8520
8521         * frame.c (frame_matches_frame_spec):
8522         Renamed from `frame_matches_frametype'.  Update all callers.
8523         (device_matches_device_spec):
8524         Renamed from 'device_matches_console_spec'.  Update all callers.
8525
8526         * doc.c (Fsubstitute_command_keys):
8527         Remove buffer overflow crash.  Small code cleanups.
8528
8529         * casetab.c (check_case_table): Simpler code.
8530
8531         * window.c (Freplace_buffer_in_windows):
8532         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8533         (and similar implementation) as Fdelete_windows_on.
8534         Update all callers.
8535
8536         * alloc.c (Fmake_list):
8537         * alloc.c (make_vector):
8538         * alloc.c (Fmake_vector):
8539         * alloc.c (make_bit_vector):
8540         * alloc.c (Fmake_bit_vector):
8541         * alloc.c (Fbit_vector):
8542         * alloc.c (Fmake_string):
8543         * alloc.c (Fpurecopy):
8544         * alloc.c (Fmemory_limit):
8545         * buffer.c:
8546         * buffer.c (Fget_buffer):
8547         * buffer.c (Fkill_buffer):
8548         * buffer.c (complex_vars_of_buffer):
8549         * bytecode.c (Fcompiled_function_stack_depth):
8550         * callint.c (Fprefix_numeric_value):
8551         * event-stream.c:
8552         * event-stream.c (Fread_key_sequence):
8553         * casetab.c:
8554         * casetab.c (Fcase_table_p):
8555         * casetab.c (check_case_table):
8556         * casetab.c (Fset_case_table):
8557         * casetab.c (Fset_standard_case_table):
8558         * chartab.c:
8559         * chartab.c (Fchar_table_type):
8560         * chartab.c (Freset_char_table):
8561         * chartab.c (Fget_char_table):
8562         * chartab.c (Fget_range_char_table):
8563         * chartab.c (Fput_char_table):
8564         * chartab.c (Fmap_char_table):
8565         * chartab.c (Fcategory_table_p):
8566         * chartab.c (Fcheck_category_at):
8567         * chartab.c (Fchar_in_category_p):
8568         * chartab.c (Fcategory_table):
8569         * chartab.c (Fcopy_category_table):
8570         * chartab.c (Fset_category_table):
8571         * chartab.c (Fcategory_designator_p):
8572         * chartab.c (Fcategory_table_value_p):
8573         * cmds.c (Fdelete_char):
8574         * cmds.c (Fdelete_backward_char):
8575         * cmds.c (Fself_insert_command):
8576         * cmds.c (Fself_insert_internal):
8577         * console.c (Fvalid_console_type_p):
8578         * console.c (Fcdfw_console):
8579         * console.c (Fconsole_type):
8580         * console.c (Fconsole_name):
8581         * console.c (Fconsole_device_list):
8582         * console.c (Fconsole_on_window_system_p):
8583         * data.c:
8584         * data.c (Feq):
8585         * data.c (Fold_eq):
8586         * data.c (Fsubr_interactive):
8587         * data.c (Fchar_to_int):
8588         * data.c (Fint_to_char):
8589         * data.c (Fsetcar):
8590         * data.c (Fsetcdr):
8591         * data.c (Fnumber_to_string):
8592         * data.c (Fstring_to_number):
8593         * data.c (Frem):
8594         * database.c (mark_database):
8595         * database.c (finalize_database):
8596         * database.c (Fdatabase_live_p):
8597         * database.c (Fdatabasep):
8598         * device-x.c (Fx_get_resource):
8599         * device.c (Fdfw_device):
8600         * dired.c:
8601         * dired.c (Ffile_name_completion):
8602         * dired.c (Ffile_name_all_completions):
8603         * dired.c (Fuser_name_completion):
8604         * dired.c (Fuser_name_completion_1):
8605         * dired.c (Fuser_name_all_completions):
8606         * doc.c (Fdocumentation):
8607         * doc.c (Fdocumentation_property):
8608         * doc.c (Fsubstitute_command_keys):
8609         * editfns.c:
8610         * editfns.c (Fchar_to_string):
8611         * editfns.c (Fstring_to_char):
8612         * editfns.c (Ftemp_directory):
8613         * editfns.c (Finsert_char):
8614         * editfns.c (Fbuffer_substring_no_properties):
8615         * editfns.c (Fnarrow_to_region):
8616         * editfns.c (Fchar_equal):
8617         * editfns.c (Fchar_Equal):
8618         * editfns.c (Ftranspose_regions):
8619         * emacs.c (Fdump_emacs):
8620         * eval.c (Fthrow):
8621         * eval.c (Fcommand_execute):
8622         * eval.c (Fautoload):
8623         * eval.c (Fbacktrace):
8624         * eval.c (Fbacktrace_frame):
8625         * events.c:
8626         * events.c (Fcopy_event):
8627         * events.c (Fcharacter_to_event):
8628         * events.c (Fevent_button):
8629         * events.c (Fevent_process):
8630         * extents.c:
8631         * extents.c (Fnext_extent_change):
8632         * extents.c (Fextent_property):
8633         * faces.c (Ffacep):
8634         * faces.c (Fmake_face):
8635         * file-coding.c:
8636         * file-coding.c (Fencode_shift_jis_char):
8637         * file-coding.c (Fencode_big5_char):
8638         * fileio.c (Ffile_name_directory):
8639         * fileio.c (Ffile_name_nondirectory):
8640         * fileio.c (Ffile_name_as_directory):
8641         * fileio.c (Fdirectory_file_name):
8642         * fileio.c (Ffile_truename):
8643         * fileio.c (Fsubstitute_in_file_name):
8644         * fileio.c (Ffile_modes):
8645         * fileio.c (Fset_file_modes):
8646         * fileio.c (Fset_default_file_modes):
8647         * fileio.c (Fverify_visited_file_modtime):
8648         * floatfns.c (Facos):
8649         * floatfns.c (Fasin):
8650         * floatfns.c (Fatan):
8651         * floatfns.c (Fcos):
8652         * floatfns.c (Fsin):
8653         * floatfns.c (Ftan):
8654         * floatfns.c (Fbessel_j0):
8655         * floatfns.c (Fbessel_j1):
8656         * floatfns.c (Fbessel_jn):
8657         * floatfns.c (Fbessel_y0):
8658         * floatfns.c (Fbessel_y1):
8659         * floatfns.c (Fbessel_yn):
8660         * floatfns.c (Ferf):
8661         * floatfns.c (Ferfc):
8662         * floatfns.c (Flog_gamma):
8663         * floatfns.c (Fexp):
8664         * floatfns.c (Fexpt):
8665         * floatfns.c (Flog):
8666         * floatfns.c (Flog10):
8667         * floatfns.c (Fsqrt):
8668         * floatfns.c (Fcube_root):
8669         * floatfns.c (Facosh):
8670         * floatfns.c (Fasinh):
8671         * floatfns.c (Fatanh):
8672         * floatfns.c (Fcosh):
8673         * floatfns.c (Fsinh):
8674         * floatfns.c (Ftanh):
8675         * floatfns.c (Fabs):
8676         * floatfns.c (Ffloat):
8677         * floatfns.c (Flogb):
8678         * floatfns.c (Fceiling):
8679         * floatfns.c (Ffloor):
8680         * floatfns.c (Fround):
8681         * floatfns.c (Ftruncate):
8682         * floatfns.c (Ffceiling):
8683         * floatfns.c (Fffloor):
8684         * floatfns.c (Ffround):
8685         * floatfns.c (Fftruncate):
8686         * fns.c (Fstring_equal):
8687         * fns.c (Fstring_lessp):
8688         * fns.c (concat2):
8689         * fns.c (concat3):
8690         * fns.c (vconcat2):
8691         * fns.c (vconcat3):
8692         * fns.c (Fsubstring):
8693         * fns.c (Fassoc):
8694         * fns.c (Fold_assoc):
8695         * fns.c (assoc_no_quit):
8696         * fns.c (Fassq):
8697         * fns.c (Fold_assq):
8698         * fns.c (assq_no_quit):
8699         * fns.c (Frassoc):
8700         * fns.c (Fold_rassoc):
8701         * fns.c (Frassq):
8702         * fns.c (Fold_rassq):
8703         * fns.c (rassq_no_quit):
8704         * fns.c (Fremassoc):
8705         * fns.c (remassoc_no_quit):
8706         * fns.c (Fremassq):
8707         * fns.c (remassq_no_quit):
8708         * fns.c (Fremrassoc):
8709         * fns.c (Fremrassq):
8710         * fns.c (remrassq_no_quit):
8711         * fns.c (Fsort):
8712         * fns.c (Fplist_get):
8713         * fns.c (Fplist_put):
8714         * fns.c (Fplist_remprop):
8715         * fns.c (Fplist_member):
8716         * fns.c (Flax_plist_get):
8717         * fns.c (Flax_plist_put):
8718         * fns.c (Flax_plist_remprop):
8719         * fns.c (Flax_plist_member):
8720         * fns.c (Fequal):
8721         * fns.c (Fold_equal):
8722         * fns.c (Frequire):
8723         * fns.c (Fbase64_encode_region):
8724         * fns.c (Fbase64_encode_string):
8725         * fns.c (Fbase64_decode_region):
8726         * frame.c:
8727         * frame.c (frame_matches_frame_spec):
8728         * frame.c (device_matches_device_spec):
8729         * frame.c (next_frame):
8730         * frame.c (previous_frame):
8731         * frame.c (Fnext_frame):
8732         * frame.c (Fprevious_frame):
8733         * frame.c (Fframe_property):
8734         * frame.c (Fset_frame_height):
8735         * frame.c (Fset_frame_size):
8736         * frame.h:
8737         * glyphs.c:
8738         * glyphs.c (if):
8739         * glyphs.c (decode_error_behavior_flag):
8740         * glyphs.c (Fmake_image_instance):
8741         * indent.c (Findent_to):
8742         * intl.c (Fignore_defer_gettext):
8743         * keymap.c (Fkeymapp):
8744         * keymap.c (Flookup_key):
8745         * lread.c:
8746         * lread.c (Fload_internal):
8747         * lread.c (Feval_buffer):
8748         * lread.c (Feval_region):
8749         * macros.c (Fexecute_kbd_macro):
8750         * marker.c (set_marker_internal):
8751         * marker.c (Fset_marker):
8752         * marker.c (set_marker_restricted):
8753         * marker.c (Fcopy_marker):
8754         * marker.c (noseeum_copy_marker):
8755         * menubar.c:
8756         * menubar.c (Fpopup_menu):
8757         * minibuf.c:
8758         * mule-charset.c (Fcharset_name):
8759         * mule-charset.c (Fchar_charset):
8760         * mule-charset.c (Fchar_octet):
8761         * mule-charset.c (Fsplit_char):
8762         * mule-wnnfns.c (Fwnn_open):
8763         * mule-wnnfns.c (Fwnn_dict_comment):
8764         * mule-wnnfns.c (Fwnn_quit_henkan):
8765         * mule-wnnfns.c (Fwnn_word_toroku):
8766         * mule-wnnfns.c (Fwnn_word_sakujo):
8767         * mule-wnnfns.c (Fwnn_word_use):
8768         * mule-wnnfns.c (Fwnn_hindo_set):
8769         * objects.c:
8770         * objects.c (Fmake_color_instance):
8771         * objects.c (Fmake_font_instance):
8772         * print.c (Fwrite_char):
8773         * process.c:
8774         * process.c (mark_process):
8775         * process.c (print_process):
8776         * process.c (get_process_from_usid):
8777         * process.c (Fprocessp):
8778         * process.c (Fprocess_live_p):
8779         * process.c (Fget_process):
8780         * process.c (Fget_buffer_process):
8781         * process.c (get_process):
8782         * process.c (Fprocess_id):
8783         * process.c (Fprocess_name):
8784         * process.c (Fprocess_command):
8785         * process.c (init_process_io_handles):
8786         * process.c (start_process_unwind):
8787         * process.c (Fstart_process_internal):
8788         * process.c (Fopen_multicast_group_internal):
8789         * process.c (Fset_process_window_size):
8790         * process.c (read_process_output):
8791         * process.c (send_process):
8792         * process.c (Fprocess_tty_name):
8793         * process.c (Fset_process_buffer):
8794         * process.c (Fprocess_buffer):
8795         * process.c (Fprocess_mark):
8796         * process.c (set_process_filter):
8797         * process.c (Fset_process_filter):
8798         * process.c (Fprocess_filter):
8799         * process.c (Fprocess_send_region):
8800         * process.c (Fprocess_send_string):
8801         * process.c (exec_sentinel):
8802         * process.c (Fset_process_sentinel):
8803         * process.c (Fprocess_sentinel):
8804         * process.c (status_notify):
8805         * process.c (Fprocess_status):
8806         * process.c (Fprocess_exit_status):
8807         * process.c (process_send_signal):
8808         * process.c (Fprocess_send_eof):
8809         * process.c (deactivate_process):
8810         * process.c (remove_process):
8811         * process.c (Fdelete_process):
8812         * process.c (kill_buffer_processes):
8813         * process.c (Fprocess_kill_without_query):
8814         * process.c (Fprocess_kill_without_query_p):
8815         * rangetab.c:
8816         * rangetab.c (Fget_range_table):
8817         * rangetab.c (Fput_range_table):
8818         * rangetab.c (Fremove_range_table):
8819         * rangetab.c (Fclear_range_table):
8820         * search.c:
8821         * search.c (Fskip_chars_forward):
8822         * search.c (Fskip_chars_backward):
8823         * search.c (Fskip_syntax_forward):
8824         * search.c (Fskip_syntax_backward):
8825         * search.c (search_command):
8826         * search.c (Freplace_match):
8827         * search.c (Fregexp_quote):
8828         * select.c (Fown_selection_internal):
8829         * select.c (Fselection_owner_p):
8830         * select.c (Fselection_exists_p):
8831         * select.c (Fget_selection_internal):
8832         * specifier.c:
8833         * symbols.c:
8834         * symbols.c (Fintern):
8835         * symbols.c (Fintern_soft):
8836         * symbols.c (Funintern):
8837         * symbols.c (Fapropos_internal):
8838         * symbols.c (Fset_default):
8839         * syntax.c:
8840         * syntax.c (Fsyntax_table_p):
8841         * syntax.c (Fcopy_syntax_table):
8842         * syntax.c (Fset_syntax_table):
8843         * syntax.c (Fchar_syntax):
8844         * syntax.c (syntax_match):
8845         * syntax.c (Fmatching_paren):
8846         * syntax.c (Fforward_word):
8847         * syntax.c (scan_lists):
8848         * syntax.c (Fscan_lists):
8849         * syntax.c (Fscan_sexps):
8850         * syntax.c (Fparse_partial_sexp):
8851         * toolbar.c (Fcheck_toolbar_button_syntax):
8852         * tooltalk.doc:
8853         * window.c:
8854         * window.c (Fwindowp):
8855         * window.c (Fwindow_live_p):
8856         * window.c (Fwindow_point):
8857         * window.c (Fdelete_window):
8858         * window.c (Fnext_window):
8859         * window.c (Fprevious_window):
8860         * window.c (Fother_window):
8861         * window.c (window_loop):
8862         * window.c (Fget_lru_window):
8863         * window.c (Fsplit_window):
8864         * window.c (Fenlarge_window):
8865         * window.c (Fenlarge_window_pixels):
8866         * window.c (Fshrink_window):
8867         * window.c (Fshrink_window_pixels):
8868         * window.c (change_window_height):
8869         * window.c (Fwindow_configuration_p):
8870         * window.c (Fcurrent_window_configuration):
8871         * window.h:
8872         * casefiddle.c (casify_object):
8873         * casefiddle.c (Fupcase):
8874         * casefiddle.c (Fdowncase):
8875         * casefiddle.c (Fcapitalize):
8876         * casefiddle.c (Fupcase_initials):
8877         * casefiddle.c (casify_region_internal):
8878         * casefiddle.c (casify_region):
8879         * casefiddle.c (Fupcase_region):
8880         * casefiddle.c (Fdowncase_region):
8881         * casefiddle.c (Fcapitalize_region):
8882         * casefiddle.c (Fupcase_initials_region):
8883         * casefiddle.c (Fupcase_word):
8884         * casefiddle.c (Fdowncase_word):
8885         * casefiddle.c (Fcapitalize_word):
8886         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8887         Replace 0 with '\0' when working with bytes.
8888         Replace initial "(" with "\(" in docstrings.
8889
8890 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8891
8892         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8893
8894         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8895
8896 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8897
8898         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8899
8900 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8901
8902         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8903         correctly.
8904
8905 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8906
8907         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8908         (inhibit_auto_save_session): New variable.
8909         (vars_of_fileio): Declare and initialize them.
8910         * fileio.c (Fdo_auto_save): Don't create session file if
8911         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8912
8913 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8914
8915         * sgiplay.c (play_internal): C++ compilability.
8916         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8917         * callproc.c (Fold_call_process_internal):
8918         Remove unused vars `env', `first'.
8919         * scrollbar.c (update_scrollbar_instance):
8920         #### unused var `current_window'.
8921         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8922         etc. within #ifdef NOT_YET.
8923         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8924         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8925         * specifier.c (specifier_instance):
8926         #### unused var `tag'.
8927         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8928
8929 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8930
8931         * fns.c (Fbutlast):
8932         * fns.c (list_sort):
8933         * fns.c (Ffillarray):
8934         * fns.c (bytecode_nconc2):
8935         * fns.c (Fnconc):
8936         * fns.c (mapcar1):
8937         * fns.c (Fmapconcat):
8938         Be pedantically 64-bit correct.  For the time when someone will
8939         want to have a list with length > 2**32.
8940
8941         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8942         Work around MIPSpro compiler bug.
8943
8944         * process-unix.c (unix_kill_child_process): Add snarky comment.
8945         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8946
8947         * config.h.in: Oops, _getpt ==> _getpty
8948
8949 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8950
8951         * config.h.in:
8952         * regex.c:
8953         Use void*, not char*, as return type of alloca().
8954
8955         * alloc.c (free_marker): Side effect inside assert expression!
8956
8957 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8958
8959         * mule-charset.c (Fset_charset_ccl_program): To check
8960         if the given ccl program is valid, use setup_ccl_program()
8961         instead of CHECK_VECTOR().
8962         (Fmake_charset): Likewise.
8963
8964 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8965
8966         * faces.c (get_extent_fragment_face_cache_index):
8967         Fix cachel.merged_faces memory leak.
8968
8969 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8970
8971         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8972         Reset MSB of octets obtained by DECODE_SJIS
8973         because of the incompatibility with Emacs.
8974         (ccl_driver)<CCL_ENCODE_SJIS>:
8975         Set MSB of octets before passing them to
8976         ENCODE_SJIS because of the incompatibility
8977         with Emacs.
8978
8979 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8980
8981         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8982         (DECLARE_LRECORD): Undo the last change.
8983         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8984
8985 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8986
8987         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8988         the implementation to lrecord_implementations_table.
8989
8990 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8991
8992         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8993         initial value of `lrecord_type_##c_name' and
8994         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8995         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8996         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8997         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8998         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8999
9000 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9001
9002         * miscplay.c (sndcnv8S_2mono):
9003         (sndcnv2monounsigned):
9004         (sndcnvULaw_2linear):
9005         (sndcnv16swap):
9006         Remove implementation-defined behavior.
9007
9008 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9009
9010         * input-method-xlib.c: Warning suppression.
9011
9012 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9013
9014         * mule-ccl.c: Sync up with Emacs 21.0.90.
9015         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9016         Do nothing.
9017         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9018         Likewise.
9019         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9020         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9021         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9022         leading char belongs to official 2-dimensional charset.
9023         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9024         write the given character as is.  Otherwise,
9025         if it is a multibyte char, convert it by
9026         non_ascii_set_charptr_emchar, then write it.
9027         (CCL_WRITE_STRING): Likewise.
9028         (ccl_get_compiled_code): New function.
9029         (setup_ccl_program): When ccl_prog is invalid,
9030         return -1.
9031         (Fregister_code_conversion_map): New function.
9032         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9033
9034         * mule-ccl.h: Sync up with Emacs 21.0.90.
9035         (Fregister_ccl_program): export it.
9036
9037         * redisplay-msw.c (separate_textual_runs):
9038         If ccl program is not valid, don't do ccl conversion.
9039
9040         * redisplay-x.c (separate_textual_runs): Ditto.
9041
9042         * file-coding.c (Fmake_coding_system):
9043         When type is ccl and value is vector, register it
9044         with a proper symbol.  And checks whether the
9045         given ccl program is valid.
9046         (mule_decode): When calling ccl_driver, if src indicates
9047         NULL pointer, set an empty string instead.
9048         (mule_encode): Likewise.
9049
9050 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9051
9052         The following large batch of changes gets us back to a state of
9053         C++ compilability.  Extbyte is now a char, which means that
9054         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9055
9056         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9057
9058         * sound.c (Fplay_sound): Type correctness.
9059
9060         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9061         (x_get_window_property): Type correctness.
9062         (receive_incremental_selection): unsigned char ==> Extbyte
9063         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9064         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9065         (Fx_store_cutbuffer_internal): Type correctness.
9066
9067         * process-unix.c (try_to_initialize_subtty): Type correctness.
9068
9069         * objects-x.c (x_print_color_instance): Type correctness.
9070         (x_print_font_instance): Type correctness.
9071         (x_list_fonts): SExtbyte ==> Extbyte.
9072         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9073         (x_find_charset_font): SExtbyte ==> Extbyte.
9074         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9075         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9076         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9077         Use bufbyte_strcmp.
9078
9079         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9080         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9081         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9082         (BYTE_C0_P): Use bit ops for char-signedness safety.
9083         (BYTE_C1_P): Use bit ops for char-signedness safety.
9084         (CHARSET_BY_LEADING_BYTE):
9085         (CHARSET_BY_ATTRIBUTES):
9086         Always use inline function.
9087         Use type_checking_assert.
9088         Hide chlook.
9089
9090         * mule-charset.c (non_ascii_charptr_copy_char):
9091         Modify to work with both ASCII and non-ASCII characters.
9092         Improve docs and variable names.
9093         Replace over-clever fall-through switch with a simple loop.
9094         (Lstream_get_emchar_1):
9095         Replace over-clever fall-through switch with a simple loop.
9096
9097         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9098         Warning suppression.
9099
9100         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9101         the return value of Lstream_getc, which could be EOF as well.
9102
9103         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9104
9105         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9106         APIs can be used on Extbytes without casts.  Risky!
9107         (SExtbyte): Remove.
9108         (UExtbyte): Remove.
9109
9110         * input-method-xlib.c (XIM_init_device):
9111         Use Xlib.h instead of IntrinsicP.h.
9112         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9113         which will break in X11R7.
9114         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9115         to call XRegisterIMInstantiateCallback with correct types.
9116
9117         * gui-x.c (button_item_to_widget_value): Type correctness.
9118
9119         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9120
9121         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9122         (xbm_instantiate_1): Type correctness.
9123         (BUILD_GLYPH_INST):  Type correctness.
9124
9125         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9126
9127         * file-coding.c:
9128         (decode_coding_sjis):
9129         (decode_coding_big5):
9130         (decode_coding_ucs4):
9131         (decode_coding_utf8):
9132         (decode_coding_iso2022):
9133         (decode_coding_no_conversion):
9134         Make all decoding functions take an Extbyte * arg.
9135         (encode_coding_sjis):
9136         (encode_coding_big5):
9137         (encode_coding_ucs4):
9138         (encode_coding_utf8):
9139         (encode_coding_iso2022):
9140         (encode_coding_no_conversion):
9141         Make all encoding functions take a Bufbyte * arg.
9142         Use size_t instead of unsigned int for memory sizes.
9143         Only cast to unsigned char whenever dereferencing Extbyte *.
9144
9145         * doc.c (unparesseuxify_doc_string): Type correctness.
9146
9147         * console-x.c (split_up_display_spec):
9148         Rewrite without using details of internal string representation.
9149         (x_semi_canonicalize_device_connection): Type correctness.
9150
9151         * config.h.in:
9152         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9153         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9154         (HAVE_XFREE386): Removed.
9155
9156         * buffer.h (DEC_CHARPTR): `const' correctness.
9157         (bufbyte_strcmp): New.
9158         (bufbyte_memcmp): New.
9159
9160         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9161
9162         * buffer.h (XCHAR_OR_CHAR_INT):
9163         Always use inline function.
9164         Remove redundant type checking assert() - XINT will abort quite nicely.
9165
9166 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9167
9168         * search.c (Freplace_match): Set newtext to an empty string.
9169
9170 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9171
9172         * s/decosf1-3.h: Remove #include of stropts.h
9173         * s/ptx.h: Remove #include of stropts.h
9174         * s/usg5-4.h: Remove #include of stropts.h
9175         * sysproc.h:
9176         * config.h.in:
9177         Use stropts.h, not sys/stropts.h.
9178         Use strtio.h, not sys/strtio.h.
9179
9180 2000-10-04  Martin Buchholz <martin@xemacs.org>
9181
9182         * XEmacs 21.2.36 is released.
9183
9184 2000-09-21  Andy Piper  <andy@xemacs.org>
9185
9186         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9187         changes still involve copying the widget tree.
9188         (update_widget_face): make sure a change is register in the widget
9189         tree. Call update_tab_widget_face appropriately.
9190         (update_tab_widget_face): ditto.
9191         (x_tab_control_redisplay): make sure non-structural changes still
9192         involve copying the widget tree.
9193
9194 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9195
9196         * lread.c (locate_file): Check the path element is non-nil.
9197
9198 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9199
9200         * lisp.h: Warning suppression for SCO compilers.
9201
9202         * redisplay-tty.c (reset_tty_modes): Fix crash.
9203         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9204
9205 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9206
9207         Big signal/process handling overhaul.  Bugs fixed:
9208         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9209         M-x comint-kill-subjob should work for both values nil and t of
9210         process-connection-type. It was broken on most platforms.
9211         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9212         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9213         * process-unix.c: Signal/Process handling overhaul.
9214         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9215         (allocate_pty): Use all available modern methods of allocating
9216         ptys, falling back to old style BSD allocation as a last resort.
9217         Use allegedly more secure Unix98 pty allocation by default.
9218         (allocate_pty_the_old_fashioned_way): New. the last resort.
9219         (unix_create_process): Push ptem, ldterm, ttcompat where
9220         available.  Autoconfiscate.
9221         (try_to_initialize_subtty): New.
9222         (unix_kill_child_process): Proper signal handling for ptys on most
9223         platforms, using special knowledge of AIX, BSD, etc...
9224         (unix_create_process): Always disconnect_controlling_terminal() for
9225         subprocesses, whether using ptys or not.
9226         * process.h: Remove old getpt-dependent PTY code.
9227         * process.c (Fprocess_send_signal): New, obvious generic function.
9228         (decode_signal): New.
9229         (Finterrupt_process):
9230         (Fkill_process):
9231         (Fquit_process):
9232         (Fstop_process):
9233         (Fcontinue_process):
9234         (Fsignal_process): Use decode_signal.
9235         (process_send_signal):
9236         Many docstring corrections.
9237         Allow any signal to be sent to a process object.
9238         * config.h.in: Add symbols for big signal/process overhaul.
9239         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9240         * sysproc.h: Include process-related headers, where available:
9241         sys/stropts.h sys/strtio.h pty.h libutil.h
9242         * s/irix4-0.h:
9243         * s/irix5-0.h:
9244         * s/cygwin32.h:
9245         * s/gnu.h:
9246         * s/linux.h:
9247         * s/hpux.h:
9248         * s/aix3-1.h:
9249         Remove old S&M pty stuff.
9250         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9251         * systty.h: Simplify cpp hackery, improve comments.
9252         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9253
9254         * editfns.c (Fformat_time_string):
9255         Be a little more paranoid with the return value of ctime.
9256
9257         * fileio.c (check_executable):
9258         (check_writable):
9259         Use symbolic constants X_OK, W_OK.
9260
9261         * console-x.c (split_up_display_spec): Fix a warning.
9262
9263 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9264
9265         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9266         * ntproc.c (sys_spawnve): make_string ==> build_string
9267         Small clarity improvements.
9268
9269 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9270
9271         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9272
9273         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9274
9275         * config.h.in (HAVE_STRCASECMP): Remove.
9276
9277 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9278
9279         * redisplay-output.c (redisplay_output_pixmap):
9280         Cleaner and possibly more 64-bit correct code.
9281
9282 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9283
9284         * dumper.c (pdump_load_finish): move restoration of
9285         `noninteractive1' to emacs.c (main_1).
9286         * emacs.c (main_1): protect LISP-visible command-line flags
9287         from pdump_load().
9288
9289 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9290
9291         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9292         DUMP_TARGET instead of literal program names.
9293
9294 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9295
9296         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9297
9298 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9299
9300         * *: Spelling mega-patch
9301
9302 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9303
9304         * fns.c (bad_bad_turtle):
9305         Delete "Eek!" comment, since we fixed the bug to which it refers.
9306
9307 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9308
9309         * alloca.c: Replace REGISTER with register.
9310
9311 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9312
9313         * file-coding.c (ucs_to_char): Use countof.
9314
9315 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9316
9317         * file-coding.c: (ucs_to_char):
9318         (complex_vars_of_file_coding):
9319         Use countof instead of sizeof.
9320         Use CHECK_NATNUM instead of CHECK_INT.
9321
9322         * sysdep.c (strcasecmp): Remove.
9323         * device-x.c (ascii_strcasecmp): New.
9324         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9325         Avoid using non-standard non-portable strcasecmp.
9326
9327 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9328
9329         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9330         * font-lock.c: remove reference to emacsfns.h.
9331         * search.c: small doc improvement.
9332         * event-Xt.c: correct file names in comments.
9333         * console-x.h Correct file names in comments.
9334         * frame.c: Correct file names in comments.
9335         * event-stream.c: remove Energize from comments.
9336
9337 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9338
9339         * symeval.h (DEFERROR_STANDARD):
9340         (DEFERROR):
9341         (DEFSYMBOL):
9342         (DEFSYMBOL_NO_DUMP):
9343         (DEFSYMBOL_MULTIWORD_PREDICATE):
9344         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9345         (DEFKEYWORD):
9346         The construct &##name is not sensible C.
9347         Fixes compilation errors with Unixware native compiler.
9348
9349 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9350
9351         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9352         (next_frame_internal): Removed.  We now just have next_frame.
9353         (next_frame):
9354         Write a simpler and cleaner one-pass algorithm.
9355         Remove called_from_delete_device arg and #ifdefed-out code.
9356         (previous_frame):
9357         Renamed from prev_frame.  Update callers.
9358         Cleaned up to have an analogous implementation to next_frame.
9359         (other_visible_frames_internal): Remove the
9360         called_from_delete_device bogus arg, and hence, remove this
9361         function.  Just use other_visible_frames().
9362
9363         * window.c (Fnext_window):
9364         Prettify docstring.
9365         Since next_frame() is guaranteed to return a frame, remove check
9366         for nil inserted in previous patch.
9367         (Fprevious_window):
9368         Prettify docstring.
9369         Make code look more like Fnext_window.
9370         (window_loop):
9371         Respect the `console' arg when iterating through windows.
9372         Fixes bug: (get-buffer-window buffer t device) not respecting
9373         the `device' arg.
9374         This function needs more work, as others have pointed out.
9375
9376         * frame.h: Rename prev_frame to previous_frame.
9377         device_matches_console_spec no longer takes a `frame' arg.
9378
9379         * s/gnu.h:
9380         * s/linux.h:
9381         * s/hpux.h:
9382         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9383         From "Golubev I. N." <gin@mo.msk.ru>.
9384
9385         * make-src-depend: Fix typo.
9386
9387 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9388
9389         * window.c (Fnext_window):
9390         next_frame() might return nil, not a frame.
9391         Fixes this crash:
9392         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9393
9394         * frame.c (next_frame_internal):
9395         We've passed a frame if we've passed its device.
9396         Fixes this crash:
9397         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9398 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9399
9400 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9401
9402         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9403         Allow option to suppress accelerators in menu/dialog items.
9404         (populate_or_checksum_helper): Pass dialog title through above.
9405
9406 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9407
9408         * event-msw.c (mswindows_key_to_emacs_keysym):
9409         Add "pause" key, fix "menu" key.
9410
9411 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9412
9413         * eval.c (reinit_vars_of_eval):
9414         Increase max_lisp_eval_depth to 1000,
9415         required for thai-xtis.el to byte-compile under some circumstances.
9416
9417 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9418
9419         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9420         From Kenichi Handa.
9421
9422 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9423
9424         * make-src-depend: Make the generated Makefiles smaller.
9425
9426         * s/hpux.h (SETUP_SLAVE_PTY):
9427         Provide a %d in the format string for the errno argument.
9428
9429         * editfns.c (Ftemp_directory):
9430         Warning fix.
9431         Avoid buffer overrun on very long file name.
9432
9433         * input-method-xlib.c (XIM_init_device):
9434         6th parameter of XRegisterIMInstantiateCallback has different
9435         pointer types on different OSes, so simply cast to (void *).
9436
9437         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9438
9439         * sysdll.c (dll_open):
9440         shl_load will hang hard if passed a NULL filename.
9441         Simply return NULL for compatibility with dlopen.
9442         * sysdll.c: Conform to XEmacs coding standards.
9443
9444         * sysdep.c (get_pty_max_bytes):
9445         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9446
9447 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9448
9449         * tooltalk.c: Add #include <syssignal.h>
9450
9451 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9452
9453         * s/hpux.h: Don't use undefined function sigunblock().
9454
9455 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9456
9457         * config.h.in: Add HAVE_BALLOON_HELP.
9458         * emacs.c: Use HAVE_BALLOON_HELP.
9459         * Makefile.in.in (x_objs):
9460         Make Balloon Help conditional on finding shape.h.
9461
9462 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9463
9464         * syntax.c (regex_emacs_buffer_p): New variable.
9465         * syntax.h (regex_emacs_buffer_p): extern.
9466         * search.c (looking_at_1):
9467         (string_match_1):
9468         (fast_string_match):
9469         (search_buffer): Set regex_emacs_buffer_p.
9470         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9471         when before_dot, at_dot, after_dot.
9472
9473 2000-08-23  Andy Piper  <andy@xemacs.org>
9474
9475         * gui-x.c (popup_selection_callback): Only set action_occurred
9476         when we really have an image instance.
9477         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9478
9479 2000-08-23  Andy Piper  <andy@xemacs.org>
9480
9481         * gui-msw.c (mswindows_handle_gui_wm_command): set
9482         action_occurred.
9483         * gui-x.c (popup_selection_callback): ditto.
9484
9485         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9486         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9487         (struct Lisp_Image_Instance): add action_occurred flag.
9488
9489         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9490         (image_instance_changed): ditto.
9491         (reset_frame_subwindow_instance_cache): only unmap windows - do
9492         not remove them from the cache also.
9493
9494         * glyphs-widget.c (tab_control_update): better debug.
9495         (progress_gauge_update): ditto.
9496         (layout_update): ditto.
9497         (layout_instantiate): ditto.
9498         (tab_control_order_only_changed): cope with null pending items.
9499
9500         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9501         debug. Force selection of an item when an action occurred. Cope
9502         with null pending_items.
9503         (mswindows_progress_gauge_redisplay): better debug.
9504         * glyphs-x.c (x_tab_control_redisplay): ditto.
9505
9506         * redisplay.c (redisplay_frame): reset the frame cache if the
9507         frame is garbaged.
9508
9509         * window.c (Fset_window_configuration): potentially re-enable
9510         frame cache reset.
9511         (window_unmap_subwindows): need to finalize instances here since
9512         it is only used in mark_window_as_deleted.
9513
9514 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9515
9516         * nas.c (SndOpenDataForReading):
9517         nas.c (WaveOpenDataForReading):
9518         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9519         Somehow escaped from the 2000-08-14 patch.
9520
9521 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9522
9523         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9524         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9525
9526 2000-08-21  Andy Piper  <andy@xemacs.org>
9527
9528         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9529         window if it is not already displayed.
9530
9531         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9532         it is not already displayed.
9533
9534         * window.c (Fset_window_configuration): don't reset the frame
9535         cache.
9536
9537         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9538         instances from the frame cache if we are actually finalizing them.
9539         (reset_frame_subwindow_instance_cache): reset frame cache only
9540         after unmapping everything.
9541         (map_subwindow): set displayed flag after mapping.
9542
9543 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9544
9545         * data.c (indirect_function):
9546         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9547
9548         * eval.c (function_argcount):
9549         Use original function when signaling errors.
9550
9551 2000-08-18  Andy Piper  <andy@xemacs.org>
9552
9553         * frame.c (delete_frame_internal): use new
9554         free_frame_subwindow_instances name.
9555
9556         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9557         (add_tab_item): make return type correct.
9558         (mswindows_tab_control_instantiate): assert index of tab.
9559         (mswindows_tab_control_redisplay): Re-code to use
9560         gui_item_equal_sans_selected and gui_item_list_find_selected.
9561
9562         * glyphs-widget.c (tab_control_update): Correct comment.
9563
9564         * window.c (window_unmap_subwindows): use new
9565         unmap_subwindow_instance_cache_mapper.
9566         (window_unmap_subwindows_cache_mapper): deleted.
9567         (Fset_window_configuration): comparisons should now be with
9568         EQ. Preserve the subwindow instance cache across configuration
9569         changes.
9570         (allocate_window): ditto.
9571         (make_dummy_parent): ditto.
9572
9573         * glyphs.c (free_frame_subwindow_instances): rename from
9574         free_frame_subwindow_instance_cache. finalize all instances rather
9575         than just those in the display cache.
9576         (finalize_all_subwindow_instances): walk windows unmapping and
9577         finalizing subwindows.
9578         (unmap_subwindow_instance_cache_mapper): moved from
9579         window.c. Allow finalization as well as unmapping.
9580
9581         * gui.c (gui_item_list_find_selected): new function.
9582
9583         * gui.h (gui_item_list_find_selected): declare.
9584
9585         * glyphs-x.c (x_tab_control_redisplay): pick tab
9586         explicitly. Re-code to use gui_item_equal_sans_selected and
9587         gui_item_list_find_selected.
9588
9589         * glyphs-x.h: add lwlib-utils.h
9590
9591         * buffer.c (Frecord_buffer): undo previous change.
9592
9593 2000-08-09  Vin Shelton  <acs@xemacs.org>
9594
9595         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9596         possible.  Create temporary files more securely.  The patch was
9597         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9598         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9599         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9600         for details.
9601
9602 2000-08-07  Ben Wing  <ben@xemacs.org>
9603
9604         * getloadavg.c: remove duplicate (and windows-breaking)
9605         includes of fcntl.h and sys/file.h.
9606
9607         * nt.c: remove duplicate getloadavg() definition.
9608
9609         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9610         encodings.
9611
9612 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9613
9614         * eval.c (function_argcount): If function needs to be autoloaded
9615         actually use the loaded definition.
9616         GCPRO function.
9617
9618 2000-08-05  Ben Wing  <ben@xemacs.org>
9619
9620         * getloadavg.c: add prototype for getloadavg().  remove
9621         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9622         of the code).  remove duplicate header includes.
9623
9624         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9625
9626         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9627         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9628         useful load average.
9629
9630         * alloc.c (reinit_alloc_once_early): removed references to
9631         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9632         the lisp vars are the only things referencing the malloc_sbrk_*
9633         vars, and they were already if 0'd out.  these vars only exist
9634         in the older malloc.c, which is basically unused, and they're
9635         only for informational purposes.
9636
9637         * m\*.h: removed useless VIRT_ADDR_VARIES.
9638
9639         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9640
9641 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9642
9643         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9644         color if the image is a mono pixmap.
9645
9646 2000-07-30  Ben Wing  <ben@xemacs.org>
9647
9648         * Makefile.in.in (release):
9649         Remove stray @.
9650
9651         * buffer.c (directory_is_current_directory):
9652         * dired-msw.c (mswindows_get_files):
9653         * dired.c:
9654         * dired.c (Fdirectory_files):
9655         * dired.c (file_name_completion_stat):
9656         * dired.c (Ffile_attributes):
9657         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9658         preprocessor tricks, to avoid problems on some machines
9659         (e.g. SCO).
9660
9661         * callproc.c (egetenv): GC docs.
9662
9663         * console-msw.h:
9664         * console-msw.h (struct mswindows_dialog_id):
9665         * lrecord.h (lrecord_type):
9666         New object for use with MSW dialogs.
9667
9668         * console.h (struct console_methods):
9669         New enable/disable frame methods, for proper modal dialogs.
9670
9671         * device-msw.c (msprinter_default_printer): Fix to follow
9672         proper Mule conventions.
9673
9674         * device-msw.c:
9675         * device-msw.c (signal_open_printer_error):
9676         * device-msw.c (msprinter_init_device):
9677         * device-msw.c (ensure_not_printing):
9678         * device-msw.c (plist_get_margin):
9679         * device-msw.c (Fmsprinter_select_settings):
9680         * device-msw.c (finalize_devmode):
9681         * device-msw.c (Fmsprinter_settings_despecialize):
9682         * device-msw.c (signal_enum_priner_error):
9683         * extents.c (decode_extent):
9684         * extents.c (decode_map_extents_flags):
9685         * extents.c (decode_extent_at_flag):
9686         * extents.c (Fextent_at):
9687         * extents.c (Fextents_at):
9688         * extents.c (symbol_to_glyph_layout):
9689         [[[[2]]]] Use structured errors.
9690
9691         * dialog-msw.c:
9692         * dialog-msw.c (mswindows_is_dialog_msg):
9693         * dialog-msw.c (mark_mswindows_dialog_id):
9694         * dialog-msw.c (dialog_proc):
9695         * dialog-msw.c (handle_question_dialog_box):
9696         * dialog-msw.c (syms_of_dialog_mswindows):
9697         Define new object to clean up marking; use it as a dialog identifier.
9698         Call new delete-dialog-box-hook.
9699
9700         * dialog-x.c (dbox_selection_callback):
9701         * dialog-x.c (dbox_descriptor_to_widget_value):
9702         * dialog-x.c (x_make_dialog_box_internal):
9703         Call new delete-dialog-box-hook.
9704         Return an id.
9705
9706         * dialog.c:
9707         * dialog.c (syms_of_dialog):
9708         * dialog.c (vars_of_dialog):
9709         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9710
9711         * eval.c:
9712         * eval.c (signal_call_debugger):
9713         when noninteractive, output stack traces on the console instead
9714         of in a (never-seen) buffer.
9715
9716         * eval.c (signal_type_error):
9717         * eval.c (invalid_argument_2):
9718         * lisp.h:
9719         new funs for use w/structured errors.
9720
9721         * event-Xt.c:
9722         * event-Xt.c (x_to_emacs_keysym):
9723         * event-Xt.c (describe_event):
9724         * event-Xt.c (emacs_Xt_event_handler):
9725         * event-Xt.c (vars_of_event_Xt):
9726         * event-msw.c:
9727         * event-msw.c (mswindows_wnd_proc):
9728         * event-msw.c (vars_of_event_mswindows):
9729         rename {x,mswindows}-debug-events to debug-{}-events for
9730         consistency with other debug-foo variables.
9731
9732         * event-stream.c:
9733         document next-event more clearly.
9734
9735         * fileio.c (Ffile_name_directory):
9736         * fileio.c (Ffile_name_nondirectory):
9737         * fileio.c (Funhandled_file_name_directory):
9738         * fileio.c (file_name_as_directory):
9739         * fileio.c (Ffile_name_as_directory):
9740         * fileio.c (directory_file_name):
9741         * fileio.c (Fdirectory_file_name):
9742         * fileio.c (Fmake_temp_name):
9743         * fileio.c (Ffile_truename):
9744         * fileio.c (Fsubstitute_in_file_name):
9745         * fileio.c (expand_and_dir_to_file):
9746         * fileio.c (barf_or_query_if_file_exists):
9747         * fileio.c (check_executable):
9748         * fileio.c (Ffile_exists_p):
9749         * fileio.c (Ffile_writable_p):
9750         * fileio.c (Ffile_directory_p):
9751         * fileio.c (Ffile_regular_p):
9752         * fileio.c (Ffile_modes):
9753         * fileio.c (Ffile_newer_than_file_p):
9754         * fileio.c (Fverify_visited_file_modtime):
9755         * fileio.c (Fset_visited_file_modtime):
9756         * fileio.c (auto_save_1):
9757         (1). (2).
9758         fix up gcpro's.
9759
9760         * frame-msw.c:
9761         * frame-msw.c (mswindows_init_frame_1):
9762         * frame-msw.c (mswindows_enable_frame):
9763         * frame-msw.c (error_frame_unsizable):
9764         * frame-msw.c (msprinter_init_frame_1):
9765         * frame-msw.c (msprinter_init_frame_3):
9766         * frame-msw.c (console_type_create_frame_mswindows):
9767         (2).
9768         implement new enable/disable frame methods.
9769
9770         * frame-x.c:
9771         * frame-x.c (x_enable_frame):
9772         * frame-x.c (console_type_create_frame_x):
9773         implement new enable/disable frame methods.
9774
9775         * frame.c:
9776         * frame.c (Fdisable_frame):
9777         * frame.c (syms_of_frame):
9778         * frame.h (struct frame):
9779         implement new enable/disable frame methods/functions.
9780
9781         * general-slots.h:
9782         add initial-focus.
9783
9784         * glyphs-msw.c (mswindows_widget_instantiate):
9785         comment that initial-focus should be implemented.
9786
9787         * glyphs-widget.c:
9788         * glyphs-widget.c (check_valid_instantiator):
9789         * glyphs-widget.c (check_valid_orientation):
9790         * glyphs-widget.c (check_valid_tab_orientation):
9791         * glyphs-widget.c (check_valid_justification):
9792         * glyphs-widget.c (check_valid_border):
9793         * glyphs-widget.c (check_valid_callback):
9794         * glyphs-widget.c (check_valid_int_or_function):
9795         * glyphs-widget.c (check_valid_string_or_vector):
9796         * glyphs-widget.c (check_valid_item_list_1):
9797         * glyphs-widget.c (widget_validate):
9798         * glyphs-widget.c (combo_box_validate):
9799         * glyphs-widget.c (widget_instantiate):
9800         * glyphs-widget.c (syms_of_glyphs_widget):
9801         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9802         * glyphs-widget.c (image_instantiator_combo_box):
9803         * glyphs-widget.c (image_instantiator_scrollbar):
9804         * glyphs-widget.c (image_instantiator_tab_control):
9805         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9806         (2).
9807         support (unimplemented) keyword initial-focus.
9808         reindent long macros.
9809
9810         * glyphs-x.c (x_redisplay_widget):
9811         * glyphs-x.c (x_button_instantiate):
9812         * glyphs-x.c (x_button_redisplay):
9813         * glyphs-x.c (x_progress_gauge_instantiate):
9814         * glyphs-x.c (x_edit_field_instantiate):
9815         * glyphs-x.c (x_combo_box_instantiate):
9816         * glyphs-x.c (x_tab_control_instantiate):
9817         * glyphs-x.c (x_label_instantiate):
9818         * gui-x.c:
9819         * gui-x.c (button_item_to_widget_value):
9820         * gui-x.c (gui_items_to_widget_values_1):
9821         * gui-x.c (gui_item_children_to_widget_values):
9822         * gui-x.c (gui_items_to_widget_values):
9823         * gui-x.h:
9824         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9825         add new flag to gui-parsing routines to indicate whether
9826         accelerator specs should be supported.
9827
9828         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9829
9830         * glyphs.h (struct Lisp_Image_Instance):
9831         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9832         add initial-focus flag.
9833
9834         * gui.c:
9835         * gui.c (syms_of_gui):
9836         * gui.c (vars_of_gui):
9837         clean up menu-no-selection-hook.
9838
9839         * gui.h:
9840         support delete-dialog-box-hook.
9841
9842         * lread.c (Fload_internal):
9843         * lread.c (locate_file_in_directory_mapper):
9844         (1).
9845
9846         * lrecord.h:
9847         * lrecord.h (struct toolbar_button):
9848         * lrecord.h (syms_of_toolbar):
9849         document how to create a new object.
9850
9851         * menubar-msw.c (mswindows_char_is_accelerator):
9852         may be called on frames w/o menus.
9853
9854         * menubar.c (vars_of_menubar):
9855         clean up :filter docs.
9856
9857         * nt.c (readdir):
9858         * ntproc.c:
9859         (1).
9860
9861         * process-nt.c:
9862         * process-nt.c (validate_signal_number):
9863         * process-nt.c (signal_cannot_launch):
9864         * process-nt.c (nt_create_process):
9865         * process-nt.c (nt_send_process):
9866         * process-nt.c (nt_kill_child_process):
9867         * process-nt.c (nt_open_network_stream):
9868         * process-nt.c (syms_of_process_nt):
9869         (2).
9870         delete quote-handling.  call new lisp code that does it better.
9871
9872         * process-unix.c (connect_to_file_descriptor):
9873         * process-unix.c (allocate_pty):
9874         * process-unix.c (unix_send_process):
9875         * process-unix.c (unix_kill_child_process):
9876         * process-unix.c (unix_open_network_stream):
9877         * process-unix.c (unix_open_multicast_group):
9878         (1). (2).
9879
9880         * process.c:
9881         * process.c (Fstart_process_internal):
9882         (2).  need to canonicalize process path even if absolute.
9883
9884         * select-msw.c (symbol_to_ms_cf):
9885         * select-msw.c (ms_cf_to_symbol):
9886         * select-msw.c (cf_is_autofreed):
9887         * select-msw.c (mswindows_destroy_selection):
9888         * select.c:
9889         * select.c (syms_of_select):
9890         * select.h:
9891         support dibv5, fix bugs. (from Mike Alexander)
9892
9893         * select.c (Fget_selection_internal):
9894         * select.c (select_convert_out):
9895
9896         * sysdep.c:
9897         * sysdep.c (xemacs_stat):
9898         renamed.
9899
9900         * sysdep.c (mkdir):
9901         * sysdep.c (rmdir):
9902         but keep original stat() here because we provide encapsulation
9903         around these funs.
9904
9905         * sysfile.h:
9906         * sysfile.h (fstat):
9907         remove stat garbage.
9908
9909         * syswindows.h:
9910         fix X/MSW conflict.
9911         don't include tchar.h.  it's inappropriate because it makes
9912         compile-time distinctions when we want runtime distinctions.
9913         (we provide our own tchar replacements)
9914
9915         * toolbar.c:
9916         use default object printer for toolbar-button.
9917
9918         * unexcw.c:
9919         make sure we don't encapsulate.
9920
9921         * window.c (vars_of_window):
9922         emphasize that temp-buffer-show-hook is obsolete.
9923
9924 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9925
9926         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9927         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9928
9929         * events.c (Fevent_timestamp_lessp):
9930         Not 64-bit clean.  Use EMACS_INT, not int.
9931
9932 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9933
9934         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9935         unsigned int and changed the last enum to
9936         lrecord_type_last_built_in_type.
9937         (lrecord_implementations_table): changed prototype to know how
9938         long the array is supposed to be.
9939         (lrecord_type_count): new unsigned int to keep track of the
9940         current number of lisp lrecord types.
9941         (DEFINE_EXTERNAL_LRECORD):
9942         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9943         dynamic-modules to declare new lisp types. They are the same
9944         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9945         int for each new type, and increment lrecord_type_count by 1.
9946
9947         * alloc.c (lrecord_implementations_table): Changed to reference
9948         lrecord_type_last_built_in_type for the size of the array.
9949         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9950
9951 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9952
9953         * glyphs.h (check_valid_item_list): Renamed from
9954         check_valid_item_list_1.
9955
9956 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9957
9958         * select.c (Qselect_coerce): New.
9959         * select.c (Vselection_coercion_alist): New.
9960         * select.c (syms_of_select): Declare.
9961         * select.c (get-selection-internal): Use it.
9962         Use the new select-coerce functionality.
9963
9964         * select.c (select_coerce): New.
9965         * select.h (select_coerce): Declare.
9966         New function to coerce one type of data into another.
9967
9968 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9969
9970         * callproc.c (Fcall_process_internal):
9971         (Fcall_process_internal):
9972         * process-unix.c (unix_create_process):
9973         Save and restore the value of errno, so that error messages are accurate.
9974
9975 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9976
9977         * elhash.c (print_hash_table):
9978         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9979         Prettify docstrings and indentation.
9980
9981 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9982
9983         * window.c (Fwindow_pixel_edges): Subtract frame border and
9984         gutter size.
9985
9986 2000-07-31  Andy Piper  <andy@xemacs.org>
9987
9988         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9989         will acknowledge the change.
9990
9991         * glyphs.h: declare tab_control_order_only_changed.
9992
9993         * glyphs-x.c (x_tab_control_redisplay): use
9994         tab_control_order_only_changed.
9995
9996         * glyphs-widget.c (tab_control_order_only_changed): new function.
9997
9998         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9999         tab_control_order_only_changed.
10000
10001         * gui.c (gui_item_equal_sans_selected): new function.
10002         (gui_item_equal): use it.
10003
10004         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10005         :properties in favor of :items..
10006
10007         * glyphs-widget.c (check_valid_item_list): rename from
10008         check_valid_item_list_1.
10009         (check_valid_item_list_1): renamed.
10010         (combo_box_validate): deprecate :properties in favor of :items.
10011         (widget_instantiate): ditto.
10012         (tab_control_update): ditto.
10013         (image_instantiator_combo_box): ditto.
10014         (image_instantiator_tree_view): ditto.
10015         (image_instantiator_tab_control): ditto.
10016         (layout_post_instantiate): remove dead code.
10017
10018         * print.c (debug_print_no_newline): only write to debugger if in
10019         WIN32_NATIVE.
10020
10021         * elhash.c (Fmake_hash_table): update doc string.
10022
10023         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10024         messages whilst in GC. This at least stops XEmacs crashing but has
10025         the potential for wierd behaviour.
10026
10027 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10028
10029         * config.h.in:
10030         Make existence of s&m files optional.
10031
10032         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10033         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10034         * s/gnu.h: Remove HAVE_GETLOADAVG.
10035         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10036         * s/sol2.h: Remove HAVE_GETLOADAVG.
10037         * lisp.h: Remove getloadavg() declaration.
10038         * fns.c:
10039         Include <sys/loadavg.h> if available.
10040         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10041         * config.h.in:  Group together getloadavg()-related macros.
10042         Use only configure-time tests to detect getloadavg().
10043
10044 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10045
10046         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10047
10048 2000-07-25  Andy Piper  <andy@xemacs.org>
10049
10050         * syswindows.h: add tchar.h for native builds.
10051
10052         * frame.c (syms_of_frame): remove set-glyph-image.
10053
10054         * general-slots.h: add Qset_glyph_image.
10055
10056         * glyphs-widget.c (layout_update): add domain arg to
10057         set-glyph-image.
10058         (syms_of_glyphs_widget): remove set-glyph-image.
10059
10060 2000-07-23  Ben Wing  <ben@xemacs.org>
10061
10062         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10063         Vpopup_frame_list.
10064
10065 2000-07-22  Andy Piper  <andy@xemacs.org>
10066
10067         * symsinit.h: add syms_of_win32().
10068
10069         * gui-msw.c (syms_of_gui_mswindows): remove
10070         Fmswindows_shell_execute.
10071         (Fmswindows_shell_execute): moved to win32.c.
10072
10073         * emacs.c (main_1): add syms_of_win32 ().
10074
10075         * win32.c (init_potentially_nonexistent_functions): rewrite in
10076         compiler-friendly terms.
10077         (Fmswindows_shell_execute): move here from gui-msw.c.
10078         (syms_of_win32): new.
10079
10080         * device-msw.c (Fmswindows_printer_list): clean up args to
10081         EnumPrinters.
10082         Don't include tchar under cygwin or mingw.
10083         (msprinter_default_printer): make cygwin-friendly.
10084
10085 2000-07-21  Andy Piper  <andy@xemacs.org>
10086
10087         * glyphs-widget.c (image_instantiator_tree_view): use tab
10088         control's update function.
10089         (layout_property): new function. Retrieve items.
10090
10091         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10092         function. Re-populate the tree view from the pending items.
10093
10094         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10095         is designated the parent if the domain is an image instance. This
10096         is needed so that dirtiness can be cascade up the hierarchy and
10097         thus for layout children to be redisplayed correctly.
10098         (allocate_image_instance): rename glyph -> parent.
10099
10100         * redisplay.h: change redisplay_output_layout signature.
10101
10102         * redisplay-msw.c (mswindows_output_display_block): use domain
10103         arg.
10104
10105         * redisplay-x.c (x_output_display_block): use domain arg.
10106
10107 2000-07-10  Andy Piper  <andy@xemacs.org>
10108
10109         * window.c (Fset_window_configuration): add comment.
10110
10111         * redisplay-output.c (compare_runes):
10112         (redisplay_output_subwindow): redisplay rather than update subwindow.
10113         (redisplay_output_layout): ditto.
10114
10115         * redisplay-msw.c (mswindows_frame_output_end):
10116         (mswindows_frame_output_end): make defer window pos optional.
10117
10118         * lisp.h: add Flast.
10119
10120         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10121         normalize method. Change update method to be for changed
10122         instantiators. Add redisplay method. Change signature of layout
10123         method.
10124         (struct Lisp_Image_Instance): add instantiator.
10125         (IMAGE_INSTANCE_INSTANTIATOR): new.
10126         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10127         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10128         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10129
10130         * glyphs.c:
10131         (find_instantiator_differences): new function.
10132         (Fset_instantiator_property): new convenience function.
10133         (check_image_instance_structure): strictly check for vector
10134         instantiators.
10135         (normalize_image_instantiator): make non-static.
10136         (instantiate_image_instantiator): pass on dest_mask and use new
10137         signatures for image_instance_layout and friends.
10138         (mark_image_instance): mark the instantiator. Mark the subwindow
10139         face not the widget face.
10140         (image_instance_equal): add instantiator.
10141         (image_instance_hash): ditto.
10142         (allocate_image_instance): ditto.
10143         (Fset_image_instance_property): removed.
10144         (Fimage_instance_file_name): ditto.
10145         (Fcolorize_image_instance): ditto.
10146         (image_instance_layout): add offsets to be set.
10147         (update_image_instance): new function. update an image instance
10148         from its changed instantiator.
10149         (inherit_normalize): add dest_mask.
10150         (xbm_normalize): ditto.
10151         (xface_normalize): ditto.
10152         (xpm_normalize): ditto.
10153         (text_update): set_property -> update.
10154         (image_instantiate): use the glyph identity as a hash key, not the
10155         instantiator.
10156         (glyph_width): use new image_instance_layout signature.
10157         (glyph_ascent): ditto.
10158         (glyph_descent): ditto.
10159         (glyph_height): ditto.
10160         (glyph_query_geometry): ressurrect.
10161         (glyph_layout): ditto.
10162         (redisplay_subwindow): update -> redisplay.
10163         (syms_of_glyphs): add Fset_instantiator_property.
10164         (image_instantiator_format_create): set_property -> update.
10165
10166         * glyphs-x.c:
10167         (autodetect_normalize): add dest_maks to signature.
10168         (x_redisplay_subwindow): update -> redisplay.
10169         (x_redisplay_widget): ditto.
10170         (x_button_redisplay): ditto.
10171         (x_progress_gauge_redisplay): ditto.
10172         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10173         stacking order.
10174         (console_type_create_glyphs_x): update -> redisplay.
10175         (image_instantiator_format_create_glyphs_x): ditto.
10176
10177         * glyphs-widget.c:
10178         (check_valid_instantiator): disallow glyphs in the instantiator,
10179         they must now be vectors.
10180         (check_valid_instantiator_list): ditto.
10181         (glyph_instantiator_to_glyph): use internal symbol rather than
10182         intern.
10183         (widget_update): renamed from widget_set_property. Call cascaded
10184         update methods.
10185         (redisplay_widget): renamed from update_widget.
10186         (widget_layout): image_instance_layout now takes position as well
10187         as size.
10188         (widget_normalize): ditto.
10189         (widget_instantiate): ditto.
10190         (tab_control_query_geometry) ditto.:
10191         (tab_control_update): renamed from tab_control_set_property.
10192         (progress_gauge_update): set_property -> update.
10193         (layout_normalize): rewrite so that child instantiators are
10194         normalized also.
10195         (layout_update): new function. Create glyphs from the normalized
10196         children and cope with any other layout keywords. We do not
10197         instantiate children here that will be take care of by
10198         redisplay_output_layout.
10199         (layout_instantiate): call layout_update and not much else.
10200         (layout_post_instantiate): not sure whether this is needed
10201         anymore.
10202         (layout_query_geometry): query glyph geometry rather than
10203         image_instance geometry.
10204         (layout_layout): set offsets from pass in parameters. Use glyph
10205         geometry and layout functions rather than image instance ones.
10206         (native_layout_layout): ditto.
10207         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10208         (image_instantiator_widget): set_property -> update.
10209         (image_instantiator_buttons): ditto.
10210         (image_instantiator_progress_guage): ditto.
10211         (image_instantiator_tab_control): ditto.
10212         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10213         (image_instantiator_layout): add update method.
10214
10215         * glyphs-msw.c (bmp_normalize):
10216         (mswindows_resource_normalize): add dest_mask so that it can be
10217         proprogated by layout_normalize.
10218         (begin_defer_window_pos): make optional because it may not be the
10219         right thing to do and it introduces differences with X.
10220         (mswindows_unmap_subwindow): ditto.
10221         (mswindows_map_subwindow): ditto.
10222         (mswindows_redisplay_subwindow): renamed from
10223         mswindows_update_subwindow.
10224         (mswindows_redisplay_widget): ditto.
10225         (mswindows_button_redisplay): renamed from
10226         mswindows_button_update. Update is now what the instantiation
10227         function does for a changed instantiator.
10228         (mswindows_progress_gauge_instantiate): set the progress value
10229         here if appropriate.
10230         (mswindows_tab_control_redisplay): cope with re-ordering of the
10231         members of the tab widget by simply selecting the new top
10232         widget. This makes things appear ok if you click on a tab.
10233         (mswindows_combo_box_instantiate): image_instance_layout now takes
10234         position as well as size.
10235         (mswindows_progress_gauge_redisplay): renamed from
10236         mswindows_progress_gauge_update.
10237         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10238         (image_instantiator_format_create_glyphs_mswindows): ditto.
10239
10240         * glyphs-eimage.c (jpeg_normalize):
10241         (gif_normalize):
10242         (png_normalize):
10243         (tiff_normalize): add dest_mask so that it can be proprogated by
10244         layout_normalize.
10245
10246         * elhash.c:
10247         (print_hash_table):
10248         (hash_table_weakness_validate):
10249         (decode_hash_table_weakness):
10250         (Fhash_table_weakness):
10251         (Fhash_table_type):
10252         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10253
10254         * console.h (struct console_methods): move update_* to
10255         redisplay_*.
10256
10257 2000-07-20  Ben Wing  <ben@xemacs.org>
10258
10259         * *.[ch] (XSETOBJ): remove unused middle argument.
10260         lisp-disunion.h: correct wrap_object() to one argument.
10261
10262 2000-07-15  Ben Wing  <ben@xemacs.org>
10263
10264         * s/cygwin32.h:
10265         * s/cygwin32.h (CYGWIN_CONV_PATH):
10266         Add missing logb prototype for v1.1.
10267         Use post-b20 names and alias to pre-b20 names when pre-b20.
10268
10269         * s/windowsnt.h: [5].
10270
10271 2000-07-15  Ben Wing  <ben@xemacs.org>
10272
10273         * Makefile.in.in (x_objs):
10274         * Makefile.in.in (sheap_objs):
10275         * Makefile.in.in (objs):
10276         added win32.o, cosmetic cleanups.
10277
10278         * alloc.c (Fmake_byte_code):
10279         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10280         etc. macros which declare their own args now.
10281
10282         * alloc.c (syms_of_alloc):
10283         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10284
10285         * buffer.c:
10286         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10287
10288         * buffer.c (Fget_file_buffer):
10289         Fixed GCPRO problem.
10290
10291         * buffer.c (get_truename_buffer):
10292         Fixed comment about GC checking.
10293
10294         * buffer.c (syms_of_buffer):
10295         Undeclared those dedicated frame funs.
10296         [2].
10297
10298         * buffer.h:
10299         Define convenience macros for internal/external conversions.
10300         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10301         and Qenvironment_variable_encoding for cleaner code.
10302
10303         * bufslots.h:
10304         Remove dedicated-frame; in lisp.
10305
10306         * bytecode.c (funcall_compiled_function):
10307         [1].
10308
10309         * bytecode.c (syms_of_bytecode):
10310         [2].
10311
10312         * console-msw.c:
10313         * console-msw.c (mswindows_show_console): Rewrote.
10314
10315         * console-msw.c (Fmswindows_debugging_output): New.
10316         Sends to OutputDebugString (special MSWin debugger interface).
10317
10318         * console-msw.c (Fmswindows_message_box):
10319         Fixed stupid bugs so it works when called from kill-emacs.
10320
10321         * console-msw.c (syms_of_console_mswindows):
10322         Declare Fmswindows_debugging_output.
10323
10324         * console-msw.h:
10325         New MSWin prototypes.
10326
10327         * console-msw.h (struct mswindows_frame):
10328         New entry last-click-mods for improved button-modifier support.
10329
10330         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10331         New struct entry `popup' with corresponding accessor.
10332
10333         * console-x.c:
10334         * console-x.c (split_up_display_spec):
10335         * console-x.c (get_display_arg_connection):
10336         * console-x.c (x_semi_canonicalize_console_connection):
10337         * console-x.c (x_canonicalize_device_connection):
10338         [[[6]]]: Change char to more specific type.
10339         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10340
10341         * console-x.c (x_semi_canonicalize_console_connection):
10342         * console-x.c (x_canonicalize_device_connection):
10343         [[[9]]]: Fix up error signalling to use new structured error system.
10344
10345         * console-x.h:
10346         [[[4]]]: Define codesys aliases:
10347         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10348         Qx_color_name_encoding, Qx_display_name_encoding.
10349
10350         * console.h (struct console_methods):
10351         New method make_dialog_box_internal supersedes older
10352         popup_dialog_box method.
10353
10354         * data.c:
10355         Define many new errors, part of new structured errors.
10356
10357         * data.c (init_errors_once_early):
10358         * data.c (syms_of_data):
10359         [2].
10360
10361         * device-msw.c (mswindows_init_device):
10362         [[[5]]]: Cleanup to support NT 3.51.
10363
10364         * device-msw.c (decode_devmode): Cleanup.
10365
10366         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10367         * device-msw.c (mswindows_handle_print_dialog_box):
10368         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10369         * device-msw.c (syms_of_device_mswindows):
10370         Delete the dialog box primitives recently introduced by Kirill and
10371         instead interface to general dialog box interface.
10372
10373         * device-x.c:
10374         * device-x.c (compute_x_app_name):
10375         * device-x.c (x_init_device):
10376         * device-x.c (Fx_valid_keysym_name_p):
10377         * device-x.c (Fx_set_font_path):
10378         [6].
10379         [7].
10380
10381         * device.h (wrap_device): New.
10382         First of its kind; meant to replace XSETDEVICE.
10383
10384         * dialog-msw.c: Many file-dialog symbols.
10385
10386         * dialog-msw.c (mswindows_register_popup_frame): New.
10387         * dialog-msw.c (mswindows_is_dialog_msg): New.
10388         For supporting kbd traversal in dialog boxes.
10389
10390         * dialog-msw.c (dialog_proc):
10391         Support hitting ESC in dialogs.
10392
10393         * dialog-msw.c (struct):
10394         Common dialog box errors.
10395
10396         * dialog-msw.c (handle_file_dialog_box): New.
10397         Add file dialog code.
10398
10399         * dialog-msw.c (handle_question_dialog_box):
10400         Redo existing code to support new question dialog syntax.
10401
10402         * dialog-msw.c (console_type_create_dialog_mswindows):
10403         We support new dialog console method.
10404
10405         * dialog-msw.c (syms_of_dialog_mswindows):
10406         * dialog-msw.c (vars_of_dialog_mswindows):
10407         New file dialog symbols, vars.
10408
10409         * dialog-x.c:
10410         * dialog-x.c (maybe_run_dbox_text_callback):
10411         * dialog-x.c (dbox_descriptor_to_widget_value):
10412         * dialog-x.c (x_make_dialog_box_internal):
10413         * dialog-x.c (console_type_create_dialog_x):
10414         Mule-ize entire file.
10415         Redo to support question dialog syntax.
10416         [6].
10417
10418         * dialog.c:
10419         * dialog.c (Fmake_dialog_box_internal):
10420         * dialog.c (syms_of_dialog):
10421         Kill old popup-dialog-box, replace with new primitive.
10422         Just call device method or signal error.
10423
10424         * eldap.c (Fldap_open):
10425         * eldap.c (Fldap_search_basic):
10426         * eldap.c (Fldap_add):
10427         * eldap.c (Fldap_modify):
10428         [1].
10429         [7].
10430
10431         * emacs.c:
10432         * emacs.c (make_arg_list_1):
10433         * emacs.c (make_arg_list):
10434         Mule-ize call to dll_init().
10435         [6].
10436         [8].
10437
10438         * emacs.c (make_argc_argv):
10439         * emacs.c (free_argc_argv):
10440         * emacs.c (init_cmdargs):
10441         * emacs.c (main_1):
10442         * emacs.c (Fkill_emacs):
10443         * emacs.c (Fdump_emacs):
10444         Update comments about what can be used in syms_* etc.
10445         Call init_win32() when necessary.
10446         Fix up MS Win dialog box in kill-buffer to actually work right.
10447         [7].
10448
10449         * eval.c:
10450         * eval.c (For):
10451         * eval.c (Fand):
10452         * eval.c (Fprogn):
10453         * eval.c (Fprog1):
10454         * eval.c (Fprog2):
10455         * eval.c (FletX):
10456         * eval.c (Flet):
10457         * eval.c (condition_case_3):
10458         * eval.c (Feval):
10459         * eval.c (function_argcount):
10460         * eval.c (funcall_lambda):
10461         [1].
10462
10463         * eval.c (type_error): New.
10464         * eval.c (maybe_type_error): New.
10465         * eval.c (continuable_type_error): New.
10466         * eval.c (maybe_continuable_type_error): New.
10467         * eval.c (type_error_with_frob): New.
10468         * eval.c (maybe_type_error_with_frob): New.
10469         * eval.c (continuable_type_error_with_frob): New.
10470         * eval.c (maybe_continuable_type_error_with_frob): New.
10471         New functions for use with structured errors.
10472
10473         * event-Xt.c:
10474         * event-Xt.c (x_event_to_emacs_event):
10475         Buttons are now modifiers too.
10476
10477         * event-Xt.c (emacs_Xt_current_event_timestamp):
10478         Implement new event method.
10479         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10480
10481         * event-msw.c:
10482         * event-msw.c (ntpipe_shove_writer): [5].
10483         * event-msw.c (mswindows_enqueue_mouse_button_event):
10484         * event-msw.c (mswindows_drain_windows_queue):
10485         * event-msw.c (mswindows_wnd_proc): [7].
10486         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10487         * event-msw.c (mswindows_modifier_state):
10488         Throughout: support new button modifiers.
10489
10490         * event-msw.c (emacs_mswindows_current_event_timestamp):
10491         Implement new event method.
10492         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10493
10494         * event-stream.c:
10495         * event-stream.c (event_stream_current_event_timestamp): New.
10496         * event-stream.c (maybe_kbd_translate): New functionality.
10497         * event-stream.c (vars_of_event_stream):
10498         Document new kbd-translate-table functionality.
10499
10500         * event-stream.c (Fcurrent_event_timestamp): New.
10501         New primitive for use in fabricated events.
10502         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10503
10504         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10505
10506         * events.c:
10507         * events.c (Fmake_event):
10508         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10509         [1].
10510         [9].
10511
10512         * events.c (format_event_object): fix gcc warnings.
10513
10514         * events.c (Fevent_timestamp): Document new primitives.
10515
10516         * events.c (TIMESTAMP_HALFSPACE): New.
10517
10518         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10519         comparing timestamps correctly (half-space algorithm).
10520
10521         * events.c (Fevent_modifier_bits): Doc fix.
10522
10523         * events.c (Fevent_modifiers): Major doc addition.
10524         * events.c (event_x_y_pixel_internal): Typo fix.
10525         * events.c (syms_of_events): Declare new primitives.
10526
10527         * events.h:
10528         Update long comment for button modifiers, timestamps.
10529
10530         * events.h (struct event_stream):
10531         New current_event_timestamp method.
10532
10533         * extents.c:
10534         * extents.c (extent_in_region_p):
10535         * extents.c (decode_extent):
10536         * extents.c (Fset_extent_parent):
10537         * extents.c (decode_map_extents_flags):
10538         Fix gcc warnings.
10539         [9].
10540
10541         * extents.c (struct extent_at_arg):
10542         * extents.c (decode_extent_at_flag):
10543         * extents.c (extent_at_mapper):
10544         * extents.c (extent_at_bytind):
10545         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10546         * extents.c (Fextents_at): New primitive. [9].
10547         * extents.c (symbol_to_glyph_layout): [9].
10548         Support new primitive `extents-at'.
10549
10550
10551         * extents.c (get_text_property_bytind):
10552         extent_at_bytind has another arg.
10553         [9].
10554
10555         * extents.c (syms_of_extents): New primitive.
10556
10557         * file-coding.c (Fmake_coding_system): [1].
10558         * file-coding.c (subsidiary_coding_system): fix gcc warning
10559         * file-coding.c (syms_of_file_coding): [2].
10560
10561         * fileio.c (Fexpand_file_name):
10562         * fileio.c (Fsysnetunam):
10563         * fileio.c (Ffile_exists_p):
10564         * fileio.c (Ffile_executable_p):
10565         * fileio.c (Fverify_visited_file_modtime):
10566         Clean up GCPROing.
10567
10568         * fileio.c (syms_of_fileio): [2].
10569
10570         * filelock.c (lock_file_1):
10571         * filelock.c (current_lock_owner):
10572         * filelock.c (lock_if_free):
10573         * filelock.c (lock_file):
10574         * filelock.c (unlock_file):
10575         Clean up GCPROing.
10576
10577         * fns.c (concat): Fix gcc warning.
10578
10579         * fns.c (Fmember):
10580         * fns.c (Fold_member):
10581         * fns.c (Fmemq):
10582         * fns.c (Fold_memq):
10583         * fns.c (memq_no_quit):
10584         * fns.c (Fassoc):
10585         * fns.c (Fold_assoc):
10586         * fns.c (Fassq):
10587         * fns.c (Fold_assq):
10588         * fns.c (assq_no_quit):
10589         * fns.c (Frassoc):
10590         * fns.c (Fold_rassoc):
10591         * fns.c (Frassq):
10592         * fns.c (Fold_rassq):
10593         * fns.c (rassq_no_quit):
10594         * fns.c (Fdelete):
10595         * fns.c (Fold_delete):
10596         * fns.c (Fdelq):
10597         * fns.c (Fold_delq):
10598         * fns.c (delq_no_quit):
10599         * fns.c (Fremassoc):
10600         * fns.c (Fremassq):
10601         * fns.c (remassq_no_quit):
10602         * fns.c (Fremrassoc):
10603         * fns.c (Fremrassq):
10604         * fns.c (remrassq_no_quit):
10605         * fns.c (Freverse):
10606         * fns.c (mapcar1):
10607         [1].
10608
10609         * frame-msw.c (mswindows_init_frame_1):
10610         * frame-msw.c (mswindows_delete_frame):
10611         Register popups with dialog code so keyboard traversing works.
10612
10613         * frame-tty.c (tty_raise_frame_no_select): [1].
10614
10615         * frame-x.c:
10616         * frame-x.c (x_set_frame_text_value):
10617         * frame-x.c (x_set_frame_properties):
10618         * frame-x.c (x_create_widgets):
10619         [7].
10620
10621         * frame.c:
10622         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10623
10624         * frame.h (wrap_frame): New.
10625         Macro like wrap_device.
10626
10627         * general.c:
10628         * general.c (SYMBOL):
10629         * general.c (syms_of_general):
10630         Major reorg.  This is now just a wrapper and symbols themselves
10631         are listed in general-slots.h.
10632
10633         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10634         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10635
10636         * glyphs-msw.c (mswindows_native_layout_instantiate):
10637         Add DS_CONTROL so keyboard traversal will work.
10638
10639         * glyphs-widget.c:
10640         * glyphs-widget.c (syms_of_glyphs_widget):
10641         Move some symbols to general-slots.h.
10642
10643         * glyphs-x.c:
10644         * glyphs-x.c (xbm_instantiate_1):
10645         * glyphs-x.c (x_xbm_instantiate):
10646         * glyphs-x.c (x_xface_instantiate):
10647         * glyphs-x.c (autodetect_instantiate):
10648         * glyphs-x.c (cursor_font_instantiate):
10649         * glyphs-x.c (x_update_widget):
10650         * glyphs-x.c (x_widget_instantiate):
10651         * glyphs.c (bitmap_to_lisp_data):
10652         * glyphs.c (pixmap_to_lisp_data):
10653         [7].
10654
10655         * glyphs.c (syms_of_glyphs):
10656         [2].
10657
10658         * gui-x.c:
10659         * gui-x.c (print_widget_value):
10660         * gui-x.c (menu_separator_style_and_to_external):
10661         * gui-x.c (add_accel_and_to_external):
10662         * gui-x.c (button_item_to_widget_value):
10663         * gui-x.c (gui_items_to_widget_values_1):
10664         * gui-x.c (gui_items_to_widget_values):
10665         * gui-x.c (syms_of_gui_x):
10666         * gui-x.c (vars_of_gui_x):
10667         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10668         [9].
10669
10670         * gui-x.h:
10671         Muleize, prototype changes matching gui-x.c.
10672
10673         * gui.c:
10674         * gui.c (separator_string_p):
10675         * gui.c (gui_item_add_keyval_pair):
10676         * gui.c (make_gui_item_from_keywords_internal):
10677         * gui.c (signal_too_long_error):
10678         * gui.c (parse_gui_item_tree_item):
10679         * gui.c (syms_of_gui):
10680         * gui.c (vars_of_gui):
10681         * gui.h:
10682         menu-no-selection-hook moved here (used by MSWin).
10683         Move some symbols to general-slots.h.
10684         [6].
10685         [9].
10686
10687         * insdel.c (get_buffer_pos_char):
10688         * insdel.c (get_buffer_range_char):
10689         Add GC comments.
10690
10691         * keymap.c (keymap_lookup_directly):
10692         * keymap.c (keymap_store):
10693         * keymap.c (ensure_meta_prefix_char_keymapp):
10694         * keymap.c (describe_map):
10695         * keymap.h:
10696         Support new button modifiers.
10697
10698         * lisp-disunion.h (wrap_object):
10699         * lisp-disunion.h (XSETOBJ):
10700         Rename make_obj to wrap_object.
10701
10702         * lisp-union.h:
10703         * lisp-union.h (make_int):
10704         * lisp-union.h (make_char):
10705         Support wrap_object.
10706
10707         * lisp.h:
10708         * lisp.h (LIST_LOOP):
10709         * lisp.h (EXTERNAL_LIST_LOOP):
10710         * lisp.h (LIST_LOOP_2):
10711         * lisp.h (EXTERNAL_LIST_LOOP_1):
10712         * lisp.h (EXTERNAL_LIST_LOOP_2):
10713         * lisp.h (EXTERNAL_LIST_LOOP_3):
10714         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10715         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10716         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10717         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10718         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10719         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10720         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10721         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10722         * lisp.h (struct Lisp_Symbol):
10723         * lisp.h (maybe_continuable_error_with_frob):
10724         Fix up section comments.
10725         Add new types for char to indicate usage.
10726         Delete symbols auto-generated from general-slots.h.
10727         Add prototypes for structured error functions.
10728         Add long comments describing looping macros and change interface
10729         so that lvalues are automatically declared.
10730         Add NO_DECLARE macro in case callers want to declare lvalues
10731         themselves.
10732
10733         * lread.c (read_syntax_error):
10734         * lread.c (continuable_read_syntax_error):
10735         * lread.c (read_structure):
10736         * lread.c (sequence_reader):
10737         * lread.c (read_list_conser):
10738         * lread.c (read_compiled_function):
10739         Rename syntax_error and continuable_syntax_error to avoid clash
10740         with same-named structured error functions.
10741
10742         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10743         * menubar-msw.c (populate_menu_add_item):
10744         * menubar-msw.c (populate_or_checksum_helper):
10745         [5].
10746         [9].
10747
10748         * menubar-x.c:
10749         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10750         Mule-ize whole file.
10751
10752         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10753
10754         * mule-charset.c (Fmake_charset):
10755         * mule-wnnfns.c (Fwnn_set_param):
10756         [1].
10757
10758         * ntproc.c (create_child):
10759         * ntproc.c (Fwin32_set_current_locale):
10760         Add comments portending doom.
10761
10762         * objects-msw.c:
10763         * objects-msw.c (old_font_enum_callback_2):
10764         * objects-msw.c (font_enum_callback_1):
10765         * objects-msw.c (mswindows_enumerate_fonts):
10766         [5].
10767
10768         * objects-x.c:
10769         * objects-x.c (allocate_nearest_color):
10770         * objects-x.c (x_parse_nearest_color):
10771         * objects-x.c (x_initialize_color_instance):
10772         * objects-x.c (x_print_color_instance):
10773         * objects-x.c (x_finalize_color_instance):
10774         * objects-x.c (x_valid_color_name_p):
10775         * objects-x.c (x_initialize_font_instance):
10776         * objects-x.c (x_print_font_instance):
10777         * objects-x.c (valid_x_font_name_p):
10778         * objects-x.c (truename_via_FONT_prop):
10779         * objects-x.c (truename_via_random_props):
10780         * objects-x.c (truename_via_XListFonts):
10781         * objects-x.c (x_font_truename):
10782         * objects-x.c (x_font_instance_truename):
10783         * objects-x.c (x_font_instance_properties):
10784         * objects-x.c (x_list_fonts):
10785         * objects-x.c (x_find_charset_font):
10786         Mule-ize entire file.
10787         [7].
10788
10789         * objects-x.h:
10790         Mule-verify.
10791
10792         * print.c:
10793         * print.c (std_handle_out_external):
10794         * print.c (debug_print_no_newline):
10795         * print.c (syms_of_print):
10796         Output to all debugger kinds in debug-print.
10797         Fix console-output code under MSWin to actually work.
10798
10799         * process-nt.c (send_signal):
10800         * process-nt.c (nt_create_process):
10801         Use newer Unicode macros.
10802
10803         * process-unix.c (unix_create_process):
10804         * process-unix.c (unix_canonicalize_host_name):
10805         * process-unix.c (unix_open_network_stream):
10806         [7].
10807
10808         * scrollbar-x.c:
10809         Mule-verify.
10810
10811         * search.c (syms_of_search):
10812         [2].
10813
10814         * select-msw.c (mswindows_destroy_selection):
10815         Use LIST_LOOP_2.
10816
10817         * select-x.c (symbol_to_x_atom):
10818         [7].
10819
10820         * select.c (syms_of_select):
10821         [2].
10822
10823         * sound.c (Fplay_sound_file):
10824         [7].
10825
10826         * specifier.c:
10827         * specifier.c (decode_specifier_type):
10828         * specifier.c (Fvalid_specifier_locale_type_p):
10829         * specifier.c (check_valid_locale_or_locale_type):
10830         * specifier.c (decode_locale):
10831         * specifier.c (decode_locale_type):
10832         * specifier.c (decode_locale_list):
10833         * specifier.c (check_valid_domain):
10834         * specifier.c (decode_specifier_tag_set):
10835         * specifier.c (Fcanonicalize_tag_set):
10836         * specifier.c (Fdefine_specifier_tag):
10837         * specifier.c (Fspecifier_tag_predicate):
10838         * specifier.c (check_valid_inst_list):
10839         * specifier.c (check_valid_spec_list):
10840         * specifier.c (decode_how_to_add_specification):
10841         * specifier.c (check_modifiable_specifier):
10842         * specifier.c (specifier_add_spec):
10843         * specifier.c (boolean_validate):
10844         * specifier.c (display_table_validate):
10845         [9].
10846
10847         * specifier.c (syms_of_specifier):
10848         Move some symbols to general-slots.h.
10849         [2].
10850
10851         * symbols.c:
10852         * symbols.c (Fmapatoms):
10853         * symbols.c (Fapropos_internal):
10854         Add GCPROs.
10855
10856         * symbols.c (set_default_buffer_slot_variable):
10857         * symbols.c (set_default_console_slot_variable):
10858         [1].
10859
10860         * symbols.c (defsymbol_massage_name_1):
10861         * symbols.c (defkeyword_massage_name):
10862         * symbols.c (deferror_1):
10863         * symbols.c (deferror):
10864         * symbols.c (deferror_massage_name_and_message):
10865         * symeval.h:
10866         * symeval.h (DEFSYMBOL):
10867         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10868
10869         * symbols.c (syms_of_symbols):
10870         [2].
10871
10872         * symsinit.h:
10873         * symsinit.h (init_win32): New.
10874         Also new is syms_of_dialog_mswindows.
10875
10876         * syswindows.h:
10877         Add new Unicode macros, missing Cygwin wide-char functions,
10878         convenience conversion macros for Qmswindows_tstr, macros for
10879         encapsulating required MSWin <-> Cygwin filename conversions,
10880         prototype for dynamically-extracted (not in NT 3.51) functions.
10881
10882         * toolbar-x.c:
10883         Mule-verify.
10884
10885         * tooltalk.c (Fadd_tooltalk_message_arg):
10886         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10887         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10888         [7].
10889
10890         * tooltalk.c (syms_of_tooltalk):
10891         [2].
10892
10893         * unexnt.c:
10894         * unexnt.c (unexec):
10895         Fix up headers, declaration of unexec() to be more standard.
10896
10897 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10898
10899         * offix.h: Revert change to guard macros - they're used in offix.c!
10900
10901 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10902
10903         * lisp.h: Defsubred Fdelete.
10904
10905         * console-msw.h:  (msprinter_default_printer): Added.
10906
10907         * console-msw.c (msprinter_canonicalize_console_connection):
10908         (msprinter_canonicalize_device_connection): Added.
10909
10910         * device-msw.c (msprinter_default_printer):
10911         (Fmswingows_get_default_printer):
10912         (signal_enum_priner_error):
10913         (Fmswingows_printer_list): Added.
10914
10915 2000-07-19  Martin Buchholz <martin@xemacs.org>
10916
10917         * XEmacs 21.2.35 is released.
10918
10919 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10920
10921         * select-x.c (x_handle_selection_request):
10922         Text selected in xemacs and pasted into xterm failed to appear.
10923         Spelling fixes and cosmetic changes.
10924
10925 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10926
10927         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10928         XEmacs frame (fix for doubling chars in dialog boxes).
10929
10930 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10931
10932         * select.c (select_convert_in, select_convert_out):
10933         Don't call intern() every time.
10934
10935         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10936         * select.c (vars_of_select): Initialise them.
10937
10938 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10939
10940         * select.c (selection-coercible-types): New.
10941
10942         * select.c (own-selection-internal):
10943         * select.c (get-selection-internal):
10944         MULE bug fix - these should default to COMPOUND_TEXT and not
10945         STRING for MULE. I think.
10946
10947         * select.c (select_convert_out): Use selection-coercible-types
10948         to find types that we can attempt to perform coercions on.
10949
10950 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10951
10952         * mule-wnnfns.c:
10953         * mule-canna.c:
10954         Add coding: cookie to identify encoding.
10955
10956         * mule-canna.c (CANNA_mode_keys): make static.
10957         Use proper prototypes, even for functions of no arguments.
10958         Remove external prototype for Fding().
10959
10960         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10961
10962         * select.c (syms_of_select): Add missing DEFSUBR.
10963
10964 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10965
10966         * select.c (get_selection_internal, own_selection_internal):
10967         Make the type default to STRING, rather than placing a nil type
10968         into Vselection_alist.
10969
10970 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10971
10972         * gpmevent.c (tty_selection_exists_p):
10973         * gpmevent.c (tty_own_selection):
10974         Updated parameter lists.
10975
10976 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10977
10978         * select.h (selection-alist): Removed declaration.
10979
10980         * select.h (get_local_selection):
10981         * select.c (get_local_selection):
10982         Made static.
10983
10984         * select.h (convert_selection): Removed declaration.
10985         * select.c (convert_selection): Removed.
10986         This function belongs in Lisp.
10987
10988         * select.h (select_convert_in): Declare.
10989         * select.h (select_convert_out): Declare.
10990         * select.c (select_convert_in): New.
10991         * select.c (select_convert_out): New.
10992         New conversion functions for other files to call.
10993
10994         * select.h (select_notify_buffer_kill): Declare.
10995         * select.c (select_notify_buffer_kill): New.
10996         New functions that get called from kill-buffer.
10997
10998         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10999         X-specific lisp code.
11000
11001         * select.h: Declare some of the lisp-visible functions for
11002         external use.
11003
11004         * select.c (clean_local_selection_data): Removed. This was
11005         a disgusting function, and previously should have been in
11006         select-x.c in any case. The functionality is now provided
11007         in select-convert-from-integer (select.el).
11008
11009         * select.c (available-selection-types): Fixed stupidity where
11010         INTEGER and ATOM got added twice. Also add STRING when we see an
11011         extent.
11012
11013         * select.c (get-selection-internal): Removed symbol stripping. No
11014         longer causes conversion when data comes from the internal cache.
11015
11016         * select.c (syms_of_select): Added new functions.
11017
11018         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11019         error checking - previously this called abort!
11020
11021         * select-x.c (x_own_selection): Changed comment.
11022
11023         * select-x.c (x_handle_selection_request): Use select_convert_out.
11024         Don't mess with selection-alist; it's an internal variable of select.c.
11025
11026         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11027
11028         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11029         rather than messing with selection-alist.
11030
11031         * select-msw.c (mswindows_get_foreign_selection):
11032         Use TO_INTERNAL_FORMAT rather than hacking.
11033
11034 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11035
11036         * process-unix.c (unix_open_multicast_group):
11037         (unix_open_multicast_group): Remove useless casts.
11038
11039 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11040
11041         * sound.c (Fplay_sound): Fix `unused variable' warning.
11042
11043         * emacs.c (main): Use correct type for _environ on SCO5.
11044
11045 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11046
11047         * console.h (own_selection_method):
11048         * console.h (selection_exists_p_method):
11049         * console.h (available_selection_types_method): New.
11050         * console.h (register_selection_data_type_method): New.
11051         * console.h (selection_data_type_name): New.
11052
11053         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11054         function & alist to track GlobalAlloc()'d handles that need
11055         releasing when the clipboard data gets replaced or emptied.
11056
11057         * event-msw.c (mswindows_wnd_proc): Call it.
11058
11059         * lisp.h, general.c (Qappend): New symbol representing a
11060         `how-to-add' mode.
11061
11062         * select.c (own-selection-internal):
11063         * select.c (selection-exists-p):
11064         * select.c (available-selection-types): New.
11065         * select.c (register-selection-data-type): New.
11066         * select.c (selection-data-type-name): New.  New functions to deal
11067         with device-specific selection data formats.
11068         * select.c (selection-converter-out-alist): Renamed.
11069         * select.c (selection-converter-in-alist): New.
11070         * select.c (selection-appender-alist): New.  Added new alists.
11071         * select.c (syms_of_select, vars_of_select): Added new symbols &
11072         variables.
11073         * select.c (get_local_selection): Split.
11074         * select.c: Removed spurious type checking - selections may now be
11075         of any type, not just strings.
11076         * select.c (own-selection-internal):
11077
11078         * select.h, select.c (convert_selection): New. Created
11079         convert_selection() function based on get_local_selection().
11080         * select.h, select.c (QCF_*): New symbols representing mswindows
11081         clipboard formats.
11082         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11083         symbols representing `how-to-add' modes.
11084
11085         * select-msw.c (x_sym_p): New.
11086         * select-msw.c (symbol_to_ms_cf): New.
11087         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11088         symbols & clipboard formats. Can also handle string names.
11089         * select-msw.c (mswindows_own_selection):
11090         * select-msw.c (mswindows_selection_exists_p):
11091         Added `data-type' parameter. Use it.
11092         * select-msw.c (mswindows_available_selection_types): New.
11093         * select-msw.c (mswindows_register_selection_data_type): New.
11094         * select-msw.c (mswindows_selection_data_type_name): New.
11095         * select-msw.c (mswindows_own_selection):
11096         * select-msw.c (mswindows_get_foreign_selection):
11097         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11098         * select-msw.c (console_create_select_mswindows): Added new methods.
11099         * select-msw.c (mswindows_destroy_selection): New.
11100         * select-msw.c (Vhandle_alist): New list.
11101         * select-msw.c (mswindows_own_selection):
11102
11103         * select-x.c (x_own_selection):
11104         * select-x.c (x_selection_exists_p):
11105         * select-x.c: Added some comments about maybe using new
11106         functionality.
11107         * select-x.c (x_own_selection):
11108
11109         * specifier.c: Remove definition of Qappend (now in general.c)
11110         * specifier.c (syms_of_specifier): Remove Qappend.
11111
11112 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11113
11114         * config.h.in: Add socklen_t.
11115
11116         * s/decosf4-0.h: No special compiler flags needed or desired.
11117         In particular, undefine _BSD for DEC OSF 4.0.
11118
11119 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11120
11121         * redisplay-msw.c (msprinter_frame_output_end): Added.
11122         (console_type_create_redisplay_mswindows): Referred the above.
11123
11124         * frame.c (setup_frame_without_minibuffer): Do not create a
11125         default minibuffer frame on a printer device.
11126
11127         * frame-msw.c (apply_dc_geometry): Added.
11128         (msprinter_start_page):
11129         (msprinter_init_frame_3):
11130         (msprinter_eject_page): Use it.
11131
11132         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11133         and removed residual duplex and orientation properties.
11134
11135 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11136
11137         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11138
11139         * unexalpha.c: Remove system prototypes from C sources!
11140
11141 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11142
11143         * eval.c: Remove references to M-x edit-options in DEFUNs for
11144         `defvar' and `defconst'.
11145
11146 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11147
11148         * config.h.in: Remove SMART_INCLUDE hackery.
11149
11150         PostgreSQL hacking:
11151         * config.h.in: Don't use SMART_INCLUDE.
11152
11153         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11154         * inline.c: Simply #include "postgresql.h"
11155         * postgresql.c:
11156         - Don't use SMART_INCLUDE
11157         - Use simply "const".
11158         - Use standard doc string conventions.
11159         - Use correct type for result of PQstatus.
11160
11161 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11162
11163         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11164
11165         C++ compilation changes.
11166         * config.h.in (EXTERN_C): Define.
11167         * config.h.in (not): This is also a C++ keyword.
11168         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11169         * cm.c: Use EXTERN_C.
11170         * redisplay-tty.c: Use EXTERN_C.
11171         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11172
11173 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11174
11175         * general.c: Remove duplicate definition for Qfunction.
11176
11177 2000-07-08  Ben Wing  <ben@xemacs.org>
11178
11179         * device-msw.c (msprinter_init_device):
11180         * device-msw.c (sync_printer_with_devmode):
11181         * device-msw.c (handle_devmode_changes):
11182         * device-msw.c (print_dialog_worker):
11183         * device-msw.c (Fmsprinter_apply_settings):
11184         * device-msw.c (hash_devmode):
11185         * device-msw.c (Fmsprinter_settings_despecialize):
11186         use Qmswindows_tstr, not Qctext.
11187
11188         * vm-limit.c (check_memory_limits):
11189         avoid infinite loop printing warning messages.
11190
11191 2000-07-05  Craig Lanning  <lanning@scra.org>
11192
11193         * Makefile.in.in: Add support for including the Windows resources
11194         when building with the cygwin and mingw targets.
11195
11196         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11197         not set or not correct.
11198         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11199         (init_initial_directory): Don't try to use $PWD on the
11200         WIN32_NATIVE target.
11201
11202         * s\cygwin32.h:
11203         [[Add -mwindows to eliminate console window.]] not required --ben
11204         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11205         (MAIL_USE_POP): removed; now handled by configure.
11206
11207         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11208         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11209         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11210         (MAIL_USE_POP): removed; now handled by configure.
11211         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11212         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11213         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11214         constant string.
11215         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11216         up from <winsock.h> via systime.h.
11217         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11218         (getpagesize): from Dan Holmsand, added.
11219         Added #endif which was left dangling by Ben's mega patch; added
11220         comment to help prevent this in the future.
11221
11222         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11223
11224 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11225
11226         * console-msw.h (struct mswindows_device): Removed unnecessary
11227         cached device geometry values.
11228         Added update_tick and an accessor macro.
11229         (Lisp_Devmode): Added lrecord declaration.
11230         (struct msprinter_device): Contain devmode as a Lisp object.
11231         Added mswindows_get_selected_frame_hwnd();
11232
11233         * console.h (struct console_methods): Indentation nitpicking.
11234
11235         * device-msw.c (mswindows_init_device): Do not initialize geometry
11236         cache. Initialize update tick.
11237         (mswindows_device_system_metrics): Ask the device for its geometry.
11238         (global_free_2_maybe):
11239         (devmode_to_hglobal):
11240         (handle_printer_changes):
11241         (ensure_not_printing):
11242         (print_dialog_worker):
11243         (Fmsprinter_print_setup_dialog):
11244         (Fmsprinter_print_dialog):
11245         (plist_get_margin):
11246         (plist_set_margin):
11247         (Fmsprinter_page_setup_dialog): Added functions.
11248         (sync_printer_with_devmode):
11249         (handle_devmode_changes):
11250         (Fmsprinter_get_settings):
11251         (Fmsprinter_select_settings):
11252         (Fmsprinter_apply_settings):
11253         (allocate_devmode):
11254         (Fmsprinter_settings_copy):
11255         (Fmsprinter_settings_despecialize):
11256         (print_devmode):
11257         (finalize_devmode):
11258         (equal_devmode):
11259         (hash_devmode): Added functions
11260         (syms_of_device_mswindows): Init devmode lrecord class.
11261
11262         * device.h: Added an exfun for find-device.
11263
11264         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11265         geometry; although, recreate the device compatible DC.
11266
11267         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11268         (msprinter_init_frame_3):
11269         (msprinter_frame_property):
11270         (msprinter_internal_frame_property_p):
11271         (msprinter_frame_properties):
11272         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11273         print job properties (will move to device settings).
11274
11275         * lisp.h: Added symbols.
11276
11277         * general.c (syms_of_general): Declared them.
11278
11279         * hash.c (string_hash): Added.
11280
11281         * lrecord.h (lrecord_type): Added devmode lrecord type.
11282
11283 2000-07-02  Mike Sperber <mike@xemacs.org>
11284
11285         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11286         FreeBSD 4.0.
11287
11288 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11289
11290         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11291         integer.
11292
11293 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11294
11295         * data.c (Fstring_to_number): Don't recognize floating point if
11296         base is not 10.
11297
11298 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11299
11300         * glyphs-widget.c (tab_control_query_geometry):
11301         (widget_query_geometry):
11302         (button_query_geometry):
11303         * glyphs.c (text_query_geometry):
11304         Enforce type correctness.
11305
11306 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11307
11308         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11309         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11310
11311 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11312
11313         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11314         conflicts with gcc's fixincluded version of FOO.h.
11315
11316         * glyphs.h (image_instance_geometry): Remove trailing `,'
11317
11318 2000-06-08  Mike Alexander  <mta@arbortext.com>
11319
11320         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11321         (shove_thread): Don't write the same output twice
11322         (make_ntpipe_output_stream): Increase priority of shove thread
11323         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11324         chance to run
11325         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11326         it.
11327
11328 2000-06-12  Ben Wing  <ben@xemacs.org>
11329
11330         * s\mingw32.h (sigset):
11331         * s\windowsnt.h (sigset):
11332         rename msw_ to mswindows_ for consistency with general convention.
11333
11334 2000-06-12  Ben Wing  <ben@xemacs.org>
11335
11336         * console-msw.c:
11337         * console-msw.c (mswindows_get_console_hwnd):
11338         * console-msw.c (mswindows_ensure_console_allocated):
11339         * console-msw.c (mswindows_hide_console):
11340         * console-msw.c (mswindows_show_console):
11341         * console-msw.c (mswindows_ensure_console_buffered):
11342         * console-msw.c (mswindows_output_console_string):
11343         * console-msw.c (mswindows_windows9x_p):
11344         * console-msw.h:
11345         * device-msw.c (mswindows_get_workspace_coords):
11346         * device-msw.c (mswindows_device_system_metrics):
11347         * dialog-msw.c (mswindows_popup_dialog_box):
11348         * event-msw.c (mswindows_wnd_proc):
11349         * frame-msw.c (mswindows_size_frame_internal):
11350         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11351         * menubar-msw.c (displayable_menu_item):
11352         * menubar-msw.c (mswindows_char_is_accelerator):
11353         * nt.c:
11354         * nt.c (mswindows_sigset):
11355         * nt.c (mswindows_sigrelse):
11356         * nt.c (mswindows_sigpause):
11357         * nt.c (mswindows_raise):
11358         * nt.c (timer_proc):
11359         * ntproc.c:
11360         * ntproc.c (find_child_console):
11361         * ntproc.c (sys_kill):
11362         * print.c:
11363         * print.c (std_handle_out_external):
11364         * process-nt.c (find_child_console):
11365         * process-nt.c (send_signal_the_95_way):
11366         * process-nt.c (ensure_console_window_exists):
11367         * process-nt.c (nt_create_process):
11368         * syssignal.h:
11369         rename msw_ to mswindows_ for consistency with general convention.
11370
11371         * emacs.c:
11372         * dumper.c:
11373         include nt.h, not syswindows.h.
11374
11375         * nt.c (mswindows_fstat):
11376         * nt.c (mswindows_stat):
11377         prefix mswindows_ instead of attempting to directly override the
11378         library functions.  fix declarations.
11379
11380         * nt.h:
11381         include syswindows.h.  move some sysdep.h stuff here.
11382
11383         * ntheap.h:
11384         include syswindows.h, not <windows.h>.
11385
11386         * ntplay.c:
11387         clean up headers.
11388
11389         * sysdep.c:
11390         clean up headers.
11391
11392         * sysdep.c (sys_fstat):
11393         * sysdep.c (sys_stat):
11394         call mswindows versions when appropriate.
11395
11396         * sysdep.h:
11397         move mswin decls to nt.h.
11398
11399         * syswindows.h:
11400         add long comment describing appropriate use of the various windows
11401         headers.
11402
11403 2000-06-11  Ben Wing  <ben@xemacs.org>
11404
11405         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11406
11407 2000-06-10  Ben Wing  <ben@xemacs.org>
11408
11409         * Makefile.in.in (release):
11410         Correction to make sure xemacs.exe always dumped when correct.
11411
11412         * alloca.c:
11413         * balloon_help.c:
11414         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11415
11416         * buffer.c (set_buffer_internal):
11417         [[[[2]]]]: Remove HAVE_FEP code.
11418
11419         * buffer.c (init_initial_directory):
11420         [3].
11421
11422         * bytecode.c:
11423         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11424         individual files.
11425
11426         * callproc.c:
11427         * callproc.c (call_process_cleanup):
11428         * callproc.c (Fold_call_process_internal):
11429         * callproc.c (child_setup):
11430         * callproc.c (getenv_internal):
11431         * callproc.c (init_callproc):
11432         * callproc.c (vars_of_callproc):
11433         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11434         __CYGWIN32__ -> CYGWIN.
11435         DOS_NT -> WIN32_NATIVE.
11436         Remove MSDOS support/references, converting to WIN32_NATIVE
11437           where correct.
11438         __MINGW32__ -> MINGW.
11439         Fix windows.h includes.
11440         Remove bogus HAVE_NTGUI.
11441
11442         * config.h.in:
11443         [2].
11444
11445         * console-msw.c:
11446         mswindows_message_outputted added for use in allowing startup
11447         errors on the console to be seen.
11448
11449         * console-msw.c (msw_ensure_console_allocated):
11450         * console-msw.c (msw_output_console_string):
11451         * console-msw.c (DHEADER):
11452         * console-msw.c (DOPAQUE_DATA):
11453         * console-msw.c (DEVENT):
11454         * console-msw.c (DCONS):
11455         * console-msw.c (DCONSCDR):
11456         * console-msw.c (DSTRING):
11457         * console-msw.c (DVECTOR):
11458         * console-msw.c (DSYMBOL):
11459         * console-msw.c (DSYMNAME):
11460         Fix warnings.
11461
11462         * console-stream.c (stream_init_console):
11463         Fix text/binary problems.
11464
11465         * device-msw.c:
11466         * device-msw.c (mswindows_finish_init_device):
11467         * device-msw.c (mswindows_delete_device):
11468         [1].
11469
11470         * device.c (handle_asynch_device_change):
11471         [3].
11472
11473         * dgif_lib.c:
11474         * dgif_lib.c (DGifOpenFileName):
11475         * dgif_lib.c (DGifOpenFileHandle):
11476         * dgif_lib.c (DGifGetLine):
11477         * dgif_lib.c (DGifGetPixel):
11478         Added config.h/lisp.h, fix up includes.
11479         [1].
11480
11481         * dired-msw.c:
11482         [4].
11483
11484         * dired.c:
11485         * dired.c (file_name_completion):
11486         * dired.c (Ffile_attributes):
11487         * dired.c (syms_of_dired):
11488         [1].
11489
11490         * dumper.c:
11491         * dumper.c (pdump_file_unmap):
11492         * dumper.c (pdump_load):
11493         [1].
11494
11495         * editfns.c:
11496         * editfns.c (Ftemp_directory):
11497         * editfns.c (user_login_name):
11498         * editfns.c (Fuser_real_login_name):
11499         * editfns.c (get_home_directory):
11500         [1].
11501
11502         * elhash.c (finish_marking_weak_hash_tables):
11503         [[[[5]]]]: Fix GCC warnings.
11504
11505         * emacs.c:
11506         * emacs.c (mswindows_handle_hardware_exceptions):
11507         * emacs.c (make_arg_list_1):
11508         * emacs.c (main_1):
11509         * emacs.c (Fkill_emacs):
11510         * emacs.c (Fdump_emacs):
11511         [1].
11512         Fix problems with nested crashes, add long comment.
11513
11514         * event-Xt.c (init_event_Xt_late):
11515         [1].
11516
11517         * event-msw.c:
11518         * event-msw.c (mswindows_dde_callback):
11519         * event-msw.c (mswindows_handle_sticky_modifiers):
11520         * event-msw.c (mswindows_wnd_proc):
11521         [1].
11522         [5].
11523
11524         * events.c (character_to_event):
11525         [1].
11526
11527         * fileio.c:
11528         * fileio.c (Ffile_name_directory):
11529         * fileio.c (Ffile_name_nondirectory):
11530         * fileio.c (directory_file_name):
11531         * fileio.c (Fexpand_file_name):
11532         * fileio.c (Fsubstitute_in_file_name):
11533         * fileio.c (Ffile_name_absolute_p):
11534         * fileio.c (check_executable):
11535         * fileio.c (Ffile_readable_p):
11536         * fileio.c (Ffile_accessible_directory_p):
11537         * fileio.c (Ffile_modes):
11538         * fileio.c (Funix_sync):
11539         * fileio.c (vars_of_fileio):
11540         [1]. [4].
11541
11542         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11543
11544         Expand getdefdir defn.
11545         Fix bogus rename() comment.
11546
11547         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11548         to use standard XEmacs include files, e.g. sysfile.h, rather
11549         than system-specific includes.
11550
11551         * fns.c:
11552         * fns.c (Fsubseq):
11553         [5]. [6].
11554
11555         * frame.c (vars_of_frame):
11556         [1].
11557
11558         * getloadavg.c:
11559         * getloadavg.c (getloadavg):
11560         [1]. [6].
11561         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11562         (We don't use it elsewhere in the code; just add a comment.)
11563
11564         * gif_io.c:
11565         [6].
11566         Add config.h.
11567
11568         * glyphs-msw.c:
11569         * glyphs-msw.c (mswindows_resource_instantiate):
11570         [1].
11571
11572         * glyphs-x.c (x_native_layout_instantiate):
11573         [5].
11574
11575         * gui-msw.c (Fmswindows_shell_execute):
11576         [1].
11577
11578         * insdel.c:
11579         [4].
11580
11581         * lisp.h:
11582         [4]. [5].
11583
11584         * lread.c (locate_file_in_directory_mapper):
11585         [1].
11586
11587         * lstream.c:
11588         [4].
11589
11590         * mem-limits.h:
11591         * mem-limits.h (get_lim_data):
11592         [1].
11593
11594         * menubar-msw.c:
11595         [4].
11596
11597         * ndir.h:
11598         [1].
11599
11600         * nt.c:
11601         * nt.c (getwd):
11602         * nt.c (closedir):
11603         * nt.c (rva_to_section):
11604         * nt.c (mswindows_executable_type):
11605         [1]. [6].
11606         Fix closedir() defn.
11607
11608         * nt.h:
11609         [[[[8]]]]: *_OK defs moved to sysfile.h.
11610
11611         * ntproc.c:
11612         [6]. [7].
11613
11614         * objects-x.c:
11615         [4].
11616
11617         * print.c:
11618         * print.c (std_handle_out_external):
11619         [1]. [4].
11620
11621         * process-nt.c:
11622         * process-nt.c (nt_create_process):
11623         [6].
11624         try to fix process quoting somewhat.
11625
11626         * process-unix.c (unix_create_process):
11627         [1].
11628
11629         * process.c:
11630         * process.c (vars_of_process):
11631         Add Vnull_device.
11632
11633         * process.h:
11634         [1].
11635
11636         * realpath.c:
11637         * realpath.c (xrealpath):
11638         [1].
11639
11640         * redisplay-tty.c (init_tty_for_redisplay):
11641         [3].
11642
11643         * redisplay.c:
11644         [4]. [6].
11645
11646         * scrollbar-msw.c:
11647         [4].
11648
11649         * sheap.c:
11650         * sheap.c (more_static_core):
11651         * sheap.c (report_sheap_usage):
11652         [5]. [6].
11653
11654         * signal.c:
11655         * signal.c (alarm_signal):
11656         [1]. [6].
11657
11658         * sound.c:
11659         [6].
11660
11661         * strftime.c:
11662         * strftime.c (zone_name):
11663         [1]. [5].
11664
11665         * symsinit.h (init_sunpro):
11666         [1].
11667
11668         * syscommctrl.h:
11669         commctrl.h not in Cygwin b20.1.
11670
11671         * sysdep.c:
11672         * sysdep.c (endif):
11673         * sysdep.c (sys_subshell):
11674         * sysdep.c (init_baud_rate):
11675         * sysdep.c (emacs_get_tty):
11676         * sysdep.c (emacs_set_tty):
11677         * sysdep.c (tty_init_sys_modes_on_device):
11678         * sysdep.c (init_system_name):
11679         * sysdep.c (sys_open):
11680         * sysdep.c (interruptible_open):
11681         * sysdep.c (sys_fopen):
11682         * sysdep.c (sys_mkdir):
11683         * sysdep.c (sys_rename):
11684         * sysdep.c (get_process_times_1):
11685         [1]. [6].
11686
11687         * sysdep.h:
11688         [1].
11689
11690         * sysdir.h:
11691         * sysdir.h (DIRENTRY_NONEMPTY):
11692         [1]. [6].
11693
11694         * sysdll.c (dll_init):
11695         * sysdll.h:
11696         [1].
11697
11698         * sysfile.h:
11699         [1]. [6]. [8].
11700         added text/binary defs.
11701
11702         * sysfloat.h:
11703         [1].
11704
11705         * sysproc.h:
11706         * sysproc.h (EDESTADDRREQ):
11707         * sysproc.h (poll_fds_for_input):
11708         [1]. [6].
11709
11710         * syspwd.h:
11711         [6].
11712
11713         * syssignal.h:
11714         [1].
11715
11716         * systime.h:
11717         [1]. [6].
11718
11719         * systty.h:
11720         [1].
11721
11722         * syswindows.h:
11723         [1].
11724         Always define WIN32_LEAN_AND_MEAN.
11725
11726         * unexcw.c (unexec):
11727         [5].
11728
11729         * unexec.c:
11730         * unexec.c (copy_text_and_data):
11731         * unexec.c (adjust_lnnoptrs):
11732         [1].
11733
11734         * unexnt.c:
11735         * unexnt.c (_start):
11736         [1].
11737
11738 2000-06-07  Ben Wing  <ben@xemacs.org>
11739
11740         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11741         was used only as a model.  We've long since extracted any useful
11742         logic or code out of this. (I just did an exhaustive search.)
11743
11744         * s\msdos.h: Removed.
11745
11746         * s\windows95.h: Removed.
11747
11748 2000-06-10  Ben Wing  <ben@xemacs.org>
11749
11750         * s\cygwin32.h:
11751         [1]. [5].
11752         Don't use extern with fun defs.
11753
11754         * s\mingw32.h:
11755         [1]. [7].
11756         Remove nt\inc include.
11757         Remove getdisk, getdefdir. (The former is unused, the latter
11758         expanded in fileio.h.)
11759
11760         * s\windowsnt.h:
11761         * s\windowsnt.h (WIN32_NATIVE):
11762         * s\windowsnt.h (HAVE_STRCASECMP):
11763         [1]. [7].
11764         Add long comment about preprocessor changes.
11765         Remove getdisk, getdefdir. (The former is unused, the latter
11766         expanded in fileio.h.)
11767
11768 2000-06-10  Ben Wing  <ben@xemacs.org>
11769
11770         * m\arm.h:
11771         * m\delta.h:
11772         * m\intel386.h:
11773         * m\sequent.h:
11774         * m\template.h:
11775         * m\windowsnt.h:
11776         [1].
11777         Remove bogus/unused NO_SOCK_SIGIO.
11778
11779 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11780
11781         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11782         not an Emchar.
11783
11784 2000-06-04  Mike Sperber <mike@xemacs.org>
11785
11786         * casetab.c (set_case_table): For `set-standard-case-table',
11787         actually deposit the new case tables where the rest of XEmacs can
11788         see them.
11789
11790 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11791
11792         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11793
11794 2000-06-05  Ben Wing  <ben@xemacs.org>
11795
11796         * callproc.c (child_setup): Don't do close_load_descs() under
11797         MS Windows.  Put in a comment explaining why.
11798
11799 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11800
11801         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11802         Toolkit shell" which breaks `kill-compilation' on Windows NT
11803         native, retaining STDERR handling improvements.
11804
11805 2000-06-01  Andreas Jaeger  <aj@suse.de>
11806
11807         * s/s390.h: Support for S390, based on a patch by Martin
11808         Schwidefsky <schwidefsky@de.ibm.com>.
11809
11810 2000-05-30  Andy Piper  <andy@xemacs.org>
11811
11812         * window.c (allocate_window):
11813         (make_dummy_parent):
11814         (Fset_window_configuration): use new hashtable type.
11815
11816         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11817         (struct image_instantiator_methods):
11818         (struct Lisp_Image_Instance): make instance geometry signed.
11819
11820         * glyphs.c (instantiate_image_instantiator):
11821         (image_instance_query_geometry):
11822         (image_instance_layout):
11823         (image_instance_layout):
11824         (query_string_geometry):
11825         (text_query_geometry):
11826         (image_instantiate):
11827         (image_instantiate):
11828         (cache_subwindow_instance_in_frame_maybe):
11829         (subwindow_query_geometry): make instance geometry signed.
11830
11831         * glyphs-widget.c (widget_query_geometry):
11832         (widget_layout):
11833         (button_query_geometry):
11834         (tree_view_query_geometry):
11835         (tab_control_query_geometry):
11836         (layout_query_geometry):
11837         (layout_layout):
11838         (native_layout_layout): make instance geometry signed.
11839
11840 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11841
11842         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11843         constant.
11844
11845         * general.c (syms_of_general): Add Qfull_assoc symbol.
11846
11847         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11848         correctly.
11849         (decode_weak_list_type): Decode full-assoc type.
11850         (encode_weak_list_type): Encode full-assoc type.
11851         (Fmake_weak_list): Update doc string.
11852
11853 2000-05-30  Andy Piper  <andy@xemacs.org>
11854
11855         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11856
11857         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11858         (decode_hash_table_weakness): ditto.
11859         (Fhash_table_weakness): ditto.
11860         (Fhash_table_type): ditto.
11861         (finish_marking_weak_hash_tables): ditto.
11862         (hash_table_weakness_validate): ditto.
11863         (syms_of_elhash): ditto.
11864
11865 2000-05-28  Martin Buchholz <martin@xemacs.org>
11866
11867         * XEmacs 21.2.34 is released.
11868
11869 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11870
11871         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11872         start cache.
11873         (updating_line_start_cache): Gone.
11874         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11875         generic code to force a minimum of 1 line laid out in the
11876         CMOTION_DISP case.
11877
11878 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11879
11880         * glyphs.c (instantiate_image_instantiator): Check for initialized
11881         height & width no longer special cases IMAGE_NOTHING.
11882         (nothing_instantiate): Set height and width of instance.
11883
11884 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11885
11886         * unexelf.c (unexec): Search for ".data" section.
11887         Initialize new_data2_offset from old_data_index.
11888         Remove redundant check for ElfW.
11889
11890 2000-05-23  Andy Piper  <andy@xemacs.org>
11891
11892         * glyphs.c (get_image_instantiator_governing_domain): allow more
11893         specific domains as the governing domain rather than expecting an
11894         exact match. This fixes problems with layouts.
11895
11896 2000-05-22  Andy Piper  <andy@xemacs.org>
11897
11898         * redisplay-output.c (compare_runes): check for non-images
11899
11900         * glyphs.c (set_glyph_dirty_p): ditto.
11901         (update_glyph_cachel_data): ditto.
11902
11903         * glyphs-widget.c (layout_post_instantiate): ditto.
11904         (layout_post_instantiate): ditto.
11905
11906         * event-msw.c (mswindows_wnd_proc): warning removal.
11907
11908 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11909
11910         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11911
11912         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11913
11914         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11915
11916         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11917         (mswindows_executable_type): mingw32 now has enough headers for
11918         this to work.
11919
11920 2000-05-20  Andy Piper  <andy@xemacs.org>
11921
11922         * console-msw.c (mswindows_output_last_error): ; -> ,
11923
11924 2000-05-12  Andy Piper  <andy@xemacs.org>
11925
11926         * console-msw.c (FROB): compare ints with ints.
11927
11928 2000-05-11  Andy Piper  <andy@xemacs.org>
11929
11930         * glyphs-x.c (x_finalize_image_instance): make minimal build
11931         happy.
11932
11933 2000-05-20  Ben Wing  <ben@xemacs.org>
11934
11935         * event-Xt.c:
11936         * event-Xt.c (vars_of_event_Xt):
11937         move modifier-keys-are-sticky to event-stream.c.
11938
11939         * event-msw.c:
11940         * event-msw.c (mswindows_enqueue_mouse_button_event):
11941         * event-msw.c (key_needs_default_processing_p):
11942         * event-msw.c (XEMSW_LCONTROL):
11943         * event-msw.c (mswindows_handle_sticky_modifiers):
11944         * event-msw.c (FROB):
11945         * event-msw.c (clear_sticky_modifiers):
11946         * event-msw.c (output_modifier_keyboard_state):
11947         * event-msw.c (output_alt_keyboard_state):
11948         * event-msw.c (mswindows_wnd_proc):
11949         * event-msw.c (mswindows_modifier_state):
11950         * event-msw.c (emacs_mswindows_handle_magic_event):
11951         implement sticky modifiers.
11952
11953         * event-stream.c:
11954         * event-stream.c (vars_of_event_stream):
11955         move modifier-keys-are-sticky here.
11956
11957         * lisp.h:
11958         add CHECK_FUNCTION.
11959
11960         * rangetab.c:
11961         implement map-range-table.
11962
11963
11964 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11965
11966         * redisplay-tty.c (reset_tty_modes):
11967         (tty_redisplay_shutdown): Adjust argument type to
11968         tty_frame_output_end.
11969
11970 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11971
11972         * eval.c (Fbacktrace): Don't output a line with only right
11973         parenthesis.
11974
11975 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11976
11977         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11978         (Fpq_reset_poll): Ditto.
11979
11980 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11981
11982         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11983
11984 2000-05-16  Ben Wing  <ben@xemacs.org>
11985
11986         * buffer.c:
11987         * buffer.c (dfc_convert_to/from_internal_format):
11988         * buffer.c (reinit_vars_of_buffer):
11989         Fix conversion functions to allow reentrancy.
11990
11991         * console-msw.c:
11992         * console-msw.c (mswindows_output_last_error):
11993         New fun, generally useful -- output a human-readable
11994         version of GetLastError() on the console.
11995
11996         * console-msw.h:
11997         * console-msw.h (struct mswindows_frame):
11998         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11999
12000         * console-stream.c (stream_output_begin):
12001         * console-stream.c (stream_output_end):
12002         * console-stream.c (stream_output_vertical_divider):
12003         * console-stream.c (stream_clear_region):
12004         * console-stream.c (stream_flash):
12005         * console-stream.c (console_type_create_stream):
12006         Delete blank stream methods, not needed.
12007
12008         * console.h (struct console_methods):
12009         Split begin/end methods into window and frame.
12010
12011         * event-msw.c:
12012         * event-msw.c (mswindows_handle_paint):
12013         * event-msw.c (output_alt_keyboard_state):
12014         * event-msw.c (mswindows_wnd_proc):
12015         * event-msw.c (vars_of_event_mswindows):
12016         Comment about problems with ignored-expose.
12017         Define mswindows-debug-events; not really implemented.
12018
12019         * frame-msw.c (mswindows_init_frame_1):
12020         random cleanups.
12021
12022         * glyphs-msw.c:
12023         * glyphs-msw.c (begin_defer_window_pos):
12024         * glyphs-msw.c (mswindows_unmap_subwindow):
12025         * glyphs-msw.c (mswindows_map_subwindow):
12026         * glyphs-msw.c (mswindows_resize_subwindow):
12027         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12028
12029         * glyphs.c (make_image_instance_1):
12030         Fix crash.
12031
12032         * gutter.c (Fredisplay_gutter_area):
12033         Use new begin/end methods.
12034
12035         * lisp.h (Dynarr_new2):
12036         New creation fun.
12037
12038         * redisplay-msw.c:
12039         * redisplay-msw.c (mswindows_frame_output_begin):
12040         * redisplay-msw.c (mswindows_frame_output_end):
12041         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12042         New begin/end methods -- handle DeferWindowPos.
12043
12044         * redisplay-output.c (redisplay_move_cursor):
12045         * redisplay-output.c (redraw_cursor_in_window):
12046         * redisplay-output.c (redisplay_update_line):
12047         * redisplay-output.c (redisplay_output_window):
12048         New begin/end methods.
12049
12050         * redisplay-tty.c:
12051         * redisplay-tty.c (tty_frame_output_begin):
12052         * redisplay-tty.c (tty_frame_output_end):
12053         * redisplay-tty.c (console_type_create_redisplay_tty):
12054         New begin/end methods.
12055
12056         * redisplay-x.c:
12057         * redisplay-x.c (x_window_output_begin):
12058         * redisplay-x.c (x_window_output_end):
12059         * redisplay-x.c (console_type_create_redisplay_x):
12060         New begin/end methods.
12061
12062         * redisplay.c (redisplay_frame):
12063         * redisplay.c (Fredisplay_echo_area):
12064         New begin/end methods.
12065         use MAYBE_DEVMETH for clear_frame; it may not exist.
12066
12067         * window.h (WINDOW_XFRAME):
12068         WINDOW_XFOO macros -- get locale and decode struct pointer.
12069
12070
12071 2000-05-12  Ben Wing  <ben@xemacs.org>
12072
12073         * emacs.c:
12074         * emacs.c (ensure_no_quitting_from_now_on):
12075         * emacs.c (fatal_error_signal):
12076         * emacs.c (mswindows_handle_hardware_exceptions):
12077         * emacs.c (main):
12078         * emacs.c (Fkill_emacs):
12079         * emacs.c (shut_down_emacs):
12080         * emacs.c (assert_failed):
12081         various improvements in fatal error handling.
12082
12083         * eval.c:
12084         move preparing_for_armageddon to emacs.c.
12085
12086         * lisp.h:
12087         declare fatal_error_in_progress.
12088
12089         * print.c:
12090         * print.c (std_handle_out_external):
12091         * print.c (std_handle_out_va):
12092         * print.c (stderr_out):
12093         * print.c (stdout_out):
12094         use console under mswin when no standard output.
12095         don't do code conversion during fatal error.
12096
12097         * scrollbar.c (Fscrollbar_page_up):
12098         * scrollbar.c (Fscrollbar_page_down):
12099         fix missing else.  reindent.
12100
12101 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12102
12103         Emergency fix.
12104
12105         * glyphs.h (GLYPH_CACHEL_DESCENT):
12106         (GLYPH_CACHEL_DESCENT):
12107         (GLYPH_CACHEL_DESCENT):
12108         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12109         used in case these are inline functions.
12110         Use more absurd values to error check.
12111
12112         include window.h for error check functions.
12113
12114 2000-05-11  Ben Wing  <ben@xemacs.org>
12115
12116         * cmdloop.c (Freally_early_error_handler):
12117         Display message box under windows; otherwise, message will disappear
12118         before it can be viewed.
12119
12120         * console-msw.c:
12121         * console-msw.c (Fmswindows_message_box):
12122         * console-msw.c (FROB):
12123         * console-msw.c (syms_of_console_mswindows):
12124         Define new fun `mswindows-message-box'.
12125         #### I will merge this into `popup-dialog-box'; just give me
12126         a bit of time.
12127
12128         * general.c:
12129         * general.c (syms_of_general):
12130         Some new symbols used in `mswindows-message-box'.
12131
12132         * glyphs.c:
12133         * glyphs.c (Fset_image_instance_property):
12134         put warning in this fun.
12135
12136         * glyphs.h:
12137         * glyphs.h (GLYPH_CACHEL_WIDTH):
12138         * glyphs.h (GLYPH_CACHEL_ASCENT):
12139         * glyphs.h (GLYPH_CACHEL):
12140         * glyphs.h (GLYPH_CACHEL_GLYPH):
12141         define error-checking versions to try to catch a bug i've seen --
12142         redisplay gets in an infinite loop because the glyph width of the
12143         continuation glyph is 65535.
12144
12145         * lisp.h:
12146         Extern message-box stuff.
12147
12148         * window.c (allocate_window):
12149         * window.c (make_dummy_parent):
12150         * window.c (Fset_window_configuration):
12151         Use EQUAL not EQ for subwindow caches to make them work a bit
12152         better. (Something is still very broken.)
12153
12154
12155 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12156
12157         * glyphs.c (image_instantiate): Suppress gcc warnings.
12158         (Fmake_image_instance): Fix doc string.
12159         * specifier.c (Fmake_specifier): Ditto.
12160
12161 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12162
12163         * paths.h.in (PATH_LOCK): Removed.
12164         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12165         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12166
12167 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12168
12169         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12170         Document (featurep '(and xemacs 21.02)).
12171
12172 2000-05-09  Ben Wing  <ben@xemacs.org>
12173
12174         * buffer.c (complex_vars_of_buffer):
12175         update modeline-format doc.
12176
12177         * device.h:
12178         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12179
12180         * emacs.c:
12181         timeline of all released versions of Emacs, for use in creating
12182         authorship comments and in synching up.
12183
12184         * glyphs-widget.c (image_instantiator_buttons):
12185         * glyphs-widget.c (image_instantiator_edit_fields):
12186         * glyphs-widget.c (image_instantiator_combo_box):
12187         * glyphs-widget.c (image_instantiator_scrollbar):
12188         * glyphs-widget.c (image_instantiator_progress_guage):
12189         * glyphs-widget.c (image_instantiator_tree_view):
12190         * glyphs-widget.c (image_instantiator_tab_control):
12191         * glyphs-widget.c (image_instantiator_labels):
12192         * glyphs-widget.c (image_instantiator_layout):
12193         * glyphs-widget.c (image_instantiator_native_layout):
12194         rename decode_domain method to governing_domain.
12195
12196         * glyphs.c:
12197         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12198         * glyphs.c (add_entry_to_device_ii_format_list):
12199         make sure we don't put an entry more than once into the list.
12200         * glyphs.c (check_instance_cache_mapper):
12201         *************************************************************
12202         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12203         HAVE BEEN GETTING.
12204         *************************************************************
12205         * glyphs.c (get_image_instantiator_governing_domain):
12206         clean up, expand on new concept of governing domain.
12207         * glyphs.c (instantiate_image_instantiator):
12208         * glyphs.c (allocate_image_instance):
12209         use governing_domain instead of cache_domain in naming.
12210         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12211         * glyphs.c (make_image_instance_1):
12212         * glyphs.c (Fmake_image_instance):
12213         allow for any domain (not just device), and process the
12214         governing domain correctly.  very big doc fix.
12215         * glyphs.c (Fimage_instance_domain):
12216         new primitive, to retrieve the governing domain of an image instance.
12217         * glyphs.c (image_instantiate):
12218         use new governing_domain stuff.  this fixes a crash you could get
12219         by instantiating certain widget glyphs in frame locales. (should
12220         signal an error instead of crashing.)
12221         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12222         * glyphs.c (Fglyphp): clean up doc.
12223         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12224         * glyphs.c (syms_of_glyphs):
12225         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12226         * glyphs.c (image_instantiator_format_create): add some comments about
12227         bogus code.
12228         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12229         for current-display-table. (Apparently Hrjove implemented in 1998 a
12230         design I wrote up in 1996, but didn't update the doc string.)
12231
12232         * glyphs.h: clean up a doc string.
12233         * glyphs.h (governing_domain):
12234         * glyphs.h (struct image_instantiator_methods):
12235         changes for governing_domain stuff.
12236
12237         * gutter.c:
12238         * gutter.c (Fgutter_specifier_p):
12239         * gutter.c (Fgutter_size_specifier_p):
12240         * gutter.c (Fgutter_visible_specifier_p):
12241         * objects.c:
12242         * objects.c (Fcolor_specifier_p):
12243         * objects.c (Ffont_specifier_p):
12244         * objects.c (Fface_boolean_specifier_p):
12245         doc strings moved to make-*-specifier.
12246
12247         * redisplay.c (add_disp_table_entry_runes_1):
12248         * redisplay.c (generate_fstring_runes):
12249         * redisplay.c (screen):
12250         add random comments and doc strings.
12251
12252         * specifier.c:
12253         * specifier.c (Fmake_specifier):
12254         major overhaul of this doc string.
12255
12256         * specifier.c (Fvalid_specifier_domain_p):
12257         comment about the bogosity of image instances being domains.
12258         * specifier.c (decode_domain):
12259         now non-static, used in glyphs.c.
12260         * specifier.c (specifier_instance):
12261         comment about the bogosity of image instances being domains.
12262         * specifier.c (Fgeneric_specifier_p):
12263         move doc string to make-generic-specifier.
12264         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12265         rebackslashify.
12266
12267         * specifier.h:
12268         * specifier.h (DOMAIN_FRAME):
12269         * specifier.h (DOMAIN_LIVE_P):
12270         * specifier.h (DOMAIN_XDEVICE):
12271         rebackslashify.
12272         add comments about problems with these macros.
12273         prototype for decode_domain.
12274
12275         * toolbar.c:
12276         * toolbar.c (Ftoolbar_specifier_p):
12277         move doc string to `make-toolbar-specifier'.
12278
12279         * window.c (window_unmap_subwindows_cache_mapper):
12280         *************************************************************
12281         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12282         HAVE BEEN GETTING.
12283         *************************************************************
12284
12285 2000-05-09  Andy Piper  <andy@xemacs.org>
12286
12287         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12288
12289         * window.c (Fset_window_configuration): reset the frame subwindow
12290         cache and re-initialize the window subwindow caches.
12291
12292         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12293
12294 2000-05-09  Ben Wing  <ben@xemacs.org>
12295
12296         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12297         DWORD.
12298
12299 2000-04-26  Mike Woolley  <mike@bulsara.com>
12300
12301         * ntheap.c: Changed recreate_heap to limit the amount reserved
12302         for the heap to that which is actually available. Also now
12303         displays a message box (with some dignostics) in the event that
12304         it still can't start.
12305
12306 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12307
12308         * callproc.c (Fold_call_process_internal): GCPRO path
12309
12310 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12311
12312         Patch by Bill Perry.
12313
12314         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12315         back data instead of #ifdef.
12316         (Fscrollbar_page_down): ditto.
12317
12318 2000-05-07  Ben Wing  <ben@xemacs.org>
12319
12320         * buffer.h:
12321         Kludge for defining Qmswindows_tstr.
12322
12323         * nt.c:
12324         * nt.c (open_input_file):
12325         * nt.c (open_output_file):
12326         * nt.c (rva_to_section):
12327         * nt.c (mswindows_executable_type):
12328         Move all memory-mapped-file routines here (some were in unexnt.c,
12329         which is bad because they are used by process-nt.c, and unexnt
12330         won't be around when portable dumping).  Synched the above routines
12331         with FSF 20.6.
12332
12333         * nt.h:
12334         Removed ifdef'd out bogus code.
12335         Fixed some prototypes.
12336
12337         * nt.h (file_data):
12338         * nt.h (OFFSET_TO_RVA):
12339         * nt.h (RVA_TO_OFFSET):
12340         * nt.h (RVA_TO_PTR):
12341         Moved the memory-mapped-file structures, macros and prototypes
12342         here, to parallel nt.c.  ntheap.h should really be removed
12343         entirely, and it's a non-portable-dumper specific file.
12344
12345         * ntheap.h (round_to_next):
12346         Moved the memory-mapped-file structures, macros and prototypes
12347         to nt.h.
12348
12349         * ntproc.c (compare_env):
12350         Moved rva_to_section and mswindows_executable_type to nt.c.
12351         Moved compare_env to process-nt.c.
12352         ntproc.c will die, one day.
12353
12354         * ntproc.c (sys_spawnve):
12355         Account for win32_ -> mswindows_.
12356
12357         * process-nt.c:
12358         * process-nt.c (struct nt_process_data):
12359         * process-nt.c (ensure_console_window_exists):
12360         * process-nt.c (compare_env):
12361         * process-nt.c (nt_create_process):
12362         * process-nt.c (nt_kill_process_by_pid):
12363         * process-nt.c (syms_of_process_nt):
12364         * process-nt.c (vars_of_process_nt):
12365         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12366         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12367         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12368         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12369         Move compare_env here from ntproc.c.
12370
12371         * process.c (Fprocess_send_region):
12372         Takes an optional fourth argument, BUFFER, which should fix some
12373         problems with call-process.
12374
12375         * syscommctrl.h:
12376         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12377
12378         * syswindows.h:
12379         Move ICC_BAR_CLASSES to syscommctrl.h.
12380         Add preliminary macros for MSWindows/Mule.  More to come.
12381
12382         * unexnt.c:
12383         * unexnt.c (unexec):
12384         open_output_file moved to nt.c.
12385
12386
12387 2000-05-05  Andy Piper  <andy@xemacs.org>
12388
12389         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12390         instance from the frame cache also since GC may catch up too late
12391         to make frame deletion sane.
12392
12393 2000-05-04  Andy Piper  <andy@xemacs.org>
12394
12395         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12396         (x_finalize_image_instance): ungcpro on deletion.
12397
12398         * glyphs.c (image_instantiator_format_create): give pointers a
12399         query geometry method so that the geometry is at least set.
12400
12401         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12402         initialize layouts if using widgets.
12403
12404 2000-05-03  Andy Piper  <andy@xemacs.org>
12405
12406         * nt.c: remove bogus reference to sysmmsystem.h
12407
12408         * gui-x.c (popup_selection_callback): fix no selection abort.
12409
12410 2000-05-02  Andy Piper  <andy@xemacs.org>
12411
12412         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12413         (mswindows_widget_instantiate): ditto.
12414
12415         * glyphs-widget.c (initialize_widget_image_instance): initialize
12416         children correctly.
12417         (widget_instantiate): cope with children and items in the same
12418         instance.
12419
12420         * glyphs.c (mark_image_instance): cope with children as a first
12421         class member.
12422         (image_instance_equal): ditto.
12423         (image_instance_hash): ditto.
12424         (image_instance_changed): ditto.
12425
12426 2000-04-30  Andy Piper  <andy@xemacs.org>
12427
12428         * glyphs.c (subwindow_query_geometry): new function. Return some
12429         defaults.
12430         (subwindow_instantiate): don't assign dimensions if none have been
12431         given.
12432         (image_instantiator_format_create): add subwindow_query_geometry.
12433         (print_image_instance): cope with layouts as widgets.
12434
12435 2000-04-29  Andy Piper  <andy@xemacs.org>
12436
12437         * frame.c (delete_frame_internal): call
12438         free_frame_subwindow_instance_cache so that all subwindows are
12439         finalized before their parent.
12440         (mark_frame): remove subwindow_cachels.
12441         (Fmake_frame): remove subwindow_cachel manipulation.
12442         (allocate_frame_core): subwindow_instance_cache is a weak list.
12443         (delete_frame_internal): set subwindow_instance_cache to nil.
12444
12445         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12446         finalization safe.
12447         (mswindows_finalize_image_instance): use the device
12448         not the domain as the domain may have died already.
12449
12450         * glyphs-x.c (x_finalize_image_instance): ditto.
12451         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12452         HEIGHT.
12453
12454         * redisplay-output.c (redisplay_unmap_subwindows): update for
12455         subwindow instance cache as a weak list.
12456         (redisplay_unmap_subwindows_maybe): ditto.
12457         (redisplay_unmap_subwindows_except_us): ditto.
12458
12459         * glyphs.c (unmap_subwindow): error checking will check the domain
12460         so don't deal with it here. Don't use cachels anymore.
12461         (map_subwindow): ditto.
12462         (update_subwindow_cachel_data): remove old accessor names.
12463         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12464         (Fresize_subwindow): don't update cachel.
12465         (mark_subwindow_cachels):
12466         (update_subwindow_cachel_data):
12467         (add_subwindow_cachel):
12468         (get_subwindow_cachel_index):
12469         (update_subwindow_cachel):
12470         (reset_subwindow_cachels):
12471         (mark_subwindow_cachels_as_not_updated): deleted.
12472         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12473         subwindow instance to the frame cache.
12474         (find_matching_subwindow): update for subwindow instance cache as
12475         a weak list.
12476         (update_widget_instances): ditto.
12477         (image_instance_type_to_mask):inlined.
12478         (free_frame_subwindow_instance_cache): new function. finalize all
12479         subwindows that are instantiated.
12480
12481         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12482         of cachel information.
12483         (IMAGE_INSTANCE_DISPLAY_X):
12484         (IMAGE_INSTANCE_DISPLAY_Y):
12485         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12486         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12487         (XIMAGE_INSTANCE_DISPLAY_X):
12488         (XIMAGE_INSTANCE_DISPLAY_Y):
12489         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12490         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12491         remove subwindow_cachel structure and function references.
12492         (image_instance_type_to_mask): inline from glyphs.c
12493
12494         * redisplay.c (redisplay_frame): remove subwindow_cachel
12495         references.
12496
12497         * frame.h (struct frame): remove subwindow_cachels.
12498         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12499
12500         * frameslots.h: add subwindow_instance_cache.
12501
12502         * window.c (replace_window): check subwindow cache of replacement.
12503         (window_unmap_subwindows_cache_mapper):
12504         (window_unmap_subwindows): new functions. Unmap all subwindows
12505         cached on this window.
12506         (mark_window_as_deleted): unmap all subwindows.
12507
12508 2000-04-27  Andy Piper  <andy@xemacs.org>
12509
12510         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12511
12512         * glyphs-widget.c (widget_layout): return something.
12513         (layout_layout): return something. Fail if not initialized.
12514         (layout_query_geometry): ditto.
12515         (image_instantiator_native_layout): new function. Initialized the
12516         native layout type.
12517         (widget_instantiate): don't do layout stuff here.
12518
12519         * glyphs.c (instantiate_image_instantiator): reorded calling or
12520         instantiate and post_instantiate with layout in between.
12521         (image_instance_layout): be more selective about deciding whether
12522         the layout has been done or not.
12523
12524         * glyphs.h (struct image_instantiator_methods): return a value
12525         from layout_method.
12526
12527 2000-04-26  Andy Piper  <andy@xemacs.org>
12528
12529         * glyphs.c (allocate_image_instance): make initial width and
12530         height unspecified. Set initialized to 0.
12531
12532         * syscommctrl.h new file. Encapsulates commctrl.h.
12533
12534         * syswindows.h new file. Encapsulates windows.h.
12535
12536         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12537         * nt.c: ditto.
12538         * console-msw.h: ditto.
12539
12540         * redisplay-tty.c (tty_output_display_block): remove layout references.
12541
12542         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12543         window handle rather than just the frame.
12544
12545         * glyphs.c (mark_image_instance): remove layout references.
12546         (print_image_instance): ditto.
12547         (image_instance_equal): ditto.
12548         (image_instance_hash): ditto.
12549         (decode_image_instance_type): ditto.
12550         (encode_image_instance_type): ditto.
12551         (image_instantiate): ditto.
12552         (allocate_glyph): ditto.
12553         (Fimage_instance_height): ditto.
12554         (Fimage_instance_width): ditto.
12555         (update_subwindow): ditto.
12556
12557         * redisplay-x.c (x_output_display_block): recode for layouts as
12558         widgets.
12559
12560         * redisplay-output.c (redisplay_output_layout): recode for layouts
12561         as widgets.
12562         (compare_runes): remove layout references.
12563
12564         * redisplay-msw.c (mswindows_output_display_block): recode for
12565         layouts as widgets.
12566
12567         * glyphs-widget.c (image_instantiator_layout): remove
12568         layout_possible_dest_types.
12569         (layout_possible_dest_types): deleted.
12570
12571         * glyphs.h (image_instance_type): remove layout references.
12572         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12573         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12574         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12575
12576 2000-04-25  Andy Piper  <andy@xemacs.org>
12577
12578         * glyphs-widget.c (image_instantiator_buttons):
12579         (image_instantiator_edit_fields):
12580         (image_instantiator_combo_box):
12581         (image_instantiator_scrollbar):
12582         (image_instantiator_progress_guage):
12583         (image_instantiator_tree_view):
12584         (image_instantiator_tab_control):
12585         (image_instantiator_labels):
12586         (image_instantiator_layout): call default post_instantiate method.
12587         (widget_post_instantiate): new function. Simply lays out the
12588         widgets.
12589
12590         * glyphs.h (struct image_instantiator_methods): add
12591         post_instantiate method.
12592
12593         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12594         method calls.
12595
12596 2000-04-23  Andy Piper  <andy@xemacs.org>
12597
12598         * glyphs.h (struct image_instantiator_methods): add
12599         decode_domain_method.
12600         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12601         derived from the domain.
12602         (IMAGE_INSTANCE_FRAME): new accessor.
12603         (XIMAGE_INSTANCE_FRAME): ditto.
12604
12605         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12606         instead of _SUBWINDOW_FRAME.
12607         (finalize_image_instance): ditto.
12608         (Fimage_instance_foreground): ditto.
12609         (Fimage_instance_background): ditto.
12610         (image_instantiate): ditto.
12611         (update_subwindow_cachel): ditto.
12612         (update_subwindow): ditto.
12613         (unmap_subwindow): ditto.
12614         (map_subwindow): ditto
12615         (subwindow_instantiate): ditto.
12616         * glyphs-msw.c (mswindows_update_widget): ditto.
12617         (mswindows_progress_gauge_instantiate): ditto.
12618         (mswindows_tab_control_update): ditto.
12619         * glyphs-x.c (x_update_widget): ditto.
12620         (x_widget_instantiate): ditto.
12621         (x_tab_control_instantiate): ditto.
12622         (x_tab_control_update): ditto.
12623         * event-msw.c (mswindows_wnd_proc): ditto
12624
12625         * glyphs-widget.c (image_instantiator_layout): use
12626         subwindow_decode_domain.
12627         (image_instantiator_buttons): ditto.
12628         (image_instantiator_edit_fields): ditto.
12629         (image_instantiator_combo_box): ditto.
12630         (image_instantiator_scrollbar): ditto.
12631         (image_instantiator_progress_guage): ditto.
12632         (image_instantiator_tree_view): ditto.
12633         (image_instantiator_tab_control): ditto.
12634         (image_instantiator_labels): ditto.
12635         (image_instantiator_layout): ditto.
12636
12637         * glyphs.c: add instance error checking to many functions.
12638         (instantiate_image_instantiator): decode device from cache_domain.
12639         (image_instantiate): partially rewrite by using
12640         decode_image_instantiator_domain to determine what domain the
12641         instance needs to be cached in.
12642         (decode_image_instantiator_domain): new function. Determine what
12643         domain the image needs to be cached in.
12644         (check_window_subwindow_cache): new error checking function.
12645         (check_instance_cache_mapper): ditto.
12646         (check_image_instance_structure): ditto.
12647         (subwindow_decode_domain): new function. Encodes a window as a
12648         subwindow's cache domain.
12649         (image_instantiator_format_create): use it for text and
12650         subwindows.
12651
12652 2000-04-21  Andy Piper  <andy@xemacs.org>
12653
12654         * glyphs.c (image_instance_device): new function.
12655         (image_instance_frame): new function.
12656         (image_instance_window): new function.
12657         (image_instance_live_p): new function.
12658
12659         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12660         cache to nil.
12661
12662         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12663         (IMAGE_INSTANCE_DOMAIN): new accessor.
12664         (XIMAGE_INSTANCE_DOMAIN): ditto.
12665
12666         * glyphs-x.c (x_finalize_image_instance): device->domain.
12667
12668         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12669         (mswindows_finalize_image_instance): ditto.
12670
12671         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12672         (gif_instantiate): ditto.
12673         (png_instantiate): ditto.
12674         (tiff_instantiate): ditto.
12675
12676         * glyphs.c (instantiate_image_instantiator): use domain rather
12677         than device.
12678         (mark_image_instance): device -> domain.
12679         (print_image_instance): ditto.
12680         (finalize_image_instance): ditto.
12681         (image_instance_equal): ditto.
12682         (allocate_image_instance): ditto.
12683         (Fcolorize_image_instance): ditto.
12684         (query_string_geometry): ditto.
12685         (image_instantiate): ditto
12686         (query_string_font): ditto.
12687         (image_instantiate): ditto.
12688         (update_subwindow): ditto.
12689         (unmap_subwindow): ditto.
12690         (map_subwindow): ditto.
12691         (subwindow_instantiate): ditto.
12692
12693         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12694         (DOMAIN_FRAME): ditto.
12695         (DOMAIN_WINDOW): ditto.
12696         (DOMAIN_LIVE_P): ditto.
12697         (XDOMAIN_DEVICE): ditto.
12698         (XDOMAIN_FRAME): ditto.
12699         (XDOMAIN_WINDOW): ditto.
12700
12701         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12702         a valid specifier domain.
12703
12704 2000-04-19  Andy Piper  <andy@xemacs.org>
12705
12706         * glyphs-widget.c (syms_of_glyphs_widget): remove
12707         widget-callback-current-channel.
12708         (vars_of_glyphs_widget): ditto.
12709         * glyphs.h: ditto
12710
12711         * gui.c (get_gui_callback): revert to previous behaviour.
12712
12713 2000-04-18  Andy Piper  <andy@xemacs.org>
12714
12715         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12716         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12717         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12718
12719         * glyphs.c (image_instance_equal): add margin_width.
12720         (image_instance_hash): ditto.
12721
12722         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12723         (layout_query_geometry): ditto.
12724         (layout_layout): ditto.
12725         (syms_of_glyphs_widget): add margin-width.
12726         (image_instantiator_layout): allow margin-width.
12727
12728         * glyphs.c (update_widget_instances): make a normal function.
12729         (syms_of_glyphs): remove Qupdate_widget_instances.
12730         * glyphs.h: ditto.
12731
12732         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12733         so that we don't corrupt ideas about the last event or
12734         command. Remove widget-callback-current-channel fiddling.
12735         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12736
12737 2000-05-01  Martin Buchholz <martin@xemacs.org>
12738
12739         * XEmacs 21.2.33 is released.
12740
12741 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12742
12743         * make-src-depend: Allow dots in header file name.
12744
12745 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12746
12747         * mule-charset.h (struct charset_lookup): Add
12748         next_allocated_1_byte_leading_byte and
12749         next_allocated_2_byte_leading_byte.
12750         * mule-charset.c: Move above two variables so that those values
12751         will be dumped.
12752
12753 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12754
12755         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12756         when string length is zero.
12757         (find_charsets_in_emchar_string): Ditto.
12758
12759 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12760
12761         * lisp.h: extern Qdialog and Qmenubar.
12762
12763         * gui-x.c: added events.h.
12764                 also fixed typo which made the file uncompilable.
12765
12766         * general.c: Added Qmenubar and Qdialog
12767
12768 2000-04-28  Ben Wing  <ben@xemacs.org>
12769
12770         * frame-msw.c (mswindows_init_frame_1):
12771         * frame-msw.c (mswindows_mark_frame):
12772         * event-msw.c (mswindows_enqueue_dispatch_event):
12773         * console-msw.h:
12774         * console-msw.h (struct mswindows_frame):
12775         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12776         there are now three hash tables for callbacks.
12777         mswindows_enqueue_dispatch_event is no longer static.
12778
12779         * dialog-x.c (maybe_run_dbox_text_callback):
12780         * dialog-x.c (dbox_descriptor_to_widget_value):
12781         switch to new cons3 form for callbacks.
12782
12783         * glyphs-msw.c (mswindows_register_gui_item):
12784         * glyphs-msw.c (mswindows_widget_instantiate):
12785         * glyphs-msw.c (add_tree_item):
12786         * glyphs-msw.c (add_tab_item):
12787         new image instance parameter, so it can be passed to callback-ex.
12788         respect :callback-ex as well as :callback.
12789
12790         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12791         add :callback-ex.
12792
12793         * glyphs.c (print_image_instance):
12794         prettify, e.g. now prints widget type.
12795
12796         * gui-x.h:
12797         certain funs have new image instance parameter.
12798
12799         * gui.c:
12800         * gui.c (get_gui_callback):
12801         * gui.c (gui_item_add_keyval_pair):
12802         * gui.c (gui_item_init):
12803         * gui.c (gui_add_item_keywords_to_plist):
12804         * gui.c (mark_gui_item):
12805         * gui.c (gui_item_hash):
12806         * gui.c (gui_item_equal):
12807         * gui.c (copy_gui_item):
12808         * gui.c (syms_of_gui):
12809         recognize callback-ex in a number of places.
12810         also, fix the annoying "can't get out of yes-no dialog" bug.
12811
12812         * gui.h:
12813         * gui.h (struct Lisp_Gui_Item):
12814         recognize callback-ex in a number of places.
12815
12816         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12817         new parameter in button_item_to_widget_value.
12818
12819         * glyphs-x.c (x_update_widget):
12820         * glyphs-x.c (x_button_instantiate):
12821         * glyphs-x.c (x_button_update):
12822         * glyphs-x.c (x_progress_gauge_instantiate):
12823         * glyphs-x.c (x_edit_field_instantiate):
12824         * glyphs-x.c (x_combo_box_instantiate):
12825         * glyphs-x.c (x_tab_control_instantiate):
12826         * glyphs-x.c (x_label_instantiate):
12827         new image instance parameter in various places.
12828
12829         * event-Xt.c:
12830         * event-Xt.c (enqueue_Xt_dispatch_event):
12831         this fun gets exported.
12832
12833         * gui-msw.c:
12834         * gui-msw.c (mswindows_handle_gui_wm_command):
12835         handle both :callback and :callback-ex, and generate our own
12836         event because it's one of the callback-ex arguments.
12837
12838         * gui-x.c:
12839         * gui-x.c (popup_selection_callback):
12840         handle both :callback and :callback-ex, and generate our own
12841         event because it's one of the callback-ex arguments.
12842         * gui-x.c (button_item_to_widget_value):
12843         * gui-x.c (gui_items_to_widget_values_1):
12844         * gui-x.c (gui_item_children_to_widget_values):
12845         * gui-x.c (gui_items_to_widget_values):
12846         new image instance parameter in various places.
12847
12848         * fns.c (Freplace_list):
12849         fix small typo in doc string.
12850
12851         * lisp.h:
12852         declare enqueue_Xt_dispatch_event.
12853
12854 2000-04-28  Ben Wing  <ben@xemacs.org>
12855
12856         * buffer.c:
12857         * buffer.c (Frecord_buffer):
12858         * buffer.c (syms_of_buffer):
12859         delete record-buffer-hook.
12860
12861         * fns.c:
12862         * fns.c (Freplace_list):
12863         * fns.c (syms_of_fns):
12864         new primitive replace-list.
12865
12866         * frameslots.h:
12867         slot for old buffer-alist.
12868
12869         * lisp.h:
12870         exfun replace-list.
12871
12872         * redisplay.c:
12873         * redisplay.c (redisplay_frame):
12874         * redisplay.c (syms_of_redisplay):
12875         * redisplay.c (vars_of_redisplay):
12876         new hook buffer-list-changed-hook.
12877         call it.
12878
12879 2000-04-27  Ben Wing  <ben@xemacs.org>
12880
12881         * extents.h: extern in_modeline_generation.
12882
12883         * redisplay.c (generate_formatted_string_db): set
12884         in_modeline_generation.
12885
12886         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12887         flags if in modeline generation.  otherwise frame-modified-tick
12888         is ticked far too often.
12889         Declare in_modeline_generation.
12890
12891 2000-04-26  Ben Wing  <ben@xemacs.org>
12892
12893         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12894         option.
12895         (vars_of_emacs): add quick-build as an error-checking option.
12896         A bit kludgy, but there doesn't seem much point in creating
12897         a real var for this.
12898
12899         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12900
12901 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12902
12903         * redisplay.h (struct display_line): Add a new variable,
12904         line_continuation.
12905
12906         * redisplay.c (create_text_block): Set dl->line_continuation if
12907         the line continues.
12908         (create_string_text_block): Ditto.
12909         (regenerate_window_incrementally): Use line_continuation instead
12910         of searching continuation glyph.
12911         (add_margin_runes): Call add_glyph_rune.
12912         (add_glyph_rune): Handle margin glyph.
12913
12914 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12915
12916         * filelock.c (fill_in_lock_file_name):
12917         ANSIfy.
12918         Check for IS_ANY_SEP instead of '/'.
12919         (lock_file_1):
12920         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12921         Never check errno without first seeing that system call failed.
12922         (unlock_file): Add GCPRO.
12923         (Flock_buffer): Fix docstring.
12924         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12925
12926 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12927
12928         * sysdep.c (get_pty_max_bytes):
12929         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12930         strings longer than 252 bytes.
12931
12932         * md5.c: Unconditionally include ANSI header <limits.h>
12933
12934         * glyphs-x.c (convert_EImage_to_XImage):
12935         * lisp-union.h (union Lisp_Object):
12936         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12937
12938 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12939
12940         * filelock.c (current_lock_owner): Remove unused variable o, p.
12941
12942 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12943
12944         * callint.c: Remove multiply defined symbol Qlet
12945         (syms_of_callint): ditto.
12946
12947 2000-04-14  Andy Piper  <andy@xemacs.org>
12948
12949         * general.c (syms_of_general): add last-command, this-command, let
12950         and funcall.
12951
12952         * lisp.h: declare various symbols.
12953
12954         * glyphs.h: declare Qwidget_callback_current_channel;
12955
12956         * glyphs-widget.c (syms_of_glyphs_widget): add
12957         Qgui_callback_current_channel.
12958         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12959
12960         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12961         widget-callback-current-channel when invoking the interactive
12962         arg. Also bind last-command and next-command when invoking the
12963         widget updates.
12964         * gui-x.c (popup_selection_callback): ditto.
12965
12966         * gui.c (get_gui_callback): massage args so that we are always
12967         calling eval. This allows us to add our own variable bindings
12968         outside.
12969
12970         * glyphs-x.c (x_button_instantiate): use
12971         gui_items_to_widget_values since this is GC safe.
12972         (x_progress_gauge_instantiate): ditto.
12973         (x_edit_field_instantiate): ditto.
12974         (x_label_instantiate): ditto.
12975
12976         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12977         (emacs_Xt_event_widget_focus_out): new function
12978         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12979         focus.
12980         (emacs_Xt_event_add_widget_actions): new function. add focus
12981         functions as actions.
12982         (init_event_Xt_late): use it.
12983
12984 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12985
12986         * event-stream.c (Fdispatch_event): Doc fix.
12987
12988 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12989
12990         * postgresql.c: Remove all references to PQsetenv*.
12991
12992         * postgresql.h: Remove references to PGsetenvHandler object.
12993         * lrecord.h (lrecord_type): Ditto.
12994
12995 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12996
12997         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12998         real_heigh and real_width members, and accessor macros for these.
12999
13000         * glyphs-msw.c (init_image_instance_geometry): New function.
13001         (init_image_instance_from_dibitmap): Use it.
13002         (mswindows_resource_instantiate): Use it.
13003         (init_image_instance_from_xbm_inline): Use it.
13004         (mswindows_initialize_image_instance_mask): Use real bitmap
13005         geometry.
13006         (mswindows_create_resized_bitmap): Ditto.
13007         (mswindows_create_resized_mask): Ditto.
13008
13009         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13010         and bitmap to their surface size.
13011
13012 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13013
13014         * process-unix.c (unix_send_process): Guard against process MIA
13015         after Faccept_process_output.
13016
13017 2000-04-11  Ben Wing  <ben@xemacs.org>
13018
13019         * eval.c (unbind_to_hairy): fix brokenness introduced by
13020         nanosecond speed improvements.
13021
13022 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13023
13024         * sunplay.c (init_device): To play sounds correctly, the device
13025         apparently needs to be initialized at least once by XEmacs.  Make
13026         it so.
13027
13028 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13029
13030         * redisplay.c (add_margin_runes): Add text image glyph
13031           handling.
13032
13033 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13034
13035         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13036         gcc is newer than 2.5.
13037
13038 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13039
13040         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13041
13042         * fns.c (size_bit_vector):
13043         * alloc.c (size_vector):
13044         (make_vector_internal):
13045         (make_bit_vector_internal):
13046         (sweep_bit_vectors_1):
13047         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13048
13049 2000-04-06  Andy Piper  <andy@xemacs.org>
13050
13051         * gmalloc.c (malloc): undo previous change.
13052         (malloc): ditto.
13053         (free): ditto.
13054         (realloc): ditto.
13055
13056 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13057
13058         * line-number.c (buffer_line_number): Revert to former version.
13059
13060 2000-04-06  Andy Piper  <andy@xemacs.org>
13061
13062         * gmalloc.c (malloc): add error checking.
13063         (malloc): ditto.
13064         (free): ditto.
13065         (realloc): ditto.
13066
13067         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13068         button_item_to_widget_value arg.
13069
13070         * glyphs-x.c (x_button_instantiate): add extra
13071         button_item_to_widget_value arg.
13072         (x_progress_gauge_instantiate): ditto.
13073         (x_edit_field_instantiate): ditto.
13074         (x_label_instantiate): ditto.
13075
13076         * gui-x.c (gui_items_to_widget_values_1): add extra
13077         button_item_to_widget_value arg.
13078         (button_item_to_widget_value): add extra menu_item_p arg.
13079
13080         * gui-x.h: change signature of button_item_to_widget_value.
13081
13082         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13083         button_item_to_widget_value arg.
13084
13085 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13086
13087         * buffer.h (struct buffer): auto_save_modified should be long.
13088
13089 2000-04-05  Andy Piper  <andy@xemacs.org>
13090
13091         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13092         type.
13093         (button_query_geometry): give a little more room so that athena
13094         buttons fit.
13095
13096 2000-04-05  Andy Piper  <andy@xemacs.org>
13097
13098         * faces.c (complex_vars_of_faces): The widget face should inherit
13099         the font of the gui-element face.
13100
13101 2000-04-04  Andy Piper  <andy@xemacs.org>
13102
13103         * glyphs-x.c (x_button_update): new function. unconditionally
13104         update a button's state when the instance is dirty.
13105         (image_instantiator_format_create_glyphs_x): add x_button_update.
13106         (x_widget_instantiate): remove old resize cruft.
13107
13108 2000-04-02  Andy Piper  <andy@xemacs.org>
13109
13110         * frame.c (change_frame_size_1): The introduction of gutters means
13111         that we need to allow 0 as a potential frame dimension.
13112
13113 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13114
13115         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13116         image glyph if allow_cursor.
13117         (add_hscroll_rune): Don't allow cursor to border glyph.
13118         (create_text_block): Ditto.
13119
13120         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13121         text not in buffer.
13122         (redisplay_output_layout): Call ensure_face_cachel_complete for
13123         text image glyph.
13124
13125
13126 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13127
13128         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13129
13130         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13131         not in buffer
13132
13133         * redisplay-tty.c (tty_output_display_block): Delete the routine
13134         for text image glyph
13135         * redisplay-x.c (x_output_display_block): ditto
13136         * redisplay-msw.c (mswindows_output_display_block): ditto
13137
13138 2000-02-02  Mike Alexander  <mta@arbortext.com>
13139
13140         Note: Some of these were committed by accident as part of other
13141         patches.
13142
13143         * regex.c (regex_compile): Avoid compiler warnings.
13144
13145         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13146
13147         * nt.h: Declare term_ntproc correctly.
13148
13149         * nt.c: Remove incorrect declaration of get_home_directory which
13150         is declared correctly in lisp.h.
13151
13152         * keymap.c (get_keyelt): Avoid compiler warnings.
13153         (raw_lookup_key_mapper): Avoid compiler warnings.
13154
13155         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13156
13157         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13158
13159         * filemode.c (mode_string): Avoid compiler warnings.
13160
13161         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13162         avoid warning.
13163
13164         * events-mod.h: Undef some things that winuser.h defines differently.
13165
13166         * data.c (Faset): Avoid compiler warnings.
13167
13168         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13169
13170 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13171
13172         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13173         Fall through to simple beep on error.
13174         Replace "extern" by real header file.
13175
13176         * linuxplay.c: Use nativesound.h
13177         (play_sound_data): Return error code. Be less verbose on error.
13178
13179         * sunplay.c: Use nativesound.h
13180         (play_sound_data): Return error code. Be less verbose on error.
13181
13182         * ntplay.c: Use nativesound.h
13183         (play_sound_data): Return fake error code
13184
13185         * sgiplay.c: Use nativesound.h
13186         (play_sound_data): Return error code
13187
13188         * hpplay.c: Use nativesound.h, partially implement
13189         new error code. Break compilation until finished.
13190         (play_sound_data): error code.
13191
13192         * nativesound.h (play_sound_file):
13193           (play_sound_data): Prototype in new header.
13194
13195 2000-03-31  Andy Piper  <andy@xemacs.org>
13196
13197         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13198         for toggle and radio buttons.
13199         (image_instantiator_buttons): use it.
13200
13201 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13202
13203         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13204         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13205         found. Scrollbar event probably belonged to some old config.
13206
13207 2000-03-31  Andy Piper  <andy@xemacs.org>
13208
13209         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13210         than 1.
13211         (initialize_widget_image_instance): default layout to
13212         LAYOUT_HORIZONTAL rather than 0.
13213         (widget_instantiate): reverse the item list at the end rather than
13214         every iteration.
13215         (layout_layout): re-code for the border text at the front of the
13216         item list rather than at the end.
13217         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13218         provided by the user.
13219         (widget_query_geometry): comment.
13220
13221 2000-03-30  Andy Piper  <andy@xemacs.org>
13222
13223         * glyphs-widget.c (image_instantiator_layout): allow standard
13224         widget keywords in layouts.
13225
13226         * gutter.c (output_gutter): cope with nil gutter contents.
13227
13228         * frame.c (Fset_frame_properties): add gutter docs.
13229
13230 2000-03-29  Andy Piper  <andy@xemacs.org>
13231
13232         * toolbar-msw.c (TBSTYLE_FLAT): add.
13233         (mswindows_output_toolbar): minor fiddling.
13234
13235 2000-03-29  Andy Piper  <andy@xemacs.org>
13236
13237         * gutter.c (output_gutter): force gutter size recalculation if
13238         what we are trying to display won't fit.
13239         (update_gutter_geometry): new function. A per-gutter version of
13240         update_frame_gutter_geometry.
13241         (update_frame_gutter_geometry): use it.
13242         (redraw_exposed_gutter): add extra debugging output.
13243
13244 2000-03-28  Mike Alexander  <mta@arbortext.com>
13245
13246         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13247         (pdump_file_unmap): Implement it on Windows
13248         (pdump_file_get): Save alocated handles for pdump_file_unmap
13249
13250 2000-03-28  Andy Piper  <andy@xemacs.org>
13251
13252         * gui.c (get_gui_callback): treat Quit specially.
13253
13254 2000-03-27  Andy Piper  <andy@xemacs.org>
13255
13256         * glyphs.c (image_instantiate): be careful to check in the same
13257         way we assigned.
13258
13259 2000-03-27  Didier Verna  <didier@xemacs.org>
13260
13261         * config.h.in: define the proper SMART_INCLUDE macro.
13262         handle renaming of `foo_h_path' to `foo_h_file'.
13263
13264         * database.c: ditto.
13265
13266         * emacs.c: ditto.
13267
13268         * linuxplay.c: ditto.
13269
13270         * terminfo.c: ditto.
13271
13272         * tooltalk.h: ditto.
13273
13274 2000-03-27  Andy Piper  <andy@xemacs.org>
13275
13276         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13277         gets updated whenever the face might have changed.
13278
13279 2000-03-26  Mike Alexander  <mta@arbortext.com>
13280
13281         * dumper.c (pdump_resource_free): Fix the comment.
13282
13283 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13284
13285         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13286
13287 2000-03-22  Mike Alexander  <mta@arbortext.com>
13288
13289         * dumper.c: Include Windows headers on Windows
13290         (pdump_resource_free): Add a body to the function
13291         (pdump_load): exe_name -> exe_path and add some comments.
13292
13293 2000-03-25  Mike Alexander  <mta@arbortext.com>
13294
13295         * gui.c (copy_gui_item_tree): Return a value in all cases
13296
13297 2000-03-21  Didier Verna  <didier@xemacs.org>
13298
13299         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13300         lwlib/config.h.in.
13301         (SMART_INCLUDE): new macro.
13302         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13303         the proper location.
13304
13305         * postgresql.c: use it.
13306
13307         * inline.c: ditto.
13308
13309 2000-03-24  Andy Piper  <andy@xemacs.org>
13310
13311         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13312         do this.
13313
13314 2000-03-24  Andy Piper  <andy@xemacs.org>
13315
13316         * redisplay-output.c (compare_runes): use image_instance_changed
13317         to detect changes. Do not depend on glyphs_changed, only depend on
13318         dirtiness.
13319          (redisplay_output_layout): add debug messages.
13320         (compare_runes): ditto.
13321
13322         * glyphs.h: declare new functions.
13323         (struct Lisp_Image_Instance): remove percent and associated
13324         accessors.
13325
13326         * gui.h: declare new copying functions.
13327
13328         * gui.c (copy_gui_item_tree): new function.
13329         (copy_gui_item): new function.
13330         (gui_item_id_hash): revert to standard hash.
13331         (gui_item_hash): ditto.
13332         (gui_item_hash_internal): deleted.
13333         (mark_gui_item): mark value.
13334         (gui_item_add_keyval_pair): add value.
13335         (gui_item_init): ditto.
13336         (gui_add_item_keywords_to_plist): ditto.
13337         (gui_item_equal): ditto.
13338         (syms_of_gui): add Q_value.
13339
13340         * glyphs-x.c (x_progress_gauge_update): use pending items and
13341         value for setting the state.
13342         (x_update_widget): don't set items from pending here.
13343
13344         * glyphs-widget.c (update_widget): update items here.
13345         (progress_gauge_set_property): use items for storing value. Put
13346         new value in pending items.
13347
13348         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13349         items for new value. Convert percent -> value.
13350         (mswindows_tab_control_update): don't update items here.
13351
13352         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13353         (update_subwindow): ditto.
13354         (image_instance_changed): new function. Compare hash values and
13355         past and present widget items.
13356         (image_instantiate): We more careful about where we instantiate
13357         things.
13358         (image_instantiate): add error checking.
13359
13360         * gutter.c (syms_of_gutter): use -hook.
13361
13362 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13363
13364         * console-tty.c (Fset_console_tty_input_coding_system): Use
13365         Qkeyboard.
13366         (Fset_console_tty_output_coding_system): Use Qterminal.
13367         (tty_init_console): Use Qkeyboard and Qterminal.
13368
13369 2000-03-21  Ben Wing  <ben@xemacs.org>
13370
13371         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13372         From Mike Alexander <mta@arbortext.com>.
13373
13374 2000-03-21  Ben Wing  <ben@xemacs.org>
13375
13376         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13377         process brokenness.  Proper implementation to come.
13378         * callproc.c:
13379         Rename call-process-internal to old-call-process-internal.
13380         New impl. in process.el.
13381
13382 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13383
13384         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13385
13386 2000-03-20  Andy Piper  <andy@xemacs.org>
13387
13388         * glyphs.c (full_list_hash): make hashes of the same elements in
13389         different orders return different values.
13390
13391 2000-03-20  Martin Buchholz <martin@xemacs.org>
13392
13393         * XEmacs 21.2.32 is released.
13394
13395 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13396
13397         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13398         (DFC_MALLOC_USE_CONVERTED_DATA):
13399         Add aliasing-safe casts to allow use with char* or unsigned char*
13400         lvalues.
13401
13402         * eldap.c (Fldap_open):
13403         (Fldap_search_basic):
13404         (Fldap_add):
13405         (Fldap_modify):
13406         Make C++-compilable.
13407         Make sure GCPRO'ed variables are initialized.
13408         Use temp variables to avoid repeated calls to Flength.
13409
13410 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13411
13412         * sysfile.h:
13413         Make sure PATH_MAX is always defined.
13414         Include limits.h for PATH_MAX.
13415         Deprecate use of MAXPATHLEN.
13416
13417 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13418
13419         * emacs.c: Add reinit_vars_of_fileio.
13420         * symsinit.h: Add reinit_vars_of_fileio.
13421         * fileio.c (reinit_vars_of_fileio): New.
13422         * fileio.c (Fmake_temp_name):
13423         Initialize temp_name random number from microseconds to make
13424         collisions even less likely.  Initialize always at process startup
13425         time.  (make-temp-name) used to return the same file name twice in
13426         a row when PDUMP.
13427         Random stylistic fiddling.
13428         Comment fixes.
13429
13430 2000-03-20  Andy Piper  <andy@xemacs.org>
13431
13432         * glyphs.c (image_instantiate): allow text glyphs to be
13433         instantiated in the minibuffer window.
13434
13435 2000-03-19  Andy Piper  <andy@xemacs.org>
13436
13437         * glyphs.c (image_instance_hash): be careful about which items we
13438         hash on.
13439
13440         * glyphs-widget.c (tab_control_set_property): record into pending
13441         items rather than the actual items.
13442
13443         * glyphs-x.c (x_update_widget): use pending items to update with.
13444
13445         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13446         to update with.
13447
13448         * glyphs.c (mark_image_instance): mark pending items.
13449
13450         * window.c (Fset_window_configuration): record the buffer.
13451         (Fselect_window): totally revert previous change which breaks many
13452         things.
13453
13454 2000-03-18  Andy Piper  <andy@xemacs.org>
13455
13456         * glyphs-msw.c (mswindows_tab_control_update): force selected
13457         item.
13458
13459         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13460         window domain cache, otherwise we get inconsistencies at
13461         startup. There is something fishy at startup which can lead to the
13462         minibuffer being the selected window when the gutter content is
13463         instantiated.
13464
13465         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13466         gcpros.
13467         (parse_gui_item_tree_children): ditto.
13468         (parse_gui_item_tree_item): ditto.
13469
13470         * glyphs.c (Fupdate_widget_instances): return something.
13471
13472 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13473
13474         * window.c (Fselect_window): Undo 2000-03-17 change.
13475
13476 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13477
13478         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13479         against v7.0 libraries.  Insta-coredump city until the postgres
13480         folks fix it.
13481
13482 2000-03-17  Andy Piper  <andy@xemacs.org>
13483
13484         * faces.c (complex_vars_of_faces): don't give the widget face an
13485         inherited background pixmap.
13486
13487         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13488         selected item.
13489
13490         * event-stream.c (Fdispatch_non_command_events): return something.
13491
13492         * gutter.c (output_gutter): use widget face.
13493         (clear_gutter): ditto.
13494
13495         * NEWS: adjust again.
13496
13497         * window.c (Fselect_window): make sure this runs to completion to
13498         avoid oddities with Fset_window_configuration.
13499         (Fcurrent_window_configuration): in general do not save the
13500         minibuffer as the selected window.
13501
13502         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13503
13504 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13505
13506         * emacs.c (Frunning_temacs_p): Revert previous patch.
13507         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13508
13509 2000-03-16  Andy Piper  <andy@xemacs.org>
13510
13511         * glyphs-x.c (x_tab_control_update): if no widget values then
13512         return.
13513
13514         * NEWS: update for new features.
13515
13516         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13517         synthetic event to the native system.
13518         (reinit_vars_of_event_Xt): set force_event_pending to
13519         emacs_Xt_force_event_pending.
13520
13521         * events.h (struct event_stream): add force_event_pending.
13522
13523         * specifier.c (recompute_one_cached_specifier_in_window): add
13524         comment.
13525
13526         * redisplay.c (redisplay_frame): don't call
13527         update_frame_subwindows. Reset subwindow cachels when
13528         subwindows_changed, removing this was an optimization too far.
13529
13530         * redisplay-output.c (compare_runes): reorganize so that we catch
13531         glyph changes when we want them. Set optimize_output when this
13532         would help layouts.
13533         (redisplay_output_layout): remove frame_really_changed, use
13534         optimize_output instead.
13535
13536         * redisplay-msw.c (mswindows_output_display_block): reset
13537         optimize_output after outputting a glyph.
13538         * redisplay-x.c (x_output_display_block): ditto.
13539         * redisplay-tty.c (tty_output_display_block): ditto.
13540
13541         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13542         functions.
13543         (gutter_specs_changed): do specific gutter positions.
13544         (top_gutter_specs_changed): new function. Only update the
13545         specified gutter specs.
13546         (bottom_gutter_specs_changed): ditto.
13547         (left_gutter_specs_changed): ditto.
13548         (right_gutter_specs_changed): ditto.
13549
13550         * gui.c (gui_item_hash_internal): new function, does a real hash.
13551         (gui_item_id_hash): use it.
13552         (gui_item_hash): hash the eval'ed gui_item.
13553
13554         * gui-x.c (popup_selection_callback): send an eval event to call
13555         Fupdate_widget_instances.
13556
13557         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13558         to call Fupdate_widget_instances.
13559
13560         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13561         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13562
13563         * glyphs.c: (update_frame_subwindows): deleted.
13564         (Fupdate_widget_instances): new function for updating the dirty
13565         state of widgets that might have changed.
13566         (syms_of_glyphs): add Qupdate_widget_instances.
13567         (full_list_hash): hash a list completely.
13568         (image_instance_hash): use it for items and properties.
13569
13570         * frame-msw.c (mswindows_size_frame_internal): remove unused
13571         variable.
13572
13573         * faces.h (struct face_cachel): fix comment.
13574
13575         * event-stream.c (Fdispatch_non_command_events): new
13576         function. Process non-command events, forcing an event cycle
13577         beforehand.
13578         (syms_of_event_stream): declare.
13579         (event_stream_force_event_pending): new function. Force an event
13580         on the native event queue so that an event cycle will occur next
13581         time we check.
13582
13583         * event-msw.c:
13584         (struct ntpipe_shove_stream):
13585         (mswindows_enqueue_dispatch_event):
13586         (mswindows_dequeue_dispatch_event):
13587         (mswindows_cancel_dispatch_event):
13588         (mswindows_pump_outstanding_events):
13589         (mswindows_drain_windows_queue):
13590         (mswindows_handle_paint):
13591         (mswindows_wnd_proc):
13592         (mswindows_key_to_emacs_keysym):
13593         (get_process_input_waitable):
13594         (emacs_mswindows_delete_stream_pair): re-indent file.
13595         (mswindows_need_event): do not process further fds if the windows
13596         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13597         fixes the 100% cpu problem.
13598         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13599
13600 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13601
13602         * alloc.h: New.
13603         * dumper.h: New.
13604         * dumper.c: New.
13605
13606         * emacs.c: Moved dump file searching to dumper.c.
13607         (Frunning_temacs_p): Fixed.
13608
13609         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13610         last_lrecord_type_index_assigned.
13611
13612 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13613
13614         * symsinit.h: Added reinit parameter to init_console_stream
13615         declaration.
13616
13617         * lisp.h: Added file parameter to pdump_load declaration.
13618
13619         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13620         support.  Added dump file searching.
13621
13622         * config.h.in: Added EMACS_PROGNAME.
13623
13624         * console-stream.c (init_console_stream): Fix reinitialisation
13625         when running from temacs.
13626
13627         * alloc.c (pdump): Add id support.
13628         (pdump_load): Add file parameter and signature/id support.
13629
13630         * Makefile.in.in: Add full pdump support.
13631
13632 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13633
13634         * postgresql.c: Update documentation to reflect latest code
13635         status.
13636         (print_result): Show tuple counts in printed representation when
13637         appropriate.
13638         (Fpq_put_nbytes): MULE-ize.
13639         (Fpq_get_line_async): Ditto.
13640
13641 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13642
13643         * postgresql.c (Fpq_lo_import): Fix return value.
13644         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13645
13646 2000-03-13  Ben Wing  <ben@xemacs.org>
13647
13648         * alloc.c (pdump_load):
13649         Fix compile warning under mswin.
13650
13651 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13652
13653         * postgresql.c: Mule-ization, bug fixes.
13654         Use PG_CODING to encapsulate coding system name changes.
13655         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13656         (pg-coding-system): Create.
13657
13658         (Fpq_conn_defaults): Mule-ize.
13659         (Fpq_connectdb): Mule-ize & bug fix.
13660         (Fpq_connect_start): Mule-ize.
13661         (Fpq_set_client_encoding): Mule-ize.
13662         (Fpq_finish): Document `DEAD' connection status.
13663         (Fpq_clear): Ditto.
13664         (Fpq_pgconn): Mule-ize.
13665         (Fpq_exec): Mule-ize & bug fix.
13666         (Fpq_send_query): Ditto.
13667         (Fpq_get_result): Ditto.
13668         (Fpq_res_status): Mule-ize.
13669         (Fpq_result_error_message): Mule-ize.
13670         (Fpq_ntuples): fix comments.
13671         (Fpq_fname): Mule-ize.
13672         (Fpq_fnumber): Mule-ize.
13673         (Fpq_ftype): fix comments.
13674         (Fpq_get_value): Mule-ize.
13675         (Fpq_cmd_status): Ditto.
13676         (Fpq_cmd_tuples): Ditto.
13677         (Fpq_oid_value): Ditto.
13678         (Fpq_notifies): Ditto.
13679         (Fpq_lo_import): Ditto.
13680         (Fpq_lo_export): Ditto.
13681         (Fpq_get_line): Ditto.
13682         (Fpq_put_line): Mule-ize and bug fix.
13683         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13684
13685 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13686
13687         * postgresql.c (vars_of_postgresql): Mule-ize.
13688         (Fpq_conn_defaults): Ditto.
13689
13690 2000-03-12  Ben Wing  <ben@xemacs.org>
13691
13692         * alloc.c (Fmake_byte_code):
13693         * alloc.c (debug_string_purity_print):
13694         * alloc.c (pdump_backtrace):
13695         * alloc.c (pdump_get_indirect_count):
13696         * alloc.c (pdump_register_sub):
13697         * alloc.c (pdump_register_object):
13698         * alloc.c (pdump_register_struct):
13699         * alloc.c (pdump_dump_data):
13700         * alloc.c (pdump_reloc_one):
13701         Minor cleanups.
13702
13703         * console-msw.c:
13704         * console-msw.c (GetConsoleHwnd):
13705         * console-msw.c (msw_hide_console):
13706         * console-msw.c (msw_show_console):
13707         * console-msw.c (msw_ensure_console_buffered):
13708         * console-msw.c (msw_output_console_string):
13709         * console-msw.c (console_type_create_mswindows):
13710
13711         a) Added functions to manipulate the console window for use with
13712         shell support.
13713
13714         b) Added support for writing text to the console, which is now
13715         used under Windows when xemacs is not being run non-interactively,
13716         to write text that would otherwise be destined for stdout because
13717         under these circumstances, text written to stdout tends to
13718         disappear and not be seen.
13719
13720         * console-msw.h:
13721         * event-Xt.c:
13722         * event-Xt.c (x_event_to_emacs_event):
13723         * event-Xt.c (describe_event_window):
13724         * events-mod.h (XEMACS_MOD_CONTROL):
13725         * events.c:
13726         * events.c (Fmake_event):
13727         * events.c (character_to_event):
13728         * events.c (event_to_character):
13729         * events.c (format_event_object):
13730         * events.c (Fevent_modifiers):
13731         * events.h:
13732         * events.h (struct key_data):
13733         * events.h (struct button_data):
13734         * events.h (struct misc_user_data):
13735         * frame-x.c (Fcde_start_drag_internal):
13736         * frame-x.c (Foffix_start_drag_internal):
13737         * gpmevent.c (Freceive_gpm_event):
13738         * keymap.c:
13739         * keymap.c (bucky_sym_to_bucky_bit):
13740         * keymap.c (control_meta_superify):
13741         * keymap.c (make_key_description):
13742         * keymap.c (keymap_lookup_directly):
13743         * keymap.c (create_bucky_submap):
13744         * keymap.c (keymap_store):
13745         * keymap.c (define_key_check_and_coerce_keysym):
13746         * keymap.c (define_key_parser):
13747         * keymap.c (define_key_alternate_name):
13748         * keymap.c (Fdefine_key):
13749         * keymap.c (raw_lookup_key_mapper):
13750         * keymap.c (struct map_keymap_unsorted_closure):
13751         * keymap.c (map_keymap_unsorted_mapper):
13752         * keymap.c (map_keymap_sort_predicate):
13753         * keymap.c (map_keymap_sorted):
13754         * keymap.c (accessible_keymaps_mapper_1):
13755         * keymap.c (where_is_recursive_mapper):
13756         * keymap.c (describe_map_mapper):
13757         * keymap.c (describe_map_sort_predicate):
13758         * keymap.c (describe_map):
13759         * keymap.c (complex_vars_of_keymap):
13760         And a number of other files, the key modifier preprocessor
13761         constants that xemacs uses have names that conflict with constants
13762         defined under MS Windows for other purposes, so they were renamed
13763         to begin with the prefix XEMACS_. The variables that hold such
13764         modifiers were changed to consistently be of type int to fix
13765         various compile warnings.
13766
13767         * console.c (complex_vars_of_console):
13768         * device.c:
13769         * device-msw.c:
13770         * device-msw.c (mswindows_finish_init_device):
13771         * device-msw.c (msw_get_workspace_coords):
13772         * device-msw.c (mswindows_device_system_metrics):
13773         and various other files, added support for a new
13774         device property called offset-workspace which returns the position
13775         of the upper left corner of the workspace area and goes along with
13776         the existing size-workspace property.
13777
13778         * dialog-msw.c:
13779         * dialog-msw.c (push_bufbyte_string_as_unicode):
13780         * dialog-msw.c (mswindows_popup_dialog_box):
13781         Added support for XEmacs-style accelerator specifications in
13782         button text.  Note: I didn't add support for this under X Windows,
13783         and somebody needs to do this.
13784
13785         * dialog.c:
13786         * dialog.c (Fpopup_dialog_box):
13787         Documented the support for accelerators that was just mentioned.
13788
13789         editfns.c (get_home_directory): Changed behavior under Windows
13790         when HOME not defined; former behavior was irretrievably broken.
13791
13792         * emacs.c:
13793         * emacs.c (main_1):
13794         * emacs.c (main):
13795         * minibuf.c (clear_echo_area_internal):
13796         * minibuf.c (echo_area_append):
13797         * print.c:
13798         * print.c (std_handle_out_external):
13799         * print.c (std_handle_out_va):
13800         * print.c (fatal):
13801         * print.c (write_string_to_stdio_stream):
13802         * print.c (output_string):
13803         * print.c (debug_print):
13804         * print.c (debug_backtrace):
13805         * print.c (debug_short_backtrace):
13806         Cleaned up the code that prints text to stdout so that this can be
13807         changed to output into a console window instead under MS Windows,
13808         as described above.
13809
13810         * eval.c:
13811         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13812         * eval.c (internal_catch):
13813         * eval.c (unwind_to_catch):
13814         * eval.c (throw_or_bomb_out):
13815         * eval.c (condition_case_1):
13816         * eval.c (signal_1):
13817         * eval.c (check_error_state_sanity):
13818         * eval.c (call_with_suspended_errors_1):
13819         * eval.c (call_with_suspended_errors):
13820         * eval.c (reinit_vars_of_eval):
13821         Added code to catch throw loops and check for a pesky bug that may
13822         be gone now.
13823
13824         * event-msw.c:
13825         * event-msw.c (key_needs_default_processing_p):
13826         * event-msw.c (mswindows_wnd_proc):
13827         * event-msw.c (mswindows_modifier_state):
13828         * event-msw.c (emacs_mswindows_quit_p):
13829         * event-msw.c (vars_of_event_mswindows):
13830         a) Added support for using the alt key to select menu items as is
13831         standard under MS Windows.  This is controlled using the variable
13832         menu-accelerator-enabled, just like under X Windows.  There is an
13833         option on the options menu to turn this support on.  I really
13834         think that it should be on by default under Windows, but I'm not
13835         going to make this change yet.
13836
13837         b)  Added support for dynamic display size changes under Windows.
13838
13839         * event-stream.c:
13840         * event-stream.c (maybe_echo_keys):
13841         * event-stream.c (Fnext_event):
13842         * event-stream.c (command_builder_find_leaf):
13843         * event-stream.c (lookup_command_event):
13844         * event-stream.c (execute_command_event):
13845         * event-stream.c (pre_command_hook):
13846         * event-stream.c (post_command_hook):
13847         * event-stream.c (syms_of_event_stream):
13848         * event-stream.c (vars_of_event_stream):
13849         * event-stream.c (complex_vars_of_event_stream):
13850         * events.h (struct command_builder):
13851
13852         a) Tried to clean up a little bit the horribly written x-specific
13853         accelerator code that crept into this file.  I moved this code
13854         into menubar-x.c where it belongs. I also needed to move the
13855         command builder structure into the file events.h because it is
13856         accessed directly by this accelerator code.  What I didn't do, but
13857         which should be done at some point, is to properly abstract this
13858         code using device methods instead of the kludgy way that it
13859         currently hooks into the event code.
13860
13861         b) Added the lisp variables this-command-properties and
13862         last-command- properties, which should be used to synchronize two
13863         adjacent commands in preference to playing games with the variable
13864         this-command, which is typically what happens.
13865
13866         c) Added some slightly nasty code to hook into the lisp support
13867         for shifted- motion-key selection.  This is actually necessary for
13868         somewhat complicated reasons, which are described in
13869         simple.el. (NB: I think the proper thing would be to have the code
13870         that calls the pre and post command hooks also call out to generic
13871         lisp functions in simple.el, where all built-in stuff could be
13872         added.  I will think about this more.)
13873
13874         * event-unixoid.c (poll_fds_for_input):
13875         * lread.c (readchar):
13876         * redisplay-tty.c (tty_clear_frame):
13877         * redisplay-x.c (x_get_gc):
13878         * signal.c (interrupt_signal):
13879         And a whole bunch of other files: fixed up places that printed
13880         directly to stderr to instead call the function stderr_out so that
13881         the changes I made under Windows work correctly.
13882
13883         * filemode.c (mode_string):
13884         Warning fixes.
13885
13886         * frame-msw.c:
13887         * frame-msw.c (mswindows_size_frame_internal):
13888         Fixed the computation of frame size and position to keep the frame
13889         within the workspace area, rather than within the physical
13890         dimensions of the screen, so that the frame doesn't overlap window
13891         manager decorations, such as the start menu and toolbar, typically
13892         at the bottom of the screen.
13893
13894         * frame.c (vars_of_frame):
13895         Changed the default frame title format under MS Windows to consist
13896         of buffername-XEmacs, which is standard under MS Windows.  I think
13897         it might be a good idea to change this everywhere because I think
13898         it is superior to the current frame title format, but this is the
13899         kind of change that is likely to cause some people to get annoyed,
13900         so I'm not making it.
13901
13902         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13903
13904         * gui-msw.c (mswindows_handle_gui_wm_command):
13905         Fixed compile warnings.
13906
13907         * gui-x.c:
13908         * gui-x.c (strdup_and_add_accel):
13909         * gui-x.c (button_item_to_widget_value):
13910         * gui-x.h:
13911         Added code to automatically put an accelerator onto the beginning
13912         of menu items that don't have one as is now the standard, and is
13913         described more later.  Also fixed things so that the menu item
13914         name can be an evaluated expression, again a new standard.
13915
13916         * gui.c:
13917         * gui.c (gui_item_add_keyval_pair):
13918         * gui.c (make_gui_item_from_keywords_internal):
13919         * gui.c (gui_add_item_keywords_to_plist):
13920         * gui.c (gui_item_accelerator):
13921         * gui.c (gui_name_accelerator):
13922         * gui.c (gui_item_included_p):
13923         * gui.c (gui_item_display_flush_left):
13924         * gui.c (gui_item_display_flush_right):
13925         * gui.c (parse_gui_item_tree_item):
13926         * gui.c (parse_gui_item_tree_children):
13927         * gui.c (parse_gui_item_tree_list):
13928         Mule-ized.  Cleanup.  GCPRO addition.
13929
13930         * line-number.c (buffer_line_number):
13931         * lisp.h:
13932         * lisp.h (EMACS_INT_MAX):
13933         Added the manifest constant EMACS_INT_MIN corresponding to the
13934         existing constant EMACS_INT_MAX.  This is partially to fix compile
13935         warnings under Windows, and partly for cleanliness.
13936
13937         * menubar-msw.c:
13938         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13939         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13940         * menubar-msw.c (displayable_menu_item):
13941         * menubar-msw.c (populate_menu_add_item):
13942         * menubar-msw.c (populate_or_checksum_helper):
13943         * menubar-msw.c (populate_menu):
13944         * menubar-msw.c (update_frame_menubar_maybe):
13945         * menubar-msw.c (prune_menubar):
13946         * menubar-msw.c (msw_char_is_accelerator):
13947         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13948         * menubar-msw.c (mswindows_handle_wm_command):
13949         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13950         * menubar-msw.c (mswindows_handle_wm_initmenu):
13951         * menubar-msw.c (mswindows_update_frame_menubars):
13952         * menubar-msw.c (mswindows_free_frame_menubars):
13953         * menubar-msw.c (mswindows_popup_menu):
13954         Fixed a bug in handling accelerators where an extra character
13955         would be displayed in the menu item.  Also generalized the
13956         function displayable_menu_item because it is now used by the
13957         dialog box code as well.  And finally, added code in the functions
13958         that create the menubar to extract a list of accelerators for the
13959         top level menubar, which is used in the event code to determine
13960         whether a particular alt-key combination should be used to invoke
13961         a menu item, or should be passed through to access the standard
13962         XEmacs keymap binding for this key combination.
13963
13964         Much needed GCPROing.
13965
13966         * menubar-x.c:
13967         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13968         * menubar-x.c (menu_item_descriptor_to_widget_value):
13969         * menubar-x.c (restore_in_menu_callback):
13970         * menubar-x.c (x_popup_menu):
13971         * menubar-x.c (menu_move_up):
13972         * menubar-x.c (menu_move_down):
13973         * menubar-x.c (menu_move_left):
13974         * menubar-x.c (menu_move_right):
13975         * menubar-x.c (menu_select_item):
13976         * menubar-x.c (command_builder_operate_menu_accelerator):
13977         * menubar-x.c (menu_accelerator_junk_on_error):
13978         * menubar-x.c (command_builder_find_menu_accelerator):
13979         * menubar-x.c (Faccelerate_menu):
13980         * menubar.h:
13981         Moved a whole bunch of code here that was previously in
13982         event-stream.c as described above.  There is also code connected
13983         to the new standard of adding an accelerator to the beginning of
13984         menu items that don't have one as described above and below.
13985
13986         * menubar.c:
13987         * menubar.c (menu_parse_submenu_keywords):
13988         * menubar.c (Fmenu_find_real_submenu):
13989         * menubar.c (Fnormalize_menu_item_name):
13990         * menubar.c (syms_of_menubar):
13991         * menubar.c (vars_of_menubar):
13992         * menubar.c (complex_vars_of_menubar):
13993
13994         a) Cleaned up a bunch of documentation and improved it.
13995
13996         b) XEmacs now automatically adds an accelerator onto the beginning
13997         of any menu items that don't have one.  I did this because there
13998         will inevitably be some menu items on the main menubar that don't
13999         have accelerators on them because the package that adds that
14000         particular menu item hasn't yet been fixed up to have accelerators
14001         in them and it looked rather strange to have some items with and
14002         some items without accelerators, especially since even in items
14003         without accelerators, you can, at least under windows, still
14004         access the item through an accelerator corresponding to the first
14005         character in the item's name.  If people don't like this behavior,
14006         I can add a variable to turn it off optionally, but I'm not sure
14007         this is a good idea because we really do need to have accelerators
14008         on all of the menu items, and if a package doesn't like the
14009         accelerators being put on the first character, then it should put
14010         the accelerators where they belong.
14011
14012         c) I made a behavior change, which is that the descriptor that
14013         specifies the text of the menu item, which formerly was just a
14014         string, can now also be an evaluated expression.  This makes this
14015         descriptor parallel with all of the others, which could also be
14016         evaluated expressions.  This also obviates the need for the
14017         keyword :label, which was previously listed in the documentation
14018         as unimplemented, and which was for the same purpose.
14019
14020         d) GCPROing.
14021
14022         * ntproc.c:
14023         * ntproc.c (new_child):
14024         * ntproc.c (sys_spawnve):
14025         * ntproc.c (find_child_console):
14026         * ntproc.c (sys_kill):
14027         Fixed compile warnings.  By the way, this file should really go
14028         away entirely, and this will happen as soon as Kirill makes his
14029         final round of process cleanups, which affect the function
14030         call-process.
14031
14032         * process-nt.c:
14033         * process-nt.c (struct nt_process_data):
14034         * process-nt.c (find_process_from_pid):
14035         * process-nt.c (send_signal_the_nt_way):
14036         * process-nt.c (enable_child_signals):
14037         * process-nt.c (find_child_console):
14038         * process-nt.c (send_signal_the_95_way):
14039         * process-nt.c (nt_finalize_process_data):
14040         * process-nt.c (ensure_console_window_exists):
14041         * process-nt.c (nt_create_process):
14042         * process-nt.c (nt_kill_child_process):
14043         * process-nt.c (nt_kill_process_by_pid):
14044         * process-nt.c (nt_open_network_stream):
14045         * process-nt.c (vars_of_process_nt):
14046         Copied over code from Emacs 20.5 to correctly send signals to sub-
14047         processes under Windows 95.  Also added code to automatically
14048         create and hide console window when a sub-process is created under
14049         Windows 95, which obviates the need for the separate runemacs.exe
14050         executable, and finally implemented some variables that were
14051         implemented in Emacs 20.5, but previously not in XEmacs.  These
14052         include mswindows- start-process-share-console and
14053         mswindows-start-process-inherit-error-mode. (Both of these only
14054         apply to Windows 95.)
14055
14056         * regex.c (regex_compile): Fixed a compile warning.
14057
14058         * select-msw.c:
14059         * select-msw.c (mswindows_own_selection):
14060         * select-msw.c (mswindows_get_foreign_selection):
14061         * select-msw.c (mswindows_disown_selection):
14062         * select-msw.c (console_type_create_select_mswindows):
14063         * select-msw.c (syms_of_select_mswindows):
14064         Cleaned up the file and implemented the device method
14065         selection_exists_p, which had accidentally been left out.  Also
14066         removed four lisp functions that were remnants from before the
14067         time when the selection code was properly device abstracted.
14068         These functions are no longer needed because there are generic
14069         equivalents, and because they were added recently and don't exist
14070         in FSF Emacs, I don't think there's any problem with just deleting
14071         them.
14072
14073         * sysdep.c:
14074         * sysdep.c (sys_subshell):
14075         Fixed a compile warning, although in this case there's probably
14076         something wrong with this code, and it ought to be looked into
14077         more thoroughly by somebody who understands it.
14078
14079         * window.c:
14080         * window.c (Fwindow_text_area_height):
14081         * window.c (Fwindow_width):
14082         * window.c (Fwindow_full_width):
14083         * window.c (Fwindow_pixel_width):
14084         * window.c (debug_print_window):
14085         * window.c (syms_of_window):
14086         Added functions window-text-area-height and window-full-width,
14087         which are functions for returning various width and height
14088         characteristics of a window. (One of these functions is necessary
14089         for making the file dialog box work correctly, and the other one
14090         was added for completeness.)  Also added a table to the
14091         documentation for window-height which describes the entire scheme
14092         for accessing width and height characteristics of a window.
14093
14094 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14095
14096         * nt.c (fstat): Added a comment for another problem with
14097         non-encapsulated [f]stat(), reported by Adrian Aichner
14098         <aichner@ecf.teradyne.com>.
14099
14100 2000-03-11  Andy Piper  <andy@xemacs.org>
14101
14102         * window.c (make_dummy_parent): initialize subwindow instance
14103         cache.
14104         (Fset_window_configuration): zero extent_modiff.
14105
14106 2000-03-10  Andy Piper  <andy@xemacs.org>
14107
14108         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14109         more changes can be triggered.
14110         (Fredisplay_frame): ditto.
14111         (Fredraw_device): ditto.
14112         (Fredisplay_device): ditto.
14113         (redisplay_frame): make non-static.
14114         (redisplay_frame): call update_frame_gutter_geometry outside of
14115         display proper.
14116
14117         * gutter.h: declare update_frame_gutter_geometry.
14118
14119         * redisplay.h: declare redisplay_frame.
14120
14121         * gutter.c (update_frame_gutter_geometry): move geometry changes
14122         in update_frame_gutters here. Geometry changes can only occur
14123         outside of redisplay.
14124         (update_frame_gutters): remove geometry change code.
14125         (Fredisplay_gutter_area): make sure that we are in display when we
14126         update and that we have flushed any size changes.
14127
14128 2000-03-11  Andy Piper  <andy@xemacs.org>
14129
14130         * alloc.c (pdump_dump_data): remove i & count shadows.
14131
14132 2000-02-27  Mike Alexander  <mta@arbortext.com>
14133
14134         * sysdep.h: Declare pdump_read_file
14135
14136         * sysdep.c (pdump_read_file): New function
14137
14138         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14139         dump data
14140
14141 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14142
14143         * lrecord.h: add `lrecord_type_pgsetenv'.
14144
14145 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14146
14147         * symsinit.h: declare (vars|syms)_of* functions.
14148         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14149
14150 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14151
14152         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14153
14154         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14155         GCCs.
14156
14157         * emacs.c (main_1): Call postgres initialization code.
14158
14159         * postgresql.h: New file.  PostgreSQL RDBMS support.
14160         * postgresql.c: New file.
14161
14162 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14163
14164         * redisplay-output.c (redisplay_output_display_block): Disable
14165         redundant code.
14166
14167 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14168
14169         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14170         (Fcanna_henkan_next): Ditto.
14171         (Fcanna_bunsetu_henkou): Ditto.
14172         (Fcanna_henkan_kakutei): Ditto.
14173         (Fcanna_henkan_end): Ditto.
14174         (Fcanna_henkan_quit): Ditto.
14175         (Fcanna_henkan_next): Set retun value correctly.
14176         (c2mu): Use unsigned char instead of signed char.
14177
14178 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14179
14180         * emacs.c (main_1): Always call syms_of_gui.
14181         * inline.c: include gui.h
14182
14183 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14184
14185         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14186         converted to Lisp_Object.
14187         (Qtop_bottom): New variable.
14188         (syms_of_redisplay): Initialize it.
14189         * redisplay.h (Vvisible_bell): Ditto.
14190         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14191         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14192         only flash top and bottom.
14193
14194 2000-03-08  Andy Piper  <andy@xemacs.org>
14195
14196         * buffer.c (Frename_buffer): record new buffer name the right way.
14197
14198 2000-03-08  Andy Piper  <andy@xemacs.org>
14199
14200         * glyphs.c (update_subwindow): increase hash depth so that widget
14201         items get picked up properly.
14202
14203         * redisplay-output.c (compare_runes): increase hash depth so that
14204         widget items get picked up properly.
14205
14206 2000-03-08  Andy Piper  <andy@xemacs.org>
14207
14208         * gutter.c (output_gutter): add some debug.
14209
14210         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14211         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14212         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14213
14214         * redisplay-output.c (compare_runes): use display_hash to
14215         determine if glyphs really are not the same.
14216
14217         * glyphs.c (update_subwindow): check display_hash to see if
14218         anything really needs to be updated. If not then do
14219         nothing. Record the display_hash after updating.
14220         (image_instance_equal): compare the image_instance face also.
14221
14222 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14223
14224         * redisplay.h: Fix comment style.
14225
14226 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14227
14228         * consle-msw.h (struct mswindows_frame):
14229         Added new member paint_pending to indicate whether a WM_PAINT
14230         magic event has been queued for this frame.
14231
14232         * event-msw.c (mswindows_drain_windows_queue):
14233         Don't queue a WM_PAINT magic event if one is already queued.
14234         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14235
14236         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14237
14238 2000-03-07  Didier Verna  <didier@xemacs.org>
14239
14240         * dired.c: #include `regex.h' after `sysfile.h'.
14241
14242 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14243
14244         * sound.c (init_nas_sound): Fix compiler warning.
14245
14246         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14247         (FREE_STRUCT_P):
14248         (MARK_STRUCT_AS_FREE):
14249         (MARK_STRUCT_AS_NOT_FREE):
14250         Make `gcc -fstrict-aliasing' work properly.
14251
14252 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14253
14254         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14255         (mswindows_delete_device): Call CoUnnitialize().
14256
14257         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14258
14259 2000-02-25    <CraigL@DyCon.com>
14260
14261         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14262         <errno.h>.
14263
14264         * sysdep.c: This extern declaration for environ prevents MinGW
14265         from finding the variable in CRTDLL.DLL.
14266
14267         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14268         windows headers.
14269         (SHGFI_EXETYPE): ..
14270         (WM_MOUSEWHEEL): ..
14271         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14272         definitions.
14273         (MMRESULT): Removed, now defined in cygwin's windows headers.
14274         (TIMECAPS): ..
14275         (uid_t,gid_t,pid_t,ssize_t): ..
14276         (_timeb): Removed, MinGW defines both _timeb and timeb.
14277         (HAVE_H_ERRNO): Added.
14278         (HAVE_TZNAME): Added, configure is not detecting this.
14279
14280 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14281
14282         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14283         * syntax.c (syntax_match): Use it.
14284
14285         * cmds.c: Import auto-fill-chars from FSF Emacs.
14286         (Vauto_fill_chars): New variables.
14287         (internal_self_insert): Check Vauto_fill_chars.
14288         (vars_of_cmds):
14289         Declare auto-fill-chars as a Lisp variable and initialize it.
14290
14291 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14292
14293         * fileio.c (Fmake_symbolic_link):
14294         (Ffile_symlink_p):
14295         Run handlers even if local machine doesn't have symlinks.
14296
14297 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14298
14299         * event-msw.c (mswindows_drain_windows_queue):
14300         Don't generate paint magic events for non-XEmacs frames.
14301
14302 2000-03-05  Andy Piper  <andy@xemacs.org>
14303
14304         * redisplay.c (redisplay_frame): generate_displayable_area and
14305         friends assumes that we are not in GC, we therefore have to make
14306         sure that this doesn't happen.
14307
14308         * gutter.c (calculate_gutter_size): generate_displayable_area
14309         assumes that we are not in GC, we therefore have to make sure that
14310         this doesn't happen.
14311
14312 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14313
14314         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14315
14316 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14317
14318         * redisplay.c (regenerate_window): Make sure we set a sane value
14319         for end_pos even if we jump out of the loop.
14320         (regenerate_window): Answer Ben's question :-).
14321         (start_end_of_last_line): Add may_error argument.
14322         (start_of_last_line):
14323         (end_of_last_line): Pass may_error = 0.
14324         (end_of_last_line_may_error): New function.
14325         (pixel_to_glyph_translation): Use it, so we don't crash in
14326         event_to_glyph.
14327
14328 2000-03-04  Andy Piper  <andy@xemacs.org>
14329
14330         * window.h (struct window): add gutter_extent_modiff.
14331
14332         * window.c (allocate_window): zero out gutter_extent_modiff.
14333
14334         * redisplay.h: declare sync_display_line_structs.
14335
14336         * redisplay.c (add_glyph_rune): add a better comment.
14337
14338         * redisplay-output.c (sync_display_line_structs): made non-static.
14339         (compare_runes): remove unneccesary glyph cachel access.
14340
14341         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14342
14343         * gutter.c (output_gutter): don't output the gutter if extent
14344         changes only involve extents in buffers. use 4 sets of display
14345         lines.
14346         (gutter_extent_signal_changed_region_maybe): new function. Mark
14347         extents in gutters as changed.
14348         (update_frame_gutters): use 4 sets of display lines.
14349         (reset_gutter_display_lines): ditto.
14350         (free_frame_gutters): ditto.
14351         (redraw_exposed_gutter): force output of gutters.
14352
14353         * frame.h (struct frame): add 4 sets of gutter display lines.
14354
14355         * extents.c: (extent_changed_for_redisplay): signal changes to
14356         extents in strings in the gutter as well as extents in buffers.
14357
14358 2000-03-02  Andy Piper  <andy@xemacs.org>
14359
14360         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14361
14362         * frame.c (Fmake_frame): make sure the gutters get initialized
14363         after the frame is visible.
14364         (set_frame_selected_window): re-arrange compilation macros a
14365         little.
14366         (change_frame_size_1): mark gutters changed.
14367
14368         * device.c (Fset_device_class): mark gutters changed.
14369
14370 2000-03-01  Andy Piper  <andy@xemacs.org>
14371
14372         * window.c (window_top_frame_gutter_height): deleted.
14373         (window_bottom_frame_gutter_height): ditto.
14374         (window_left_frame_gutter_height): ditto.
14375         (window_right_frame_gutter_height): ditto.
14376         (window_top_gutter_height): don't use them.
14377         (window_bottom_gutter_height): ditto.
14378         (window_left_gutter_width): ditto.
14379         (window_right_gutter_width): ditto.
14380         (Fsplit_window): ditto.
14381         (Fwindow_pixel_edges): don't use border dimensions here.
14382
14383         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14384         (update_scrollbar_instance): ditto.
14385
14386         * redisplay.c (generate_modeline): don't take gutters into account.
14387         (generate_modeline): ditto.
14388         (redisplay_frame): small gutter display optimization.
14389
14390         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14391
14392         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14393         gutters into account.
14394
14395         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14396         for window position and type.
14397
14398         * gutter.c (get_gutter_coords): fix for frame gutters.
14399         (update_frame_gutters): update frame geometry if the gutters have
14400         changed.
14401         (init_frame_gutters): record current gutter geometries.
14402
14403         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14404         var.
14405         (mswindows_widget_instantiate): ditto.
14406
14407         * frame.h (struct frame): add current_gutter_bounds.
14408
14409         * frame.c (change_frame_size_1): position window and minibuffer
14410         appropriately taking into account the frame gutters.
14411
14412         * frame-x.c: (x_initialize_frame_size): take into account the
14413         frame gutters.
14414
14415 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14416
14417         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14418
14419 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14420
14421         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14422
14423 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14424
14425         * file-coding.c (reset_decoding_stream): Clear previous
14426         detection state when autodetect.
14427
14428 2000-02-29  Didier Verna  <didier@xemacs.org>
14429
14430         * extents.c (set_extent_glyph_1): don't require extents to be
14431         attached.
14432
14433 2000-02-27  Andy Piper  <andy@xemacs.org>
14434
14435         * gutter.c (Fset_default_gutter_position): don't default left and
14436         right gutter visibility to t.
14437         (Fset_default_gutter_position): run
14438         default-gutter-position-changed-hook.
14439         (syms_of_gutter): add default-gutter-position-changed-hook.
14440
14441 2000-02-26  Andy Piper  <andy@xemacs.org>
14442
14443         * specifier.c (Fmake_specifier): add gutter references.
14444
14445         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14446
14447         * lisp.h: declare Fvalid_plist_p.
14448
14449         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14450         as changed.
14451         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14452         well as its visibility so that it gets reconstructed.
14453         (construct_window_gutter_spec): new function. Construct a string
14454         to be displayed in the gutter from a plist of strings. Take care
14455         to only use elements that are declared as visible.
14456         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14457         WINDOW_GUTTER.
14458         (gutter_validate): allow plists of strings in the specifier.
14459         (gutter_specs_changed): construct the real_gutter from the gutter
14460         specs using construct_window_gutter_spec.
14461         (gutter_visible_validate): gutter-visible is a new specifier type.
14462         (Fgutter_visible_specifier_p): new function for the new specifier.
14463         (syms_of_gutter): declare gutter-visible and
14464         Fgutter_visible_specifier_p.
14465         (specifier_type_create_gutter): intitalize new gutter-visible
14466         specifier.
14467         (reinit_specifier_type_create_gutter): ditto.
14468         (specifier_vars_of_gutter): use new specifier type for gutter
14469         visibility.
14470         (init_frame_gutters): construct real_gutter correctly.
14471         (Fgutter_specifier_p): beef up documentation.
14472         (Fgutter_size_specifier_p): ditto.
14473
14474         * winslots.h: add real_gutter slots.
14475
14476 2000-02-25  Andy Piper  <andy@xemacs.org>
14477
14478         * device-msw.c: Be kind to older cygwin versions. From Raymond
14479         Toy <toy@rtp.ericsson.se>.
14480
14481         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14482         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14483
14484 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14485
14486         * elhash.c (MARK_OBJ): Practice macro hygiene.
14487
14488 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14489
14490         * miscplay.c: s/__inline__/inline/g;
14491         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14492         (get_device_compdc): INLINE ==> static inline
14493         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14494         find -name '*.h' | \
14495         xargs global-replace \
14496         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14497
14498 2000-02-25  Andy Piper  <andy@xemacs.org>
14499
14500         * window.c (window_top_frame_gutter_height): new function.
14501         (window_top_window_gutter_height): ditto.
14502         (window_top_gutter_height): use them.
14503         (window_bottom_frame_gutter_height): new function.
14504         (window_bottom_window_gutter_height): ditto.
14505         (window_bottom_gutter_height): use them.
14506         (window_left_window_gutter_width): new function.
14507         (window_left_frame_gutter_width): ditto.
14508         (window_left_gutter_width): use them.
14509         (window_right_window_gutter_width): new function.
14510         (window_right_frame_gutter_width): ditto.
14511         (window_right_gutter_width): use them.
14512         (window_pixel_height): new function. calulate window pixel height
14513         with frame gutter involvement.
14514         (Fsplit_window): calculate new sizes taking frame gutters into
14515         account.
14516         (window_char_height_to_pixel_height): don't include frame gutters.
14517         (window_char_height): use window_pixel_height.
14518         (window_pixheight): rename from window_pixel_height.
14519         (change_window_height): use it.
14520         (window_pixel_height_to_char_height): don't include frame gutters.
14521         (window_char_width_to_pixel_width): ditto.
14522
14523 2000-02-25  Andy Piper  <andy@xemacs.org>
14524
14525         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14526         if it is.
14527
14528 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14529
14530         * alloc.c (staticpro):
14531         (staticpro_nodump):
14532         (dumpstruct):
14533         (dumpopaque):
14534         (pdump_wire):
14535         (pdump_wire_list):
14536         (compact_string_chars):
14537         (pdump_dump_wired):
14538         Convert:  if (foo) abort();  ==>  assert (! foo);
14539
14540         * eldap.c (Fldap_search_basic):
14541         (Fldap_add):
14542         (Fldap_modify):
14543         (Fldap_delete):
14544         Fix compiler warnings, and possible crashes if (random) return
14545         value were to be used.
14546
14547 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14548
14549         * device-msw.c: Workaround ResetDC failure.
14550
14551         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14552         applying a devmode.
14553
14554         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14555         (mswindows_text_width): Do not start printer page.
14556
14557         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14558
14559         * glyphs-msw.c: Added image methods to msprinter console and
14560         msprinter-specific image instantiation.
14561
14562 2000-02-20  Mike Alexander  <mta@arbortext.com>
14563
14564         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14565         to avoid crashes when selection-sets-clipboard is on
14566         (mswindows_own_selection): ditto
14567
14568 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14569
14570         * glyphs-msw.c:
14571         * redisplay-msw.c (get_frame_dc):
14572         (get_frame_compdc):
14573         * console-msw.h:
14574         * device-msw.c (mswindows_init_device):
14575         (mswindows_delete_device):
14576         (msprinter_init_device):
14577         (msprinter_delete_device):
14578         * frame-msw.c (mswindows_init_frame_1):
14579         (mswindows_delete_frame):
14580         (msprinter_init_frame_3):
14581         (msprinter_delete_frame): Move compatible DC to device object from
14582         frame object, for both mswindows and msprinter. Only one at a time
14583         is needed, it is a real waste to have one per frame!
14584
14585 2000-02-23  Andy Piper  <andy@xemacs.org>
14586
14587         * glyphs.c: add dynamic width and height elements.
14588         (image_instance_equal): ditto.
14589
14590         * glyphs-widget.c (widget_query_geometry): calculate width and
14591         height dynamically if required.
14592         (initialize_widget_image_instance): initialize dynamic dimensions.
14593         (widget_instantiate): pick-up dynamic dimensions.
14594
14595         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14596         dynamic determination. Add appropriate macros.
14597
14598         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14599         dimensions safe.
14600         (WINDOW_GUTTER_SIZE): ditto.
14601         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14602
14603         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14604         inline.
14605         (get_frame_dc): ditto.
14606
14607         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14608         here.
14609
14610 2000-02-23  Martin Buchholz <martin@xemacs.org>
14611
14612         * XEmacs 21.2.31 is released.
14613
14614 2000-02-22  Ben Wing <ben@xemacs.org>
14615
14616         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14617
14618 2000-02-22  Andy Piper  <andy@xemacs.org>
14619
14620         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14621
14622 2000-02-21  Mike Sperber <mike@xemacs.org>
14623
14624         * .dbxrc:
14625         * .gdbinit:
14626         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14627         variables.
14628
14629 2000-02-21  Mike Sperber <mike@xemacs.org>
14630
14631         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14632
14633 2000-02-21  Martin Buchholz <martin@xemacs.org>
14634
14635         * XEmacs 21.2.30 is released.
14636
14637 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14638
14639         Performance hacking.
14640         * *.c (syms_of_*):
14641         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14642         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14643         * emacs.c (main_1):
14644         * lisp.h (DEFUN):
14645         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14646         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14647         * symeval.h (DEFVAR_SYMVAL_FWD):
14648         * symbols.c (guts_of_unbound_marker):
14649         Make all c_readonly objects also lisp_readonly and marked for life.
14650         * lrecord.h (struct lrecord_implementation):
14651         Document flags better.
14652         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14653         * lrecord.h (DECLARE_LRECORD):
14654         * lrecord.h (XSETRECORD):
14655         * lrecord.h (RECORDP):
14656         * lrecord.h (RECORD_TYPEP):
14657         * lrecord.h (RECORD_MARKER): New.
14658         * lrecord.h (error_check_*):
14659         * lrecord.h (CONCHECK_NONRECORD):
14660         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14661         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14662         * lrecord.h (set_lheader_implementation):
14663         * lrecord.h (enum lrecord_type): New.
14664         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14665         * alloc.c (disksave_object_finalization_1):
14666         * alloc.c (mark_object):
14667         * alloc.c (lrecord_type_index):
14668         * alloc.c (tick_lcrecord_stats):
14669         * alloc.c (Fgarbage_collect):
14670         * alloc.c (init_alloc_once_early):
14671         * alloc.c (pdump_load):
14672         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14673         * alloc.c (lrecord_type_index): Delete.
14674         Make lisp object type indexes be constant.
14675           Makes (byte-compile) 5% faster.
14676         Put all marker functions into their own array.
14677           Makes (garbage-collect) 5% faster.
14678         Optimize SYMBOL_VALUE_MAGIC_P.
14679           Makes (byte-compile) 2-3% faster.
14680         * config.h.in (gc_checking_assert): New.
14681         * alloc.c: Use gc_checking_assert().
14682         * .dbxrc: Make compatible with new object type implementation.
14683         * .gdbinit: Make compatible with new object type implementation.
14684         * alloc.c: Delete all symbols defined only for debugging, such as
14685         Lisp_Type_Vector and lrecord_charset.
14686
14687 2000-02-21  Andy Piper  <andy@xemacs.org>
14688
14689         * gui-msw.c (Fmswindows_shell_execute): fix file location
14690         problems.
14691
14692         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14693         unshowing so that set_window_buffer doesn't undo
14694         kill_buffer_hook's hard work.
14695
14696         * glyphs-widget.c (tab_control_query_geometry): don't count the
14697         first item when calculating geometry.
14698
14699         * glyphs.c (map_subwindow): remove redundant code.
14700         (update_frame_subwindows): be more circumspect about when to
14701         update subwindows.
14702
14703         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14704         when items haven't changed. Update faces if faces have changed as
14705         well as just the widget face.
14706         (x_tab_control_update): Update faces if faces have changed as well
14707         as just the widget face.
14708
14709 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14710
14711         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14712         registration.
14713         (build_syscolor_string): Use mswindows_color_to_string to try to
14714         get a named color.
14715         (mswindows_device_system_metrics): Reverse the foreground and
14716         background colors so that they match the documentation.
14717
14718         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14719         they match the default Windows palette.
14720         (mswindows_color_to_string): New function.
14721
14722 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14723
14724         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14725
14726 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14727
14728         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14729         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14730
14731         * symbols.c (init_symbols_once_early): Removed obsolete
14732         DATA_SEG_BITS related kludge.
14733         (defvar_magic): Ditto.
14734
14735         * malloc.c: Removed obsolete DATA_SEG_BITS
14736         * ralloc.c: Ditto.
14737         * mem-limits.h: Ditto.
14738
14739         * Makefile.in.in: Removed obsolete HAVE_SHM
14740         * emacs.c: Ditto.
14741
14742 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14743
14744         *  device-msw.c (mswindows_delete_device): Free DDE string
14745         handles.
14746
14747 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14748
14749         * keymap.c (get_keyelt):
14750         * unexnt.c (unexec):
14751         * vm-limit.c (memory_warnings):
14752         * ntheap.c (recreate_heap):
14753         * ntheap.h (UNINIT_PTR):
14754         * select-msw.c (Fmswindows_get_clipboard):
14755         (Fmswindows_set_clipboard):
14756         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14757         * objects-msw.c:
14758         * menubar-msw.c (displayable_menu_item):
14759         * glyphs-msw.c:
14760         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14761         * sysdep.c (sys_subshell):
14762         * process-nt.c (nt_create_process):
14763         * nt.c (normalize_filename):
14764         (dostounix_filename):
14765         (unixtodos_filename):
14766         * ntproc.c (win32_executable_type):
14767         * ntplay.c (play_sound_data_1):
14768         (play_sound_file):
14769         * editfns.c (get_home_directory):
14770         * event-msw.c (struct winsock_stream):
14771         (mswindows_dde_callback):
14772         * device-msw.c (msprinter_init_device):
14773         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14774
14775         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14776         mswindows_clear_toolbar were swapped!
14777
14778         * objects-msw.c:(colormap_t):
14779         (fontmap_t):
14780         * emacs.c (struct standard_args): Fixed const jumble.
14781
14782         * glyphs-widget.c (update_widget): Fixed comparison notation.
14783
14784         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14785
14786         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14787         __declspec(noreturn) syntax.
14788
14789 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14790
14791         * eldap.c (Fldap_open):
14792         (Fldap_search_basic):
14793         (Fldap_add):
14794         (Fldap_modify):
14795         Use new coding system conversion macros.
14796
14797 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14798
14799         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14800
14801 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14802
14803         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14804         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14805
14806         * eldap.c (Qadd, Qreplace): New constant symbols
14807         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14808         interruptions by XEmacs signals
14809         Remove unnecessary calls to slow_down_interrupts and
14810         speed_up_interrupts
14811         (Fldap_search_basic): Renamed from Fldap_search_internal
14812         Added new optional parameter VERBOSE that triggers the
14813         display of progress messages
14814         Remove unnecessary calls to slow_down_interrupts and
14815         speed_up_interrupts
14816         LDAP result code analysis rewritten
14817         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14818         (syms_of_eldap): Define the new symbols and functions
14819
14820
14821 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14822
14823         * realpath.c: Determine PATH_MAX maximally portably.
14824
14825         * insdel.c (bytecount_to_charcount): Optimize.
14826         The function used to be optimized for entirely ASCII sequences.
14827         Now it is optimized for successive characters from the same
14828         charset.  This also wins big for _mostly_ ASCII sequences.
14829
14830         * fileio.c (Ffile_truename): convert return from realpath() using
14831         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14832         - Rewrite GCPROing slightly.
14833
14834         * sysdep.c (sys_open): Do filename conversion, like all other
14835         sys_* functions.  Fixes bug:
14836         (let ((file-name-coding-system 'iso-8859-2))
14837            (write-region x y latin2-name))
14838         ==> writes filename using internal encoding.
14839
14840 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14841
14842         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14843         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14844         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14845         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14846         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14847         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14848         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14849         (CONST_IF_NOT_DEBUG): Delete.
14850         * alloc.c (this_one_is_unmarkable): Delete.
14851         (mark_object): Don't check for this_one_is_unmarkable. Use the
14852         c_readonly flag instead.
14853         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14854
14855 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14856
14857         * event-msw.c (mswindows_drain_windows_queue):
14858         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14859         away redundant repaint events.
14860
14861 2000-02-17  Andy Piper  <andy@xemacs.org>
14862
14863         * redisplay.h: declare mark_redisplay_structs.
14864
14865         * redisplay.c (redisplay_window):
14866         (redisplay_frame): don't check subwindows_state_changed.
14867         (mark_redisplay): mark gutters here.
14868
14869         * glyphs.c: (instantiate_image_instantiator): always layout if we
14870         haven't done so already.
14871         (allocate_image_instance): don't mark as dirty.
14872         (update_subwindow): bind inhibit_quit.
14873
14874         * gutter.c (mark_gutters): new function.
14875
14876         * glyphs-x.c (x_update_widget): Always resize to get round a
14877         widget bug.
14878
14879         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14880         breaking absolutely everything.
14881
14882         * gutter.h: declare mark_gutters.
14883
14884 2000-02-16  Martin Buchholz <martin@xemacs.org>
14885
14886         * XEmacs 21.2.29 is released.
14887
14888 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14889
14890         * fns.c (size_bit_vector): Fix computation of the size.
14891
14892 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14893
14894         * *.[ch]: Change CONST to const globally.
14895         find -name '*.[ch]' | \
14896         xargs global-replace \
14897         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14898         - Remove vestigial references to CONST_IS_LOSING
14899
14900 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14901
14902         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14903         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14904         events instead of dispatching them directly.
14905         (mswindows_handle_paint): New function to do repainting.
14906         (mswindows_wnd_proc):
14907         (emacs_mswindows_handle_magic_event): Call above function.
14908
14909 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14910
14911         * objects-msw.c (mswindows_create_font_variant): Return the new
14912         font handle.
14913         (initialize_font_instance): Get font metrics from the underlined
14914         variant of the font to cope with the case where the underlined
14915         font has a bigger descent.
14916
14917 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14918
14919         * gui.c (gui_item_accelerator): Return the first underlined
14920         character in item name.
14921
14922 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14923
14924         * lisp.h: Added Qprinter.
14925
14926         * general.c (syms_of_general): Initialized it.
14927
14928         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14929         (get_frame_dc):
14930         (get_frame_compdc): Made inline.
14931
14932         * console.h (struct console_methods): Added eject_page method.
14933
14934         * frame.h: Added FRAME_DISPLAY_P and friends.
14935         Aligned backslahes in many macros in more readable fashion.
14936         Added page_number to struct frame, and an accessor macro
14937         for it.
14938
14939         * defice.h: Added DEVICE_DISPLAY_P and friends.
14940
14941         * device.c (Fdevice_printer_p): Used these.
14942
14943         * frame.c (allocate_frame_core): Initialize page number.
14944         (Fprint_job_page_number):
14945         (Fprint_job_eject_page): Implemented.
14946
14947         * frame-msw.c (msprinter_eject_page): Added method.
14948         (msprinter_start_page): Added.
14949
14950         * window.c (Fwindow_truncated_p): Fixed docstring.
14951         (Fwindow_last_line_visible_height): Implemented.
14952
14953 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14954
14955         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14956
14957 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14958
14959         * syntax.c (scan_words): Always advance at least one character.
14960
14961 2000-02-13  Andy Piper  <andy@xemacs.org>
14962
14963         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14964         to make sure the glyph is in the cachels.
14965
14966         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14967         global image instance flag.
14968         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14969         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14970
14971         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14972         (Fset_image_instance_property): mark layout as changed.
14973         (invalidate_glyph_geometry_maybe): mark layout as changed.
14974         (glyph_width): use new NEEDS_LAYOUT macro.
14975         (glyph_ascent): ditto.
14976         (glyph_descent): ditto.
14977         (glyph_height): ditto.
14978         (image_instance_layout): mark layout as clean after laying out.
14979         (update_subwindow): don't mark layout as clean here.
14980
14981         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14982         should no longer be needed.
14983
14984         * glyphs-x.c (x_update_widget): sanitize asserts.
14985         (x_finalize_image_instance): sanitize assignment to widgets.
14986
14987         * glyphs-widget.c (widget_instantiate): don't need to clear the
14988         layout flag here.
14989
14990 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14991
14992         * sysdep.c (getcwd): Use standard prototype.
14993         * sysdep.h (getcwd): Use standard prototype.
14994
14995         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14996         (sequence, start, end).
14997         Remove redundant type checking.
14998         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14999         view of `caller-protects') to avoid a crash where the real fix was
15000         found elsewhere.
15001
15002 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15003
15004         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15005
15006         * s/sol2.h: Remove feature macro initialization.
15007
15008         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15009         (vector_hash): New.  Code from internal_hash.
15010         * lrecord.h:
15011         Fix up allocation subsystem comments.
15012
15013         * config.h.in: Add __EXTENSIONS__ for Solaris.
15014
15015         * systime.h (EMACS_GETTIMEOFDAY): New.
15016         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15017         Remove Solaris-specific code.
15018         Use void* for the (ignored) second arg for gettimeofday().
15019
15020         * elhash.c (hash_table_hash): Implement it, finally.
15021         * elhash.c:  Use hashcode_t.
15022
15023         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15024         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15025
15026         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15027         * fns.c (size_bit_vector):
15028         * alloc.c (size_vector):
15029         (make_vector_internal):
15030         (make_bit_vector_internal):
15031         (sweep_bit_vectors_1):
15032         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15033
15034 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15035
15036         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15037         Include strings.h to avoid warnings for bzero and strcasecmp.
15038
15039 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15040
15041         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15042         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15043
15044         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15045         sequence.
15046
15047 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15048
15049         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15050         use a value field instead.
15051         (symbol_value_forward_forward): Use value field.
15052         (DEFVAR_SYMVAL_FWD): Use value field.
15053         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15054         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15055         (DEFVAR_CONST_INT): Ditto.
15056         (DEFVAR_BOOL): Ditto.
15057         (DEFVAR_CONST_BOOL): Ditto.
15058         (DEFVAR_INT_MAGIC): Ditto.
15059         (DEFVAR_BOOL_MAGIC): Ditto.
15060
15061         * symbols.c (guts_of_unbound_marker): Use value field.
15062         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15063         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15064
15065         * lisp.h: Declare dumpopaque and noninteractive1.
15066
15067         * alloc.c (dumpopaque): Added.
15068         (pdump_dump_opaquevec): Added.
15069         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15070         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15071         noninteractive.
15072
15073 2000-02-10  Andy Piper  <andy@xemacs.org>
15074
15075         * glyphs.c (image_instance_layout): if the size changes, mark it
15076         as such.
15077
15078         * redisplay-output.c (redisplay_output_layout): Update the
15079         subwindow here.
15080         (redisplay_output_subwindow): ditto.
15081
15082         * glyphs.c (update_subwindow): make sure we reset flags for
15083         layouts as well as everything else.
15084
15085         * glyphs-widget.c (layout_layout): don't need to set the instances
15086         dimensions here.
15087
15088 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15089
15090         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15091         not HAVE_DLOPEN, which is a lower-level thing.
15092
15093         * .cvsignore: Ignore gmon.out
15094
15095 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15096
15097         * .cvsignore: Ignore portable dumper xemacs.dmp file
15098
15099 2000-02-09  Andy Piper  <andy@xemacs.org>
15100
15101         * redisplay-output.c (redisplay_output_layout): be more clever
15102         about when we output based on the changed flags.
15103
15104         * glyphs.h (struct image_instantiator_methods): add update_method.
15105         (struct Lisp_Image_Instance): add changed flags. Declare new
15106         macros for manipulating them.
15107
15108         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15109         (image_instance_parent_glyph): find an image_instance's parent
15110         glyph or image_instance.
15111         (image_instance_layout): mark the size as changed.
15112         (set_image_instance_dirty_p): new function. mark an image
15113         instance, plus all of its parents, as dirty.
15114         (Fset_image_instance_property): use it.
15115         (Fglyph_animated_timeout_handler): use it.
15116         (update_subwindow): call update_widget and device methods for
15117         update_subwindow. Mark all changed flags as clean.
15118         (Fresize_subwindow): mark size as changed.
15119
15120         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15121         failures.
15122         (x_update_subwindow): only resize subwindows here.
15123         (x_update_widget): new function. Update all changed properties of
15124         a widget.
15125         (x_resize_subwindow): deleted.
15126         (x_widget_set_property): deleted.
15127         (x_progress_gauge_set_property): deleted.
15128         (x_progress_gauge_update): new function. Implement recorded
15129         changes.
15130         (x_tab_control_update): ditto.
15131         (x_tab_control_set_property): deleted.
15132         (console_type_create_glyphs_x): declare new functions.
15133         (image_instantiator_format_create_glyphs_x): ditto.
15134
15135         * glyphs-widget.c (widget_set_property): mark text changed.
15136         (update_widget): new function. Update properties of a widget.
15137         (widget_instantiate): for layouts make sure we set their
15138         children's parent correctly.
15139         (tab_control_set_property): new function. Record changes that will
15140         take place under redisplay's control.
15141         (progress_gauge_set_property): ditto.
15142         (image_instantiator_progress_guage): declare new functions.
15143         (image_instantiator_tab_control): ditto.
15144
15145         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15146         now.
15147         (mswindows_update_widget): new function. Update all properties on
15148         a widget that have changed.
15149         (mswindows_button_update): new function. Update a button's set
15150         state.
15151         (mswindows_tab_control_update): new function. Update the items in
15152         a tab.
15153         (mswindows_tab_control_set_property): deleted.
15154         (mswindows_progress_gauge_update): new function. Update the
15155         progress gauge's progress.
15156         (mswindows_widget_set_property): deleted. This is all done
15157         asynchronously now.
15158         (mswindows_progress_gauge_set_property): ditto.
15159         (console_type_create_glyphs_mswindows): declare new methods.
15160         (image_instantiator_format_create_glyphs_mswindows): ditto.
15161
15162         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15163         (msprinter_set_frame_properties): ditto.
15164
15165         * console.h (struct console_methods): Add update_widget_method.
15166
15167 2000-02-09  Andy Piper  <andy@xemacs.org>
15168
15169         * gui-msw.c (Fmswindows_shell_execute): Make
15170         mswindows-shell-execute industrial strength.
15171
15172 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15173
15174         * lrecord.h: Make macro argument `props' match member function `plist'.
15175         * fns.c (Fget):
15176         * fns.c (Fput):
15177         * fns.c (Fremprop):
15178         * fns.c (Fobject_plist):
15179         * alloc.c:
15180         * symbols.c:
15181         Object property list frobbing cleanup.
15182         - Allow any lisp object (compared with `eq'), not just symbols, as
15183           keys in object plists.
15184         - Move symbol plist frobbing into symbols.c, where it belongs.
15185         - Move string plist frobbing into alloc.c, where it belongs.
15186         - Everything's an lrecord now, so no need to test for symbolp, etc.
15187         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15188
15189         * extents.c: Reorder code to remove declarations.
15190
15191         * frame.h (store_in_alist): Remove useless declaration.
15192
15193 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15194
15195         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15196         * config.h.in: Add HAVE_XCONVERTCASE.
15197
15198 2000-02-07  Andy Piper  <andy@xemacs.org>
15199
15200         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15201         it breaks many things.
15202
15203 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15204
15205         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15206         actually can start a common comment type.
15207         * src/syntax.h (SYNTAX_END_P): ditto for end.
15208
15209 2000-02-07  Martin Buchholz <martin@xemacs.org>
15210
15211         * XEmacs 21.2.28 is released.
15212
15213 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15214
15215         * event-Xt.c (x_keysym_to_character): New.
15216         (maybe_define_x_key_as_self_inserting_character): New.
15217         (x_has_keysym): New.
15218         Auto-define all keys on the keyboard as self-insert-key.
15219
15220 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15221
15222         * menubar.c (vars_of_menubar): A small code simplification.
15223
15224         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15225
15226         * ExternalShell.c:
15227         * ExternalClient.c:
15228         * EmacsShell-sub.c:
15229         * EmacsManager.c:
15230         * EmacsFrame.c:
15231         Use consistent style for specifying X resources.
15232
15233         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15234         This makes (dontusethis-set-symbol-value-handler) actually usable.
15235
15236         * lrecord.h (lrecord_decription_type):
15237         * alloc.c (pdump_register_sub):
15238         (pdump_dump_data):
15239         (pdump_reloc_one):
15240         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15241         Comply with XEmacs coding style.
15242         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15243         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15244
15245         * keymap.c (Faccessible_keymaps):
15246         Make (accessible-keymaps map "\C-h") do the Right Thing.
15247         Make (accessible-keymaps map []) do the Right Thing.
15248         Make (accessible-keymaps map "") do the Right Thing.
15249         (check_keymap_definition_loop): New function.
15250         (keymap_store_internal): Keep luser from shooting self in foot,
15251           via (define-key ctl-x-4-map "p" global-map).
15252         Remove fullness slot from struct Lisp_Keymap, since hash tables
15253         are now reliable.
15254         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15255
15256 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15257
15258         * redisplay.c (init_redisplay): Fix small memory leak.
15259         * elhash.h:
15260         * elhash.c (pdump_reorganize_hash_table):
15261         Rename from reorganize_hash_table. Change prototype.
15262         Reuse the original memory for hentries.  Save 100k.
15263         * alloc.c (PDUMP_READ): new macro.
15264         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15265         * alloc.c: No need to #ifndef before #undef.
15266
15267         * print.c: Allow debug_print() to print readably by modifying
15268         debug_print_readably.  Use consistent variable names.
15269
15270         * .dbxrc: Try to get things to work even if stopped in a function
15271         without source available by explicitly specifying source files.
15272 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15273
15274         * unexnt.c (_start): Removed bogus code which caused loading heap
15275         from differrent executable file.
15276         Removed bogus assignment to _fmode, which caused inconsistencies.
15277
15278 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15279
15280         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15281         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15282         Do not preliminary `#define signal sigset'.
15283
15284         * systime.h: Do not prototype environ on windows nt and cygwin,
15285         this conflicts with system header.
15286
15287         * syssignal.h: Use correct define for WINDOWSNT
15288
15289         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15290         with system header.
15291
15292         * sysdep.c (near start of file): Fixed commentary and rearranged
15293         ifdefs in readable order.
15294         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15295         (start_of_text):
15296         (end_of_text):
15297         (end_of_data): Do not compile in if using PDUMP.
15298
15299         * symsinit.h: Prototyped vars_of_nt().
15300
15301         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15302         (find_child_console): Use it.
15303         (sys_kill): Use it.
15304
15305         * ntheap.h: Do not extern os_subtype.
15306
15307         * ntheap.c (cache_system_info): Do not cache unneeded:
15308         nt_major_version, nt_minor_version and os_subtype.
15309         (recreate_heap): Do not compile in when PDUMPing.
15310
15311         * nt.c (geteuid and friends): Use the new varibale
15312         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15313         (init_user_info): Removed the above mentioned hackery.
15314         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15315         stat has been fixed in the C runtime.
15316         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15317
15318         * file-coding.c (struct file_coding_dump): Do not define
15319         ucs_to_mule_table in the struct if not MULE.
15320         (struct struct lrecord_description fcd_description_1): Do not dump
15321         the above.
15322
15323         * emacs.c (main_1): Call vars_of_nt().
15324         (right before Fdump_emacs_data): Don't need lastfile if using both
15325         portabe dumper and system malloc.
15326
15327         * alloc.c (Fmemory_limit): Conditionalized out.
15328         (pdump): Use OPEN_BINARY for the portable dump file.
15329         (pdump_load): Ditto.
15330
15331 2000-02-02  Mike Alexander  <mta@arbortext.com>
15332
15333         * nt.c (convert_time): Set tm_isdst before calling mktime and
15334         avoid calling it at all if the compiler supports 64 bit integers.
15335         Also initialize utc_base_ft before using it.
15336
15337 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15338
15339         * frame.c (change_frame_size_1): Take f->internal_border_width
15340         into consideration when calculating the width of the frame.
15341
15342 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15343
15344         * window.c (frame_min_height):
15345         (frame_size_valid_p):
15346         (frame_pixsize_valid_p): Added.
15347         (check_frame_size): Generalized.
15348
15349         * window.h: Prototyped the above.
15350
15351         * lisp.h:
15352         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15353         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15354         Deleted Vwin32_* and Vbinary_process_* unused variables.
15355
15356         * device-msw.c (msprinter_init_device): Do not get printer font
15357         list; Added DEVMODE functions.
15358
15359         * frame-msw.c: Added lots of printer code.
15360
15361         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15362         general.c.
15363
15364         * console-msw.h: Added more msprinter device private slots.
15365
15366 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15367
15368         * event-msw.c (key_needs_default_processing_p): Added.
15369         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15370
15371 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15372
15373         * glyphs.c (image_instance_layout): Mark image instance as clean
15374         after layout.
15375         (glyph_dirty_p): Removed redundant function.
15376         (invalidate_glyph_geometry_maybe): Added.
15377         (update_glyph_cachel_data): Call it.
15378
15379         * glyphs.h: Prototyped it.
15380
15381         * redisplay.c (add_glyph_rune): Call it.
15382         (redisplay_window): Reset glyphs cachels when frame faces have
15383         changed, thus forcing recomputation of built-in border glyphs.
15384
15385 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15386
15387         * Makefile.in.in: Make portable dumper and purify play well together.
15388         Add imperfect, but better than nothing, support for pdump.
15389         Remove xemacs.dmp when temacs is re-generated.
15390         Don't ignore errors when dumping xemacs.
15391
15392         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15393
15394 2000-01-28  Andy Piper  <andy@xemacs.org>
15395
15396         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15397         (setup_normal_frame): ditto.
15398         (setup_frame_without_minibuffer): ditto.
15399         (setup_minibuffer_frame): ditto.
15400         (delete_frame_internal): ditto.
15401         (Fmake_frame_invisible): ditto.
15402         (Ficonify_frame): ditto.
15403
15404         * window.h: change Fset_window_buffer signature.
15405
15406         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15407         (Fset_window_buffer): allow recording of buffer if the window is
15408         the selected window.
15409         (window_loop): Use new Fset_window signature.
15410
15411 2000-01-23  Daniel Pittman  <daniel@danann.net>
15412
15413         * config.h.in: Added template for `HAVE_ATHENA_3D'
15414
15415 2000-01-29  Andy Piper  <andy@xemacs.org>
15416
15417         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15418
15419         * gutter.c (output_gutter): Don't output if the window isn't live.
15420
15421 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15422
15423         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15424         of 01/12/00: Moved SetFocus back here where it belongs.
15425
15426 2000-01-23  Andy Piper  <andy@xemacs.org>
15427
15428         * s/cygwin32.h: declare printer things.
15429
15430 2000-01-26  Andy Piper  <andy@xemacs.org>
15431
15432         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15433         Alexander.
15434
15435 2000-01-24  Andy Piper  <andy@xemacs.org>
15436
15437         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15438         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15439
15440         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15441
15442         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15443
15444         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15445
15446         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15447         (mswindows_output_display_block): Avoid local shadows.
15448
15449         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15450         (mswindows_enqueue_mouse_button_event): ditto.
15451         (mswindows_handle_gui_wm_command): remove declaration.
15452
15453         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15454         warnings.
15455
15456         * console-msw.h: Avoid shadows.
15457         (mswindows_get_toolbar_button_text):
15458         (emacs_mswindows_create_stream_pair):
15459         (emacs_mswindows_delete_stream_pair):
15460         (mswindows_handle_toolbar_wm_command): declare.
15461
15462         * device-msw.c (build_syscolor_string): Avoid shadows.
15463
15464 2000-01-23  Andy Piper  <andy@xemacs.org>
15465
15466         * glyphs-widget.c (widget_instantiate): reverse the items for
15467         layouts so that children are in the expected order.
15468
15469 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15470
15471         * ralloc.c: safe_bcopy ==> memmove
15472         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15473         * s/msdos.h: Remove BCOPY macros.
15474         * insdel.c (gap_right): Remove BCOPY conditional code.
15475         * insdel.c (gap_left): Remove BCOPY conditional code.
15476         XEmacs demands a working ANSI C compiler - hence memmove.
15477
15478         * regex.c (regex_compile): Remove accidental use of trigraphs.
15479
15480 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15481
15482         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15483         event timestamp.
15484
15485 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15486
15487         * event-msw.c (mswindows_drain_windows_queue): Added the
15488         parameter.
15489         (mswindows_need_event): Commented the call to
15490         mswindows_drain_windows_queue().
15491         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15492         only.
15493
15494         * console-msw.h: Moved a few function prototypes here from
15495         event-msw.c.
15496
15497         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15498         parameter from unsigned short to unsigned long.
15499         (Fmswindows_shell_execute): Added return value.
15500
15501 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15502
15503         * sysdep.c (init_system_name):
15504           process-unix.c (unix_canonicalized_host_name):
15505         Don't call freeaddrinfo() if getaddrinfo() fails.
15506
15507         * process-unix.c (unix_open_unix_network_stream):
15508         Moved the code to get a port # into address loop.
15509
15510 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15511
15512         * buffer.c (reinit_vars_of_buffer):
15513         The right place to initialize conversion_in_dynarr and
15514         conversion_out_dynarr.
15515
15516         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15517
15518         * process-unix.c (unix_canonicalize_host_name): Muleize.
15519         (unix_open_network_stream): Muleize.
15520
15521         * buffer.h: Fix up prototypes for ralloc.c functions.
15522
15523 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15524         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15525         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15526                 instead of gethostbyname()
15527         * process-unix.c: In unix_canonicalize_host_name() and
15528                 unix_open_network_stream(), add code to use getaddrinfo()
15529                 instead of gethostbyname().
15530
15531 2000-01-27  Daniel Pittman <daniel@danann.net>
15532
15533         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15534         libs when built with flat Athena.
15535
15536 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15537
15538         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15539         Use coding standards for function prototypes.
15540
15541 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15542
15543         * dialog-msw.c (push_lisp_string_as_unicode):
15544         * doc.c (unparesseuxify_doc_string):
15545         * dired.c (Fuser_name_completion_1):
15546         * dired.c (Fuser_name_all_completions):
15547         * dired.c (free_user_cache):
15548         * dired.c (user_name_completion):
15549         * console-x.c (get_display_arg_connection):
15550         * minibuf.c (clear_echo_area_internal):
15551         * minibuf.c (echo_area_append):
15552         * eldap.c (Fldap_open):
15553         * eldap.c (Fldap_search_internal):
15554         * frame-x.c (x_set_frame_text_value):
15555         * frame-x.c (x_set_frame_properties):
15556         * frame-x.c (x_create_widgets):
15557         * redisplay-tty.c (term_get_fkeys_1):
15558         * objects-x.c (x_parse_nearest_color):
15559         * objects-x.c (x_valid_color_name_p):
15560         * objects-x.c (x_initialize_font_instance):
15561         * objects-x.c (x_list_fonts):
15562         * objects-x.c (x_find_charset_font):
15563         * tooltalk.c (Fadd_tooltalk_message_arg):
15564         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15565         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15566         * process-unix.c (unix_create_process):
15567         * ntproc.c (sys_spawnve):
15568         * sound.c (Fplay_sound_file):
15569         * sound.c (Fplay_sound):
15570         * buffer.c (init_initial_directory):
15571         * buffer.c (init_buffer):
15572         * editfns.c (init_editfns):
15573         * editfns.c (Ftemp_directory):
15574         * editfns.c (Fuser_full_name):
15575         * editfns.c (uncache_home_directory):
15576         * editfns.c (get_home_directory):
15577         * editfns.c (Fuser_home_directory):
15578         * editfns.c (Fformat_time_string):
15579         * editfns.c (Fcurrent_time_string):
15580         * gui-x.c (button_item_to_widget_value):
15581         * database.c (Fopen_database):
15582         * event-Xt.c (x_to_emacs_keysym):
15583         * event-Xt.c (x_event_to_emacs_event):
15584         * event-Xt.c (describe_event_window):
15585         * event-msw.c (mswindows_wnd_proc):
15586         * glyphs-eimage.c (jpeg_instantiate):
15587         * glyphs-eimage.c (gif_instantiate):
15588         * glyphs-eimage.c (png_instantiate):
15589         * glyphs-eimage.c (tiff_instantiate):
15590         * glyphs-x.c (xbm_instantiate_1):
15591         * glyphs-x.c (x_xbm_instantiate):
15592         * glyphs-x.c (x_xface_instantiate):
15593         * glyphs-x.c (autodetect_instantiate):
15594         * glyphs-x.c (cursor_font_instantiate):
15595         * glyphs-x.c (x_widget_instantiate):
15596         * glyphs-x.c (x_widget_set_property):
15597         * glyphs-x.c (x_widget_property):
15598         * glyphs-x.c (BUILD_GLYPH_INST):
15599         * print.c (write_string_to_stdio_stream):
15600         * print.c (output_string):
15601         * print.c (Falternate_debugging_output):
15602         * print.c (Fexternal_debugging_output):
15603         * glyphs-msw.c (extract_xpm_color_names):
15604         * glyphs-msw.c (mswindows_xpm_instantiate):
15605         * glyphs-msw.c (bmp_instantiate):
15606         * glyphs-msw.c (resource_name_to_resource):
15607         * glyphs-msw.c (mswindows_resource_instantiate):
15608         * glyphs-msw.c (xbm_instantiate_1):
15609         * glyphs-msw.c (mswindows_xbm_instantiate):
15610         * glyphs-msw.c (mswindows_xface_instantiate):
15611         * glyphs-msw.c (mswindows_widget_instantiate):
15612         * glyphs-msw.c (add_tree_item):
15613         * glyphs-msw.c (add_tab_item):
15614         * glyphs-msw.c (mswindows_combo_box_instantiate):
15615         * glyphs-msw.c (mswindows_widget_property):
15616         * glyphs-msw.c (mswindows_combo_box_property):
15617         * glyphs-msw.c (mswindows_widget_set_property):
15618         * console.c (stuff_buffered_input):
15619         * objects-msw.c (mswindows_initialize_color_instance):
15620         * objects-msw.c (mswindows_valid_color_name_p):
15621         * objects-msw.c (mswindows_list_fonts):
15622         * objects-msw.c (mswindows_font_instance_truename):
15623         * bytecode.c (optimize_compiled_function):
15624         * select-x.c (symbol_to_x_atom):
15625         * select-x.c (x_atom_to_symbol):
15626         * select-x.c (hack_motif_clipboard_selection):
15627         * select-x.c (selection_data_to_lisp_data):
15628         * select-x.c (lisp_data_to_selection_data):
15629         * select-x.c (Fx_get_cutbuffer_internal):
15630         * select-x.c (Fx_store_cutbuffer_internal):
15631         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15632         * buffer.h (TO_INTERNAL_FORMAT): New function.
15633         * emacs.c (make_arg_list_1):
15634         * emacs.c (make_argc_argv):
15635         * emacs.c (main_1):
15636         * emacs.c (Fdump_emacs):
15637         * emacs.c (split_string_by_emchar_1):
15638         * file-coding.h:
15639         * lisp.h:
15640         * lstream.h:
15641         * symsinit.h:
15642         * device-x.c (x_init_device):
15643         * device-x.c (Fx_valid_keysym_name_p):
15644         * device-x.c (Fx_get_font_path):
15645         * device-x.c (Fx_set_font_path):
15646         * glyphs.c (bitmap_to_lisp_data):
15647         * glyphs.c (pixmap_to_lisp_data):
15648         * alloc.c (make_ext_string): Use coding system arguments.  Update
15649         all callers.
15650         * alloc.c (build_string):
15651         * callproc.c (child_setup):
15652         * callproc.c (init_callproc):
15653         * fileio.c (lisp_strerror):
15654         * fileio.c (directory_file_name):
15655         * fileio.c (Fexpand_file_name):
15656         * fileio.c (Ffile_truename):
15657         * fileio.c (Fsysnetunam):
15658         * fileio.c (Fdo_auto_save):
15659         * sysdep.c (sys_readdir):
15660         * tests.c: New file.  Allow adding C tests.
15661         Replace GET_* macros with a more comprehensible and flexible
15662         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15663         Modify all calls.
15664         Any coding system can be used to do format conversion.
15665         Eliminate enum external_data_format.
15666         Eliminate convert_to_external_format.
15667         Eliminate convert_to_internal_format.
15668         Make sure file-name, keyboard, terminal, and ctext are always
15669         defined as coding systems or aliases.  Make
15670         file-name-coding-system, terminal-coding-system, and
15671         keyboard-coding-system magical variables that are equivalent to
15672         defining the corresponding coding system aliases.
15673
15674         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15675         * file-coding.c (Fcoding_system_alias_p): New function.
15676         * file-coding.c (Fcoding_system_aliasee): New function.
15677         * file-coding.c (append_suffix_to_symbol): New function.
15678         * file-coding.c (dangling_coding_system_alias_p): New function.
15679         * file-coding.c (Ffind_coding_system):
15680         * file-coding.c (Fcopy_coding_system):
15681         * file-coding.c (encode_coding_no_conversion):
15682         * file-coding.c (syms_of_file_coding):
15683         * file-coding.c (vars_of_file_coding):
15684         Rewrite coding system alias code.
15685         Allow nested aliases, like symbolic links.
15686         Allow redefinition of coding system aliases.
15687         Prevent existence of dangling coding system aliases.
15688
15689         * dired.c (Fuser_name_completion_1):
15690         * dired.c (Fuser_name_all_completions):
15691         A crash would happen if user did QUIT in the middle of building
15692         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15693
15694         * lisp.h:
15695         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15696
15697         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15698         an unsigned char *.  Update all callers.
15699
15700 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15701
15702         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15703
15704 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15705
15706         * elhash.c (hentry_description): Use more portable definition.
15707         (resize_hash_table): Initialize new hentries using
15708         xnew_array_and_zero, thereby simplifying the code.
15709
15710         * mule-charset.c (make_charset): Make sure entire object is
15711         initialized, to avoid Purify warnings.
15712
15713         * alloc.c (resize_string): Fix unlikely crash with big strings.
15714
15715 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15716
15717         * realpath.c (xrealpath):
15718         Don't call getwd().
15719
15720 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15721
15722         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15723
15724 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15725
15726         * unexelfsgi.c (unexec): Change the way we decide which segment
15727         should be extended.
15728
15729         Assumption that .bss section should be outside the PT_LOADable
15730         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15731         it's present) is inside the 'data' segment. This would fail the
15732         test which was used to find a segment to grow and cover new
15733         heap. Instead of this assumption, I created another one - on IRIX
15734         the segment to grow should start below .bss and it's address
15735         should extent above the end of .bss. Once this segment is
15736         identified, it's grown to accommodate the new heap and new
15737         zero-length .bss section is added at the end of .data2.
15738
15739 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15740
15741         * eval.c (Feval): Wrong number of arguments should use original
15742         function, not the indirect_function version of it.
15743
15744 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15745
15746         * glyphs-x.c (x_button_instantiate): Don't add image if
15747         it is not a pixmap.
15748         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15749         is relative.
15750
15751 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15752
15753         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15754         declaration.
15755         (DEFVAR_INT_MAGIC): Ditto.
15756         (DEFVAR_BOOL_MAGIC): Ditto.
15757         * glyphs.h: Reindent backslash.
15758
15759 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15760
15761         * glyphs-widget.c (layout_query_geometry):
15762         (layout_layout): Use correct types for gheight, gwidth.
15763
15764 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15765
15766         * EmacsManager.c (QueryGeometry): Purified.
15767
15768 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15769
15770         * alloc.c (make_float): Make sure entire object is initialized, to
15771         avoid Purify warnings.
15772         (pdump_register_sub): Remove useless assignment.
15773         (pdump): Use xmalloc, not malloc.
15774         (pdump_load): Use xmalloc, not malloc.
15775
15776 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15777
15778         * callproc.c:
15779         * dired-msw.c:
15780         * fileio.c:
15781         * process-nt.c:
15782         * redisplay-msw.c:
15783         * sysdep.c: Removed redundant #include <windows.h>
15784
15785 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15786
15787         * frame.c (delete_frame_internal): Do not delete device when its
15788         implementation so declares.
15789         (delete_frame_internal): Set device selected frame to nil when
15790         last frame goes away.
15791
15792         * device-msw.c (msprinter_device_system_metrics): Implemented.
15793         (mswindows_device_system_metrics): Added 'device-dpi property.
15794
15795         * device.c: (Fdevice_printer_p): Added.
15796         Added 'offset-workspace device metric.
15797
15798         * console.h (device_metrics): Declared DM_offset_workspace.
15799
15800 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15801
15802         * fileio.c (Ffile_truename): Remove pointless and confusing
15803         initialization of elen.
15804
15805         * glyphs-widget.c: Compiler warning fixes.
15806
15807 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15808
15809         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15810         instead of a Lisp_Object as argument to make it consistent with
15811         the other LIVE_P macros.
15812         (CHECK_LIVE_PROCESS): New macro.
15813
15814         * process.c: Declare Qprocess_live_p.
15815         (Fprocess_live_p): New function.
15816         (create_process): Use PROCESS_LIVE_P.
15817         (read_process_output): Ditto.
15818         (set_process_filter): Ditto.
15819         (Fdelete_process): Ditto.
15820         (kill_buffer_processes): Ditto
15821         (process_send_signal): Use CHECK_LIVE_PROCESS.
15822         (Fprocess_input_coding_system): Check whether process is still
15823         alive (fix PR#1061).
15824         (Fprocess_output_coding_system): Ditto.
15825         (Fprocess_coding_system): Ditto.
15826         (Fset_process_input_coding_system): Ditto.
15827         (Fset_process_output_coding_system): Ditto.
15828
15829 2000-01-23  Andy Piper  <andy@xemacs.org>
15830
15831         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15832         layout and widget.
15833
15834         * glyphs.c (mark_image_instance): take into account changed
15835         image_instance format.
15836         (image_instance_equal): ditto.
15837         (image_instance_hash): ditto.
15838
15839         * glyphs-widget.c (widget_instantiate): Incorporate layout
15840         instantiation here. Delay layout of the layout until later.
15841         (layout_instantiate): deleted.
15842         (layout_query_geometry): new function. get the geometry of a
15843         layout.
15844         (layout_layout): layout a layout dynamically.
15845         (image_instantiator_widget): New function - splitting up
15846         image_instantiator_format_create_glyphs_widget for netwinder
15847         compilation.
15848         (image_instantiator_buttons):
15849         (image_instantiator_edit_fields):
15850         (image_instantiator_combo_box):
15851         (image_instantiator_scrollbar):
15852         (image_instantiator_progress_guage):
15853         (image_instantiator_tree_view):
15854         (image_instantiator_tab_control):
15855         (image_instantiator_labels):
15856         (image_instantiator_layout): ditto.
15857         (image_instantiator_format_create_glyphs_widget): Call preceding
15858         functions.
15859
15860 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15861
15862         * process.c (Fset_process_coding_system):
15863         * device-x.c (Fx_keysym_hash_table):
15864         Docstring fixes.
15865
15866         * lstream.c (Lstream_write): Return documented value, not 0.
15867
15868         * fileio.c (directory_file_name):
15869         (Fsubstitute_in_file_name):
15870         (Fsubstitute_insert_file_contents_internal):
15871         (Fwrite_region_internal):
15872         * emacs.c:
15873         * sysdep.c:
15874         * getloadavg.c:
15875         * systty.h:
15876         Remove vestigial APOLLO-conditional code.
15877
15878 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15879
15880         * getpagesize.h: Add guard macros.
15881         * libsst.h: Add guard macros.
15882         * libst.h: Add guard macros.
15883         * line-number.h: Add guard macros.
15884         * ndir.h: Add guard macros.
15885         * sysfloat.h: Add guard macros.
15886         * sysfile.h: Add guard macros.
15887         * sysproc.h: Add guard macros.
15888         * syswait.h: Add guard macros.
15889         * xintrinsic.h: Add guard macros.
15890         * xintrinsicp.h: Add guard macros.
15891         * xmmanager.h: Add guard macros.
15892         * xmmanagerp.h: Add guard macros.
15893         * xmprimitive.h: Add guard macros.
15894         * xmu.h: Add guard macros.
15895         * gpmevent.h: Add copyright statement. Add guard macros.
15896         * miscplay.h: Add guard macros.
15897         * *.h: Use consistent C-standards-approved guard macro names.
15898
15899         * opaque.c (make_opaque): Switch parameter order.
15900         * opaque.h (make_opaque): Switch parameter order.
15901         Update all callers.
15902         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15903
15904         * config.h.in (type_checking_assert): Added.
15905         (bufpos_checking_assert): Added.
15906
15907 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15908
15909         * alloc.c: Harmless pdump changes.
15910         - Use countof().
15911         - spell alignment correctly.
15912         * sysdep.c: Use countof()
15913
15914 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15915
15916         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15917         initially_selected_for_input() console method, default to 0.
15918         (semi_canonicalize_console_connection): Try to delegate to
15919         canonicalize_console_connection if no such console method.
15920         (canonicalize_console_connection): Vice versa.
15921         (print_console): Do not print nil connection.
15922
15923         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15924         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15925         (XDEVIMPF_FRAMELESS_OK): Added.
15926         (CONSOLE_INHERITS_METHOD): Added.
15927
15928         * console-msw.c (mswindows_canonicalize_console_connection):
15929         Added.
15930         (mswindows_canonicalize_device_connection): Added.
15931
15932         * console-msw.h (struct msprinter_device): Added this struct and
15933         accessor macros.
15934         (mswindows_device): Made fontlist a lisp object.
15935
15936         * device.c (semi_canonicalize_device_connection):  Try to delegate
15937         to canonicalize_device_connection if no such console method.
15938         (canonicalize_device_connection): Vice versa.
15939         (print_device): Do not print nil connection.
15940
15941         * device-msw.c (mswindows_init_device): Call InitCommonControls
15942         when have widgets.
15943         (mswindows_delete_device): Removed fontlist deallocation.
15944         (mswindows_mark_device): Added.
15945
15946         * events.c (event_equal): Added abort() at unreached code.
15947         (event_hash): Ditto.
15948
15949         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15950         fallback tags of Windows devices.
15951
15952         * general.c (syms_of_general): Initialized Qmsprinter.
15953
15954         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15955         of fallback tags of Windows devices.
15956
15957         * lisp.h: Declared Qmsprinter.
15958
15959         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15960         of strings.
15961         (mswindows_list_fonts): Ditto.
15962         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15963         that it can be used by both mswindows and msprinter devices.
15964         (initialize_font_instance): Added.
15965         (mswindows_initialize_font_instance): Use it.
15966         (msprinter_initialize_font_instance): Added.
15967
15968         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15969         and implementation flags check.
15970         (redisplay_without_hooks): Changed the call to the above.
15971         (Fredraw_device): Ditto.
15972         (Fredisplay_device): Ditto.
15973
15974         * redisplay-msw.c (get_frame_dc): Implemented.
15975         (get_frame_compdc): Implemented.
15976         (many functions): Use the two functions above to get device
15977         contexts, ether for a window or a printer.
15978
15979 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15980
15981         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15982         initialization here.
15983         (init_symbols_once_early): Call it.
15984         * emacs.c (main_1): Call it.
15985         * symsinit.h: Declare it.
15986
15987 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15988
15989         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15990         Lisp_Object.
15991         (pdump_backtrace): Ditto.
15992         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15993         (pdump_get_entry): Abort if trying to register a null pointer.
15994         (pdump_dump_data): Cleanup types when relocating.
15995         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15996         (pdump_dump_rtables): Remove bad casts.
15997         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15998         Lisp_Object instead of a EMACS_INT for the hashtable
15999         reorganization.
16000
16001 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16002
16003         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16004
16005         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16006
16007         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16008
16009         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16010
16011 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16012
16013         * faces.h (FACE_STRIKETHRU_P): Added.
16014
16015         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16016         of font variants.
16017
16018         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16019         (mswindows_set_dc_font): New function, aware of font variants,
16020         separated from mswindows_update_dc.
16021
16022         * objects-msw.h (struct mswindows_font_instance_data): Added
16023         definition.
16024
16025         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16026         cached fonts and the data structure.
16027         (mswindows_initialize_font_instance): Added creation of font data
16028         structure.
16029         (mswindows_print_font_instance): Print at least something.
16030         (mswindows_create_font_variant): Implemented.
16031         (mswindows_get_hfont): Implemented.
16032
16033 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16034
16035         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16036         prototyping problem with msvc.
16037
16038         * emacs.c (main_1): added syms_of_gui_mswindows() call
16039
16040         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16041         syms_of_gui_mswindows() function
16042
16043         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16044
16045 2000-01-18  Martin Buchholz <martin@xemacs.org>
16046
16047         * XEmacs 21.2.27 is released.
16048
16049 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16050
16051         * glyphs-eimage.c (struct tiff_error_struct):
16052         (tiff_error_func):
16053         (tiff_warning_func):
16054         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16055
16056         * unexmips.c:
16057         * unexhp9k3.c:
16058         * unexfreebsd.c:
16059         * unexec.c: Remove vestigial Lucid C code.
16060         * unexalpha.c:
16061         * unexaix.c:
16062         * termcap.c:
16063         * libsst.c: Ansify.
16064         Remove declarations of errno and strerror().
16065
16066         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16067
16068         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16069
16070 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16071
16072         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16073         Optimize.
16074
16075 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16076
16077         * md5.c:
16078         * file-coding.c:
16079         * file-coding.h:
16080         Change enum eol_type to eol_type_t.
16081
16082 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16083
16084         * gui.c (get_gui_callback): Check cons before accessing car.
16085
16086 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16087
16088         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16089         (XSETSPECIFIER_TYPE): Ditto.
16090
16091 2000-01-17  Didier Verna  <didier@xemacs.org>
16092
16093         * redisplay.c (generate_fstring_runes): compute string size in
16094         characters, not bytes.
16095
16096 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16097
16098         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16099
16100 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16101
16102         * print.c (print_error_message): Call print_prepare().
16103
16104 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16105
16106         * .dbxrc: Renamed from dbxrc.
16107
16108         * events.c (event_to_character):
16109         Use `assert (foo)' instead of `if (!foo) abort()'
16110
16111         * .gdbinit (xtype): Add documentation.
16112         * .gdbinit (check-temacs): New function.
16113         * .gdbinit (check-xemacs): New function.
16114         * dbxrc (check-xemacs): New function.
16115         * dbxrc (check-xemacs): New function.
16116
16117 2000-01-14  Andy Piper  <andy@xemacs.org>
16118
16119         * glyphs-widget.c (widget_query_geometry): Make sure that we
16120         calculate default dimensions correctly.
16121
16122 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16123
16124         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16125
16126         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16127         pdump_wire'd variable.
16128
16129         * emacs.c: (main_1): Conditionalized calls to
16130         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16131
16132 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16133
16134         * window.c (Fset_window_configuration):
16135         * sysdep.c (_start):
16136         * input-method-motif.c (res):
16137         * event-Xt.c (Xt_process_to_emacs_event):
16138         Simple compiler warning fixes.
16139
16140         * bytecode.c (funcall_compiled_function): Use the original
16141         function symbol on the backtrace list in preference to the
16142         compiled_function object in error messages.
16143
16144 2000-01-13  Andy Piper  <andy@xemacs.org>
16145
16146         * glyphs-x.c (update_widget_face): Make sure we update the widget
16147         background as well as foreground.
16148
16149 2000-01-13  Andy Piper  <andy@xemacs.org>
16150
16151         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16152         fields to subwindow.
16153         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16154         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16155         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16156         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16157
16158         * glyphs-widget.c (check_valid_tab_orientation): new function.
16159         (initialize_widget_image_instance): zero orientation and
16160         justification.
16161         (widget_instantiate): pick up orientation.
16162         (tab_control_query_geometry): return appropriate values for
16163         vertical tabs.
16164
16165         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16166         appropriate creation flags for left, right and bottom tabs.
16167
16168         * s/cygwin32.h: add tab definitions.
16169
16170 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16171
16172         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16173         frame upon hiding a subwindow.
16174         (mswindows_button_instantiate): Changed the push button style to
16175         BS_PUSHBUTTON.
16176         (mswindows_button_instantiate): Removed button BS_NOTIFY
16177         style.
16178         (mswindows_button_instantiate): Removed redundant check for
16179         a disabled gui item.
16180         (mswindows_button_instantiate): Made use of WS_TABSTOP
16181         consistent: "operable" controls (edit, button, tree, scroll) have
16182         this style, "display-only" ones (static, progress gauge) do
16183         not. This style is currently ignored by XEmacs though. Also,
16184         removed the WS_EX_CONTROLPARENT style - it is not for children,
16185         it is for their parents!
16186         (mswindows_edit_field_instantiate): Ditto.
16187         (mswindows_progress_gauge_instantiate): Ditto.
16188         (mswindows_tree_view_instantiate): Ditto.
16189         (mswindows_tab_control_instantiate): Ditto.
16190         (mswindows_scrollbar_instantiate): Ditto.
16191         (mswindows_combo_box_instantiate): Ditto.
16192         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16193         style to the "clip" window.
16194         (mswindows_button_instantiate): Removed compilation warning by
16195         equally typing terms of the ?: operator.
16196
16197 2000-01-12  Didier Verna  <didier@xemacs.org>
16198
16199         * redisplay.c (generate_fstring_runes): new parameter holding the
16200         last modeline-format extent.
16201         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16202         extent, fill the glyph block with it.
16203         (generate_fstring_runes): handle these parameters.
16204         (generate_formatted_string_db): ditto.
16205
16206         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16207         glyphs'extents in the modeline.
16208
16209 1999-01-11  Mike Woolley  <mike@bulsara.com>
16210
16211         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16212         256Mb, as a workaround for the non-starting problem many people
16213         have experienced.
16214
16215 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16216
16217         * console-tty.c (Fset_console_tty_output_coding_system):
16218         Force redrawing tty frame.
16219
16220 2000-01-10  Didier Verna  <didier@xemacs.org>
16221
16222         * redisplay.c (generate_fstring_runes): fix size computation bug.
16223
16224 2000-01-09  William M. Perry <wmperry@aventail.com>
16225
16226         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16227
16228 2000-01-09  Andy Piper  <andy@xemacs.org>
16229
16230         * glyphs-msw.c: index -> i to avoid shadows.
16231         (xbm_create_bitmap_from_data): make static.
16232         (check_valid_string_or_int): deleted.
16233         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16234
16235         * glyphs-x.c (x_update_subwindow): remove unused args.
16236
16237         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16238         back pointer - this is done in allocate_image_instance.
16239         (query_string_font): return Qnil to make the compiler happy.
16240         (unmap_subwindow): set to ~0 to make the compiler happy.
16241         (glyph_query_geometry): comment out until used.
16242         (glyph_layout): ditto.
16243
16244 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16245
16246         * insdel.c (signal_after_change): Remove extraneous unbind_to().