update.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * char-ucs.h: Change some charset-ids of private coded-charsets.
4
5 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
6
7         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
8         (char_encode_as_entity_reference): Likewise.
9         (decode_coding_big5): Modify for `decode_defined_char' and
10         `DECODE_CHAR'.
11         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
12         avoid compiler warning.
13         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
14
15         * mule-charset.c (decode_defined_char): Add new argument
16         `without_inheritance'.
17         (Fdecode_char): Add new optional argument `without_inheritance'.
18         (Fdecode_builtin_char): Modify for `Fdecode_char'.
19
20         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
21         (simplify_char_spec): Likewise.
22
23         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
24         setting.
25
26         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
27         (map_char_table): Likewise.
28         (Fdefine_char): Use `Fdecode_char' without inheritance.
29         (Ffind_char): Modify for `Fdecode_char'.
30
31         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
32
33         * char-ucs.h (decode_defined_char): Add new argument
34         `without_inheritance'.
35         (DECODE_CHAR): Likewise.
36         (MAKE_CHAR): Modify for `DECODE_CHAR'.
37
38 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
39
40         * chartab.c (Vchise_system_db_directory): New variable.
41         (vars_of_chartab): Add new variable `chise-system-db-directory'.
42
43 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * chartab.c: EXFUN `Fmount_char_attribute_table'.
46         (print_chartab_range): Don't define when `UTF2000' is defined.
47         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
48         `CHISE_DS_open'.
49
50 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
53         and optional argument `rehash' is specified, call
54         `open_chise_data_source_maybe' before
55         `chise_ds_foreach_char_feature_name' is called.
56
57 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
58
59         * chartab.c (char_attribute_list_reset_map_func): New function
60         when HAVE_LIBCHISE is defined.
61         (Fchar_attribute_list): Add new optional argument `rehash' when
62         HAVE_LIBCHISE is defined.
63         (open_chise_data_source_maybe): Use "chise-db" instead of
64         "char-db".
65         (char_attribute_system_db_file): Likewise.
66         (Fload_char_attribute_table): Use
67         `chise_feature_foreach_char_with_value' instead of
68         `chise_char_feature_value_iterate'.
69
70 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
71
72         * chartab.c (Vchise_db_directory): New variable.
73         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
74
75 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
78         instead of HAVE_CHISE to specify using with libchise.
79
80         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
81
82         * chartab.h: Don't use HAVE_CHISE_CLIENT.
83
84         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
85         defined or HAVE_LIBCHISE_LIBCHISE is defined.
86         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
87         is defined.
88         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
89         HAVE_CHISE to specify using with libchise.
90         (syms_of_chartab): Don't define symbol `system-char-id' when
91         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
92
93 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
94
95         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
96         specify CHISE DB support.
97         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
98         of `char_attribute_system_db_file' to check feature DB file.
99
100         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
101         HAVE_CHISE_CLIENT to specify CHISE DB support.
102
103         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
104         specify CHISE DB support.
105         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
106         not defined.
107         (Freset_char_attribute_table): Use `chise_feature_setup_db'
108         instead of `char_attribute_system_db_file' to check feature DB
109         file.
110
111 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
112
113         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
114         `HAVE_CHISE_CLIENT'.
115
116 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
117
118         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
119         (Fsave_charset_mapping_table): Don't use
120         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
121
122         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
123         (HAVE_LIBCHISE): New macro.
124
125         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
126
127         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
128         (Fsave_char_attribute_table): Don't use
129         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
130
131 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
132
133         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
134         defined.
135         (save_uint16_byte_table): Likewise.
136         (save_byte_table): Likewise.
137         (char_table_get_db): Use `chise_ds_load_char_feature_value'
138         instead of `chise_char_load_feature_value'.
139         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
140
141 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * chartab.h (struct Lisp_Char_Table): Delete member
144         `feature_table' if CHISE is defined.
145
146         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
147         (Fcopy_char_table): Likewise.
148         (char_table_open_db_maybe): Likewise.
149         (char_table_close_db_maybe): Likewise.
150         (char_table_get_db): Likewise.
151         (Fmount_char_attribute_table): Likewise.
152         (Fload_char_attribute_table): Likewise.
153
154 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * mule-charset.c (load_char_decoding_entry_maybe): Use
157         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
158         `chise_ccs_decode'.
159
160 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
163         instead of `chise_open_data_source'.
164         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
165         `chise_ds_close'.
166
167 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
168
169         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
170         instead of `chise_ds_open_feature_table'.
171         (char_table_close_db_maybe): Don't use `chise_ft_close'.
172
173 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
174
175         * mule-charset.c (Fsave_charset_mapping_table): Use
176         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
177         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
178         `chise_ccs_sync' instead of `chise_ccst_close'.
179         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
180
181         * chartab.c (open_chise_data_source_maybe): Modify for
182         `chise_open_data_source'.
183         (char_table_open_db_maybe): Modify for
184         `chise_ds_open_feature_table'.
185
186 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
187
188         * mule-charset.c (load_char_decoding_entry_maybe): Use
189         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
190         `chise_ccst_close'.
191
192 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
193
194         * mule-charset.c (Fsave_charset_mapping_table): Use
195         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
196         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
197         `chise_dt_put_char' and `chise_dt_close'.
198         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
199         `chise_ccs_decode' and `chise_ccst_close' instead of
200         `chise_ds_open_decoding_table', `chise_dt_get_char' and
201         `chise_dt_close'.
202
203         * chartab.c (char_table_get_db): Use
204         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
205         (load_char_attribute_table_map_func): Modify for
206         `chise_char_feature_value_iterate'.
207         (Fload_char_attribute_table): Use
208         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
209
210 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
211
212         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
213
214 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
215
216         * chartab.c (put_char_table): Modify for inherited coded-charsets
217         in XEmacs CHISE.
218
219 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
220
221         * chartab.c (Fput_char_table_map_function): Fixed.
222         (word_boundary_p): Don't check charset in XEmacs CHISE.
223
224 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
225
226         * mule-charset.c (Fsave_charset_mapping_table): Use
227         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
228         instead of `chise_open_decoding_table'; refer
229         `default_chise_data_source'; use `chise_dt_close' instead of
230         `chise_close_decoding_table'.
231         (load_char_decoding_entry_maybe): Likewise.
232
233         * chartab.c (default_chise_data_source): New variable when `CHISE'
234         is defined.
235         (Fcopy_char_table): `ct->ds' is deleted.
236         (open_chise_data_source_maybe): New function.
237         (Fclose_char_data_source): New function.
238         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
239         use `chise_ds_open_feature_table' instead of
240         `chise_open_feature_table'.
241         (char_table_close_db_maybe): Use `chise_ft_close' instead of
242         `chise_close_feature_table'; `cit->ds' is deleted.
243         (syms_of_chartab): Add new builtin function
244         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
245
246         * chartab.h (default_chise_data_source): New extern variable.
247         (open_chise_data_source_maybe): New prototype.
248         (struct Lisp_Char_Table): Delete `ds'.
249
250 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
251
252         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
253         `CHISE' is defined.
254
255 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
256
257         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
258         not defined; add code for non-libchise setting.
259         (char_table_close_db_maybe): Likewise.
260         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
261         defined.
262         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
263         even if `CHISE' is not defined.
264         (Freset_char_attribute_table): Likewise.
265         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
266         `char_table_close_db_maybe' even if `CHISE' is not defined; use
267         `char_table_get_db'.
268         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
269         `char_table_close_db_maybe' even if `CHISE' is not defined.
270
271 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
272
273         * chartab.c (char_table_open_db_maybe): New function.
274         (char_table_close_db_maybe): New function.
275         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
276         (Freset_char_attribute_table): Likewise.
277         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
278         `char_table_close_db_maybe'.
279         (Fload_char_attribute_table): Likewise.
280
281 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
282
283         * chartab.c: Don't include <chise.h> because it is included in
284         chartab.h.
285         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
286         defined.
287         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
288         `CHISE' is defined.
289         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
290         `CHISE' is defined.
291         (Fclose_char_attribute_table): Close `ct->feature_table' and
292         `ct->ds' when `CHISE' is defined.
293         (Freset_char_attribute_table): Likewise.
294         (load_char_attribute_maybe): Use `cit->ds' and
295         `cit->feature_table' when `CHISE' is defined.
296         (Fload_char_attribute_table): Likewise.
297
298         * chartab.h: Include <chise.h> when `CHISE' is defined.
299         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
300         when `CHISE' is defined.
301
302 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
303
304         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
305         is defined.
306         (char_table_description): Likewise.
307         (Fmake_char_table): Likewise.
308         (Fcopy_char_table): Likewise.
309         (Fmount_char_attribute_table): Likewise.
310         (Fclose_char_attribute_table): Likewise.
311         (Freset_char_attribute_table): Likewise.
312         (load_char_attribute_maybe): Likewise.
313         (Fload_char_attribute_table): Likewise.
314
315         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
316         defined.
317
318 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
319
320         * chartab.c (load_char_attribute_table_map_func): New function
321         when CHISE is defined.
322         (Qload_char_attribute_table_map_function): Don't define when CHISE
323         is defined.
324         (Fload_char_attribute_table_map_function): Likewise.
325         (Fload_char_attribute_table): Use libchise when `CHISE' is
326         defined.
327         (syms_of_chartab): Don't define
328         `load-char-attribute-table-map-function' when CHISE is defined.
329
330 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
331
332         * chartab.c: Include <chise.h> when `CHISE' is defined.
333         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
334
335 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
336
337         * mule-charset.c (charset_code_point): Fix problem when searching
338         in mother CCS fails with `defined_only' mode.
339
340 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
341
342         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
343         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
344         (put_char_composition): Likewise.
345         (Fput_char_attribute): Likewise.
346         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
347
348 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
349
350         * chartab.c (Q_ucs): Deleted.
351         (Fput_char_attribute): Don't refer `->ucs'.
352         (Fdefine_char): Likewise.
353         (Ffind_char): Likewise.
354         (syms_of_chartab): Delete `->ucs'.
355
356 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
357
358         * mule-charset.c (Qmap_cns11643_2): Renamed from
359         `Qchinese_cns11643_2'.
360         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
361         `chinese-cns11643-2'.
362         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
363         `=cns11643-2'.
364
365 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
366
367         * mule-charset.c (Qmap_cns11643_1): Renamed from
368         `Qchinese_cns11643_1'.
369         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
370         `chinese-cns11643-1'.
371         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
372         `=cns11643-1'.
373
374 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
375
376         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
377         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
378         `chinese-gb12345'.
379         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
380         `=gb12345'.
381
382 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
383
384         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
385         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
386         `chinese-gb2312'.
387         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
388         `=gb2312'.
389
390 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
391
392         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
393         (syms_of_mule_charset): Add new symbol `=big5' instead of
394         `chinese-big5'.
395         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
396
397 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
398
399         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
400         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
401         `korean-ksc5601'.
402         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
403         `=ks-x1001'.
404
405 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
406
407         * mule-charset.c (Qmap_jis_x0212): Renamed from
408         `Qjapanese_jisx0212'.
409         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
410         `japanese-jisx0212'.
411         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
412         `=jis-x0212'.
413
414 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
415
416         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
417         `Qjapanese_jisx0208'.
418         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
419         of `japanese-jisx0208'.
420         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
421         `=jis-x0208-1983'.
422
423 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
424
425         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
426         `Qjapanese_jisx0208_1978'.
427         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
428         of `japanese-jisx0208-1978'.
429         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
430         `=jis-x0208-1978'.
431
432 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
433
434         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
435         only for XEmacs CHISE.
436
437 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
438
439         * char-ucs.h: Compact non-ISO-IR charset-ids.
440         (LEADING_BYTE_UCS): Changed to -177.
441         (LEADING_BYTE_CONTROL_1): Changed to -77.
442         (LEADING_BYTE_UCS_BMP): Changed to -176.
443         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
444
445 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * mule-charset.c (Qiso_ir): New variable.
448         (Fmake_charset): Recognise new property `iso-ir'.
449         (syms_of_mule_charset): Add new symbol `iso-ir'.
450
451 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
452
453         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
454         n to -n; charset-id of non ISO-IR sets are changed to positive
455         numbers.
456
457 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
458
459         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
460         for &MCS-XXXXXXXX; values.
461
462 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
463
464         * mule.c (Vxemacs_chise_version): Renamed from
465         `Vutf_2000_version'.
466         (vars_of_mule): Add new variable `xemacs-chise-version'; define
467         `utf-2000-version' as an alias for `xemacs-chise-version'.
468
469 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
470
471         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
472         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
473         defined.
474
475         * config.h.in (CHISE): New macro.
476
477 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
478
479         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
480         of `ucs'.
481         (Qmap_ucs): New variable.
482         (syms_of_mule_charset): Add new symbol `=ucs'.
483         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
484
485         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
486         (simplify_char_spec): Likewise.
487
488         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
489
490         * char-ucs.h (Qmap_ucs): New extern variable.
491
492 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
493
494         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
495         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
496         don't define it when UTF2000 is not defined.
497         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
498         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
499         when UTF2000 is not defined.
500         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
501         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
502
503 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
504
505         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
506
507         * mule-charset.c (Vcharset_ucs_gb): Deleted.
508         (Qucs_gb): Deleted.
509         (syms_of_mule_charset): Delete `ucs-gb'.
510         (complex_vars_of_mule_charset): Likewise.
511
512 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
513
514         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
515
516         * mule-charset.c (Vcharset_ucs_cns): Deleted.
517         (Qucs_cns): Deleted.
518         (syms_of_mule_charset): Delete `ucs-cns'.
519         (complex_vars_of_mule_charset): Likewise.
520
521 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
522
523         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
524
525         * mule-charset.c (Vcharset_ucs_jis): Deleted.
526         (Qucs_jis): Deleted.
527         (syms_of_mule_charset): Delete `ucs-jis'.
528         (complex_vars_of_mule_charset): Likewise.
529
530 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
531
532         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
533
534         * mule-charset.c (Vcharset_ucs_ks): Deleted.
535         (Qucs_ks): Deleted.
536         (syms_of_mule_charset): Delete `ucs-ks'.
537         (complex_vars_of_mule_charset): Likewise.
538
539 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
540
541         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
542         (Qideograph_daikanwa_2): Deleted.
543         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
544         (complex_vars_of_mule_charset): Likewise.
545
546         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
547         (LEADING_BYTE_DAIKANWA_1): Deleted.
548         (LEADING_BYTE_DAIKANWA_2): Deleted.
549         (MIN_CHAR_DAIKANWA): Deleted.
550         (MAX_CHAR_DAIKANWA): Deleted.
551
552 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
553
554         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
555         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
556         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
557
558         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
559         (Vcharset_ideograph_daikanwa): Deleted.
560         (Qideograph_hanziku_{1..12}): Deleted.
561         (Qideograph_daikanwa): Deleted.
562         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
563         Vcharset_ideograph_daikanwa.
564         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
565         `ideograph-hanziku-{1..12}'.
566         (complex_vars_of_mule_charset): Likewise.
567
568 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
569
570         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
571
572         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
573         (Qideograph_gt_pj_{1..11}): Deleted.
574         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
575         (complex_vars_of_mule_charset): Likewise.
576
577 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
578
579         * mule-charset.c (Vcharset_ucs_big5): Deleted.
580         (Vcharset_ideograph_gt): Deleted.
581         (Qucs_big5): Deleted.
582         (Qideograph_gt): Deleted.
583         (syms_of_mule_charset): Delete symbol `ucs-big5' and
584         `ideograph-gt'.
585         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
586         and `ideograph-gt'.
587
588         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
589         (LEADING_BYTE_GT): Deleted.
590         (MIN_CHAR_GT): Deleted.
591         (MAX_CHAR_GT): Deleted.
592
593 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
594
595         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
596
597 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
598
599         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
600         (save_uint16_byte_table): Likewise.
601         (save_byte_table): Likewise; convert values by it.
602         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
603         for `ideographic-structure'.
604         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
605         as the filter for `ideographic-structure'.
606
607 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
608
609         * chartab.c (put_char_composition): New function.
610         (Fput_char_attribute): Use `put_char_composition'; use
611         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
612
613         * fns.c (simplify_char_spec): New function.
614         (char_ref_simplify_spec): New function.
615         (Fchar_refs_simplify_char_specs): New function.
616         (syms_of_fns): Add new builtin function
617         `char-refs-simplify-char-specs'.
618
619 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
620
621         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
622         (Qideograph_cbeta): Deleted.
623         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
624         (complex_vars_of_mule_charset): Likewise.
625
626         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
627         (MIN_CHAR_CBETA): Comment out.
628         (MAX_CHAR_CBETA): Likewise.
629
630 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
631
632         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
633         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
634         CHISE client feature.
635
636 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
637
638         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
639
640 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
641
642         * mule-charset.c (charset_lookup_description_1): Use
643         `NUM_LEADING_BYTES' in UTF-2000.
644
645 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
646
647         * char-ucs.h (GC_CHARSETP): Deleted.
648
649 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
650
651         * char-ucs.h (MAX_CHAR_GT): Updated.
652
653 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
654
655         * text-coding.c: Sync with XEmacs 21.4.10.
656
657 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
658
659         * mule-charset.c (Vcharset_china3_jef): Deleted.
660         (Qchina3_jef): Deleted.
661         (syms_of_mule_charset): Don't define `china3-jef'.
662         (complex_vars_of_mule_charset): Likewise.
663
664         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
665         (MIN_CHAR_CHINA3_JEF): Comment out.
666         (MAX_CHAR_CHINA3_JEF): Comment out.
667
668 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
669
670         * mule-charset.c (Vcharset_ucs_gb): New variable.
671         (Qucs_gb): New variable.
672         (syms_of_mule_charset): Add new symbol `ucs-gb'.
673         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
674
675         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
676
677 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
678
679         * mule-charset.c (charset_code_point): if a coded-charset has a
680         final-byte, don't inherit the builtin range of the mother CCS.
681
682 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * mule-charset.c (charset_code_point): Fix problem about
685         inheritance.
686
687 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
688
689         * mule-charset.c (decode_builtin_char): Reorganized.
690
691 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
692
693         * text-coding.c (char_encode_as_entity_reference): Modify for
694         `charset_code_point'.
695         (char_encode_shift_jis): Likewise.
696         (char_encode_big5): Likewise.
697         (char_encode_utf8): Likewise.
698         (char_encode_iso2022): Likewise.
699
700         * mule-charset.c (charset_code_point): Add new argument
701         `defined_only'.
702         (Fencode_char): Add new optional argument `defined_only'.
703
704         * chartab.c (put_char_table): Modify for `charset_code_point'.
705
706         * char-ucs.h (charset_code_point): Add new argument
707         `defined_only'.
708         (encode_char_1): Modify for `charset_code_point'.
709
710 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
713         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
714
715 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
716
717         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
718         (Qjis_x0208): Likewise.
719         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
720         XCHARSET_FINAL(charset).
721         (charset_code_point): Modify condition for final-byte based
722         builtin-chars.
723         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
724         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
725         in UTF-2000; specify `=jis-x0208' as the mother of
726         `japanese-jisx0208-1978', `japanese-jisx0208' and
727         `japanese-jisx0208-1990' in UTF-2000.
728
729 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
730
731         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
732
733 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
734
735         * text-coding.c (decode_coding_utf16): Support UTF-16.
736         (char_encode_utf16): Fixed.
737
738 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
739
740         * text-coding.c (Qutf16): New variable in MULE.
741         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
742         (Fcoding_system_type): Add `utf-16' in MULE.
743         (struct detection_state): Add a structure for utf16 in MULE.
744         (detect_coding_type): Setup st->utf16.mask in MULE.
745         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
746         MULE.
747         (reset_encoding_stream): Use `char_encode_utf16' and
748         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
749         (detect_coding_utf16): New function [incomplete].
750         (decode_coding_utf16): New function [support only UCS-2].
751         (char_encode_utf16): New function.
752         (char_finish_utf16): New function.
753         (syms_of_file_coding): Add new symbol `utf-16'; setup
754         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
755
756         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
757         UTF-2000.
758         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
759         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
760
761 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
762
763         * chartab.c (put_char_table): When a charset is specified as a
764         range in UTF-2000, don't support builtin characters.
765
766 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
767
768         * mule-charset.c (decode_defined_char): Don't refer external
769         database if Qunbound or Qnil are found.
770         (Fsave_charset_mapping_table): Don't define it if
771         HAVE_CHISE_CLIENT is not defined.
772         (Freset_charset_mapping_table): New function.
773         (load_char_decoding_entry_maybe): Store Qnil if a character is not
774         found in external database.
775         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
776         if HAVE_CHISE_CLIENT is not defined; add new builtin function
777         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
778
779 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
780
781         * text-coding.c (decode_coding_utf8): Check CCS is specified or
782         not.
783
784 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
785
786         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
787         Q_lowercase, Q_uppercase in UTF-2000.
788
789         * chartab.c (get_char_table): Add special code for the standard
790         case table to use character attribute `->downcase' and
791         `->uppercase' for case operations in UTF-2000.
792
793         * casetab.c (Qflippedcase): New variable in UTF-2000.
794         (Q_lowercase): Likewise.
795         (Q_uppercase): Likewise.
796         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
797         and `->uppercase' in UTF-2000.
798         (complex_vars_of_casetab): Assign attribute name `downcase' to
799         downcase and CANON table of Vstandard_case_table in UTF-2000;
800         assign attribute name `flippedcase' to upcase and EQV table of
801         Vstandard_case_table in UTF-2000.
802
803 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * text-coding.c (decode_add_er_char): Support isolated-chars.
806         (char_encode_as_entity_reference): Likewise.
807
808 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
809
810         * emacs.c (Vutf_2000_lisp_directory): New variable.
811         (Vconfigure_utf_2000_lisp_directory): Likewise.
812         (complex_vars_of_emacs): Add new variable
813         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
814
815 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
816
817         * char-ucs.h (DECODE_CHAR): Delete special code for
818         `chinese-big5-1' and `chinese-big5-2'.
819
820         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
821         (Qbig5_2): Likewise.
822         (decode_defined_char): Support CONVERSION_BIG5_1 and
823         CONVERSION_BIG5_2.
824         (decode_builtin_char): Likewise.
825         (charset_code_point): Likewise.
826         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
827         'conversion in UTF-2000.
828         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
829         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
830         `chinese-big5-2' as children of `chinese-big5'.
831
832         * char-ucs.h (CONVERSION_BIG5_1): New macro.
833         (CONVERSION_BIG5_2): New macro.
834
835 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
836
837         * text-coding.c (char_encode_big5): Support entity-reference.
838
839 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
840
841         * text-coding.c (char_encode_as_entity_reference): New function.
842         (char_encode_utf8): Use `char_encode_as_entity_reference'.
843
844 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
845
846         * text-coding.c (decode_coding_big5): Support entity-reference
847         decoding feature.
848
849 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
850
851         * text-coding.c (allocate_coding_system): Initialize initial
852         charsets for CODESYS_UTF8.
853         (Fmake_coding_system): Accept charset-g0, charset-g1 and
854         charset-g2 for CODESYS_UTF8.
855         (decode_coding_utf8): Use charset-g0.
856         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
857         to force variants to map to UCS.
858
859 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * text-coding.c (Qutf_8_mcs): New variable.
862         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
863         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
864         instead of `utf-8' in UTF-2000.
865
866 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
867
868         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
869         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
870         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
871         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
872         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
873         CONVERSION_96x96x96x96 are introduced.
874         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
875         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
876         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
877
878         * char-ucs.h (CONVERSION_94): New macro.
879         (CONVERSION_96): New macro.
880         (CONVERSION_94x94): New macro.
881         (CONVERSION_96x96): New macro.
882         (CONVERSION_94x94x94): New macro.
883         (CONVERSION_96x96x96): New macro.
884         (CONVERSION_94x94x94x60): New macro.
885         (CONVERSION_94x94x94x94): New macro.
886         (CONVERSION_96x96x96x96): New macro.
887
888 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
889
890         * chartab.c (Vcharacter_variant_table): Deleted.
891         (Fchar_variants): Use character-attribute `->ucs-variants' instead
892         of `Vcharacter_variant_table'.
893         (Fput_char_attribute): Likewise.
894         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
895         (complex_vars_of_chartab): Likewise.
896
897 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
898
899         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
900
901         * fns.c (Qideographic_structure): New variable.
902         (Qkeyword_char): New variable.
903         (ids_format_unit): New function.
904         (Fideographic_structure_to_ids): New function.
905         (syms_of_fns): Add new symbols `ideographic-structure' and
906         `:char'; add new builtin function `ideographic-structure-to-ids'.
907
908         * data.c (Fchar_ref_p): New function.
909         (syms_of_data): Add new builtin function `char-ref-p'.
910
911         * chartab.h: Add an EXFUN for `Ffind_char'.
912
913 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
914
915         * text-coding.c (Vcharacter_composition_table): Deleted.
916         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
917         in every UTF-2000.
918
919         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
920         UTF-2000.
921         (Vcharacter_composition_table): Deleted.
922         (Fget_composite_char): Use the implementation for external-DB
923         support in every UTF-2000.
924         (Fput_char_attribute): Likewise.
925         (char_attribute_system_db_file): Don't define if external-DB
926         feature is not available.
927         (Fsave_char_attribute_table): Likewise.
928         (Fmount_char_attribute_table): Likewise.
929         (Fclose_char_attribute_table): Likewise.
930         (Freset_char_attribute_table): Likewise.
931         (Fload_char_attribute_table): Likewise.
932         (syms_of_chartab): Don't define `save-char-attribute-table',
933         `mount-char-attribute-table', `reset-char-attribute-table',
934         `close-char-attribute-table' and `load-char-attribute-table' if
935         external-DB feature is not available.
936         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
937
938 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
939
940         * text-coding.c (Qcomposition): Add extern if external-DB feature
941         is supported.
942         (Vcharacter_composition_table): Don't add extern if external-DB
943         feature is supported.
944         (COMPOSE_ADD_CHAR): Modify for new data-representation of
945         character composition rule if external-DB feature is supported.
946
947         * chartab.c (Vcharacter_composition_table): Don't define if
948         external-DB feature is supported.
949         (Qcomposition): New variable.
950         (Fget_composite_char): New implementation for external-DB support.
951         (Fput_char_attribute): Use `composition' property of each
952         character instead of `Vcharacter_composition_table' to store
953         character-composition rules if external-DB feature is supported.
954         (syms_of_chartab): Add new symbol `composition'.
955         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
956         external-DB feature is supported.
957
958 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
959
960         * chartab.c (Vchar_db_stingy_mode): New variable.
961         (load_char_attribute_maybe): Close database if
962         Vchar_db_stingy_mode is not NIL.
963         (Fload_char_attribute_table_map_function): Use
964         `get_char_id_table_0' instead of `get_char_id_table'.
965         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
966
967         * chartab.h (get_char_id_table_0): New inline function.
968         (get_char_id_table): Use `get_char_id_table_0'.
969
970 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
971
972         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
973         and `COMPOSE_ADD_CHAR'.
974         (decode_coding_iso2022): Use `decode_flush_er_chars'.
975
976 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
977
978         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
979         instead of `DECODE_ADD_UCS_CHAR'.
980         (COMPOSE_ADD_CHAR): Likewise.
981
982 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
983
984         * text-coding.c (decode_flush_er_chars): New inline function.
985         (decode_add_er_char): New function.
986         (decode_coding_utf8): Use `decode_flush_er_chars' and
987         `decode_add_er_char'.
988
989 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
990
991         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
992         done before `decode_output_utf8_partial_char'.
993
994         * mule-charset.c (complex_vars_of_mule_charset): Specify
995         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
996         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
997
998 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
999
1000         * mule-charset.c (decode_defined_char): New function; search
1001         mother.
1002         (decode_builtin_char): Don't search mother if
1003         XCHARSET_MAX_CODE(charset) == 0.
1004         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1005         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1006         (Fdecode_char): Use `decode_defined_char' instead of
1007         `DECODE_DEFINED_CHAR'.
1008         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1009         mother of `Vcharset_ucs_jis'.
1010
1011         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1012         instead of `DECODE_DEFINED_CHAR'.
1013
1014         * char-ucs.h (decode_defined_char): Renamed from
1015         `DECODE_DEFINED_CHAR'; changed to normal function.
1016         (DECODE_CHAR): Use `decode_defined_char' instead of
1017         `DECODE_DEFINED_CHAR'.
1018
1019         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1020
1021 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1022
1023         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1024
1025         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1026         variable.
1027         (Quse_entity_reference): New variable.
1028         (Qd): New variable.
1029         (Qx): New variable.
1030         (QX): New variable.
1031         (coding_system_description): Add description for
1032         `ccs_priority_list'.
1033         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1034         (allocate_coding_system): Initialize `ccs_priority_list' in
1035         UTF-2000.
1036         (Fmake_coding_system): Add description about
1037         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1038         (codesys).
1039         (Fcoding_system_property): Accept `disable-composition' and
1040         `use-entity-reference' in UTF-2000.
1041         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1042         in UTF-2000.
1043         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1044         (decode_coding_utf8): Decode entity-reference if
1045         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1046         (char_encode_utf8): Encode non-Unicode characters as
1047         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1048         (str->codesys).
1049         (syms_of_file_coding): Add new symbols `use-entity-reference',
1050         `d', `x', `X'.
1051         (vars_of_file_coding): Add new variable
1052         `coded-charset-entity-reference-alist'.
1053         (complex_vars_of_file_coding): Declare `disable-composition' and
1054         `use-entity-reference' to be coding-system-properties in UTF-2000.
1055
1056         * file-coding.h (struct Lisp_Coding_System): Add new member
1057         `use_entity_reference' and `ccs_priority_list'.
1058         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1059         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1060         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1061
1062 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1063
1064         * chartab.c (save_uint8_byte_table): Don't clear the table.
1065         (save_uint16_byte_table): Likewise.
1066         (save_byte_table): Likewise.
1067         (Fmount_char_attribute_table): New function.
1068         (syms_of_chartab): Add new builtin function
1069         `mount-char-attribute-table'.
1070
1071 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1072
1073         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1074         "w+" mode.
1075         (load_char_decoding_entry_maybe): Open database as read-only mode.
1076
1077         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1078         open database as "w+" mode.
1079         (load_char_attribute_maybe): Open database as read-only mode.
1080         (Fload_char_attribute_table): Likewise.
1081
1082 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1083
1084         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1085         (char_table_description): Delete member `db_file'.
1086         (Fmake_char_table): Don't refer `ct->db_file'.
1087         (Fcopy_char_table): Likewise.
1088         (Fsave_char_attribute_table): Likewise.
1089         (Fclose_char_attribute_table): Likewise.
1090         (Freset_char_attribute_table): Likewise.
1091         (load_char_attribute_maybe): Likewise.
1092         (Fload_char_attribute_table): Likewise.
1093
1094         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1095
1096 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097
1098         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1099         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1100         `ct->db' is living.
1101         (load_char_attribute_maybe): Likewise.
1102         (Fload_char_attribute_table): Likewise.
1103
1104 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1105
1106         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1107         `ct->db_file' unconditionally.
1108
1109 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1110
1111         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1112         UTF-2000.
1113         (char_table_description): Add description for `db_file' and `db'
1114         in UTF-2000.
1115         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1116         UTF-2000.
1117         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1118         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1119         (Fclose_char_attribute_table): New function.
1120         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1121         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1122         and `cit->db'.
1123         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1124         (syms_of_chartab): Add new builtin function
1125         `Fclose_char_attribute_table'.
1126
1127 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1128
1129         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1130         `db' in UTF-2000.
1131         (load_char_attribute_maybe): Change interface.
1132         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1133
1134 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1135
1136         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1137
1138 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1139
1140         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1141         instead of `DECODE_CHAR' for mother; don't use special code for
1142         chinese-big5 to use code space of chinese-big5-1 and
1143         chinese-big5-2.
1144         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1145         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1146
1147         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1148         (MAX_CHAR_BIG5_CDP): Revival.
1149
1150 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1151
1152         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1153         the XLFD registry-encoding name of `chinese-big5'.
1154
1155 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1156
1157         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1158         (Qchinese_big5_cdp): Deleted.
1159         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1160         (complex_vars_of_mule_charset): Delete coded-charset
1161         `chinese-big5-cdp'.
1162
1163         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1164         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1165         `CHARSET_ID_OFFSET - n' for private CCS.
1166         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1167         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1168         of `MIN_LEADING_BYTE'.
1169         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1170         `(CHARSET_ID_OFFSET - 97)'.
1171         (MIN_CHAR_BIG5_CDP): Deleted.
1172         (MAX_CHAR_BIG5_CDP): Deleted.
1173
1174 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1175
1176         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1177
1178 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1179
1180         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1181         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1182         chartab.c].
1183
1184         * chartab.c (Vutf_2000_version): Moved to mule.c.
1185         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1186
1187 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1188
1189         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1190         when HAVE_CHISE_CLIENT is not defined.
1191
1192         * mule.c (vars_of_mule): Provide feature `chise' when
1193         HAVE_CHISE_CLIENT is defined.
1194
1195 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1196
1197         * config.h.in (UTF2000): Add comment.
1198         (HAVE_CHISE_CLIENT): New macro.
1199
1200 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1201
1202         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1203         CONSP.
1204         (Fput_char_attribute): Likewise.
1205         (char_attribute_system_db_file): Encode file-name of attribute.
1206         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1207         the initial value.
1208
1209 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1210
1211         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1212         (Fsave_charset_mapping_table): Use
1213         `char_attribute_system_db_file'.
1214         (load_char_decoding_entry_maybe): Likewise.
1215
1216         * chartab.h (Qsystem_char_id): New external variable.
1217         (char_attribute_system_db_file): New prototype.
1218
1219         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1220         (char_attribute_system_db_file): New function.
1221         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1222         (Freset_char_attribute_table): Likewise.
1223         (load_char_attribute_maybe): Likewise.
1224         (Fload_char_attribute_table): Likewise.
1225         (syms_of_chartab): Add new symbol `system-char-id'.
1226
1227 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1228
1229         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1230         `XCHARSET_GRAPHIC(ccs)'.
1231
1232 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1233
1234         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1235
1236 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1237
1238         * chartab.c (Q_ucs_variants): New variable.
1239         (syms_of_chartab): Add new symbol `->ucs-variants'.
1240         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1241         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1242         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1243
1244         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1245
1246         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1247         `HAVE_DATABASE' is defined.
1248         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1249         `HAVE_DATABASE' is defined.
1250
1251 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1252
1253         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1254         attribute-table.
1255         (Freset_char_attribute_table): New function.
1256         (syms_of_chartab): Add new builtin function
1257         `reset-char-attribute-table'.
1258
1259 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1260
1261         * chartab.c (load_char_attribute_maybe): Don't make directories.
1262
1263 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1264
1265         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1266
1267         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1268         for decoding-table.
1269
1270 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1271
1272         * mule-charset.c (Fsave_charset_mapping_table): Use
1273         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1274
1275         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1276         instead of `XCHARSET_CHARS'.
1277
1278 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1279
1280         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1281         (XCHARSET_BYTE_SIZE): Likewise.
1282
1283         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1284         mule-charset.c].
1285         (XCHARSET_BYTE_SIZE): Likewise.
1286
1287 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1288
1289         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1290         data-directory to store database.
1291         (Fsave_char_attribute_table): Likewise.
1292         (load_char_attribute_maybe): Likewise.
1293         (Fload_char_attribute_table): Likewise.
1294
1295 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1296
1297         * mule-charset.c (Fsave_charset_mapping_table): New function.
1298         (syms_of_mule_charset): Add new builtin function
1299         `save-charset-mapping-table'.
1300
1301 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1302
1303         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1304         (get_ccs_octet_table): New inline function.
1305         (put_ccs_octet_table): Likewise.
1306         (decoding_table_put_char): Use `get_ccs_octet_table' and
1307         `put_ccs_octet_table'.
1308         (decoding_table_remove_char): Use `decoding_table_put_char'.
1309         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1310
1311         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1312         into encoding_table.
1313         (make_charset): Use Qunbound instead Qnil as initial value of
1314         decoding_table.
1315
1316 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1317
1318         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1319         element is Qunloaded.
1320         (map_over_uint16_byte_table): Likewise.
1321         (map_over_byte_table): Likewise.
1322         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1323         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1324         database support, load encoding-table of the specified
1325         coded-charset if it is not loaded yet.
1326         (save_uint8_byte_table): New function of UTF-2000 with external
1327         database support.
1328         (save_uint16_byte_table): Likewise.
1329         (save_byte_table): Likewise.
1330         (Fput_char_attribute): Don't store value into external database
1331         even if the external database feature is supported in UTF-2000;
1332         set `attribute' as name of char-table if the external database
1333         feature is supported.
1334         (Fsave_char_attribute_table): New function in UTF-2000.
1335         (syms_of_chartab): Add new builtin function
1336         `save-char-attribute-table' in UTF-2000.
1337
1338 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1339
1340         * chartab.c (char_attribute_table_to_put): New variable in
1341         UTF-2000.
1342         (Qput_char_table_map_function): Likewise.
1343         (value_to_put): Likewise.
1344         (Fput_char_table_map_function): New function in UTF-2000.
1345         (put_char_table): Use `Fmap_char_attribute' for
1346         CHARTAB_RANGE_CHARSET in UTF-2000.
1347         (Fput_char_attribute): Store symbol instead of string in
1348         `XCHAR_TABLE_NAME (table)'.
1349         (load_char_attribute_maybe): Likewise.
1350         (syms_of_chartab): Add new symbol/function
1351         `put-char-table-map-function'.
1352
1353 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1354
1355         * database.h: Add new EXFUN for `Fmap_database'.
1356
1357         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1358         (syms_of_database): Likewise.
1359
1360         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1361         UTF-2000.
1362         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1363         (XCHAR_TABLE_UNLOADED): Likewise.
1364
1365         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1366         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1367         HAVE_DATABASE is defined.
1368         (char_attribute_table_to_load): New variable of UTF-2000 with
1369         external database support.
1370         (Qload_char_attribute_table_map_function): Likewise.
1371         (Fload_char_attribute_table_map_function): New function of
1372         UTF-2000 with external database support.
1373         (Fload_char_attribute_table): New function of UTF-2000.
1374         (Fmap_char_attribute): Call Fload_char_attribute_table if
1375         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1376         (syms_of_chartab): Add new symbol and function
1377         `load-char-attribute-table-map-function' in UTF-2000 with external
1378         database support; add new function `load-char-attribute-table' in
1379         UTF-2000.
1380
1381 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1382
1383         * chartab.h (load_char_attribute_maybe): New prototype for
1384         UTF-2000 with DATABASE support.
1385         (get_char_id_table): Use `load_char_attribute_maybe' if
1386         HAVE_DATABASE is defined.
1387
1388         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1389         with DATABASE support.
1390
1391 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1392
1393         * chartab.c (Fput_char_attribute): Use S-expression as key of
1394         external database.
1395
1396         * chartab.h (get_char_id_table): Use S-expression as key of
1397         external database.
1398
1399 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1400
1401         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1402         if an element is not loaded, load the corresponding attributes
1403         from an external database.
1404         (map_over_uint16_byte_table): Likewise.
1405         (map_over_byte_table): Likewise.
1406         (map_char_table): Modify for `map_over_uint8_byte_table',
1407         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1408         element is not loaded, load the corresponding attributes from an
1409         external database.
1410         (Fput_char_attribute): Change initial values to Qunloaded.
1411
1412         * chartab.h (get_char_id_table): If a character attribute is not
1413         loaded and the attribute value is not found in an external
1414         database, store Qunbound as the attribute value.
1415
1416 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1417
1418         * chartab.c (BT_UINT8_unloaded): New macro.
1419         (UINT8_VALUE_P): Accept Qunloaded.
1420         (UINT8_ENCODE): Likewise.
1421         (UINT8_DECODE): Likewise.
1422         (BT_UINT16_unloaded): New macro.
1423         (UINT16_VALUE_P): Accept Qunloaded.
1424         (UINT16_ENCODE): Likewise.
1425         (UINT16_DECODE): Likewise.
1426         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1427         BT_UINT16_unloaded.
1428         (mark_char_table): Mark `ct->name' in UTF-2000.
1429         (char_table_description): Add `name' in UTF-2000.
1430         (Fmake_char_table): Initialize `ct->name'.
1431         (Fcopy_char_table): Copy `ct->name'.
1432         (Fput_char_attribute): Store value into an external database if
1433         HAVE_DATABASE is defined.
1434
1435         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1436         UTF-2000.
1437         (CHAR_TABLE_NAME): New macro in UTF-2000.
1438         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1439         (get_char_id_table): Try to read an external database if Qunloaded
1440         is stored in a table.
1441
1442         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1443         Qunloaded.
1444
1445 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1446
1447         * database.h: Add EXFUN definitions for Fopen_database,
1448         Fput_database, Fget_database and Fclose_database.
1449
1450         * data.c (Qunloaded): New variable in UTF-2000.
1451
1452         * lisp.h (Qunloaded): New variable in UTF-2000.
1453
1454 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1455
1456         * mule-charset.c (put_char_ccs_code_point): Modify for
1457         `decoding_table_remove_char' and `decoding_table_put_char'.
1458         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1459
1460         * char-ucs.h (decoding_table_remove_char): Change arguments to
1461         hide decoding_table vector.
1462         (decoding_table_put_char): Likewise.
1463
1464 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1465
1466         * mule-charset.c (decoding_table_remove_char): Moved to
1467         char-ucs.h.
1468         (decoding_table_put_char): Likewise.
1469
1470         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1471         from mule-charset.c].
1472         (decoding_table_remove_char): New inline function [moved from
1473         mule-charset.c].
1474         (decoding_table_put_char): Likewise.
1475
1476 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1477
1478         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1479         extension.
1480
1481 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1482
1483         * mule-charset.c (decode_builtin_char): Support mother charsets.
1484
1485 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1486
1487         * mule-charset.c (Q94x94x60): New variable.
1488         (charset_code_point): Support conversion `94x94x60'.
1489         (Fmake_charset): Likewise.
1490         (syms_of_mule_charset): Add new symbol `94x94x60'.
1491
1492         * char-ucs.h (CONVERSION_94x94x60): New macro.
1493
1494 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1495
1496         * mule-charset.c (charset_code_point): Unify code about
1497         `code-offset'.
1498
1499 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1500
1501         * mule-charset.c (charset_code_point): Merge code about builtin
1502         characters into code about mother charsets; don't use
1503         `range_charset_code_point'.
1504         (range_charset_code_point): Deleted.
1505
1506 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1507
1508         * mule-charset.c (Qcode_offset): New variable.
1509         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1510         `max-code'; accept new property `code-offset'.
1511         (syms_of_mule_charset): Add new symbol `code-offset'.
1512
1513 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1514
1515         * mule-charset.c (range_charset_code_point): Fixed.
1516
1517 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1518
1519         * mule-charset.c (decode_builtin_char): Change semantics of
1520         code-offset of coded-charset.
1521         (charset_code_point): Likewise.
1522         (range_charset_code_point): Likewise.
1523         (complex_vars_of_mule_charset): Modify for the change.
1524
1525 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1526
1527         * mule-charset.c (Fencode_char): Reverse arguments.
1528
1529         * mule-charset.c (charset_code_point): Fixed.
1530
1531 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1532
1533         * mule-charset.c (Vcharset_mojikyo): Deleted.
1534         (Vcharset_mojikyo_2022_1): Deleted.
1535         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1536         (Qmin_code): New variable in UTF-2000.
1537         (Qmax_code): Likewise.
1538         (Qmother): Likewise.
1539         (Qconversion): Likewise.
1540         (Q94x60): Likewise.
1541         (Qmojikyo): Deleted.
1542         (Qmojikyo_2022_1): Deleted.
1543         (Qmojikyo_pj_{1..22}): Deleted.
1544         (mark_charset): Mark `cs->mother'.
1545         (charset_description): Add description for `mother'.
1546         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1547         new arguments `mother' and `conversion'; use
1548         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1549         (charset_code_point): Moved from char-ucs.h; support `mother'
1550         charset feature.
1551         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1552         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1553         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1554         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1555         allow 2 as the value of `graphic' in UTF-2000; add new properties
1556         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1557         require `final' in UTF-2000; modify for `make_charset'.
1558         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1559         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1560         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1561         (Fencode_char): New function.
1562         (syms_of_mule_charset): Add new builtin function `encode-char' in
1563         UTF-2000; add new symbols `min-code', `max-code', `mother',
1564         `conversion' and `94x60'; delete symbols `mojikyo',
1565         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1566         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1567         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1568         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1569
1570         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1571         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1572
1573         * char-ucs.h (Vcharset_mojikyo): Deleted.
1574         (Vcharset_mojikyo_2022_1): Deleted.
1575         (LEADING_BYTE_MOJIKYO): Deleted.
1576         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1577         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1578         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1579         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1580         add new member `mother'; add new member `conversion'.
1581         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1582         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1583         (CHARSET_MOTHER): New macro.
1584         (CHARSET_CONVERSION): New macro.
1585         (CONVERSION_IDENTICAL): New macro.
1586         (CONVERSION_94x60): New macro.
1587         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1588         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1589         (XCHARSET_MOTHER): New macro.
1590         (XCHARSET_CONVERSION): New macro.
1591         (MIN_CHAR_MOJIKYO): Deleted.
1592         (MAX_CHAR_MOJIKYO): Deleted.
1593         (DECODE_MOJIKYO_2022): Deleted.
1594         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1595         (charset_code_point): Changed to non-inline function.
1596         (encode_char_1): Use `charset_code_point'.
1597         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1598
1599 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1600
1601         * lread.c (read_compiled_function): Fix prototype.
1602         (read_vector): Likewise.
1603
1604 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1605
1606         * lrecord.h (struct lrecord_header): Delete `older'.
1607         (set_lheader_implementation): Delete code for `older'.
1608         (set_lheader_older_implementation): Deleted.
1609         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1610         (OLDER_RECORD_P): Deleted.
1611         (OLDER_RECORD_HEADER_P): Deleted.
1612         (alloc_older_lcrecord): Deleted.
1613         (alloc_older_lcrecord_type): Deleted.
1614
1615         * alloc.c (all_older_lcrecords): Deleted.
1616         (alloc_older_lcrecord): Deleted.
1617         (disksave_object_finalization_1): Delete code for older objects.
1618         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1619         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1620
1621 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1622
1623         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1624         instead of `make_older_vector'.
1625         (put_char_ccs_code_point): Likewise.
1626         (mark_charset): Mark `cs->decoding_table'.
1627         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1628
1629         * lisp.h (make_older_vector): Deleted.
1630         (make_vector_newer): Deleted.
1631
1632         * config.h.in (HAVE_GGC): Deleted.
1633
1634         * alloc.c (make_older_vector): Deleted.
1635         (make_vector_newer_1): Deleted.
1636         (make_vector_newer): Deleted.
1637
1638 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1639
1640         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1641         (Qideograph_daikanwa_2): New variable.
1642         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1643         (complex_vars_of_mule_charset): Add new coded-charset
1644         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1645         `LEADING_BYTE_DAIKANWA'.
1646
1647         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1648         (LEADING_BYTE_DAIKANWA_1): New macro.
1649         (LEADING_BYTE_DAIKANWA_2): New macro.
1650         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1651
1652 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1653
1654         * mule-charset.c (complex_vars_of_mule_charset): Change
1655         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1656         the second revised version.
1657
1658 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1659
1660         * mule-charset.c (Vcharset_ucs_smp): New variable.
1661         (Vcharset_ucs_sip): New variable.
1662         (Qucs_smp): New variable.
1663         (Qucs_sip): New variable.
1664         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1665         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1666         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1667         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1668         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1669         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1670
1671         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1672         (LEADING_BYTE_UCS_SIP): New macro.
1673         (MIN_CHAR_SMP): New macro.
1674         (MAX_CHAR_SMP): New macro.
1675         (MIN_CHAR_SIP): New macro.
1676         (MAX_CHAR_SIP): New macro.
1677
1678 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1679
1680         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1681         utf-2000.
1682
1683 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1684
1685         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1686         value; don't store value into `encoding_table' of `Lisp_Charset'.
1687         (mark_charset): `encoding_table' was deleted.
1688         (charset_description): Likewise.
1689         (make_charset): Likewise.
1690         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1691         `put_char_ccs_code_point'.
1692
1693         * chartab.h (Fput_char_attribute): New EXFUN.
1694
1695         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1696         is unified with normal symbol space.
1697         (Fget_char_attribute): Likewise.
1698         (Fput_char_attribute): Likewise; behavior of
1699         `put_char_ccs_code_point' is changed.
1700
1701         * char-ucs.h: Include "elhash.h".
1702         (Vchar_attribute_hash_table): New external variable.
1703         (struct Lisp_Charset): Delete `encoding_table'.
1704         (CHARSET_ENCODING_TABLE): New implementation; refer
1705         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1706         `Lisp_Charset'.
1707
1708 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1709
1710         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1711         (cs) == 0.
1712
1713 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1714
1715         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1716         `chinese-big5'.
1717
1718 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1719
1720         * chartab.c (uint8_byte_table_description): New constant.
1721         (uint8-byte-table): Use `uint8_byte_table_description'.
1722         (uint16_byte_table_description): New constant.
1723         (uint16-byte-table): Use `uint16_byte_table_description'.
1724
1725 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1726
1727         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1728         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1729
1730 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1731
1732         * mule-charset.c (Vcharset_ucs_ks): New variable.
1733         (Qucs_ks): New variable.
1734         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1735         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1736
1737         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1738
1739 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1740
1741         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1742         (Fdecode_char): Likewise.
1743
1744         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1745         chartab.h.
1746         (Fdefine_char): Modify for Fdecode_char.
1747         (Ffind_char): Likewise.
1748
1749         * mule-charset.c (Fdecode_char): Add new optional argument
1750         `defined-only'.
1751         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1752
1753 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754
1755         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1756         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1757         (allocate_coding_system): Initialize initial-charsets of
1758         CODESYS_BIG5 in XEmacs UTF-2000.
1759         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1760         CODESYS_BIG5 in XEmacs UTF-2000.
1761         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1762         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1763
1764         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1765         variables.
1766         (Qideograph_hanziku_{1 .. 12}): Likewise.
1767         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1768         .. 12}'.
1769         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1770         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1771         `ideograph-hanziku-{1 .. 12}'.
1772
1773         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1774         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1775         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1776         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1777         (DECODE_DEFINED_CHAR): New inline function.
1778         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1779
1780 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1781
1782         * mule-charset.c (Vcharset_china3_jef): Renamed from
1783         `Vcharset_japanese_jef_china3'.
1784         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1785         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1786         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1787         (syms_of_mule_charset): Rename `china3-jef' from
1788         `japanese-jef-china3'.
1789         (complex_vars_of_mule_charset): Likewise; rename
1790         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1791
1792         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1793         `LEADING_BYTE_JEF_CHINA3'.
1794         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1795         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1796
1797 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1798
1799         * mule-charset.c (encode_builtin_char_1): Comment out special code
1800         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1801
1802         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1803         (MAX_CHAR_MOJIKYO_0): Comment out.
1804         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1805         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1806         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1807         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1808
1809 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1810
1811         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1812         (Qideograph_cbeta): New variable.
1813         (encode_builtin_char_1): Comment out special code for
1814         coded-charset `mojikyo' and `japanese-jef-china3'.
1815         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1816         (complex_vars_of_mule_charset): Add new coded-charset
1817         `ideograph-cbeta'.
1818
1819         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1820         (MIN_CHAR_CBETA): New macro.
1821         (MAX_CHAR_CBETA): New macro.
1822
1823 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1824
1825         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1826         (LEADING_BYTE_JEF_CHINA3): New macro.
1827         (MIN_CHAR_JEF_CHINA3): New macro.
1828         (MAX_CHAR_JEF_CHINA3): Likewise.
1829         (DECODE_CHAR): Fixed.
1830
1831 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1832
1833         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1834         (Qjapanese_jef_china3): New variable.
1835         (encode_builtin_char_1): Support `japanese-jef-china3'.
1836         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1837         (complex_vars_of_mule_charset): Add new coded-charset
1838         `japanese-jef-china3'.
1839
1840 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1841
1842         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1843         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1844         94^4, 96^3, 96^4, 128^n and 256^n set.
1845         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1846         (map_char_table): Likewise.
1847
1848 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1849
1850         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1851         UTF-2000.
1852
1853 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1854
1855         * chartab.h (get_char_id_table): New inline function.
1856
1857         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1858         function.
1859
1860 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1861
1862         * chartab.h (decode_char_table_range): New prototype in XEmacs
1863         UTF-2000.
1864         (put_char_id_table): New inline function in XEmacs UTF-2000.
1865
1866         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1867         function.
1868         (decode_char_table_range): Delete static declaration in XEmacs
1869         UTF-2000.
1870
1871 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1872
1873         * chartab.c (put_char_id_table): Use `put_char_table'.
1874
1875 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1876
1877         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1878         (map_over_uint16_byte_table): Likewise.
1879         (map_over_byte_table): Likewise.
1880         (map_char_table): Modify for `map_over_uint8_byte_table',
1881         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1882         UTF-2000.
1883
1884 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1885
1886         * chartab.c (struct map_char_table_for_charset_arg): New
1887         structure.
1888         (map_char_table_for_charset_fun): New function.
1889         (map_char_table): Use `map_char_table' for encoding_table of
1890         `range->charset'.
1891
1892 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1893
1894         * chartab.c (map_char_table): Check a character is found in
1895         range->charset instead of non default value is defined in
1896         char-table when range is CHARTAB_RANGE_ROW.
1897
1898 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1899
1900         * chartab.c (map_char_id_table): Deleted.
1901         (Fmap_char_attribute): Use `map_char_table' instead of
1902         `map_char_id_table'.
1903
1904 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1907         UTF-2000.
1908         (update_syntax_table): Deleted in XEmacs UTF-2000.
1909
1910         * syntax.c (find_defun_start): Use `syntax_table' instead of
1911         `mirror_syntax_table' in XEmacs UTF-2000.
1912         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1913         UTF-2000.
1914         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1915         XEmacs UTF-2000.
1916         (Fmatching_paren): Likewise.
1917         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1918         in XEmacs UTF-2000.
1919         (find_start_of_comment): Likewise.
1920         (find_end_of_comment): Likewise.
1921         (Fforward_comment): Likewise.
1922         (scan_lists): Likewise.
1923         (char_quoted): Likewise.
1924         (Fbackward_prefix_chars): Likewise.
1925         (scan_sexps_forward): Likewise.
1926         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1927         (update_syntax_table): Likewise.
1928
1929         * search.c (skip_chars): Use `syntax_table' instead of
1930         `mirror_syntax_table' in XEmacs UTF-2000.
1931         (wordify): Likewise.
1932         (Freplace_match): Likewise.
1933
1934         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1935         `mirror_syntax_table' in XEmacs UTF-2000.
1936         (WORDCHAR_P_UNSAFE): Likewise.
1937         (re_match_2_internal): Likewise.
1938
1939         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1940         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1941
1942         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1943         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1944
1945         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1946         XEmacs UTF-2000.
1947
1948         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1949         UTF-2000.
1950         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1951         (char_table_description): Delete `mirror_table' in XEmacs
1952         UTF-2000.
1953         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1954         UTF-2000.
1955         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1956         (Fcopy_char_table): Likewise.
1957         (put_char_table): Don't call `update_syntax_table' in XEmacs
1958         UTF-2000.
1959
1960         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1961         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1962         (casify_region_internal): Likewise.
1963
1964         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1965
1966         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1967         `mirror_syntax_table' in XEmacs UTF-2000.
1968
1969         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1970         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1971         (Fexpand_abbrev): Likewise.
1972
1973 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1974
1975         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1976
1977 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1978
1979         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1980         (map_over_uint16_byte_table): Likewise.
1981         (map_over_byte_table): Likewise.
1982         (get_char_id_table): Refer `cit->default_value'.
1983         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1984         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1985         of character-id ranges.
1986         (mark_char_table): Mark `ct->default_value'.
1987         (char_table_description): Add `default_value'.
1988         (fill_char_table): Use `default_value'.
1989         (decode_char_table_range): Decode `nil' as
1990         `CHARTAB_RANGE_DEFAULT'.
1991         (get_char_id_table): Refer `cit->default_value'.
1992         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1993         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1994         temporary hack; check value of char-table is bound or not.
1995         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1996
1997         * chartab.h (struct Lisp_Char_Table): Add new member
1998         `default_value' in XEmacs UTF-2000.
1999         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2000         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2001         UTF-2000.
2002
2003 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2004
2005         * chartab.h (Lisp_Char_ID_Table): Deleted.
2006
2007         * chartab.c (char_table_description): Fix typo.
2008         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2009         `Lisp_Char_ID_Table'.
2010
2011 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2012
2013         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2014         `CHAR_ID_TABLE_P'.
2015
2016         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2017         `CHAR_ID_TABLE_P'.
2018
2019         * chartab.h (XCHAR_ID_TABLE): Deleted.
2020         (XSETCHAR_ID_TABLE): Deleted.
2021         (CHAR_ID_TABLE_P): Deleted.
2022
2023         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2024         `CHAR_ID_TABLE_P'.
2025         (Fget_composite_char): Likewise.
2026         (put_char_table): Likewise.
2027         (add_char_attribute_alist_mapper): Fixed.
2028         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2029         `CHAR_ID_TABLE_P'.
2030         (Fget_char_attribute): Likewise.
2031         (Fget_char_attribute): Likewise.
2032         (Fmap_char_attribute): Likewise.
2033
2034         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2035         `CHAR_ID_TABLE_P'.
2036         (encode_char_1): Likewise.
2037
2038 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2039
2040         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2041         `XCHAR_ID_TABLE'.
2042
2043         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2044         instead of `XCHAR_ID_TABLE'.
2045         (remove_char_ccs): Likewise.
2046
2047         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2048         `XCHAR_ID_TABLE'.
2049         (Fget_composite_char): Likewise.
2050         (Fchar_variants): Likewise.
2051         (put_char_table): Likewise.
2052         (add_char_attribute_alist_mapper): Likewise.
2053         (Fchar_attribute_alist): Likewise.
2054         (Fget_char_attribute): Likewise.
2055         (Fput_char_attribute): Likewise.
2056         (Fmap_char_attribute): Likewise.
2057         (Fmap_char_attribute): Likewise.
2058
2059         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2060         `XCHAR_ID_TABLE'.
2061         (encode_char_1): Likewise.
2062
2063 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2064
2065         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2066         `Lisp_Char_ID_Table'.
2067         (mark_char_id_table): Deleted.
2068         (print_char_id_table): Likewise.
2069         (char_id_table_equal): Likewise.
2070         (char_id_table_hash): Likewise.
2071         (char_id_table_description): Likewise.
2072         (char_id_table): Likewise.
2073         (make_char_id_table): Use `Fmake_char_table' and
2074         `fill_char_table'.
2075         (get_char_id_table): Use `Lisp_Char_Table' instead of
2076         `Lisp_Char_ID_Table'.
2077         (put_char_id_table): Likewise.
2078         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2079         `XCHAR_ID_TABLE'.
2080         (Fremove_char_attribute): Likewise.
2081         (syms_of_chartab): Don't define type `char-id-table'.
2082
2083         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2084         (char_id_table): Likewise.
2085         (GC_CHAR_ID_TABLE_P): Likewise.
2086         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2087         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2088         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2089         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2090         (get_char_id_table): Use `Lisp_Char_Table' instead of
2091         `Lisp_Char_ID_Table'.
2092         (put_char_id_table_0): Likewise.
2093         (put_char_id_table): Likewise.
2094
2095 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2096
2097         * chartab.h: Lisp_Byte_Table related codes are moved from
2098         chartab.h.
2099
2100         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2101
2102 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2103
2104         * chartab.h: Don't include "chartab.h".
2105         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2106         (Lisp_Char_ID_Table): Likewise.
2107         (char_id_table): Likewise.
2108         (XCHAR_ID_TABLE): Likewise.
2109         (XSETCHAR_ID_TABLE): Likewise.
2110         (CHAR_ID_TABLE_P): Likewise.
2111         (GC_CHAR_ID_TABLE_P): Likewise.
2112         (get_char_id_table): Likewise.
2113
2114         * char-ucs.h: Include "chartab.h".
2115         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2116         (Lisp_Char_ID_Table): Likewise.
2117         (char_id_table): Likewise.
2118         (XCHAR_ID_TABLE): Likewise.
2119         (XSETCHAR_ID_TABLE): Likewise.
2120         (CHAR_ID_TABLE_P): Likewise.
2121         (GC_CHAR_ID_TABLE_P): Likewise.
2122         (get_char_id_table): Likewise.
2123
2124 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2125
2126         * chartab.c (copy_uint8_byte_table): New function.
2127         (copy_uint16_byte_table): New function.
2128         (copy_byte_table): New function.
2129         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2130         characters to call.
2131         (map_over_uint16_byte_table): Likewise.
2132         (map_over_byte_table): Likewise.
2133         (get_byte_table): Move prototype to chartab.h.
2134         (put_byte_table): Likewise.
2135         (put_char_id_table_0): Moved to chartab.h.
2136         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2137         (char_table_entry_equal): Likewise.
2138         (char_table_entry_hash): Likewise.
2139         (char_table_entry_description): Likewise.
2140         (char_table_entry): Likewise.
2141         (make_char_table_entry): Likewise.
2142         (copy_char_table_entry): Likewise.
2143         (get_non_ascii_char_table_value): Likewise.
2144         (map_over_charset_ascii): Likewise.
2145         (map_over_charset_control_1): Likewise.
2146         (map_over_charset_row): Likewise.
2147         (map_over_other_charset): Likewise.
2148         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2149         (print_char_table): Likewise.
2150         (char_table_equal): Likewise.
2151         (char_table_hash): Likewise.
2152         (char_table_description): Likewise.
2153         (fill_char_table): Likewise.
2154         (Fcopy_char_table): Likewise.
2155         (get_char_table): Likewise.
2156         (Fget_range_char_table): Likewise.
2157         (put_char_table): Likewise.
2158         (map_char_table): Likewise.
2159         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2160         UTF-2000.
2161
2162 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2163
2164         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2165         `Vauto_fill_chars' in XEmacs UTF-2000.
2166
2167         * chartab.h (get_byte_table): New prototype [moved from
2168         chartab.c].
2169         (put_byte_table): Likewise [moved from chartab.c].
2170         (put_char_id_table_0): New inline function [moved from chartab.c].
2171         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2172         (Lisp_Char_Table_Entry): Likewise.
2173         (char_table_entry): Likewise.
2174         (XCHAR_TABLE_ENTRY): Likewise.
2175         (XSETCHAR_TABLE_ENTRY): Likewise.
2176         (CHAR_TABLE_ENTRYP): Likewise.
2177         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2178         (NUM_ASCII_CHARS): Likewise.
2179         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2180         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2181
2182 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2183
2184         * chartab.c (get_char_id_table): Change interface.
2185         (put_char_id_table_0): New function.
2186         (put_char_id_table): Change interface; new implementation.
2187         (Fget_composite_char): Modify for interface change of
2188         `get_char_id_table'.
2189         (Fchar_variants): Likewise.
2190         (add_char_attribute_alist_mapper): Likewise.
2191         (Fchar_attribute_alist): Likewise.
2192         (Fget_char_attribute): Likewise.
2193         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2194         as same as character as the first argument like `put-char-table';
2195         modify for interface change of `put_char_id_table'.
2196         (Fremove_char_attribute): Modify for interface change of
2197         `put_char_id_table'.
2198
2199 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2200
2201         * text-coding.c: Sync up with XEmacs 21.2.41.
2202         (COMPOSE_ADD_CHAR): Modify for interface change of
2203         `get_char_id_table'.
2204
2205         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2206         change of `put_char_id_table'.
2207         (remove_char_ccs): Likewise.
2208
2209         * chartab.h (put_char_id_table): Change interface.
2210
2211         * char-ucs.h (get_char_id_table): Change interface.
2212         (charset_code_point): Modify for interface change of
2213         `get_char_id_table'.
2214         (encode_char_1): Likewise.
2215
2216 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2217
2218         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2219         argument `ccs'.
2220         (map_over_uint16_byte_table): Likewise.
2221         (map_over_byte_table): Likewise.
2222         (map_char_id_table): Add new argument `range' like
2223         `map_char_table'.
2224         (Fmap_char_attribute): Add new argument `range' like
2225         `Fmap_char_table'.
2226
2227 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2228
2229         * chartab.c (map_over_uint8_byte_table): Change interface of
2230         mapping function to use struct chartab_range instead of Emchar.
2231         (map_over_uint16_byte_table): Likewise.
2232         (map_over_byte_table): Likewise.
2233         (map_char_id_table): Likewise.
2234         (struct slow_map_char_id_table_arg): Deleted.
2235         (slow_map_char_id_table_fun): Deleted.
2236         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2237         function `slow_map_char_table_fun' instead of struct
2238         `slow_map_char_id_table_arg' and function
2239         `slow_map_char_id_table_fun'.
2240
2241 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2242
2243         * mule-charset.c: Move char-it-table related codes to chartab.c.
2244         (Vutf_2000_version): Moved to chartab.c.
2245         (Fdefine_char): Likewise.
2246         (Ffind_char): Likewise.
2247         (syms_of_mule_charset): Move types `uint8-byte-table',
2248         `uint16-byte-table', `byte-table' and `char-id-table' to
2249         chartab.c; move functions `char_attribute_list,
2250         `find_char_attribute_table, `char_attribute_alist,
2251         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2252         `map_char_attribute, `define_char, `find_char, `char_variants and
2253         `get_composite_char to chartab.c; move symbols `=>ucs',
2254         `->decomposition', `compat', `isolated', `initial', `medial',
2255         `final', `vertical', `noBreak', `fraction', `super', `sub',
2256         `circle', `square', `wide', `narrow', `small' and `font' to
2257         chartab.c.
2258         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2259         setting codes for `Vcharacter_composition_table' and
2260         `Vcharacter_variant_table' to chartab.c.
2261         (complex_vars_of_mule_charset): Move setting code for
2262         `Vchar_attribute_hash_table' to chartab.c.
2263
2264         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2265         (make_char_id_table): New prototype.
2266         (put_char_id_table): Likewise.
2267         (Fget_char_attribute): Likewise.
2268
2269         * chartab.c: Move char-id-table related code from mule-charset.c.
2270         (Vutf_2000_version): Moved from mule-charset.c.
2271
2272         * char-ucs.h (Qucs): New external variable.
2273         (put_char_ccs_code_point): New prototype.
2274         (remove_char_ccs): Likewise.
2275
2276 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2277
2278         * mule-charset.c (Vcharset_ucs_jis): New variable.
2279         (Qucs_jis): Likewise.
2280         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2281         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2282
2283         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2284
2285 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2286
2287         * mule-charset.c (map_over_uint8_byte_table): New function.
2288         (map_over_uint16_byte_table): Likewise.
2289         (map_over_byte_table): Likewise.
2290         (map_char_id_table): Likewise.
2291         (slow_map_char_id_table_fun): Likewise.
2292         (Fmap_char_attribute): Likewise.
2293         (syms_of_mule_charset): Add new function `map-char-attribute'.
2294
2295 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2296
2297         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2298         (syms_of_mule_charset): Add new function `find-char'.
2299
2300 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2301
2302         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2303         XEmacs UTF-2000.
2304         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2305         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2306         XEmacs UTF-2000.
2307         (complex_vars_of_mule_charset): Add new coded-charset
2308         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2309         `ideograph-gt-pj-*'.
2310
2311         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2312
2313 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2314
2315         * mule-charset.c (encode_builtin_char_1): Purge codes about
2316         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2317         {MIN|MAX}_CHAR_HEBREW.
2318         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2319         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2320
2321         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2322         (MAX_CHAR_GREEK): Purged.
2323         (MIN_CHAR_CYRILLIC): Purged.
2324         (MAX_CHAR_CYRILLIC): Purged.
2325         (MIN_CHAR_HEBREW): Commented out.
2326         (MAX_CHAR_HEBREW): Likewise.
2327
2328 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2329
2330         * mule-charset.c (Qto_ucs): New variable.
2331         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2332         (Fdefine_char): Likewise.
2333         (syms_of_mule_charset): Add new symbol `=>ucs'.
2334
2335 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2336
2337         * mule-charset.c (Fdecode_char): Fixed.
2338
2339 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2340
2341         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2342         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2343         "tcvn5712-1".
2344
2345 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2346
2347         * mule-charset.c (Vcharset_ucs_big5): New variable.
2348         (Qucs_big5): Likewise.
2349         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2350         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2351
2352         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2353
2354 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2355
2356         * mule-charset.c (decode_builtin_char): Check Big5 code range
2357         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2358
2359 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2360
2361         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2362         (Qchinese_gb12345): Likewise.
2363         (Fdecode_builtin_char): Fixed.
2364         (syms_of_mule_charset): Add `chinese-gb12345'.
2365         (complex_vars_of_mule_charset): Add coded-charset
2366         `chinese-gb12345'.
2367
2368         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2369         (LEADING_BYTE_CHINESE_GB12345): New macro.
2370
2371 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2372
2373         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2374         and `latin-viscii-upper' for `latin-viscii'.
2375
2376 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2377
2378         * mule-charset.c (Fdecode_builtin_char): Comment out
2379         regularization code for ISO-IR GR representation.
2380
2381 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2382
2383         * mule-charset.c (decode_builtin_char): New function; renamed from
2384         `make_builtin_char'; return -1 instead of signal.
2385         (Fdecode_builtin_char): Use `decode_builtin_char'.
2386
2387         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2388         `make_builtin_char'.
2389         (DECODE_CHAR): Use `decode_builtin_char' instead of
2390         `make_builtin_char'; use mapping table of `chinese-big5' for
2391         `chinese-big5-{1,2}'.
2392
2393 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2394
2395         * text-coding.c (char_encode_big5): New function.
2396         (char_finish_big5): Likewise.
2397         (reset_encoding_stream): Use `char_encode_big5' and
2398         `char_finish_big5' for CODESYS_BIG5.
2399         (mule_encode): Don't use `encode_coding_big5'.
2400         (encode_coding_big5): Deleted.
2401
2402 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2403
2404         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2405         0x81- in XEmacs UTF-2000.
2406         (detect_coding_big5): Likewise.
2407
2408 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2409
2410         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2411         generate character-id if the CCS property does not have
2412         corresponding predefined character.
2413         (make_builtin_char): Return -1 if corresponding predefined
2414         character is not found.
2415         (Fdecode_char): Return nil if corresponding character is not
2416         found.
2417         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2418         don't map to builtin ucs space.
2419
2420 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2421
2422         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2423         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2424
2425 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2426
2427         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2428         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2429         (Qideograph_gt): Likewise.
2430         (Qideograph_gt_pj_{1..11}): Likewise.
2431         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2432         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2433         `ideograph-gt-pj-11'.
2434         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2435         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2436         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2437
2438         * char-ucs.h (LEADING_BYTE_GT): New macro.
2439         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2440         (MIN_CHAR_GT): Likewise.
2441         (MAX_CHAR_GT): Likewise.
2442
2443 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2444
2445         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2446         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2447
2448         * doprnt.c (unsigned_int_converters): Add `c'.
2449         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2450
2451         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2452         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2453         `MIN_CHAR_MOJIKYO'.
2454         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2455         (MAX_CHAR_MOJIKYO_0): New macro.
2456         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2457
2458 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2459
2460         * mule-charset.c (Fdefine_char): Delete cemented out code.
2461         (encode_builtin_char_1): Modify for new allocation of builtin
2462         Mojikyo characters.
2463
2464         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2465
2466 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2467
2468         * mule-charset.c (Vcharset_ucs_cns): New variable.
2469         (Qucs_cns): New variable.
2470         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2471         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2472
2473 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2474
2475         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2476
2477 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2478
2479         * search.c (search_buffer): Make `charset_base_code' as
2480         character-id >> 6 to eliminate the corresponding last byte in
2481         UTF-8 representation [I'm not sure it is right thing].
2482         (boyer_moore): Likewise.
2483
2484 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2485
2486         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2487         representation in MULE.
2488
2489 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2490
2491         * text-coding.c (Fmake_coding_system): Use
2492         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2493         `EXTERNAL_PROPERTY_LIST_LOOP'.
2494
2495 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2496
2497         * text-coding.c (decode_output_utf8_partial_char): New function.
2498         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2499
2500 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2501
2502         * text-coding.c (decode_coding_utf8): Output original byte
2503         sequence if it is broken; change order of conditions.
2504
2505         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2506         of conditions.
2507
2508         * mb-multibyte.h (BYTE_ASCII_P):
2509         Use bit ops for char-signedness safety.
2510         (BYTE_C0_P): Use bit ops for char-signedness safety.
2511         (BYTE_C1_P): Use bit ops for char-signedness safety.
2512
2513         * character.h: (XCHAR_OR_CHAR_INT):
2514         Always use inline function.
2515         Remove redundant type checking assert() - XINT will abort quite
2516         nicely.
2517
2518 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2519
2520         * text-coding.c: (Fencode_shift_jis_char):
2521         (Fencode_big5_char):
2522         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2523         Replace 0 with '\0' when working with bytes.
2524         Replace initial "(" with "\(" in docstrings.
2525
2526         (Fmake_coding_system):
2527         When type is ccl and value is vector, register it with a proper
2528         symbol.  And checks whether the given ccl program is valid.
2529         (mule_decode): When calling ccl_driver, if src indicates
2530         NULL pointer, set an empty string instead.
2531         (mule_encode): Likewise.
2532
2533         (detect_eol_type):
2534         (detect_coding_sjis):
2535         (decode_coding_sjis):
2536         (detect_coding_big5):
2537         (decode_coding_big5):
2538         (detect_coding_ucs4):
2539         (decode_coding_ucs4):
2540         (detect_coding_utf8):
2541         (decode_coding_utf8):
2542         (detect_coding_iso2022):
2543         (decode_coding_iso2022):
2544         (decode_coding_no_conversion):
2545         (mule_decode):
2546         Make all detecting and decoding functions take an Extbyte * arg.
2547         (text_encode_generic):
2548         (encode_coding_big5):
2549         (encode_coding_no_conversion):
2550         (mule_encode):
2551         Make all encoding functions take a Bufbyte * arg.
2552         Use size_t instead of unsigned int for memory sizes.
2553         Only cast to unsigned char whenever dereferencing Extbyte *.
2554
2555         (struct lrecord_description fcd_description_1): Use countof.
2556         (complex_vars_of_file_coding):
2557         Use countof instead of sizeof.
2558         Use CHECK_NATNUM instead of CHECK_INT.
2559
2560 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2561
2562         * mule-charset.c (Fget_char_attribute): Add new optional argument
2563         `default-value'.
2564         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2565         (remove_char_ccs): Likewise.
2566
2567 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2568
2569         * text-coding.c (char_encode_shift_jis): New implementation in
2570         UTF-2000.
2571         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2572         ...)'.
2573
2574         * mule-charset.c (Vcharset_chinese_big5): New variable in
2575         UTF-2000.
2576         (Qchinese_big5): New variable in UTF-2000.
2577         (BIG5_SAME_ROW): New macro in UTF-2000.
2578         (make_builtin_char): Use builtin characters of
2579         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2580         characters of `Vcharset_chinese_big5'.
2581         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2582         (complex_vars_of_mule_charset): Add new coded-charset
2583         `chinese-big5' in UTF-2000.
2584
2585         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2586         (Vcharset_chinese_big5): New external variable declaration.
2587         (Vcharset_japanese_jisx0208_1990): Likewise.
2588
2589 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2590
2591         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2592         function.
2593         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2594
2595 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2598         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2599         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2600         `mojikyo-pj-*'.
2601
2602 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2603
2604         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2605
2606 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2607
2608         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2609         to 0.17.
2610
2611 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2612
2613         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2614         for `CHARSET_BY_ATTRIBUTES'.
2615         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2616         `CHARSET_BY_ATTRIBUTES'.
2617
2618         * text-coding.c (struct decoding_stream): Rename member `CH' to
2619         `CPOS'.
2620         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2621         (decode_coding_sjis): Likewise.
2622         (decode_coding_big5): Likewise.
2623         (decode_coding_ucs4): Likewise.
2624         (decode_coding_utf8): Likewise.
2625         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2626         `CHARSET_BY_ATTRIBUTES'.
2627         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2628         `str->counter'; decode 3, 4 bytes sets.
2629         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2630         sets.
2631         (decode_coding_no_conversion): Use `str->cpos' instead of
2632         `str->ch'.
2633
2634         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2635         (Qmojikyo_2022_1): New variable.
2636         (make_charset): Don't use `CHARSET_TYPE_*'.
2637         (range_charset_code_point): Support coded-charset
2638         `mojikyo-2022-1'.
2639         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2640         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2641         `CHARSET_BY_ATTRIBUTES'.
2642         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2643         `CHARSET_BY_ATTRIBUTES'.
2644         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2645         (complex_vars_of_mule_charset): Add new coded-charset
2646         `mojikyo-2022-1'.
2647
2648         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2649         interface; changed to inline function.
2650
2651         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2652         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2653         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2654         (CHARSET_TYPE_94): Deleted.
2655         (CHARSET_TYPE_94X94): Deleted.
2656         (CHARSET_TYPE_96): Deleted.
2657         (CHARSET_TYPE_96X96): Deleted.
2658         (CHARSET_TYPE_128): Deleted.
2659         (CHARSET_TYPE_128X128): Deleted.
2660         (CHARSET_TYPE_256): Deleted.
2661         (CHARSET_TYPE_256X256): Deleted.
2662         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2663         to inline function.
2664         (DECODE_MOJIKYO_2022): New inline function.
2665         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2666         `Vcharset_mojikyo_2022_1'.
2667
2668 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2669
2670         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2671         instead of `EQ'.
2672         (put_byte_table): Likewise.
2673         (char_id_table_equal): Use `get_byte_table' [new implementation].
2674
2675 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2676
2677         * mule-charset.c: Include <limits.h> in UTF-2000.
2678         (BT_UINT8_MIN): New macro in UTF-2000.
2679         (BT_UINT8_MAX): New macro in UTF-2000.
2680         (BT_UINT8_t): New macro in UTF-2000.
2681         (BT_UINT8_nil): New macro in UTF-2000.
2682         (BT_UINT8_unbound): New macro in UTF-2000.
2683         (INT_UINT8_P): New inline function in UTF-2000.
2684         (UINT8_VALUE_P): New inline function in UTF-2000.
2685         (UINT8_ENCODE): New inline function in UTF-2000.
2686         (UINT8_DECODE): New inline function in UTF-2000.
2687         (mark_uint8_byte_table): New function in UTF-2000.
2688         (print_uint8_byte_table): New function in UTF-2000.
2689         (uint8_byte_table_equal): New function in UTF-2000.
2690         (uint8_byte_table_hash): New function in UTF-2000.
2691         (make_uint8_byte_table): New function in UTF-2000.
2692         (uint8_byte_table_same_value_p): New function in UTF-2000.
2693         (BT_UINT16_MIN): New macro in UTF-2000.
2694         (BT_UINT16_MAX): New macro in UTF-2000.
2695         (BT_UINT16_t): New macro in UTF-2000.
2696         (BT_UINT16_nil): New macro in UTF-2000.
2697         (BT_UINT16_unbound): New macro in UTF-2000.
2698         (INT_UINT16_P): New inline function in UTF-2000.
2699         (UINT16_VALUE_P): New inline function in UTF-2000.
2700         (UINT16_ENCODE): New inline function in UTF-2000.
2701         (UINT16_DECODE): New inline function in UTF-2000.
2702         (UINT8_TO_UINT16): New inline function in UTF-2000.
2703         (mark_uint16_byte_table): New function in UTF-2000.
2704         (print_uint16_byte_table): New function in UTF-2000.
2705         (uint16_byte_table_equal): New function in UTF-2000.
2706         (uint16_byte_table_hash): New function in UTF-2000.
2707         (make_uint16_byte_table): New function in UTF-2000.
2708         (uint16_byte_table_same_value_p): New function in UTF-2000.
2709         (print_byte_table): New function in UTF-2000.
2710         (byte-table): Use `print_byte_table' as printer.
2711         (make_byte_table): Delete second argument `older'.
2712         (byte_table_same_value_p): New function in UTF-2000.
2713         (copy_byte_table): Deleted.
2714         (get_byte_table): New function in UTF-2000.
2715         (put_byte_table): New function in UTF-2000.
2716         (print_char_id_table): New function in UTF-2000.
2717         (char-id-table): Use `print_char_id_table' as printer.
2718         (make_char_id_table): Delete second argument `older'.
2719         (get_char_id_table): Use `get_byte_table [new implementation].
2720         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2721         implementation].
2722         (Ffind_char_attribute_table): New function in UTF-2000.
2723         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2724         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2725         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2726         (syms_of_mule_charset): Add new function
2727         `find-char-attribute-table' in UTF-2000.
2728
2729         * lrecord.h (enum lrecord_type): Add
2730         `lrecord_type_uint16_byte_table' and
2731         `lrecord_type_uint8_byte_table'.
2732
2733         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2734         (Lisp_Uint8_Byte_Table): New type.
2735         (XUINT8_BYTE_TABLE): New macro.
2736         (XSETUINT8_BYTE_TABLE): New macro.
2737         (UINT8_BYTE_TABLE_P): New macro.
2738         (GC_UINT8_BYTE_TABLE_P): New macro.
2739         (struct Lisp_Uint16_Byte_Table): New structure.
2740         (Lisp_Uint16_Byte_Table): New type.
2741         (XUINT16_BYTE_TABLE): New macro.
2742         (XSETUINT16_BYTE_TABLE): New macro.
2743         (UINT16_BYTE_TABLE_P): New macro.
2744         (GC_UINT16_BYTE_TABLE_P): New macro.
2745
2746 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2747
2748         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2749         (Vcharacter_ideographic_strokes_table): Deleted.
2750         (Vcharacter_total_strokes_table): Deleted.
2751         (Vcharacter_morohashi_daikanwa_table): Deleted.
2752         (Vcharacter_decomposition_table): Deleted.
2753         (Qname): Deleted because it is duplicated.
2754         (Qideographic_radical): Deleted.
2755         (Qideographic_strokes): Deleted.
2756         (Qtotal_strokes): Deleted.
2757         (Qmorohashi_daikanwa): Deleted.
2758         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2759         `ideographic-radical', `ideographic-strokes', `total-strokes',
2760         `morohashi-daikanwa' and `->decomposition'.
2761         (Fget_char_attribute): Likewise.
2762         (Fput_char_attribute): Likewise; use `make-vector' instead of
2763         `make_older_vector' for `->decomposition' value.
2764         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2765         `ideograph-daikanwa'.
2766         (syms_of_mule_charset): Delete builtin symbols `name',
2767         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2768         `morohashi-daikanwa'.
2769         (vars_of_mule_charset): Don't setup
2770         `Vcharacter_ideographic_radical_table',
2771         `Vcharacter_ideographic_strokes_table',
2772         `Vcharacter_total_strokes_table',
2773         `Vcharacter_morohashi_daikanwa_table' and
2774         `Vcharacter_decomposition_table'.
2775
2776 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2777
2778         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2779         `make_older_vector', `make_vector_newer_1' and
2780         `make_vector_newer'.
2781
2782         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2783         `make_older_vector' and `make_vector_newer'.
2784
2785         * config.h.in (HAVE_GGC): New macro.
2786
2787 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2788
2789         * mule-charset.c (struct char_attribute_list_closure): New
2790         structure in UTF-2000.
2791         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2792         (Fchar_attribute_list): Likewise.
2793         (Fset_charset_mapping_table): Use `make_vector_newer'.
2794         (Fdecode_builtin_char): New function in UTF-2000.
2795         (syms_of_mule_charset): Add new function `char-attribute-list' and
2796         `decode-builtin-char' in UTF-2000.
2797
2798         * lisp.h (make_vector_newer): New prototype.
2799
2800         * alloc.c (make_vector_newer_1): New function.
2801         (make_vector_newer): New function.
2802
2803 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2804
2805         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2806         50100)'.
2807
2808 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2809
2810         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2811         (Vcharacter_attribute_table): Deleted.
2812         (Vcharacter_name_table): Deleted.
2813         (put_char_attribute): Deleted.
2814         (remove_char_attribute): Deleted.
2815         (struct char_attribute_alist_closure): New structure.
2816         (add_char_attribute_alist_mapper): New function.
2817         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2818         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2819         (Fget_char_attribute): Likewise.
2820         (Fput_char_attribute): Likewise.
2821         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2822         of `remove_char_attribute'.
2823         (Fdefine_char): Return character.
2824         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2825         and `Vcharacter_name_table'.
2826         (complex_vars_of_mule_charset): Likewise
2827         `Vchar_attribute_hash_table'.
2828
2829 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2830
2831         * character.h (CHARC_CHARSET): New macro.
2832         (CHARC_CHARSET_ID): New macro.
2833         (CHARC_CODE_POINT): New macro.
2834         (CHARC_COLUMNS): New macro.
2835         (CHARC_TO_CHAR): New inline function.
2836         (CHARC_EQ): New inline function.
2837         (CHARC_ASCII_EQ): New inline function.
2838         (CHARC_IS_SPACE): New inline function.
2839         (ASCII_TO_CHARC): New inline function.
2840
2841         * char-ucs.h (encode_char_2): Deleted.
2842         (ENCODE_CHAR): Use `encode_char_1' again.
2843         (breakup_char_1): Likewise.
2844         (CHAR_TO_CHARC): New inline function.
2845
2846         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2847
2848 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2849
2850         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2851         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2852         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2853         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2854         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2855         `CHARC_IS_SPACE'.
2856         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2857
2858         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2859         `CHARC_CODE_POINT'.
2860         (x_output_display_block): Use `CHARC_CHARSET' and
2861         `CHARC_ASCII_EQ'.
2862
2863         * redisplay-tty.c (tty_output_display_block): Use
2864         `CHARC_ASCII_EQ'.
2865         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2866
2867         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2868
2869         * insdel.c (find_charsets_in_charc_string): Use
2870         `CHARC_CHARSET_ID'.
2871         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2872         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2873         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2874         (convert_charc_string_into_malloced_string): Likewise.
2875
2876 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2877
2878         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2879         instead of <Emchar_dynarr *> for buf; use
2880         `convert_bufbyte_string_into_charc_dynarr' instead of
2881         `convert_bufbyte_string_into_emchar_dynarr'; use
2882         `find_charsets_in_charc_string' instead of
2883         `find_charsets_in_emchar_string'.
2884
2885         * redisplay.h:
2886         - Include "character.h".
2887         (struct rune): New member `cglyph'; delete member `chr'.
2888
2889         * redisplay.c (redisplay_text_width_charc_string): New function;
2890         delete `redisplay_text_width_emchar_string'.
2891         (rtw_charc_dynarr): New variable; renamed from
2892         `rtw_emchar_dynarr'.
2893         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2894         `rtw_emchar_dynarr'; use
2895         `convert_bufbyte_string_into_charc_dynarr' instead of
2896         `convert_bufbyte_string_into_emchar_dynarr'; use
2897         `redisplay_text_width_charc_string' instead of
2898         `redisplay_text_width_emchar_string'.
2899         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2900         instead of `rtw_emchar_dynarr'; use
2901         `convert_bufbyte_string_into_charc_dynarr' instead of
2902         `convert_bufbyte_string_into_emchar_dynarr'.
2903         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2904         `redisplay_text_width_charc_string' instead of
2905         `redisplay_text_width_emchar_string'.
2906         (create_text_block): Modify for <struct rune> change.
2907         (generate_formatted_string_db): Likewise.
2908         (create_string_text_block): Likewise.
2909         (pixel_to_glyph_translation): Likewise.
2910
2911         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2912         instead of <const Emchar *>.
2913         (x_text_width): Likewise.
2914         (x_output_display_block): Use <Charc_dynarr *> instead
2915         <Emchar_dynarr *>; modify for <structure rune> change.
2916         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2917         *>.
2918
2919         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2920         <const Emchar *>; use `charc_string_displayed_columns' instead of
2921         `emchar_string_displayed_columns'.
2922         (tty_output_display_block): Use <Charc_dynarr *> instead of
2923         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2924         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2925         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2926         `tty_output_emchar_dynarr_dynarr'.
2927         (tty_output_charc_dynarr): New function; delete
2928         `tty_output_charc_dynarr'.
2929
2930         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2931         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2932         <Emchar_dynarr *> for buf; use
2933         `convert_bufbyte_string_into_charc_dynarr' instead of
2934         `convert_bufbyte_string_into_emchar_dynarr'.
2935
2936         * frame.c (title_string_charc_dynarr): New variable; renamed from
2937         `title_string_emchar_dynarr'.
2938         (generate_title_string): Use `title_string_charc_dynarr' instead
2939         of `title_string_emchar_dynarr'; use
2940         `convert_charc_string_into_malloced_string' instead of
2941         `convert_emchar_string_into_malloced_string'.
2942         (init_frame): Use `title_string_charc_dynarr' instead of
2943         `title_string_emchar_dynarr'.
2944
2945         * console.h:
2946         - Include "character.h".
2947         (struct console_methods): Use <const Charc *> instead of <const
2948         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2949         <Emchar_dynarr *> in output_string_method.
2950
2951         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2952         <Emchar_dynarr *>.
2953
2954         * console-stream.c (stream_text_width): Use <const Charc *>
2955         instead of <const Emchar *>.
2956
2957         * character.h (Charc_dynarr): New type.
2958
2959         * char-ucs.h (structure Charc): New structure; define new type
2960         `Charc'.
2961
2962         * char-lb.h (DECODE_CHAR): New inline function.
2963         (encode_char_1): New inline function.
2964         (ENCODE_CHAR): New macro.
2965         (structure Charc): New structure; define new type `Charc'.
2966
2967         * char-1byte.h (Vcharset_control_1): New macro.
2968         (Vcharset_latin_iso8859_1): New macro.
2969         (DECODE_CHAR): New inline function.
2970         (encode_char_1): New inline function.
2971         (ENCODE_CHAR): New macro.
2972         (structure Charc): New structure; define new type `Charc'.
2973
2974         * insdel.c (find_charsets_in_charc_string): New function; delete
2975         `find_charsets_in_emchar_string'.
2976         (charc_string_displayed_columns): New function; delete
2977         `emchar_string_displayed_columns'.
2978         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2979         `convert_bufbyte_string_into_emchar_dynarr'.
2980         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2981         `convert_charc_string_into_bufbyte_dynarr'.
2982         (convert_charc_string_into_malloced_string): New function; delete
2983         `convert_charc_string_into_malloced_string'.
2984
2985         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2986         `find_charsets_in_emchar_string'.
2987         (charc_string_displayed_columns): New prototype; delete
2988         `emchar_string_displayed_columns'.
2989         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2990         `convert_charc_string_into_bufbyte_dynarr'.
2991         (convert_charc_string_into_malloced_string): New prototype; delete
2992         `convert_charc_string_into_malloced_string'.
2993
2994 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2995
2996         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2997
2998 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2999
3000         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3001
3002         * char-ucs.h: Use <short> for <Charset_ID>.
3003
3004         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3005         <Charset_ID>.
3006
3007 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3008
3009         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3010         to 0.16.
3011
3012 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3013
3014         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3015         variable.
3016         (Qmorohashi_daikanwa): New variable.
3017         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3018         for `morohashi-daikanwa' attribute.
3019         (Fget_char_attribute): Likewise.
3020         (Fput_char_attribute): Likewise.
3021         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3022         has the same value of `ideograph-daikanwa'.
3023         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3024         (vars_of_mule_charset): Setup
3025         `Vcharacter_morohashi_daikanwa_table'.
3026
3027 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3028
3029         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3030         attributes.
3031         (add_charset_to_list_mapper): Add `key' instead of
3032         `XCHARSET_NAME (value)' to return aliases.
3033
3034 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3035
3036         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3037         variable.
3038         (Vcharacter_ideographic_strokes_table): New variable.
3039         (Qideographic_radical): New variable.
3040         (Qideographic_strokes): New variable.
3041         (Fchar_attribute_alist): Use
3042         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3043         attribute; use `Vcharacter_ideographic_strokes_table' for
3044         `ideographic-strokes' attribute.
3045         (Fget_char_attribute): Likewise.
3046         (Fput_char_attribute): Likewise.
3047         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3048         `ideographic-strokes'.
3049         (vars_of_mule_charset): Setup
3050         `Vcharacter_ideographic_radical_table' and
3051         `Vcharacter_ideographic_strokes_table'.
3052
3053 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3054
3055         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3056         (Qtotal_strokes): New variable.
3057         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3058         `total-strokes' attribute.
3059         (Fget_char_attribute): Likewise.
3060         (Fput_char_attribute): Likewise.
3061         (syms_of_mule_charset): Add new symbol `total-strokes'.
3062         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3063
3064 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3065
3066         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3067         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3068         are found.
3069         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3070         `->decomposition' attribute.
3071         (Fput_char_attribute): Likewise.
3072         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3073
3074 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3075
3076         * mule-charset.c (decoding_table_check_elements): New function.
3077         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3078
3079 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3080
3081         * mule-charset.c (Fset_charset_mapping_table): Use
3082         `put_char_ccs_code_point'.
3083
3084 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3085
3086         * mule-charset.c (decoding_table_put_char): New inline function.
3087         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3088
3089 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3090
3091         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3092         (XCHARSET_BYTE_SIZE): New macro.
3093         (decoding_table_remove_char): New inline function.
3094         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3095         `decoding_table_remove_char'.
3096         (remove_char_ccs): Use `decoding_table_remove_char'.
3097         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3098
3099 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3100
3101         * mule-charset.c (Vcharacter_name_table): New variable.
3102         (Qname): New variable.
3103         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3104         attribute.
3105         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3106         `Vcharacter_name_table' for `name' attribute.
3107         (Fremove_char_attribute): Use function `remove_char_ccs'.
3108         (put_char_ccs_code_point): New function.
3109         (remove_char_ccs): New function.
3110         (syms_of_mule_charset): Add new symbol `name'.
3111         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3112
3113 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3114
3115         * mule-charset.c (make_byte_table): Add new argument `older'.
3116         (make_char_id_table): Likewise.
3117         (copy_char_id_table): Comment out because it is not used.
3118         (put_char_id_table): Modify for `make_byte_table'.
3119         (Fput_char_attribute): Make encoding_table as older object;
3120         inherit older bit of `Vcharacter_composition_table'.
3121         (mark_charset): Don't mark `cs->encoding_table'.
3122         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3123         normal object; make `Vcharacter_composition_table' as an older
3124         object; delete staticpro for `Vcharacter_composition_table'; make
3125         `Vcharacter_variant_table' as a normal object.
3126
3127         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3128         (mark_object): Don't check older object in UTF-2000.
3129
3130         * lrecord.h (struct lrecord_header): Add new member `older' in
3131         UTF-2000.
3132         (set_lheader_implementation): Setup `SLI_header->older' in
3133         UTF-2000.
3134         (set_lheader_older_implementation): New macro in UTF-2000.
3135         (OLDER_RECORD_P): New macro in UTF-2000.
3136         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3137         (alloc_older_lcrecord): New prototype in UTF-2000.
3138         (alloc_older_lcrecord_type): New macro in UTF-2000.
3139
3140 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3141
3142         * mule-charset.c (byte_table_description): Use
3143         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3144         (char_id_table_description): Delete bogus `, 1'.
3145         (Fget_char_attribute): Refer encoding_table of each coded-charset
3146         to get value of coded-charset attribute of a character.
3147         (Fput_char_attribute): Use `make_older_vector' instead of
3148         `make_vector'; use encoding_table of each coded-charset to store
3149         value of coded-charset attribute of a character.
3150         (Fremove_char_attribute): Use encoding_table of each coded-charset
3151         to store value of coded-charset attribute of a character.
3152         (mark_charset): Mark `cs->encoding_table'; don't mark
3153         `cs->decoding_table'.
3154         (charset_description): Add description of new member
3155         `encoding_table'.
3156         (make_charset): Initialize `encoding_table'.
3157
3158         * char-ucs.h (struct Lisp_Charset): Add new member
3159         `encoding_table'.
3160         (CHARSET_ENCODING_TABLE): New macro.
3161         (XCHARSET_ENCODING_TABLE): New macro.
3162         (charset_code_point): New implementation.
3163         (encode_char_1): Likewise.
3164
3165         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3166         (disksave_object_finalization_1): Call finalizers of
3167         `all_older_lcrecords' in UTF-2000.
3168         (make_older_vector): New function in UTF-2000.
3169         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3170         UTF-2000.
3171
3172         * lisp.h (make_older_vector): New prototype in UTF-2000.
3173
3174 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3175
3176         * lrecord.h (enum lrecord_type): Rename
3177         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3178
3179         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3180         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3181         `get_char_code_table'.
3182
3183         * mule-charset.c (mark_char_id_table): Renamed from
3184         `mark_char_code_table'.
3185         (char_id_table_equal): Renamed from `char_code_table_equal'.
3186         (char_id_table_hash): Renamed from `char_code_table_hash'.
3187         (make_char_id_table): Renamed from `make_char_code_table'.
3188         (copy_char_id_table): Renamed from `copy_char_code_table'.
3189         (get_char_id_table): Renamed from `get_char_code_table'.
3190         (put_char_id_table): Renamed from `put_char_code_table'.
3191         (to_char_id): Renamed from `to_char_code'.
3192
3193         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3194         `Lisp_Char_Code_Table'.
3195         (char_id_table): Renamed from `char_code_table'.
3196         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3197         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3198         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3199         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3200         (get_char_id_table): Renamed from `get_char_code_table'.
3201
3202 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3203
3204         * lrecord.h (enum lrecord_type): Rename
3205         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3206
3207         * mule-charset.c (mark_byte_table): Renamed from
3208         `mark_char_byte_table'.
3209         (byte_table_equal): Renamed from `char_byte_table_equal'.
3210         (byte_table_hash): Renamed from `byte_table_hash'.
3211         (make_byte_table): Renamed from `make_byte_table'.
3212         (copy_byte_table): Renamed from `copy_char_byte_table'.
3213
3214         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3215         `Lisp_Char_Byte_Table'.
3216         (byte_table): Renamed from `char_byte_table'.
3217         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3218         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3219         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3220         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3221
3222 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3223
3224         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3225         (dfc_convert_to_internal_format): Likewise.
3226         
3227         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3228         * text-coding.c (Fcoding_system_alias_p): New function.
3229         * text-coding.c (Fcoding_system_aliasee): New function.
3230         * text-coding.c (append_suffix_to_symbol): New function.
3231         * text-coding.c (dangling_coding_system_alias_p): New function.
3232         * text-coding.c (Ffind_coding_system):
3233         * text-coding.c (Fcopy_coding_system):
3234         * text-coding.c (encode_coding_no_conversion):
3235         * text-coding.c (syms_of_file_coding):
3236         * text-coding.c (vars_of_file_coding):
3237         Rewrite coding system alias code.
3238         Allow nested aliases, like symbolic links.
3239         Allow redefinition of coding system aliases.
3240         Prevent existence of dangling coding system aliases.
3241         Eliminate convert_to_external_format.
3242         Eliminate convert_to_internal_format.
3243         
3244         * text-coding.c: Change enum eol_type to eol_type_t.
3245
3246 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3247
3248         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3249         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3250
3251         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3252         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3253
3254 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3255
3256         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3257         `ideograph-daikanwa'.
3258
3259         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3260         (Vcharset_ucs_bmp): Likewise.
3261         (Vcharset_mojikyo): Add new extern variable definition.
3262         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3263         (Vcharset_latin_iso8859_3): Likewise.
3264         (Vcharset_latin_iso8859_4): Likewise.
3265         (Vcharset_latin_iso8859_9): Likewise.
3266         (Vcharset_latin_viscii_lower): Likewise.
3267         (Vcharset_latin_viscii_upper): Likewise.
3268         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3269         `mojikyo' code-point is used to decode.
3270         (encode_char_2): New function [to convert `mojikyo' code-point to
3271         Mojikyo font encoding].
3272         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3273         (breakup_char_1): Likewise.
3274         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3275
3276 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3277
3278         * text-coding.c (Fmake_coding_system): Add document about
3279         `disable-composition' property.
3280
3281 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3282
3283         * text-coding.c (Qdisable_composition): New variable; delete
3284         `Qcomposite'.
3285         (Fmake_coding_system): Add new property `disable-composite';
3286         delete property `composite'.
3287         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3288         instead of `!CODING_SYSTEM_COMPOSITE'.
3289         (syms_of_file_coding): Add new symbol `disable-composition';
3290         delete symbol `composite'.
3291
3292         * file-coding.h (struct Lisp_Coding_System): Add
3293         `disable_composition'; delete `enable_composition'.
3294         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3295         `CODING_SYSTEM_COMPOSITE'.
3296         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3297         `XCODING_SYSTEM_COMPOSITE'.
3298
3299 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3300
3301         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3302         to 0.15.
3303
3304 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3305
3306         * text-coding.c (Qcomposite): New variable.
3307         (Fmake_coding_system): Add new property `composite'.
3308         (struct decoding_stream): Add `combined_char_count',
3309         `combined_chars' and `combining_table' in UTF-2000.
3310         (COMPOSE_FLUSH_CHARS): New macro.
3311         (COMPOSE_ADD_CHAR): New macro.
3312         (reset_decoding_stream): Reset `str->combined_char_count' and
3313         `str->combining_table' in UTF-2000.
3314         (decode_coding_iso2022): Modify for character-decomposition.
3315         (syms_of_file_coding): Add new symbol `composite'.
3316
3317 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3318
3319         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3320         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3321         of `Vcharacter_composition_table' if `->decomposition' property
3322         has only 1 element.
3323         (Qlatin_tcvn5712): New variable.
3324         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3325         (complex_vars_of_mule_charset): Add new coded-charset
3326         `latin-tcvn5712'.
3327
3328         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3329
3330 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3331
3332         * file-coding.h (struct Lisp_Coding_System): Add
3333         `enable_composition'.
3334         (CODING_SYSTEM_COMPOSITE): New macro.
3335         (XCODING_SYSTEM_COMPOSITE): New macro.
3336
3337 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3338
3339         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3340
3341 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3342
3343         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3344         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3345
3346 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3347
3348         * mule-charset.c (Vcharset_mojikyo): New variable.
3349         (Fdefine_char): Don't use coded-charset which does not have
3350         non-builtin character range to allocate character-id.
3351         (Qmojikyo): New variable.
3352         (syms_of_mule_charset): Add new symbol `mojikyo'.
3353         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3354
3355         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3356         (LEADING_BYTE_MOJIKYO): New macro.
3357         (MIN_CHAR_MOJIKYO): New macro.
3358         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3359         (MAX_CHAR_MOJIKYO): New macro.
3360
3361 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3362
3363         * mule-charset.c (remove_char_attribute): Fixed.
3364
3365 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3366
3367         * mule-charset.c (remove_char_attribute): New function.
3368         (Fremove_char_attribute): New function.
3369         (encode_builtin_char_1): Comment out builtin-support for
3370         greek-iso8859-7 and cyrillic-iso8859-5.
3371         (Fdecode_char): Check `code' is an integer.
3372         (syms_of_mule_charset): Add `remove-char-attribute'.
3373         (MIN_CHAR_GREEK): Deleted.
3374         (MAX_CHAR_GREEK): Likewise.
3375         (MIN_CHAR_CYRILLIC): Likewise.
3376         (MAX_CHAR_CYRILLIC): Likewise.
3377         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3378         MAX_CHAR_GREEK for `greek-iso8859-7'.
3379
3380         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3381         (MAX_CHAR_GREEK): Likewise.
3382         (MIN_CHAR_CYRILLIC): Likewise.
3383         (MAX_CHAR_CYRILLIC): Likewise.
3384
3385 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3386
3387         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3388         format is used without `ucs' property.
3389         (Fdecode_char): Fix problem with GR representation.
3390         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3391         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3392
3393 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3394
3395         * mule-charset.c (make_builtin_char): New function.
3396         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3397         (Fset_charset_mapping_table): Modify for new representation of
3398         code-point.
3399         (Fdecode_char): New function.
3400         (syms_of_mule_charset): Add new builtin function `decode-char' in
3401         UTF-2000.
3402
3403         * char-ucs.h (make_builtin_char): New prototype.
3404         (DECODE_CHAR): New inline function.
3405         (MAKE_CHAR): Use `DECODE_CHAR'.
3406
3407 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3408
3409         * text-coding.c (parse_charset_conversion_specs): Use
3410         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3411         `XCHARSET_TYPE'.
3412         (iso2022_designate): Likewise.
3413
3414         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3415         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3416
3417         * mule-charset.c (Vcharset_ucs): New variable.
3418         (print_charset): Change design; use `CHARSET_CHARS' and
3419         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3420         (make_charset): Change signature to specify `chars' and
3421         `dimension' instead of `type'.
3422         (range_charset_code_point): Modify for 256^n-set.
3423         (encode_builtin_char_1): Encode as `ucs' in default.
3424         (Fmake_charset): Modify for `make_charset'.
3425         (Fmake_reverse_direction_charset): Likewise.
3426         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3427         UTF-2000.
3428         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3429         for `make_charset'.
3430
3431         * char-ucs.h (Vcharset_ucs): New variable.
3432         (LEADING_BYTE_UCS): New macro.
3433         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3434         and `chars' to `unsigned short' from `unsigned int'.
3435         (CHARSET_TYPE): Deleted.
3436         (XCHARSET_TYPE): Deleted.
3437
3438 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3439
3440         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3441
3442         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3443         (ENCODE_CHAR): New macro.
3444
3445 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3446
3447         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3448         to 0.14 (Kawachi-Katakami).
3449
3450 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3451
3452         * text-coding.c (char_encode_shift_jis): Modify for
3453         `charset_code_point'.
3454         (char_encode_iso2022): Likewise.
3455
3456         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3457         (integer) instead of list of <Lisp_Object>s (integers) as the
3458         format of code-point of a coded-charset.
3459         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3460         (encode_builtin_char_1): New function; delete
3461         `split_builtin_char'.
3462         (charset_code_point): Return <int> instead of <Lisp_Object>.
3463         (Fsplit_char): Don't use `SPLIT_CHAR'.
3464
3465         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3466         prototype for `split_builtin_char'.
3467         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3468         (charset_code_point): Likewise.
3469         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3470         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3471
3472 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3473
3474         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3475         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3476
3477 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3478
3479         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3480
3481         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3482         (MAX_CHAR_OBS_94x94): Deleted.
3483
3484 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3485
3486         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3487
3488         * char-ucs.h (MAX_CHAR_BMP): New macro.
3489
3490 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3491
3492         * text-coding.c: Sync with r21-2-24.
3493
3494 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3495
3496         * file-coding.c: Modify for UTF-2000.
3497
3498 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3499
3500         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3501         to 0.13 (Takaida).
3502
3503 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3504
3505         * mule-charset.c (split_builtin_char): Delete builtin support for
3506         `katakana-jisx0201'.
3507         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3508         BMP area in builtin representation.
3509
3510         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3511         `Vcharset_katakana_jisx0201'.
3512
3513 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3514
3515         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3516         (Qisolated): New variable.
3517         (Qinitial): New variable.
3518         (Qmedial): New variable.
3519         (Qfinal): New variable.
3520         (Qvertical): New variable.
3521         (Qsmall): New variable.
3522         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3523         `Qvertical' and `Qsmall'.
3524         (Qmojikyo_pj_[1 .. 21]): New variable.
3525         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3526         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3527         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3528         .. 21]'.
3529
3530 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3531
3532         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3533         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3534         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3535
3536 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3537
3538         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3539         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3540         BMP.
3541         (Qjapanese_jisx0208_1990): New variable.
3542         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3543         (complex_vars_of_mule_charset): Add new coded-charset
3544         `japanese-jisx0208-1990'.
3545
3546         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3547         (MIN_CHAR_JIS_X0208_1990): New macro.
3548         (MAX_CHAR_JIS_X0208_1990): New macro.
3549
3550 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3551
3552         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3553         coded-charset is not found.
3554
3555 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3556
3557         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3558         (Fdefine_char): Use `Fmake_char'.
3559
3560 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3561
3562         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3563         (Vcharset_hiragana_jisx0208): Deleted.
3564         (Vcharset_katakana_jisx0208): Deleted.
3565         (Qideograph_daikanwa): New variable.
3566         (Qhiragana_jisx0208): Deleted.
3567         (Qkatakana_jisx0208): Deleted.
3568         (split_builtin_char): Split `ideograph-daikanwa'.
3569         (Fsplit_char): New implementation for UTF-2000.
3570         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3571         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3572         (complex_vars_of_mule_charset): Add new coded-charset
3573         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3574         `katakana-jisx0208'.
3575
3576         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3577         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3578         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3579         (MIN_CHAR_DAIKANWA): New macro.
3580         (MAX_CHAR_DAIKANWA): New macro.
3581
3582 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3583
3584         * data.c (Fstring_to_number): Don't recognize floating point if
3585         base is not 10.
3586
3587 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3588
3589         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3590
3591 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3592
3593         * mule-charset.c (Qsquare): New variable.
3594         (to_char_code): Add `Qsquare'.
3595         (syms_of_mule_charset): Add new symbol `square'.
3596
3597 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3598
3599         * mule-charset.c (Qcircle): New variable.
3600         (to_char_code): Add `Qcircle'.
3601         (syms_of_mule_charset): Add new symbol `circle'.
3602
3603 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3604
3605         * mule-charset.c (Qfont): New variable.
3606         (to_char_code): Add `Qfont'.
3607         (syms_of_mule_charset): Add new symbol `font'.
3608
3609 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3610
3611         * mule-charset.c (Qsub): New variable.
3612         (to_char_code): Add `Qsub'.
3613         (syms_of_mule_charset): Add new symbol `sub'.
3614
3615 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3616
3617         * mule-charset.c (Fput_char_attribute): Convert each element of
3618         VALUE to GL position if ATTRIBUTE is a GR-set,
3619
3620 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3621
3622         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3623         coded-charset is a GR-set.
3624
3625 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3626
3627         * mule-charset.c (Fput_char_attribute): Check each element of
3628         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3629
3630 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3631
3632         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3633         UTF-2000.
3634         (Qethiopic_ucs): New variable in UTF-2000.
3635         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3636         (complex_vars_of_mule_charset): Add new coded-charset
3637         `ethiopic-ucs' in UTF-2000.
3638
3639         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3640         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3641         9)'.
3642         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3643         10)'.
3644         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3645
3646 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3647
3648         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3649         `ascii'.
3650
3651 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3652
3653         * mule-charset.c (Vcharacter_variant_table): New variable.
3654         (Q_ucs): New variable.
3655         (Fchar_variants): New function.
3656         (Fput_char_attribute): Register `->ucs' value to
3657         `Vcharacter_variant_table'.
3658         (syms_of_mule_charset): Add new function `char-variants' and new
3659         symbol `->ucs'.
3660         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3661
3662 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3663
3664         * mule-charset.c (get_char_code_table): Allow negative character
3665         code.
3666         (put_char_code_table): Likewise.
3667         (Vcharacter_composition_table): New variable.
3668         (Q_decomposition): New variable.
3669         (Qwide): New variable.
3670         (Qnarrow): New variable.
3671         (Qcompat): New variable.
3672         (QnoBreak): New variable.
3673         (Qsuper): New variable.
3674         (Qfraction): New variable.
3675         (to_char_code): New function.
3676         (Fget_composite_char): New function.
3677         (Fput_char_attribute): Register `->decomposition' value to
3678         `Vcharacter_composition_table'.
3679         (syms_of_mule_charset): Add new function `get-composite-char', new
3680         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3681         `super' and `fraction'.
3682         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3683
3684 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3685
3686         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3687         character; copy the return value.
3688
3689 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3690
3691         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3692
3693         * mule-charset.c (range_charset_code_point): Must use make_int.
3694         (split_builtin_char): New function.
3695
3696 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3697
3698         * mule-charset.c (char_byte_table): Change name from
3699         "char-code-table" to "char-byte-table".
3700         (mark_char_code_table): New function.
3701         (char_code_table_equal): New function.
3702         (char_code_table_hash): New function.
3703         (char_code_table_description): New constant.
3704         (char_code_table): New type.
3705         (make_char_code_table): New function.
3706         (copy_char_code_table): New function.
3707         (get_char_code_table): Modify for `char_code_table' type.
3708         (put_char_code_table): Likewise.
3709         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3710         (Kashiwara).
3711
3712         * char-ucs.h (char_code_table): New type.
3713         (XCHAR_CODE_TABLE): New macro.
3714         (XSETCHAR_CODE_TABLE): New macro.
3715         (CHAR_CODE_TABLE_P): New macro.
3716         (GC_CHAR_CODE_TABLE_P): New macro.
3717         (struct Lisp_Char_Code_Table): New structure.
3718
3719 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3720
3721         * mule-charset.c (Fmake_charset): Setup byte_offset for
3722         {94|96}^n-set.
3723
3724 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3725
3726         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3727         character.
3728
3729 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3730
3731         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3732         is found.
3733
3734 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3735
3736         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3737         charset, it is regarded as a charset.
3738         (put_char_attribute): New function in UTF-2000.
3739         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3740         charset, mapping-table of the charset is modified.
3741         (Fdefine_char): New function in UTF-2000.
3742         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3743         `Fput_char_attribute'.
3744         (syms_of_mule_charset): Add new function `define-char' and new
3745         symbol `ucs' in UTF-2000.
3746         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3747
3748 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3749
3750         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3751         non-UTF-2000 configuration.
3752
3753 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3754
3755         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3756         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3757
3758         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3759         deleted.
3760         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3761         (Fset_charset_mapping_table): Likewise.
3762
3763         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3764         (CHARSET_ENCODING_TABLE): Delete.
3765         (XCHARSET_ENCODING_TABLE): Delete.
3766         (charset_code_point): New interface.
3767
3768 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3769
3770         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3771         instead of `charset_get_byte1' and `charset_get_byte2'.
3772
3773         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3774         (charset_get_byte2): Deleted.
3775
3776 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3777
3778         * char-ucs.h (SPLIT_CHAR): New inline function.
3779         (breakup_char_1): Use `SPLIT_CHAR'.
3780
3781         * mule-charset.c (range_charset_code_point): New function.
3782         (charset_code_point): New function.
3783
3784         * char-ucs.h (range_charset_code_point): New interface.
3785         (breakup_char_1): Use `range_charset_code_point'.
3786
3787 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3788
3789         * mule-charset.c (Fmake_charset): Delete unused local variable
3790         `code_offset'.
3791
3792         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3793         (breakup_char_1): Find a charset and code-point in
3794         `Vcharacter_attribute_table'.
3795
3796 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3797
3798         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3799         to 0.10 (Yao).
3800
3801 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3802
3803         * mule-charset.c (Vcharacter_attribute_table): New variable.
3804         (Fchar_attribute_alist): New function.
3805         (Fget_char_attribute): New function.
3806         (Fput_char_attribute): New function.
3807         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3808         too.
3809         (syms_of_mule_charset): Add new function `char-attribute-alist',
3810         `get-char-attribute' and `put-char-attribute'.
3811         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3812
3813 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3814
3815         * mule-charset.c (Fmake_charset): Just use
3816         `get_unallocated_leading_byte'.
3817
3818         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3819         sets; don't use final-byte based number for private sets.
3820
3821 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3822
3823         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3824         integer.
3825
3826 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3827
3828         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3829         to 0.9.
3830
3831 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3832
3833         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3834         of `CHAR_LEADING_BYTE' in UTF-2000.
3835
3836         * insdel.c (find_charsets_in_bufbyte_string): Use
3837         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3838         (find_charsets_in_emchar_string): Likewise.
3839
3840         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3841         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3842
3843         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3844         (CHAR_CHARSET_ID): New macro.
3845
3846 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3847
3848         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3849         charset-id - MIN_LEADING_BYTE.
3850         (put_char_table): Likewise.
3851
3852 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3853
3854         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3855         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3856         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3857         (CHARSET_ID_OFFSET): New macro.
3858         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3859         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3860         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3861         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3862         4).
3863         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3864         5).
3865         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3866         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3867         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3868         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3869         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3870
3871 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3872
3873         * mule-charset.c (next_allocated_leading_byte): New variable in
3874         UTF-2000.
3875         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3876         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3877         (get_unallocated_leading_byte): Simply use
3878         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3879         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3880         UTF-2000.
3881
3882         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3883         (MAX_LEADING_BYTE_PRIVATE): New macro.
3884         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3885         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3886
3887 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3888
3889         * mule-charset.c (Fmake_charset): Allocate final-byte based
3890         charset-id for 94-set, 96-set and 94x94-set.
3891
3892 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3893
3894         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3895         ambiguous `else'.
3896         (Fmake_charset): Likewise.
3897         (complex_vars_of_mule_charset): Modify the font registry of
3898         `ucs-bmp' not to match `Ethiopic-Unicode'.
3899
3900 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3901
3902         * mule-charset.c (complex_vars_of_mule_charset): Add font
3903         registory of `ucs-bmp'.
3904
3905 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3906
3907         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3908         coded-charsets in `default-coded-charset-priority-list' when
3909         breaking up a character.
3910
3911         * mule-charset.c (Vcharset_latin_viscii): New variable.
3912         (Qlatin_viscii): New variable.
3913         (make_charset): Don't use `decoding_table'.
3914         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3915         byte_offset.
3916         (Fset_charset_mapping_table): New implementation.
3917         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3918         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3919         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3920         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3921         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3922         charset `latin_viscii'.
3923
3924         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3925         (CHARSET_TYPE_94X94): Change to 1 from 2.
3926         (CHARSET_TYPE_96): Change to 2 from 1.
3927         (CHARSET_TYPE_128): New macro.
3928         (CHARSET_TYPE_128X128): Change to 5 from 4.
3929         (CHARSET_TYPE_256): New macro.
3930         (CHARSET_TYPE_256X256): Change to 7 from 5.
3931         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3932
3933 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3934
3935         * text-coding.c (char_encode_shift_jis): Refer
3936         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3937         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3938
3939         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3940         (char_byte_table_equal): New function in UTF-2000.
3941         (char_byte_table_hash): New function in UTF-2000.
3942         (char_byte_table_description): New constant in UTF-2000.
3943         (char_byte_table): New type in UTF-2000.
3944         (make_char_byte_table): New function in UTF-2000.
3945         (copy_char_byte_table): New function in UTF-2000.
3946         (make_char_code_table): New macro in UTF-2000.
3947         (get_char_code_table): New function in UTF-2000.
3948         (put_char_code_table): New function in UTF-2000.
3949         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3950         (charset_description): Add setting in UTF-2000.
3951         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3952         `CHARSET_TO_BYTE1_TABLE(cs)'.
3953         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3954         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3955         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3956         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3957         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3958         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3959         `CHARSET_TO_BYTE2_TABLE(cs)'.
3960
3961         * char-ucs.h (char_byte_table): New type.
3962         (XCHAR_BYTE_TABLE): New macro.
3963         (XSETCHAR_BYTE_TABLE): New macro.
3964         (CHAR_BYTE_TABLE_P): New macro.
3965         (GC_CHAR_BYTE_TABLE_P): New macro.
3966         (struct Lisp_Char_Byte_Table): New structure.
3967         (get_char_code_table): New interface.
3968         (Emchar_to_byte_table): Deleted.
3969         (get_byte_from_character_table): Deleted.
3970         (struct Lisp_Charset): Add `encoding_table'; delete
3971         `to_byte1_table' and `to_byte2_table'.
3972         (CHARSET_ENCODING_TABLE): New macro.
3973         (CHARSET_TO_BYTE1_TABLE): Deleted.
3974         (CHARSET_TO_BYTE2_TABLE): Deleted.
3975         (XCHARSET_ENCODING_TABLE): New macro.
3976         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3977         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3978
3979 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3980
3981         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3982         `vietnamese-viscii-*'.
3983
3984 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3985
3986         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3987         (Qvietnamese_viscii_upper): New variable.
3988         (Fdefine_charset_alias): New function.
3989         (syms_of_mule_charset): Add new function `define-charset-alias'.
3990         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3991         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3992         `latin-viscii-*'.
3993
3994 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3995
3996         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3997         (MAX_CHAR_OBS_94x94): New macro.
3998         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3999         for 94x94 sets.
4000
4001         * mule-charset.c (put_byte_from_character_table): Change unit size
4002         from 128 to 256.
4003         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4004         not defined.
4005         (Fmake_reverse_direction_charset): Modify dummy argument of
4006         `make_charset' for non-UTF-2000 environment.
4007
4008 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4009
4010         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4011
4012         * mule-charset.c (destroy_byte_from_character_table): New macro.
4013         (latin_jisx0201_to_ucs): Deleted.
4014         (latin_iso8859_2_to_ucs): Deleted.
4015         (latin_iso8859_3_to_ucs): Deleted.
4016         (latin_iso8859_4_to_ucs): Deleted.
4017         (latin_iso8859_9_to_ucs): Deleted.
4018         (latin_viscii_lower_to_ucs): Deleted.
4019         (latin_viscii_upper_to_ucs): Deleted.
4020         (mark_charset): Mark `cs->decoding_table'.
4021         (Fcharset_mapping_table): Fix DOC-string.
4022         (Fset_charset_mapping_table): New function.
4023         (syms_of_mule_charset): Add nwe function
4024         `set-charset-mapping-table'.
4025         (complex_vars_of_mule_charset): Don't setup and use
4026         `latin_*_to_ucs'.
4027
4028 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4029
4030         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4031         charset.
4032
4033 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4034
4035         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4036         (Vcharset_katakana_jisx0208): New variable.
4037         (Qhiragana_jisx0208): New variable.
4038         (Qkatakana_jisx0208): New variable.
4039         (make_charset): Add new argument `byte_offset'.
4040         (charset_get_byte1): Modify for new coded-charset definition; use
4041         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4042         `XCHARSET_BYTE_OFFSET'.
4043         (Fmake_charset): Modify for `make_charset'.
4044         (Fmake_reverse_direction_charset): Likewise.
4045         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4046         `katakana-jisx0208'.
4047         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4048         `.'  in font registry of charset `katakana-jisx0201',
4049         `latin-jisx0201', `vietnamese-viscii-lower' and
4050         `vietnamese-viscii-upper'; modify DOC-string of charset
4051         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4052         registry of charset `japanese-jisx0208' not to use font for JIS
4053         X0208:1990; add new charset `hiragana-jisx0208' and
4054         `katakana-jisx0208'.
4055
4056         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4057         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4058         (struct Lisp_Charset): Add `byte_offset'.
4059         (CHARSET_BYTE_OFFSET): New macro.
4060         (XCHARSET_UCS_MIN): New macro.
4061         (XCHARSET_UCS_MAX): New macro.
4062         (XCHARSET_CODE_OFFSET): New macro.
4063         (XCHARSET_BYTE_OFFSET): New macro.
4064         (MIN_CHAR_HIRAGANA): New macro.
4065         (MAX_CHAR_HIRAGANA): New macro.
4066         (MIN_CHAR_KATAKANA): New macro.
4067         (MAX_CHAR_KATAKANA): New macro.
4068         (MAKE_CHAR): Modify for new coded-charset definition; use
4069         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4070         `XCHARSET_BYTE_OFFSET'.
4071
4072 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4073
4074         * mule-charset.c (CHAR96): Deleted.
4075         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4076         <Lisp_Object>.
4077         (latin_iso8859_2_to_ucs): Likewise.
4078         (latin_iso8859_3_to_ucs): Likewise.
4079         (latin_iso8859_4_to_ucs): Likewise.
4080         (latin_iso8859_9_to_ucs): Likewise.
4081         (latin_viscii_lower_to_ucs): Likewise.
4082         (latin_viscii_upper_to_ucs): Likewise.
4083         (latin_tcvn5712_to_ucs): Commented out.
4084         (make_charset): Change type of argument `decoding_table' from
4085         <Emchar*> to <Lisp_Object> [vector of characters].
4086         (Fmake_charset): Modify for `make_charset'.
4087         (Fmake_reverse_direction_charset): Likewise.
4088         (Fcharset_mapping_table): New function in UTF-2000.
4089         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4090         UTF-2000.
4091         (complex_vars_of_mule_charset): Modify for type change of
4092         `*_to_ucs'; modify for `make_charset'.
4093
4094         * char-ucs.h (struct Lisp_Charset): Change type of
4095         `decoding_table' from <Emchar*> to <Lisp_Object>.
4096         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4097
4098 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4099
4100         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4101         error with non-UTF-2000-Mule.
4102
4103 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4104
4105         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4106         in lisp again].
4107         (Vcharset_chinese_cns11643_4): Likewise.
4108         (Vcharset_chinese_cns11643_5): Likewise.
4109         (Vcharset_chinese_cns11643_6): Likewise.
4110         (Vcharset_chinese_cns11643_7): Likewise.
4111         (Qchinese_cns11643_3): Likewise.
4112         (Qchinese_cns11643_4): Likewise.
4113         (Qchinese_cns11643_5): Likewise.
4114         (Qchinese_cns11643_6): Likewise.
4115         (Qchinese_cns11643_7): Likewise.
4116         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4117         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4118         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4119         (complex_vars_of_mule_charset): Likewise.
4120
4121 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4122
4123         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4124         96-set.
4125         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4126         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4127
4128 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4129
4130         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4131         0xFF60.
4132         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4133         (breakup_char_1): Likewise.
4134
4135         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4136         one of them includes the specified character.
4137
4138 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4139
4140         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4141
4142 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4143
4144         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4145
4146 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4147
4148         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4149         definition for non-UTF-2000 Mule.
4150         (latin_iso8859_3_to_ucs): Likewise.
4151         (latin_iso8859_4_to_ucs): Likewise.
4152         (latin_iso8859_9_to_ucs): Likewise.
4153         (latin_jisx0201_to_ucs): Likewise.
4154         (MIN_CHAR_THAI): Likewise.
4155         (MAX_CHAR_THAI): Likewise.
4156         (MIN_CHAR_GREEK): Likewise.
4157         (MAX_CHAR_GREEK): Likewise.
4158         (MIN_CHAR_HEBREW): Likewise.
4159         (MAX_CHAR_HEBREW): Likewise.
4160         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4161         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4162         (MIN_CHAR_CYRILLIC): Likewise.
4163         (MAX_CHAR_CYRILLIC): Likewise.
4164
4165 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4166
4167         * char-ucs.h (breakup_char_1): Use
4168         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4169         thai-tis620 and katakana-jisx0201 area.
4170
4171 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4172
4173         * char-ucs.h (breakup_char_1): Use
4174         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4175         area.
4176
4177         * text-coding.c (reset_encoding_stream): Fixed.
4178         (char_encode_ucs4): Delete `& 255'.
4179
4180         * char-ucs.h (breakup_char_1): Use
4181         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4182
4183 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4184
4185         * file-coding.c (Fmake_coding_system): Don't set up
4186         `codesys->fixed.size'.
4187         (encode_coding_no_conversion): Don't refer
4188         `str->codesys->fixed.size'.
4189
4190 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4191
4192         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4193         (latin_a_char_to_byte1): Deleted.
4194         (latin_a_char_to_byte2): Deleted.
4195
4196 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4197
4198         * mule-charset.c (make_charset): Add new argument `ucs_min',
4199         `ucs_max' and `code_offset'.
4200         (charset_get_byte1): New implementation [delete specific charset
4201         depended implementations].
4202         (Fmake_charset): Modify for `make_charset'.
4203         (Fmake_reverse_direction_charset): Likewise.
4204         (complex_vars_of_mule_charset): Likewise.
4205
4206         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4207         `code_offset'.
4208         (CHARSET_UCS_MIN): New macro.
4209         (CHARSET_UCS_MAX): New macro.
4210         (CHARSET_CODE_OFFSET): New macro.
4211         (MAKE_CHAR): Delete charset depended definitions [except
4212         katakana-jisx0201].
4213
4214 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4215
4216         * char-ucs.h (breakup_char_1): Use
4217         `Vdefault_coded_charset_priority_list' for C0-Controls,
4218         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4219
4220 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4221
4222         * char-ucs.h (charset_get_byte1): New function.
4223         (XCHARSET_GET_BYTE1): Deleted.
4224         (charset_get_byte2): New function.
4225         (XCHARSET_GET_BYTE2): Deleted.
4226         (Vdefault_coded_charset_priority_list): New external variable.
4227         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4228         `Vdefault_preferred_coded_charset_list'.
4229
4230         * mule-charset.c (charset_get_byte1): New function.
4231         (charset_get_byte2): New function.
4232         (Vdefault_coded_charset_priority_list): New variable.
4233         (vars_of_mule_charset): Add new variable
4234         `default-coded-charset-priority-list'.
4235
4236 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4237
4238         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4239         (XCHARSET_GET_BYTE2): New inline function.
4240         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4241         `XCHARSET_GET_BYTE2'.
4242
4243 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4244
4245         * mule-charset.c (make_charset): Initialize
4246         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4247         NULL if table is not defined.
4248
4249 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4250
4251         * text-coding.c (char_encode_shift_jis): Use
4252         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4253         `ucs_to_latin_jisx0201'.
4254
4255         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4256         (ucs_to_latin_iso8859_2): Deleted.
4257         (ucs_to_latin_iso8859_3): Deleted.
4258         (ucs_to_latin_iso8859_4): Deleted.
4259         (ucs_to_latin_iso8859_9): Deleted.
4260         (ucs_to_latin_viscii_lower): Deleted.
4261         (ucs_to_latin_viscii_upper): Deleted.
4262         (ucs_to_latin_tcvn5712): Deleted.
4263         (make_charset): Add new argument `decoding_table'; set up
4264         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4265         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4266         `decoding_table' is defined in UTF-2000.
4267         (Fmake_charset): Modify for `make_charset'.
4268         (Fmake_reverse_direction_charset): Likewise.
4269         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4270         and `GENERATE_96_SET'.
4271
4272         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4273         (ucs_to_latin_jisx0201): Deleted.
4274         (latin_iso8859_2_to_ucs): Deleted.
4275         (ucs_to_latin_iso8859_2): Deleted.
4276         (latin_iso8859_3_to_ucs): Deleted.
4277         (ucs_to_latin_iso8859_3): Deleted.
4278         (latin_iso8859_4_to_ucs): Deleted.
4279         (ucs_to_latin_iso8859_4): Deleted.
4280         (latin_iso8859_9_to_ucs): Deleted.
4281         (ucs_to_latin_iso8859_9): Deleted.
4282         (latin_viscii_lower_to_ucs): Deleted.
4283         (ucs_to_latin_viscii_lower): Deleted.
4284         (latin_viscii_upper_to_ucs): Deleted.
4285         (ucs_to_latin_viscii_upper): Deleted.
4286         (struct Lisp_Charset): Renamed `encoding_table' to
4287         `to_byte1_table'; add `to_byte2_table'.
4288         (CHARSET_DECODING_TABLE): New macro.
4289         (CHARSET_TO_BYTE1_TABLE): New macro.
4290         (CHARSET_TO_BYTE2_TABLE): New macro.
4291         (XCHARSET_DECODING_TABLE): New macro.
4292         (XCHARSET_TO_BYTE1_TABLE): New macro.
4293         (XCHARSET_TO_BYTE2_TABLE): New macro.
4294         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4295         tables.
4296         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4297         don't use `ucs_to_*' tables.
4298
4299 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4300
4301         * text-coding.c (Fmake_coding_system): Don't set up
4302         `codesys->fixed.size'.
4303         (encode_coding_no_conversion): Use `if' instead of `switch'.
4304
4305         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4306
4307 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4308
4309         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4310         (Fmake_charset): Modify for `make_charset'.
4311         (Fmake_reverse_direction_charset): Likewise.
4312         (complex_vars_of_mule_charset): Likewise.
4313
4314 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4315
4316         * text-coding.c (char_encode_shift_jis): Use table
4317         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4318
4319 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4320
4321         * text-coding.c (text_encode_generic): Use `if' instead of
4322         `switch'.
4323         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4324         decode JIS-Latin.
4325
4326 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4327
4328         * text-coding.c (encode_coding_sjis): Deleted.
4329         (char_encode_shift_jis): New function.
4330         (char_finish_shift_jis): New function.
4331         (reset_encoding_stream): Set up `encode_char' and `finish' for
4332         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4333         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4334         (char_encode_utf8): Treat `eol_type'.
4335
4336 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4337
4338         * file-coding.c (decode_coding_iso2022): Use
4339         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4340
4341 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4342
4343         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4344         to 0.7 (Hirano).
4345
4346 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4347
4348         * char-lb.h (CHAR_COLUMNS): New macro.
4349
4350 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4351
4352         * text-coding.c (char_encode_ucs4): New function.
4353         (char_finish_ucs4): New function.
4354         (encode_coding_ucs4): Deleted.
4355         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4356         (text_encode_generic): Delete local variable `charset' and `half'.
4357         (ucs_to_mule_table): Deleted.
4358         (mule_to_ucs_table): Deleted.
4359         (Fset_ucs_char): Deleted.
4360         (ucs_to_char): Deleted.
4361         (Fucs_char): Deleted.
4362         (Fset_char_ucs): Deleted.
4363         (Fchar_ucs): Deleted.
4364         (decode_ucs4): Deleted.
4365         (mule_char_to_ucs4): Deleted.
4366         (encode_ucs4): Deleted.
4367         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4368         (decode_coding_utf8): Likewise.
4369         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4370         (char_encode_iso2022): Fixed.
4371         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4372         `Fset_char_ucs' and `Fchar_ucs'.
4373         (complex_vars_of_file_coding): Don't initialize
4374         `ucs_to_mule_table'.
4375
4376         * objects-tty.c (tty_initialize_font_instance): Don't use
4377         `XCHARSET_COLUMNS'.
4378
4379         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4380         UTF-2000.
4381
4382         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4383         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4384
4385         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4386         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4387         (emchar_string_displayed_columns): Likewise.
4388
4389         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4390         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4391         (string_column_at_point): Likewise.
4392         (Fmove_to_column): Likewise.
4393
4394         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4395         `encoding_table' and `decoding_table'.
4396         (CHARSET_REP_BYTES): Deleted.
4397         (XCHARSET_REP_BYTES): Deleted.
4398         (XCHARSET_COLUMNS): Deleted.
4399         (CHAR_COLUMNS): New macro.
4400         (lookup_composite_char): Deleted unconditionally.
4401         (composite_char_string): Likewise.
4402
4403 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4404
4405         * char-ucs.h (Emchar_to_byte_table): New type.
4406         (get_byte_from_character_table): New function interface.
4407         (Vcharset_latin_jisx0201): New variable.
4408         (latin_jisx0201_to_ucs): New variable.
4409         (ucs_to_latin_jisx0201): New variable.
4410         (Vcharset_latin_iso8859_2): New variable.
4411         (latin_iso8859_2_to_ucs): New variable.
4412         (ucs_to_latin_iso8859_2): New variable.
4413         (Vcharset_latin_iso8859_3): New variable.
4414         (latin_iso8859_3_to_ucs): New variable.
4415         (ucs_to_latin_iso8859_3): New variable.
4416         (Vcharset_latin_iso8859_4): New variable.
4417         (latin_iso8859_4_to_ucs): New variable.
4418         (ucs_to_latin_iso8859_4): New variable.
4419         (Vcharset_latin_iso8859_9): New variable.
4420         (latin_iso8859_9_to_ucs): New variable.
4421         (ucs_to_latin_iso8859_9): New variable.
4422         (Vcharset_latin_viscii_lower): New variable.
4423         (latin_viscii_lower_to_ucs): New variable.
4424         (ucs_to_latin_viscii_lower): New variable.
4425         (Vcharset_latin_viscii_upper): New variable.
4426         (latin_viscii_upper_to_ucs): New variable.
4427         (ucs_to_latin_viscii_upper): New variable.
4428         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4429         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4430         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4431         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4432         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4433         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4434         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4435         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4436         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4437         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4438
4439         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4440         (Vcharset_latin_viscii_upper): New variable.
4441         (make_byte_from_character_table): New function.
4442         (put_byte_from_character_table): New function.
4443         (get_byte_from_character_table): New function.
4444         (CHAR96): New macro.
4445         (ucs_to_latin_jisx0201): New variable.
4446         (latin_jisx0201_to_ucs): New variable.
4447         (ucs_to_latin_iso8859_2): New variable.
4448         (latin_iso8859_2_to_ucs): New variable.
4449         (ucs_to_latin_iso8859_3): New variable.
4450         (latin_iso8859_3_to_ucs): New variable.
4451         (ucs_to_latin_iso8859_4): New variable.
4452         (latin_iso8859_4_to_ucs): New variable.
4453         (ucs_to_latin_iso8859_9): New variable.
4454         (latin_iso8859_9_to_ucs): New variable.
4455         (ucs_to_latin_viscii_lower): New variable.
4456         (latin_viscii_lower_to_ucs): New variable.
4457         (ucs_to_latin_viscii_upper): New variable.
4458         (latin_viscii_upper_to_ucs): New variable.
4459         (ucs_to_latin_tcvn5712): New variable.
4460         (latin_tcvn5712_to_ucs): New variable.
4461         (Qlatin_viscii_lower): New variable.
4462         (Qlatin_viscii_upper): New variable.
4463         (syms_of_mule_charset): Set up new symbol
4464         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4465         (complex_vars_of_mule_charset): Set up new charset
4466         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4467         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4468         `ucs_to_<CHARSET>' tables.
4469
4470 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4471
4472         * text-coding.c: New file.
4473
4474 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4475
4476         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4477
4478         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4479         (MAKE_CHAR): Modify for `ucs-bmp'.
4480         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4481         non-MULE characters of BMP.
4482
4483 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4484
4485         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4486         to 0.6.
4487
4488 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4489
4490         * lstream.h:
4491         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4492         - Include character.h for `CHAR_ASCII_P'.
4493
4494         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4495
4496         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4497         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4498
4499         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4500         (BYTE_C0_P): Likewise.
4501         (BYTE_C1_P): Likewise.
4502         (Lstream_get_emchar_1): Likewise.
4503         (Lstream_fput_emchar): Likewise.
4504         (Lstream_funget_emchar): Likewise.
4505         (copy_internal_to_external): Likewise.
4506         (copy_external_to_internal): Likewise.
4507
4508         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4509         (BYTE_C0_P): Likewise.
4510         (BYTE_C1_P): Likewise.
4511         (Lstream_get_emchar_1): Likewise.
4512         (Lstream_fput_emchar): Likewise.
4513         (Lstream_funget_emchar): Likewise.
4514         (copy_internal_to_external): Likewise.
4515         (copy_external_to_internal): Likewise.
4516
4517         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4518         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4519
4520         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4521         (BYTE_ASCII_P): Moved to mb-1byte.h.
4522
4523 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4524
4525         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4526
4527         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4528         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4529         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4530         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4531         (VALIDATE_CHARPTR_FORWARD): Likewise.
4532         (simple_charptr_emchar): Moved to mb-multibyte.h.
4533         (simple_set_charptr_emchar): Likewise.
4534         (simple_charptr_copy_char): Likewise.
4535         (non_ascii_charptr_emchar): Likewise.
4536         (non_ascii_set_charptr_emchar): Likewise.
4537         (non_ascii_charptr_copy_char): Likewise.
4538         (charptr_emchar): Moved to mb-*byte.h.
4539         (set_charptr_emchar): Likewise.
4540         (charptr_copy_char): Likewise.
4541
4542         * mb-1byte.h, mb-multibyte.h: New files.
4543
4544 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4545
4546         * mb-utf-8.h (MULTIBYTE): New macro.
4547         (MAX_EMCHAR_LEN): Moved from buffer.h.
4548         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4549
4550         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4551
4552         * mb-lb.h, multibyte.h: New files.
4553
4554         * char-1byte.h (Charset_ID): Moved from buffer.h.
4555         (MIN_LEADING_BYTE): Likewise.
4556         (LEADING_BYTE_ASCII): Likewise.
4557         (NUM_LEADING_BYTES): Likewise.
4558         (CHARSETP): Likewise.
4559         (CHARSET_BY_LEADING_BYTE): Likewise.
4560         (XCHARSET_LEADING_BYTE): Likewise.
4561         (XCHARSET_GRAPHIC): Likewise.
4562         (XCHARSET_COLUMNS): Likewise.
4563         (XCHARSET_DIMENSION): Likewise.
4564         (CHAR_CHARSET): Likewise.
4565         (CHAR_LEADING_BYTE): Likewise.
4566         (BREAKUP_CHAR): Likewise.
4567         (Vcharset_ascii): Likewise.
4568
4569         * buffer.h: Include multibyte.h unconditionally.
4570         (VALID_CHARPTR_P): Moved to multibyte.h.
4571         (ASSERT_VALID_CHARPTR): Likewise.
4572         (REAL_INC_CHARPTR): Likewise.
4573         (REAL_INC_CHARBYTIND): Likewise.
4574         (REAL_DEC_CHARPTR): Likewise.
4575         (INC_CHARPTR): Likewise.
4576         (INC_CHARBYTIND): Likewise.
4577         (DEC_CHARPTR): Likewise.
4578         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4579         (VALIDATE_CHARPTR_FORWARD): Likewise.
4580         (charptr_n_addr): Likewise.
4581         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4582         (simple_charptr_emchar): Moved to multibyte.h.
4583         (simple_set_charptr_emchar): Likewise.
4584         (simple_charptr_copy_char): Likewise.
4585         (non_ascii_charptr_emchar): Likewise.
4586         (non_ascii_set_charptr_emchar): Likewise.
4587         (non_ascii_charptr_copy_char): Likewise.
4588         (charptr_emchar): Likewise.
4589         (set_charptr_emchar): Likewise.
4590         (charptr_copy_char): Likewise.
4591         (charptr_emchar_n): Likewise.
4592         (Charset_ID): Moved to char-1byte.h.
4593         (Vcharset_ascii): Likewise.
4594         (CHAR_CHARSET): Likewise.
4595         (CHAR_LEADING_BYTE): Likewise.
4596         (LEADING_BYTE_ASCII): Likewise.
4597         (NUM_LEADING_BYTES): Likewise.
4598         (MIN_LEADING_BYTE): Likewise.
4599         (CHARSETP): Likewise.
4600         (CHARSET_BY_LEADING_BYTE): Likewise.
4601         (XCHARSET_LEADING_BYTE): Likewise.
4602         (XCHARSET_GRAPHIC): Likewise.
4603         (XCHARSET_COLUMNS): Likewise.
4604         (XCHARSET_DIMENSION): Likewise.
4605         (BREAKUP_CHAR): Likewise.
4606
4607 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4608
4609         * character.h: Add document about interface for characters.
4610
4611         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4612         (MAKE_CHAR): Delete comment about
4613         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4614         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4615         (BREAKUP_CHAR): Modify name of arguments.
4616         (CHAR_CHARSET): Modify name of argument.
4617
4618         * buffer.h: Delete document about Emchar accessors.
4619
4620 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4621
4622         * character.h (CHAR_INTP): Moved from buffer.h
4623         (CHAR_OR_CHAR_INTP): Likewise.
4624         (XCHAR_OR_CHAR_INT): Likewise.
4625         (CHECK_CHAR_COERCE_INT): Likewise.
4626
4627         * buffer.h (CHAR_INTP): Moved to character.h
4628         (CHAR_OR_CHAR_INTP): Likewise.
4629         (XCHAR_OR_CHAR_INT): Likewise.
4630         (CHECK_CHAR_COERCE_INT): Likewise.
4631
4632 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4633
4634         * character.h:
4635         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4636         - Include char-1byte.h, char-lb.h or char-ucs.h.
4637
4638         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4639
4640         * buffer.h: Include character unconditionally.
4641         (valid_char_p): Moved to char-*.h.
4642         (non_ascii_valid_char_p): Moved to char-lb.h.
4643
4644         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4645
4646 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4647
4648         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4649         in UTF-2000 because it is not ported yet and not to use
4650         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4651         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4652         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4653
4654         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4655         (CHAR_ASCII_P): Moved from character.h.
4656
4657         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4658         (CHAR_ASCII_P): Likewise.
4659         (CHAR_FIELD1_MASK): Deleted.
4660         (CHAR_FIELD2_MASK): Deleted.
4661         (CHAR_FIELD3_MASK): Deleted.
4662         (MAX_CHAR_BASIC_LATIN): New macro.
4663         (CHAR_FIELD1): Deleted.
4664         (CHAR_FIELD2_INTERNAL): Deleted.
4665         (CHAR_FIELD3_INTERNAL): Deleted.
4666         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4667         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4668         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4669         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4670         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4671         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4672         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4673         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4674         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4675         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4676         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4677         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4678         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4679         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4680         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4681         (MIN_CHAR_COMPOSITION): Deleted.
4682         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4683         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4684
4685 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4686
4687         * buffer.h: Include mb-utf-8.h in UTF-2000.
4688
4689         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4690
4691         * mb-utf-8.h: New file.
4692
4693 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4694
4695         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4696         instead of `int'.
4697
4698         * mule-charset.h, buffer.h (Charset_ID): New type.
4699
4700 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4701
4702         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4703         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4704         instead of `MULE_CHAR_PRIVATE_OFFSET',
4705         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4706         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4707         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4708
4709         * character.h (Vcharset_japanese_jisx0212): New variable
4710         definition.
4711
4712 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4713
4714         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4715         (charset_by_attributes): Delete array about direction.
4716         (latin_a_char_to_charset): New variable in UTF-2000.
4717         (latin_a_char_to_byte1): New variable in UTF-2000.
4718         (latin_a_char_to_byte2): New variable in UTF-2000.
4719         (Qucs_bmp): New variable.
4720         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4721         `Bufbyte'.
4722         (next_allocated_2_byte_leading_byte): Likewise.
4723         (non_ascii_set_charptr_emchar): Likewise.
4724         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4725         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4726         `charset_by_attributes'.
4727         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4728         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4729         and `CHARSET_BY_LEADING_BYTE'.
4730         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4731         `utf-2000-version' to `vars_of_mule_charset'.
4732         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4733         define `leading-code-private-11' in UTF-2000; move setting of
4734         `utf-2000-version' from `syms_of_mule_charset'.
4735         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4736         UTF-2000.
4737
4738         * character.h (Charset_ID): New type.
4739         (LEADING_BYTE_UCS_BMP): New macro.
4740         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4741         (CHARSET_ID_OFFSET_94): New macro.
4742         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4743         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4744         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4745         final-byte.
4746         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4747         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4748         (CHARSET_ID_OFFSET_96): New macro.
4749         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4750         CHARSET_ID_OFFSET_96 and final-byte.
4751         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4752         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4753         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4754         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4755         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4756         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4757         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4758         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4759         (LEADING_BYTE_THAI_TIS620): Likewise.
4760         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4761         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4762         (CHARSET_ID_OFFSET_94x94): New macro.
4763         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4764         CHARSET_ID_OFFSET_94x94 and final-byte.
4765         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4766         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4767         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4768         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4769         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4770         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4771         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4772         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4773         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4774         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4775         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4776         (CHARSET_TYPE_128X128): New macro.
4777         (CHARSET_TYPE_256X256): New macro.
4778         (XCHARSET_PRIVATE_P): Delete unconditionally.
4779         (charset_by_attributes): Delete array about direction.
4780         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4781         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4782         (MIN_CHAR_94): New macro.
4783         (MAX_CHAR_94): New macro.
4784         (MIN_CHAR_96): New macro.
4785         (MAX_CHAR_96): New macro.
4786         (MIN_CHAR_94x94): New macro.
4787         (MAX_CHAR_94x94): New macro.
4788         (MIN_CHAR_96x96): New macro.
4789         (MAX_CHAR_96x96): New macro.
4790         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4791         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4792         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4793         - 32)'.
4794         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4795         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4796         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4797         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4798         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4799         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4800         `XCHARSET_LEADING_BYTE' to make code-point.
4801         (latin_a_char_to_charset): New variable.
4802         (latin_a_char_to_byte1): New variable.
4803         (latin_a_char_to_byte2): New variable.
4804         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4805         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4806         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4807
4808         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4809         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4810         (find_charsets_in_emchar_string): Likewise.
4811         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4812
4813         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4814         `int'.
4815         (decode_coding_iso2022): Likewise.
4816
4817         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4818         of `unsigned char'.
4819
4820         * redisplay.c (redisplay_text_width_emchar_string): Use
4821         `Charset_ID' instead of `unsigned char'.
4822         (redisplay_frame_text_width_string): Likewise.
4823
4824         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4825         `unsigned char'.
4826
4827         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4828         instead of `unsigned char'.
4829         (face_cachel_charset_font_metric_info): Likewise.
4830
4831         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4832         (get_non_ascii_char_table_value): Likewise.
4833         (get_char_table): Likewise.
4834         (put_char_table): Likewise.
4835         (map_over_other_charset): Likewise.
4836         (map_char_table): Likewise.
4837
4838         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4839         instead of `unsigned char'.
4840
4841 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4842
4843         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4844         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4845
4846         * mule-charset.c (leading_code_private_11): Don't define in
4847         UTF-2000.
4848
4849         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4850         in UTF-2000 because it is not ported yet and not to use
4851         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4852
4853 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4854
4855         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4856
4857 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4858
4859         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4860         in UTF-2000.
4861
4862         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4863         of unsigned char to store leading-byte.
4864
4865         * chartab.c (get_non_ascii_char_table_value): Don't use
4866         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4867
4868         * file-coding.c (encode_coding_big5): Delete bogus implementation
4869         in UTF2000.
4870
4871         * character.h (LEADING_BYTE_*): Delete definition for
4872         non-UTF-2000.
4873         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4874         (LEADING_BYTE_PREFIX_P): Deleted.
4875         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4876         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4877         (BUFBYTE_LEADING_BYTE_P): Deleted.
4878         (CHARSET_PRIVATE_P): Deleted unconditionally.
4879         (rep_bytes_by_first_byte): Deleted unconditionally.
4880         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4881         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4882         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4883         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4884         (CHAR_FIELD2): Deleted.
4885         (CHAR_FIELD3): Deleted.
4886         (MAKE_CHAR): Delete definition for non-UTF-2000.
4887         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4888         (breakup_char_1): New implementation.
4889         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4890         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4891
4892 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4893
4894         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4895         condition.
4896
4897 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4898
4899         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4900         (CHARSET_PRIVATE_P): Likewise.
4901         (XCHARSET_PRIVATE_P): Likewise.
4902         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4903
4904         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4905         UTF2000.
4906         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4907
4908 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4909
4910         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4911         (NUM_LEADING_BYTES): Changed from 128 to 256.
4912         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4913         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4914         UTF2000.
4915         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4916
4917         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4918         UTF2000.
4919         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4920         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4921         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4922         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4923         (Qchinese_cns11643_3): New variable in UTF2000.
4924         (Qchinese_cns11643_4): New variable in UTF2000.
4925         (Qchinese_cns11643_5): New variable in UTF2000.
4926         (Qchinese_cns11643_6): New variable in UTF2000.
4927         (Qchinese_cns11643_7): New variable in UTF2000.
4928         (syms_of_mule_charset): Define `chinese-cns11643-3',
4929         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4930         and `chinese-cns11643-7' in UTF2000.
4931         (vars_of_mule_charset): Initialize
4932         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4933         + 1 in UTF2000.
4934         (complex_vars_of_mule_charset): Setup charset
4935         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4936         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4937
4938 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4939
4940         * mule-charset.c: Move setting for `leading-code-private-11' from
4941         `syms_of_mule_charset' to `vars_of_mule_charset'.
4942
4943 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4944
4945         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4946         and `NUM_LEADING_BYTES' in assert.
4947
4948 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4949
4950         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4951         instead of 128.
4952         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4953         `NUM_LEADING_BYTES' instead of 128.
4954
4955 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4956
4957         * mule-charset.h (charset_by_leading_byte): Use
4958         `NUM_LEADING_BYTES' instead of 128.
4959         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4960
4961         * mule-charset.c (charset_by_leading_byte): Use
4962         `NUM_LEADING_BYTES' instead of 128.
4963         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4964
4965         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4966         128.
4967
4968 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4969
4970         * mule-charset.c (syms_of_mule_charset): Update to
4971         0.4 (Shin-Imamiya).
4972
4973 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4974
4975         * file-coding.c (encode_coding_sjis): New implementation for
4976         UTF2000.  (decode_coding_sjis): Ditto.
4977
4978 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4979
4980         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4981         Don't define in UTF2000.
4982
4983         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4984         defined.
4985
4986         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4987         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4988         MULE.
4989
4990 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4991
4992         * config.h.in (CHAR_IS_UCS4): New macro.
4993
4994         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4995         conventional MULE representation.
4996         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4997
4998         * mule-charset.h: Reverted to original.
4999
5000         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5001         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5002         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5003
5004         * character.h: New file.
5005
5006         * file-coding.c (Fmake_coding_system): Set 1 to
5007         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5008         defined.
5009         (encode_coding_no_conversion): New implementation for UTF2000.
5010
5011         * file-coding.h (struct Lisp_Coding_System): Add new member
5012         `fixed.size'.
5013
5014 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5015
5016         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5017         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5018         (encode_coding_iso2022): New implementation for UTF2000.
5019
5020 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5021
5022         * mule-canna.c (c2mu): New implementation for UTF2000.
5023         (m2c): Likewise.
5024
5025 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5026
5027         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5028
5029 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5030
5031         * file-coding.c (reset_encoding_stream): Set 0 to
5032         `str->iso2022.current_char_boundary' in UTF2000.
5033         (encode_utf8): Don't define in UTF2000.
5034         (encode_coding_utf8): New implementation for UTF-8 representation
5035         of UTF2000.
5036         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5037
5038 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5039
5040         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5041
5042         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5043         UTF2000.
5044         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5045
5046         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5047
5048         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5049         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5050         as UTF-8 in UTF2000.
5051         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5052         (non_ascii_valid_char_p): Don't define in UTF2000.
5053         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5054         (Lstream_get_emchar_1): Likewise.
5055         (utf-2000-version): New variable in UTF2000.
5056
5057         * lread.c (read_escape): Add new reader `u'.
5058
5059         * insdel.c (three_to_one_table): Don't define in UTF2000.
5060         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5061         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5062         UTF2000.
5063         (bytind_to_bufpos_func): Likewise.
5064         (buffer_mule_signal_inserted_region): Likewise.
5065         (vars_of_insdel): Don't initialize `three_to_one_table'.
5066         (init_buffer_text): Use `buf->text->mule_size' instead of
5067         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5068         UTF2000.
5069
5070         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5071         UTF-8 representation in UTF2000.
5072         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5073         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5074         (decode_coding_iso2022): Don't define local variable `lb' in
5075         UTF2000; don't use LEADING_BYTE in UTF2000; use
5076         `DECODE_ADD_UCS_CHAR' in UTF2000.
5077         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5078
5079         * config.h.in (UTF2000): New macro.
5080
5081         * buffer.h (struct buffer_text): Add new member `mule_size' and
5082         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5083         (valid_char_p): Return always 1 in UTF2000.
5084         (MAX_EMCHAR_LEN): 6 in UTF2000.
5085         (three_to_one_table): Don't define in UTF2000.
5086         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5087         UTF2000.
5088         (real_bytind_to_bufpos): Likewise.
5089
5090         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5091
5092 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5093
5094         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5095         representation change.
5096         (Vutf_2000_version): New variable.
5097         (leading_code_private_11): New variable.
5098         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5099         `leading-code-private-11'.
5100
5101         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5102         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5103         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5104         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5105         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5106         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5107         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5108         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5109         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5110         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5111         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5112         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5113         (MIN_CHAR_GREEK): New macro.
5114         (MAX_CHAR_GREEK): New macro.
5115         (MIN_CHAR_CYRILLIC): New macro.
5116         (MAX_CHAR_CYRILLIC): New macro.
5117         (MIN_CHAR_HEBREW): New macro.
5118         (MAX_CHAR_HEBREW): New macro.
5119         (MIN_CHAR_THAI): New macro.
5120         (MAX_CHAR_THAI): New macro.
5121         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5122         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5123         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5124         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5125         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5126         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5127         (CHAR_FIELD2): New inline function.
5128         (CHAR_FIELD3): New inline function.
5129         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5130         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5131         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5132         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5133         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5134         (MIN_CHAR_COMPOSITION): Likewise.
5135         (CHAR_LEADING_BYTE): Modified for character representation change.
5136         (MAKE_CHAR): Likewise.
5137
5138         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5139         (Vcharset_greek_iso8859_7): Likewise.
5140         (Vcharset_cyrillic_iso8859_5): Likewise.
5141         (Vcharset_hebrew_iso8859_8): Likewise.
5142         (Vcharset_thai_tis620): Likewise.
5143         (Vcharset_katakana_jisx0201): Likewise.
5144
5145 2003-09-03  Vin Shelton <acs@xemacs.org>
5146
5147         * XEmacs 21.4.14 is released
5148
5149 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5150
5151         * config.h.in (REGEX_MALLOC): Make it configure'able.
5152
5153 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5154
5155         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5156         linking.
5157         * sysdll.c (dll_init):
5158         * sysdll.c (dll_open):
5159         * sysdll.c (dll_close):
5160         * sysdll.c (dll_function):
5161         * sysdll.c (dll_variable):
5162         * sysdll.c (dll_error):
5163         Add support for loading bundles using Darwin/MacOSX
5164         native API.
5165
5166 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5167
5168         * process.c (start-process-internal): Document coding systems.
5169
5170 2003-07-30  Jerry James  <james@xemacs.org>
5171
5172         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5173
5174 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5175
5176         * event-msw.c (mswindows_enqueue_mouse_button_event):
5177         * event-msw.c (mswindows_wnd_proc):
5178           enqueue button event when scrollwheel event isn't handled by 
5179           mswindows_handle_mousewheel_event, such as when the scrollbars
5180           are not showing.
5181
5182 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5183
5184         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5185
5186 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5187
5188         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5189
5190 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5191
5192         * regex.c (re_match_2_internal): Fix matching degenerate word
5193         boundaries.
5194
5195 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5196
5197         * XEmacs 21.4.13 is released
5198
5199 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5200
5201         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5202         * lisp.h (<inttypes.h>):
5203         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5204         the definition.
5205
5206 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5207
5208         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5209         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5210         Result: "temacs can only be run in -batch mode."
5211         Fix: Check xemacs executable candidate for directory-ness.
5212
5213 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5214
5215         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5216           they conflict with <sys/types.h>.
5217
5218 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5219
5220         * database.c: Berkeley DB wants __STDC__ to be defined.
5221
5222 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5223
5224         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5225
5226 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5227
5228         * process-unix.c (unix_send_process): Fix C++ compile error.
5229
5230 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5231
5232         * Added .dylib as an acceptable shared library file extension
5233         * to support MacOSX.
5234
5235 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5236
5237         * EmacsFrameP.h (EmacsFramePart):
5238         Kludge to allow compiling with Motif1, but linking with Motif2.
5239
5240 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5241
5242         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5243
5244
5245 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5246
5247         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5248
5249 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5250
5251         * sysdll.c: Included lisp.h to define needed alloca_array.
5252
5253 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5254
5255         Make XEmacs redisplay 10 times faster.
5256         If, that is, you're using a slow X connection and MoveOpaque.
5257         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5258         Use compress_motion = TRUE.
5259         * EmacsFrame.c (emacsFrameClassRec): 
5260         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5261         * EmacsManager.c (emacsManagerClassRec):
5262         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5263
5264 2003-01-30  Vin Shelton  <acs@xemacs.org>
5265
5266         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5267
5268 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5269
5270         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5271         Patch by Martin Buchholz.
5272
5273 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5274
5275         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5276         Thanks to icc for warning and Martin Buchholz for reporting.
5277
5278 2003-01-29  Vin Shelton <acs@xemacs.org>
5279
5280         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5281
5282         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5283         remember to multiply by the element size.
5284
5285 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5286
5287         * XEmacs 21.4.12 "Portable Code" is released.
5288
5289 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5290
5291         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5292         * s/cygwin.sc: new linker file.
5293
5294 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5295
5296         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5297
5298         * redisplay-x.c (x_output_string): Use X11-specified types.
5299         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5300         * emacs.c (__free_hook): Use typeof with Intel compiler.
5301         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5302
5303 2003-01-08  Andy Piper  <andy@xemacs.org>
5304
5305         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5306         reserve size during unexec().
5307
5308 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5309
5310         * process-unix.c (unix_create_process): Don't let outchannel block.
5311
5312 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5313
5314         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5315         Needed for IsBadReadPtr().
5316
5317 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5318
5319         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5320
5321 2002-12-14  Ben Wing  <ben@xemacs.org>
5322
5323         * callint.c: Declaration error.
5324         * dumper.c (pdump):
5325         * dumper.c (pdump_load): Warning fix.
5326         * process.c: GCPRO error.
5327         * glyphs.c (unmap_subwindow):
5328         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5329         * event-stream.c (maybe_kbd_translate): Wrong argument to
5330         character_to_event().
5331
5332         * alloc.c (garbage_collect_1):
5333         * emacs.c:
5334         * emacs.c (debug_can_access_memory):
5335         * emacs.c (fatal_error_signal):
5336         * emacs.c (mswindows_handle_hardware_exceptions):
5337         * emacs.c (main_1):
5338         * emacs.c (main):
5339         * emacs.c (assert_failed):
5340         * emacs.c (syms_of_emacs):
5341         * lisp.h:
5342         * print.c:
5343         * print.c (std_handle_out_va):
5344         * print.c (write_string_to_stdio_stream):
5345         * print.c (write_fmt_string):
5346         * print.c (printing_badness):
5347         * print.c (printing_major_badness):
5348         * print.c (print_internal):
5349         * print.c (debug_print_no_newline):
5350         * print.c (debug_backtrace):
5351         Be more defensive in handling bad values when printing.  Add code
5352         from trunk involving inhibit_non_essential_printing_operations.
5353         When going down or in debug_print(), don't do external conversion
5354         and such and try really, really hard when printing to avoid core
5355         dumping.  Add force-debugging-signal, debug_break().
5356
5357 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5358
5359         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5360         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5361
5362 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5363
5364         * database.c: Fix open_database. Berkeley DB API has changed in
5365         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5366
5367 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5368
5369         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5370
5371 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5372
5373         * event-Xt.c (Xt_timeout):
5374         (Xt_timeout_callback):
5375         (emacs_Xt_add_timeout):
5376         (emacs_Xt_remove_timeout):
5377         (Xt_timeout_to_emacs_event):
5378         Turn completed_timeouts from a stack into a queue.  Fixes
5379         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5380
5381 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5382
5383         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5384         * emacs.c (main): Assert that mmap'd allocation is disabled.
5385
5386 2002-10-14  Andy Piper  <andy@xemacs.org>
5387
5388         * glyphs-widget.c (layout_query_geometry): add in fiddle
5389         factor. Include border text in width layout calculation.
5390         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5391
5392 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5393
5394         * XEmacs 21.4.10 "Military Intelligence" is released.
5395
5396 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5397
5398         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5399         using the NAS private array SoundFileInfo that no longer exists in
5400         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5401         and earlier.  This is broken for some versions between 1.5a and
5402         1.5f.
5403
5404 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5405
5406         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5407
5408         * emacs.c (shut_down_emacs): Improve crash message.
5409
5410 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5411
5412         * file-coding.c (determine_real_coding_system): Check for coding
5413         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5414         shebangs and Python PEP 263.
5415
5416 2002-10-08  Andy Piper  <andy@xemacs.org>
5417
5418         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5419         if static sizes haven't been set.
5420
5421 2002-08-30  Mike Alexander  <mta@arbortext.com>
5422
5423         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5424         to close a socket.
5425
5426 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5427
5428         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5429
5430 2002-09-20  Mike Sperber <mike@xemacs.org>
5431
5432         (This partially gets back my patch from 2002-07-20 without the
5433         bug.)
5434         * callproc.c (child_setup): Remove Ben's comment noting confusion
5435         over the file descriptors >= 3: close_process_descs() doesn't
5436         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5437         * process-unix.c (unix_create_process): Call
5438         begin_dont_check_for_quit to inhibit unwanted interaction (and
5439         thus breaking of X event synchronicity) in the child.
5440
5441 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5442
5443         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5444         widget.
5445
5446 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5447
5448         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5449         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5450         the xemacs process did not exit, but looped infinitely here.  This
5451         fixes that problem.
5452
5453 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5454
5455         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5456         (find_context): Improve comments.
5457
5458         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5459         (re_match_2): An XCHAR_TABLE operation was missing.
5460
5461         Many of the following changes were inspired by Andy Piper's (now
5462         obsolete) patch to make syntax-table text property lookup optional.
5463
5464         [Documentation]
5465
5466         * syntax.h (top level): Document semantics of syntax flags.
5467         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5468         * syntax.c, syntax.h (top level): Document syntax cache better in
5469         comments.
5470
5471         [Instrument syntax caching (temporary change)]
5472
5473         * syntax.h (enum syntax_cache_statistics_functions, struct
5474         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5475         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5476         * syntax.c (scan_words, Fforward_comment, scan_lists,
5477         Fbackward_prefix_characters):
5478         * font-lock.c (find_context):
5479         Use them to instrument syntax caching. 
5480         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5481         syntax_cache_statistics_function_names): New type and variables.
5482         * syntax.c (update_syntax_cache): Update and report statistics.
5483
5484         [Major syntax cache optimizations]
5485
5486         syntax.c (lookup_syntax_properties): Default off.
5487
5488         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5489         * syntax.c (update_syntax_cache):
5490         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5491
5492         [Minor syntax cache optimizations and code clarifications]
5493
5494         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5495         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5496         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5497         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5498         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5499         (Code clarification.)
5500
5501         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5502         scan_lists): Compute code from syncode, use Boolean macros instead
5503         of redundant masking operations.  (Code clarification; any decent
5504         compiler can do this optimization.)
5505
5506         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5507         for clarity.
5508
5509         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5510         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5511         use F*_single_property_change instead of F*_extent_change.
5512         Currently F*_single_property_change is _much_ less efficient.
5513
5514         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5515         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5516         syntax_cache.object properly, don't leave Qt or Qnil.
5517         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5518         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5519         tests for Qt or Qnil.
5520
5521 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5522
5523         * redisplay.c (point_in_line_start_cache): 
5524         * extents.c (print_extent_1):
5525         Fix warnings.
5526
5527         * extents.c (Fset_extent_property): Document `syntax-table' property.
5528
5529         * extents.h (Fnext_single_property_change): EXFUN it.
5530
5531 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5532
5533         * search.c (clear_unused_search_regs): New static function.
5534         (search_buffer): 
5535         (simple_search): 
5536         (boyer_moore):
5537         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5538         Minor clarifications in comments.
5539
5540         * regex.c (re_match_2_internal): Ensure no stale submatches.
5541
5542 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5543
5544         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5545
5546 2002-08-29  Jerry James  <james@xemacs.org>
5547
5548         * lisp.h: structrures -> structures.
5549
5550 2002-06-03  Andy Piper  <andy@xemacs.org>
5551
5552         * frame.c (frame_conversion_internal): add conversion appropriate
5553         for setting frame dimensions in pixels.
5554
5555         * console.h (struct console_methods): add device-specific widget
5556         layout functions.
5557
5558         * emacs.c (main_1): initialize glyph vars.
5559
5560         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5561         (handle_focus_event_2): new function. Allow focus to
5562         be set to a particular window and widget.
5563         (enqueue_focus_event): new function. Create a
5564         synthetic focus event.
5565         (emacs_Xt_handle_magic_event): call
5566         handle_focus_event_2.
5567
5568         * frame.c (Fset_frame_pixel_height): new function. Allow
5569         pixel-based sizing. Does the right thing on character-oriented
5570         displays.
5571         (Fset_frame_pixel_width): ditto.
5572         (Fset_frame_pixel_size): ditto.
5573         (syms_of_frame): declare.
5574
5575         * general-slots.h: add :vertically-justify and
5576         :horizontally-justify.
5577
5578         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5579         (mswindows_widget_border_width): new function.
5580         (mswindows_combo_box_instantiate): set border widths.
5581         (console_type_create_glyphs_mswindows): declare.
5582
5583         * glyphs-widget.c:
5584         (check_valid_justification): allow vertical and horizontal
5585         justification.
5586         (widget_border_width): new function. Call device methods.
5587         (widget_instance_border_width): ditto.
5588         (logical_unit_height): new function. Determine the height of a
5589         logical-unit. Logical units are intended to provide grid-like
5590         layout for subcontrols in a layout. If the layout is
5591         :vertically-justify top then subcontrols will be positioned on
5592         logical-unit boundaries, thus allowing adjacent subcontrols to
5593         line up.
5594         (widget_logical_unit_height): ditto for widgets.
5595         (redisplay_widget): misc cleanup.
5596         (widget_spacing): new function. Call device specific
5597         methods. Intended to be the default gap between adjacent widgets.
5598         (widget_query_geometry): use new spacing functions to determine
5599         appropriate geometry.
5600         (initialize_widget_image_instance): initialize horizontal and
5601         vertical justification.
5602         (widget_instantiate): use logica-units where appropriate for
5603         sizing large widgets.
5604         (button_query_geometry): use widget_instance_border_width.
5605         (tree_view_query_geometry): ditto.
5606         (tab_control_query_geometry): ditto.
5607         (edit_field_query_geometry): new function.
5608         (layout_update): pick up :justify, :horizontally-justify and
5609         :vertically-justify none of which worked previously. :justify is
5610         used as a fallback for both horizontal and vertical justification.
5611         (layout_query_geometry): use logical units to size appropriately.
5612         (layout_layout): ditto.
5613         (Fwidget_logical_to_character_width): new function. Allow users to
5614         convert from logical units to characters so that frame sizes can
5615         be set appropriately.
5616         (Fwidget_logical_to_character_height): ditto.
5617         (syms_of_glyphs_widget): declare.
5618         (image_instantiator_edit_fields): add edit_field_query_geometry.
5619         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5620         :horizontally-justify.
5621         (specifier_vars_of_glyphs_widget): new function. Declare
5622         Vwidget_border_width which is not yet used.
5623
5624         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5625         (x_widget_border_width): new function.
5626         (x_widget_instantiate): create a sensible name for widgets.
5627         (console_type_create_glyphs_x): declare x_widget_border_width.
5628
5629         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5630         (struct Lisp_Image_Instance): add :vertically-justify and
5631         :horizontally-justify.
5632         (LAYOUT_JUSTIFY_TOP): new.
5633         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5634         (ROUND_UP): new macro. Round argument up to next integral
5635         interval.
5636
5637         * redisplay-output.c (redisplay_output_layout): misc formatting.
5638
5639         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5640
5641 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5642
5643         * XEmacs 21.4.9 "Informed Management" is released.
5644
5645 2002-08-19  Andy Piper  <andy@xemacs.org>
5646
5647         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5648         win32 format.
5649
5650         * realpath.c (xrealpath): normalize drive spec also so that dir
5651         sep chars are not mixed on cygwin.
5652
5653 2002-08-06  Jerry James  <james@xemacs.org>
5654
5655         * window.c (Fsplit_window): Count only half of the divider width
5656         against the left window when splitting horizontally. 
5657
5658 2002-06-24  Andy Piper  <andy@xemacs.org>
5659
5660         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5661         toolbar was cleared.
5662
5663         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5664         function. Split out from mswindows_output_frame_toolbars.
5665         (mswindows_output_frame_toolbars): move clear pieces to
5666         mswindows_output_frame_toolbars.
5667
5668         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5669         out from gtk_output_frame_toolbars.
5670         (gtk_output_frame_toolbars): move clear pieces to
5671         gtk_clear_frame_toolbars.
5672
5673         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5674         the frame is cleared. How this ever worked before is a mystery.
5675         (x_output_frame_toolbars): Only output toolbars.
5676         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5677
5678         * gutter.c (update_gutter_geometry):
5679         Mark frame layout changed.
5680         (update_frame_gutter_geometry, update_frame_gutters):
5681         Respect frame_layout_changed.
5682
5683         * console.h (struct console_methods): add
5684         clear_frame_toolbars_method.
5685
5686         * redisplay.c (redisplay_frame): call
5687         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5688
5689         * toolbar.h: declare update_frame_toolbars_geometry.
5690
5691         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5692         out from update_frame_toolbars.  Call clear_frame_toolbars.
5693         (update_frame_toolbars): only output, do not change geometry.
5694
5695         * redisplay.c: add frame_layout_changed.
5696
5697         * redisplay.h: add frame_layout_changed.
5698         (CLASS_RESET_CHANGED_FLAGS): set it.
5699         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5700         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5701         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5702
5703         * device.h (struct device): add frame_layout_changed.
5704         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5705
5706         * frame.h (struct frame): add frame_layout_changed.
5707         (MARK_FRAME_LAYOUT_CHANGED): new.
5708
5709 2002-06-30  Mike Alexander  <mta@arbortext.com>
5710
5711         * event-msw.c (mswindows_need_event): Don't wait for a new message
5712         if the queue is not empty.  Suggested by Paul Moore.
5713
5714 2002-06-12  Andy Piper  <andy@xemacs.org>
5715
5716         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5717         for printing on accurately.
5718
5719 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5720
5721         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5722         WM_ACTIVATE message. Make sure that the frame is visible if the
5723         window is visible. This seemss to fix the problem where XEmacs
5724         appears to freeze after switching desktops with certain virtual
5725         window managers.
5726         (debug_output_mswin_message): Added code to output message
5727         parameters for WM_WINDOWPOSCHANGED, 
5728         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5729
5730 2002-05-25  Andy Piper  <andy@xemacs.org>
5731
5732         * select-x.c (vars_of_select_x): Fix docstring of
5733         x-selection-strict-motif-ownership
5734
5735 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5736
5737         * keymap.c (get_keymap):
5738         Add comment about do_autoload GCPROs own args.
5739
5740 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5741
5742         * bytecode.c (execute_optimized_program): check_opcode ifdef
5743         ERROR_CHECK_BYTE_CODE.
5744
5745 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5746
5747         Thanks to Ben Wing and Michael Sperber.
5748
5749         * eval.c (Fcommand_execute):
5750         (Feval):
5751         (Ffuncall):
5752         (Fmacroexpand_internal):
5753         (function_argcount):
5754         callint.c (Fcall_interactively):
5755         Add comment about do_autoload GCPROs own args.
5756
5757         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5758
5759         * eval.c (Ffuncall): Extra braces to placate GCC.
5760
5761 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5762
5763         * backtrace.h (grow_specpdl):
5764         (SPECPDL_RESERVE):
5765         * EmacsFrame.c (EmacsFrameSetValues):
5766         * eval.c (grow_specpdl):
5767         * ExternalShell.c (hack_event_masks_1):
5768         * glyphs-x.c (convert_EImage_to_XImage): 
5769         (x_finalize_image_instance):
5770         * ralloc.c (page_size):
5771         (r_alloc_sbrk):
5772         * xgccache.c (gc_cache_hash):
5773         Fix unsigned comparison warnings.
5774
5775 2002-07-29  Jerry James  <james@xemacs.org>
5776
5777         * lread.c (locate_file): Any nonnegative return value indicates
5778         success if MODE is nonnegative.
5779
5780 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5781
5782         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5783         argument. 
5784
5785 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5786
5787         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5788
5789         * dumper.c (pdump_get_indirect_count):
5790         (pdump_scan_by_alignment):
5791         (pdump_dump_root_struct_ptrs):
5792         (pdump_dump_rtables):
5793         (pdump_dump_root_objects):
5794         (pdump):
5795         * nas.c (WaveOpenDataForReading):
5796         * fns.c (print_bit_vector):
5797         * font-lock.c (SINGLE_SYNTAX_STYLE):
5798         * glyphs.c (check_for_ignored_expose):
5799         (find_matching_subwindow):
5800         * glyphs-eimage.c:
5801         * imgproc.c (get_histogram):
5802         * redisplay.c (point_in_line_start_cache):
5803         * redisplay-output.c (redisplay_unmap_subwindows):
5804         * symbols.c (defsymbol_massage_name_1):
5805         (defkeyword_massage_name):
5806         (deferror_massage_name_and_message):
5807         * redisplay-x.c (x_output_string): 
5808         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5809         * frame.h (struct frame):
5810         * filelock.c (current_lock_owner):
5811         * doprnt.c (emacs_doprnt_1):
5812         * lisp.h (struct Lisp_Bit_Vector):
5813         (DO_REALLOC):
5814         Fix warnings.
5815
5816 2002-02-13  Ben Wing  <ben@xemacs.org>
5817
5818         * event-stream.c (reset_key_echo):
5819         * event-stream.c (reset_this_command_keys):
5820         * event-stream.c (execute_command_event):
5821         If console is dead as a result of C-x 5 0, then post-command stuff
5822         needs to be careful and do only non-console-specific stuff.
5823
5824 2002-07-01  Mike Sperber <mike@xemacs.org>
5825
5826         * process-unix.c (unix_send_process): Mark coding_outstream as
5827         non-open upon SIGPIPE.
5828
5829         * event-stream.c (Fnext_event): Reorder switch cases to something
5830         that makes sense.
5831
5832 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5833
5834         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5835         Don't bogusly reinitialize ascii_character property.
5836
5837 2002-07-08  Mike Sperber <mike@xemacs.org>
5838
5839         * process.c (Fstart_process_internal): Do error checking before we
5840         fork off the child, so the child can't muck with the state of the
5841         parent.
5842
5843 2002-07-08  Mike Sperber <mike@xemacs.org>
5844
5845         * ralloc.c (init_ralloc): Allocate properly for pdump.
5846
5847 2002-06-12  Andy Piper  <andy@xemacs.org>
5848
5849         * glyphs.c (query_string_geometry): check the string.
5850
5851         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5852         widget names.
5853
5854 2002-06-17  Jerry James  <james@xemacs.org>
5855
5856         * sysdll.c: Remove RTLD_GLOBAL initialization.
5857         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5858
5859 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5860
5861         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5862
5863 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5864
5865         * sysdep.c (sys_rename): Make sys_rename work for the case where
5866         Windows rename sets errno to EACCES if target file exists.
5867
5868 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5869
5870         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5871         Fix detection of metric units to work on Win95
5872
5873 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5874
5875         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5876
5877 2002-04-25  Andy Piper  <andy@xemacs.org>
5878
5879         * redisplay.c (create_text_block): Remove extra comment trailer.
5880
5881 2002-04-24  Andy Piper  <andy@xemacs.org>
5882
5883         * redisplay.c (create_text_block): Don't actually add propagation
5884         data if the line ends after we have added a glyph.
5885
5886 2002-04-22  Andy Piper  <andy@xemacs.org>
5887
5888         * extents.c (extent_fragment_update): check for glyphs we have
5889         previously displayed.
5890         * extents.c (print_extent_1): warning removal.
5891         * extents.h: change prototype.
5892         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5893         widths correctly for wide glyphs.
5894         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5895         * redisplay.c (prop_type): add PROP_GLYPH.
5896         * redisplay.c (struct prop_block): add glyph type
5897         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5898         to the propagation data.
5899         * redisplay.c (create_text_block): if there is a glyph in the
5900         propagation data use it to salt extent_fragment_update.
5901         * redisplay.c (create_string_text_block): ditto.
5902
5903 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5904
5905         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5906         * redisplay-output.c (compare_runes): Compare them.
5907         * redisplay.c: Update copyright date.
5908         * redisplay.c (pos_data): Add need_baseline_computation field.
5909         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5910         need_baseline_computation; zero yoffset. Set max_pixmap_height
5911         for all pixmaps, not just automatically positioned ones.
5912         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5913         * redisplay.c (calculate_baseline): New, compute textual baseline.
5914         * redisplay.c (add_glyph_rune): Call them.
5915         * redisplay.c (create_text_block): Likewise.
5916         * redisplay.c (create_overlay_glyph_block): Likewise.
5917         * redisplay.c (add_margin_runes): Likewise.
5918         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5919
5920         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5921         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5922         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5923         * redisplay-msw.c (mswindows_output_string): Likewise.
5924         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5925         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5926         * redisplay-x.c (x_output_display_block): Likewise.
5927
5928 2002-03-28  Ben Wing  <ben@xemacs.org>
5929
5930         * redisplay.c: Fixed bug in redisplay
5931         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5932         and down of the lines, since they're bigger than the line
5933         size. (It was seen most obviously when there's a horizontal scroll
5934         bar, e.g. do C-h a glyph or something like that.) The problem was
5935         that the glyph-contrib-p setting on glyphs was ignored even if it
5936         was set properly, which it wasn't until now.
5937
5938 2002-04-24  Andy Piper  <andy@xemacs.org>
5939
5940         * lisp.h (Dynarr_end): Fix definition.
5941
5942 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5943
5944         * redisplay.c (mark_redisplay): Remove call to
5945         update_frame_window_mirror.
5946
5947 2001-11-15  Andy Piper  <andy@xemacs.org>
5948
5949         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5950         cygwin (again).
5951
5952 2002-02-13  Andy Piper  <andy@xemacs.org>
5953
5954         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5955         we did in fact enqueue the XM_MAPFRAME event.
5956
5957 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5958
5959         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5960         to fix problem switching between virtual desktops under virtuawin
5961         virtual window manager.
5962
5963 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5964
5965         * event-msw.c: Typo fix.
5966         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5967         magic XM_MAPFRAME event has been sent.
5968
5969 2001-11-23  Andy Piper  <andy@xemacs.org>
5970
5971         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5972
5973 2001-11-21  Andy Piper  <andy@xemacs.org>
5974
5975         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5976         mouse events outside the frame.
5977
5978 2002-03-20  Andy Piper  <andy@xemacs.org>
5979
5980         * menubar-msw.c (mswindows_popup_menu): warning removal.
5981         * dialog-msw.c (dialog_popped_down): ditto.
5982
5983 2001-12-11  Andy Piper  <andy@xemacs.org>
5984
5985         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5986         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5987         popup_up_p.
5988         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5989         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5990         * menubar-msw.c (mswindows_popup_menu): ditto.
5991
5992 2001-10-29  Andy Piper  <andy@xemacs.org>
5993
5994         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5995         cancels.
5996
5997 2002-01-03  Andy Piper  <andy@xemacs.org>
5998
5999         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6000         letters.
6001         (xrealpath): ditto.
6002
6003 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6004
6005         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6006         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6007         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6008         Detect and handle case where machine is set up for metric units
6009
6010 2002-04-02  Andy Piper  <andy@xemacs.org>
6011
6012         * dired-msw.c (mswindows_get_files): 
6013         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6014         completely handled by XEmacs. Suggested by Thomas Vogler
6015         <mail@thomas-vogler.de>.
6016
6017 2001-11-14  Andy Piper  <andy@xemacs.org>
6018
6019         * nt.c (REG_ROOT): change registry key to XEmacs.
6020
6021 2002-04-27  Andy Piper  <andy@xemacs.org>
6022
6023         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6024
6025 2002-04-26  Andy Piper  <andy@xemacs.org>
6026
6027         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6028         behavior.
6029
6030 2002-03-14  Mike Alexander  <mta@arbortext.com>
6031
6032         * event-msw.c (mswindows_unwait_process): New, remove process from
6033         wait list
6034         * process-nt.c (nt_finalize_process_data): Call
6035         mswindows_unwait_process
6036         * console-msw.h: Declare mswindows_unwait_process
6037
6038 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6039
6040         * editfns.c (Fdecode_time):
6041         (Fformat_time_string):
6042         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6043         (make_time): Warning elimination (change arg name).
6044
6045 2001-11-24  Andy Piper  <andy@xemacs.org>
6046
6047         * window.c (Fsplit_window): Doc return type.
6048
6049 2002-04-01  Andy Piper  <andy@xemacs.org>
6050
6051         * emacs.c (Fkill_emacs): Only output message box in interactive
6052         mode.
6053
6054 2002-04-26  Andy Piper  <andy@xemacs.org>
6055  
6056         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6057         cygwin.
6058
6059 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6060
6061         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6062         bit platform.
6063
6064 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6065
6066         * XEmacs 21.4.8 "Honest Recruiter" is released.
6067
6068 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6069
6070         Supersedes 2002-04-17 patch.
6071
6072         * process.h (PROCESS_LIVE_P): Use the process status as
6073         evidence of health, not the state of the input stream.
6074         (PROCESS_READABLE_P): Say if the process is readable
6075         from. (It may be dead nonetheless.)
6076         (CHECK_READABLE_PROCESS): Test for that condition.
6077
6078         * process.c (create_process): Use PROCESS_READABLE_P.
6079         (read_process_output, set_process_filter): Likewise.
6080
6081         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6082         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6083
6084         This code is #if 0'd, this is not the time to add new functions:
6085
6086         * process.c (Fprocess_readable_p): Report readability status.
6087         * process.c (Qprocess_readable_p): New, associated symbol...
6088         * process.c (syms_of_process): ... initialize it.
6089
6090 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6091
6092         * XEmacs 21.4.7 "Economic Science" is released.
6093
6094 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6095
6096         * process.h (PROCESS_LIVE_P): Use the process status as
6097         evidence of health, not the state of the input stream.
6098
6099 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6100
6101         * sysdep.c (sys_siglist): change "signum" to "signal"
6102
6103 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6104
6105         * s/darwin.h: New file.
6106         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6107         
6108 2002-04-23  Andreas Jaeger  <aj@suse.de>
6109
6110         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6111         which use lib64 for 64-bit libs.
6112         (START_FILES): Likewise.
6113
6114 2002-02-11  Mike Sperber  <mike@xemacs.org>
6115
6116         * device-x.c: 
6117         (x_IO_error_handler):
6118         (x_init_device): Temporarily keep device in static variable
6119         `device_being_initialized' so we can recover gracefully from
6120         internal XOpenDevice failure.  (XOpenDevice is documented to
6121         return NULL on failure, but sometimes calls the IO error handler
6122         instead.)
6123
6124 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6125
6126         * dired.c (Ffile_name_all_completions): Change documentation --
6127         remove reference to completion-ignored-extensions.
6128         * dired.c (vars_of_dired): Change documentation for
6129         completion-ignored-extensions -- remove reference to
6130         file-name-all-completions.
6131
6132 2002-03-06  Jerry James  <james@xemacs.org>
6133
6134         * emodules.c (emodules_load): Fix multiple loading of same module.
6135
6136 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6137         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6138         RTLD_LAZY to avoid incorrect symbol binding when using nested
6139         shared libraries on Solaris.
6140
6141 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6142
6143         * fileio.c (Ffind_file_name_handler): Improve docstring.
6144
6145 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6146
6147         * fns.c (Fmapconcat): Improve docstring.
6148
6149 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6150
6151         * device-gtk.c: Add prototype for
6152         emacs_gtk_selection_clear_event_handle.
6153         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6154         selection.  Setup signal handler for "selection_clear_event"
6155         (emacs_gtk_selection_clear_event_handle).
6156
6157         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6158         other applications owning the clipboard (based on
6159         x_handle_selection_clear).
6160
6161 2001-12-23  William M. Perry  <wmperry@gnu.org>
6162
6163         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6164         
6165 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6166
6167         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6168
6169 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6170
6171         * XEmacs 21.4.6 "Common Lisp" is released.
6172
6173 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6174
6175         * search.c (Freplace_match): Add missing sub-expression functionality.
6176
6177         * buffer.c (decode_buffer): Add a check for pointer type to
6178         decode_buffer, before gcc's CSE optimization reorders a
6179         dereference in front of the allow_string test.
6180
6181 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6182
6183         * window.c (window_loop): Fix bug that sometimes prevented
6184         window_loop() from iterating across multiple devices.  Also, at
6185         Ben's request, changed infloop-detecting code to abort() instead
6186         of silently terminating window_loop().
6187
6188 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6189
6190         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6191         * editfns.c (make_time): New function.
6192         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6193         * lisp.h (make_time): Prototype and comment it.
6194         * dired.c (wasteful_word_to_lisp): Deprecate.
6195         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6196
6197 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6198
6199         * fileio.c (auto_save_1): Use current coding system, not
6200         escape-quoted.
6201
6202 2001-11-13  Ben Wing  <ben@xemacs.org>
6203
6204         * window.c:
6205         * window.c (window_truncation_on):
6206         * window.c (syms_of_window):
6207         truncate-partial-width-windows should respect the buffer being
6208         displayed, like other redisplay vars.
6209
6210 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6211
6212         * event-stream.c (Fread_key_sequence): save current buffer.
6213
6214 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6215
6216         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6217
6218 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6219
6220         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6221
6222 2001-10-26  Mike Alexander  <mta@arbortext.com>
6223
6224         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6225
6226 2001-10-25  Andy Piper  <andy@xemacs.org>
6227
6228         * ChangeLog:
6229         * dialog-msw.c (handle_directory_proc): new function.
6230          (handle_directory_dialog_box): new fucntion.
6231          (handle_file_dialog_box): use new directory dialog support.
6232          (mswindows_make_dialog_box_internal): ditto.
6233         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6234         handling.
6235         (mswindows_find_frame): make global.
6236         * fileio.c (Fexpand_file_name): build fix.
6237         * general-slots.h: add Qdirectory.
6238         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6239         handling.
6240         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6241         cygwin not leaving win32 paths unchanged.
6242         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6243         cygwin runtime to do path conversion.
6244         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6245         (syms_of_win32): add new function.
6246         * window.c (window_loop): build fix.
6247
6248 2001-10-15  Andy Piper  <andy@xemacs.org>
6249
6250         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6251
6252 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6253
6254         * XEmacs 21.4.5 "Civil Service" is released.
6255
6256 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6257
6258         * glyphs-x.c: Force buffer-tab highlight update when moving the
6259         buffer, avoiding an ugly black border, used for keyboard focus
6260         indication, on a widget that can never have keyboard focus, the
6261         buffer tab.
6262
6263 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6264
6265         * process-unix.c (unix_open_multicast_group): Remove too much
6266         conversion between host and network byte order.
6267
6268 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6269
6270         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6271         before replacing them.
6272
6273         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6274         operation.
6275
6276         * src/window.c (undedicate_windows): Use it.
6277         * src/window.h: Add prototype.
6278
6279 2001-09-17  Ben Wing  <ben@xemacs.org>
6280
6281         * fileio.c (normalize_filename):
6282         * fileio.c (Fexpand_file_name):
6283         Fix various C++ compile errors in Andy's recent code.
6284         
6285         * callint.c (Fcall_interactively):
6286         * editfns.c (Ftemp_directory):
6287         * editfns.c (Fuser_full_name):
6288         * emacs.c (argmatch):
6289         * lread.c (locate_file_map_suffixes):
6290         * redisplay-x.c (x_ring_bell):
6291         Fix sign-compare warnings.
6292         
6293 2001-09-08  Andy Piper  <andy@xemacs.org>
6294
6295         * fileio.c (normalize_filename): copied from nt.c
6296         * (Ffile_name_directory): enable win32 paths under cygwin.
6297         * (Ffile_name_nondirectory): ditto.
6298         * (directory_file_name): ditto.
6299         * (Fexpand_file_name): ditto.
6300         * (Ffile_truename): ditto.
6301         * (Fsubstitute_in_file_name): ditto.
6302         * (Ffile_name_absolute_p): ditto.
6303         * (Ffile_readable_p): ditto.
6304
6305 2001-09-08  Andy Piper  <andy@xemacs.org>
6306
6307         * device-msw.c (mswindows_finish_init_device): remove dde
6308         initialization.
6309         * device-msw.c (mswindows_init_dde): factor out from
6310         mswindows_finish_init_device()
6311         * device-msw.c (init_mswindows_very_early): new function
6312         initialize but don't enable dde.
6313         * emacs.c (main_1): call init_mswindows_very_early.
6314         * event-msw.c:
6315         * event-msw.c (mswindows_dde_callback): only execute when we are
6316         ready.
6317         * symsinit.h: declare init_mswindows_very_early.
6318
6319 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6320
6321         [sjt: This has been in 21.5 for months with no complaints.]
6322
6323         * console.h (struct console_methods): Added flags member.
6324         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6325         (CONMETH_IMPL_FLAG):
6326         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6327         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6328
6329         * device.c (window_system_pixelated_geometry): Use the above macros.
6330
6331         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6332         implememntation flag.
6333         * device.h (DEVICE_DISPLAY_P): Use it.
6334
6335         * frame.c (delete_frame_internal): Use the above macro.
6336
6337         * redisplay.c (redisplay_device): Use it.
6338         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6339         (redisplay_frame): Ditto.
6340
6341         * device-msw.c (mswindows_device_implementation_flags): Removed.
6342         (msprinter_device_implementation_flags): Removed.
6343         (console_type_create_device_mswindows): Removed references to
6344         implementation_flags methods, set implementation flags here.
6345         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6346
6347         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6348         (console_type_create_device_gtk): Removed method declaration.
6349         Added commented out statement which semantically matches the
6350         commented out statement in the above removed method.
6351
6352 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6353
6354         The attached patch fixes a few warnings. 
6355
6356         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6357         * src/frame-gtk.c: guard against GNOME calls in GTK only
6358         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6359         * src/select-gtk.c: prototype lisp_to_time
6360
6361 2001-06-08  Ben Wing  <ben@xemacs.org>
6362
6363         ------ gc-in-window-procedure fixes ------
6364         
6365         * alloc.c:
6366         * alloc.c (struct post_gc_action):
6367         * alloc.c (register_post_gc_action):
6368         * alloc.c (run_post_gc_actions):
6369         * alloc.c (garbage_collect_1):
6370         Create "post-gc actions", to avoid those dreaded "GC during window
6371         procedure" problems.
6372
6373         * event-msw.c:
6374         Abort, clean and simple, when GC in window procedure.  We want
6375         to flush these puppies out.
6376
6377         * glyphs-msw.c:
6378         * glyphs-msw.c (finalize_destroy_window):
6379         * glyphs-msw.c (mswindows_finalize_image_instance):
6380         Use a post-gc action when destroying subwindows.
6381
6382         * lisp.h:
6383         Declare register_post_gc_action().
6384
6385         * scrollbar-msw.c:
6386         * scrollbar-msw.c (unshow_that_mofo):
6387         Use a post-gc action when unshowing scrollbar windows, if in gc.
6388
6389         * redisplay.c (mark_redisplay):
6390         Add comment about the utter evilness of what's going down here.
6391
6392         ------ cygwin setitimer fixes ------
6393         
6394         * Makefile.in.in (sheap_objs):
6395         * Makefile.in.in (profile_objs):
6396         * Makefile.in.in (objs):
6397         Compile profile.c only when HAVE_SETITIMER.
6398         
6399         * nt.c (mswindows_sigset):
6400         * nt.c (mswindows_sighold):
6401         * nt.c (mswindows_sigrelse):
6402         * nt.c (mswindows_sigpause):
6403         * nt.c (mswindows_raise):
6404         * nt.c (close_file_data):
6405         Style fixes.
6406         
6407         * nt.c:
6408         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6409         
6410         * profile.c:
6411         * profile.c (Fstart_profiling):
6412         * profile.c (Fstop_profiling):
6413         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6414         instead of just plain setitimer().
6415         
6416         * signal.c:
6417         * signal.c (set_one_shot_timer):
6418         * signal.c (alarm):
6419         Define qxe_setitimer() as an encapsulation around setitimer() --
6420         call setitimer() directly unless Cygwin or MS Win, in which case
6421         we use our simulated version in win32.c.
6422         
6423         * systime.h:
6424         * systime.h (struct itimerval):
6425         * systime.h (ITIMER_REAL):
6426         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6427         comment about "qxe" and the policy regarding encapsulation.
6428
6429         * win32.c:
6430         * win32.c (setitimer_helper_proc):
6431         * win32.c (setitimer_helper_period):
6432         * win32.c (setitimer_helper):
6433         * win32.c (mswindows_setitimer):
6434         Move setitimer() emulation here, so Cygwin can use it.
6435         Rename a couple of functions and variables to be longer and more
6436         descriptive.  In setitimer_helper_proc(), send the signal
6437         using either mswindows_raise() or (on Cygwin) kill().  If for
6438         some reason we are still getting lockups, we'll change the kill()
6439         to directly invoke the signal handlers.
6440
6441         ------ windows shell fixes ------
6442         
6443         * callproc.c:
6444         * ntproc.c:
6445         Comments about how these two files must die.
6446
6447         * callproc.c (init_callproc):
6448         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6449         not just COMSPEC. (more correct and closer to FSF.) Don't
6450         force a value for SHELL into the environment. (Comments added
6451         to explain why not.)
6452         
6453         * nt.c (init_user_info):
6454         Don't shove a fabricated SHELL into the environment.  See above.
6455
6456 2001-06-01  Ben Wing  <ben@xemacs.org>
6457
6458         * Makefile.in.in (ldflags):
6459         eliminate that pesky "defaulting to 00401000" warning.
6460         * nt.h:
6461         eliminate warnings.
6462
6463 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6464
6465         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6466         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6467
6468 2001-04-24  Jerry James <james@xemacs.org>
6469
6470         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6471         correct order.
6472
6473 2001-06-01  Ben Wing  <ben@xemacs.org>
6474
6475         * event-msw.c (debug_mswin_messages):
6476         conditionalize the messages that were causing compile errors.
6477         (if only macros could generate #ifdef statements ...)
6478
6479 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6480
6481         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6482
6483 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6484
6485         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6486
6487 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6488
6489         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6490         * process-unix.c (unix_canonicalize_host_name):
6491         sysdep.c (init_system_name):
6492         Use it to conditionally support IPv6 canonicalization.
6493
6494 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6495
6496         * event-msw.c:
6497         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6498
6499 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6500
6501         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6502         attempt is made to scroll when no scroll bar is available.
6503
6504 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6505
6506         * input-method-motif.c (XIM_delete_frame): New callback.
6507         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6508         got deleted from 21.4.3.)
6509
6510 2001-06-01  Ben Wing  <ben@xemacs.org>
6511
6512         * nt.c (mswindows_utime):
6513         * nt.c (close_file_data):
6514         fix off-by-one-indirection error.
6515
6516 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6517
6518         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6519         because set_file_times() now takes Lisp_Object path, instead of
6520         char*.
6521         * nt.c: Include buffer.h.
6522         * nt.c (convert_from_time_t): New.
6523         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6524         not set mtime correctly.
6525         * nt.h: Declare mswindows_utime().
6526         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6527         path, instead of char*.
6528         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6529
6530 2001-05-30  Ben Wing  <ben@xemacs.org>
6531
6532         For 21.4:
6533
6534         (Stephen, just take all event-msw.c patches.  This includes
6535         the "iconify" fix below.)
6536
6537         * event-msw.c:
6538         * event-msw.c (mswindows_dequeue_dispatch_event):
6539         * event-msw.c (assert):
6540         * event-msw.c (emacs_mswindows_quit_p):
6541         * event-msw.c (debug_mswin_messages):
6542         * event-msw.c (debug_output_mswin_message):
6543         * event-msw.c (vars_of_event_mswindows):
6544         Fix yet more problems with C-g handling.
6545         Implement debug-mswindows-events.
6546         
6547 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6548
6549         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6550         
6551 2001-05-23  Ben Wing  <ben@xemacs.org>
6552
6553         * event-msw.c (winsock_writer):
6554         * event-msw.c (winsock_closer):
6555         prior kludgy code was clobbering the buffer, thinking it was
6556         "unused" space to store an unneeded return value; instead, use
6557         the variable we've already got staring us in the face.
6558
6559 2001-05-17  Andy Piper  <andy@xemacs.org>
6560
6561         * sysfile.h: don't assume that file attributes are boolean
6562
6563 2001-05-23  Ben Wing  <ben@xemacs.org>
6564
6565         * device-msw.c (msprinter_init_device):
6566         signal an error rather than crash with an unavailable network
6567         printer (from Mike Alexander).
6568         
6569         * event-msw.c:
6570         * event-msw.c (struct winsock_stream):
6571         * event-msw.c (winsock_writer):
6572         * event-msw.c (winsock_closer):
6573         * event-msw.c (make_winsock_stream_1):
6574         cleanup headers.  fix (hopefully) an error with data corruption
6575         when sending to a network connection.
6576
6577         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6578         to handle the ~user prefix by (a) always assuming we're referencing
6579         ourselves and not even verifying the user -- hence any file with
6580         a tilde as its first char is invalid! (b) if there wasn't a slash
6581         following the filename, the pointer was set *past* the end of
6582         file and we started reading from uninitialized memory.  Now we
6583         simply treat these as files, always.
6584
6585         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6586         
6587 2001-05-19  Ben Wing  <ben@xemacs.org>
6588
6589         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6590
6591         * process-nt.c:
6592         * process-nt.c (vars_of_process_nt):
6593         remove unused mswindows-quote-process-args.  rec for 21.4.
6594         
6595 2001-05-12  Ben Wing  <ben@xemacs.org>
6596
6597         * event-msw.c (mswindows_dde_callback):
6598         * event-msw.c (mswindows_wnd_proc):
6599         eliminate cygwin warnings.
6600
6601 2001-05-06  Ben Wing  <ben@xemacs.org>
6602
6603         * console-msw.h:
6604         * device-msw.c:
6605         * device-msw.c (print_dialog_worker):
6606         * device-msw.c (mswindows_handle_print_dialog_box):
6607         * device-msw.c (syms_of_device_mswindows):
6608         * dialog-msw.c (mswindows_make_dialog_box_internal):
6609         * general-slots.h:
6610         implement printing the selection when it's selected.
6611
6612 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6613
6614         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6615
6616 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6617
6618         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6619         EMACS_INT is signed.
6620
6621 2001-04-15  Michael Lausch  <mla@1012surf.net>
6622
6623         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6624         gtk_widget_request_size() to give scrollbar >0 width for
6625         GTK >1.2.8.
6626
6627 2001-05-30  William M. Perry  <wmperry@gnu.org>
6628
6629         * event-gtk.c: Check for buttons as modifier keys.
6630
6631 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6632
6633         * s\mingw32.h:
6634         Properly find MinGW's <process.h> inside Cygwin's restructured
6635         include directories.  Don't try to include <cygwin/version.h>
6636         since we are dropping support for MinGW in versions of Cygwin
6637         earlier than b21.
6638         * nt.c:
6639         Drop support for MinGW in versions of Cygwin before b21.
6640         * sysdep.c:
6641         Properly find MinGW's <process.h> inside Cygwin's restructured
6642         include directories.
6643         * syswindows.h:
6644         Drop support for MinGW in versions of Cygwin before b21.
6645         * unexcw.c:
6646         Even though a.out.h is no longer detected by configure, allow
6647         MinGW to use it until we figure out how to do the job with Win32.
6648
6649 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6650
6651         * syntax.c (find_start_of_comment):
6652         Fix `unbalanced parentheses' bug when dealing with mixed comment
6653         styles in c++/java/etc. mode
6654
6655 2001-05-29  Mike Alexander  <mta@arbortext.com>
6656
6657         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6658         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6659
6660 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6661
6662         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6663
6664 2001-03-31  Mike Sperber <mike@xemacs.org>
6665
6666         * search.c (Freplace_match): Support FSF-style specification of
6667         match subexpression when applied to a buffer.
6668
6669 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6670
6671         * event-stream.c (is_scrollbar_event): add missing semicolon
6672
6673 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6674
6675         * Makefile.in.in: Use TAR macro instead of hardcoding
6676           tar.  Allows use of GNU tar instead of system tar
6677
6678 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6679
6680         * event-stream.c (is_scrollbar_event): add missing semicolon
6681
6682 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6683
6684         * XEmacs 21.4.3 "Academic Rigor" is released.
6685
6686 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6687
6688         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6689
6690 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6691
6692         * buffer.c (Vcase_fold_search): Remove obsolete
6693           comment about non ASCII case-fold-search.  This
6694           bug has been fixed by case-table changes.
6695
6696 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6697
6698         * event-msw.c: Restore include of events-mod.h.
6699
6700 2001-04-22   zhaoway  <zw@debian.org>
6701
6702         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6703         !HAVE_SCROLLBARS.
6704
6705 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6706
6707         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6708
6709 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6710
6711         * mule-charset.c (Fmake_charset): Add missing else.
6712
6713 2001-04-23  Ben Wing  <ben@xemacs.org>
6714
6715         * event-msw.c (FAKE_MOD_QUIT):
6716         * event-msw.c (mswindows_dequeue_dispatch_event):
6717         * event-msw.c (mswindows_wnd_proc):
6718         * event-msw.c (emacs_mswindows_quit_p):
6719         Get critical quit working.
6720
6721 2001-05-05  Ben Wing  <ben@xemacs.org>
6722
6723         * console-msw.h:
6724         * device-msw.c:
6725         * device-msw.c (mswindows_get_default_margin):
6726         * frame-msw.c (mswindows_size_frame_internal):
6727         * frame-msw.c (msprinter_init_frame_1):
6728         * frame-msw.c (vars_of_frame_mswindows):
6729         Change top/bottom margin defaults to 0.5 inches.
6730
6731 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6732
6733         Fix link error with gcc 3.0 on Linux.
6734         * terminfo.c (UP): Remove.
6735         * terminfo.c (BC): Remove.
6736         * terminfo.c (PC): Remove.
6737         They weren't used, and in any case, these symbols should be
6738         defined in the *library*.
6739
6740 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6741
6742         * s/aix4.h: Fix crash with xlc -O3.
6743         Improve comment explaining how -O3 works.
6744
6745 2001-04-15  Ben Wing  <ben@xemacs.org>
6746
6747         * event-stream.c:
6748         * event-stream.c (Fnext_event):
6749         * event-stream.c (is_scrollbar_event):
6750         * event-stream.c (execute_command_event):
6751         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6752         crash' problem.  His fix introduces other problems.  We filter
6753         out scrollbar events specifically, making them somewhat invisible
6754         to command-building, and not appearing in `this-command-keys'.
6755         More work is still needed (see comments in event-stream.c), but
6756         this fixes all the major problems.
6757
6758 2001-04-20  Ben Wing  <ben@xemacs.org>
6759
6760         * .cvsignore: Added stuff for Windows.
6761
6762 2001-04-28  Ben Wing  <ben@xemacs.org>
6763
6764         * buffer.c (Ferase_buffer):
6765         * editfns.c (buffer_insert1):
6766         * editfns.c (Finsert_before_markers):
6767         * editfns.c (Finsert_string):
6768         * editfns.c (Finsert_char):
6769         * editfns.c (Fdelete_region):
6770         * editfns.c (Fwiden):
6771         * editfns.c (Fnarrow_to_region):
6772         remove bogus lines setting zmacs_region_stays to 0.
6773         
6774 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6775
6776         * process-unix.c (unix_open_network_stream): If connect() fails
6777         invalidate file descriptor after closing it.
6778
6779 2001-03-08  Mike Alexander  <mta@arbortext.com>
6780
6781         * event-msw.c (mswindows_need_event_in_modal_loop):
6782         Don't dispatch a message if we didn't get one.
6783         (mswindows_need_event):
6784         Terminate the correct process when one exits instead of the first
6785         one on Vprocess_list and look for process termination when in
6786         mswindows_protect_modal_loop.
6787
6788 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6789
6790         * XEmacs 21.4.1 "Copyleft" is released.
6791
6792 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6793
6794         * input-method-motif.c (XIM_delete_frame): New callback.
6795         (XIM_init_frame): Register it.
6796
6797 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6798
6799         * XEmacs 21.4.0 "Solid Vapor" is released.
6800
6801 2001-04-15  Ben Wing  <ben@xemacs.org>
6802
6803         * cmdloop.c (call_command_loop):
6804         Fix braino in bit-rotting code.
6805         
6806 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6807
6808         * extents.c (Fset_extent_endpoints): Force creation of extent info
6809         in buffer_or_string.
6810
6811         * extents.c (process_extents_for_insertion_mapper): Correctly
6812         check for open-open zero-length extents.
6813
6814 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6815
6816         * lisp.h: New typedefs Memory_count, Element_count.
6817         * regex.c:
6818         * regex.h:
6819         Sign-compare warning elimination: several unsigned -> signed.
6820         Based on work by Ben Wing <ben@xemacs.org>.
6821
6822 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6823
6824         * XEmacs 21.2.47 "Zephir" is released.
6825
6826 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6827
6828         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6829
6830 2001-04-03  Mike Sperber <mike@xemacs.org>
6831
6832         * search.c: Revert previous patch due because of release.
6833
6834 2001-03-30  Ben Wing  <ben@xemacs.org>
6835
6836         * s\cygwin32.h:
6837         Add missing killpg prototype.
6838
6839         * elhash.c:
6840         Add a comment about fixing problems when a new entry is added
6841         while mapping.
6842
6843         * frame-msw.c (mswindows_init_frame_1):
6844         Fix compile warnings.
6845
6846         * menubar.c (vars_of_menubar):
6847         Provide `menu-accelerator-support' to indicate that we properly
6848         support %_ in menu specifications, so that package code can
6849         conditionalize on this (and remove %_ from menu specifications
6850         on older versions).
6851
6852         * event-msw.c:
6853         * scrollbar-msw.c:
6854         * scrollbar-msw.c (can_scroll):
6855         * scrollbar-msw.h:
6856         Fix handling of mouse wheel under Windows to follow standards --
6857         now scrolls window under pointer, not selected window.
6858
6859 2001-03-31  Mike Sperber <mike@xemacs.org>
6860
6861         * search.c (Freplace_match): Support FSF-style specification of
6862         match subexpression when applied to a buffer.
6863
6864 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6865
6866         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6867         function to modify KEYMAP, so map over a copy of the hash table.
6868
6869 2001-03-21  Martin Buchholz <martin@xemacs.org>
6870
6871         * XEmacs 21.2.46 "Urania" is released.
6872
6873 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6874
6875         * realpath.c (xrealpath): Make file-truename work with symlinks to
6876         /cygdrive paths on cygwin. Always lowercase drive-letters on
6877         native windows.
6878         (cygwin_readlink): Don't try to find canonical filename unless
6879         file exists.
6880
6881 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6882
6883         * ChangeLog: Log GTK merge.
6884
6885         * dumper.c:
6886         * select-x.c:
6887         * specifier.c:
6888         * symeval.h:
6889         Revert gratuitous whitespace changes from GTK merge.
6890
6891         * emacs.c: Document end of complex #ifdef @ l. 1495.
6892
6893
6894 2001-03-12  Andy Piper  <andy@xemacs.org>
6895
6896         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6897         have to do likewise.
6898
6899 2001-03-12  Andy Piper  <andy@xemacs.org>
6900
6901         * sysdep.c: we only support mingw now.
6902
6903 2001-03-09  Andy Piper  <andy@xemacs.org>
6904
6905         * unexcw.c (copy_executable_and_dump_data_section): making approx
6906         overrun a warning only.
6907
6908 2001-03-10  William M. Perry  <wmperry@aventail.com>
6909
6910         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6911         satisfy Stephen's identical-after-cpp plea.
6912
6913 2001-03-02  Ben Wing  <ben@xemacs.org>
6914
6915         * cmds.c:
6916         * cmds.c (Fforward_char):
6917         * syntax.c:
6918         * window.c:
6919
6920         Augment documentation of the most common motion commands to make
6921         note of the shifted-motion support.
6922         
6923 2001-03-02  Ben Wing  <ben@xemacs.org>
6924
6925         * nt.c (mswindows_fstat):
6926         * nt.c (mswindows_stat):
6927         * search.c (boyer_moore):
6928         Fix compile warnings under Windows.
6929         
6930         * sysdep.c (sys_readdir):
6931         Fix buggy filename-conversion code under Mule.
6932
6933 2001-03-09  William M. Perry  <wmperry@aventail.com>
6934
6935         * Makefile.in.in:
6936         * config.h.in:
6937         * console.c:
6938         * console.h:
6939         * device.c:
6940         * device.h:
6941         * dragdrop.c:
6942         * emacs.c:
6943         * event-stream.c:
6944         * events.c:
6945         * events.h:
6946         * faces.c:
6947         * frame.h:
6948         * general-slots.h:
6949         * glyphs.c:
6950         * gutter.c:
6951         * inline.c:
6952         * lisp.h:
6953         * lrecord.h:
6954         * make-src-depend:
6955         * redisplay-output.c:
6956         * redisplay.c:
6957         * symsinit.h:
6958         * sysfile.h:
6959         * toolbar.c:
6960         * window.c:
6961         The Great GTK Merge.
6962
6963         * ChangeLog.GTK:
6964         * console-gtk.c:
6965         * console-gtk.h:
6966         * device-gtk.c:
6967         * emacs-marshals.c:
6968         * emacs-widget-accessors.c:
6969         * event-gtk.c:
6970         * frame-gtk.c:
6971         * gccache-gtk.c:
6972         * gccache-gtk.h:
6973         * glade.c:
6974         * glyphs-gtk.c:
6975         * glyphs-gtk.h:
6976         * gtk-glue.c:
6977         * gtk-xemacs.c:
6978         * gtk-xemacs.h:
6979         * gui-gtk.c:
6980         * gui-gtk.h:
6981         * menubar-gtk.c:
6982         * native-gtk-toolbar.c:
6983         * objects-gtk.c:
6984         * objects-gtk.h:
6985         * redisplay-gtk.c:
6986         * scrollbar-gtk.c:
6987         * scrollbar-gtk.h:
6988         * select-gtk.c:
6989         * toolbar-gtk.c:
6990         * ui-byhand.c:
6991         * ui-gtk.c:
6992         * ui-gtk.h:
6993         The Great GTK Merge: new files.
6994
6995 2001-02-26  Ben Wing  <ben@xemacs.org>
6996
6997         Reapplied Lstream change.
6998
6999 2001-02-26  Ben Wing  <ben@xemacs.org>
7000
7001         Undid the last change, since it is more controversial than I
7002         thought.  It should be back in at some point soon.
7003         
7004 2001-02-25  Ben Wing  <ben@xemacs.org>
7005
7006         * buffer.c:
7007         * callproc.c (Fold_call_process_internal):
7008         * event-msw.c (ntpipe_slurp_reader):
7009         * event-msw.c (ntpipe_shove_writer):
7010         * event-msw.c (winsock_reader):
7011         * event-msw.c (winsock_writer):
7012         * file-coding.c:
7013         * file-coding.c (detect_eol_type):
7014         * file-coding.c (detect_coding_type):
7015         * file-coding.c (determine_real_coding_system):
7016         * file-coding.c (Fdetect_coding_region):
7017         * file-coding.c (decoding_reader):
7018         * file-coding.c (decoding_writer):
7019         * file-coding.c (mule_decode):
7020         * file-coding.c (Fdecode_coding_region):
7021         * file-coding.c (encoding_reader):
7022         * file-coding.c (encoding_writer):
7023         * file-coding.c (mule_encode):
7024         * file-coding.c (Fencode_coding_region):
7025         * file-coding.c (detect_coding_sjis):
7026         * file-coding.c (decode_coding_sjis):
7027         * file-coding.c (encode_coding_sjis):
7028         * file-coding.c (detect_coding_big5):
7029         * file-coding.c (decode_coding_big5):
7030         * file-coding.c (encode_coding_big5):
7031         * file-coding.c (detect_coding_ucs4):
7032         * file-coding.c (decode_coding_ucs4):
7033         * file-coding.c (encode_coding_ucs4):
7034         * file-coding.c (detect_coding_utf8):
7035         * file-coding.c (decode_coding_utf8):
7036         * file-coding.c (encode_coding_utf8):
7037         * file-coding.c (detect_coding_iso2022):
7038         * file-coding.c (decode_coding_iso2022):
7039         * file-coding.c (encode_coding_iso2022):
7040         * file-coding.c (decode_coding_no_conversion):
7041         * file-coding.c (encode_coding_no_conversion):
7042         * glyphs-x.c (write_lisp_string_to_temp_file):
7043         * gpmevent.c (tty_get_foreign_selection):
7044         * lisp.h:
7045         * lstream.c:
7046         * lstream.c (Lstream_flush_out):
7047         * lstream.c (Lstream_adding):
7048         * lstream.c (Lstream_write_1):
7049         * lstream.c (Lstream_write):
7050         * lstream.c (Lstream_raw_read):
7051         * lstream.c (Lstream_read_more):
7052         * lstream.c (Lstream_read):
7053         * lstream.c (Lstream_unread):
7054         * lstream.c (Lstream_fputc):
7055         * lstream.c (stdio_reader):
7056         * lstream.c (stdio_writer):
7057         * lstream.c (filedesc_reader):
7058         * lstream.c (filedesc_writer):
7059         * lstream.c (lisp_string_reader):
7060         * lstream.c (struct fixed_buffer_stream):
7061         * lstream.c (make_fixed_buffer_input_stream):
7062         * lstream.c (make_fixed_buffer_output_stream):
7063         * lstream.c (fixed_buffer_reader):
7064         * lstream.c (fixed_buffer_writer):
7065         * lstream.c (struct resizing_buffer_stream):
7066         * lstream.c (resizing_buffer_writer):
7067         * lstream.c (dynarr_writer):
7068         * lstream.c (lisp_buffer_reader):
7069         * lstream.c (lisp_buffer_writer):
7070         * lstream.h:
7071         * lstream.h (lstream_implementation):
7072         * lstream.h (struct lstream):
7073         * md5.c (Fmd5):
7074         * process-nt.c (nt_send_process):
7075         * process-unix.c (unix_send_process):
7076         
7077         Correct Lstream lossage due to mixing of signed and unsigned
7078         quantities.  All Lstream uses of size_t and ssize_t are now a
7079         single signed data type Lstream_data_count.  This fixes problems
7080         under Windows with sending large quantities of data to a process,
7081         and may well fix other subtle bugs.
7082
7083 2001-02-23  Martin Buchholz <martin@xemacs.org>
7084
7085         * XEmacs 21.2.45 "Thelxepeia" is released.
7086
7087 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7088
7089         * lisp-union.h (XSETINT): 
7090         (XSETCHAR):
7091         (XSETOBJ): 
7092         Reverse previous change of 2001-02-06.
7093
7094 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7095
7096         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7097         buffers.
7098         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7099         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7100         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7101         * regex.c (POS_AS_IN_BUFFER): removed
7102         * regex.c (re_search_2):
7103         * regex.c (re_match_2):
7104         Don't use an offset of 1 when calculating buffer positions, since
7105         `BI_BUF_BEGV' does it already.
7106
7107 2001-02-18  Wim Dumon  <wim@easics.be>
7108
7109         * insdel.c (prepare_to_modify_buffer): Also check for
7110         supersession when clash-detection is enabled. 
7111
7112 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7113
7114         * regex.c (re_match_2_internal):
7115         Convert temp characters from 'const unsigned char' to 're_char'.
7116         Fix crashing bug with extended characters under mule.
7117         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7118         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7119         font-lock, pdump, and new syntax-table code.
7120         * syntax.c (find_start_of_comment):
7121         (find_end_of_comment):
7122         (forward-comment):
7123         Fix crashing bugs involving moving beyond end of buffer.
7124         * syntax.c (find_start_of_comment):
7125         Fixed logic to allow proper detection of cases where the same
7126         character is used to end both a two-char comment start and a
7127         two-char comment end sequence. Fixes `(forward-comment -1)'.
7128         * syntax.c (find_start_of_comment):
7129         Return position just past last comment-end character for all cases
7130         (previously was only done for two-char comment-end sequences).
7131         * syntax.c (forward-comment):
7132         Take value returned from `find_end_of_comment', rather than
7133         incrementing it.
7134         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7135         Properly deal with BUFFERP (syntax_cache.object)
7136
7137 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7138
7139         * alloc.c (Fgarbage_collect): 
7140         * alloc.c (make_bit_vector_from_byte_vector):
7141         -Wsign-compare-correctness.
7142
7143 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7144
7145         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7146         (XSETCHAR): Likewise.
7147         (XSETOBJ): Likewise.
7148
7149 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7150
7151         * mule-canna.c (canna-func-delete_previous): 
7152         Rename to canna-func-delete-previous.
7153
7154 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7155
7156         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7157
7158 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7159
7160         * font-lock.c (find_context): Fix C++ compile errors introduced by
7161         recent patch
7162
7163 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7164
7165         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7166         pragma, but earlier ones barf on the same pragma.
7167
7168 2001-02-06  Mike Sperber <mike@xemacs.org>
7169
7170         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7171         `configure-mule-lisp-directory'.
7172
7173 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7174
7175         Make sure dump-id.c is compiled in the same way as other .c's.
7176         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7177         * dump-id.h: Remove.
7178         * emacs.c: Move dump-id.h into dumper.h.
7179         * dumper.h: Move dump-id.h into dumper.h.
7180         * Makefile.in.in:
7181         Use standard .c.o rule for building dump-id.o.
7182         Remove preprocessor flags from link command.
7183         Add dump-id.o to ${otherobjs} if PDUMP.
7184
7185 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7186
7187         Port FSF 20.7 syntax table improvements.
7188         * syntax.c.
7189         * syntax.h.
7190
7191         Fixups for new syntax table stuff.
7192         * dired.c: Include syntax.c.
7193         (Fdirectory_files): Initialize regex_match_object and
7194         regex_emacs_buffer.
7195         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7196         and Fget_char_property.
7197
7198         Use ported FSF 20.7 syntax table improvements.
7199         * font-lock.c.
7200         * regex.c.
7201         * search.c.
7202         
7203 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7204
7205         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7206         Unixware's enum boolean from sys/types.h.
7207
7208 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7209
7210         Fix support for building with latest Purify.
7211         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7212         (PURIFY_FLAGS): Likewise.
7213
7214 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7215
7216         * fileio.c (lisp_string_set_file_times): New.
7217         * fileio.c (Fcopy_file): Use it.
7218         Fixes bug:
7219         (copy-file filename non-ascii-filename t t)
7220         ==> No such file or directory, non-ascii-filename
7221
7222 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7223
7224         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7225         USHRT_MAX seems clearer than ~0 anyways.
7226
7227 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7228
7229         dumper improvements.  Inspired by Olivier.
7230         * dumper.c (pdump_max_align): New.
7231         * dumper.c (pdump_add_entry): Use pdump_max_align.
7232         * dumper.c (pdump_get_entry_list): Likewise.
7233         * dumper.c (pdump_scan_by_alignment): Likewise.
7234         Don't iterate through unnecessary alignments.
7235         * dumper.c (pdump_file_get): No need to align result of malloc().
7236         * dumper.c (pdump_mallocadr): Remove.  
7237         The result of malloc() is guaranteed to be maximally aligned.
7238         * dumper.c: s/elmt/elt/g;
7239         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7240         * dumper.c (pdump_alert_undump_object): Likewise.
7241         * dumper.c (pdump_align_table): 
7242         Don't support alignments > 64.
7243         Store ALIGNOF's, not shift counts, in table.
7244
7245 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7246
7247         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7248         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7249         * systime.h: Use HAVE_UTIME.
7250         * sysdep.c (struct utimbuf): Remove.
7251         * sysdep.c (set_file_times): Prefer utime() to utimes().
7252         * config.h.in (HAVE_UTIME): New.
7253         * config.h.in (HAVE_UTIME_H): Remove.
7254         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7255
7256 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7257
7258         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7259
7260 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7261
7262         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7263
7264 2001-02-08  Martin Buchholz <martin@xemacs.org>
7265
7266         * XEmacs 21.2.44 "Thalia" is released.
7267
7268 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7269
7270         Fixes crashes in kill-emacs on some systems.
7271         * process-unix.c (unix_kill_child_process):
7272         It's OK for kill() to fail with ESRCH.
7273
7274 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7275
7276         Contortions to make .gdbinit tricks work on most systems.
7277         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7278         * alloc.c (dbg_valmask): Make non-const.
7279         * alloc.c (dbg_typemask): Make non-const.
7280         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7281         * alloc.c (dbg_valbits): Make non-const.
7282         * alloc.c (dbg_gctypebits): Make non-const.
7283         * .gdbinit (decode_object): Make it work with AIX cc.
7284
7285 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7286
7287         * elhash.c (make_general_lisp_hash_table):
7288         Use simpler and more efficient calloc to clear entries.
7289
7290 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7291
7292         * window.c (window_scroll): Work around an AIX C compiler bug.
7293         Fixes 'scroll-up' does nothing problem with xlC.
7294
7295 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7296
7297         * .gdbinit: Remove obsolete comment.
7298
7299 2001-01-31  Mike Alexander  <mta@arbortext.com>
7300
7301         * select.c (Fown_selection_internal): Set owned_p for device
7302         method correctly.
7303
7304 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7305
7306         Port to g++ 2.97.
7307         "not" cannot be used as a macro name as it is an operator in C++
7308         * config.h.in: Stop #defining `not'.
7309         * chartab.c (check_category_char): not ==> not_p
7310         * chartab.h: Likewise.
7311         * regex.c (re_match_2_internal): Likewise.
7312
7313 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7314
7315         * lisp-disunion.h: Fix up comments.
7316
7317 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7318
7319         * keymap.c (define_key_check_and_coerce_keysym):
7320         (syms_of_keymap):
7321         Support mouse-6 and mouse-7 bindings in the obvious way.
7322
7323 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7324
7325         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7326
7327 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7328
7329         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7330         Previous patch missed DEFVAR_INT_MAGIC.
7331         Make sure future DEFVAR_foo use correct types.
7332         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7333         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7334         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7335         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7336         * (DEFVAR_INT): Likewise.
7337         * redisplay.c (vertical_clip): Should be of type Fixnum.
7338         * redisplay.c (horizontal_clip): Likewise.
7339         * lisp.h (dump_add_opaque_int): New.
7340         (dump_add_opaque_fixnum): New.
7341
7342 2001-01-29  Andy Piper  <andy@xemacs.org>
7343
7344         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7345         since they can be eval'ed
7346
7347 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7348
7349         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7350         Oops, XEmacs redefines `class'.  Use `typename' instead.
7351
7352 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7353
7354         * dumper.c: Fix C++ compile errors.
7355
7356 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7357
7358         * tparam.c: Use correct prototypes.
7359
7360 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7361
7362         * sysproc.h: #include util.h for NetBSD's openpty.
7363
7364 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7365
7366         More 64-bit correctness.
7367         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7368         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7369         Fix up comments.
7370         This finally finishes the 64-bit SGI port.
7371         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7372         * symbols.c: Fix up comments and type casts.
7373         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7374         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7375         * symeval.h (Fixnum): New type.
7376         * symeval.h (symbol_value_type): Fix up comment.
7377
7378         * commands.h:
7379         * nt.c:
7380         * emacs.c:
7381         * data.c:
7382         * redisplay.c:
7383         * abbrev.c:
7384         * dired-msw.c:
7385         * event-Xt.c:
7386         * eldap.c:
7387         * window.c:
7388         * sound.c:
7389         * event-stream.c:
7390         * eval.c:
7391         * buffer.c:
7392         * mule-canna.c: A million DEFVAR_INTs here...
7393         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7394         * extents.c:
7395         * cmdloop.c:
7396         * lisp.h:
7397         * select-x.c:
7398         * console-x.h:
7399         * event-msw.c:
7400         * mule-wnnfns.c:
7401         * hpplay.c:
7402         * ralloc.c:
7403         * alloc.c:
7404         * keymap.c:
7405         * profile.c:
7406         s/int/Fixnum/g in DEFVAR_INT declarations.
7407
7408 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7409
7410         Port pdump to SGI alignment-sensitive environment.
7411         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7412         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7413         properly aligned.
7414         Define and use aligned reading and writing macros.
7415         Use buffered stdio instead of posix i/o for faster dumping.
7416         Eliminate kludgy 256 byte space for header.
7417         Read and write from dump file using structs for alignment safety.
7418         * dumper.c (pdump_align_stream): New.
7419         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7420         * dumper.c (PDUMP_READ_ALIGNED): New.
7421         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7422         * dumper.c (pdump_static_Lisp_Object): New struct.
7423         * dumper.c (pdump_static_pointer): New struct.
7424         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7425         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7426         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7427         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7428
7429         * dumper.c (pdump_backtrace):
7430         * dumper.c (pdump_get_indirect_count):
7431         * dumper.c (pdump_register_object):
7432         * dumper.c (pdump_register_struct):
7433         * dumper.c (pdump_reloc_one):
7434         * dumper.c (pdump_scan_by_alignment):
7435         * dumper.c (pdump_dump_from_root_struct_ptrs):
7436         * dumper.c (pdump_dump_opaques):
7437         * dumper.c (pdump_dump_rtables):
7438         * dumper.c (pdump_dump_from_root_objects):
7439         * dumper.c (pdump):
7440         * dumper.c (pdump_load_finish):
7441         Use aligned reading and writing.
7442
7443         * dumper.c (pdump_free): Make static.
7444         * dumper.c (pdump_hFile): Likewise.
7445         * dumper.c (pdump_hMap): Likewise.
7446
7447 2001-01-26  Martin Buchholz <martin@xemacs.org>
7448
7449         * XEmacs 21.2.43 "Terspichore" is released.
7450
7451 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7452
7453         Type fiddling for window_config.saved_windows_count
7454         * window.c (struct window_config): 
7455         Make saved_windows_count member unsigned.
7456         * window.c (sizeof_window_config_for_n_windows): 
7457         Make parameter unsigned.
7458         * window.c (mark_window_config):
7459         * window.c (window_config_equal):
7460         * window.c (free_window_configuration):
7461         * window.c (Fset_window_configuration):
7462         * window.c (count_windows):
7463         * window.c (Fcurrent_window_configuration):
7464         * window.c (reinit_vars_of_window):
7465         Update all callers and users.
7466
7467 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7468
7469         Alignment correctness for flexible arrays.
7470         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7471         Make alignment-correct. Add interesting comments.
7472         * alloc.c (size_vector):
7473         * alloc.c (make_vector_internal):
7474         * alloc.c (make_bit_vector_internal):
7475         * alloc.c (sweep_bit_vectors_1):
7476         * fns.c (size_bit_vector):
7477         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7478         * window.c (sizeof_window_config_for_n_windows): 
7479         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7480
7481 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7482
7483         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7484
7485 2001-01-23  Andy Piper  <andy@xemacs.org>
7486
7487         * select.c (Fown_selection_internal): pass owned_p
7488
7489         * select-msw.c (mswindows_own_selection): New Signature.
7490
7491         * console.h (struct console_methods): add owned_p to
7492         _own_selection.
7493
7494         * select-x.c (x_own_selection): pass owned_p
7495         (hack_motif_clipboard_selection): use owned_p
7496         (vars_of_select_x): new variable -
7497         x_selection_strict_motif_ownership.
7498
7499 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7500
7501         * specifier.h (specifier_data_offset): Remove pointless parens.
7502         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7503
7504 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7505
7506         Make Lisp_Object sizeof methods be alignment-correct.
7507         pdump must restore objects to the same alignment as the C compiler
7508         assumes.  It really matters on SGIs.
7509         * lstream.c (aligned_sizeof_lstream): New.
7510         (sizeof_lstream): Use aligned_sizeof_lstream.
7511         (Lstream_new): Likewise.
7512         * opaque.c (aligned_sizeof_opaque): New.
7513         (sizeof_opaque): Use aligned_sizeof_opaque.
7514         (make_opaque): Likewise.
7515         * specifier.c (aligned_sizeof_specifier): New.
7516         (sizeof_specifier): Use aligned_sizeof_specifier.
7517         (make_specifier_internal): Likewise.
7518
7519 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7520
7521         * lstream.h (struct lstream): Use max_align_t for trailing data.
7522         * specifier.h (struct Lisp_Specifier): Likewise.
7523
7524 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7525
7526         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7527         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7528         (CCL_SUSPEND): Likewise.
7529         (CCL_INVALID_CMD): Likewise.
7530         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7531         (ccl_driver): Likewise.
7532         (CCL_WRITE_CHAR): Macro hygiene.
7533         (CCL_WRITE_STRING): Macro hygiene.
7534
7535 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7536
7537         Port "portable" dumper to SunOS 4 and HP-UX.
7538         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7539         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7540         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7541
7542 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7543
7544         * lisp.h (ALIGNOF): A better definition for C++.
7545
7546 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7547
7548         Macro hygiene.
7549         Fix printf warnings: int format, long int arg.
7550         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7551         (PUSH_FAILURE_POINT): Use correct printf formats.
7552         (POP_FAILURE_POINT): Use correct printf formats.  
7553         Use do {...} while (0)
7554
7555 2001-01-20  Martin Buchholz <martin@xemacs.org>
7556
7557         * XEmacs 21.2.42 "Poseidon" is released.
7558
7559 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7560
7561         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7562
7563 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7564
7565         De-kludgify FIXED_TYPE free list frobbing.
7566         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7567         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7568         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7569         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7570         * alloc.c (LRECORD_FREE_P): New.
7571         * alloc.c (MARK_LRECORD_AS_FREE): New.
7572         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7573         * alloc.c (STRUCT_FREE_P): Deleted.
7574         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7575         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7576         * alloc.c (STRING_CHARS_FREE_P): New.
7577         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7578         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7579         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7580         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7581         * alloc.c (resize_string): Use new definitions.
7582         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7583         * alloc.c (verify_string_chars_integrity): Use new definitions.
7584         * alloc.c (compact_string_chars): Use new definitions.
7585         * alloc.c: Update monster comments.
7586         * lrecord.h (lrecord_type): Add some new lrecord types for
7587         alloc.c's use.
7588
7589 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7590
7591         Improve alignment hackery.
7592         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7593         (max_align_t): Moved from opaque.h - general purpose.
7594         (ALIGN_PTR): Use size_t, not long.
7595         * opaque.h (max_align_t): Move to lisp.h.
7596
7597 2001-01-18  Norbert Koch  <nk@LF.net>
7598
7599         * gui.h: Fix and add prototypes to fix build problems.
7600
7601 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7602
7603         temacs is going away, so `dump-temacs' is now a bad name.
7604         * .dbxrc (dump-temacs): Rename to `dmp'.
7605         * .gdbinit (dump-temacs): Rename to `dmp'.
7606
7607 2001-01-17  Andy Piper  <andy@xemacs.org>
7608
7609         * glyphs.c (print_image_instance): comment to make martin happy.
7610
7611         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7612         change.
7613
7614         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7615         activation.
7616         (mswindows_tab_control_redisplay): warning suppression.
7617
7618         * glyphs-widget.c (widget_update): re-write to cope with updated
7619         items.
7620         (widget_instantiate): use new gui_item functions.
7621         (tab_control_update): deleted.
7622         (progress_gauge_update): deleted.
7623         (image_instantiator_progress_guage): take out update reference.
7624         (image_instantiator_tree_view): ditto.
7625         (image_instantiator_tab_control): ditto.
7626
7627         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7628         Right the new way.
7629         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7630         return whether anything was changed.
7631         (update_gui_item_keywords): as it sounds.
7632
7633         * gui.h: declare widget_gui_parse_item_keywords.
7634
7635         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7636         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7637
7638 2001-01-17  Martin Buchholz <martin@xemacs.org>
7639
7640         * XEmacs 21.2.41 "Polyhymnia" is released.
7641
7642 2001-01-16  Didier Verna  <didier@xemacs.org>
7643
7644         * glyphs.c (image_instantiate): don't use fallbacks when
7645         instantiating a face's background pixmap by inheritance.
7646
7647 2001-01-14  Mike Sperber <mike@xemacs.org>
7648
7649         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7650         Conditionalize accordingly.
7651
7652 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7653
7654         * dumper.c (pdump_file_get): Fix a compiler warning.
7655
7656 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7657
7658         Make Purify happy when pdumping.
7659         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7660         iniitalizing all bits of new lisp object memory.
7661         * symbols.c (Fmake_local_variable): Likewise.
7662         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7663         * symbols.c (Fdefvaralias): Likewise.
7664         * mule-charset.c (vars_of_mule_charset): Likewise.
7665
7666 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7667         Add the `-nd' flag when running pre-dump operations under the debugger.
7668         * .dbxrc (run-temacs): Add `-nd'.
7669         * .dbxrc (update-elc): Likewise.
7670         * .dbxrc (dump-temacs): Likewise.
7671         * .gdbinit (run-temacs): Likewise.
7672         * .gdbinit (check-temacs): Likewise.
7673         * .gdbinit (update-elc): Likewise.
7674         * .gdbinit (dump-temacs): Likewise.
7675
7676 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7677
7678         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7679         export OBJECT_MODE=64
7680         configure --pdump --use-union-type=no
7681         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7682         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7683
7684         * miscplay.c (sndcnv8U_2mono):
7685         Avoid two uses of `++' in the same expression.
7686         Suppresses a GCC warning.
7687
7688 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7689
7690         Make sure future compilers don't miscompile alloc.c.
7691         * alloc.c:
7692         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7693         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7694
7695 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7696
7697         * dumper.c: A little post-pdump-rename comment fixup.
7698
7699 2001-01-09  Jerry James  <james@eecs.ku.edu>
7700
7701         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7702
7703 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7704
7705         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7706         script:
7707         #!/bin/sh
7708         replace_symbol () {
7709           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7710         }
7711
7712         replace_symbol pdump_wire_lists pdump_weak_object_chains
7713         replace_symbol pdump_wire_list dump_add_weak_object_chain
7714
7715         replace_symbol pdump_wires pdump_root_objects
7716         replace_symbol pdump_wire dump_add_root_object
7717
7718         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7719         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7720
7721         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7722         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7723         replace_symbol dumpstructinfo pdump_root_struct_ptr
7724         replace_symbol dumpstruct dump_add_root_struct_ptr
7725
7726         replace_symbol dumpopaque dump_add_opaque
7727         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7728         replace_symbol dumpopaqueinfos pdump_opaques
7729         replace_symbol dumpopaqueinfo pdump_opaque
7730
7731         replace_symbol nb_structdump nb_root_struct_ptrs
7732         replace_symbol nb_opaquedump nb_opaques
7733
7734         replace_symbol align_table pdump_align_table
7735         replace_symbol dump_header pdump_header
7736
7737         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7738         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7739
7740
7741 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7742
7743         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7744         optimizing bytecount_to_charcount().
7745
7746 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7747
7748         * config.h.in:
7749         (HAVE_DLFCN_H): Removed.
7750         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7751
7752 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7753
7754         Portable dumper maintainability improvements.
7755         * alloc.c (staticpro):
7756         * alloc.c (staticpro_nodump):
7757         * alloc.c (garbage_collect_1):
7758         * alloc.c (reinit_alloc_once_early):
7759         * alloc.c (init_alloc_once_early):
7760         * alloc.c: Move dumper functions to alloc.c.
7761         * dumper.c (pdump_backtrace):
7762         * dumper.c (pdump_dump_structs):
7763         * dumper.c (pdump_dump_opaques):
7764         * dumper.c (pdump_dump_rtables):
7765         * dumper.c (pdump_dump_wired):
7766         * dumper.c (pdump):
7767         * dumper.c (pdump_load_check):
7768         * dumper.c (pdump_load_finish):
7769         * dumper.c (pdump_file_unmap):
7770         * dumper.c (pdump_file_get):
7771         * dumper.c (pdump_resource_free):
7772         * dumper.c (pdump_resource_get):
7773         * dumper.c (pdump_file_free):
7774         * dumper.c (pdump_file_try):
7775         * dumper.c (pdump_load):
7776         Remove fixed size limits on staticpro(), staticpro_nodump(),
7777         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7778         Remove custom code for dumping lrecord_implementations_table - use
7779         dumpopaque instead.
7780         Remove (most of the) custom code for dumping staticpros - dump it
7781         like any other dynarr.
7782
7783         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7784         * dumper.c: Moved functions from alloc.c.
7785         * alloc.c (dumpstruct): Moved to dumper.c.
7786         * alloc.c (dumpopaque): Likewise.
7787         * alloc.c (pdump_wire): Likewise.
7788         * alloc.c (pdump_wire_list): Likewise.
7789
7790         * lisp.h (Dynarr_sizeof): New.
7791         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7792         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7793         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7794
7795         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7796         * lisp.h (dumpopaque): ditto.
7797         * lisp.h (pdump_wire): ditto.
7798         * lisp.h (pdump_wire_list): ditto.
7799
7800 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7801
7802         * make-src-depend (PrintPatternDeps):
7803         Use `sort' to make output independent of perl version.
7804
7805 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7806
7807         Port to Netbsd 1.5.
7808         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7809         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7810
7811 2001-01-03  Didier Verna  <didier@xemacs.org>
7812
7813         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7814         that `focus_frame' is alive before thinking of calling
7815         `redisplay_redraw_cursor' on it.
7816
7817 2001-01-08  Martin Buchholz <martin@xemacs.org>
7818
7819         * XEmacs 21.2.40 is released.
7820
7821 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7822
7823         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7824
7825 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7826
7827         * alloc.c (dbg_valmask): Make const.
7828         * alloc.c (dbg_typemask): Make const.
7829         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7830         * alloc.c (dbg_valbits): Make const.
7831         * alloc.c (dbg_gctypebits): Make const.
7832
7833 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7834
7835         * redisplay-x.c (x_bevel_area):
7836         redisplay.h (struct rune):
7837         Typo fixes in comments.
7838
7839 2001-01-05  Andy Piper  <andy@xemacs.org>
7840
7841         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7842         adjustment.
7843
7844         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7845
7846 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7847
7848         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7849
7850         * mule-ccl.c (stack_idx_of_map_multiple):
7851         Non const global data must not be initialized!
7852         Found by MIYASHITA Hisashi.
7853
7854 2001-01-02  Andy Piper  <andy@xemacs.org>
7855
7856         * frame.c (change_frame_size): make sure frame size is always
7857         marked as changed.
7858
7859         * glyphs.c (image_instance_layout): minor code reuse.
7860
7861         * window.c (Fcurrent_window_configuration): revert previous
7862         change.
7863
7864 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7865
7866         * glyphs.h:
7867         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7868
7869 2000-12-31  Andy Piper  <andy@xemacs.org>
7870
7871         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7872         when widget gets unmapped.
7873
7874         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7875         function. Make sure widgets losing focus don't just drop it.
7876         (handle_focus_event_1): record the widget with focus.
7877
7878 2000-12-31  Andy Piper  <andy@xemacs.org>
7879
7880         * window.c (allocate_window): use
7881         make_image_instance_cache_hash_table.
7882         (make_dummy_parent): ditto.
7883         (Fset_window_configuration): ditto.
7884
7885         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7886
7887         * glyphs.c (process_image_string_instantiator): use
7888         INSTANTIATOR_TYPE.
7889         (get_image_instantiator_governing_domain): ditto.
7890         (normalize_image_instantiator): ditto.
7891         (instantiate_image_instantiator): ditto.
7892         (make_image_instance_1): ditto.
7893         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7894         (instantiator_eq_equal): new function for use with instance hash
7895         tables.
7896         (instantiator_eq_hash): ditto.
7897         (make_image_instance_cache_hash_table): create a suitable hash
7898         table for storing image instances.
7899
7900         * elhash.h (hash_table_weakness): new internal weakness type
7901         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7902         declare new functions.
7903
7904         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7905         another weakness type for glyphs.
7906         (make_standard_lisp_hash_table): new function split out from
7907         make_general_lisp_hash_table.
7908         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7909         (hash_table_instantiate): ditto.
7910         (Fmake_hash_table): ditto.
7911
7912 2000-12-31  Martin Buchholz <martin@xemacs.org>
7913
7914         * XEmacs 21.2.39 is released.
7915
7916 2000-12-29  Andy Piper  <andy@xemacs.org>
7917
7918         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7919
7920         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7921         the frame has changed so that we pick up geometry changes such as
7922         menubar visibility.
7923
7924 2000-12-28  Andy Piper  <andy@xemacs.org>
7925
7926         * lastfile.c (my_ebss): make a char array so we can pad the
7927         bss. Fixes cygwin unexec.
7928
7929         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7930
7931 2000-12-26  Andy Piper  <andy@xemacs.org>
7932
7933         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7934         comments and try and be more precise about a non-/SIGIO world.
7935         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7936         SIGIO.
7937
7938         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7939         we don't normalize to zero width or height.
7940
7941 2000-12-24  Andy Piper  <andy@xemacs.org>
7942
7943         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7944
7945 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7946
7947         * s/sco5.h: SCO 5 has pty support.
7948
7949 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7950
7951         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7952         input-method-xlib.c contains whole contents of input-method-xfs.c,
7953         so we can use input-method-xlib.c's code for USE_XFONTSET
7954         using #ifdefs.
7955         * input-method-xfs.c: removed.
7956
7957 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7958
7959         * file-coding.h (enum coding_category_type): reorder enumerators to
7960         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7961         (now one greater than largest real coding_category_type enumerator).
7962         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7963         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7964         Fcoding_category_list, Fset_coding_priority_list,
7965         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7966         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7967
7968 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7969
7970         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7971         * redisplay-output.c (redisplay_output_window): Clear top of window
7972         when face is changed.
7973         * redisplay-x.c (x_redraw_exposed_window): Call
7974         redisplay_clear_top_of_window.
7975         * redisplay.h: Publish redisplay_clear_top_of_window.
7976
7977 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7978
7979         * buffer.c (Fkill_buffer): Map over all devices.
7980         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7981         (list_windows): New function.
7982         (list_all_windows): Ditto.
7983         (Freplace_buffer_in_windows): Use them.
7984
7985 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7986
7987         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7988         (Fopen_database): Use `db_create' instead of `db_open'.
7989         (syms_of_database): Initialize Qqueue.
7990
7991 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7992
7993         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7994         buffer_local_face_property.
7995         * buffer.h (struct buffer): New member buffer_local_face_property.
7996         * window.c (Fset_window_buffer):  Mark window's face as changed
7997         when buffer has buffer local face.
7998         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7999         * objects.c (color_after_change): Set buffer_local_face_property
8000         when locale of face specifier is buffer.
8001         * objects.c (font_after_change): Ditto.
8002         * objects.c (face_boolean_after_change): Ditto.
8003         * glyphs.c (image_after_change): Ditto.
8004
8005 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8006
8007         * nt.c (mswindows_fstat): Report file permissions, volume serial
8008         number, etc. Code adapted from FSF Emacs 20.7.
8009
8010 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8011
8012         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8013         of stat when we don't have symbolic links, to make sure
8014         mswindows_stat is called on mswindows.
8015
8016 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8017
8018         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8019
8020 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8021
8022         * doprnt.c (emacs_doprnt_1): More printing fixes.
8023         Make printing of numbers compatible with libc and FSF Emacs.
8024         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8025         Use the system printf to do most of the hard work of formatting,
8026         instead of doprnt_1().
8027         Calculate memory to allocate for format string.
8028         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8029         (doprnt_1): Cleaner code and documentation.
8030
8031 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8032
8033         * Makefile.in.in: Use the loop variable to install headers.
8034
8035 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8036
8037         * window.c (Fsplit_window): Don't invalidate face cache.
8038
8039 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8040
8041         * minibuf.c (Fall_completions): Undo the previous change
8042         which removed checking elements start with space.
8043
8044 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8045
8046         * mule-canna.c: Didier suppression.
8047
8048 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8049
8050         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8051         (warning suppression).  Add English comment translations.
8052
8053 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8054
8055         * unexelfsgi.c (unexec): Better test for mmap failure.
8056
8057 2000-12-05  Martin Buchholz <martin@xemacs.org>
8058
8059         * XEmacs 21.2.38 is released.
8060
8061 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8062
8063         * redisplay.c (bar-cursor): Make a user variable.
8064
8065         * symsinit.h: Add init_postgresql_from_environment.
8066
8067 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8068
8069         * regex.c: Convert to clean C.
8070
8071 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8072
8073         * realpath.c:
8074         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8075         initialization.
8076         (sys_readlink): renamed to system_readlink to avoid conflict with
8077         the other sys_readlink.
8078
8079 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8080
8081         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8082
8083 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8084
8085         * postgresql.c (init_postgresql_from_environment): new function.
8086         (vars_of_postgresql): Move code initializing Lisp variables out and
8087         into init_postgresql_from_environment.
8088         emacs.c (main_1): Call init_postgresql_from_environment if and only
8089         if running a dumped XEmacs.
8090
8091 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8092
8093         * buffer.c: Make find-file-compare-truenames default to true on
8094         windows.
8095
8096         * realpath.c (win32_abs_start):
8097         (cygwin_readlink):
8098         (win32_readlink): New functions.
8099         (xrealpath): Return really real filenames on windows.
8100
8101         * fileio.c (Ffile_truename): Make file-truename work on windows.
8102
8103 2000-11-29  Didier Verna  <didier@xemacs.org>
8104
8105         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8106         * faces.c (update_face_cachel_data): use it.
8107         * faces.c (add_face_cachel): use it. Complete background pixmap
8108         frobbing in face cache if `update_face_cachel_data' has not done so.
8109
8110 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8111
8112         * search.c (string_match_1): Don't set last_thing_searched
8113         when search failed.
8114
8115 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8116
8117         * buffer.c: Include casetab.h
8118         (common_init_complex_vars_of_buffer): Use new case-table object.
8119         * buffer.h: Include casetab.h
8120         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8121         (DOWNCASE_TABLE_OF): Ditto.
8122         * bufslots.h: Remove char-tables and add case-table.
8123         * casetab.c: Include casetab.h
8124         (CASE_TABLE_P): Removed.
8125         (mark_case_table): New function.
8126         (allocate_case_table): New function.
8127         (Fcase_table_p): Use new case-table.
8128         (case_table_char): New function.
8129         (Fget_case_table): Ditto.
8130         (Fput_case_table): Ditto.
8131         (Fput_case_table_pair): Ditto.
8132         (Fcopy_case_table): Ditto.
8133         (Fcurrent_case_table): Return case-table.
8134         (Fstandard_case_table): Return case-table.
8135         (Fset_case_table): Fix doc-string.
8136         (set_case_table): Use case-table
8137         (syms_of_casetab): DEFSUBR new functions.
8138         (complex_vars_of_casetab): Set up standard case-table.
8139         * casetab.h: New file.
8140         * editfns.c: Include casetab.h
8141         (Fcompare_buffer_substrings): Use case-table.
8142         * inline.c: Include casetab.h
8143         * lisp.h: Remove bogus extern.
8144         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8145         * search.c: Include casetab.h
8146         (TRANSLATE_ASCII): Removed.
8147         (TRANSLATE): Unconditionally translate character.
8148         (looking_at_1): Use case-table.
8149         (string_match_1): Ditto.
8150         (fast_string_match): Ditto.
8151         (search_command): Ditto.
8152         (search_buffer): Separate boyer_moore.  Check whether
8153         boyer_moore is possible.
8154         (simple_search): New function.
8155         (boyer_moore): Separated from search_buffer. Translate char.
8156
8157 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8158
8159         * regex.c (RE_TR_ASCII): Removed.
8160         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8161         (PATFETCH): Call PATFETCH_RAW.
8162         (PATFETCH_RAW): Fetch Emchar.
8163         (PATUNFETCH): Decrement charptr.
8164         (GET_BUFFER_SPACE): Rename b to buf_end.
8165         (BUF_PUSH): Ditto.
8166         (BUF_PUSH_2): Ditto.
8167         (BUF_PUSH_3): Ditto.
8168         (EXTEND_BUFFER): Ditto.
8169         (SET_LIST_BIT): Ditto.
8170         (regex_compile): Ditto.  Translate non ASCII char.
8171         (compile_range): Ditto.
8172         (re_search_2): Ditto.
8173         (re_match_2_internal): Compare Emchar.
8174         (bcmp_translate): Ditto.
8175
8176 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8177
8178         * lisp.h (basic char/int typedefs):  comment improvement.
8179
8180 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8181
8182         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8183         unstomp inhibit_site_lisp.  Improve comments.
8184
8185 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8186
8187         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8188
8189 2000-11-28  Andy Piper  <andy@xemacs.org>
8190
8191         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8192         clipped display for windows in the gutter also.
8193         (redisplay_display_boxes_in_window_p): change semantics of return
8194         codes to be more intuitive.
8195
8196         * gutter.h: declare display_boxes_in_gutter_p.
8197
8198         * gutter.c (display_boxes_in_gutter_p): new function for
8199         redisplay.
8200
8201 2000-11-22  Andy Piper  <andy@xemacs.org>
8202
8203         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8204         autodetect domain.
8205
8206 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8207
8208         * callproc.c (Fold_call_process_internal):
8209         * gpm.c (Freceive_gpm_event):
8210         (tty_get_foreign_selection): Might be just warning supression.
8211         * fileio.c (Fwrite_region_internal):
8212         (Fset_visited_file_modtime):
8213         * keymap.c (event_matches_key_specifier_p):
8214         Initialize GCPROed variable.
8215
8216         * menubar-x.c (command_builder_find_menu_accelerator):
8217         Initialize before use.
8218
8219 2000-11-23  Andy Piper  <andy@xemacs.org>
8220
8221         * unexcw.c (unexec): make the resulting executable executable.
8222
8223 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8224
8225         * doc.c (get_doc_string):
8226         Use size_t, not int, for result of XSTRING_LENGTH.
8227
8228         * cmds.c (Fdelete_char):
8229         * cmds.c (Fpoint_at_eol):
8230         * cmds.c (Fself_insert_command):
8231         Use EMACS_INT, not int, for result of XINT.
8232         Someday, someone will want to insert more than 2**31 identical characters.
8233
8234         * cmds.c (Fdelete_char):
8235         * cmds.c (Fdelete_backward_char):
8236         * syntax.c (Fforward_word):
8237         * syntax.c (Fforward_comment):
8238         Make COUNT argument optional, for consistency with forward-char et al.
8239
8240 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8241
8242         * lisp.h:
8243         * print.c (long_to_string):
8244         Return a useful value: the pointer at end of data written.
8245
8246         * doprnt.c:
8247         Use `static const char * const' for constant strings.
8248         (union printf_arg): Delete `i', `ui' members.
8249         (get_doprnt_args):
8250         (emacs_doprnt_1):
8251         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8252         Do all printf-ing via the `l' specifier.
8253         Use EMACS_INT instead of int.
8254         Optimize.
8255
8256 2000-11-20  Didier Verna  <didier@xemacs.org>
8257
8258         * faces.c (update_face_cachel_data): don't frob the background
8259         pixmap when the window is being created. The face is needed but
8260         does not exist yet.
8261
8262 2000-11-20  Andy Piper  <andy@xemacs.org>
8263
8264         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8265         messing with a debug environment.
8266
8267 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8268
8269         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8270
8271 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8272
8273         * casetab.c (Fcase_table_p): Fix compile error and crash.
8274
8275 2000-11-18  Philip Aston  <philipa@mail.com>
8276
8277         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8278
8279 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8280
8281         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8282         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8283
8284 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8285
8286         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8287         * unexelf.c: Use HAVE_ELF_H.
8288         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8289         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8290         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8291         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8292         for testing.
8293         So this is an unexelfsgi.c from a different line of development.
8294
8295 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8296
8297         * regex.c (RE_TR_ASCII): New function.
8298         (RE_TRANSLATE): Call it.
8299
8300 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8301
8302         * buffer.h (TRT_TABLE_OF): Remove assert.
8303         (IN_TRT_TABLE_DOMAIN): Removed.
8304
8305 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8306
8307         * free-hook.c (log_gcpro):
8308         (show_gcprohist): Add support for GCPRO5.
8309
8310 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8311
8312         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8313
8314 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8315
8316         * symeval.h: Declare flush_all_buffer_local_cache.
8317
8318         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8319         (flush_buffer_local_cache): Added.
8320         (flush_all_buffer_local_cache): Added.
8321
8322         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8323
8324         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8325         (pdump_dump_data): Ditto.
8326         (pdump_reloc_one): Ditto.
8327         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8328         before dumping.
8329
8330
8331 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8332
8333         * buffer.c: Remove if 0'ed entry.
8334         * buffer.h: Rewrite TRT to use char-table.
8335         * bufslots.h: Remove mirror tables.
8336         * casetab.c: Remove mirror tables.
8337         (CASE_TABLE_P): New macro.
8338         (Fcase_table_p): Element of a case table is string or char-table.
8339         (make_mirror_trt_table): Removed.
8340         (set_case_table): Setup char-table from strings for backward
8341         compatibility.
8342         * dired.c (Fdirectory_files):
8343         * dired-msw.c: (mswindows_get_files):
8344         * lisp.h: Change prototype of re_pattern_buffer.
8345         * regex.c: (RE_TRANSLATE): New macro.
8346         (TRANSLATE_P): Ditto.
8347         Change translate to type RE_TRANSLATE_TYPE.
8348         * regex.h: Define RE_TRANSLATE_TYPE
8349         * search.c (TRANSLATE): New macro.
8350         (TRANSLATE_ASCII): New macro.
8351         Translate table is changed to Lisp_Object.
8352         (signal_failure): Inhibit return.
8353
8354 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8355
8356         * device-msw.c:
8357         * eldap.c:
8358         * event-Xt.c:
8359         * event-stream.c:
8360         * print.c:
8361         Do UNGCPRO before return.
8362
8363 2000-11-14  Martin Buchholz <martin@xemacs.org>
8364
8365         * XEmacs 21.2.37 is released.
8366
8367 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8368
8369         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8370         Add comments about discarded return value.
8371
8372 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8373
8374         * callint.c:
8375         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8376
8377 2000-10-27  Andy Piper  <andy@xemacs.org>
8378
8379         * gutter.c (Fset_default_gutter_position): default left and right
8380         gutters to visible.
8381         (calculate_gutter_size): calculate resonable heuristic for left
8382         and right gutter sizes.
8383         (specifier_vars_of_gutter): change left and right gutter sizes to
8384         autodetect.
8385         (calculate_gutter_size_from_display_lines): new function.
8386         (output_gutter): check for resizing on left and right gutters.
8387         (clear_gutter): don't special case top and left gutters.
8388         (specifier_vars_of_gutter): use new signature for
8389         set_specifier_caching.
8390
8391         * glyphs-x.c (x_redisplay_widget): spelling fix.
8392         * glyphs.c (specifier_vars_of_glyphs):
8393         * menubar.c (specifier_vars_of_menubar):
8394         * redisplay.c (specifier_vars_of_redisplay):
8395         * toolbar.c (specifier_vars_of_toolbar):
8396         * window.c (specifier_vars_of_window):
8397         * scrollbar.c (specifier_vars_of_scrollbar):
8398         (complex_vars_of_scrollbar): use new signature for
8399         set_specifier_caching.
8400
8401         * specifier.c (set_specifier_caching): include recompute flag.
8402         (recompute_one_cached_specifier_in_window): always recompute if
8403         flag set.
8404         (recompute_one_cached_specifier_in_frame): ditto.
8405
8406         * specifier.h (struct specifier_caching): add recompute flag.
8407
8408 2000-10-24  Andy Piper  <andy@xemacs.org>
8409
8410         * unexcw.c (copy_executable_and_dump_data_section): add new
8411         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8412         5.0 happy.
8413
8414 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8415
8416         * console-x.h (x_device): New member modifier_release_time.
8417         * event-Xt.c (x_handle_sticky_modifiers):
8418         Bound interval modifier keys are sticky.
8419         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8420         * events.h: extern it.
8421
8422 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8423
8424         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8425
8426 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8427
8428         * event-stream.c (execute_command_event): Preserve current_events
8429         and the like when event is misc-user-event.
8430         Inhibit quit during the call to maybe_echo_keys.
8431
8432 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8433
8434         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8435         symlink when buffer is killed.
8436         (inhibit_clash_detection): New variable.
8437
8438 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8439
8440         * console.c (Fset_input_method): Trigger redisplay on tty.
8441
8442 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8443
8444         * process.c (Fprocess_status): Revert to previous behavior:
8445         (process-status "nosuchprocess") ==> nil
8446
8447 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8448
8449         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8450         Work around another GCC 2.95.2 optimizer bug.
8451
8452 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8453
8454         * process.c (Fget_process): Use LIST_LOOP_2.
8455         (kill_buffer_processes): Use LIST_LOOP_2.
8456
8457         * minibuf.c (Fall_completions):
8458         Delete old non-functional code for FSF fourth argument.
8459
8460         * frame.c (frame_matches_frame_spec):
8461         Renamed from `frame_matches_frametype'.  Update all callers.
8462         (device_matches_device_spec):
8463         Renamed from 'device_matches_console_spec'.  Update all callers.
8464
8465         * doc.c (Fsubstitute_command_keys):
8466         Remove buffer overflow crash.  Small code cleanups.
8467
8468         * casetab.c (check_case_table): Simpler code.
8469
8470         * window.c (Freplace_buffer_in_windows):
8471         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8472         (and similar implementation) as Fdelete_windows_on.
8473         Update all callers.
8474
8475         * alloc.c (Fmake_list):
8476         * alloc.c (make_vector):
8477         * alloc.c (Fmake_vector):
8478         * alloc.c (make_bit_vector):
8479         * alloc.c (Fmake_bit_vector):
8480         * alloc.c (Fbit_vector):
8481         * alloc.c (Fmake_string):
8482         * alloc.c (Fpurecopy):
8483         * alloc.c (Fmemory_limit):
8484         * buffer.c:
8485         * buffer.c (Fget_buffer):
8486         * buffer.c (Fkill_buffer):
8487         * buffer.c (complex_vars_of_buffer):
8488         * bytecode.c (Fcompiled_function_stack_depth):
8489         * callint.c (Fprefix_numeric_value):
8490         * event-stream.c:
8491         * event-stream.c (Fread_key_sequence):
8492         * casetab.c:
8493         * casetab.c (Fcase_table_p):
8494         * casetab.c (check_case_table):
8495         * casetab.c (Fset_case_table):
8496         * casetab.c (Fset_standard_case_table):
8497         * chartab.c:
8498         * chartab.c (Fchar_table_type):
8499         * chartab.c (Freset_char_table):
8500         * chartab.c (Fget_char_table):
8501         * chartab.c (Fget_range_char_table):
8502         * chartab.c (Fput_char_table):
8503         * chartab.c (Fmap_char_table):
8504         * chartab.c (Fcategory_table_p):
8505         * chartab.c (Fcheck_category_at):
8506         * chartab.c (Fchar_in_category_p):
8507         * chartab.c (Fcategory_table):
8508         * chartab.c (Fcopy_category_table):
8509         * chartab.c (Fset_category_table):
8510         * chartab.c (Fcategory_designator_p):
8511         * chartab.c (Fcategory_table_value_p):
8512         * cmds.c (Fdelete_char):
8513         * cmds.c (Fdelete_backward_char):
8514         * cmds.c (Fself_insert_command):
8515         * cmds.c (Fself_insert_internal):
8516         * console.c (Fvalid_console_type_p):
8517         * console.c (Fcdfw_console):
8518         * console.c (Fconsole_type):
8519         * console.c (Fconsole_name):
8520         * console.c (Fconsole_device_list):
8521         * console.c (Fconsole_on_window_system_p):
8522         * data.c:
8523         * data.c (Feq):
8524         * data.c (Fold_eq):
8525         * data.c (Fsubr_interactive):
8526         * data.c (Fchar_to_int):
8527         * data.c (Fint_to_char):
8528         * data.c (Fsetcar):
8529         * data.c (Fsetcdr):
8530         * data.c (Fnumber_to_string):
8531         * data.c (Fstring_to_number):
8532         * data.c (Frem):
8533         * database.c (mark_database):
8534         * database.c (finalize_database):
8535         * database.c (Fdatabase_live_p):
8536         * database.c (Fdatabasep):
8537         * device-x.c (Fx_get_resource):
8538         * device.c (Fdfw_device):
8539         * dired.c:
8540         * dired.c (Ffile_name_completion):
8541         * dired.c (Ffile_name_all_completions):
8542         * dired.c (Fuser_name_completion):
8543         * dired.c (Fuser_name_completion_1):
8544         * dired.c (Fuser_name_all_completions):
8545         * doc.c (Fdocumentation):
8546         * doc.c (Fdocumentation_property):
8547         * doc.c (Fsubstitute_command_keys):
8548         * editfns.c:
8549         * editfns.c (Fchar_to_string):
8550         * editfns.c (Fstring_to_char):
8551         * editfns.c (Ftemp_directory):
8552         * editfns.c (Finsert_char):
8553         * editfns.c (Fbuffer_substring_no_properties):
8554         * editfns.c (Fnarrow_to_region):
8555         * editfns.c (Fchar_equal):
8556         * editfns.c (Fchar_Equal):
8557         * editfns.c (Ftranspose_regions):
8558         * emacs.c (Fdump_emacs):
8559         * eval.c (Fthrow):
8560         * eval.c (Fcommand_execute):
8561         * eval.c (Fautoload):
8562         * eval.c (Fbacktrace):
8563         * eval.c (Fbacktrace_frame):
8564         * events.c:
8565         * events.c (Fcopy_event):
8566         * events.c (Fcharacter_to_event):
8567         * events.c (Fevent_button):
8568         * events.c (Fevent_process):
8569         * extents.c:
8570         * extents.c (Fnext_extent_change):
8571         * extents.c (Fextent_property):
8572         * faces.c (Ffacep):
8573         * faces.c (Fmake_face):
8574         * file-coding.c:
8575         * file-coding.c (Fencode_shift_jis_char):
8576         * file-coding.c (Fencode_big5_char):
8577         * fileio.c (Ffile_name_directory):
8578         * fileio.c (Ffile_name_nondirectory):
8579         * fileio.c (Ffile_name_as_directory):
8580         * fileio.c (Fdirectory_file_name):
8581         * fileio.c (Ffile_truename):
8582         * fileio.c (Fsubstitute_in_file_name):
8583         * fileio.c (Ffile_modes):
8584         * fileio.c (Fset_file_modes):
8585         * fileio.c (Fset_default_file_modes):
8586         * fileio.c (Fverify_visited_file_modtime):
8587         * floatfns.c (Facos):
8588         * floatfns.c (Fasin):
8589         * floatfns.c (Fatan):
8590         * floatfns.c (Fcos):
8591         * floatfns.c (Fsin):
8592         * floatfns.c (Ftan):
8593         * floatfns.c (Fbessel_j0):
8594         * floatfns.c (Fbessel_j1):
8595         * floatfns.c (Fbessel_jn):
8596         * floatfns.c (Fbessel_y0):
8597         * floatfns.c (Fbessel_y1):
8598         * floatfns.c (Fbessel_yn):
8599         * floatfns.c (Ferf):
8600         * floatfns.c (Ferfc):
8601         * floatfns.c (Flog_gamma):
8602         * floatfns.c (Fexp):
8603         * floatfns.c (Fexpt):
8604         * floatfns.c (Flog):
8605         * floatfns.c (Flog10):
8606         * floatfns.c (Fsqrt):
8607         * floatfns.c (Fcube_root):
8608         * floatfns.c (Facosh):
8609         * floatfns.c (Fasinh):
8610         * floatfns.c (Fatanh):
8611         * floatfns.c (Fcosh):
8612         * floatfns.c (Fsinh):
8613         * floatfns.c (Ftanh):
8614         * floatfns.c (Fabs):
8615         * floatfns.c (Ffloat):
8616         * floatfns.c (Flogb):
8617         * floatfns.c (Fceiling):
8618         * floatfns.c (Ffloor):
8619         * floatfns.c (Fround):
8620         * floatfns.c (Ftruncate):
8621         * floatfns.c (Ffceiling):
8622         * floatfns.c (Fffloor):
8623         * floatfns.c (Ffround):
8624         * floatfns.c (Fftruncate):
8625         * fns.c (Fstring_equal):
8626         * fns.c (Fstring_lessp):
8627         * fns.c (concat2):
8628         * fns.c (concat3):
8629         * fns.c (vconcat2):
8630         * fns.c (vconcat3):
8631         * fns.c (Fsubstring):
8632         * fns.c (Fassoc):
8633         * fns.c (Fold_assoc):
8634         * fns.c (assoc_no_quit):
8635         * fns.c (Fassq):
8636         * fns.c (Fold_assq):
8637         * fns.c (assq_no_quit):
8638         * fns.c (Frassoc):
8639         * fns.c (Fold_rassoc):
8640         * fns.c (Frassq):
8641         * fns.c (Fold_rassq):
8642         * fns.c (rassq_no_quit):
8643         * fns.c (Fremassoc):
8644         * fns.c (remassoc_no_quit):
8645         * fns.c (Fremassq):
8646         * fns.c (remassq_no_quit):
8647         * fns.c (Fremrassoc):
8648         * fns.c (Fremrassq):
8649         * fns.c (remrassq_no_quit):
8650         * fns.c (Fsort):
8651         * fns.c (Fplist_get):
8652         * fns.c (Fplist_put):
8653         * fns.c (Fplist_remprop):
8654         * fns.c (Fplist_member):
8655         * fns.c (Flax_plist_get):
8656         * fns.c (Flax_plist_put):
8657         * fns.c (Flax_plist_remprop):
8658         * fns.c (Flax_plist_member):
8659         * fns.c (Fequal):
8660         * fns.c (Fold_equal):
8661         * fns.c (Frequire):
8662         * fns.c (Fbase64_encode_region):
8663         * fns.c (Fbase64_encode_string):
8664         * fns.c (Fbase64_decode_region):
8665         * frame.c:
8666         * frame.c (frame_matches_frame_spec):
8667         * frame.c (device_matches_device_spec):
8668         * frame.c (next_frame):
8669         * frame.c (previous_frame):
8670         * frame.c (Fnext_frame):
8671         * frame.c (Fprevious_frame):
8672         * frame.c (Fframe_property):
8673         * frame.c (Fset_frame_height):
8674         * frame.c (Fset_frame_size):
8675         * frame.h:
8676         * glyphs.c:
8677         * glyphs.c (if):
8678         * glyphs.c (decode_error_behavior_flag):
8679         * glyphs.c (Fmake_image_instance):
8680         * indent.c (Findent_to):
8681         * intl.c (Fignore_defer_gettext):
8682         * keymap.c (Fkeymapp):
8683         * keymap.c (Flookup_key):
8684         * lread.c:
8685         * lread.c (Fload_internal):
8686         * lread.c (Feval_buffer):
8687         * lread.c (Feval_region):
8688         * macros.c (Fexecute_kbd_macro):
8689         * marker.c (set_marker_internal):
8690         * marker.c (Fset_marker):
8691         * marker.c (set_marker_restricted):
8692         * marker.c (Fcopy_marker):
8693         * marker.c (noseeum_copy_marker):
8694         * menubar.c:
8695         * menubar.c (Fpopup_menu):
8696         * minibuf.c:
8697         * mule-charset.c (Fcharset_name):
8698         * mule-charset.c (Fchar_charset):
8699         * mule-charset.c (Fchar_octet):
8700         * mule-charset.c (Fsplit_char):
8701         * mule-wnnfns.c (Fwnn_open):
8702         * mule-wnnfns.c (Fwnn_dict_comment):
8703         * mule-wnnfns.c (Fwnn_quit_henkan):
8704         * mule-wnnfns.c (Fwnn_word_toroku):
8705         * mule-wnnfns.c (Fwnn_word_sakujo):
8706         * mule-wnnfns.c (Fwnn_word_use):
8707         * mule-wnnfns.c (Fwnn_hindo_set):
8708         * objects.c:
8709         * objects.c (Fmake_color_instance):
8710         * objects.c (Fmake_font_instance):
8711         * print.c (Fwrite_char):
8712         * process.c:
8713         * process.c (mark_process):
8714         * process.c (print_process):
8715         * process.c (get_process_from_usid):
8716         * process.c (Fprocessp):
8717         * process.c (Fprocess_live_p):
8718         * process.c (Fget_process):
8719         * process.c (Fget_buffer_process):
8720         * process.c (get_process):
8721         * process.c (Fprocess_id):
8722         * process.c (Fprocess_name):
8723         * process.c (Fprocess_command):
8724         * process.c (init_process_io_handles):
8725         * process.c (start_process_unwind):
8726         * process.c (Fstart_process_internal):
8727         * process.c (Fopen_multicast_group_internal):
8728         * process.c (Fset_process_window_size):
8729         * process.c (read_process_output):
8730         * process.c (send_process):
8731         * process.c (Fprocess_tty_name):
8732         * process.c (Fset_process_buffer):
8733         * process.c (Fprocess_buffer):
8734         * process.c (Fprocess_mark):
8735         * process.c (set_process_filter):
8736         * process.c (Fset_process_filter):
8737         * process.c (Fprocess_filter):
8738         * process.c (Fprocess_send_region):
8739         * process.c (Fprocess_send_string):
8740         * process.c (exec_sentinel):
8741         * process.c (Fset_process_sentinel):
8742         * process.c (Fprocess_sentinel):
8743         * process.c (status_notify):
8744         * process.c (Fprocess_status):
8745         * process.c (Fprocess_exit_status):
8746         * process.c (process_send_signal):
8747         * process.c (Fprocess_send_eof):
8748         * process.c (deactivate_process):
8749         * process.c (remove_process):
8750         * process.c (Fdelete_process):
8751         * process.c (kill_buffer_processes):
8752         * process.c (Fprocess_kill_without_query):
8753         * process.c (Fprocess_kill_without_query_p):
8754         * rangetab.c:
8755         * rangetab.c (Fget_range_table):
8756         * rangetab.c (Fput_range_table):
8757         * rangetab.c (Fremove_range_table):
8758         * rangetab.c (Fclear_range_table):
8759         * search.c:
8760         * search.c (Fskip_chars_forward):
8761         * search.c (Fskip_chars_backward):
8762         * search.c (Fskip_syntax_forward):
8763         * search.c (Fskip_syntax_backward):
8764         * search.c (search_command):
8765         * search.c (Freplace_match):
8766         * search.c (Fregexp_quote):
8767         * select.c (Fown_selection_internal):
8768         * select.c (Fselection_owner_p):
8769         * select.c (Fselection_exists_p):
8770         * select.c (Fget_selection_internal):
8771         * specifier.c:
8772         * symbols.c:
8773         * symbols.c (Fintern):
8774         * symbols.c (Fintern_soft):
8775         * symbols.c (Funintern):
8776         * symbols.c (Fapropos_internal):
8777         * symbols.c (Fset_default):
8778         * syntax.c:
8779         * syntax.c (Fsyntax_table_p):
8780         * syntax.c (Fcopy_syntax_table):
8781         * syntax.c (Fset_syntax_table):
8782         * syntax.c (Fchar_syntax):
8783         * syntax.c (syntax_match):
8784         * syntax.c (Fmatching_paren):
8785         * syntax.c (Fforward_word):
8786         * syntax.c (scan_lists):
8787         * syntax.c (Fscan_lists):
8788         * syntax.c (Fscan_sexps):
8789         * syntax.c (Fparse_partial_sexp):
8790         * toolbar.c (Fcheck_toolbar_button_syntax):
8791         * tooltalk.doc:
8792         * window.c:
8793         * window.c (Fwindowp):
8794         * window.c (Fwindow_live_p):
8795         * window.c (Fwindow_point):
8796         * window.c (Fdelete_window):
8797         * window.c (Fnext_window):
8798         * window.c (Fprevious_window):
8799         * window.c (Fother_window):
8800         * window.c (window_loop):
8801         * window.c (Fget_lru_window):
8802         * window.c (Fsplit_window):
8803         * window.c (Fenlarge_window):
8804         * window.c (Fenlarge_window_pixels):
8805         * window.c (Fshrink_window):
8806         * window.c (Fshrink_window_pixels):
8807         * window.c (change_window_height):
8808         * window.c (Fwindow_configuration_p):
8809         * window.c (Fcurrent_window_configuration):
8810         * window.h:
8811         * casefiddle.c (casify_object):
8812         * casefiddle.c (Fupcase):
8813         * casefiddle.c (Fdowncase):
8814         * casefiddle.c (Fcapitalize):
8815         * casefiddle.c (Fupcase_initials):
8816         * casefiddle.c (casify_region_internal):
8817         * casefiddle.c (casify_region):
8818         * casefiddle.c (Fupcase_region):
8819         * casefiddle.c (Fdowncase_region):
8820         * casefiddle.c (Fcapitalize_region):
8821         * casefiddle.c (Fupcase_initials_region):
8822         * casefiddle.c (Fupcase_word):
8823         * casefiddle.c (Fdowncase_word):
8824         * casefiddle.c (Fcapitalize_word):
8825         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8826         Replace 0 with '\0' when working with bytes.
8827         Replace initial "(" with "\(" in docstrings.
8828
8829 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8830
8831         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8832
8833         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8834
8835 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8836
8837         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8838
8839 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8840
8841         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8842         correctly.
8843
8844 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8845
8846         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8847         (inhibit_auto_save_session): New variable.
8848         (vars_of_fileio): Declare and initialize them.
8849         * fileio.c (Fdo_auto_save): Don't create session file if
8850         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8851
8852 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8853
8854         * sgiplay.c (play_internal): C++ compilability.
8855         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8856         * callproc.c (Fold_call_process_internal):
8857         Remove unused vars `env', `first'.
8858         * scrollbar.c (update_scrollbar_instance):
8859         #### unused var `current_window'.
8860         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8861         etc. within #ifdef NOT_YET.
8862         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8863         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8864         * specifier.c (specifier_instance):
8865         #### unused var `tag'.
8866         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8867
8868 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8869
8870         * fns.c (Fbutlast):
8871         * fns.c (list_sort):
8872         * fns.c (Ffillarray):
8873         * fns.c (bytecode_nconc2):
8874         * fns.c (Fnconc):
8875         * fns.c (mapcar1):
8876         * fns.c (Fmapconcat):
8877         Be pedantically 64-bit correct.  For the time when someone will
8878         want to have a list with length > 2**32.
8879
8880         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8881         Work around MIPSpro compiler bug.
8882
8883         * process-unix.c (unix_kill_child_process): Add snarky comment.
8884         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8885
8886         * config.h.in: Oops, _getpt ==> _getpty
8887
8888 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8889
8890         * config.h.in:
8891         * regex.c:
8892         Use void*, not char*, as return type of alloca().
8893
8894         * alloc.c (free_marker): Side effect inside assert expression!
8895
8896 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8897
8898         * mule-charset.c (Fset_charset_ccl_program): To check
8899         if the given ccl program is valid, use setup_ccl_program()
8900         instead of CHECK_VECTOR().
8901         (Fmake_charset): Likewise.
8902
8903 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8904
8905         * faces.c (get_extent_fragment_face_cache_index):
8906         Fix cachel.merged_faces memory leak.
8907
8908 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8909
8910         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8911         Reset MSB of octets obtained by DECODE_SJIS
8912         because of the incompatibility with Emacs.
8913         (ccl_driver)<CCL_ENCODE_SJIS>:
8914         Set MSB of octets before passing them to
8915         ENCODE_SJIS because of the incompatibility
8916         with Emacs.
8917
8918 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8919
8920         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8921         (DECLARE_LRECORD): Undo the last change.
8922         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8923
8924 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8925
8926         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8927         the implementation to lrecord_implementations_table.
8928
8929 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8930
8931         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8932         initial value of `lrecord_type_##c_name' and
8933         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8934         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8935         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8936         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8937         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8938
8939 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8940
8941         * miscplay.c (sndcnv8S_2mono):
8942         (sndcnv2monounsigned):
8943         (sndcnvULaw_2linear):
8944         (sndcnv16swap):
8945         Remove implementation-defined behavior.
8946
8947 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8948
8949         * input-method-xlib.c: Warning suppression.
8950
8951 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8952
8953         * mule-ccl.c: Sync up with Emacs 21.0.90.
8954         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8955         Do nothing.
8956         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8957         Likewise.
8958         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8959         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8960         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8961         leading char belongs to official 2-dimensional charset.
8962         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8963         write the given character as is.  Otherwise,
8964         if it is a multibyte char, convert it by
8965         non_ascii_set_charptr_emchar, then write it.
8966         (CCL_WRITE_STRING): Likewise.
8967         (ccl_get_compiled_code): New function.
8968         (setup_ccl_program): When ccl_prog is invalid,
8969         return -1.
8970         (Fregister_code_conversion_map): New function.
8971         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8972
8973         * mule-ccl.h: Sync up with Emacs 21.0.90.
8974         (Fregister_ccl_program): export it.
8975
8976         * redisplay-msw.c (separate_textual_runs):
8977         If ccl program is not valid, don't do ccl conversion.
8978
8979         * redisplay-x.c (separate_textual_runs): Ditto.
8980
8981         * file-coding.c (Fmake_coding_system):
8982         When type is ccl and value is vector, register it
8983         with a proper symbol.  And checks whether the
8984         given ccl program is valid.
8985         (mule_decode): When calling ccl_driver, if src indicates
8986         NULL pointer, set an empty string instead.
8987         (mule_encode): Likewise.
8988
8989 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8990
8991         The following large batch of changes gets us back to a state of
8992         C++ compilability.  Extbyte is now a char, which means that
8993         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8994
8995         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8996
8997         * sound.c (Fplay_sound): Type correctness.
8998
8999         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9000         (x_get_window_property): Type correctness.
9001         (receive_incremental_selection): unsigned char ==> Extbyte
9002         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9003         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9004         (Fx_store_cutbuffer_internal): Type correctness.
9005
9006         * process-unix.c (try_to_initialize_subtty): Type correctness.
9007
9008         * objects-x.c (x_print_color_instance): Type correctness.
9009         (x_print_font_instance): Type correctness.
9010         (x_list_fonts): SExtbyte ==> Extbyte.
9011         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9012         (x_find_charset_font): SExtbyte ==> Extbyte.
9013         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9014         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9015         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9016         Use bufbyte_strcmp.
9017
9018         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9019         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9020         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9021         (BYTE_C0_P): Use bit ops for char-signedness safety.
9022         (BYTE_C1_P): Use bit ops for char-signedness safety.
9023         (CHARSET_BY_LEADING_BYTE):
9024         (CHARSET_BY_ATTRIBUTES):
9025         Always use inline function.
9026         Use type_checking_assert.
9027         Hide chlook.
9028
9029         * mule-charset.c (non_ascii_charptr_copy_char):
9030         Modify to work with both ASCII and non-ASCII characters.
9031         Improve docs and variable names.
9032         Replace over-clever fall-through switch with a simple loop.
9033         (Lstream_get_emchar_1):
9034         Replace over-clever fall-through switch with a simple loop.
9035
9036         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9037         Warning suppression.
9038
9039         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9040         the return value of Lstream_getc, which could be EOF as well.
9041
9042         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9043
9044         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9045         APIs can be used on Extbytes without casts.  Risky!
9046         (SExtbyte): Remove.
9047         (UExtbyte): Remove.
9048
9049         * input-method-xlib.c (XIM_init_device):
9050         Use Xlib.h instead of IntrinsicP.h.
9051         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9052         which will break in X11R7.
9053         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9054         to call XRegisterIMInstantiateCallback with correct types.
9055
9056         * gui-x.c (button_item_to_widget_value): Type correctness.
9057
9058         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9059
9060         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9061         (xbm_instantiate_1): Type correctness.
9062         (BUILD_GLYPH_INST):  Type correctness.
9063
9064         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9065
9066         * file-coding.c:
9067         (decode_coding_sjis):
9068         (decode_coding_big5):
9069         (decode_coding_ucs4):
9070         (decode_coding_utf8):
9071         (decode_coding_iso2022):
9072         (decode_coding_no_conversion):
9073         Make all decoding functions take an Extbyte * arg.
9074         (encode_coding_sjis):
9075         (encode_coding_big5):
9076         (encode_coding_ucs4):
9077         (encode_coding_utf8):
9078         (encode_coding_iso2022):
9079         (encode_coding_no_conversion):
9080         Make all encoding functions take a Bufbyte * arg.
9081         Use size_t instead of unsigned int for memory sizes.
9082         Only cast to unsigned char whenever dereferencing Extbyte *.
9083
9084         * doc.c (unparesseuxify_doc_string): Type correctness.
9085
9086         * console-x.c (split_up_display_spec):
9087         Rewrite without using details of internal string representation.
9088         (x_semi_canonicalize_device_connection): Type correctness.
9089
9090         * config.h.in:
9091         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9092         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9093         (HAVE_XFREE386): Removed.
9094
9095         * buffer.h (DEC_CHARPTR): `const' correctness.
9096         (bufbyte_strcmp): New.
9097         (bufbyte_memcmp): New.
9098
9099         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9100
9101         * buffer.h (XCHAR_OR_CHAR_INT):
9102         Always use inline function.
9103         Remove redundant type checking assert() - XINT will abort quite nicely.
9104
9105 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9106
9107         * search.c (Freplace_match): Set newtext to an empty string.
9108
9109 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9110
9111         * s/decosf1-3.h: Remove #include of stropts.h
9112         * s/ptx.h: Remove #include of stropts.h
9113         * s/usg5-4.h: Remove #include of stropts.h
9114         * sysproc.h:
9115         * config.h.in:
9116         Use stropts.h, not sys/stropts.h.
9117         Use strtio.h, not sys/strtio.h.
9118
9119 2000-10-04  Martin Buchholz <martin@xemacs.org>
9120
9121         * XEmacs 21.2.36 is released.
9122
9123 2000-09-21  Andy Piper  <andy@xemacs.org>
9124
9125         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9126         changes still involve copying the widget tree.
9127         (update_widget_face): make sure a change is register in the widget
9128         tree. Call update_tab_widget_face appropriately.
9129         (update_tab_widget_face): ditto.
9130         (x_tab_control_redisplay): make sure non-structural changes still
9131         involve copying the widget tree.
9132
9133 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9134
9135         * lread.c (locate_file): Check the path element is non-nil.
9136
9137 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9138
9139         * lisp.h: Warning suppression for SCO compilers.
9140
9141         * redisplay-tty.c (reset_tty_modes): Fix crash.
9142         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9143
9144 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9145
9146         Big signal/process handling overhaul.  Bugs fixed:
9147         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9148         M-x comint-kill-subjob should work for both values nil and t of
9149         process-connection-type. It was broken on most platforms.
9150         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9151         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9152         * process-unix.c: Signal/Process handling overhaul.
9153         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9154         (allocate_pty): Use all available modern methods of allocating
9155         ptys, falling back to old style BSD allocation as a last resort.
9156         Use allegedly more secure Unix98 pty allocation by default.
9157         (allocate_pty_the_old_fashioned_way): New. the last resort.
9158         (unix_create_process): Push ptem, ldterm, ttcompat where
9159         available.  Autoconfiscate.
9160         (try_to_initialize_subtty): New.
9161         (unix_kill_child_process): Proper signal handling for ptys on most
9162         platforms, using special knowledge of AIX, BSD, etc...
9163         (unix_create_process): Always disconnect_controlling_terminal() for
9164         subprocesses, whether using ptys or not.
9165         * process.h: Remove old getpt-dependent PTY code.
9166         * process.c (Fprocess_send_signal): New, obvious generic function.
9167         (decode_signal): New.
9168         (Finterrupt_process):
9169         (Fkill_process):
9170         (Fquit_process):
9171         (Fstop_process):
9172         (Fcontinue_process):
9173         (Fsignal_process): Use decode_signal.
9174         (process_send_signal):
9175         Many docstring corrections.
9176         Allow any signal to be sent to a process object.
9177         * config.h.in: Add symbols for big signal/process overhaul.
9178         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9179         * sysproc.h: Include process-related headers, where available:
9180         sys/stropts.h sys/strtio.h pty.h libutil.h
9181         * s/irix4-0.h:
9182         * s/irix5-0.h:
9183         * s/cygwin32.h:
9184         * s/gnu.h:
9185         * s/linux.h:
9186         * s/hpux.h:
9187         * s/aix3-1.h:
9188         Remove old S&M pty stuff.
9189         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9190         * systty.h: Simplify cpp hackery, improve comments.
9191         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9192
9193         * editfns.c (Fformat_time_string):
9194         Be a little more paranoid with the return value of ctime.
9195
9196         * fileio.c (check_executable):
9197         (check_writable):
9198         Use symbolic constants X_OK, W_OK.
9199
9200         * console-x.c (split_up_display_spec): Fix a warning.
9201
9202 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9203
9204         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9205         * ntproc.c (sys_spawnve): make_string ==> build_string
9206         Small clarity improvements.
9207
9208 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9209
9210         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9211
9212         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9213
9214         * config.h.in (HAVE_STRCASECMP): Remove.
9215
9216 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9217
9218         * redisplay-output.c (redisplay_output_pixmap):
9219         Cleaner and possibly more 64-bit correct code.
9220
9221 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9222
9223         * dumper.c (pdump_load_finish): move restoration of
9224         `noninteractive1' to emacs.c (main_1).
9225         * emacs.c (main_1): protect LISP-visible command-line flags
9226         from pdump_load().
9227
9228 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9229
9230         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9231         DUMP_TARGET instead of literal program names.
9232
9233 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9234
9235         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9236
9237 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9238
9239         * *: Spelling mega-patch
9240
9241 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9242
9243         * fns.c (bad_bad_turtle):
9244         Delete "Eek!" comment, since we fixed the bug to which it refers.
9245
9246 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9247
9248         * alloca.c: Replace REGISTER with register.
9249
9250 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9251
9252         * file-coding.c (ucs_to_char): Use countof.
9253
9254 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9255
9256         * file-coding.c: (ucs_to_char):
9257         (complex_vars_of_file_coding):
9258         Use countof instead of sizeof.
9259         Use CHECK_NATNUM instead of CHECK_INT.
9260
9261         * sysdep.c (strcasecmp): Remove.
9262         * device-x.c (ascii_strcasecmp): New.
9263         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9264         Avoid using non-standard non-portable strcasecmp.
9265
9266 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9267
9268         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9269         * font-lock.c: remove reference to emacsfns.h.
9270         * search.c: small doc improvement.
9271         * event-Xt.c: correct file names in comments.
9272         * console-x.h Correct file names in comments.
9273         * frame.c: Correct file names in comments.
9274         * event-stream.c: remove Energize from comments.
9275
9276 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9277
9278         * symeval.h (DEFERROR_STANDARD):
9279         (DEFERROR):
9280         (DEFSYMBOL):
9281         (DEFSYMBOL_NO_DUMP):
9282         (DEFSYMBOL_MULTIWORD_PREDICATE):
9283         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9284         (DEFKEYWORD):
9285         The construct &##name is not sensible C.
9286         Fixes compilation errors with Unixware native compiler.
9287
9288 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9289
9290         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9291         (next_frame_internal): Removed.  We now just have next_frame.
9292         (next_frame):
9293         Write a simpler and cleaner one-pass algorithm.
9294         Remove called_from_delete_device arg and #ifdefed-out code.
9295         (previous_frame):
9296         Renamed from prev_frame.  Update callers.
9297         Cleaned up to have an analogous implementation to next_frame.
9298         (other_visible_frames_internal): Remove the
9299         called_from_delete_device bogus arg, and hence, remove this
9300         function.  Just use other_visible_frames().
9301
9302         * window.c (Fnext_window):
9303         Prettify docstring.
9304         Since next_frame() is guaranteed to return a frame, remove check
9305         for nil inserted in previous patch.
9306         (Fprevious_window):
9307         Prettify docstring.
9308         Make code look more like Fnext_window.
9309         (window_loop):
9310         Respect the `console' arg when iterating through windows.
9311         Fixes bug: (get-buffer-window buffer t device) not respecting
9312         the `device' arg.
9313         This function needs more work, as others have pointed out.
9314
9315         * frame.h: Rename prev_frame to previous_frame.
9316         device_matches_console_spec no longer takes a `frame' arg.
9317
9318         * s/gnu.h:
9319         * s/linux.h:
9320         * s/hpux.h:
9321         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9322         From "Golubev I. N." <gin@mo.msk.ru>.
9323
9324         * make-src-depend: Fix typo.
9325
9326 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9327
9328         * window.c (Fnext_window):
9329         next_frame() might return nil, not a frame.
9330         Fixes this crash:
9331         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9332
9333         * frame.c (next_frame_internal):
9334         We've passed a frame if we've passed its device.
9335         Fixes this crash:
9336         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9337 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9338
9339 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9340
9341         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9342         Allow option to suppress accelerators in menu/dialog items.
9343         (populate_or_checksum_helper): Pass dialog title through above.
9344
9345 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9346
9347         * event-msw.c (mswindows_key_to_emacs_keysym):
9348         Add "pause" key, fix "menu" key.
9349
9350 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9351
9352         * eval.c (reinit_vars_of_eval):
9353         Increase max_lisp_eval_depth to 1000,
9354         required for thai-xtis.el to byte-compile under some circumstances.
9355
9356 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9357
9358         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9359         From Kenichi Handa.
9360
9361 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9362
9363         * make-src-depend: Make the generated Makefiles smaller.
9364
9365         * s/hpux.h (SETUP_SLAVE_PTY):
9366         Provide a %d in the format string for the errno argument.
9367
9368         * editfns.c (Ftemp_directory):
9369         Warning fix.
9370         Avoid buffer overrun on very long file name.
9371
9372         * input-method-xlib.c (XIM_init_device):
9373         6th parameter of XRegisterIMInstantiateCallback has different
9374         pointer types on different OSes, so simply cast to (void *).
9375
9376         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9377
9378         * sysdll.c (dll_open):
9379         shl_load will hang hard if passed a NULL filename.
9380         Simply return NULL for compatibility with dlopen.
9381         * sysdll.c: Conform to XEmacs coding standards.
9382
9383         * sysdep.c (get_pty_max_bytes):
9384         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9385
9386 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9387
9388         * tooltalk.c: Add #include <syssignal.h>
9389
9390 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9391
9392         * s/hpux.h: Don't use undefined function sigunblock().
9393
9394 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9395
9396         * config.h.in: Add HAVE_BALLOON_HELP.
9397         * emacs.c: Use HAVE_BALLOON_HELP.
9398         * Makefile.in.in (x_objs):
9399         Make Balloon Help conditional on finding shape.h.
9400
9401 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9402
9403         * syntax.c (regex_emacs_buffer_p): New variable.
9404         * syntax.h (regex_emacs_buffer_p): extern.
9405         * search.c (looking_at_1):
9406         (string_match_1):
9407         (fast_string_match):
9408         (search_buffer): Set regex_emacs_buffer_p.
9409         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9410         when before_dot, at_dot, after_dot.
9411
9412 2000-08-23  Andy Piper  <andy@xemacs.org>
9413
9414         * gui-x.c (popup_selection_callback): Only set action_occurred
9415         when we really have an image instance.
9416         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9417
9418 2000-08-23  Andy Piper  <andy@xemacs.org>
9419
9420         * gui-msw.c (mswindows_handle_gui_wm_command): set
9421         action_occurred.
9422         * gui-x.c (popup_selection_callback): ditto.
9423
9424         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9425         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9426         (struct Lisp_Image_Instance): add action_occurred flag.
9427
9428         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9429         (image_instance_changed): ditto.
9430         (reset_frame_subwindow_instance_cache): only unmap windows - do
9431         not remove them from the cache also.
9432
9433         * glyphs-widget.c (tab_control_update): better debug.
9434         (progress_gauge_update): ditto.
9435         (layout_update): ditto.
9436         (layout_instantiate): ditto.
9437         (tab_control_order_only_changed): cope with null pending items.
9438
9439         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9440         debug. Force selection of an item when an action occurred. Cope
9441         with null pending_items.
9442         (mswindows_progress_gauge_redisplay): better debug.
9443         * glyphs-x.c (x_tab_control_redisplay): ditto.
9444
9445         * redisplay.c (redisplay_frame): reset the frame cache if the
9446         frame is garbaged.
9447
9448         * window.c (Fset_window_configuration): potentially re-enable
9449         frame cache reset.
9450         (window_unmap_subwindows): need to finalize instances here since
9451         it is only used in mark_window_as_deleted.
9452
9453 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9454
9455         * nas.c (SndOpenDataForReading):
9456         nas.c (WaveOpenDataForReading):
9457         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9458         Somehow escaped from the 2000-08-14 patch.
9459
9460 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9461
9462         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9463         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9464
9465 2000-08-21  Andy Piper  <andy@xemacs.org>
9466
9467         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9468         window if it is not already displayed.
9469
9470         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9471         it is not already displayed.
9472
9473         * window.c (Fset_window_configuration): don't reset the frame
9474         cache.
9475
9476         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9477         instances from the frame cache if we are actually finalizing them.
9478         (reset_frame_subwindow_instance_cache): reset frame cache only
9479         after unmapping everything.
9480         (map_subwindow): set displayed flag after mapping.
9481
9482 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9483
9484         * data.c (indirect_function):
9485         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9486
9487         * eval.c (function_argcount):
9488         Use original function when signaling errors.
9489
9490 2000-08-18  Andy Piper  <andy@xemacs.org>
9491
9492         * frame.c (delete_frame_internal): use new
9493         free_frame_subwindow_instances name.
9494
9495         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9496         (add_tab_item): make return type correct.
9497         (mswindows_tab_control_instantiate): assert index of tab.
9498         (mswindows_tab_control_redisplay): Re-code to use
9499         gui_item_equal_sans_selected and gui_item_list_find_selected.
9500
9501         * glyphs-widget.c (tab_control_update): Correct comment.
9502
9503         * window.c (window_unmap_subwindows): use new
9504         unmap_subwindow_instance_cache_mapper.
9505         (window_unmap_subwindows_cache_mapper): deleted.
9506         (Fset_window_configuration): comparisons should now be with
9507         EQ. Preserve the subwindow instance cache across configuration
9508         changes.
9509         (allocate_window): ditto.
9510         (make_dummy_parent): ditto.
9511
9512         * glyphs.c (free_frame_subwindow_instances): rename from
9513         free_frame_subwindow_instance_cache. finalize all instances rather
9514         than just those in the display cache.
9515         (finalize_all_subwindow_instances): walk windows unmapping and
9516         finalizing subwindows.
9517         (unmap_subwindow_instance_cache_mapper): moved from
9518         window.c. Allow finalization as well as unmapping.
9519
9520         * gui.c (gui_item_list_find_selected): new function.
9521
9522         * gui.h (gui_item_list_find_selected): declare.
9523
9524         * glyphs-x.c (x_tab_control_redisplay): pick tab
9525         explicitly. Re-code to use gui_item_equal_sans_selected and
9526         gui_item_list_find_selected.
9527
9528         * glyphs-x.h: add lwlib-utils.h
9529
9530         * buffer.c (Frecord_buffer): undo previous change.
9531
9532 2000-08-09  Vin Shelton  <acs@xemacs.org>
9533
9534         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9535         possible.  Create temporary files more securely.  The patch was
9536         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9537         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9538         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9539         for details.
9540
9541 2000-08-07  Ben Wing  <ben@xemacs.org>
9542
9543         * getloadavg.c: remove duplicate (and windows-breaking)
9544         includes of fcntl.h and sys/file.h.
9545
9546         * nt.c: remove duplicate getloadavg() definition.
9547
9548         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9549         encodings.
9550
9551 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9552
9553         * eval.c (function_argcount): If function needs to be autoloaded
9554         actually use the loaded definition.
9555         GCPRO function.
9556
9557 2000-08-05  Ben Wing  <ben@xemacs.org>
9558
9559         * getloadavg.c: add prototype for getloadavg().  remove
9560         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9561         of the code).  remove duplicate header includes.
9562
9563         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9564
9565         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9566         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9567         useful load average.
9568
9569         * alloc.c (reinit_alloc_once_early): removed references to
9570         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9571         the lisp vars are the only things referencing the malloc_sbrk_*
9572         vars, and they were already if 0'd out.  these vars only exist
9573         in the older malloc.c, which is basically unused, and they're
9574         only for informational purposes.
9575
9576         * m\*.h: removed useless VIRT_ADDR_VARIES.
9577
9578         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9579
9580 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9581
9582         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9583         color if the image is a mono pixmap.
9584
9585 2000-07-30  Ben Wing  <ben@xemacs.org>
9586
9587         * Makefile.in.in (release):
9588         Remove stray @.
9589
9590         * buffer.c (directory_is_current_directory):
9591         * dired-msw.c (mswindows_get_files):
9592         * dired.c:
9593         * dired.c (Fdirectory_files):
9594         * dired.c (file_name_completion_stat):
9595         * dired.c (Ffile_attributes):
9596         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9597         preprocessor tricks, to avoid problems on some machines
9598         (e.g. SCO).
9599
9600         * callproc.c (egetenv): GC docs.
9601
9602         * console-msw.h:
9603         * console-msw.h (struct mswindows_dialog_id):
9604         * lrecord.h (lrecord_type):
9605         New object for use with MSW dialogs.
9606
9607         * console.h (struct console_methods):
9608         New enable/disable frame methods, for proper modal dialogs.
9609
9610         * device-msw.c (msprinter_default_printer): Fix to follow
9611         proper Mule conventions.
9612
9613         * device-msw.c:
9614         * device-msw.c (signal_open_printer_error):
9615         * device-msw.c (msprinter_init_device):
9616         * device-msw.c (ensure_not_printing):
9617         * device-msw.c (plist_get_margin):
9618         * device-msw.c (Fmsprinter_select_settings):
9619         * device-msw.c (finalize_devmode):
9620         * device-msw.c (Fmsprinter_settings_despecialize):
9621         * device-msw.c (signal_enum_priner_error):
9622         * extents.c (decode_extent):
9623         * extents.c (decode_map_extents_flags):
9624         * extents.c (decode_extent_at_flag):
9625         * extents.c (Fextent_at):
9626         * extents.c (Fextents_at):
9627         * extents.c (symbol_to_glyph_layout):
9628         [[[[2]]]] Use structured errors.
9629
9630         * dialog-msw.c:
9631         * dialog-msw.c (mswindows_is_dialog_msg):
9632         * dialog-msw.c (mark_mswindows_dialog_id):
9633         * dialog-msw.c (dialog_proc):
9634         * dialog-msw.c (handle_question_dialog_box):
9635         * dialog-msw.c (syms_of_dialog_mswindows):
9636         Define new object to clean up marking; use it as a dialog identifier.
9637         Call new delete-dialog-box-hook.
9638
9639         * dialog-x.c (dbox_selection_callback):
9640         * dialog-x.c (dbox_descriptor_to_widget_value):
9641         * dialog-x.c (x_make_dialog_box_internal):
9642         Call new delete-dialog-box-hook.
9643         Return an id.
9644
9645         * dialog.c:
9646         * dialog.c (syms_of_dialog):
9647         * dialog.c (vars_of_dialog):
9648         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9649
9650         * eval.c:
9651         * eval.c (signal_call_debugger):
9652         when noninteractive, output stack traces on the console instead
9653         of in a (never-seen) buffer.
9654
9655         * eval.c (signal_type_error):
9656         * eval.c (invalid_argument_2):
9657         * lisp.h:
9658         new funs for use w/structured errors.
9659
9660         * event-Xt.c:
9661         * event-Xt.c (x_to_emacs_keysym):
9662         * event-Xt.c (describe_event):
9663         * event-Xt.c (emacs_Xt_event_handler):
9664         * event-Xt.c (vars_of_event_Xt):
9665         * event-msw.c:
9666         * event-msw.c (mswindows_wnd_proc):
9667         * event-msw.c (vars_of_event_mswindows):
9668         rename {x,mswindows}-debug-events to debug-{}-events for
9669         consistency with other debug-foo variables.
9670
9671         * event-stream.c:
9672         document next-event more clearly.
9673
9674         * fileio.c (Ffile_name_directory):
9675         * fileio.c (Ffile_name_nondirectory):
9676         * fileio.c (Funhandled_file_name_directory):
9677         * fileio.c (file_name_as_directory):
9678         * fileio.c (Ffile_name_as_directory):
9679         * fileio.c (directory_file_name):
9680         * fileio.c (Fdirectory_file_name):
9681         * fileio.c (Fmake_temp_name):
9682         * fileio.c (Ffile_truename):
9683         * fileio.c (Fsubstitute_in_file_name):
9684         * fileio.c (expand_and_dir_to_file):
9685         * fileio.c (barf_or_query_if_file_exists):
9686         * fileio.c (check_executable):
9687         * fileio.c (Ffile_exists_p):
9688         * fileio.c (Ffile_writable_p):
9689         * fileio.c (Ffile_directory_p):
9690         * fileio.c (Ffile_regular_p):
9691         * fileio.c (Ffile_modes):
9692         * fileio.c (Ffile_newer_than_file_p):
9693         * fileio.c (Fverify_visited_file_modtime):
9694         * fileio.c (Fset_visited_file_modtime):
9695         * fileio.c (auto_save_1):
9696         (1). (2).
9697         fix up gcpro's.
9698
9699         * frame-msw.c:
9700         * frame-msw.c (mswindows_init_frame_1):
9701         * frame-msw.c (mswindows_enable_frame):
9702         * frame-msw.c (error_frame_unsizable):
9703         * frame-msw.c (msprinter_init_frame_1):
9704         * frame-msw.c (msprinter_init_frame_3):
9705         * frame-msw.c (console_type_create_frame_mswindows):
9706         (2).
9707         implement new enable/disable frame methods.
9708
9709         * frame-x.c:
9710         * frame-x.c (x_enable_frame):
9711         * frame-x.c (console_type_create_frame_x):
9712         implement new enable/disable frame methods.
9713
9714         * frame.c:
9715         * frame.c (Fdisable_frame):
9716         * frame.c (syms_of_frame):
9717         * frame.h (struct frame):
9718         implement new enable/disable frame methods/functions.
9719
9720         * general-slots.h:
9721         add initial-focus.
9722
9723         * glyphs-msw.c (mswindows_widget_instantiate):
9724         comment that initial-focus should be implemented.
9725
9726         * glyphs-widget.c:
9727         * glyphs-widget.c (check_valid_instantiator):
9728         * glyphs-widget.c (check_valid_orientation):
9729         * glyphs-widget.c (check_valid_tab_orientation):
9730         * glyphs-widget.c (check_valid_justification):
9731         * glyphs-widget.c (check_valid_border):
9732         * glyphs-widget.c (check_valid_callback):
9733         * glyphs-widget.c (check_valid_int_or_function):
9734         * glyphs-widget.c (check_valid_string_or_vector):
9735         * glyphs-widget.c (check_valid_item_list_1):
9736         * glyphs-widget.c (widget_validate):
9737         * glyphs-widget.c (combo_box_validate):
9738         * glyphs-widget.c (widget_instantiate):
9739         * glyphs-widget.c (syms_of_glyphs_widget):
9740         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9741         * glyphs-widget.c (image_instantiator_combo_box):
9742         * glyphs-widget.c (image_instantiator_scrollbar):
9743         * glyphs-widget.c (image_instantiator_tab_control):
9744         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9745         (2).
9746         support (unimplemented) keyword initial-focus.
9747         reindent long macros.
9748
9749         * glyphs-x.c (x_redisplay_widget):
9750         * glyphs-x.c (x_button_instantiate):
9751         * glyphs-x.c (x_button_redisplay):
9752         * glyphs-x.c (x_progress_gauge_instantiate):
9753         * glyphs-x.c (x_edit_field_instantiate):
9754         * glyphs-x.c (x_combo_box_instantiate):
9755         * glyphs-x.c (x_tab_control_instantiate):
9756         * glyphs-x.c (x_label_instantiate):
9757         * gui-x.c:
9758         * gui-x.c (button_item_to_widget_value):
9759         * gui-x.c (gui_items_to_widget_values_1):
9760         * gui-x.c (gui_item_children_to_widget_values):
9761         * gui-x.c (gui_items_to_widget_values):
9762         * gui-x.h:
9763         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9764         add new flag to gui-parsing routines to indicate whether
9765         accelerator specs should be supported.
9766
9767         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9768
9769         * glyphs.h (struct Lisp_Image_Instance):
9770         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9771         add initial-focus flag.
9772
9773         * gui.c:
9774         * gui.c (syms_of_gui):
9775         * gui.c (vars_of_gui):
9776         clean up menu-no-selection-hook.
9777
9778         * gui.h:
9779         support delete-dialog-box-hook.
9780
9781         * lread.c (Fload_internal):
9782         * lread.c (locate_file_in_directory_mapper):
9783         (1).
9784
9785         * lrecord.h:
9786         * lrecord.h (struct toolbar_button):
9787         * lrecord.h (syms_of_toolbar):
9788         document how to create a new object.
9789
9790         * menubar-msw.c (mswindows_char_is_accelerator):
9791         may be called on frames w/o menus.
9792
9793         * menubar.c (vars_of_menubar):
9794         clean up :filter docs.
9795
9796         * nt.c (readdir):
9797         * ntproc.c:
9798         (1).
9799
9800         * process-nt.c:
9801         * process-nt.c (validate_signal_number):
9802         * process-nt.c (signal_cannot_launch):
9803         * process-nt.c (nt_create_process):
9804         * process-nt.c (nt_send_process):
9805         * process-nt.c (nt_kill_child_process):
9806         * process-nt.c (nt_open_network_stream):
9807         * process-nt.c (syms_of_process_nt):
9808         (2).
9809         delete quote-handling.  call new lisp code that does it better.
9810
9811         * process-unix.c (connect_to_file_descriptor):
9812         * process-unix.c (allocate_pty):
9813         * process-unix.c (unix_send_process):
9814         * process-unix.c (unix_kill_child_process):
9815         * process-unix.c (unix_open_network_stream):
9816         * process-unix.c (unix_open_multicast_group):
9817         (1). (2).
9818
9819         * process.c:
9820         * process.c (Fstart_process_internal):
9821         (2).  need to canonicalize process path even if absolute.
9822
9823         * select-msw.c (symbol_to_ms_cf):
9824         * select-msw.c (ms_cf_to_symbol):
9825         * select-msw.c (cf_is_autofreed):
9826         * select-msw.c (mswindows_destroy_selection):
9827         * select.c:
9828         * select.c (syms_of_select):
9829         * select.h:
9830         support dibv5, fix bugs. (from Mike Alexander)
9831
9832         * select.c (Fget_selection_internal):
9833         * select.c (select_convert_out):
9834
9835         * sysdep.c:
9836         * sysdep.c (xemacs_stat):
9837         renamed.
9838
9839         * sysdep.c (mkdir):
9840         * sysdep.c (rmdir):
9841         but keep original stat() here because we provide encapsulation
9842         around these funs.
9843
9844         * sysfile.h:
9845         * sysfile.h (fstat):
9846         remove stat garbage.
9847
9848         * syswindows.h:
9849         fix X/MSW conflict.
9850         don't include tchar.h.  it's inappropriate because it makes
9851         compile-time distinctions when we want runtime distinctions.
9852         (we provide our own tchar replacements)
9853
9854         * toolbar.c:
9855         use default object printer for toolbar-button.
9856
9857         * unexcw.c:
9858         make sure we don't encapsulate.
9859
9860         * window.c (vars_of_window):
9861         emphasize that temp-buffer-show-hook is obsolete.
9862
9863 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9864
9865         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9866         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9867
9868         * events.c (Fevent_timestamp_lessp):
9869         Not 64-bit clean.  Use EMACS_INT, not int.
9870
9871 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9872
9873         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9874         unsigned int and changed the last enum to
9875         lrecord_type_last_built_in_type.
9876         (lrecord_implementations_table): changed prototype to know how
9877         long the array is supposed to be.
9878         (lrecord_type_count): new unsigned int to keep track of the
9879         current number of lisp lrecord types.
9880         (DEFINE_EXTERNAL_LRECORD):
9881         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9882         dynamic-modules to declare new lisp types. They are the same
9883         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9884         int for each new type, and increment lrecord_type_count by 1.
9885
9886         * alloc.c (lrecord_implementations_table): Changed to reference
9887         lrecord_type_last_built_in_type for the size of the array.
9888         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9889
9890 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9891
9892         * glyphs.h (check_valid_item_list): Renamed from
9893         check_valid_item_list_1.
9894
9895 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9896
9897         * select.c (Qselect_coerce): New.
9898         * select.c (Vselection_coercion_alist): New.
9899         * select.c (syms_of_select): Declare.
9900         * select.c (get-selection-internal): Use it.
9901         Use the new select-coerce functionality.
9902
9903         * select.c (select_coerce): New.
9904         * select.h (select_coerce): Declare.
9905         New function to coerce one type of data into another.
9906
9907 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9908
9909         * callproc.c (Fcall_process_internal):
9910         (Fcall_process_internal):
9911         * process-unix.c (unix_create_process):
9912         Save and restore the value of errno, so that error messages are accurate.
9913
9914 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9915
9916         * elhash.c (print_hash_table):
9917         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9918         Prettify docstrings and indentation.
9919
9920 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9921
9922         * window.c (Fwindow_pixel_edges): Subtract frame border and
9923         gutter size.
9924
9925 2000-07-31  Andy Piper  <andy@xemacs.org>
9926
9927         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9928         will acknowledge the change.
9929
9930         * glyphs.h: declare tab_control_order_only_changed.
9931
9932         * glyphs-x.c (x_tab_control_redisplay): use
9933         tab_control_order_only_changed.
9934
9935         * glyphs-widget.c (tab_control_order_only_changed): new function.
9936
9937         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9938         tab_control_order_only_changed.
9939
9940         * gui.c (gui_item_equal_sans_selected): new function.
9941         (gui_item_equal): use it.
9942
9943         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9944         :properties in favor of :items..
9945
9946         * glyphs-widget.c (check_valid_item_list): rename from
9947         check_valid_item_list_1.
9948         (check_valid_item_list_1): renamed.
9949         (combo_box_validate): deprecate :properties in favor of :items.
9950         (widget_instantiate): ditto.
9951         (tab_control_update): ditto.
9952         (image_instantiator_combo_box): ditto.
9953         (image_instantiator_tree_view): ditto.
9954         (image_instantiator_tab_control): ditto.
9955         (layout_post_instantiate): remove dead code.
9956
9957         * print.c (debug_print_no_newline): only write to debugger if in
9958         WIN32_NATIVE.
9959
9960         * elhash.c (Fmake_hash_table): update doc string.
9961
9962         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9963         messages whilst in GC. This at least stops XEmacs crashing but has
9964         the potential for wierd behaviour.
9965
9966 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9967
9968         * config.h.in:
9969         Make existence of s&m files optional.
9970
9971         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9972         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9973         * s/gnu.h: Remove HAVE_GETLOADAVG.
9974         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9975         * s/sol2.h: Remove HAVE_GETLOADAVG.
9976         * lisp.h: Remove getloadavg() declaration.
9977         * fns.c:
9978         Include <sys/loadavg.h> if available.
9979         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9980         * config.h.in:  Group together getloadavg()-related macros.
9981         Use only configure-time tests to detect getloadavg().
9982
9983 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9984
9985         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9986
9987 2000-07-25  Andy Piper  <andy@xemacs.org>
9988
9989         * syswindows.h: add tchar.h for native builds.
9990
9991         * frame.c (syms_of_frame): remove set-glyph-image.
9992
9993         * general-slots.h: add Qset_glyph_image.
9994
9995         * glyphs-widget.c (layout_update): add domain arg to
9996         set-glyph-image.
9997         (syms_of_glyphs_widget): remove set-glyph-image.
9998
9999 2000-07-23  Ben Wing  <ben@xemacs.org>
10000
10001         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10002         Vpopup_frame_list.
10003
10004 2000-07-22  Andy Piper  <andy@xemacs.org>
10005
10006         * symsinit.h: add syms_of_win32().
10007
10008         * gui-msw.c (syms_of_gui_mswindows): remove
10009         Fmswindows_shell_execute.
10010         (Fmswindows_shell_execute): moved to win32.c.
10011
10012         * emacs.c (main_1): add syms_of_win32 ().
10013
10014         * win32.c (init_potentially_nonexistent_functions): rewrite in
10015         compiler-friendly terms.
10016         (Fmswindows_shell_execute): move here from gui-msw.c.
10017         (syms_of_win32): new.
10018
10019         * device-msw.c (Fmswindows_printer_list): clean up args to
10020         EnumPrinters.
10021         Don't include tchar under cygwin or mingw.
10022         (msprinter_default_printer): make cygwin-friendly.
10023
10024 2000-07-21  Andy Piper  <andy@xemacs.org>
10025
10026         * glyphs-widget.c (image_instantiator_tree_view): use tab
10027         control's update function.
10028         (layout_property): new function. Retrieve items.
10029
10030         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10031         function. Re-populate the tree view from the pending items.
10032
10033         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10034         is designated the parent if the domain is an image instance. This
10035         is needed so that dirtiness can be cascade up the hierarchy and
10036         thus for layout children to be redisplayed correctly.
10037         (allocate_image_instance): rename glyph -> parent.
10038
10039         * redisplay.h: change redisplay_output_layout signature.
10040
10041         * redisplay-msw.c (mswindows_output_display_block): use domain
10042         arg.
10043
10044         * redisplay-x.c (x_output_display_block): use domain arg.
10045
10046 2000-07-10  Andy Piper  <andy@xemacs.org>
10047
10048         * window.c (Fset_window_configuration): add comment.
10049
10050         * redisplay-output.c (compare_runes):
10051         (redisplay_output_subwindow): redisplay rather than update subwindow.
10052         (redisplay_output_layout): ditto.
10053
10054         * redisplay-msw.c (mswindows_frame_output_end):
10055         (mswindows_frame_output_end): make defer window pos optional.
10056
10057         * lisp.h: add Flast.
10058
10059         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10060         normalize method. Change update method to be for changed
10061         instantiators. Add redisplay method. Change signature of layout
10062         method.
10063         (struct Lisp_Image_Instance): add instantiator.
10064         (IMAGE_INSTANCE_INSTANTIATOR): new.
10065         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10066         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10067         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10068
10069         * glyphs.c:
10070         (find_instantiator_differences): new function.
10071         (Fset_instantiator_property): new convenience function.
10072         (check_image_instance_structure): strictly check for vector
10073         instantiators.
10074         (normalize_image_instantiator): make non-static.
10075         (instantiate_image_instantiator): pass on dest_mask and use new
10076         signatures for image_instance_layout and friends.
10077         (mark_image_instance): mark the instantiator. Mark the subwindow
10078         face not the widget face.
10079         (image_instance_equal): add instantiator.
10080         (image_instance_hash): ditto.
10081         (allocate_image_instance): ditto.
10082         (Fset_image_instance_property): removed.
10083         (Fimage_instance_file_name): ditto.
10084         (Fcolorize_image_instance): ditto.
10085         (image_instance_layout): add offsets to be set.
10086         (update_image_instance): new function. update an image instance
10087         from its changed instantiator.
10088         (inherit_normalize): add dest_mask.
10089         (xbm_normalize): ditto.
10090         (xface_normalize): ditto.
10091         (xpm_normalize): ditto.
10092         (text_update): set_property -> update.
10093         (image_instantiate): use the glyph identity as a hash key, not the
10094         instantiator.
10095         (glyph_width): use new image_instance_layout signature.
10096         (glyph_ascent): ditto.
10097         (glyph_descent): ditto.
10098         (glyph_height): ditto.
10099         (glyph_query_geometry): ressurrect.
10100         (glyph_layout): ditto.
10101         (redisplay_subwindow): update -> redisplay.
10102         (syms_of_glyphs): add Fset_instantiator_property.
10103         (image_instantiator_format_create): set_property -> update.
10104
10105         * glyphs-x.c:
10106         (autodetect_normalize): add dest_maks to signature.
10107         (x_redisplay_subwindow): update -> redisplay.
10108         (x_redisplay_widget): ditto.
10109         (x_button_redisplay): ditto.
10110         (x_progress_gauge_redisplay): ditto.
10111         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10112         stacking order.
10113         (console_type_create_glyphs_x): update -> redisplay.
10114         (image_instantiator_format_create_glyphs_x): ditto.
10115
10116         * glyphs-widget.c:
10117         (check_valid_instantiator): disallow glyphs in the instantiator,
10118         they must now be vectors.
10119         (check_valid_instantiator_list): ditto.
10120         (glyph_instantiator_to_glyph): use internal symbol rather than
10121         intern.
10122         (widget_update): renamed from widget_set_property. Call cascaded
10123         update methods.
10124         (redisplay_widget): renamed from update_widget.
10125         (widget_layout): image_instance_layout now takes position as well
10126         as size.
10127         (widget_normalize): ditto.
10128         (widget_instantiate): ditto.
10129         (tab_control_query_geometry) ditto.:
10130         (tab_control_update): renamed from tab_control_set_property.
10131         (progress_gauge_update): set_property -> update.
10132         (layout_normalize): rewrite so that child instantiators are
10133         normalized also.
10134         (layout_update): new function. Create glyphs from the normalized
10135         children and cope with any other layout keywords. We do not
10136         instantiate children here that will be take care of by
10137         redisplay_output_layout.
10138         (layout_instantiate): call layout_update and not much else.
10139         (layout_post_instantiate): not sure whether this is needed
10140         anymore.
10141         (layout_query_geometry): query glyph geometry rather than
10142         image_instance geometry.
10143         (layout_layout): set offsets from pass in parameters. Use glyph
10144         geometry and layout functions rather than image instance ones.
10145         (native_layout_layout): ditto.
10146         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10147         (image_instantiator_widget): set_property -> update.
10148         (image_instantiator_buttons): ditto.
10149         (image_instantiator_progress_guage): ditto.
10150         (image_instantiator_tab_control): ditto.
10151         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10152         (image_instantiator_layout): add update method.
10153
10154         * glyphs-msw.c (bmp_normalize):
10155         (mswindows_resource_normalize): add dest_mask so that it can be
10156         proprogated by layout_normalize.
10157         (begin_defer_window_pos): make optional because it may not be the
10158         right thing to do and it introduces differences with X.
10159         (mswindows_unmap_subwindow): ditto.
10160         (mswindows_map_subwindow): ditto.
10161         (mswindows_redisplay_subwindow): renamed from
10162         mswindows_update_subwindow.
10163         (mswindows_redisplay_widget): ditto.
10164         (mswindows_button_redisplay): renamed from
10165         mswindows_button_update. Update is now what the instantiation
10166         function does for a changed instantiator.
10167         (mswindows_progress_gauge_instantiate): set the progress value
10168         here if appropriate.
10169         (mswindows_tab_control_redisplay): cope with re-ordering of the
10170         members of the tab widget by simply selecting the new top
10171         widget. This makes things appear ok if you click on a tab.
10172         (mswindows_combo_box_instantiate): image_instance_layout now takes
10173         position as well as size.
10174         (mswindows_progress_gauge_redisplay): renamed from
10175         mswindows_progress_gauge_update.
10176         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10177         (image_instantiator_format_create_glyphs_mswindows): ditto.
10178
10179         * glyphs-eimage.c (jpeg_normalize):
10180         (gif_normalize):
10181         (png_normalize):
10182         (tiff_normalize): add dest_mask so that it can be proprogated by
10183         layout_normalize.
10184
10185         * elhash.c:
10186         (print_hash_table):
10187         (hash_table_weakness_validate):
10188         (decode_hash_table_weakness):
10189         (Fhash_table_weakness):
10190         (Fhash_table_type):
10191         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10192
10193         * console.h (struct console_methods): move update_* to
10194         redisplay_*.
10195
10196 2000-07-20  Ben Wing  <ben@xemacs.org>
10197
10198         * *.[ch] (XSETOBJ): remove unused middle argument.
10199         lisp-disunion.h: correct wrap_object() to one argument.
10200
10201 2000-07-15  Ben Wing  <ben@xemacs.org>
10202
10203         * s/cygwin32.h:
10204         * s/cygwin32.h (CYGWIN_CONV_PATH):
10205         Add missing logb prototype for v1.1.
10206         Use post-b20 names and alias to pre-b20 names when pre-b20.
10207
10208         * s/windowsnt.h: [5].
10209
10210 2000-07-15  Ben Wing  <ben@xemacs.org>
10211
10212         * Makefile.in.in (x_objs):
10213         * Makefile.in.in (sheap_objs):
10214         * Makefile.in.in (objs):
10215         added win32.o, cosmetic cleanups.
10216
10217         * alloc.c (Fmake_byte_code):
10218         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10219         etc. macros which declare their own args now.
10220
10221         * alloc.c (syms_of_alloc):
10222         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10223
10224         * buffer.c:
10225         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10226
10227         * buffer.c (Fget_file_buffer):
10228         Fixed GCPRO problem.
10229
10230         * buffer.c (get_truename_buffer):
10231         Fixed comment about GC checking.
10232
10233         * buffer.c (syms_of_buffer):
10234         Undeclared those dedicated frame funs.
10235         [2].
10236
10237         * buffer.h:
10238         Define convenience macros for internal/external conversions.
10239         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10240         and Qenvironment_variable_encoding for cleaner code.
10241
10242         * bufslots.h:
10243         Remove dedicated-frame; in lisp.
10244
10245         * bytecode.c (funcall_compiled_function):
10246         [1].
10247
10248         * bytecode.c (syms_of_bytecode):
10249         [2].
10250
10251         * console-msw.c:
10252         * console-msw.c (mswindows_show_console): Rewrote.
10253
10254         * console-msw.c (Fmswindows_debugging_output): New.
10255         Sends to OutputDebugString (special MSWin debugger interface).
10256
10257         * console-msw.c (Fmswindows_message_box):
10258         Fixed stupid bugs so it works when called from kill-emacs.
10259
10260         * console-msw.c (syms_of_console_mswindows):
10261         Declare Fmswindows_debugging_output.
10262
10263         * console-msw.h:
10264         New MSWin prototypes.
10265
10266         * console-msw.h (struct mswindows_frame):
10267         New entry last-click-mods for improved button-modifier support.
10268
10269         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10270         New struct entry `popup' with corresponding accessor.
10271
10272         * console-x.c:
10273         * console-x.c (split_up_display_spec):
10274         * console-x.c (get_display_arg_connection):
10275         * console-x.c (x_semi_canonicalize_console_connection):
10276         * console-x.c (x_canonicalize_device_connection):
10277         [[[6]]]: Change char to more specific type.
10278         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10279
10280         * console-x.c (x_semi_canonicalize_console_connection):
10281         * console-x.c (x_canonicalize_device_connection):
10282         [[[9]]]: Fix up error signalling to use new structured error system.
10283
10284         * console-x.h:
10285         [[[4]]]: Define codesys aliases:
10286         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10287         Qx_color_name_encoding, Qx_display_name_encoding.
10288
10289         * console.h (struct console_methods):
10290         New method make_dialog_box_internal supersedes older
10291         popup_dialog_box method.
10292
10293         * data.c:
10294         Define many new errors, part of new structured errors.
10295
10296         * data.c (init_errors_once_early):
10297         * data.c (syms_of_data):
10298         [2].
10299
10300         * device-msw.c (mswindows_init_device):
10301         [[[5]]]: Cleanup to support NT 3.51.
10302
10303         * device-msw.c (decode_devmode): Cleanup.
10304
10305         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10306         * device-msw.c (mswindows_handle_print_dialog_box):
10307         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10308         * device-msw.c (syms_of_device_mswindows):
10309         Delete the dialog box primitives recently introduced by Kirill and
10310         instead interface to general dialog box interface.
10311
10312         * device-x.c:
10313         * device-x.c (compute_x_app_name):
10314         * device-x.c (x_init_device):
10315         * device-x.c (Fx_valid_keysym_name_p):
10316         * device-x.c (Fx_set_font_path):
10317         [6].
10318         [7].
10319
10320         * device.h (wrap_device): New.
10321         First of its kind; meant to replace XSETDEVICE.
10322
10323         * dialog-msw.c: Many file-dialog symbols.
10324
10325         * dialog-msw.c (mswindows_register_popup_frame): New.
10326         * dialog-msw.c (mswindows_is_dialog_msg): New.
10327         For supporting kbd traversal in dialog boxes.
10328
10329         * dialog-msw.c (dialog_proc):
10330         Support hitting ESC in dialogs.
10331
10332         * dialog-msw.c (struct):
10333         Common dialog box errors.
10334
10335         * dialog-msw.c (handle_file_dialog_box): New.
10336         Add file dialog code.
10337
10338         * dialog-msw.c (handle_question_dialog_box):
10339         Redo existing code to support new question dialog syntax.
10340
10341         * dialog-msw.c (console_type_create_dialog_mswindows):
10342         We support new dialog console method.
10343
10344         * dialog-msw.c (syms_of_dialog_mswindows):
10345         * dialog-msw.c (vars_of_dialog_mswindows):
10346         New file dialog symbols, vars.
10347
10348         * dialog-x.c:
10349         * dialog-x.c (maybe_run_dbox_text_callback):
10350         * dialog-x.c (dbox_descriptor_to_widget_value):
10351         * dialog-x.c (x_make_dialog_box_internal):
10352         * dialog-x.c (console_type_create_dialog_x):
10353         Mule-ize entire file.
10354         Redo to support question dialog syntax.
10355         [6].
10356
10357         * dialog.c:
10358         * dialog.c (Fmake_dialog_box_internal):
10359         * dialog.c (syms_of_dialog):
10360         Kill old popup-dialog-box, replace with new primitive.
10361         Just call device method or signal error.
10362
10363         * eldap.c (Fldap_open):
10364         * eldap.c (Fldap_search_basic):
10365         * eldap.c (Fldap_add):
10366         * eldap.c (Fldap_modify):
10367         [1].
10368         [7].
10369
10370         * emacs.c:
10371         * emacs.c (make_arg_list_1):
10372         * emacs.c (make_arg_list):
10373         Mule-ize call to dll_init().
10374         [6].
10375         [8].
10376
10377         * emacs.c (make_argc_argv):
10378         * emacs.c (free_argc_argv):
10379         * emacs.c (init_cmdargs):
10380         * emacs.c (main_1):
10381         * emacs.c (Fkill_emacs):
10382         * emacs.c (Fdump_emacs):
10383         Update comments about what can be used in syms_* etc.
10384         Call init_win32() when necessary.
10385         Fix up MS Win dialog box in kill-buffer to actually work right.
10386         [7].
10387
10388         * eval.c:
10389         * eval.c (For):
10390         * eval.c (Fand):
10391         * eval.c (Fprogn):
10392         * eval.c (Fprog1):
10393         * eval.c (Fprog2):
10394         * eval.c (FletX):
10395         * eval.c (Flet):
10396         * eval.c (condition_case_3):
10397         * eval.c (Feval):
10398         * eval.c (function_argcount):
10399         * eval.c (funcall_lambda):
10400         [1].
10401
10402         * eval.c (type_error): New.
10403         * eval.c (maybe_type_error): New.
10404         * eval.c (continuable_type_error): New.
10405         * eval.c (maybe_continuable_type_error): New.
10406         * eval.c (type_error_with_frob): New.
10407         * eval.c (maybe_type_error_with_frob): New.
10408         * eval.c (continuable_type_error_with_frob): New.
10409         * eval.c (maybe_continuable_type_error_with_frob): New.
10410         New functions for use with structured errors.
10411
10412         * event-Xt.c:
10413         * event-Xt.c (x_event_to_emacs_event):
10414         Buttons are now modifiers too.
10415
10416         * event-Xt.c (emacs_Xt_current_event_timestamp):
10417         Implement new event method.
10418         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10419
10420         * event-msw.c:
10421         * event-msw.c (ntpipe_shove_writer): [5].
10422         * event-msw.c (mswindows_enqueue_mouse_button_event):
10423         * event-msw.c (mswindows_drain_windows_queue):
10424         * event-msw.c (mswindows_wnd_proc): [7].
10425         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10426         * event-msw.c (mswindows_modifier_state):
10427         Throughout: support new button modifiers.
10428
10429         * event-msw.c (emacs_mswindows_current_event_timestamp):
10430         Implement new event method.
10431         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10432
10433         * event-stream.c:
10434         * event-stream.c (event_stream_current_event_timestamp): New.
10435         * event-stream.c (maybe_kbd_translate): New functionality.
10436         * event-stream.c (vars_of_event_stream):
10437         Document new kbd-translate-table functionality.
10438
10439         * event-stream.c (Fcurrent_event_timestamp): New.
10440         New primitive for use in fabricated events.
10441         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10442
10443         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10444
10445         * events.c:
10446         * events.c (Fmake_event):
10447         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10448         [1].
10449         [9].
10450
10451         * events.c (format_event_object): fix gcc warnings.
10452
10453         * events.c (Fevent_timestamp): Document new primitives.
10454
10455         * events.c (TIMESTAMP_HALFSPACE): New.
10456
10457         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10458         comparing timestamps correctly (half-space algorithm).
10459
10460         * events.c (Fevent_modifier_bits): Doc fix.
10461
10462         * events.c (Fevent_modifiers): Major doc addition.
10463         * events.c (event_x_y_pixel_internal): Typo fix.
10464         * events.c (syms_of_events): Declare new primitives.
10465
10466         * events.h:
10467         Update long comment for button modifiers, timestamps.
10468
10469         * events.h (struct event_stream):
10470         New current_event_timestamp method.
10471
10472         * extents.c:
10473         * extents.c (extent_in_region_p):
10474         * extents.c (decode_extent):
10475         * extents.c (Fset_extent_parent):
10476         * extents.c (decode_map_extents_flags):
10477         Fix gcc warnings.
10478         [9].
10479
10480         * extents.c (struct extent_at_arg):
10481         * extents.c (decode_extent_at_flag):
10482         * extents.c (extent_at_mapper):
10483         * extents.c (extent_at_bytind):
10484         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10485         * extents.c (Fextents_at): New primitive. [9].
10486         * extents.c (symbol_to_glyph_layout): [9].
10487         Support new primitive `extents-at'.
10488
10489
10490         * extents.c (get_text_property_bytind):
10491         extent_at_bytind has another arg.
10492         [9].
10493
10494         * extents.c (syms_of_extents): New primitive.
10495
10496         * file-coding.c (Fmake_coding_system): [1].
10497         * file-coding.c (subsidiary_coding_system): fix gcc warning
10498         * file-coding.c (syms_of_file_coding): [2].
10499
10500         * fileio.c (Fexpand_file_name):
10501         * fileio.c (Fsysnetunam):
10502         * fileio.c (Ffile_exists_p):
10503         * fileio.c (Ffile_executable_p):
10504         * fileio.c (Fverify_visited_file_modtime):
10505         Clean up GCPROing.
10506
10507         * fileio.c (syms_of_fileio): [2].
10508
10509         * filelock.c (lock_file_1):
10510         * filelock.c (current_lock_owner):
10511         * filelock.c (lock_if_free):
10512         * filelock.c (lock_file):
10513         * filelock.c (unlock_file):
10514         Clean up GCPROing.
10515
10516         * fns.c (concat): Fix gcc warning.
10517
10518         * fns.c (Fmember):
10519         * fns.c (Fold_member):
10520         * fns.c (Fmemq):
10521         * fns.c (Fold_memq):
10522         * fns.c (memq_no_quit):
10523         * fns.c (Fassoc):
10524         * fns.c (Fold_assoc):
10525         * fns.c (Fassq):
10526         * fns.c (Fold_assq):
10527         * fns.c (assq_no_quit):
10528         * fns.c (Frassoc):
10529         * fns.c (Fold_rassoc):
10530         * fns.c (Frassq):
10531         * fns.c (Fold_rassq):
10532         * fns.c (rassq_no_quit):
10533         * fns.c (Fdelete):
10534         * fns.c (Fold_delete):
10535         * fns.c (Fdelq):
10536         * fns.c (Fold_delq):
10537         * fns.c (delq_no_quit):
10538         * fns.c (Fremassoc):
10539         * fns.c (Fremassq):
10540         * fns.c (remassq_no_quit):
10541         * fns.c (Fremrassoc):
10542         * fns.c (Fremrassq):
10543         * fns.c (remrassq_no_quit):
10544         * fns.c (Freverse):
10545         * fns.c (mapcar1):
10546         [1].
10547
10548         * frame-msw.c (mswindows_init_frame_1):
10549         * frame-msw.c (mswindows_delete_frame):
10550         Register popups with dialog code so keyboard traversing works.
10551
10552         * frame-tty.c (tty_raise_frame_no_select): [1].
10553
10554         * frame-x.c:
10555         * frame-x.c (x_set_frame_text_value):
10556         * frame-x.c (x_set_frame_properties):
10557         * frame-x.c (x_create_widgets):
10558         [7].
10559
10560         * frame.c:
10561         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10562
10563         * frame.h (wrap_frame): New.
10564         Macro like wrap_device.
10565
10566         * general.c:
10567         * general.c (SYMBOL):
10568         * general.c (syms_of_general):
10569         Major reorg.  This is now just a wrapper and symbols themselves
10570         are listed in general-slots.h.
10571
10572         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10573         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10574
10575         * glyphs-msw.c (mswindows_native_layout_instantiate):
10576         Add DS_CONTROL so keyboard traversal will work.
10577
10578         * glyphs-widget.c:
10579         * glyphs-widget.c (syms_of_glyphs_widget):
10580         Move some symbols to general-slots.h.
10581
10582         * glyphs-x.c:
10583         * glyphs-x.c (xbm_instantiate_1):
10584         * glyphs-x.c (x_xbm_instantiate):
10585         * glyphs-x.c (x_xface_instantiate):
10586         * glyphs-x.c (autodetect_instantiate):
10587         * glyphs-x.c (cursor_font_instantiate):
10588         * glyphs-x.c (x_update_widget):
10589         * glyphs-x.c (x_widget_instantiate):
10590         * glyphs.c (bitmap_to_lisp_data):
10591         * glyphs.c (pixmap_to_lisp_data):
10592         [7].
10593
10594         * glyphs.c (syms_of_glyphs):
10595         [2].
10596
10597         * gui-x.c:
10598         * gui-x.c (print_widget_value):
10599         * gui-x.c (menu_separator_style_and_to_external):
10600         * gui-x.c (add_accel_and_to_external):
10601         * gui-x.c (button_item_to_widget_value):
10602         * gui-x.c (gui_items_to_widget_values_1):
10603         * gui-x.c (gui_items_to_widget_values):
10604         * gui-x.c (syms_of_gui_x):
10605         * gui-x.c (vars_of_gui_x):
10606         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10607         [9].
10608
10609         * gui-x.h:
10610         Muleize, prototype changes matching gui-x.c.
10611
10612         * gui.c:
10613         * gui.c (separator_string_p):
10614         * gui.c (gui_item_add_keyval_pair):
10615         * gui.c (make_gui_item_from_keywords_internal):
10616         * gui.c (signal_too_long_error):
10617         * gui.c (parse_gui_item_tree_item):
10618         * gui.c (syms_of_gui):
10619         * gui.c (vars_of_gui):
10620         * gui.h:
10621         menu-no-selection-hook moved here (used by MSWin).
10622         Move some symbols to general-slots.h.
10623         [6].
10624         [9].
10625
10626         * insdel.c (get_buffer_pos_char):
10627         * insdel.c (get_buffer_range_char):
10628         Add GC comments.
10629
10630         * keymap.c (keymap_lookup_directly):
10631         * keymap.c (keymap_store):
10632         * keymap.c (ensure_meta_prefix_char_keymapp):
10633         * keymap.c (describe_map):
10634         * keymap.h:
10635         Support new button modifiers.
10636
10637         * lisp-disunion.h (wrap_object):
10638         * lisp-disunion.h (XSETOBJ):
10639         Rename make_obj to wrap_object.
10640
10641         * lisp-union.h:
10642         * lisp-union.h (make_int):
10643         * lisp-union.h (make_char):
10644         Support wrap_object.
10645
10646         * lisp.h:
10647         * lisp.h (LIST_LOOP):
10648         * lisp.h (EXTERNAL_LIST_LOOP):
10649         * lisp.h (LIST_LOOP_2):
10650         * lisp.h (EXTERNAL_LIST_LOOP_1):
10651         * lisp.h (EXTERNAL_LIST_LOOP_2):
10652         * lisp.h (EXTERNAL_LIST_LOOP_3):
10653         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10654         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10655         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10656         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10657         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10658         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10659         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10660         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10661         * lisp.h (struct Lisp_Symbol):
10662         * lisp.h (maybe_continuable_error_with_frob):
10663         Fix up section comments.
10664         Add new types for char to indicate usage.
10665         Delete symbols auto-generated from general-slots.h.
10666         Add prototypes for structured error functions.
10667         Add long comments describing looping macros and change interface
10668         so that lvalues are automatically declared.
10669         Add NO_DECLARE macro in case callers want to declare lvalues
10670         themselves.
10671
10672         * lread.c (read_syntax_error):
10673         * lread.c (continuable_read_syntax_error):
10674         * lread.c (read_structure):
10675         * lread.c (sequence_reader):
10676         * lread.c (read_list_conser):
10677         * lread.c (read_compiled_function):
10678         Rename syntax_error and continuable_syntax_error to avoid clash
10679         with same-named structured error functions.
10680
10681         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10682         * menubar-msw.c (populate_menu_add_item):
10683         * menubar-msw.c (populate_or_checksum_helper):
10684         [5].
10685         [9].
10686
10687         * menubar-x.c:
10688         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10689         Mule-ize whole file.
10690
10691         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10692
10693         * mule-charset.c (Fmake_charset):
10694         * mule-wnnfns.c (Fwnn_set_param):
10695         [1].
10696
10697         * ntproc.c (create_child):
10698         * ntproc.c (Fwin32_set_current_locale):
10699         Add comments portending doom.
10700
10701         * objects-msw.c:
10702         * objects-msw.c (old_font_enum_callback_2):
10703         * objects-msw.c (font_enum_callback_1):
10704         * objects-msw.c (mswindows_enumerate_fonts):
10705         [5].
10706
10707         * objects-x.c:
10708         * objects-x.c (allocate_nearest_color):
10709         * objects-x.c (x_parse_nearest_color):
10710         * objects-x.c (x_initialize_color_instance):
10711         * objects-x.c (x_print_color_instance):
10712         * objects-x.c (x_finalize_color_instance):
10713         * objects-x.c (x_valid_color_name_p):
10714         * objects-x.c (x_initialize_font_instance):
10715         * objects-x.c (x_print_font_instance):
10716         * objects-x.c (valid_x_font_name_p):
10717         * objects-x.c (truename_via_FONT_prop):
10718         * objects-x.c (truename_via_random_props):
10719         * objects-x.c (truename_via_XListFonts):
10720         * objects-x.c (x_font_truename):
10721         * objects-x.c (x_font_instance_truename):
10722         * objects-x.c (x_font_instance_properties):
10723         * objects-x.c (x_list_fonts):
10724         * objects-x.c (x_find_charset_font):
10725         Mule-ize entire file.
10726         [7].
10727
10728         * objects-x.h:
10729         Mule-verify.
10730
10731         * print.c:
10732         * print.c (std_handle_out_external):
10733         * print.c (debug_print_no_newline):
10734         * print.c (syms_of_print):
10735         Output to all debugger kinds in debug-print.
10736         Fix console-output code under MSWin to actually work.
10737
10738         * process-nt.c (send_signal):
10739         * process-nt.c (nt_create_process):
10740         Use newer Unicode macros.
10741
10742         * process-unix.c (unix_create_process):
10743         * process-unix.c (unix_canonicalize_host_name):
10744         * process-unix.c (unix_open_network_stream):
10745         [7].
10746
10747         * scrollbar-x.c:
10748         Mule-verify.
10749
10750         * search.c (syms_of_search):
10751         [2].
10752
10753         * select-msw.c (mswindows_destroy_selection):
10754         Use LIST_LOOP_2.
10755
10756         * select-x.c (symbol_to_x_atom):
10757         [7].
10758
10759         * select.c (syms_of_select):
10760         [2].
10761
10762         * sound.c (Fplay_sound_file):
10763         [7].
10764
10765         * specifier.c:
10766         * specifier.c (decode_specifier_type):
10767         * specifier.c (Fvalid_specifier_locale_type_p):
10768         * specifier.c (check_valid_locale_or_locale_type):
10769         * specifier.c (decode_locale):
10770         * specifier.c (decode_locale_type):
10771         * specifier.c (decode_locale_list):
10772         * specifier.c (check_valid_domain):
10773         * specifier.c (decode_specifier_tag_set):
10774         * specifier.c (Fcanonicalize_tag_set):
10775         * specifier.c (Fdefine_specifier_tag):
10776         * specifier.c (Fspecifier_tag_predicate):
10777         * specifier.c (check_valid_inst_list):
10778         * specifier.c (check_valid_spec_list):
10779         * specifier.c (decode_how_to_add_specification):
10780         * specifier.c (check_modifiable_specifier):
10781         * specifier.c (specifier_add_spec):
10782         * specifier.c (boolean_validate):
10783         * specifier.c (display_table_validate):
10784         [9].
10785
10786         * specifier.c (syms_of_specifier):
10787         Move some symbols to general-slots.h.
10788         [2].
10789
10790         * symbols.c:
10791         * symbols.c (Fmapatoms):
10792         * symbols.c (Fapropos_internal):
10793         Add GCPROs.
10794
10795         * symbols.c (set_default_buffer_slot_variable):
10796         * symbols.c (set_default_console_slot_variable):
10797         [1].
10798
10799         * symbols.c (defsymbol_massage_name_1):
10800         * symbols.c (defkeyword_massage_name):
10801         * symbols.c (deferror_1):
10802         * symbols.c (deferror):
10803         * symbols.c (deferror_massage_name_and_message):
10804         * symeval.h:
10805         * symeval.h (DEFSYMBOL):
10806         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10807
10808         * symbols.c (syms_of_symbols):
10809         [2].
10810
10811         * symsinit.h:
10812         * symsinit.h (init_win32): New.
10813         Also new is syms_of_dialog_mswindows.
10814
10815         * syswindows.h:
10816         Add new Unicode macros, missing Cygwin wide-char functions,
10817         convenience conversion macros for Qmswindows_tstr, macros for
10818         encapsulating required MSWin <-> Cygwin filename conversions,
10819         prototype for dynamically-extracted (not in NT 3.51) functions.
10820
10821         * toolbar-x.c:
10822         Mule-verify.
10823
10824         * tooltalk.c (Fadd_tooltalk_message_arg):
10825         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10826         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10827         [7].
10828
10829         * tooltalk.c (syms_of_tooltalk):
10830         [2].
10831
10832         * unexnt.c:
10833         * unexnt.c (unexec):
10834         Fix up headers, declaration of unexec() to be more standard.
10835
10836 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10837
10838         * offix.h: Revert change to guard macros - they're used in offix.c!
10839
10840 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10841
10842         * lisp.h: Defsubred Fdelete.
10843
10844         * console-msw.h:  (msprinter_default_printer): Added.
10845
10846         * console-msw.c (msprinter_canonicalize_console_connection):
10847         (msprinter_canonicalize_device_connection): Added.
10848
10849         * device-msw.c (msprinter_default_printer):
10850         (Fmswingows_get_default_printer):
10851         (signal_enum_priner_error):
10852         (Fmswingows_printer_list): Added.
10853
10854 2000-07-19  Martin Buchholz <martin@xemacs.org>
10855
10856         * XEmacs 21.2.35 is released.
10857
10858 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10859
10860         * select-x.c (x_handle_selection_request):
10861         Text selected in xemacs and pasted into xterm failed to appear.
10862         Spelling fixes and cosmetic changes.
10863
10864 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10865
10866         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10867         XEmacs frame (fix for doubling chars in dialog boxes).
10868
10869 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10870
10871         * select.c (select_convert_in, select_convert_out):
10872         Don't call intern() every time.
10873
10874         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10875         * select.c (vars_of_select): Initialise them.
10876
10877 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10878
10879         * select.c (selection-coercible-types): New.
10880
10881         * select.c (own-selection-internal):
10882         * select.c (get-selection-internal):
10883         MULE bug fix - these should default to COMPOUND_TEXT and not
10884         STRING for MULE. I think.
10885
10886         * select.c (select_convert_out): Use selection-coercible-types
10887         to find types that we can attempt to perform coercions on.
10888
10889 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10890
10891         * mule-wnnfns.c:
10892         * mule-canna.c:
10893         Add coding: cookie to identify encoding.
10894
10895         * mule-canna.c (CANNA_mode_keys): make static.
10896         Use proper prototypes, even for functions of no arguments.
10897         Remove external prototype for Fding().
10898
10899         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10900
10901         * select.c (syms_of_select): Add missing DEFSUBR.
10902
10903 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10904
10905         * select.c (get_selection_internal, own_selection_internal):
10906         Make the type default to STRING, rather than placing a nil type
10907         into Vselection_alist.
10908
10909 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10910
10911         * gpmevent.c (tty_selection_exists_p):
10912         * gpmevent.c (tty_own_selection):
10913         Updated parameter lists.
10914
10915 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10916
10917         * select.h (selection-alist): Removed declaration.
10918
10919         * select.h (get_local_selection):
10920         * select.c (get_local_selection):
10921         Made static.
10922
10923         * select.h (convert_selection): Removed declaration.
10924         * select.c (convert_selection): Removed.
10925         This function belongs in Lisp.
10926
10927         * select.h (select_convert_in): Declare.
10928         * select.h (select_convert_out): Declare.
10929         * select.c (select_convert_in): New.
10930         * select.c (select_convert_out): New.
10931         New conversion functions for other files to call.
10932
10933         * select.h (select_notify_buffer_kill): Declare.
10934         * select.c (select_notify_buffer_kill): New.
10935         New functions that get called from kill-buffer.
10936
10937         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10938         X-specific lisp code.
10939
10940         * select.h: Declare some of the lisp-visible functions for
10941         external use.
10942
10943         * select.c (clean_local_selection_data): Removed. This was
10944         a disgusting function, and previously should have been in
10945         select-x.c in any case. The functionality is now provided
10946         in select-convert-from-integer (select.el).
10947
10948         * select.c (available-selection-types): Fixed stupidity where
10949         INTEGER and ATOM got added twice. Also add STRING when we see an
10950         extent.
10951
10952         * select.c (get-selection-internal): Removed symbol stripping. No
10953         longer causes conversion when data comes from the internal cache.
10954
10955         * select.c (syms_of_select): Added new functions.
10956
10957         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10958         error checking - previously this called abort!
10959
10960         * select-x.c (x_own_selection): Changed comment.
10961
10962         * select-x.c (x_handle_selection_request): Use select_convert_out.
10963         Don't mess with selection-alist; it's an internal variable of select.c.
10964
10965         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10966
10967         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10968         rather than messing with selection-alist.
10969
10970         * select-msw.c (mswindows_get_foreign_selection):
10971         Use TO_INTERNAL_FORMAT rather than hacking.
10972
10973 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10974
10975         * process-unix.c (unix_open_multicast_group):
10976         (unix_open_multicast_group): Remove useless casts.
10977
10978 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10979
10980         * sound.c (Fplay_sound): Fix `unused variable' warning.
10981
10982         * emacs.c (main): Use correct type for _environ on SCO5.
10983
10984 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10985
10986         * console.h (own_selection_method):
10987         * console.h (selection_exists_p_method):
10988         * console.h (available_selection_types_method): New.
10989         * console.h (register_selection_data_type_method): New.
10990         * console.h (selection_data_type_name): New.
10991
10992         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10993         function & alist to track GlobalAlloc()'d handles that need
10994         releasing when the clipboard data gets replaced or emptied.
10995
10996         * event-msw.c (mswindows_wnd_proc): Call it.
10997
10998         * lisp.h, general.c (Qappend): New symbol representing a
10999         `how-to-add' mode.
11000
11001         * select.c (own-selection-internal):
11002         * select.c (selection-exists-p):
11003         * select.c (available-selection-types): New.
11004         * select.c (register-selection-data-type): New.
11005         * select.c (selection-data-type-name): New.  New functions to deal
11006         with device-specific selection data formats.
11007         * select.c (selection-converter-out-alist): Renamed.
11008         * select.c (selection-converter-in-alist): New.
11009         * select.c (selection-appender-alist): New.  Added new alists.
11010         * select.c (syms_of_select, vars_of_select): Added new symbols &
11011         variables.
11012         * select.c (get_local_selection): Split.
11013         * select.c: Removed spurious type checking - selections may now be
11014         of any type, not just strings.
11015         * select.c (own-selection-internal):
11016
11017         * select.h, select.c (convert_selection): New. Created
11018         convert_selection() function based on get_local_selection().
11019         * select.h, select.c (QCF_*): New symbols representing mswindows
11020         clipboard formats.
11021         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11022         symbols representing `how-to-add' modes.
11023
11024         * select-msw.c (x_sym_p): New.
11025         * select-msw.c (symbol_to_ms_cf): New.
11026         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11027         symbols & clipboard formats. Can also handle string names.
11028         * select-msw.c (mswindows_own_selection):
11029         * select-msw.c (mswindows_selection_exists_p):
11030         Added `data-type' parameter. Use it.
11031         * select-msw.c (mswindows_available_selection_types): New.
11032         * select-msw.c (mswindows_register_selection_data_type): New.
11033         * select-msw.c (mswindows_selection_data_type_name): New.
11034         * select-msw.c (mswindows_own_selection):
11035         * select-msw.c (mswindows_get_foreign_selection):
11036         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11037         * select-msw.c (console_create_select_mswindows): Added new methods.
11038         * select-msw.c (mswindows_destroy_selection): New.
11039         * select-msw.c (Vhandle_alist): New list.
11040         * select-msw.c (mswindows_own_selection):
11041
11042         * select-x.c (x_own_selection):
11043         * select-x.c (x_selection_exists_p):
11044         * select-x.c: Added some comments about maybe using new
11045         functionality.
11046         * select-x.c (x_own_selection):
11047
11048         * specifier.c: Remove definition of Qappend (now in general.c)
11049         * specifier.c (syms_of_specifier): Remove Qappend.
11050
11051 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11052
11053         * config.h.in: Add socklen_t.
11054
11055         * s/decosf4-0.h: No special compiler flags needed or desired.
11056         In particular, undefine _BSD for DEC OSF 4.0.
11057
11058 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11059
11060         * redisplay-msw.c (msprinter_frame_output_end): Added.
11061         (console_type_create_redisplay_mswindows): Referred the above.
11062
11063         * frame.c (setup_frame_without_minibuffer): Do not create a
11064         default minibuffer frame on a printer device.
11065
11066         * frame-msw.c (apply_dc_geometry): Added.
11067         (msprinter_start_page):
11068         (msprinter_init_frame_3):
11069         (msprinter_eject_page): Use it.
11070
11071         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11072         and removed residual duplex and orientation properties.
11073
11074 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11075
11076         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11077
11078         * unexalpha.c: Remove system prototypes from C sources!
11079
11080 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11081
11082         * eval.c: Remove references to M-x edit-options in DEFUNs for
11083         `defvar' and `defconst'.
11084
11085 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11086
11087         * config.h.in: Remove SMART_INCLUDE hackery.
11088
11089         PostgreSQL hacking:
11090         * config.h.in: Don't use SMART_INCLUDE.
11091
11092         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11093         * inline.c: Simply #include "postgresql.h"
11094         * postgresql.c:
11095         - Don't use SMART_INCLUDE
11096         - Use simply "const".
11097         - Use standard doc string conventions.
11098         - Use correct type for result of PQstatus.
11099
11100 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11101
11102         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11103
11104         C++ compilation changes.
11105         * config.h.in (EXTERN_C): Define.
11106         * config.h.in (not): This is also a C++ keyword.
11107         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11108         * cm.c: Use EXTERN_C.
11109         * redisplay-tty.c: Use EXTERN_C.
11110         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11111
11112 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11113
11114         * general.c: Remove duplicate definition for Qfunction.
11115
11116 2000-07-08  Ben Wing  <ben@xemacs.org>
11117
11118         * device-msw.c (msprinter_init_device):
11119         * device-msw.c (sync_printer_with_devmode):
11120         * device-msw.c (handle_devmode_changes):
11121         * device-msw.c (print_dialog_worker):
11122         * device-msw.c (Fmsprinter_apply_settings):
11123         * device-msw.c (hash_devmode):
11124         * device-msw.c (Fmsprinter_settings_despecialize):
11125         use Qmswindows_tstr, not Qctext.
11126
11127         * vm-limit.c (check_memory_limits):
11128         avoid infinite loop printing warning messages.
11129
11130 2000-07-05  Craig Lanning  <lanning@scra.org>
11131
11132         * Makefile.in.in: Add support for including the Windows resources
11133         when building with the cygwin and mingw targets.
11134
11135         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11136         not set or not correct.
11137         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11138         (init_initial_directory): Don't try to use $PWD on the
11139         WIN32_NATIVE target.
11140
11141         * s\cygwin32.h:
11142         [[Add -mwindows to eliminate console window.]] not required --ben
11143         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11144         (MAIL_USE_POP): removed; now handled by configure.
11145
11146         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11147         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11148         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11149         (MAIL_USE_POP): removed; now handled by configure.
11150         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11151         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11152         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11153         constant string.
11154         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11155         up from <winsock.h> via systime.h.
11156         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11157         (getpagesize): from Dan Holmsand, added.
11158         Added #endif which was left dangling by Ben's mega patch; added
11159         comment to help prevent this in the future.
11160
11161         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11162
11163 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11164
11165         * console-msw.h (struct mswindows_device): Removed unnecessary
11166         cached device geometry values.
11167         Added update_tick and an accessor macro.
11168         (Lisp_Devmode): Added lrecord declaration.
11169         (struct msprinter_device): Contain devmode as a Lisp object.
11170         Added mswindows_get_selected_frame_hwnd();
11171
11172         * console.h (struct console_methods): Indentation nitpicking.
11173
11174         * device-msw.c (mswindows_init_device): Do not initialize geometry
11175         cache. Initialize update tick.
11176         (mswindows_device_system_metrics): Ask the device for its geometry.
11177         (global_free_2_maybe):
11178         (devmode_to_hglobal):
11179         (handle_printer_changes):
11180         (ensure_not_printing):
11181         (print_dialog_worker):
11182         (Fmsprinter_print_setup_dialog):
11183         (Fmsprinter_print_dialog):
11184         (plist_get_margin):
11185         (plist_set_margin):
11186         (Fmsprinter_page_setup_dialog): Added functions.
11187         (sync_printer_with_devmode):
11188         (handle_devmode_changes):
11189         (Fmsprinter_get_settings):
11190         (Fmsprinter_select_settings):
11191         (Fmsprinter_apply_settings):
11192         (allocate_devmode):
11193         (Fmsprinter_settings_copy):
11194         (Fmsprinter_settings_despecialize):
11195         (print_devmode):
11196         (finalize_devmode):
11197         (equal_devmode):
11198         (hash_devmode): Added functions
11199         (syms_of_device_mswindows): Init devmode lrecord class.
11200
11201         * device.h: Added an exfun for find-device.
11202
11203         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11204         geometry; although, recreate the device compatible DC.
11205
11206         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11207         (msprinter_init_frame_3):
11208         (msprinter_frame_property):
11209         (msprinter_internal_frame_property_p):
11210         (msprinter_frame_properties):
11211         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11212         print job properties (will move to device settings).
11213
11214         * lisp.h: Added symbols.
11215
11216         * general.c (syms_of_general): Declared them.
11217
11218         * hash.c (string_hash): Added.
11219
11220         * lrecord.h (lrecord_type): Added devmode lrecord type.
11221
11222 2000-07-02  Mike Sperber <mike@xemacs.org>
11223
11224         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11225         FreeBSD 4.0.
11226
11227 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11228
11229         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11230         integer.
11231
11232 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11233
11234         * data.c (Fstring_to_number): Don't recognize floating point if
11235         base is not 10.
11236
11237 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11238
11239         * glyphs-widget.c (tab_control_query_geometry):
11240         (widget_query_geometry):
11241         (button_query_geometry):
11242         * glyphs.c (text_query_geometry):
11243         Enforce type correctness.
11244
11245 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11246
11247         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11248         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11249
11250 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11251
11252         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11253         conflicts with gcc's fixincluded version of FOO.h.
11254
11255         * glyphs.h (image_instance_geometry): Remove trailing `,'
11256
11257 2000-06-08  Mike Alexander  <mta@arbortext.com>
11258
11259         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11260         (shove_thread): Don't write the same output twice
11261         (make_ntpipe_output_stream): Increase priority of shove thread
11262         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11263         chance to run
11264         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11265         it.
11266
11267 2000-06-12  Ben Wing  <ben@xemacs.org>
11268
11269         * s\mingw32.h (sigset):
11270         * s\windowsnt.h (sigset):
11271         rename msw_ to mswindows_ for consistency with general convention.
11272
11273 2000-06-12  Ben Wing  <ben@xemacs.org>
11274
11275         * console-msw.c:
11276         * console-msw.c (mswindows_get_console_hwnd):
11277         * console-msw.c (mswindows_ensure_console_allocated):
11278         * console-msw.c (mswindows_hide_console):
11279         * console-msw.c (mswindows_show_console):
11280         * console-msw.c (mswindows_ensure_console_buffered):
11281         * console-msw.c (mswindows_output_console_string):
11282         * console-msw.c (mswindows_windows9x_p):
11283         * console-msw.h:
11284         * device-msw.c (mswindows_get_workspace_coords):
11285         * device-msw.c (mswindows_device_system_metrics):
11286         * dialog-msw.c (mswindows_popup_dialog_box):
11287         * event-msw.c (mswindows_wnd_proc):
11288         * frame-msw.c (mswindows_size_frame_internal):
11289         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11290         * menubar-msw.c (displayable_menu_item):
11291         * menubar-msw.c (mswindows_char_is_accelerator):
11292         * nt.c:
11293         * nt.c (mswindows_sigset):
11294         * nt.c (mswindows_sigrelse):
11295         * nt.c (mswindows_sigpause):
11296         * nt.c (mswindows_raise):
11297         * nt.c (timer_proc):
11298         * ntproc.c:
11299         * ntproc.c (find_child_console):
11300         * ntproc.c (sys_kill):
11301         * print.c:
11302         * print.c (std_handle_out_external):
11303         * process-nt.c (find_child_console):
11304         * process-nt.c (send_signal_the_95_way):
11305         * process-nt.c (ensure_console_window_exists):
11306         * process-nt.c (nt_create_process):
11307         * syssignal.h:
11308         rename msw_ to mswindows_ for consistency with general convention.
11309
11310         * emacs.c:
11311         * dumper.c:
11312         include nt.h, not syswindows.h.
11313
11314         * nt.c (mswindows_fstat):
11315         * nt.c (mswindows_stat):
11316         prefix mswindows_ instead of attempting to directly override the
11317         library functions.  fix declarations.
11318
11319         * nt.h:
11320         include syswindows.h.  move some sysdep.h stuff here.
11321
11322         * ntheap.h:
11323         include syswindows.h, not <windows.h>.
11324
11325         * ntplay.c:
11326         clean up headers.
11327
11328         * sysdep.c:
11329         clean up headers.
11330
11331         * sysdep.c (sys_fstat):
11332         * sysdep.c (sys_stat):
11333         call mswindows versions when appropriate.
11334
11335         * sysdep.h:
11336         move mswin decls to nt.h.
11337
11338         * syswindows.h:
11339         add long comment describing appropriate use of the various windows
11340         headers.
11341
11342 2000-06-11  Ben Wing  <ben@xemacs.org>
11343
11344         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11345
11346 2000-06-10  Ben Wing  <ben@xemacs.org>
11347
11348         * Makefile.in.in (release):
11349         Correction to make sure xemacs.exe always dumped when correct.
11350
11351         * alloca.c:
11352         * balloon_help.c:
11353         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11354
11355         * buffer.c (set_buffer_internal):
11356         [[[[2]]]]: Remove HAVE_FEP code.
11357
11358         * buffer.c (init_initial_directory):
11359         [3].
11360
11361         * bytecode.c:
11362         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11363         individual files.
11364
11365         * callproc.c:
11366         * callproc.c (call_process_cleanup):
11367         * callproc.c (Fold_call_process_internal):
11368         * callproc.c (child_setup):
11369         * callproc.c (getenv_internal):
11370         * callproc.c (init_callproc):
11371         * callproc.c (vars_of_callproc):
11372         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11373         __CYGWIN32__ -> CYGWIN.
11374         DOS_NT -> WIN32_NATIVE.
11375         Remove MSDOS support/references, converting to WIN32_NATIVE
11376           where correct.
11377         __MINGW32__ -> MINGW.
11378         Fix windows.h includes.
11379         Remove bogus HAVE_NTGUI.
11380
11381         * config.h.in:
11382         [2].
11383
11384         * console-msw.c:
11385         mswindows_message_outputted added for use in allowing startup
11386         errors on the console to be seen.
11387
11388         * console-msw.c (msw_ensure_console_allocated):
11389         * console-msw.c (msw_output_console_string):
11390         * console-msw.c (DHEADER):
11391         * console-msw.c (DOPAQUE_DATA):
11392         * console-msw.c (DEVENT):
11393         * console-msw.c (DCONS):
11394         * console-msw.c (DCONSCDR):
11395         * console-msw.c (DSTRING):
11396         * console-msw.c (DVECTOR):
11397         * console-msw.c (DSYMBOL):
11398         * console-msw.c (DSYMNAME):
11399         Fix warnings.
11400
11401         * console-stream.c (stream_init_console):
11402         Fix text/binary problems.
11403
11404         * device-msw.c:
11405         * device-msw.c (mswindows_finish_init_device):
11406         * device-msw.c (mswindows_delete_device):
11407         [1].
11408
11409         * device.c (handle_asynch_device_change):
11410         [3].
11411
11412         * dgif_lib.c:
11413         * dgif_lib.c (DGifOpenFileName):
11414         * dgif_lib.c (DGifOpenFileHandle):
11415         * dgif_lib.c (DGifGetLine):
11416         * dgif_lib.c (DGifGetPixel):
11417         Added config.h/lisp.h, fix up includes.
11418         [1].
11419
11420         * dired-msw.c:
11421         [4].
11422
11423         * dired.c:
11424         * dired.c (file_name_completion):
11425         * dired.c (Ffile_attributes):
11426         * dired.c (syms_of_dired):
11427         [1].
11428
11429         * dumper.c:
11430         * dumper.c (pdump_file_unmap):
11431         * dumper.c (pdump_load):
11432         [1].
11433
11434         * editfns.c:
11435         * editfns.c (Ftemp_directory):
11436         * editfns.c (user_login_name):
11437         * editfns.c (Fuser_real_login_name):
11438         * editfns.c (get_home_directory):
11439         [1].
11440
11441         * elhash.c (finish_marking_weak_hash_tables):
11442         [[[[5]]]]: Fix GCC warnings.
11443
11444         * emacs.c:
11445         * emacs.c (mswindows_handle_hardware_exceptions):
11446         * emacs.c (make_arg_list_1):
11447         * emacs.c (main_1):
11448         * emacs.c (Fkill_emacs):
11449         * emacs.c (Fdump_emacs):
11450         [1].
11451         Fix problems with nested crashes, add long comment.
11452
11453         * event-Xt.c (init_event_Xt_late):
11454         [1].
11455
11456         * event-msw.c:
11457         * event-msw.c (mswindows_dde_callback):
11458         * event-msw.c (mswindows_handle_sticky_modifiers):
11459         * event-msw.c (mswindows_wnd_proc):
11460         [1].
11461         [5].
11462
11463         * events.c (character_to_event):
11464         [1].
11465
11466         * fileio.c:
11467         * fileio.c (Ffile_name_directory):
11468         * fileio.c (Ffile_name_nondirectory):
11469         * fileio.c (directory_file_name):
11470         * fileio.c (Fexpand_file_name):
11471         * fileio.c (Fsubstitute_in_file_name):
11472         * fileio.c (Ffile_name_absolute_p):
11473         * fileio.c (check_executable):
11474         * fileio.c (Ffile_readable_p):
11475         * fileio.c (Ffile_accessible_directory_p):
11476         * fileio.c (Ffile_modes):
11477         * fileio.c (Funix_sync):
11478         * fileio.c (vars_of_fileio):
11479         [1]. [4].
11480
11481         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11482
11483         Expand getdefdir defn.
11484         Fix bogus rename() comment.
11485
11486         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11487         to use standard XEmacs include files, e.g. sysfile.h, rather
11488         than system-specific includes.
11489
11490         * fns.c:
11491         * fns.c (Fsubseq):
11492         [5]. [6].
11493
11494         * frame.c (vars_of_frame):
11495         [1].
11496
11497         * getloadavg.c:
11498         * getloadavg.c (getloadavg):
11499         [1]. [6].
11500         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11501         (We don't use it elsewhere in the code; just add a comment.)
11502
11503         * gif_io.c:
11504         [6].
11505         Add config.h.
11506
11507         * glyphs-msw.c:
11508         * glyphs-msw.c (mswindows_resource_instantiate):
11509         [1].
11510
11511         * glyphs-x.c (x_native_layout_instantiate):
11512         [5].
11513
11514         * gui-msw.c (Fmswindows_shell_execute):
11515         [1].
11516
11517         * insdel.c:
11518         [4].
11519
11520         * lisp.h:
11521         [4]. [5].
11522
11523         * lread.c (locate_file_in_directory_mapper):
11524         [1].
11525
11526         * lstream.c:
11527         [4].
11528
11529         * mem-limits.h:
11530         * mem-limits.h (get_lim_data):
11531         [1].
11532
11533         * menubar-msw.c:
11534         [4].
11535
11536         * ndir.h:
11537         [1].
11538
11539         * nt.c:
11540         * nt.c (getwd):
11541         * nt.c (closedir):
11542         * nt.c (rva_to_section):
11543         * nt.c (mswindows_executable_type):
11544         [1]. [6].
11545         Fix closedir() defn.
11546
11547         * nt.h:
11548         [[[[8]]]]: *_OK defs moved to sysfile.h.
11549
11550         * ntproc.c:
11551         [6]. [7].
11552
11553         * objects-x.c:
11554         [4].
11555
11556         * print.c:
11557         * print.c (std_handle_out_external):
11558         [1]. [4].
11559
11560         * process-nt.c:
11561         * process-nt.c (nt_create_process):
11562         [6].
11563         try to fix process quoting somewhat.
11564
11565         * process-unix.c (unix_create_process):
11566         [1].
11567
11568         * process.c:
11569         * process.c (vars_of_process):
11570         Add Vnull_device.
11571
11572         * process.h:
11573         [1].
11574
11575         * realpath.c:
11576         * realpath.c (xrealpath):
11577         [1].
11578
11579         * redisplay-tty.c (init_tty_for_redisplay):
11580         [3].
11581
11582         * redisplay.c:
11583         [4]. [6].
11584
11585         * scrollbar-msw.c:
11586         [4].
11587
11588         * sheap.c:
11589         * sheap.c (more_static_core):
11590         * sheap.c (report_sheap_usage):
11591         [5]. [6].
11592
11593         * signal.c:
11594         * signal.c (alarm_signal):
11595         [1]. [6].
11596
11597         * sound.c:
11598         [6].
11599
11600         * strftime.c:
11601         * strftime.c (zone_name):
11602         [1]. [5].
11603
11604         * symsinit.h (init_sunpro):
11605         [1].
11606
11607         * syscommctrl.h:
11608         commctrl.h not in Cygwin b20.1.
11609
11610         * sysdep.c:
11611         * sysdep.c (endif):
11612         * sysdep.c (sys_subshell):
11613         * sysdep.c (init_baud_rate):
11614         * sysdep.c (emacs_get_tty):
11615         * sysdep.c (emacs_set_tty):
11616         * sysdep.c (tty_init_sys_modes_on_device):
11617         * sysdep.c (init_system_name):
11618         * sysdep.c (sys_open):
11619         * sysdep.c (interruptible_open):
11620         * sysdep.c (sys_fopen):
11621         * sysdep.c (sys_mkdir):
11622         * sysdep.c (sys_rename):
11623         * sysdep.c (get_process_times_1):
11624         [1]. [6].
11625
11626         * sysdep.h:
11627         [1].
11628
11629         * sysdir.h:
11630         * sysdir.h (DIRENTRY_NONEMPTY):
11631         [1]. [6].
11632
11633         * sysdll.c (dll_init):
11634         * sysdll.h:
11635         [1].
11636
11637         * sysfile.h:
11638         [1]. [6]. [8].
11639         added text/binary defs.
11640
11641         * sysfloat.h:
11642         [1].
11643
11644         * sysproc.h:
11645         * sysproc.h (EDESTADDRREQ):
11646         * sysproc.h (poll_fds_for_input):
11647         [1]. [6].
11648
11649         * syspwd.h:
11650         [6].
11651
11652         * syssignal.h:
11653         [1].
11654
11655         * systime.h:
11656         [1]. [6].
11657
11658         * systty.h:
11659         [1].
11660
11661         * syswindows.h:
11662         [1].
11663         Always define WIN32_LEAN_AND_MEAN.
11664
11665         * unexcw.c (unexec):
11666         [5].
11667
11668         * unexec.c:
11669         * unexec.c (copy_text_and_data):
11670         * unexec.c (adjust_lnnoptrs):
11671         [1].
11672
11673         * unexnt.c:
11674         * unexnt.c (_start):
11675         [1].
11676
11677 2000-06-07  Ben Wing  <ben@xemacs.org>
11678
11679         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11680         was used only as a model.  We've long since extracted any useful
11681         logic or code out of this. (I just did an exhaustive search.)
11682
11683         * s\msdos.h: Removed.
11684
11685         * s\windows95.h: Removed.
11686
11687 2000-06-10  Ben Wing  <ben@xemacs.org>
11688
11689         * s\cygwin32.h:
11690         [1]. [5].
11691         Don't use extern with fun defs.
11692
11693         * s\mingw32.h:
11694         [1]. [7].
11695         Remove nt\inc include.
11696         Remove getdisk, getdefdir. (The former is unused, the latter
11697         expanded in fileio.h.)
11698
11699         * s\windowsnt.h:
11700         * s\windowsnt.h (WIN32_NATIVE):
11701         * s\windowsnt.h (HAVE_STRCASECMP):
11702         [1]. [7].
11703         Add long comment about preprocessor changes.
11704         Remove getdisk, getdefdir. (The former is unused, the latter
11705         expanded in fileio.h.)
11706
11707 2000-06-10  Ben Wing  <ben@xemacs.org>
11708
11709         * m\arm.h:
11710         * m\delta.h:
11711         * m\intel386.h:
11712         * m\sequent.h:
11713         * m\template.h:
11714         * m\windowsnt.h:
11715         [1].
11716         Remove bogus/unused NO_SOCK_SIGIO.
11717
11718 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11719
11720         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11721         not an Emchar.
11722
11723 2000-06-04  Mike Sperber <mike@xemacs.org>
11724
11725         * casetab.c (set_case_table): For `set-standard-case-table',
11726         actually deposit the new case tables where the rest of XEmacs can
11727         see them.
11728
11729 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11730
11731         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11732
11733 2000-06-05  Ben Wing  <ben@xemacs.org>
11734
11735         * callproc.c (child_setup): Don't do close_load_descs() under
11736         MS Windows.  Put in a comment explaining why.
11737
11738 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11739
11740         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11741         Toolkit shell" which breaks `kill-compilation' on Windows NT
11742         native, retaining STDERR handling improvements.
11743
11744 2000-06-01  Andreas Jaeger  <aj@suse.de>
11745
11746         * s/s390.h: Support for S390, based on a patch by Martin
11747         Schwidefsky <schwidefsky@de.ibm.com>.
11748
11749 2000-05-30  Andy Piper  <andy@xemacs.org>
11750
11751         * window.c (allocate_window):
11752         (make_dummy_parent):
11753         (Fset_window_configuration): use new hashtable type.
11754
11755         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11756         (struct image_instantiator_methods):
11757         (struct Lisp_Image_Instance): make instance geometry signed.
11758
11759         * glyphs.c (instantiate_image_instantiator):
11760         (image_instance_query_geometry):
11761         (image_instance_layout):
11762         (image_instance_layout):
11763         (query_string_geometry):
11764         (text_query_geometry):
11765         (image_instantiate):
11766         (image_instantiate):
11767         (cache_subwindow_instance_in_frame_maybe):
11768         (subwindow_query_geometry): make instance geometry signed.
11769
11770         * glyphs-widget.c (widget_query_geometry):
11771         (widget_layout):
11772         (button_query_geometry):
11773         (tree_view_query_geometry):
11774         (tab_control_query_geometry):
11775         (layout_query_geometry):
11776         (layout_layout):
11777         (native_layout_layout): make instance geometry signed.
11778
11779 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11780
11781         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11782         constant.
11783
11784         * general.c (syms_of_general): Add Qfull_assoc symbol.
11785
11786         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11787         correctly.
11788         (decode_weak_list_type): Decode full-assoc type.
11789         (encode_weak_list_type): Encode full-assoc type.
11790         (Fmake_weak_list): Update doc string.
11791
11792 2000-05-30  Andy Piper  <andy@xemacs.org>
11793
11794         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11795
11796         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11797         (decode_hash_table_weakness): ditto.
11798         (Fhash_table_weakness): ditto.
11799         (Fhash_table_type): ditto.
11800         (finish_marking_weak_hash_tables): ditto.
11801         (hash_table_weakness_validate): ditto.
11802         (syms_of_elhash): ditto.
11803
11804 2000-05-28  Martin Buchholz <martin@xemacs.org>
11805
11806         * XEmacs 21.2.34 is released.
11807
11808 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11809
11810         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11811         start cache.
11812         (updating_line_start_cache): Gone.
11813         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11814         generic code to force a minimum of 1 line laid out in the
11815         CMOTION_DISP case.
11816
11817 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11818
11819         * glyphs.c (instantiate_image_instantiator): Check for initialized
11820         height & width no longer special cases IMAGE_NOTHING.
11821         (nothing_instantiate): Set height and width of instance.
11822
11823 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11824
11825         * unexelf.c (unexec): Search for ".data" section.
11826         Initialize new_data2_offset from old_data_index.
11827         Remove redundant check for ElfW.
11828
11829 2000-05-23  Andy Piper  <andy@xemacs.org>
11830
11831         * glyphs.c (get_image_instantiator_governing_domain): allow more
11832         specific domains as the governing domain rather than expecting an
11833         exact match. This fixes problems with layouts.
11834
11835 2000-05-22  Andy Piper  <andy@xemacs.org>
11836
11837         * redisplay-output.c (compare_runes): check for non-images
11838
11839         * glyphs.c (set_glyph_dirty_p): ditto.
11840         (update_glyph_cachel_data): ditto.
11841
11842         * glyphs-widget.c (layout_post_instantiate): ditto.
11843         (layout_post_instantiate): ditto.
11844
11845         * event-msw.c (mswindows_wnd_proc): warning removal.
11846
11847 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11848
11849         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11850
11851         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11852
11853         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11854
11855         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11856         (mswindows_executable_type): mingw32 now has enough headers for
11857         this to work.
11858
11859 2000-05-20  Andy Piper  <andy@xemacs.org>
11860
11861         * console-msw.c (mswindows_output_last_error): ; -> ,
11862
11863 2000-05-12  Andy Piper  <andy@xemacs.org>
11864
11865         * console-msw.c (FROB): compare ints with ints.
11866
11867 2000-05-11  Andy Piper  <andy@xemacs.org>
11868
11869         * glyphs-x.c (x_finalize_image_instance): make minimal build
11870         happy.
11871
11872 2000-05-20  Ben Wing  <ben@xemacs.org>
11873
11874         * event-Xt.c:
11875         * event-Xt.c (vars_of_event_Xt):
11876         move modifier-keys-are-sticky to event-stream.c.
11877
11878         * event-msw.c:
11879         * event-msw.c (mswindows_enqueue_mouse_button_event):
11880         * event-msw.c (key_needs_default_processing_p):
11881         * event-msw.c (XEMSW_LCONTROL):
11882         * event-msw.c (mswindows_handle_sticky_modifiers):
11883         * event-msw.c (FROB):
11884         * event-msw.c (clear_sticky_modifiers):
11885         * event-msw.c (output_modifier_keyboard_state):
11886         * event-msw.c (output_alt_keyboard_state):
11887         * event-msw.c (mswindows_wnd_proc):
11888         * event-msw.c (mswindows_modifier_state):
11889         * event-msw.c (emacs_mswindows_handle_magic_event):
11890         implement sticky modifiers.
11891
11892         * event-stream.c:
11893         * event-stream.c (vars_of_event_stream):
11894         move modifier-keys-are-sticky here.
11895
11896         * lisp.h:
11897         add CHECK_FUNCTION.
11898
11899         * rangetab.c:
11900         implement map-range-table.
11901
11902
11903 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11904
11905         * redisplay-tty.c (reset_tty_modes):
11906         (tty_redisplay_shutdown): Adjust argument type to
11907         tty_frame_output_end.
11908
11909 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11910
11911         * eval.c (Fbacktrace): Don't output a line with only right
11912         parenthesis.
11913
11914 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11915
11916         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11917         (Fpq_reset_poll): Ditto.
11918
11919 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11920
11921         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11922
11923 2000-05-16  Ben Wing  <ben@xemacs.org>
11924
11925         * buffer.c:
11926         * buffer.c (dfc_convert_to/from_internal_format):
11927         * buffer.c (reinit_vars_of_buffer):
11928         Fix conversion functions to allow reentrancy.
11929
11930         * console-msw.c:
11931         * console-msw.c (mswindows_output_last_error):
11932         New fun, generally useful -- output a human-readable
11933         version of GetLastError() on the console.
11934
11935         * console-msw.h:
11936         * console-msw.h (struct mswindows_frame):
11937         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11938
11939         * console-stream.c (stream_output_begin):
11940         * console-stream.c (stream_output_end):
11941         * console-stream.c (stream_output_vertical_divider):
11942         * console-stream.c (stream_clear_region):
11943         * console-stream.c (stream_flash):
11944         * console-stream.c (console_type_create_stream):
11945         Delete blank stream methods, not needed.
11946
11947         * console.h (struct console_methods):
11948         Split begin/end methods into window and frame.
11949
11950         * event-msw.c:
11951         * event-msw.c (mswindows_handle_paint):
11952         * event-msw.c (output_alt_keyboard_state):
11953         * event-msw.c (mswindows_wnd_proc):
11954         * event-msw.c (vars_of_event_mswindows):
11955         Comment about problems with ignored-expose.
11956         Define mswindows-debug-events; not really implemented.
11957
11958         * frame-msw.c (mswindows_init_frame_1):
11959         random cleanups.
11960
11961         * glyphs-msw.c:
11962         * glyphs-msw.c (begin_defer_window_pos):
11963         * glyphs-msw.c (mswindows_unmap_subwindow):
11964         * glyphs-msw.c (mswindows_map_subwindow):
11965         * glyphs-msw.c (mswindows_resize_subwindow):
11966         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11967
11968         * glyphs.c (make_image_instance_1):
11969         Fix crash.
11970
11971         * gutter.c (Fredisplay_gutter_area):
11972         Use new begin/end methods.
11973
11974         * lisp.h (Dynarr_new2):
11975         New creation fun.
11976
11977         * redisplay-msw.c:
11978         * redisplay-msw.c (mswindows_frame_output_begin):
11979         * redisplay-msw.c (mswindows_frame_output_end):
11980         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11981         New begin/end methods -- handle DeferWindowPos.
11982
11983         * redisplay-output.c (redisplay_move_cursor):
11984         * redisplay-output.c (redraw_cursor_in_window):
11985         * redisplay-output.c (redisplay_update_line):
11986         * redisplay-output.c (redisplay_output_window):
11987         New begin/end methods.
11988
11989         * redisplay-tty.c:
11990         * redisplay-tty.c (tty_frame_output_begin):
11991         * redisplay-tty.c (tty_frame_output_end):
11992         * redisplay-tty.c (console_type_create_redisplay_tty):
11993         New begin/end methods.
11994
11995         * redisplay-x.c:
11996         * redisplay-x.c (x_window_output_begin):
11997         * redisplay-x.c (x_window_output_end):
11998         * redisplay-x.c (console_type_create_redisplay_x):
11999         New begin/end methods.
12000
12001         * redisplay.c (redisplay_frame):
12002         * redisplay.c (Fredisplay_echo_area):
12003         New begin/end methods.
12004         use MAYBE_DEVMETH for clear_frame; it may not exist.
12005
12006         * window.h (WINDOW_XFRAME):
12007         WINDOW_XFOO macros -- get locale and decode struct pointer.
12008
12009
12010 2000-05-12  Ben Wing  <ben@xemacs.org>
12011
12012         * emacs.c:
12013         * emacs.c (ensure_no_quitting_from_now_on):
12014         * emacs.c (fatal_error_signal):
12015         * emacs.c (mswindows_handle_hardware_exceptions):
12016         * emacs.c (main):
12017         * emacs.c (Fkill_emacs):
12018         * emacs.c (shut_down_emacs):
12019         * emacs.c (assert_failed):
12020         various improvements in fatal error handling.
12021
12022         * eval.c:
12023         move preparing_for_armageddon to emacs.c.
12024
12025         * lisp.h:
12026         declare fatal_error_in_progress.
12027
12028         * print.c:
12029         * print.c (std_handle_out_external):
12030         * print.c (std_handle_out_va):
12031         * print.c (stderr_out):
12032         * print.c (stdout_out):
12033         use console under mswin when no standard output.
12034         don't do code conversion during fatal error.
12035
12036         * scrollbar.c (Fscrollbar_page_up):
12037         * scrollbar.c (Fscrollbar_page_down):
12038         fix missing else.  reindent.
12039
12040 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12041
12042         Emergency fix.
12043
12044         * glyphs.h (GLYPH_CACHEL_DESCENT):
12045         (GLYPH_CACHEL_DESCENT):
12046         (GLYPH_CACHEL_DESCENT):
12047         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12048         used in case these are inline functions.
12049         Use more absurd values to error check.
12050
12051         include window.h for error check functions.
12052
12053 2000-05-11  Ben Wing  <ben@xemacs.org>
12054
12055         * cmdloop.c (Freally_early_error_handler):
12056         Display message box under windows; otherwise, message will disappear
12057         before it can be viewed.
12058
12059         * console-msw.c:
12060         * console-msw.c (Fmswindows_message_box):
12061         * console-msw.c (FROB):
12062         * console-msw.c (syms_of_console_mswindows):
12063         Define new fun `mswindows-message-box'.
12064         #### I will merge this into `popup-dialog-box'; just give me
12065         a bit of time.
12066
12067         * general.c:
12068         * general.c (syms_of_general):
12069         Some new symbols used in `mswindows-message-box'.
12070
12071         * glyphs.c:
12072         * glyphs.c (Fset_image_instance_property):
12073         put warning in this fun.
12074
12075         * glyphs.h:
12076         * glyphs.h (GLYPH_CACHEL_WIDTH):
12077         * glyphs.h (GLYPH_CACHEL_ASCENT):
12078         * glyphs.h (GLYPH_CACHEL):
12079         * glyphs.h (GLYPH_CACHEL_GLYPH):
12080         define error-checking versions to try to catch a bug i've seen --
12081         redisplay gets in an infinite loop because the glyph width of the
12082         continuation glyph is 65535.
12083
12084         * lisp.h:
12085         Extern message-box stuff.
12086
12087         * window.c (allocate_window):
12088         * window.c (make_dummy_parent):
12089         * window.c (Fset_window_configuration):
12090         Use EQUAL not EQ for subwindow caches to make them work a bit
12091         better. (Something is still very broken.)
12092
12093
12094 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12095
12096         * glyphs.c (image_instantiate): Suppress gcc warnings.
12097         (Fmake_image_instance): Fix doc string.
12098         * specifier.c (Fmake_specifier): Ditto.
12099
12100 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12101
12102         * paths.h.in (PATH_LOCK): Removed.
12103         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12104         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12105
12106 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12107
12108         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12109         Document (featurep '(and xemacs 21.02)).
12110
12111 2000-05-09  Ben Wing  <ben@xemacs.org>
12112
12113         * buffer.c (complex_vars_of_buffer):
12114         update modeline-format doc.
12115
12116         * device.h:
12117         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12118
12119         * emacs.c:
12120         timeline of all released versions of Emacs, for use in creating
12121         authorship comments and in synching up.
12122
12123         * glyphs-widget.c (image_instantiator_buttons):
12124         * glyphs-widget.c (image_instantiator_edit_fields):
12125         * glyphs-widget.c (image_instantiator_combo_box):
12126         * glyphs-widget.c (image_instantiator_scrollbar):
12127         * glyphs-widget.c (image_instantiator_progress_guage):
12128         * glyphs-widget.c (image_instantiator_tree_view):
12129         * glyphs-widget.c (image_instantiator_tab_control):
12130         * glyphs-widget.c (image_instantiator_labels):
12131         * glyphs-widget.c (image_instantiator_layout):
12132         * glyphs-widget.c (image_instantiator_native_layout):
12133         rename decode_domain method to governing_domain.
12134
12135         * glyphs.c:
12136         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12137         * glyphs.c (add_entry_to_device_ii_format_list):
12138         make sure we don't put an entry more than once into the list.
12139         * glyphs.c (check_instance_cache_mapper):
12140         *************************************************************
12141         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12142         HAVE BEEN GETTING.
12143         *************************************************************
12144         * glyphs.c (get_image_instantiator_governing_domain):
12145         clean up, expand on new concept of governing domain.
12146         * glyphs.c (instantiate_image_instantiator):
12147         * glyphs.c (allocate_image_instance):
12148         use governing_domain instead of cache_domain in naming.
12149         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12150         * glyphs.c (make_image_instance_1):
12151         * glyphs.c (Fmake_image_instance):
12152         allow for any domain (not just device), and process the
12153         governing domain correctly.  very big doc fix.
12154         * glyphs.c (Fimage_instance_domain):
12155         new primitive, to retrieve the governing domain of an image instance.
12156         * glyphs.c (image_instantiate):
12157         use new governing_domain stuff.  this fixes a crash you could get
12158         by instantiating certain widget glyphs in frame locales. (should
12159         signal an error instead of crashing.)
12160         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12161         * glyphs.c (Fglyphp): clean up doc.
12162         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12163         * glyphs.c (syms_of_glyphs):
12164         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12165         * glyphs.c (image_instantiator_format_create): add some comments about
12166         bogus code.
12167         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12168         for current-display-table. (Apparently Hrjove implemented in 1998 a
12169         design I wrote up in 1996, but didn't update the doc string.)
12170
12171         * glyphs.h: clean up a doc string.
12172         * glyphs.h (governing_domain):
12173         * glyphs.h (struct image_instantiator_methods):
12174         changes for governing_domain stuff.
12175
12176         * gutter.c:
12177         * gutter.c (Fgutter_specifier_p):
12178         * gutter.c (Fgutter_size_specifier_p):
12179         * gutter.c (Fgutter_visible_specifier_p):
12180         * objects.c:
12181         * objects.c (Fcolor_specifier_p):
12182         * objects.c (Ffont_specifier_p):
12183         * objects.c (Fface_boolean_specifier_p):
12184         doc strings moved to make-*-specifier.
12185
12186         * redisplay.c (add_disp_table_entry_runes_1):
12187         * redisplay.c (generate_fstring_runes):
12188         * redisplay.c (screen):
12189         add random comments and doc strings.
12190
12191         * specifier.c:
12192         * specifier.c (Fmake_specifier):
12193         major overhaul of this doc string.
12194
12195         * specifier.c (Fvalid_specifier_domain_p):
12196         comment about the bogosity of image instances being domains.
12197         * specifier.c (decode_domain):
12198         now non-static, used in glyphs.c.
12199         * specifier.c (specifier_instance):
12200         comment about the bogosity of image instances being domains.
12201         * specifier.c (Fgeneric_specifier_p):
12202         move doc string to make-generic-specifier.
12203         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12204         rebackslashify.
12205
12206         * specifier.h:
12207         * specifier.h (DOMAIN_FRAME):
12208         * specifier.h (DOMAIN_LIVE_P):
12209         * specifier.h (DOMAIN_XDEVICE):
12210         rebackslashify.
12211         add comments about problems with these macros.
12212         prototype for decode_domain.
12213
12214         * toolbar.c:
12215         * toolbar.c (Ftoolbar_specifier_p):
12216         move doc string to `make-toolbar-specifier'.
12217
12218         * window.c (window_unmap_subwindows_cache_mapper):
12219         *************************************************************
12220         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12221         HAVE BEEN GETTING.
12222         *************************************************************
12223
12224 2000-05-09  Andy Piper  <andy@xemacs.org>
12225
12226         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12227
12228         * window.c (Fset_window_configuration): reset the frame subwindow
12229         cache and re-initialize the window subwindow caches.
12230
12231         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12232
12233 2000-05-09  Ben Wing  <ben@xemacs.org>
12234
12235         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12236         DWORD.
12237
12238 2000-04-26  Mike Woolley  <mike@bulsara.com>
12239
12240         * ntheap.c: Changed recreate_heap to limit the amount reserved
12241         for the heap to that which is actually available. Also now
12242         displays a message box (with some dignostics) in the event that
12243         it still can't start.
12244
12245 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12246
12247         * callproc.c (Fold_call_process_internal): GCPRO path
12248
12249 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12250
12251         Patch by Bill Perry.
12252
12253         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12254         back data instead of #ifdef.
12255         (Fscrollbar_page_down): ditto.
12256
12257 2000-05-07  Ben Wing  <ben@xemacs.org>
12258
12259         * buffer.h:
12260         Kludge for defining Qmswindows_tstr.
12261
12262         * nt.c:
12263         * nt.c (open_input_file):
12264         * nt.c (open_output_file):
12265         * nt.c (rva_to_section):
12266         * nt.c (mswindows_executable_type):
12267         Move all memory-mapped-file routines here (some were in unexnt.c,
12268         which is bad because they are used by process-nt.c, and unexnt
12269         won't be around when portable dumping).  Synched the above routines
12270         with FSF 20.6.
12271
12272         * nt.h:
12273         Removed ifdef'd out bogus code.
12274         Fixed some prototypes.
12275
12276         * nt.h (file_data):
12277         * nt.h (OFFSET_TO_RVA):
12278         * nt.h (RVA_TO_OFFSET):
12279         * nt.h (RVA_TO_PTR):
12280         Moved the memory-mapped-file structures, macros and prototypes
12281         here, to parallel nt.c.  ntheap.h should really be removed
12282         entirely, and it's a non-portable-dumper specific file.
12283
12284         * ntheap.h (round_to_next):
12285         Moved the memory-mapped-file structures, macros and prototypes
12286         to nt.h.
12287
12288         * ntproc.c (compare_env):
12289         Moved rva_to_section and mswindows_executable_type to nt.c.
12290         Moved compare_env to process-nt.c.
12291         ntproc.c will die, one day.
12292
12293         * ntproc.c (sys_spawnve):
12294         Account for win32_ -> mswindows_.
12295
12296         * process-nt.c:
12297         * process-nt.c (struct nt_process_data):
12298         * process-nt.c (ensure_console_window_exists):
12299         * process-nt.c (compare_env):
12300         * process-nt.c (nt_create_process):
12301         * process-nt.c (nt_kill_process_by_pid):
12302         * process-nt.c (syms_of_process_nt):
12303         * process-nt.c (vars_of_process_nt):
12304         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12305         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12306         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12307         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12308         Move compare_env here from ntproc.c.
12309
12310         * process.c (Fprocess_send_region):
12311         Takes an optional fourth argument, BUFFER, which should fix some
12312         problems with call-process.
12313
12314         * syscommctrl.h:
12315         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12316
12317         * syswindows.h:
12318         Move ICC_BAR_CLASSES to syscommctrl.h.
12319         Add preliminary macros for MSWindows/Mule.  More to come.
12320
12321         * unexnt.c:
12322         * unexnt.c (unexec):
12323         open_output_file moved to nt.c.
12324
12325
12326 2000-05-05  Andy Piper  <andy@xemacs.org>
12327
12328         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12329         instance from the frame cache also since GC may catch up too late
12330         to make frame deletion sane.
12331
12332 2000-05-04  Andy Piper  <andy@xemacs.org>
12333
12334         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12335         (x_finalize_image_instance): ungcpro on deletion.
12336
12337         * glyphs.c (image_instantiator_format_create): give pointers a
12338         query geometry method so that the geometry is at least set.
12339
12340         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12341         initialize layouts if using widgets.
12342
12343 2000-05-03  Andy Piper  <andy@xemacs.org>
12344
12345         * nt.c: remove bogus reference to sysmmsystem.h
12346
12347         * gui-x.c (popup_selection_callback): fix no selection abort.
12348
12349 2000-05-02  Andy Piper  <andy@xemacs.org>
12350
12351         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12352         (mswindows_widget_instantiate): ditto.
12353
12354         * glyphs-widget.c (initialize_widget_image_instance): initialize
12355         children correctly.
12356         (widget_instantiate): cope with children and items in the same
12357         instance.
12358
12359         * glyphs.c (mark_image_instance): cope with children as a first
12360         class member.
12361         (image_instance_equal): ditto.
12362         (image_instance_hash): ditto.
12363         (image_instance_changed): ditto.
12364
12365 2000-04-30  Andy Piper  <andy@xemacs.org>
12366
12367         * glyphs.c (subwindow_query_geometry): new function. Return some
12368         defaults.
12369         (subwindow_instantiate): don't assign dimensions if none have been
12370         given.
12371         (image_instantiator_format_create): add subwindow_query_geometry.
12372         (print_image_instance): cope with layouts as widgets.
12373
12374 2000-04-29  Andy Piper  <andy@xemacs.org>
12375
12376         * frame.c (delete_frame_internal): call
12377         free_frame_subwindow_instance_cache so that all subwindows are
12378         finalized before their parent.
12379         (mark_frame): remove subwindow_cachels.
12380         (Fmake_frame): remove subwindow_cachel manipulation.
12381         (allocate_frame_core): subwindow_instance_cache is a weak list.
12382         (delete_frame_internal): set subwindow_instance_cache to nil.
12383
12384         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12385         finalization safe.
12386         (mswindows_finalize_image_instance): use the device
12387         not the domain as the domain may have died already.
12388
12389         * glyphs-x.c (x_finalize_image_instance): ditto.
12390         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12391         HEIGHT.
12392
12393         * redisplay-output.c (redisplay_unmap_subwindows): update for
12394         subwindow instance cache as a weak list.
12395         (redisplay_unmap_subwindows_maybe): ditto.
12396         (redisplay_unmap_subwindows_except_us): ditto.
12397
12398         * glyphs.c (unmap_subwindow): error checking will check the domain
12399         so don't deal with it here. Don't use cachels anymore.
12400         (map_subwindow): ditto.
12401         (update_subwindow_cachel_data): remove old accessor names.
12402         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12403         (Fresize_subwindow): don't update cachel.
12404         (mark_subwindow_cachels):
12405         (update_subwindow_cachel_data):
12406         (add_subwindow_cachel):
12407         (get_subwindow_cachel_index):
12408         (update_subwindow_cachel):
12409         (reset_subwindow_cachels):
12410         (mark_subwindow_cachels_as_not_updated): deleted.
12411         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12412         subwindow instance to the frame cache.
12413         (find_matching_subwindow): update for subwindow instance cache as
12414         a weak list.
12415         (update_widget_instances): ditto.
12416         (image_instance_type_to_mask):inlined.
12417         (free_frame_subwindow_instance_cache): new function. finalize all
12418         subwindows that are instantiated.
12419
12420         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12421         of cachel information.
12422         (IMAGE_INSTANCE_DISPLAY_X):
12423         (IMAGE_INSTANCE_DISPLAY_Y):
12424         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12425         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12426         (XIMAGE_INSTANCE_DISPLAY_X):
12427         (XIMAGE_INSTANCE_DISPLAY_Y):
12428         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12429         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12430         remove subwindow_cachel structure and function references.
12431         (image_instance_type_to_mask): inline from glyphs.c
12432
12433         * redisplay.c (redisplay_frame): remove subwindow_cachel
12434         references.
12435
12436         * frame.h (struct frame): remove subwindow_cachels.
12437         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12438
12439         * frameslots.h: add subwindow_instance_cache.
12440
12441         * window.c (replace_window): check subwindow cache of replacement.
12442         (window_unmap_subwindows_cache_mapper):
12443         (window_unmap_subwindows): new functions. Unmap all subwindows
12444         cached on this window.
12445         (mark_window_as_deleted): unmap all subwindows.
12446
12447 2000-04-27  Andy Piper  <andy@xemacs.org>
12448
12449         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12450
12451         * glyphs-widget.c (widget_layout): return something.
12452         (layout_layout): return something. Fail if not initialized.
12453         (layout_query_geometry): ditto.
12454         (image_instantiator_native_layout): new function. Initialized the
12455         native layout type.
12456         (widget_instantiate): don't do layout stuff here.
12457
12458         * glyphs.c (instantiate_image_instantiator): reorded calling or
12459         instantiate and post_instantiate with layout in between.
12460         (image_instance_layout): be more selective about deciding whether
12461         the layout has been done or not.
12462
12463         * glyphs.h (struct image_instantiator_methods): return a value
12464         from layout_method.
12465
12466 2000-04-26  Andy Piper  <andy@xemacs.org>
12467
12468         * glyphs.c (allocate_image_instance): make initial width and
12469         height unspecified. Set initialized to 0.
12470
12471         * syscommctrl.h new file. Encapsulates commctrl.h.
12472
12473         * syswindows.h new file. Encapsulates windows.h.
12474
12475         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12476         * nt.c: ditto.
12477         * console-msw.h: ditto.
12478
12479         * redisplay-tty.c (tty_output_display_block): remove layout references.
12480
12481         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12482         window handle rather than just the frame.
12483
12484         * glyphs.c (mark_image_instance): remove layout references.
12485         (print_image_instance): ditto.
12486         (image_instance_equal): ditto.
12487         (image_instance_hash): ditto.
12488         (decode_image_instance_type): ditto.
12489         (encode_image_instance_type): ditto.
12490         (image_instantiate): ditto.
12491         (allocate_glyph): ditto.
12492         (Fimage_instance_height): ditto.
12493         (Fimage_instance_width): ditto.
12494         (update_subwindow): ditto.
12495
12496         * redisplay-x.c (x_output_display_block): recode for layouts as
12497         widgets.
12498
12499         * redisplay-output.c (redisplay_output_layout): recode for layouts
12500         as widgets.
12501         (compare_runes): remove layout references.
12502
12503         * redisplay-msw.c (mswindows_output_display_block): recode for
12504         layouts as widgets.
12505
12506         * glyphs-widget.c (image_instantiator_layout): remove
12507         layout_possible_dest_types.
12508         (layout_possible_dest_types): deleted.
12509
12510         * glyphs.h (image_instance_type): remove layout references.
12511         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12512         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12513         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12514
12515 2000-04-25  Andy Piper  <andy@xemacs.org>
12516
12517         * glyphs-widget.c (image_instantiator_buttons):
12518         (image_instantiator_edit_fields):
12519         (image_instantiator_combo_box):
12520         (image_instantiator_scrollbar):
12521         (image_instantiator_progress_guage):
12522         (image_instantiator_tree_view):
12523         (image_instantiator_tab_control):
12524         (image_instantiator_labels):
12525         (image_instantiator_layout): call default post_instantiate method.
12526         (widget_post_instantiate): new function. Simply lays out the
12527         widgets.
12528
12529         * glyphs.h (struct image_instantiator_methods): add
12530         post_instantiate method.
12531
12532         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12533         method calls.
12534
12535 2000-04-23  Andy Piper  <andy@xemacs.org>
12536
12537         * glyphs.h (struct image_instantiator_methods): add
12538         decode_domain_method.
12539         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12540         derived from the domain.
12541         (IMAGE_INSTANCE_FRAME): new accessor.
12542         (XIMAGE_INSTANCE_FRAME): ditto.
12543
12544         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12545         instead of _SUBWINDOW_FRAME.
12546         (finalize_image_instance): ditto.
12547         (Fimage_instance_foreground): ditto.
12548         (Fimage_instance_background): ditto.
12549         (image_instantiate): ditto.
12550         (update_subwindow_cachel): ditto.
12551         (update_subwindow): ditto.
12552         (unmap_subwindow): ditto.
12553         (map_subwindow): ditto
12554         (subwindow_instantiate): ditto.
12555         * glyphs-msw.c (mswindows_update_widget): ditto.
12556         (mswindows_progress_gauge_instantiate): ditto.
12557         (mswindows_tab_control_update): ditto.
12558         * glyphs-x.c (x_update_widget): ditto.
12559         (x_widget_instantiate): ditto.
12560         (x_tab_control_instantiate): ditto.
12561         (x_tab_control_update): ditto.
12562         * event-msw.c (mswindows_wnd_proc): ditto
12563
12564         * glyphs-widget.c (image_instantiator_layout): use
12565         subwindow_decode_domain.
12566         (image_instantiator_buttons): ditto.
12567         (image_instantiator_edit_fields): ditto.
12568         (image_instantiator_combo_box): ditto.
12569         (image_instantiator_scrollbar): ditto.
12570         (image_instantiator_progress_guage): ditto.
12571         (image_instantiator_tree_view): ditto.
12572         (image_instantiator_tab_control): ditto.
12573         (image_instantiator_labels): ditto.
12574         (image_instantiator_layout): ditto.
12575
12576         * glyphs.c: add instance error checking to many functions.
12577         (instantiate_image_instantiator): decode device from cache_domain.
12578         (image_instantiate): partially rewrite by using
12579         decode_image_instantiator_domain to determine what domain the
12580         instance needs to be cached in.
12581         (decode_image_instantiator_domain): new function. Determine what
12582         domain the image needs to be cached in.
12583         (check_window_subwindow_cache): new error checking function.
12584         (check_instance_cache_mapper): ditto.
12585         (check_image_instance_structure): ditto.
12586         (subwindow_decode_domain): new function. Encodes a window as a
12587         subwindow's cache domain.
12588         (image_instantiator_format_create): use it for text and
12589         subwindows.
12590
12591 2000-04-21  Andy Piper  <andy@xemacs.org>
12592
12593         * glyphs.c (image_instance_device): new function.
12594         (image_instance_frame): new function.
12595         (image_instance_window): new function.
12596         (image_instance_live_p): new function.
12597
12598         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12599         cache to nil.
12600
12601         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12602         (IMAGE_INSTANCE_DOMAIN): new accessor.
12603         (XIMAGE_INSTANCE_DOMAIN): ditto.
12604
12605         * glyphs-x.c (x_finalize_image_instance): device->domain.
12606
12607         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12608         (mswindows_finalize_image_instance): ditto.
12609
12610         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12611         (gif_instantiate): ditto.
12612         (png_instantiate): ditto.
12613         (tiff_instantiate): ditto.
12614
12615         * glyphs.c (instantiate_image_instantiator): use domain rather
12616         than device.
12617         (mark_image_instance): device -> domain.
12618         (print_image_instance): ditto.
12619         (finalize_image_instance): ditto.
12620         (image_instance_equal): ditto.
12621         (allocate_image_instance): ditto.
12622         (Fcolorize_image_instance): ditto.
12623         (query_string_geometry): ditto.
12624         (image_instantiate): ditto
12625         (query_string_font): ditto.
12626         (image_instantiate): ditto.
12627         (update_subwindow): ditto.
12628         (unmap_subwindow): ditto.
12629         (map_subwindow): ditto.
12630         (subwindow_instantiate): ditto.
12631
12632         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12633         (DOMAIN_FRAME): ditto.
12634         (DOMAIN_WINDOW): ditto.
12635         (DOMAIN_LIVE_P): ditto.
12636         (XDOMAIN_DEVICE): ditto.
12637         (XDOMAIN_FRAME): ditto.
12638         (XDOMAIN_WINDOW): ditto.
12639
12640         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12641         a valid specifier domain.
12642
12643 2000-04-19  Andy Piper  <andy@xemacs.org>
12644
12645         * glyphs-widget.c (syms_of_glyphs_widget): remove
12646         widget-callback-current-channel.
12647         (vars_of_glyphs_widget): ditto.
12648         * glyphs.h: ditto
12649
12650         * gui.c (get_gui_callback): revert to previous behaviour.
12651
12652 2000-04-18  Andy Piper  <andy@xemacs.org>
12653
12654         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12655         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12656         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12657
12658         * glyphs.c (image_instance_equal): add margin_width.
12659         (image_instance_hash): ditto.
12660
12661         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12662         (layout_query_geometry): ditto.
12663         (layout_layout): ditto.
12664         (syms_of_glyphs_widget): add margin-width.
12665         (image_instantiator_layout): allow margin-width.
12666
12667         * glyphs.c (update_widget_instances): make a normal function.
12668         (syms_of_glyphs): remove Qupdate_widget_instances.
12669         * glyphs.h: ditto.
12670
12671         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12672         so that we don't corrupt ideas about the last event or
12673         command. Remove widget-callback-current-channel fiddling.
12674         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12675
12676 2000-05-01  Martin Buchholz <martin@xemacs.org>
12677
12678         * XEmacs 21.2.33 is released.
12679
12680 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12681
12682         * make-src-depend: Allow dots in header file name.
12683
12684 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12685
12686         * mule-charset.h (struct charset_lookup): Add
12687         next_allocated_1_byte_leading_byte and
12688         next_allocated_2_byte_leading_byte.
12689         * mule-charset.c: Move above two variables so that those values
12690         will be dumped.
12691
12692 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12693
12694         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12695         when string length is zero.
12696         (find_charsets_in_emchar_string): Ditto.
12697
12698 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12699
12700         * lisp.h: extern Qdialog and Qmenubar.
12701
12702         * gui-x.c: added events.h.
12703                 also fixed typo which made the file uncompilable.
12704
12705         * general.c: Added Qmenubar and Qdialog
12706
12707 2000-04-28  Ben Wing  <ben@xemacs.org>
12708
12709         * frame-msw.c (mswindows_init_frame_1):
12710         * frame-msw.c (mswindows_mark_frame):
12711         * event-msw.c (mswindows_enqueue_dispatch_event):
12712         * console-msw.h:
12713         * console-msw.h (struct mswindows_frame):
12714         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12715         there are now three hash tables for callbacks.
12716         mswindows_enqueue_dispatch_event is no longer static.
12717
12718         * dialog-x.c (maybe_run_dbox_text_callback):
12719         * dialog-x.c (dbox_descriptor_to_widget_value):
12720         switch to new cons3 form for callbacks.
12721
12722         * glyphs-msw.c (mswindows_register_gui_item):
12723         * glyphs-msw.c (mswindows_widget_instantiate):
12724         * glyphs-msw.c (add_tree_item):
12725         * glyphs-msw.c (add_tab_item):
12726         new image instance parameter, so it can be passed to callback-ex.
12727         respect :callback-ex as well as :callback.
12728
12729         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12730         add :callback-ex.
12731
12732         * glyphs.c (print_image_instance):
12733         prettify, e.g. now prints widget type.
12734
12735         * gui-x.h:
12736         certain funs have new image instance parameter.
12737
12738         * gui.c:
12739         * gui.c (get_gui_callback):
12740         * gui.c (gui_item_add_keyval_pair):
12741         * gui.c (gui_item_init):
12742         * gui.c (gui_add_item_keywords_to_plist):
12743         * gui.c (mark_gui_item):
12744         * gui.c (gui_item_hash):
12745         * gui.c (gui_item_equal):
12746         * gui.c (copy_gui_item):
12747         * gui.c (syms_of_gui):
12748         recognize callback-ex in a number of places.
12749         also, fix the annoying "can't get out of yes-no dialog" bug.
12750
12751         * gui.h:
12752         * gui.h (struct Lisp_Gui_Item):
12753         recognize callback-ex in a number of places.
12754
12755         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12756         new parameter in button_item_to_widget_value.
12757
12758         * glyphs-x.c (x_update_widget):
12759         * glyphs-x.c (x_button_instantiate):
12760         * glyphs-x.c (x_button_update):
12761         * glyphs-x.c (x_progress_gauge_instantiate):
12762         * glyphs-x.c (x_edit_field_instantiate):
12763         * glyphs-x.c (x_combo_box_instantiate):
12764         * glyphs-x.c (x_tab_control_instantiate):
12765         * glyphs-x.c (x_label_instantiate):
12766         new image instance parameter in various places.
12767
12768         * event-Xt.c:
12769         * event-Xt.c (enqueue_Xt_dispatch_event):
12770         this fun gets exported.
12771
12772         * gui-msw.c:
12773         * gui-msw.c (mswindows_handle_gui_wm_command):
12774         handle both :callback and :callback-ex, and generate our own
12775         event because it's one of the callback-ex arguments.
12776
12777         * gui-x.c:
12778         * gui-x.c (popup_selection_callback):
12779         handle both :callback and :callback-ex, and generate our own
12780         event because it's one of the callback-ex arguments.
12781         * gui-x.c (button_item_to_widget_value):
12782         * gui-x.c (gui_items_to_widget_values_1):
12783         * gui-x.c (gui_item_children_to_widget_values):
12784         * gui-x.c (gui_items_to_widget_values):
12785         new image instance parameter in various places.
12786
12787         * fns.c (Freplace_list):
12788         fix small typo in doc string.
12789
12790         * lisp.h:
12791         declare enqueue_Xt_dispatch_event.
12792
12793 2000-04-28  Ben Wing  <ben@xemacs.org>
12794
12795         * buffer.c:
12796         * buffer.c (Frecord_buffer):
12797         * buffer.c (syms_of_buffer):
12798         delete record-buffer-hook.
12799
12800         * fns.c:
12801         * fns.c (Freplace_list):
12802         * fns.c (syms_of_fns):
12803         new primitive replace-list.
12804
12805         * frameslots.h:
12806         slot for old buffer-alist.
12807
12808         * lisp.h:
12809         exfun replace-list.
12810
12811         * redisplay.c:
12812         * redisplay.c (redisplay_frame):
12813         * redisplay.c (syms_of_redisplay):
12814         * redisplay.c (vars_of_redisplay):
12815         new hook buffer-list-changed-hook.
12816         call it.
12817
12818 2000-04-27  Ben Wing  <ben@xemacs.org>
12819
12820         * extents.h: extern in_modeline_generation.
12821
12822         * redisplay.c (generate_formatted_string_db): set
12823         in_modeline_generation.
12824
12825         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12826         flags if in modeline generation.  otherwise frame-modified-tick
12827         is ticked far too often.
12828         Declare in_modeline_generation.
12829
12830 2000-04-26  Ben Wing  <ben@xemacs.org>
12831
12832         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12833         option.
12834         (vars_of_emacs): add quick-build as an error-checking option.
12835         A bit kludgy, but there doesn't seem much point in creating
12836         a real var for this.
12837
12838         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12839
12840 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12841
12842         * redisplay.h (struct display_line): Add a new variable,
12843         line_continuation.
12844
12845         * redisplay.c (create_text_block): Set dl->line_continuation if
12846         the line continues.
12847         (create_string_text_block): Ditto.
12848         (regenerate_window_incrementally): Use line_continuation instead
12849         of searching continuation glyph.
12850         (add_margin_runes): Call add_glyph_rune.
12851         (add_glyph_rune): Handle margin glyph.
12852
12853 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12854
12855         * filelock.c (fill_in_lock_file_name):
12856         ANSIfy.
12857         Check for IS_ANY_SEP instead of '/'.
12858         (lock_file_1):
12859         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12860         Never check errno without first seeing that system call failed.
12861         (unlock_file): Add GCPRO.
12862         (Flock_buffer): Fix docstring.
12863         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12864
12865 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12866
12867         * sysdep.c (get_pty_max_bytes):
12868         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12869         strings longer than 252 bytes.
12870
12871         * md5.c: Unconditionally include ANSI header <limits.h>
12872
12873         * glyphs-x.c (convert_EImage_to_XImage):
12874         * lisp-union.h (union Lisp_Object):
12875         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12876
12877 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12878
12879         * filelock.c (current_lock_owner): Remove unused variable o, p.
12880
12881 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12882
12883         * callint.c: Remove multiply defined symbol Qlet
12884         (syms_of_callint): ditto.
12885
12886 2000-04-14  Andy Piper  <andy@xemacs.org>
12887
12888         * general.c (syms_of_general): add last-command, this-command, let
12889         and funcall.
12890
12891         * lisp.h: declare various symbols.
12892
12893         * glyphs.h: declare Qwidget_callback_current_channel;
12894
12895         * glyphs-widget.c (syms_of_glyphs_widget): add
12896         Qgui_callback_current_channel.
12897         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12898
12899         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12900         widget-callback-current-channel when invoking the interactive
12901         arg. Also bind last-command and next-command when invoking the
12902         widget updates.
12903         * gui-x.c (popup_selection_callback): ditto.
12904
12905         * gui.c (get_gui_callback): massage args so that we are always
12906         calling eval. This allows us to add our own variable bindings
12907         outside.
12908
12909         * glyphs-x.c (x_button_instantiate): use
12910         gui_items_to_widget_values since this is GC safe.
12911         (x_progress_gauge_instantiate): ditto.
12912         (x_edit_field_instantiate): ditto.
12913         (x_label_instantiate): ditto.
12914
12915         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12916         (emacs_Xt_event_widget_focus_out): new function
12917         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12918         focus.
12919         (emacs_Xt_event_add_widget_actions): new function. add focus
12920         functions as actions.
12921         (init_event_Xt_late): use it.
12922
12923 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12924
12925         * event-stream.c (Fdispatch_event): Doc fix.
12926
12927 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12928
12929         * postgresql.c: Remove all references to PQsetenv*.
12930
12931         * postgresql.h: Remove references to PGsetenvHandler object.
12932         * lrecord.h (lrecord_type): Ditto.
12933
12934 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12935
12936         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12937         real_heigh and real_width members, and accessor macros for these.
12938
12939         * glyphs-msw.c (init_image_instance_geometry): New function.
12940         (init_image_instance_from_dibitmap): Use it.
12941         (mswindows_resource_instantiate): Use it.
12942         (init_image_instance_from_xbm_inline): Use it.
12943         (mswindows_initialize_image_instance_mask): Use real bitmap
12944         geometry.
12945         (mswindows_create_resized_bitmap): Ditto.
12946         (mswindows_create_resized_mask): Ditto.
12947
12948         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12949         and bitmap to their surface size.
12950
12951 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12952
12953         * process-unix.c (unix_send_process): Guard against process MIA
12954         after Faccept_process_output.
12955
12956 2000-04-11  Ben Wing  <ben@xemacs.org>
12957
12958         * eval.c (unbind_to_hairy): fix brokenness introduced by
12959         nanosecond speed improvements.
12960
12961 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12962
12963         * sunplay.c (init_device): To play sounds correctly, the device
12964         apparently needs to be initialized at least once by XEmacs.  Make
12965         it so.
12966
12967 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12968
12969         * redisplay.c (add_margin_runes): Add text image glyph
12970           handling.
12971
12972 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12973
12974         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12975         gcc is newer than 2.5.
12976
12977 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12978
12979         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12980
12981         * fns.c (size_bit_vector):
12982         * alloc.c (size_vector):
12983         (make_vector_internal):
12984         (make_bit_vector_internal):
12985         (sweep_bit_vectors_1):
12986         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12987
12988 2000-04-06  Andy Piper  <andy@xemacs.org>
12989
12990         * gmalloc.c (malloc): undo previous change.
12991         (malloc): ditto.
12992         (free): ditto.
12993         (realloc): ditto.
12994
12995 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12996
12997         * line-number.c (buffer_line_number): Revert to former version.
12998
12999 2000-04-06  Andy Piper  <andy@xemacs.org>
13000
13001         * gmalloc.c (malloc): add error checking.
13002         (malloc): ditto.
13003         (free): ditto.
13004         (realloc): ditto.
13005
13006         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13007         button_item_to_widget_value arg.
13008
13009         * glyphs-x.c (x_button_instantiate): add extra
13010         button_item_to_widget_value arg.
13011         (x_progress_gauge_instantiate): ditto.
13012         (x_edit_field_instantiate): ditto.
13013         (x_label_instantiate): ditto.
13014
13015         * gui-x.c (gui_items_to_widget_values_1): add extra
13016         button_item_to_widget_value arg.
13017         (button_item_to_widget_value): add extra menu_item_p arg.
13018
13019         * gui-x.h: change signature of button_item_to_widget_value.
13020
13021         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13022         button_item_to_widget_value arg.
13023
13024 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13025
13026         * buffer.h (struct buffer): auto_save_modified should be long.
13027
13028 2000-04-05  Andy Piper  <andy@xemacs.org>
13029
13030         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13031         type.
13032         (button_query_geometry): give a little more room so that athena
13033         buttons fit.
13034
13035 2000-04-05  Andy Piper  <andy@xemacs.org>
13036
13037         * faces.c (complex_vars_of_faces): The widget face should inherit
13038         the font of the gui-element face.
13039
13040 2000-04-04  Andy Piper  <andy@xemacs.org>
13041
13042         * glyphs-x.c (x_button_update): new function. unconditionally
13043         update a button's state when the instance is dirty.
13044         (image_instantiator_format_create_glyphs_x): add x_button_update.
13045         (x_widget_instantiate): remove old resize cruft.
13046
13047 2000-04-02  Andy Piper  <andy@xemacs.org>
13048
13049         * frame.c (change_frame_size_1): The introduction of gutters means
13050         that we need to allow 0 as a potential frame dimension.
13051
13052 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13053
13054         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13055         image glyph if allow_cursor.
13056         (add_hscroll_rune): Don't allow cursor to border glyph.
13057         (create_text_block): Ditto.
13058
13059         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13060         text not in buffer.
13061         (redisplay_output_layout): Call ensure_face_cachel_complete for
13062         text image glyph.
13063
13064
13065 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13066
13067         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13068
13069         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13070         not in buffer
13071
13072         * redisplay-tty.c (tty_output_display_block): Delete the routine
13073         for text image glyph
13074         * redisplay-x.c (x_output_display_block): ditto
13075         * redisplay-msw.c (mswindows_output_display_block): ditto
13076
13077 2000-02-02  Mike Alexander  <mta@arbortext.com>
13078
13079         Note: Some of these were committed by accident as part of other
13080         patches.
13081
13082         * regex.c (regex_compile): Avoid compiler warnings.
13083
13084         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13085
13086         * nt.h: Declare term_ntproc correctly.
13087
13088         * nt.c: Remove incorrect declaration of get_home_directory which
13089         is declared correctly in lisp.h.
13090
13091         * keymap.c (get_keyelt): Avoid compiler warnings.
13092         (raw_lookup_key_mapper): Avoid compiler warnings.
13093
13094         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13095
13096         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13097
13098         * filemode.c (mode_string): Avoid compiler warnings.
13099
13100         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13101         avoid warning.
13102
13103         * events-mod.h: Undef some things that winuser.h defines differently.
13104
13105         * data.c (Faset): Avoid compiler warnings.
13106
13107         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13108
13109 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13110
13111         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13112         Fall through to simple beep on error.
13113         Replace "extern" by real header file.
13114
13115         * linuxplay.c: Use nativesound.h
13116         (play_sound_data): Return error code. Be less verbose on error.
13117
13118         * sunplay.c: Use nativesound.h
13119         (play_sound_data): Return error code. Be less verbose on error.
13120
13121         * ntplay.c: Use nativesound.h
13122         (play_sound_data): Return fake error code
13123
13124         * sgiplay.c: Use nativesound.h
13125         (play_sound_data): Return error code
13126
13127         * hpplay.c: Use nativesound.h, partially implement
13128         new error code. Break compilation until finished.
13129         (play_sound_data): error code.
13130
13131         * nativesound.h (play_sound_file):
13132           (play_sound_data): Prototype in new header.
13133
13134 2000-03-31  Andy Piper  <andy@xemacs.org>
13135
13136         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13137         for toggle and radio buttons.
13138         (image_instantiator_buttons): use it.
13139
13140 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13141
13142         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13143         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13144         found. Scrollbar event probably belonged to some old config.
13145
13146 2000-03-31  Andy Piper  <andy@xemacs.org>
13147
13148         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13149         than 1.
13150         (initialize_widget_image_instance): default layout to
13151         LAYOUT_HORIZONTAL rather than 0.
13152         (widget_instantiate): reverse the item list at the end rather than
13153         every iteration.
13154         (layout_layout): re-code for the border text at the front of the
13155         item list rather than at the end.
13156         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13157         provided by the user.
13158         (widget_query_geometry): comment.
13159
13160 2000-03-30  Andy Piper  <andy@xemacs.org>
13161
13162         * glyphs-widget.c (image_instantiator_layout): allow standard
13163         widget keywords in layouts.
13164
13165         * gutter.c (output_gutter): cope with nil gutter contents.
13166
13167         * frame.c (Fset_frame_properties): add gutter docs.
13168
13169 2000-03-29  Andy Piper  <andy@xemacs.org>
13170
13171         * toolbar-msw.c (TBSTYLE_FLAT): add.
13172         (mswindows_output_toolbar): minor fiddling.
13173
13174 2000-03-29  Andy Piper  <andy@xemacs.org>
13175
13176         * gutter.c (output_gutter): force gutter size recalculation if
13177         what we are trying to display won't fit.
13178         (update_gutter_geometry): new function. A per-gutter version of
13179         update_frame_gutter_geometry.
13180         (update_frame_gutter_geometry): use it.
13181         (redraw_exposed_gutter): add extra debugging output.
13182
13183 2000-03-28  Mike Alexander  <mta@arbortext.com>
13184
13185         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13186         (pdump_file_unmap): Implement it on Windows
13187         (pdump_file_get): Save alocated handles for pdump_file_unmap
13188
13189 2000-03-28  Andy Piper  <andy@xemacs.org>
13190
13191         * gui.c (get_gui_callback): treat Quit specially.
13192
13193 2000-03-27  Andy Piper  <andy@xemacs.org>
13194
13195         * glyphs.c (image_instantiate): be careful to check in the same
13196         way we assigned.
13197
13198 2000-03-27  Didier Verna  <didier@xemacs.org>
13199
13200         * config.h.in: define the proper SMART_INCLUDE macro.
13201         handle renaming of `foo_h_path' to `foo_h_file'.
13202
13203         * database.c: ditto.
13204
13205         * emacs.c: ditto.
13206
13207         * linuxplay.c: ditto.
13208
13209         * terminfo.c: ditto.
13210
13211         * tooltalk.h: ditto.
13212
13213 2000-03-27  Andy Piper  <andy@xemacs.org>
13214
13215         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13216         gets updated whenever the face might have changed.
13217
13218 2000-03-26  Mike Alexander  <mta@arbortext.com>
13219
13220         * dumper.c (pdump_resource_free): Fix the comment.
13221
13222 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13223
13224         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13225
13226 2000-03-22  Mike Alexander  <mta@arbortext.com>
13227
13228         * dumper.c: Include Windows headers on Windows
13229         (pdump_resource_free): Add a body to the function
13230         (pdump_load): exe_name -> exe_path and add some comments.
13231
13232 2000-03-25  Mike Alexander  <mta@arbortext.com>
13233
13234         * gui.c (copy_gui_item_tree): Return a value in all cases
13235
13236 2000-03-21  Didier Verna  <didier@xemacs.org>
13237
13238         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13239         lwlib/config.h.in.
13240         (SMART_INCLUDE): new macro.
13241         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13242         the proper location.
13243
13244         * postgresql.c: use it.
13245
13246         * inline.c: ditto.
13247
13248 2000-03-24  Andy Piper  <andy@xemacs.org>
13249
13250         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13251         do this.
13252
13253 2000-03-24  Andy Piper  <andy@xemacs.org>
13254
13255         * redisplay-output.c (compare_runes): use image_instance_changed
13256         to detect changes. Do not depend on glyphs_changed, only depend on
13257         dirtiness.
13258          (redisplay_output_layout): add debug messages.
13259         (compare_runes): ditto.
13260
13261         * glyphs.h: declare new functions.
13262         (struct Lisp_Image_Instance): remove percent and associated
13263         accessors.
13264
13265         * gui.h: declare new copying functions.
13266
13267         * gui.c (copy_gui_item_tree): new function.
13268         (copy_gui_item): new function.
13269         (gui_item_id_hash): revert to standard hash.
13270         (gui_item_hash): ditto.
13271         (gui_item_hash_internal): deleted.
13272         (mark_gui_item): mark value.
13273         (gui_item_add_keyval_pair): add value.
13274         (gui_item_init): ditto.
13275         (gui_add_item_keywords_to_plist): ditto.
13276         (gui_item_equal): ditto.
13277         (syms_of_gui): add Q_value.
13278
13279         * glyphs-x.c (x_progress_gauge_update): use pending items and
13280         value for setting the state.
13281         (x_update_widget): don't set items from pending here.
13282
13283         * glyphs-widget.c (update_widget): update items here.
13284         (progress_gauge_set_property): use items for storing value. Put
13285         new value in pending items.
13286
13287         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13288         items for new value. Convert percent -> value.
13289         (mswindows_tab_control_update): don't update items here.
13290
13291         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13292         (update_subwindow): ditto.
13293         (image_instance_changed): new function. Compare hash values and
13294         past and present widget items.
13295         (image_instantiate): We more careful about where we instantiate
13296         things.
13297         (image_instantiate): add error checking.
13298
13299         * gutter.c (syms_of_gutter): use -hook.
13300
13301 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13302
13303         * console-tty.c (Fset_console_tty_input_coding_system): Use
13304         Qkeyboard.
13305         (Fset_console_tty_output_coding_system): Use Qterminal.
13306         (tty_init_console): Use Qkeyboard and Qterminal.
13307
13308 2000-03-21  Ben Wing  <ben@xemacs.org>
13309
13310         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13311         From Mike Alexander <mta@arbortext.com>.
13312
13313 2000-03-21  Ben Wing  <ben@xemacs.org>
13314
13315         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13316         process brokenness.  Proper implementation to come.
13317         * callproc.c:
13318         Rename call-process-internal to old-call-process-internal.
13319         New impl. in process.el.
13320
13321 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13322
13323         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13324
13325 2000-03-20  Andy Piper  <andy@xemacs.org>
13326
13327         * glyphs.c (full_list_hash): make hashes of the same elements in
13328         different orders return different values.
13329
13330 2000-03-20  Martin Buchholz <martin@xemacs.org>
13331
13332         * XEmacs 21.2.32 is released.
13333
13334 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13335
13336         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13337         (DFC_MALLOC_USE_CONVERTED_DATA):
13338         Add aliasing-safe casts to allow use with char* or unsigned char*
13339         lvalues.
13340
13341         * eldap.c (Fldap_open):
13342         (Fldap_search_basic):
13343         (Fldap_add):
13344         (Fldap_modify):
13345         Make C++-compilable.
13346         Make sure GCPRO'ed variables are initialized.
13347         Use temp variables to avoid repeated calls to Flength.
13348
13349 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13350
13351         * sysfile.h:
13352         Make sure PATH_MAX is always defined.
13353         Include limits.h for PATH_MAX.
13354         Deprecate use of MAXPATHLEN.
13355
13356 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13357
13358         * emacs.c: Add reinit_vars_of_fileio.
13359         * symsinit.h: Add reinit_vars_of_fileio.
13360         * fileio.c (reinit_vars_of_fileio): New.
13361         * fileio.c (Fmake_temp_name):
13362         Initialize temp_name random number from microseconds to make
13363         collisions even less likely.  Initialize always at process startup
13364         time.  (make-temp-name) used to return the same file name twice in
13365         a row when PDUMP.
13366         Random stylistic fiddling.
13367         Comment fixes.
13368
13369 2000-03-20  Andy Piper  <andy@xemacs.org>
13370
13371         * glyphs.c (image_instantiate): allow text glyphs to be
13372         instantiated in the minibuffer window.
13373
13374 2000-03-19  Andy Piper  <andy@xemacs.org>
13375
13376         * glyphs.c (image_instance_hash): be careful about which items we
13377         hash on.
13378
13379         * glyphs-widget.c (tab_control_set_property): record into pending
13380         items rather than the actual items.
13381
13382         * glyphs-x.c (x_update_widget): use pending items to update with.
13383
13384         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13385         to update with.
13386
13387         * glyphs.c (mark_image_instance): mark pending items.
13388
13389         * window.c (Fset_window_configuration): record the buffer.
13390         (Fselect_window): totally revert previous change which breaks many
13391         things.
13392
13393 2000-03-18  Andy Piper  <andy@xemacs.org>
13394
13395         * glyphs-msw.c (mswindows_tab_control_update): force selected
13396         item.
13397
13398         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13399         window domain cache, otherwise we get inconsistencies at
13400         startup. There is something fishy at startup which can lead to the
13401         minibuffer being the selected window when the gutter content is
13402         instantiated.
13403
13404         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13405         gcpros.
13406         (parse_gui_item_tree_children): ditto.
13407         (parse_gui_item_tree_item): ditto.
13408
13409         * glyphs.c (Fupdate_widget_instances): return something.
13410
13411 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13412
13413         * window.c (Fselect_window): Undo 2000-03-17 change.
13414
13415 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13416
13417         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13418         against v7.0 libraries.  Insta-coredump city until the postgres
13419         folks fix it.
13420
13421 2000-03-17  Andy Piper  <andy@xemacs.org>
13422
13423         * faces.c (complex_vars_of_faces): don't give the widget face an
13424         inherited background pixmap.
13425
13426         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13427         selected item.
13428
13429         * event-stream.c (Fdispatch_non_command_events): return something.
13430
13431         * gutter.c (output_gutter): use widget face.
13432         (clear_gutter): ditto.
13433
13434         * NEWS: adjust again.
13435
13436         * window.c (Fselect_window): make sure this runs to completion to
13437         avoid oddities with Fset_window_configuration.
13438         (Fcurrent_window_configuration): in general do not save the
13439         minibuffer as the selected window.
13440
13441         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13442
13443 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13444
13445         * emacs.c (Frunning_temacs_p): Revert previous patch.
13446         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13447
13448 2000-03-16  Andy Piper  <andy@xemacs.org>
13449
13450         * glyphs-x.c (x_tab_control_update): if no widget values then
13451         return.
13452
13453         * NEWS: update for new features.
13454
13455         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13456         synthetic event to the native system.
13457         (reinit_vars_of_event_Xt): set force_event_pending to
13458         emacs_Xt_force_event_pending.
13459
13460         * events.h (struct event_stream): add force_event_pending.
13461
13462         * specifier.c (recompute_one_cached_specifier_in_window): add
13463         comment.
13464
13465         * redisplay.c (redisplay_frame): don't call
13466         update_frame_subwindows. Reset subwindow cachels when
13467         subwindows_changed, removing this was an optimization too far.
13468
13469         * redisplay-output.c (compare_runes): reorganize so that we catch
13470         glyph changes when we want them. Set optimize_output when this
13471         would help layouts.
13472         (redisplay_output_layout): remove frame_really_changed, use
13473         optimize_output instead.
13474
13475         * redisplay-msw.c (mswindows_output_display_block): reset
13476         optimize_output after outputting a glyph.
13477         * redisplay-x.c (x_output_display_block): ditto.
13478         * redisplay-tty.c (tty_output_display_block): ditto.
13479
13480         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13481         functions.
13482         (gutter_specs_changed): do specific gutter positions.
13483         (top_gutter_specs_changed): new function. Only update the
13484         specified gutter specs.
13485         (bottom_gutter_specs_changed): ditto.
13486         (left_gutter_specs_changed): ditto.
13487         (right_gutter_specs_changed): ditto.
13488
13489         * gui.c (gui_item_hash_internal): new function, does a real hash.
13490         (gui_item_id_hash): use it.
13491         (gui_item_hash): hash the eval'ed gui_item.
13492
13493         * gui-x.c (popup_selection_callback): send an eval event to call
13494         Fupdate_widget_instances.
13495
13496         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13497         to call Fupdate_widget_instances.
13498
13499         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13500         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13501
13502         * glyphs.c: (update_frame_subwindows): deleted.
13503         (Fupdate_widget_instances): new function for updating the dirty
13504         state of widgets that might have changed.
13505         (syms_of_glyphs): add Qupdate_widget_instances.
13506         (full_list_hash): hash a list completely.
13507         (image_instance_hash): use it for items and properties.
13508
13509         * frame-msw.c (mswindows_size_frame_internal): remove unused
13510         variable.
13511
13512         * faces.h (struct face_cachel): fix comment.
13513
13514         * event-stream.c (Fdispatch_non_command_events): new
13515         function. Process non-command events, forcing an event cycle
13516         beforehand.
13517         (syms_of_event_stream): declare.
13518         (event_stream_force_event_pending): new function. Force an event
13519         on the native event queue so that an event cycle will occur next
13520         time we check.
13521
13522         * event-msw.c:
13523         (struct ntpipe_shove_stream):
13524         (mswindows_enqueue_dispatch_event):
13525         (mswindows_dequeue_dispatch_event):
13526         (mswindows_cancel_dispatch_event):
13527         (mswindows_pump_outstanding_events):
13528         (mswindows_drain_windows_queue):
13529         (mswindows_handle_paint):
13530         (mswindows_wnd_proc):
13531         (mswindows_key_to_emacs_keysym):
13532         (get_process_input_waitable):
13533         (emacs_mswindows_delete_stream_pair): re-indent file.
13534         (mswindows_need_event): do not process further fds if the windows
13535         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13536         fixes the 100% cpu problem.
13537         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13538
13539 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13540
13541         * alloc.h: New.
13542         * dumper.h: New.
13543         * dumper.c: New.
13544
13545         * emacs.c: Moved dump file searching to dumper.c.
13546         (Frunning_temacs_p): Fixed.
13547
13548         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13549         last_lrecord_type_index_assigned.
13550
13551 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13552
13553         * symsinit.h: Added reinit parameter to init_console_stream
13554         declaration.
13555
13556         * lisp.h: Added file parameter to pdump_load declaration.
13557
13558         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13559         support.  Added dump file searching.
13560
13561         * config.h.in: Added EMACS_PROGNAME.
13562
13563         * console-stream.c (init_console_stream): Fix reinitialisation
13564         when running from temacs.
13565
13566         * alloc.c (pdump): Add id support.
13567         (pdump_load): Add file parameter and signature/id support.
13568
13569         * Makefile.in.in: Add full pdump support.
13570
13571 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13572
13573         * postgresql.c: Update documentation to reflect latest code
13574         status.
13575         (print_result): Show tuple counts in printed representation when
13576         appropriate.
13577         (Fpq_put_nbytes): MULE-ize.
13578         (Fpq_get_line_async): Ditto.
13579
13580 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13581
13582         * postgresql.c (Fpq_lo_import): Fix return value.
13583         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13584
13585 2000-03-13  Ben Wing  <ben@xemacs.org>
13586
13587         * alloc.c (pdump_load):
13588         Fix compile warning under mswin.
13589
13590 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13591
13592         * postgresql.c: Mule-ization, bug fixes.
13593         Use PG_CODING to encapsulate coding system name changes.
13594         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13595         (pg-coding-system): Create.
13596
13597         (Fpq_conn_defaults): Mule-ize.
13598         (Fpq_connectdb): Mule-ize & bug fix.
13599         (Fpq_connect_start): Mule-ize.
13600         (Fpq_set_client_encoding): Mule-ize.
13601         (Fpq_finish): Document `DEAD' connection status.
13602         (Fpq_clear): Ditto.
13603         (Fpq_pgconn): Mule-ize.
13604         (Fpq_exec): Mule-ize & bug fix.
13605         (Fpq_send_query): Ditto.
13606         (Fpq_get_result): Ditto.
13607         (Fpq_res_status): Mule-ize.
13608         (Fpq_result_error_message): Mule-ize.
13609         (Fpq_ntuples): fix comments.
13610         (Fpq_fname): Mule-ize.
13611         (Fpq_fnumber): Mule-ize.
13612         (Fpq_ftype): fix comments.
13613         (Fpq_get_value): Mule-ize.
13614         (Fpq_cmd_status): Ditto.
13615         (Fpq_cmd_tuples): Ditto.
13616         (Fpq_oid_value): Ditto.
13617         (Fpq_notifies): Ditto.
13618         (Fpq_lo_import): Ditto.
13619         (Fpq_lo_export): Ditto.
13620         (Fpq_get_line): Ditto.
13621         (Fpq_put_line): Mule-ize and bug fix.
13622         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13623
13624 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13625
13626         * postgresql.c (vars_of_postgresql): Mule-ize.
13627         (Fpq_conn_defaults): Ditto.
13628
13629 2000-03-12  Ben Wing  <ben@xemacs.org>
13630
13631         * alloc.c (Fmake_byte_code):
13632         * alloc.c (debug_string_purity_print):
13633         * alloc.c (pdump_backtrace):
13634         * alloc.c (pdump_get_indirect_count):
13635         * alloc.c (pdump_register_sub):
13636         * alloc.c (pdump_register_object):
13637         * alloc.c (pdump_register_struct):
13638         * alloc.c (pdump_dump_data):
13639         * alloc.c (pdump_reloc_one):
13640         Minor cleanups.
13641
13642         * console-msw.c:
13643         * console-msw.c (GetConsoleHwnd):
13644         * console-msw.c (msw_hide_console):
13645         * console-msw.c (msw_show_console):
13646         * console-msw.c (msw_ensure_console_buffered):
13647         * console-msw.c (msw_output_console_string):
13648         * console-msw.c (console_type_create_mswindows):
13649
13650         a) Added functions to manipulate the console window for use with
13651         shell support.
13652
13653         b) Added support for writing text to the console, which is now
13654         used under Windows when xemacs is not being run non-interactively,
13655         to write text that would otherwise be destined for stdout because
13656         under these circumstances, text written to stdout tends to
13657         disappear and not be seen.
13658
13659         * console-msw.h:
13660         * event-Xt.c:
13661         * event-Xt.c (x_event_to_emacs_event):
13662         * event-Xt.c (describe_event_window):
13663         * events-mod.h (XEMACS_MOD_CONTROL):
13664         * events.c:
13665         * events.c (Fmake_event):
13666         * events.c (character_to_event):
13667         * events.c (event_to_character):
13668         * events.c (format_event_object):
13669         * events.c (Fevent_modifiers):
13670         * events.h:
13671         * events.h (struct key_data):
13672         * events.h (struct button_data):
13673         * events.h (struct misc_user_data):
13674         * frame-x.c (Fcde_start_drag_internal):
13675         * frame-x.c (Foffix_start_drag_internal):
13676         * gpmevent.c (Freceive_gpm_event):
13677         * keymap.c:
13678         * keymap.c (bucky_sym_to_bucky_bit):
13679         * keymap.c (control_meta_superify):
13680         * keymap.c (make_key_description):
13681         * keymap.c (keymap_lookup_directly):
13682         * keymap.c (create_bucky_submap):
13683         * keymap.c (keymap_store):
13684         * keymap.c (define_key_check_and_coerce_keysym):
13685         * keymap.c (define_key_parser):
13686         * keymap.c (define_key_alternate_name):
13687         * keymap.c (Fdefine_key):
13688         * keymap.c (raw_lookup_key_mapper):
13689         * keymap.c (struct map_keymap_unsorted_closure):
13690         * keymap.c (map_keymap_unsorted_mapper):
13691         * keymap.c (map_keymap_sort_predicate):
13692         * keymap.c (map_keymap_sorted):
13693         * keymap.c (accessible_keymaps_mapper_1):
13694         * keymap.c (where_is_recursive_mapper):
13695         * keymap.c (describe_map_mapper):
13696         * keymap.c (describe_map_sort_predicate):
13697         * keymap.c (describe_map):
13698         * keymap.c (complex_vars_of_keymap):
13699         And a number of other files, the key modifier preprocessor
13700         constants that xemacs uses have names that conflict with constants
13701         defined under MS Windows for other purposes, so they were renamed
13702         to begin with the prefix XEMACS_. The variables that hold such
13703         modifiers were changed to consistently be of type int to fix
13704         various compile warnings.
13705
13706         * console.c (complex_vars_of_console):
13707         * device.c:
13708         * device-msw.c:
13709         * device-msw.c (mswindows_finish_init_device):
13710         * device-msw.c (msw_get_workspace_coords):
13711         * device-msw.c (mswindows_device_system_metrics):
13712         and various other files, added support for a new
13713         device property called offset-workspace which returns the position
13714         of the upper left corner of the workspace area and goes along with
13715         the existing size-workspace property.
13716
13717         * dialog-msw.c:
13718         * dialog-msw.c (push_bufbyte_string_as_unicode):
13719         * dialog-msw.c (mswindows_popup_dialog_box):
13720         Added support for XEmacs-style accelerator specifications in
13721         button text.  Note: I didn't add support for this under X Windows,
13722         and somebody needs to do this.
13723
13724         * dialog.c:
13725         * dialog.c (Fpopup_dialog_box):
13726         Documented the support for accelerators that was just mentioned.
13727
13728         editfns.c (get_home_directory): Changed behavior under Windows
13729         when HOME not defined; former behavior was irretrievably broken.
13730
13731         * emacs.c:
13732         * emacs.c (main_1):
13733         * emacs.c (main):
13734         * minibuf.c (clear_echo_area_internal):
13735         * minibuf.c (echo_area_append):
13736         * print.c:
13737         * print.c (std_handle_out_external):
13738         * print.c (std_handle_out_va):
13739         * print.c (fatal):
13740         * print.c (write_string_to_stdio_stream):
13741         * print.c (output_string):
13742         * print.c (debug_print):
13743         * print.c (debug_backtrace):
13744         * print.c (debug_short_backtrace):
13745         Cleaned up the code that prints text to stdout so that this can be
13746         changed to output into a console window instead under MS Windows,
13747         as described above.
13748
13749         * eval.c:
13750         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13751         * eval.c (internal_catch):
13752         * eval.c (unwind_to_catch):
13753         * eval.c (throw_or_bomb_out):
13754         * eval.c (condition_case_1):
13755         * eval.c (signal_1):
13756         * eval.c (check_error_state_sanity):
13757         * eval.c (call_with_suspended_errors_1):
13758         * eval.c (call_with_suspended_errors):
13759         * eval.c (reinit_vars_of_eval):
13760         Added code to catch throw loops and check for a pesky bug that may
13761         be gone now.
13762
13763         * event-msw.c:
13764         * event-msw.c (key_needs_default_processing_p):
13765         * event-msw.c (mswindows_wnd_proc):
13766         * event-msw.c (mswindows_modifier_state):
13767         * event-msw.c (emacs_mswindows_quit_p):
13768         * event-msw.c (vars_of_event_mswindows):
13769         a) Added support for using the alt key to select menu items as is
13770         standard under MS Windows.  This is controlled using the variable
13771         menu-accelerator-enabled, just like under X Windows.  There is an
13772         option on the options menu to turn this support on.  I really
13773         think that it should be on by default under Windows, but I'm not
13774         going to make this change yet.
13775
13776         b)  Added support for dynamic display size changes under Windows.
13777
13778         * event-stream.c:
13779         * event-stream.c (maybe_echo_keys):
13780         * event-stream.c (Fnext_event):
13781         * event-stream.c (command_builder_find_leaf):
13782         * event-stream.c (lookup_command_event):
13783         * event-stream.c (execute_command_event):
13784         * event-stream.c (pre_command_hook):
13785         * event-stream.c (post_command_hook):
13786         * event-stream.c (syms_of_event_stream):
13787         * event-stream.c (vars_of_event_stream):
13788         * event-stream.c (complex_vars_of_event_stream):
13789         * events.h (struct command_builder):
13790
13791         a) Tried to clean up a little bit the horribly written x-specific
13792         accelerator code that crept into this file.  I moved this code
13793         into menubar-x.c where it belongs. I also needed to move the
13794         command builder structure into the file events.h because it is
13795         accessed directly by this accelerator code.  What I didn't do, but
13796         which should be done at some point, is to properly abstract this
13797         code using device methods instead of the kludgy way that it
13798         currently hooks into the event code.
13799
13800         b) Added the lisp variables this-command-properties and
13801         last-command- properties, which should be used to synchronize two
13802         adjacent commands in preference to playing games with the variable
13803         this-command, which is typically what happens.
13804
13805         c) Added some slightly nasty code to hook into the lisp support
13806         for shifted- motion-key selection.  This is actually necessary for
13807         somewhat complicated reasons, which are described in
13808         simple.el. (NB: I think the proper thing would be to have the code
13809         that calls the pre and post command hooks also call out to generic
13810         lisp functions in simple.el, where all built-in stuff could be
13811         added.  I will think about this more.)
13812
13813         * event-unixoid.c (poll_fds_for_input):
13814         * lread.c (readchar):
13815         * redisplay-tty.c (tty_clear_frame):
13816         * redisplay-x.c (x_get_gc):
13817         * signal.c (interrupt_signal):
13818         And a whole bunch of other files: fixed up places that printed
13819         directly to stderr to instead call the function stderr_out so that
13820         the changes I made under Windows work correctly.
13821
13822         * filemode.c (mode_string):
13823         Warning fixes.
13824
13825         * frame-msw.c:
13826         * frame-msw.c (mswindows_size_frame_internal):
13827         Fixed the computation of frame size and position to keep the frame
13828         within the workspace area, rather than within the physical
13829         dimensions of the screen, so that the frame doesn't overlap window
13830         manager decorations, such as the start menu and toolbar, typically
13831         at the bottom of the screen.
13832
13833         * frame.c (vars_of_frame):
13834         Changed the default frame title format under MS Windows to consist
13835         of buffername-XEmacs, which is standard under MS Windows.  I think
13836         it might be a good idea to change this everywhere because I think
13837         it is superior to the current frame title format, but this is the
13838         kind of change that is likely to cause some people to get annoyed,
13839         so I'm not making it.
13840
13841         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13842
13843         * gui-msw.c (mswindows_handle_gui_wm_command):
13844         Fixed compile warnings.
13845
13846         * gui-x.c:
13847         * gui-x.c (strdup_and_add_accel):
13848         * gui-x.c (button_item_to_widget_value):
13849         * gui-x.h:
13850         Added code to automatically put an accelerator onto the beginning
13851         of menu items that don't have one as is now the standard, and is
13852         described more later.  Also fixed things so that the menu item
13853         name can be an evaluated expression, again a new standard.
13854
13855         * gui.c:
13856         * gui.c (gui_item_add_keyval_pair):
13857         * gui.c (make_gui_item_from_keywords_internal):
13858         * gui.c (gui_add_item_keywords_to_plist):
13859         * gui.c (gui_item_accelerator):
13860         * gui.c (gui_name_accelerator):
13861         * gui.c (gui_item_included_p):
13862         * gui.c (gui_item_display_flush_left):
13863         * gui.c (gui_item_display_flush_right):
13864         * gui.c (parse_gui_item_tree_item):
13865         * gui.c (parse_gui_item_tree_children):
13866         * gui.c (parse_gui_item_tree_list):
13867         Mule-ized.  Cleanup.  GCPRO addition.
13868
13869         * line-number.c (buffer_line_number):
13870         * lisp.h:
13871         * lisp.h (EMACS_INT_MAX):
13872         Added the manifest constant EMACS_INT_MIN corresponding to the
13873         existing constant EMACS_INT_MAX.  This is partially to fix compile
13874         warnings under Windows, and partly for cleanliness.
13875
13876         * menubar-msw.c:
13877         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13878         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13879         * menubar-msw.c (displayable_menu_item):
13880         * menubar-msw.c (populate_menu_add_item):
13881         * menubar-msw.c (populate_or_checksum_helper):
13882         * menubar-msw.c (populate_menu):
13883         * menubar-msw.c (update_frame_menubar_maybe):
13884         * menubar-msw.c (prune_menubar):
13885         * menubar-msw.c (msw_char_is_accelerator):
13886         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13887         * menubar-msw.c (mswindows_handle_wm_command):
13888         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13889         * menubar-msw.c (mswindows_handle_wm_initmenu):
13890         * menubar-msw.c (mswindows_update_frame_menubars):
13891         * menubar-msw.c (mswindows_free_frame_menubars):
13892         * menubar-msw.c (mswindows_popup_menu):
13893         Fixed a bug in handling accelerators where an extra character
13894         would be displayed in the menu item.  Also generalized the
13895         function displayable_menu_item because it is now used by the
13896         dialog box code as well.  And finally, added code in the functions
13897         that create the menubar to extract a list of accelerators for the
13898         top level menubar, which is used in the event code to determine
13899         whether a particular alt-key combination should be used to invoke
13900         a menu item, or should be passed through to access the standard
13901         XEmacs keymap binding for this key combination.
13902
13903         Much needed GCPROing.
13904
13905         * menubar-x.c:
13906         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13907         * menubar-x.c (menu_item_descriptor_to_widget_value):
13908         * menubar-x.c (restore_in_menu_callback):
13909         * menubar-x.c (x_popup_menu):
13910         * menubar-x.c (menu_move_up):
13911         * menubar-x.c (menu_move_down):
13912         * menubar-x.c (menu_move_left):
13913         * menubar-x.c (menu_move_right):
13914         * menubar-x.c (menu_select_item):
13915         * menubar-x.c (command_builder_operate_menu_accelerator):
13916         * menubar-x.c (menu_accelerator_junk_on_error):
13917         * menubar-x.c (command_builder_find_menu_accelerator):
13918         * menubar-x.c (Faccelerate_menu):
13919         * menubar.h:
13920         Moved a whole bunch of code here that was previously in
13921         event-stream.c as described above.  There is also code connected
13922         to the new standard of adding an accelerator to the beginning of
13923         menu items that don't have one as described above and below.
13924
13925         * menubar.c:
13926         * menubar.c (menu_parse_submenu_keywords):
13927         * menubar.c (Fmenu_find_real_submenu):
13928         * menubar.c (Fnormalize_menu_item_name):
13929         * menubar.c (syms_of_menubar):
13930         * menubar.c (vars_of_menubar):
13931         * menubar.c (complex_vars_of_menubar):
13932
13933         a) Cleaned up a bunch of documentation and improved it.
13934
13935         b) XEmacs now automatically adds an accelerator onto the beginning
13936         of any menu items that don't have one.  I did this because there
13937         will inevitably be some menu items on the main menubar that don't
13938         have accelerators on them because the package that adds that
13939         particular menu item hasn't yet been fixed up to have accelerators
13940         in them and it looked rather strange to have some items with and
13941         some items without accelerators, especially since even in items
13942         without accelerators, you can, at least under windows, still
13943         access the item through an accelerator corresponding to the first
13944         character in the item's name.  If people don't like this behavior,
13945         I can add a variable to turn it off optionally, but I'm not sure
13946         this is a good idea because we really do need to have accelerators
13947         on all of the menu items, and if a package doesn't like the
13948         accelerators being put on the first character, then it should put
13949         the accelerators where they belong.
13950
13951         c) I made a behavior change, which is that the descriptor that
13952         specifies the text of the menu item, which formerly was just a
13953         string, can now also be an evaluated expression.  This makes this
13954         descriptor parallel with all of the others, which could also be
13955         evaluated expressions.  This also obviates the need for the
13956         keyword :label, which was previously listed in the documentation
13957         as unimplemented, and which was for the same purpose.
13958
13959         d) GCPROing.
13960
13961         * ntproc.c:
13962         * ntproc.c (new_child):
13963         * ntproc.c (sys_spawnve):
13964         * ntproc.c (find_child_console):
13965         * ntproc.c (sys_kill):
13966         Fixed compile warnings.  By the way, this file should really go
13967         away entirely, and this will happen as soon as Kirill makes his
13968         final round of process cleanups, which affect the function
13969         call-process.
13970
13971         * process-nt.c:
13972         * process-nt.c (struct nt_process_data):
13973         * process-nt.c (find_process_from_pid):
13974         * process-nt.c (send_signal_the_nt_way):
13975         * process-nt.c (enable_child_signals):
13976         * process-nt.c (find_child_console):
13977         * process-nt.c (send_signal_the_95_way):
13978         * process-nt.c (nt_finalize_process_data):
13979         * process-nt.c (ensure_console_window_exists):
13980         * process-nt.c (nt_create_process):
13981         * process-nt.c (nt_kill_child_process):
13982         * process-nt.c (nt_kill_process_by_pid):
13983         * process-nt.c (nt_open_network_stream):
13984         * process-nt.c (vars_of_process_nt):
13985         Copied over code from Emacs 20.5 to correctly send signals to sub-
13986         processes under Windows 95.  Also added code to automatically
13987         create and hide console window when a sub-process is created under
13988         Windows 95, which obviates the need for the separate runemacs.exe
13989         executable, and finally implemented some variables that were
13990         implemented in Emacs 20.5, but previously not in XEmacs.  These
13991         include mswindows- start-process-share-console and
13992         mswindows-start-process-inherit-error-mode. (Both of these only
13993         apply to Windows 95.)
13994
13995         * regex.c (regex_compile): Fixed a compile warning.
13996
13997         * select-msw.c:
13998         * select-msw.c (mswindows_own_selection):
13999         * select-msw.c (mswindows_get_foreign_selection):
14000         * select-msw.c (mswindows_disown_selection):
14001         * select-msw.c (console_type_create_select_mswindows):
14002         * select-msw.c (syms_of_select_mswindows):
14003         Cleaned up the file and implemented the device method
14004         selection_exists_p, which had accidentally been left out.  Also
14005         removed four lisp functions that were remnants from before the
14006         time when the selection code was properly device abstracted.
14007         These functions are no longer needed because there are generic
14008         equivalents, and because they were added recently and don't exist
14009         in FSF Emacs, I don't think there's any problem with just deleting
14010         them.
14011
14012         * sysdep.c:
14013         * sysdep.c (sys_subshell):
14014         Fixed a compile warning, although in this case there's probably
14015         something wrong with this code, and it ought to be looked into
14016         more thoroughly by somebody who understands it.
14017
14018         * window.c:
14019         * window.c (Fwindow_text_area_height):
14020         * window.c (Fwindow_width):
14021         * window.c (Fwindow_full_width):
14022         * window.c (Fwindow_pixel_width):
14023         * window.c (debug_print_window):
14024         * window.c (syms_of_window):
14025         Added functions window-text-area-height and window-full-width,
14026         which are functions for returning various width and height
14027         characteristics of a window. (One of these functions is necessary
14028         for making the file dialog box work correctly, and the other one
14029         was added for completeness.)  Also added a table to the
14030         documentation for window-height which describes the entire scheme
14031         for accessing width and height characteristics of a window.
14032
14033 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14034
14035         * nt.c (fstat): Added a comment for another problem with
14036         non-encapsulated [f]stat(), reported by Adrian Aichner
14037         <aichner@ecf.teradyne.com>.
14038
14039 2000-03-11  Andy Piper  <andy@xemacs.org>
14040
14041         * window.c (make_dummy_parent): initialize subwindow instance
14042         cache.
14043         (Fset_window_configuration): zero extent_modiff.
14044
14045 2000-03-10  Andy Piper  <andy@xemacs.org>
14046
14047         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14048         more changes can be triggered.
14049         (Fredisplay_frame): ditto.
14050         (Fredraw_device): ditto.
14051         (Fredisplay_device): ditto.
14052         (redisplay_frame): make non-static.
14053         (redisplay_frame): call update_frame_gutter_geometry outside of
14054         display proper.
14055
14056         * gutter.h: declare update_frame_gutter_geometry.
14057
14058         * redisplay.h: declare redisplay_frame.
14059
14060         * gutter.c (update_frame_gutter_geometry): move geometry changes
14061         in update_frame_gutters here. Geometry changes can only occur
14062         outside of redisplay.
14063         (update_frame_gutters): remove geometry change code.
14064         (Fredisplay_gutter_area): make sure that we are in display when we
14065         update and that we have flushed any size changes.
14066
14067 2000-03-11  Andy Piper  <andy@xemacs.org>
14068
14069         * alloc.c (pdump_dump_data): remove i & count shadows.
14070
14071 2000-02-27  Mike Alexander  <mta@arbortext.com>
14072
14073         * sysdep.h: Declare pdump_read_file
14074
14075         * sysdep.c (pdump_read_file): New function
14076
14077         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14078         dump data
14079
14080 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14081
14082         * lrecord.h: add `lrecord_type_pgsetenv'.
14083
14084 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14085
14086         * symsinit.h: declare (vars|syms)_of* functions.
14087         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14088
14089 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14090
14091         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14092
14093         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14094         GCCs.
14095
14096         * emacs.c (main_1): Call postgres initialization code.
14097
14098         * postgresql.h: New file.  PostgreSQL RDBMS support.
14099         * postgresql.c: New file.
14100
14101 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14102
14103         * redisplay-output.c (redisplay_output_display_block): Disable
14104         redundant code.
14105
14106 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14107
14108         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14109         (Fcanna_henkan_next): Ditto.
14110         (Fcanna_bunsetu_henkou): Ditto.
14111         (Fcanna_henkan_kakutei): Ditto.
14112         (Fcanna_henkan_end): Ditto.
14113         (Fcanna_henkan_quit): Ditto.
14114         (Fcanna_henkan_next): Set retun value correctly.
14115         (c2mu): Use unsigned char instead of signed char.
14116
14117 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14118
14119         * emacs.c (main_1): Always call syms_of_gui.
14120         * inline.c: include gui.h
14121
14122 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14123
14124         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14125         converted to Lisp_Object.
14126         (Qtop_bottom): New variable.
14127         (syms_of_redisplay): Initialize it.
14128         * redisplay.h (Vvisible_bell): Ditto.
14129         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14130         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14131         only flash top and bottom.
14132
14133 2000-03-08  Andy Piper  <andy@xemacs.org>
14134
14135         * buffer.c (Frename_buffer): record new buffer name the right way.
14136
14137 2000-03-08  Andy Piper  <andy@xemacs.org>
14138
14139         * glyphs.c (update_subwindow): increase hash depth so that widget
14140         items get picked up properly.
14141
14142         * redisplay-output.c (compare_runes): increase hash depth so that
14143         widget items get picked up properly.
14144
14145 2000-03-08  Andy Piper  <andy@xemacs.org>
14146
14147         * gutter.c (output_gutter): add some debug.
14148
14149         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14150         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14151         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14152
14153         * redisplay-output.c (compare_runes): use display_hash to
14154         determine if glyphs really are not the same.
14155
14156         * glyphs.c (update_subwindow): check display_hash to see if
14157         anything really needs to be updated. If not then do
14158         nothing. Record the display_hash after updating.
14159         (image_instance_equal): compare the image_instance face also.
14160
14161 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14162
14163         * redisplay.h: Fix comment style.
14164
14165 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14166
14167         * consle-msw.h (struct mswindows_frame):
14168         Added new member paint_pending to indicate whether a WM_PAINT
14169         magic event has been queued for this frame.
14170
14171         * event-msw.c (mswindows_drain_windows_queue):
14172         Don't queue a WM_PAINT magic event if one is already queued.
14173         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14174
14175         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14176
14177 2000-03-07  Didier Verna  <didier@xemacs.org>
14178
14179         * dired.c: #include `regex.h' after `sysfile.h'.
14180
14181 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14182
14183         * sound.c (init_nas_sound): Fix compiler warning.
14184
14185         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14186         (FREE_STRUCT_P):
14187         (MARK_STRUCT_AS_FREE):
14188         (MARK_STRUCT_AS_NOT_FREE):
14189         Make `gcc -fstrict-aliasing' work properly.
14190
14191 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14192
14193         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14194         (mswindows_delete_device): Call CoUnnitialize().
14195
14196         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14197
14198 2000-02-25    <CraigL@DyCon.com>
14199
14200         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14201         <errno.h>.
14202
14203         * sysdep.c: This extern declaration for environ prevents MinGW
14204         from finding the variable in CRTDLL.DLL.
14205
14206         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14207         windows headers.
14208         (SHGFI_EXETYPE): ..
14209         (WM_MOUSEWHEEL): ..
14210         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14211         definitions.
14212         (MMRESULT): Removed, now defined in cygwin's windows headers.
14213         (TIMECAPS): ..
14214         (uid_t,gid_t,pid_t,ssize_t): ..
14215         (_timeb): Removed, MinGW defines both _timeb and timeb.
14216         (HAVE_H_ERRNO): Added.
14217         (HAVE_TZNAME): Added, configure is not detecting this.
14218
14219 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14220
14221         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14222         * syntax.c (syntax_match): Use it.
14223
14224         * cmds.c: Import auto-fill-chars from FSF Emacs.
14225         (Vauto_fill_chars): New variables.
14226         (internal_self_insert): Check Vauto_fill_chars.
14227         (vars_of_cmds):
14228         Declare auto-fill-chars as a Lisp variable and initialize it.
14229
14230 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14231
14232         * fileio.c (Fmake_symbolic_link):
14233         (Ffile_symlink_p):
14234         Run handlers even if local machine doesn't have symlinks.
14235
14236 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14237
14238         * event-msw.c (mswindows_drain_windows_queue):
14239         Don't generate paint magic events for non-XEmacs frames.
14240
14241 2000-03-05  Andy Piper  <andy@xemacs.org>
14242
14243         * redisplay.c (redisplay_frame): generate_displayable_area and
14244         friends assumes that we are not in GC, we therefore have to make
14245         sure that this doesn't happen.
14246
14247         * gutter.c (calculate_gutter_size): generate_displayable_area
14248         assumes that we are not in GC, we therefore have to make sure that
14249         this doesn't happen.
14250
14251 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14252
14253         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14254
14255 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14256
14257         * redisplay.c (regenerate_window): Make sure we set a sane value
14258         for end_pos even if we jump out of the loop.
14259         (regenerate_window): Answer Ben's question :-).
14260         (start_end_of_last_line): Add may_error argument.
14261         (start_of_last_line):
14262         (end_of_last_line): Pass may_error = 0.
14263         (end_of_last_line_may_error): New function.
14264         (pixel_to_glyph_translation): Use it, so we don't crash in
14265         event_to_glyph.
14266
14267 2000-03-04  Andy Piper  <andy@xemacs.org>
14268
14269         * window.h (struct window): add gutter_extent_modiff.
14270
14271         * window.c (allocate_window): zero out gutter_extent_modiff.
14272
14273         * redisplay.h: declare sync_display_line_structs.
14274
14275         * redisplay.c (add_glyph_rune): add a better comment.
14276
14277         * redisplay-output.c (sync_display_line_structs): made non-static.
14278         (compare_runes): remove unneccesary glyph cachel access.
14279
14280         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14281
14282         * gutter.c (output_gutter): don't output the gutter if extent
14283         changes only involve extents in buffers. use 4 sets of display
14284         lines.
14285         (gutter_extent_signal_changed_region_maybe): new function. Mark
14286         extents in gutters as changed.
14287         (update_frame_gutters): use 4 sets of display lines.
14288         (reset_gutter_display_lines): ditto.
14289         (free_frame_gutters): ditto.
14290         (redraw_exposed_gutter): force output of gutters.
14291
14292         * frame.h (struct frame): add 4 sets of gutter display lines.
14293
14294         * extents.c: (extent_changed_for_redisplay): signal changes to
14295         extents in strings in the gutter as well as extents in buffers.
14296
14297 2000-03-02  Andy Piper  <andy@xemacs.org>
14298
14299         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14300
14301         * frame.c (Fmake_frame): make sure the gutters get initialized
14302         after the frame is visible.
14303         (set_frame_selected_window): re-arrange compilation macros a
14304         little.
14305         (change_frame_size_1): mark gutters changed.
14306
14307         * device.c (Fset_device_class): mark gutters changed.
14308
14309 2000-03-01  Andy Piper  <andy@xemacs.org>
14310
14311         * window.c (window_top_frame_gutter_height): deleted.
14312         (window_bottom_frame_gutter_height): ditto.
14313         (window_left_frame_gutter_height): ditto.
14314         (window_right_frame_gutter_height): ditto.
14315         (window_top_gutter_height): don't use them.
14316         (window_bottom_gutter_height): ditto.
14317         (window_left_gutter_width): ditto.
14318         (window_right_gutter_width): ditto.
14319         (Fsplit_window): ditto.
14320         (Fwindow_pixel_edges): don't use border dimensions here.
14321
14322         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14323         (update_scrollbar_instance): ditto.
14324
14325         * redisplay.c (generate_modeline): don't take gutters into account.
14326         (generate_modeline): ditto.
14327         (redisplay_frame): small gutter display optimization.
14328
14329         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14330
14331         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14332         gutters into account.
14333
14334         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14335         for window position and type.
14336
14337         * gutter.c (get_gutter_coords): fix for frame gutters.
14338         (update_frame_gutters): update frame geometry if the gutters have
14339         changed.
14340         (init_frame_gutters): record current gutter geometries.
14341
14342         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14343         var.
14344         (mswindows_widget_instantiate): ditto.
14345
14346         * frame.h (struct frame): add current_gutter_bounds.
14347
14348         * frame.c (change_frame_size_1): position window and minibuffer
14349         appropriately taking into account the frame gutters.
14350
14351         * frame-x.c: (x_initialize_frame_size): take into account the
14352         frame gutters.
14353
14354 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14355
14356         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14357
14358 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14359
14360         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14361
14362 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14363
14364         * file-coding.c (reset_decoding_stream): Clear previous
14365         detection state when autodetect.
14366
14367 2000-02-29  Didier Verna  <didier@xemacs.org>
14368
14369         * extents.c (set_extent_glyph_1): don't require extents to be
14370         attached.
14371
14372 2000-02-27  Andy Piper  <andy@xemacs.org>
14373
14374         * gutter.c (Fset_default_gutter_position): don't default left and
14375         right gutter visibility to t.
14376         (Fset_default_gutter_position): run
14377         default-gutter-position-changed-hook.
14378         (syms_of_gutter): add default-gutter-position-changed-hook.
14379
14380 2000-02-26  Andy Piper  <andy@xemacs.org>
14381
14382         * specifier.c (Fmake_specifier): add gutter references.
14383
14384         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14385
14386         * lisp.h: declare Fvalid_plist_p.
14387
14388         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14389         as changed.
14390         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14391         well as its visibility so that it gets reconstructed.
14392         (construct_window_gutter_spec): new function. Construct a string
14393         to be displayed in the gutter from a plist of strings. Take care
14394         to only use elements that are declared as visible.
14395         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14396         WINDOW_GUTTER.
14397         (gutter_validate): allow plists of strings in the specifier.
14398         (gutter_specs_changed): construct the real_gutter from the gutter
14399         specs using construct_window_gutter_spec.
14400         (gutter_visible_validate): gutter-visible is a new specifier type.
14401         (Fgutter_visible_specifier_p): new function for the new specifier.
14402         (syms_of_gutter): declare gutter-visible and
14403         Fgutter_visible_specifier_p.
14404         (specifier_type_create_gutter): intitalize new gutter-visible
14405         specifier.
14406         (reinit_specifier_type_create_gutter): ditto.
14407         (specifier_vars_of_gutter): use new specifier type for gutter
14408         visibility.
14409         (init_frame_gutters): construct real_gutter correctly.
14410         (Fgutter_specifier_p): beef up documentation.
14411         (Fgutter_size_specifier_p): ditto.
14412
14413         * winslots.h: add real_gutter slots.
14414
14415 2000-02-25  Andy Piper  <andy@xemacs.org>
14416
14417         * device-msw.c: Be kind to older cygwin versions. From Raymond
14418         Toy <toy@rtp.ericsson.se>.
14419
14420         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14421         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14422
14423 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14424
14425         * elhash.c (MARK_OBJ): Practice macro hygiene.
14426
14427 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14428
14429         * miscplay.c: s/__inline__/inline/g;
14430         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14431         (get_device_compdc): INLINE ==> static inline
14432         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14433         find -name '*.h' | \
14434         xargs global-replace \
14435         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14436
14437 2000-02-25  Andy Piper  <andy@xemacs.org>
14438
14439         * window.c (window_top_frame_gutter_height): new function.
14440         (window_top_window_gutter_height): ditto.
14441         (window_top_gutter_height): use them.
14442         (window_bottom_frame_gutter_height): new function.
14443         (window_bottom_window_gutter_height): ditto.
14444         (window_bottom_gutter_height): use them.
14445         (window_left_window_gutter_width): new function.
14446         (window_left_frame_gutter_width): ditto.
14447         (window_left_gutter_width): use them.
14448         (window_right_window_gutter_width): new function.
14449         (window_right_frame_gutter_width): ditto.
14450         (window_right_gutter_width): use them.
14451         (window_pixel_height): new function. calulate window pixel height
14452         with frame gutter involvement.
14453         (Fsplit_window): calculate new sizes taking frame gutters into
14454         account.
14455         (window_char_height_to_pixel_height): don't include frame gutters.
14456         (window_char_height): use window_pixel_height.
14457         (window_pixheight): rename from window_pixel_height.
14458         (change_window_height): use it.
14459         (window_pixel_height_to_char_height): don't include frame gutters.
14460         (window_char_width_to_pixel_width): ditto.
14461
14462 2000-02-25  Andy Piper  <andy@xemacs.org>
14463
14464         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14465         if it is.
14466
14467 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14468
14469         * alloc.c (staticpro):
14470         (staticpro_nodump):
14471         (dumpstruct):
14472         (dumpopaque):
14473         (pdump_wire):
14474         (pdump_wire_list):
14475         (compact_string_chars):
14476         (pdump_dump_wired):
14477         Convert:  if (foo) abort();  ==>  assert (! foo);
14478
14479         * eldap.c (Fldap_search_basic):
14480         (Fldap_add):
14481         (Fldap_modify):
14482         (Fldap_delete):
14483         Fix compiler warnings, and possible crashes if (random) return
14484         value were to be used.
14485
14486 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14487
14488         * device-msw.c: Workaround ResetDC failure.
14489
14490         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14491         applying a devmode.
14492
14493         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14494         (mswindows_text_width): Do not start printer page.
14495
14496         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14497
14498         * glyphs-msw.c: Added image methods to msprinter console and
14499         msprinter-specific image instantiation.
14500
14501 2000-02-20  Mike Alexander  <mta@arbortext.com>
14502
14503         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14504         to avoid crashes when selection-sets-clipboard is on
14505         (mswindows_own_selection): ditto
14506
14507 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14508
14509         * glyphs-msw.c:
14510         * redisplay-msw.c (get_frame_dc):
14511         (get_frame_compdc):
14512         * console-msw.h:
14513         * device-msw.c (mswindows_init_device):
14514         (mswindows_delete_device):
14515         (msprinter_init_device):
14516         (msprinter_delete_device):
14517         * frame-msw.c (mswindows_init_frame_1):
14518         (mswindows_delete_frame):
14519         (msprinter_init_frame_3):
14520         (msprinter_delete_frame): Move compatible DC to device object from
14521         frame object, for both mswindows and msprinter. Only one at a time
14522         is needed, it is a real waste to have one per frame!
14523
14524 2000-02-23  Andy Piper  <andy@xemacs.org>
14525
14526         * glyphs.c: add dynamic width and height elements.
14527         (image_instance_equal): ditto.
14528
14529         * glyphs-widget.c (widget_query_geometry): calculate width and
14530         height dynamically if required.
14531         (initialize_widget_image_instance): initialize dynamic dimensions.
14532         (widget_instantiate): pick-up dynamic dimensions.
14533
14534         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14535         dynamic determination. Add appropriate macros.
14536
14537         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14538         dimensions safe.
14539         (WINDOW_GUTTER_SIZE): ditto.
14540         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14541
14542         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14543         inline.
14544         (get_frame_dc): ditto.
14545
14546         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14547         here.
14548
14549 2000-02-23  Martin Buchholz <martin@xemacs.org>
14550
14551         * XEmacs 21.2.31 is released.
14552
14553 2000-02-22  Ben Wing <ben@xemacs.org>
14554
14555         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14556
14557 2000-02-22  Andy Piper  <andy@xemacs.org>
14558
14559         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14560
14561 2000-02-21  Mike Sperber <mike@xemacs.org>
14562
14563         * .dbxrc:
14564         * .gdbinit:
14565         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14566         variables.
14567
14568 2000-02-21  Mike Sperber <mike@xemacs.org>
14569
14570         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14571
14572 2000-02-21  Martin Buchholz <martin@xemacs.org>
14573
14574         * XEmacs 21.2.30 is released.
14575
14576 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14577
14578         Performance hacking.
14579         * *.c (syms_of_*):
14580         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14581         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14582         * emacs.c (main_1):
14583         * lisp.h (DEFUN):
14584         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14585         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14586         * symeval.h (DEFVAR_SYMVAL_FWD):
14587         * symbols.c (guts_of_unbound_marker):
14588         Make all c_readonly objects also lisp_readonly and marked for life.
14589         * lrecord.h (struct lrecord_implementation):
14590         Document flags better.
14591         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14592         * lrecord.h (DECLARE_LRECORD):
14593         * lrecord.h (XSETRECORD):
14594         * lrecord.h (RECORDP):
14595         * lrecord.h (RECORD_TYPEP):
14596         * lrecord.h (RECORD_MARKER): New.
14597         * lrecord.h (error_check_*):
14598         * lrecord.h (CONCHECK_NONRECORD):
14599         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14600         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14601         * lrecord.h (set_lheader_implementation):
14602         * lrecord.h (enum lrecord_type): New.
14603         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14604         * alloc.c (disksave_object_finalization_1):
14605         * alloc.c (mark_object):
14606         * alloc.c (lrecord_type_index):
14607         * alloc.c (tick_lcrecord_stats):
14608         * alloc.c (Fgarbage_collect):
14609         * alloc.c (init_alloc_once_early):
14610         * alloc.c (pdump_load):
14611         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14612         * alloc.c (lrecord_type_index): Delete.
14613         Make lisp object type indexes be constant.
14614           Makes (byte-compile) 5% faster.
14615         Put all marker functions into their own array.
14616           Makes (garbage-collect) 5% faster.
14617         Optimize SYMBOL_VALUE_MAGIC_P.
14618           Makes (byte-compile) 2-3% faster.
14619         * config.h.in (gc_checking_assert): New.
14620         * alloc.c: Use gc_checking_assert().
14621         * .dbxrc: Make compatible with new object type implementation.
14622         * .gdbinit: Make compatible with new object type implementation.
14623         * alloc.c: Delete all symbols defined only for debugging, such as
14624         Lisp_Type_Vector and lrecord_charset.
14625
14626 2000-02-21  Andy Piper  <andy@xemacs.org>
14627
14628         * gui-msw.c (Fmswindows_shell_execute): fix file location
14629         problems.
14630
14631         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14632         unshowing so that set_window_buffer doesn't undo
14633         kill_buffer_hook's hard work.
14634
14635         * glyphs-widget.c (tab_control_query_geometry): don't count the
14636         first item when calculating geometry.
14637
14638         * glyphs.c (map_subwindow): remove redundant code.
14639         (update_frame_subwindows): be more circumspect about when to
14640         update subwindows.
14641
14642         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14643         when items haven't changed. Update faces if faces have changed as
14644         well as just the widget face.
14645         (x_tab_control_update): Update faces if faces have changed as well
14646         as just the widget face.
14647
14648 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14649
14650         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14651         registration.
14652         (build_syscolor_string): Use mswindows_color_to_string to try to
14653         get a named color.
14654         (mswindows_device_system_metrics): Reverse the foreground and
14655         background colors so that they match the documentation.
14656
14657         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14658         they match the default Windows palette.
14659         (mswindows_color_to_string): New function.
14660
14661 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14662
14663         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14664
14665 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14666
14667         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14668         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14669
14670         * symbols.c (init_symbols_once_early): Removed obsolete
14671         DATA_SEG_BITS related kludge.
14672         (defvar_magic): Ditto.
14673
14674         * malloc.c: Removed obsolete DATA_SEG_BITS
14675         * ralloc.c: Ditto.
14676         * mem-limits.h: Ditto.
14677
14678         * Makefile.in.in: Removed obsolete HAVE_SHM
14679         * emacs.c: Ditto.
14680
14681 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14682
14683         *  device-msw.c (mswindows_delete_device): Free DDE string
14684         handles.
14685
14686 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14687
14688         * keymap.c (get_keyelt):
14689         * unexnt.c (unexec):
14690         * vm-limit.c (memory_warnings):
14691         * ntheap.c (recreate_heap):
14692         * ntheap.h (UNINIT_PTR):
14693         * select-msw.c (Fmswindows_get_clipboard):
14694         (Fmswindows_set_clipboard):
14695         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14696         * objects-msw.c:
14697         * menubar-msw.c (displayable_menu_item):
14698         * glyphs-msw.c:
14699         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14700         * sysdep.c (sys_subshell):
14701         * process-nt.c (nt_create_process):
14702         * nt.c (normalize_filename):
14703         (dostounix_filename):
14704         (unixtodos_filename):
14705         * ntproc.c (win32_executable_type):
14706         * ntplay.c (play_sound_data_1):
14707         (play_sound_file):
14708         * editfns.c (get_home_directory):
14709         * event-msw.c (struct winsock_stream):
14710         (mswindows_dde_callback):
14711         * device-msw.c (msprinter_init_device):
14712         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14713
14714         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14715         mswindows_clear_toolbar were swapped!
14716
14717         * objects-msw.c:(colormap_t):
14718         (fontmap_t):
14719         * emacs.c (struct standard_args): Fixed const jumble.
14720
14721         * glyphs-widget.c (update_widget): Fixed comparison notation.
14722
14723         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14724
14725         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14726         __declspec(noreturn) syntax.
14727
14728 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14729
14730         * eldap.c (Fldap_open):
14731         (Fldap_search_basic):
14732         (Fldap_add):
14733         (Fldap_modify):
14734         Use new coding system conversion macros.
14735
14736 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14737
14738         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14739
14740 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14741
14742         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14743         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14744
14745         * eldap.c (Qadd, Qreplace): New constant symbols
14746         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14747         interruptions by XEmacs signals
14748         Remove unnecessary calls to slow_down_interrupts and
14749         speed_up_interrupts
14750         (Fldap_search_basic): Renamed from Fldap_search_internal
14751         Added new optional parameter VERBOSE that triggers the
14752         display of progress messages
14753         Remove unnecessary calls to slow_down_interrupts and
14754         speed_up_interrupts
14755         LDAP result code analysis rewritten
14756         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14757         (syms_of_eldap): Define the new symbols and functions
14758
14759
14760 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14761
14762         * realpath.c: Determine PATH_MAX maximally portably.
14763
14764         * insdel.c (bytecount_to_charcount): Optimize.
14765         The function used to be optimized for entirely ASCII sequences.
14766         Now it is optimized for successive characters from the same
14767         charset.  This also wins big for _mostly_ ASCII sequences.
14768
14769         * fileio.c (Ffile_truename): convert return from realpath() using
14770         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14771         - Rewrite GCPROing slightly.
14772
14773         * sysdep.c (sys_open): Do filename conversion, like all other
14774         sys_* functions.  Fixes bug:
14775         (let ((file-name-coding-system 'iso-8859-2))
14776            (write-region x y latin2-name))
14777         ==> writes filename using internal encoding.
14778
14779 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14780
14781         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14782         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14783         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14784         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14785         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14786         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14787         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14788         (CONST_IF_NOT_DEBUG): Delete.
14789         * alloc.c (this_one_is_unmarkable): Delete.
14790         (mark_object): Don't check for this_one_is_unmarkable. Use the
14791         c_readonly flag instead.
14792         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14793
14794 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14795
14796         * event-msw.c (mswindows_drain_windows_queue):
14797         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14798         away redundant repaint events.
14799
14800 2000-02-17  Andy Piper  <andy@xemacs.org>
14801
14802         * redisplay.h: declare mark_redisplay_structs.
14803
14804         * redisplay.c (redisplay_window):
14805         (redisplay_frame): don't check subwindows_state_changed.
14806         (mark_redisplay): mark gutters here.
14807
14808         * glyphs.c: (instantiate_image_instantiator): always layout if we
14809         haven't done so already.
14810         (allocate_image_instance): don't mark as dirty.
14811         (update_subwindow): bind inhibit_quit.
14812
14813         * gutter.c (mark_gutters): new function.
14814
14815         * glyphs-x.c (x_update_widget): Always resize to get round a
14816         widget bug.
14817
14818         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14819         breaking absolutely everything.
14820
14821         * gutter.h: declare mark_gutters.
14822
14823 2000-02-16  Martin Buchholz <martin@xemacs.org>
14824
14825         * XEmacs 21.2.29 is released.
14826
14827 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14828
14829         * fns.c (size_bit_vector): Fix computation of the size.
14830
14831 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14832
14833         * *.[ch]: Change CONST to const globally.
14834         find -name '*.[ch]' | \
14835         xargs global-replace \
14836         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14837         - Remove vestigial references to CONST_IS_LOSING
14838
14839 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14840
14841         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14842         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14843         events instead of dispatching them directly.
14844         (mswindows_handle_paint): New function to do repainting.
14845         (mswindows_wnd_proc):
14846         (emacs_mswindows_handle_magic_event): Call above function.
14847
14848 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14849
14850         * objects-msw.c (mswindows_create_font_variant): Return the new
14851         font handle.
14852         (initialize_font_instance): Get font metrics from the underlined
14853         variant of the font to cope with the case where the underlined
14854         font has a bigger descent.
14855
14856 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14857
14858         * gui.c (gui_item_accelerator): Return the first underlined
14859         character in item name.
14860
14861 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14862
14863         * lisp.h: Added Qprinter.
14864
14865         * general.c (syms_of_general): Initialized it.
14866
14867         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14868         (get_frame_dc):
14869         (get_frame_compdc): Made inline.
14870
14871         * console.h (struct console_methods): Added eject_page method.
14872
14873         * frame.h: Added FRAME_DISPLAY_P and friends.
14874         Aligned backslahes in many macros in more readable fashion.
14875         Added page_number to struct frame, and an accessor macro
14876         for it.
14877
14878         * defice.h: Added DEVICE_DISPLAY_P and friends.
14879
14880         * device.c (Fdevice_printer_p): Used these.
14881
14882         * frame.c (allocate_frame_core): Initialize page number.
14883         (Fprint_job_page_number):
14884         (Fprint_job_eject_page): Implemented.
14885
14886         * frame-msw.c (msprinter_eject_page): Added method.
14887         (msprinter_start_page): Added.
14888
14889         * window.c (Fwindow_truncated_p): Fixed docstring.
14890         (Fwindow_last_line_visible_height): Implemented.
14891
14892 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14893
14894         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14895
14896 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14897
14898         * syntax.c (scan_words): Always advance at least one character.
14899
14900 2000-02-13  Andy Piper  <andy@xemacs.org>
14901
14902         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14903         to make sure the glyph is in the cachels.
14904
14905         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14906         global image instance flag.
14907         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14908         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14909
14910         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14911         (Fset_image_instance_property): mark layout as changed.
14912         (invalidate_glyph_geometry_maybe): mark layout as changed.
14913         (glyph_width): use new NEEDS_LAYOUT macro.
14914         (glyph_ascent): ditto.
14915         (glyph_descent): ditto.
14916         (glyph_height): ditto.
14917         (image_instance_layout): mark layout as clean after laying out.
14918         (update_subwindow): don't mark layout as clean here.
14919
14920         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14921         should no longer be needed.
14922
14923         * glyphs-x.c (x_update_widget): sanitize asserts.
14924         (x_finalize_image_instance): sanitize assignment to widgets.
14925
14926         * glyphs-widget.c (widget_instantiate): don't need to clear the
14927         layout flag here.
14928
14929 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14930
14931         * sysdep.c (getcwd): Use standard prototype.
14932         * sysdep.h (getcwd): Use standard prototype.
14933
14934         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14935         (sequence, start, end).
14936         Remove redundant type checking.
14937         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14938         view of `caller-protects') to avoid a crash where the real fix was
14939         found elsewhere.
14940
14941 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14942
14943         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14944
14945         * s/sol2.h: Remove feature macro initialization.
14946
14947         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14948         (vector_hash): New.  Code from internal_hash.
14949         * lrecord.h:
14950         Fix up allocation subsystem comments.
14951
14952         * config.h.in: Add __EXTENSIONS__ for Solaris.
14953
14954         * systime.h (EMACS_GETTIMEOFDAY): New.
14955         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14956         Remove Solaris-specific code.
14957         Use void* for the (ignored) second arg for gettimeofday().
14958
14959         * elhash.c (hash_table_hash): Implement it, finally.
14960         * elhash.c:  Use hashcode_t.
14961
14962         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14963         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14964
14965         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14966         * fns.c (size_bit_vector):
14967         * alloc.c (size_vector):
14968         (make_vector_internal):
14969         (make_bit_vector_internal):
14970         (sweep_bit_vectors_1):
14971         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14972
14973 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14974
14975         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14976         Include strings.h to avoid warnings for bzero and strcasecmp.
14977
14978 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14979
14980         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14981         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14982
14983         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14984         sequence.
14985
14986 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14987
14988         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14989         use a value field instead.
14990         (symbol_value_forward_forward): Use value field.
14991         (DEFVAR_SYMVAL_FWD): Use value field.
14992         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14993         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14994         (DEFVAR_CONST_INT): Ditto.
14995         (DEFVAR_BOOL): Ditto.
14996         (DEFVAR_CONST_BOOL): Ditto.
14997         (DEFVAR_INT_MAGIC): Ditto.
14998         (DEFVAR_BOOL_MAGIC): Ditto.
14999
15000         * symbols.c (guts_of_unbound_marker): Use value field.
15001         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15002         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15003
15004         * lisp.h: Declare dumpopaque and noninteractive1.
15005
15006         * alloc.c (dumpopaque): Added.
15007         (pdump_dump_opaquevec): Added.
15008         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15009         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15010         noninteractive.
15011
15012 2000-02-10  Andy Piper  <andy@xemacs.org>
15013
15014         * glyphs.c (image_instance_layout): if the size changes, mark it
15015         as such.
15016
15017         * redisplay-output.c (redisplay_output_layout): Update the
15018         subwindow here.
15019         (redisplay_output_subwindow): ditto.
15020
15021         * glyphs.c (update_subwindow): make sure we reset flags for
15022         layouts as well as everything else.
15023
15024         * glyphs-widget.c (layout_layout): don't need to set the instances
15025         dimensions here.
15026
15027 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15028
15029         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15030         not HAVE_DLOPEN, which is a lower-level thing.
15031
15032         * .cvsignore: Ignore gmon.out
15033
15034 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15035
15036         * .cvsignore: Ignore portable dumper xemacs.dmp file
15037
15038 2000-02-09  Andy Piper  <andy@xemacs.org>
15039
15040         * redisplay-output.c (redisplay_output_layout): be more clever
15041         about when we output based on the changed flags.
15042
15043         * glyphs.h (struct image_instantiator_methods): add update_method.
15044         (struct Lisp_Image_Instance): add changed flags. Declare new
15045         macros for manipulating them.
15046
15047         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15048         (image_instance_parent_glyph): find an image_instance's parent
15049         glyph or image_instance.
15050         (image_instance_layout): mark the size as changed.
15051         (set_image_instance_dirty_p): new function. mark an image
15052         instance, plus all of its parents, as dirty.
15053         (Fset_image_instance_property): use it.
15054         (Fglyph_animated_timeout_handler): use it.
15055         (update_subwindow): call update_widget and device methods for
15056         update_subwindow. Mark all changed flags as clean.
15057         (Fresize_subwindow): mark size as changed.
15058
15059         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15060         failures.
15061         (x_update_subwindow): only resize subwindows here.
15062         (x_update_widget): new function. Update all changed properties of
15063         a widget.
15064         (x_resize_subwindow): deleted.
15065         (x_widget_set_property): deleted.
15066         (x_progress_gauge_set_property): deleted.
15067         (x_progress_gauge_update): new function. Implement recorded
15068         changes.
15069         (x_tab_control_update): ditto.
15070         (x_tab_control_set_property): deleted.
15071         (console_type_create_glyphs_x): declare new functions.
15072         (image_instantiator_format_create_glyphs_x): ditto.
15073
15074         * glyphs-widget.c (widget_set_property): mark text changed.
15075         (update_widget): new function. Update properties of a widget.
15076         (widget_instantiate): for layouts make sure we set their
15077         children's parent correctly.
15078         (tab_control_set_property): new function. Record changes that will
15079         take place under redisplay's control.
15080         (progress_gauge_set_property): ditto.
15081         (image_instantiator_progress_guage): declare new functions.
15082         (image_instantiator_tab_control): ditto.
15083
15084         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15085         now.
15086         (mswindows_update_widget): new function. Update all properties on
15087         a widget that have changed.
15088         (mswindows_button_update): new function. Update a button's set
15089         state.
15090         (mswindows_tab_control_update): new function. Update the items in
15091         a tab.
15092         (mswindows_tab_control_set_property): deleted.
15093         (mswindows_progress_gauge_update): new function. Update the
15094         progress gauge's progress.
15095         (mswindows_widget_set_property): deleted. This is all done
15096         asynchronously now.
15097         (mswindows_progress_gauge_set_property): ditto.
15098         (console_type_create_glyphs_mswindows): declare new methods.
15099         (image_instantiator_format_create_glyphs_mswindows): ditto.
15100
15101         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15102         (msprinter_set_frame_properties): ditto.
15103
15104         * console.h (struct console_methods): Add update_widget_method.
15105
15106 2000-02-09  Andy Piper  <andy@xemacs.org>
15107
15108         * gui-msw.c (Fmswindows_shell_execute): Make
15109         mswindows-shell-execute industrial strength.
15110
15111 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15112
15113         * lrecord.h: Make macro argument `props' match member function `plist'.
15114         * fns.c (Fget):
15115         * fns.c (Fput):
15116         * fns.c (Fremprop):
15117         * fns.c (Fobject_plist):
15118         * alloc.c:
15119         * symbols.c:
15120         Object property list frobbing cleanup.
15121         - Allow any lisp object (compared with `eq'), not just symbols, as
15122           keys in object plists.
15123         - Move symbol plist frobbing into symbols.c, where it belongs.
15124         - Move string plist frobbing into alloc.c, where it belongs.
15125         - Everything's an lrecord now, so no need to test for symbolp, etc.
15126         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15127
15128         * extents.c: Reorder code to remove declarations.
15129
15130         * frame.h (store_in_alist): Remove useless declaration.
15131
15132 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15133
15134         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15135         * config.h.in: Add HAVE_XCONVERTCASE.
15136
15137 2000-02-07  Andy Piper  <andy@xemacs.org>
15138
15139         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15140         it breaks many things.
15141
15142 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15143
15144         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15145         actually can start a common comment type.
15146         * src/syntax.h (SYNTAX_END_P): ditto for end.
15147
15148 2000-02-07  Martin Buchholz <martin@xemacs.org>
15149
15150         * XEmacs 21.2.28 is released.
15151
15152 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15153
15154         * event-Xt.c (x_keysym_to_character): New.
15155         (maybe_define_x_key_as_self_inserting_character): New.
15156         (x_has_keysym): New.
15157         Auto-define all keys on the keyboard as self-insert-key.
15158
15159 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15160
15161         * menubar.c (vars_of_menubar): A small code simplification.
15162
15163         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15164
15165         * ExternalShell.c:
15166         * ExternalClient.c:
15167         * EmacsShell-sub.c:
15168         * EmacsManager.c:
15169         * EmacsFrame.c:
15170         Use consistent style for specifying X resources.
15171
15172         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15173         This makes (dontusethis-set-symbol-value-handler) actually usable.
15174
15175         * lrecord.h (lrecord_decription_type):
15176         * alloc.c (pdump_register_sub):
15177         (pdump_dump_data):
15178         (pdump_reloc_one):
15179         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15180         Comply with XEmacs coding style.
15181         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15182         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15183
15184         * keymap.c (Faccessible_keymaps):
15185         Make (accessible-keymaps map "\C-h") do the Right Thing.
15186         Make (accessible-keymaps map []) do the Right Thing.
15187         Make (accessible-keymaps map "") do the Right Thing.
15188         (check_keymap_definition_loop): New function.
15189         (keymap_store_internal): Keep luser from shooting self in foot,
15190           via (define-key ctl-x-4-map "p" global-map).
15191         Remove fullness slot from struct Lisp_Keymap, since hash tables
15192         are now reliable.
15193         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15194
15195 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15196
15197         * redisplay.c (init_redisplay): Fix small memory leak.
15198         * elhash.h:
15199         * elhash.c (pdump_reorganize_hash_table):
15200         Rename from reorganize_hash_table. Change prototype.
15201         Reuse the original memory for hentries.  Save 100k.
15202         * alloc.c (PDUMP_READ): new macro.
15203         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15204         * alloc.c: No need to #ifndef before #undef.
15205
15206         * print.c: Allow debug_print() to print readably by modifying
15207         debug_print_readably.  Use consistent variable names.
15208
15209         * .dbxrc: Try to get things to work even if stopped in a function
15210         without source available by explicitly specifying source files.
15211 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15212
15213         * unexnt.c (_start): Removed bogus code which caused loading heap
15214         from differrent executable file.
15215         Removed bogus assignment to _fmode, which caused inconsistencies.
15216
15217 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15218
15219         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15220         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15221         Do not preliminary `#define signal sigset'.
15222
15223         * systime.h: Do not prototype environ on windows nt and cygwin,
15224         this conflicts with system header.
15225
15226         * syssignal.h: Use correct define for WINDOWSNT
15227
15228         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15229         with system header.
15230
15231         * sysdep.c (near start of file): Fixed commentary and rearranged
15232         ifdefs in readable order.
15233         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15234         (start_of_text):
15235         (end_of_text):
15236         (end_of_data): Do not compile in if using PDUMP.
15237
15238         * symsinit.h: Prototyped vars_of_nt().
15239
15240         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15241         (find_child_console): Use it.
15242         (sys_kill): Use it.
15243
15244         * ntheap.h: Do not extern os_subtype.
15245
15246         * ntheap.c (cache_system_info): Do not cache unneeded:
15247         nt_major_version, nt_minor_version and os_subtype.
15248         (recreate_heap): Do not compile in when PDUMPing.
15249
15250         * nt.c (geteuid and friends): Use the new varibale
15251         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15252         (init_user_info): Removed the above mentioned hackery.
15253         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15254         stat has been fixed in the C runtime.
15255         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15256
15257         * file-coding.c (struct file_coding_dump): Do not define
15258         ucs_to_mule_table in the struct if not MULE.
15259         (struct struct lrecord_description fcd_description_1): Do not dump
15260         the above.
15261
15262         * emacs.c (main_1): Call vars_of_nt().
15263         (right before Fdump_emacs_data): Don't need lastfile if using both
15264         portabe dumper and system malloc.
15265
15266         * alloc.c (Fmemory_limit): Conditionalized out.
15267         (pdump): Use OPEN_BINARY for the portable dump file.
15268         (pdump_load): Ditto.
15269
15270 2000-02-02  Mike Alexander  <mta@arbortext.com>
15271
15272         * nt.c (convert_time): Set tm_isdst before calling mktime and
15273         avoid calling it at all if the compiler supports 64 bit integers.
15274         Also initialize utc_base_ft before using it.
15275
15276 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15277
15278         * frame.c (change_frame_size_1): Take f->internal_border_width
15279         into consideration when calculating the width of the frame.
15280
15281 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15282
15283         * window.c (frame_min_height):
15284         (frame_size_valid_p):
15285         (frame_pixsize_valid_p): Added.
15286         (check_frame_size): Generalized.
15287
15288         * window.h: Prototyped the above.
15289
15290         * lisp.h:
15291         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15292         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15293         Deleted Vwin32_* and Vbinary_process_* unused variables.
15294
15295         * device-msw.c (msprinter_init_device): Do not get printer font
15296         list; Added DEVMODE functions.
15297
15298         * frame-msw.c: Added lots of printer code.
15299
15300         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15301         general.c.
15302
15303         * console-msw.h: Added more msprinter device private slots.
15304
15305 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15306
15307         * event-msw.c (key_needs_default_processing_p): Added.
15308         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15309
15310 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15311
15312         * glyphs.c (image_instance_layout): Mark image instance as clean
15313         after layout.
15314         (glyph_dirty_p): Removed redundant function.
15315         (invalidate_glyph_geometry_maybe): Added.
15316         (update_glyph_cachel_data): Call it.
15317
15318         * glyphs.h: Prototyped it.
15319
15320         * redisplay.c (add_glyph_rune): Call it.
15321         (redisplay_window): Reset glyphs cachels when frame faces have
15322         changed, thus forcing recomputation of built-in border glyphs.
15323
15324 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15325
15326         * Makefile.in.in: Make portable dumper and purify play well together.
15327         Add imperfect, but better than nothing, support for pdump.
15328         Remove xemacs.dmp when temacs is re-generated.
15329         Don't ignore errors when dumping xemacs.
15330
15331         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15332
15333 2000-01-28  Andy Piper  <andy@xemacs.org>
15334
15335         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15336         (setup_normal_frame): ditto.
15337         (setup_frame_without_minibuffer): ditto.
15338         (setup_minibuffer_frame): ditto.
15339         (delete_frame_internal): ditto.
15340         (Fmake_frame_invisible): ditto.
15341         (Ficonify_frame): ditto.
15342
15343         * window.h: change Fset_window_buffer signature.
15344
15345         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15346         (Fset_window_buffer): allow recording of buffer if the window is
15347         the selected window.
15348         (window_loop): Use new Fset_window signature.
15349
15350 2000-01-23  Daniel Pittman  <daniel@danann.net>
15351
15352         * config.h.in: Added template for `HAVE_ATHENA_3D'
15353
15354 2000-01-29  Andy Piper  <andy@xemacs.org>
15355
15356         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15357
15358         * gutter.c (output_gutter): Don't output if the window isn't live.
15359
15360 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15361
15362         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15363         of 01/12/00: Moved SetFocus back here where it belongs.
15364
15365 2000-01-23  Andy Piper  <andy@xemacs.org>
15366
15367         * s/cygwin32.h: declare printer things.
15368
15369 2000-01-26  Andy Piper  <andy@xemacs.org>
15370
15371         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15372         Alexander.
15373
15374 2000-01-24  Andy Piper  <andy@xemacs.org>
15375
15376         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15377         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15378
15379         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15380
15381         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15382
15383         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15384
15385         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15386         (mswindows_output_display_block): Avoid local shadows.
15387
15388         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15389         (mswindows_enqueue_mouse_button_event): ditto.
15390         (mswindows_handle_gui_wm_command): remove declaration.
15391
15392         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15393         warnings.
15394
15395         * console-msw.h: Avoid shadows.
15396         (mswindows_get_toolbar_button_text):
15397         (emacs_mswindows_create_stream_pair):
15398         (emacs_mswindows_delete_stream_pair):
15399         (mswindows_handle_toolbar_wm_command): declare.
15400
15401         * device-msw.c (build_syscolor_string): Avoid shadows.
15402
15403 2000-01-23  Andy Piper  <andy@xemacs.org>
15404
15405         * glyphs-widget.c (widget_instantiate): reverse the items for
15406         layouts so that children are in the expected order.
15407
15408 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15409
15410         * ralloc.c: safe_bcopy ==> memmove
15411         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15412         * s/msdos.h: Remove BCOPY macros.
15413         * insdel.c (gap_right): Remove BCOPY conditional code.
15414         * insdel.c (gap_left): Remove BCOPY conditional code.
15415         XEmacs demands a working ANSI C compiler - hence memmove.
15416
15417         * regex.c (regex_compile): Remove accidental use of trigraphs.
15418
15419 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15420
15421         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15422         event timestamp.
15423
15424 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15425
15426         * event-msw.c (mswindows_drain_windows_queue): Added the
15427         parameter.
15428         (mswindows_need_event): Commented the call to
15429         mswindows_drain_windows_queue().
15430         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15431         only.
15432
15433         * console-msw.h: Moved a few function prototypes here from
15434         event-msw.c.
15435
15436         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15437         parameter from unsigned short to unsigned long.
15438         (Fmswindows_shell_execute): Added return value.
15439
15440 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15441
15442         * sysdep.c (init_system_name):
15443           process-unix.c (unix_canonicalized_host_name):
15444         Don't call freeaddrinfo() if getaddrinfo() fails.
15445
15446         * process-unix.c (unix_open_unix_network_stream):
15447         Moved the code to get a port # into address loop.
15448
15449 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15450
15451         * buffer.c (reinit_vars_of_buffer):
15452         The right place to initialize conversion_in_dynarr and
15453         conversion_out_dynarr.
15454
15455         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15456
15457         * process-unix.c (unix_canonicalize_host_name): Muleize.
15458         (unix_open_network_stream): Muleize.
15459
15460         * buffer.h: Fix up prototypes for ralloc.c functions.
15461
15462 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15463         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15464         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15465                 instead of gethostbyname()
15466         * process-unix.c: In unix_canonicalize_host_name() and
15467                 unix_open_network_stream(), add code to use getaddrinfo()
15468                 instead of gethostbyname().
15469
15470 2000-01-27  Daniel Pittman <daniel@danann.net>
15471
15472         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15473         libs when built with flat Athena.
15474
15475 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15476
15477         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15478         Use coding standards for function prototypes.
15479
15480 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15481
15482         * dialog-msw.c (push_lisp_string_as_unicode):
15483         * doc.c (unparesseuxify_doc_string):
15484         * dired.c (Fuser_name_completion_1):
15485         * dired.c (Fuser_name_all_completions):
15486         * dired.c (free_user_cache):
15487         * dired.c (user_name_completion):
15488         * console-x.c (get_display_arg_connection):
15489         * minibuf.c (clear_echo_area_internal):
15490         * minibuf.c (echo_area_append):
15491         * eldap.c (Fldap_open):
15492         * eldap.c (Fldap_search_internal):
15493         * frame-x.c (x_set_frame_text_value):
15494         * frame-x.c (x_set_frame_properties):
15495         * frame-x.c (x_create_widgets):
15496         * redisplay-tty.c (term_get_fkeys_1):
15497         * objects-x.c (x_parse_nearest_color):
15498         * objects-x.c (x_valid_color_name_p):
15499         * objects-x.c (x_initialize_font_instance):
15500         * objects-x.c (x_list_fonts):
15501         * objects-x.c (x_find_charset_font):
15502         * tooltalk.c (Fadd_tooltalk_message_arg):
15503         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15504         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15505         * process-unix.c (unix_create_process):
15506         * ntproc.c (sys_spawnve):
15507         * sound.c (Fplay_sound_file):
15508         * sound.c (Fplay_sound):
15509         * buffer.c (init_initial_directory):
15510         * buffer.c (init_buffer):
15511         * editfns.c (init_editfns):
15512         * editfns.c (Ftemp_directory):
15513         * editfns.c (Fuser_full_name):
15514         * editfns.c (uncache_home_directory):
15515         * editfns.c (get_home_directory):
15516         * editfns.c (Fuser_home_directory):
15517         * editfns.c (Fformat_time_string):
15518         * editfns.c (Fcurrent_time_string):
15519         * gui-x.c (button_item_to_widget_value):
15520         * database.c (Fopen_database):
15521         * event-Xt.c (x_to_emacs_keysym):
15522         * event-Xt.c (x_event_to_emacs_event):
15523         * event-Xt.c (describe_event_window):
15524         * event-msw.c (mswindows_wnd_proc):
15525         * glyphs-eimage.c (jpeg_instantiate):
15526         * glyphs-eimage.c (gif_instantiate):
15527         * glyphs-eimage.c (png_instantiate):
15528         * glyphs-eimage.c (tiff_instantiate):
15529         * glyphs-x.c (xbm_instantiate_1):
15530         * glyphs-x.c (x_xbm_instantiate):
15531         * glyphs-x.c (x_xface_instantiate):
15532         * glyphs-x.c (autodetect_instantiate):
15533         * glyphs-x.c (cursor_font_instantiate):
15534         * glyphs-x.c (x_widget_instantiate):
15535         * glyphs-x.c (x_widget_set_property):
15536         * glyphs-x.c (x_widget_property):
15537         * glyphs-x.c (BUILD_GLYPH_INST):
15538         * print.c (write_string_to_stdio_stream):
15539         * print.c (output_string):
15540         * print.c (Falternate_debugging_output):
15541         * print.c (Fexternal_debugging_output):
15542         * glyphs-msw.c (extract_xpm_color_names):
15543         * glyphs-msw.c (mswindows_xpm_instantiate):
15544         * glyphs-msw.c (bmp_instantiate):
15545         * glyphs-msw.c (resource_name_to_resource):
15546         * glyphs-msw.c (mswindows_resource_instantiate):
15547         * glyphs-msw.c (xbm_instantiate_1):
15548         * glyphs-msw.c (mswindows_xbm_instantiate):
15549         * glyphs-msw.c (mswindows_xface_instantiate):
15550         * glyphs-msw.c (mswindows_widget_instantiate):
15551         * glyphs-msw.c (add_tree_item):
15552         * glyphs-msw.c (add_tab_item):
15553         * glyphs-msw.c (mswindows_combo_box_instantiate):
15554         * glyphs-msw.c (mswindows_widget_property):
15555         * glyphs-msw.c (mswindows_combo_box_property):
15556         * glyphs-msw.c (mswindows_widget_set_property):
15557         * console.c (stuff_buffered_input):
15558         * objects-msw.c (mswindows_initialize_color_instance):
15559         * objects-msw.c (mswindows_valid_color_name_p):
15560         * objects-msw.c (mswindows_list_fonts):
15561         * objects-msw.c (mswindows_font_instance_truename):
15562         * bytecode.c (optimize_compiled_function):
15563         * select-x.c (symbol_to_x_atom):
15564         * select-x.c (x_atom_to_symbol):
15565         * select-x.c (hack_motif_clipboard_selection):
15566         * select-x.c (selection_data_to_lisp_data):
15567         * select-x.c (lisp_data_to_selection_data):
15568         * select-x.c (Fx_get_cutbuffer_internal):
15569         * select-x.c (Fx_store_cutbuffer_internal):
15570         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15571         * buffer.h (TO_INTERNAL_FORMAT): New function.
15572         * emacs.c (make_arg_list_1):
15573         * emacs.c (make_argc_argv):
15574         * emacs.c (main_1):
15575         * emacs.c (Fdump_emacs):
15576         * emacs.c (split_string_by_emchar_1):
15577         * file-coding.h:
15578         * lisp.h:
15579         * lstream.h:
15580         * symsinit.h:
15581         * device-x.c (x_init_device):
15582         * device-x.c (Fx_valid_keysym_name_p):
15583         * device-x.c (Fx_get_font_path):
15584         * device-x.c (Fx_set_font_path):
15585         * glyphs.c (bitmap_to_lisp_data):
15586         * glyphs.c (pixmap_to_lisp_data):
15587         * alloc.c (make_ext_string): Use coding system arguments.  Update
15588         all callers.
15589         * alloc.c (build_string):
15590         * callproc.c (child_setup):
15591         * callproc.c (init_callproc):
15592         * fileio.c (lisp_strerror):
15593         * fileio.c (directory_file_name):
15594         * fileio.c (Fexpand_file_name):
15595         * fileio.c (Ffile_truename):
15596         * fileio.c (Fsysnetunam):
15597         * fileio.c (Fdo_auto_save):
15598         * sysdep.c (sys_readdir):
15599         * tests.c: New file.  Allow adding C tests.
15600         Replace GET_* macros with a more comprehensible and flexible
15601         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15602         Modify all calls.
15603         Any coding system can be used to do format conversion.
15604         Eliminate enum external_data_format.
15605         Eliminate convert_to_external_format.
15606         Eliminate convert_to_internal_format.
15607         Make sure file-name, keyboard, terminal, and ctext are always
15608         defined as coding systems or aliases.  Make
15609         file-name-coding-system, terminal-coding-system, and
15610         keyboard-coding-system magical variables that are equivalent to
15611         defining the corresponding coding system aliases.
15612
15613         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15614         * file-coding.c (Fcoding_system_alias_p): New function.
15615         * file-coding.c (Fcoding_system_aliasee): New function.
15616         * file-coding.c (append_suffix_to_symbol): New function.
15617         * file-coding.c (dangling_coding_system_alias_p): New function.
15618         * file-coding.c (Ffind_coding_system):
15619         * file-coding.c (Fcopy_coding_system):
15620         * file-coding.c (encode_coding_no_conversion):
15621         * file-coding.c (syms_of_file_coding):
15622         * file-coding.c (vars_of_file_coding):
15623         Rewrite coding system alias code.
15624         Allow nested aliases, like symbolic links.
15625         Allow redefinition of coding system aliases.
15626         Prevent existence of dangling coding system aliases.
15627
15628         * dired.c (Fuser_name_completion_1):
15629         * dired.c (Fuser_name_all_completions):
15630         A crash would happen if user did QUIT in the middle of building
15631         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15632
15633         * lisp.h:
15634         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15635
15636         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15637         an unsigned char *.  Update all callers.
15638
15639 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15640
15641         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15642
15643 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15644
15645         * elhash.c (hentry_description): Use more portable definition.
15646         (resize_hash_table): Initialize new hentries using
15647         xnew_array_and_zero, thereby simplifying the code.
15648
15649         * mule-charset.c (make_charset): Make sure entire object is
15650         initialized, to avoid Purify warnings.
15651
15652         * alloc.c (resize_string): Fix unlikely crash with big strings.
15653
15654 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15655
15656         * realpath.c (xrealpath):
15657         Don't call getwd().
15658
15659 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15660
15661         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15662
15663 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15664
15665         * unexelfsgi.c (unexec): Change the way we decide which segment
15666         should be extended.
15667
15668         Assumption that .bss section should be outside the PT_LOADable
15669         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15670         it's present) is inside the 'data' segment. This would fail the
15671         test which was used to find a segment to grow and cover new
15672         heap. Instead of this assumption, I created another one - on IRIX
15673         the segment to grow should start below .bss and it's address
15674         should extent above the end of .bss. Once this segment is
15675         identified, it's grown to accommodate the new heap and new
15676         zero-length .bss section is added at the end of .data2.
15677
15678 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15679
15680         * eval.c (Feval): Wrong number of arguments should use original
15681         function, not the indirect_function version of it.
15682
15683 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15684
15685         * glyphs-x.c (x_button_instantiate): Don't add image if
15686         it is not a pixmap.
15687         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15688         is relative.
15689
15690 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15691
15692         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15693         declaration.
15694         (DEFVAR_INT_MAGIC): Ditto.
15695         (DEFVAR_BOOL_MAGIC): Ditto.
15696         * glyphs.h: Reindent backslash.
15697
15698 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15699
15700         * glyphs-widget.c (layout_query_geometry):
15701         (layout_layout): Use correct types for gheight, gwidth.
15702
15703 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15704
15705         * EmacsManager.c (QueryGeometry): Purified.
15706
15707 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15708
15709         * alloc.c (make_float): Make sure entire object is initialized, to
15710         avoid Purify warnings.
15711         (pdump_register_sub): Remove useless assignment.
15712         (pdump): Use xmalloc, not malloc.
15713         (pdump_load): Use xmalloc, not malloc.
15714
15715 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15716
15717         * callproc.c:
15718         * dired-msw.c:
15719         * fileio.c:
15720         * process-nt.c:
15721         * redisplay-msw.c:
15722         * sysdep.c: Removed redundant #include <windows.h>
15723
15724 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15725
15726         * frame.c (delete_frame_internal): Do not delete device when its
15727         implementation so declares.
15728         (delete_frame_internal): Set device selected frame to nil when
15729         last frame goes away.
15730
15731         * device-msw.c (msprinter_device_system_metrics): Implemented.
15732         (mswindows_device_system_metrics): Added 'device-dpi property.
15733
15734         * device.c: (Fdevice_printer_p): Added.
15735         Added 'offset-workspace device metric.
15736
15737         * console.h (device_metrics): Declared DM_offset_workspace.
15738
15739 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15740
15741         * fileio.c (Ffile_truename): Remove pointless and confusing
15742         initialization of elen.
15743
15744         * glyphs-widget.c: Compiler warning fixes.
15745
15746 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15747
15748         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15749         instead of a Lisp_Object as argument to make it consistent with
15750         the other LIVE_P macros.
15751         (CHECK_LIVE_PROCESS): New macro.
15752
15753         * process.c: Declare Qprocess_live_p.
15754         (Fprocess_live_p): New function.
15755         (create_process): Use PROCESS_LIVE_P.
15756         (read_process_output): Ditto.
15757         (set_process_filter): Ditto.
15758         (Fdelete_process): Ditto.
15759         (kill_buffer_processes): Ditto
15760         (process_send_signal): Use CHECK_LIVE_PROCESS.
15761         (Fprocess_input_coding_system): Check whether process is still
15762         alive (fix PR#1061).
15763         (Fprocess_output_coding_system): Ditto.
15764         (Fprocess_coding_system): Ditto.
15765         (Fset_process_input_coding_system): Ditto.
15766         (Fset_process_output_coding_system): Ditto.
15767
15768 2000-01-23  Andy Piper  <andy@xemacs.org>
15769
15770         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15771         layout and widget.
15772
15773         * glyphs.c (mark_image_instance): take into account changed
15774         image_instance format.
15775         (image_instance_equal): ditto.
15776         (image_instance_hash): ditto.
15777
15778         * glyphs-widget.c (widget_instantiate): Incorporate layout
15779         instantiation here. Delay layout of the layout until later.
15780         (layout_instantiate): deleted.
15781         (layout_query_geometry): new function. get the geometry of a
15782         layout.
15783         (layout_layout): layout a layout dynamically.
15784         (image_instantiator_widget): New function - splitting up
15785         image_instantiator_format_create_glyphs_widget for netwinder
15786         compilation.
15787         (image_instantiator_buttons):
15788         (image_instantiator_edit_fields):
15789         (image_instantiator_combo_box):
15790         (image_instantiator_scrollbar):
15791         (image_instantiator_progress_guage):
15792         (image_instantiator_tree_view):
15793         (image_instantiator_tab_control):
15794         (image_instantiator_labels):
15795         (image_instantiator_layout): ditto.
15796         (image_instantiator_format_create_glyphs_widget): Call preceding
15797         functions.
15798
15799 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15800
15801         * process.c (Fset_process_coding_system):
15802         * device-x.c (Fx_keysym_hash_table):
15803         Docstring fixes.
15804
15805         * lstream.c (Lstream_write): Return documented value, not 0.
15806
15807         * fileio.c (directory_file_name):
15808         (Fsubstitute_in_file_name):
15809         (Fsubstitute_insert_file_contents_internal):
15810         (Fwrite_region_internal):
15811         * emacs.c:
15812         * sysdep.c:
15813         * getloadavg.c:
15814         * systty.h:
15815         Remove vestigial APOLLO-conditional code.
15816
15817 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15818
15819         * getpagesize.h: Add guard macros.
15820         * libsst.h: Add guard macros.
15821         * libst.h: Add guard macros.
15822         * line-number.h: Add guard macros.
15823         * ndir.h: Add guard macros.
15824         * sysfloat.h: Add guard macros.
15825         * sysfile.h: Add guard macros.
15826         * sysproc.h: Add guard macros.
15827         * syswait.h: Add guard macros.
15828         * xintrinsic.h: Add guard macros.
15829         * xintrinsicp.h: Add guard macros.
15830         * xmmanager.h: Add guard macros.
15831         * xmmanagerp.h: Add guard macros.
15832         * xmprimitive.h: Add guard macros.
15833         * xmu.h: Add guard macros.
15834         * gpmevent.h: Add copyright statement. Add guard macros.
15835         * miscplay.h: Add guard macros.
15836         * *.h: Use consistent C-standards-approved guard macro names.
15837
15838         * opaque.c (make_opaque): Switch parameter order.
15839         * opaque.h (make_opaque): Switch parameter order.
15840         Update all callers.
15841         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15842
15843         * config.h.in (type_checking_assert): Added.
15844         (bufpos_checking_assert): Added.
15845
15846 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15847
15848         * alloc.c: Harmless pdump changes.
15849         - Use countof().
15850         - spell alignment correctly.
15851         * sysdep.c: Use countof()
15852
15853 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15854
15855         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15856         initially_selected_for_input() console method, default to 0.
15857         (semi_canonicalize_console_connection): Try to delegate to
15858         canonicalize_console_connection if no such console method.
15859         (canonicalize_console_connection): Vice versa.
15860         (print_console): Do not print nil connection.
15861
15862         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15863         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15864         (XDEVIMPF_FRAMELESS_OK): Added.
15865         (CONSOLE_INHERITS_METHOD): Added.
15866
15867         * console-msw.c (mswindows_canonicalize_console_connection):
15868         Added.
15869         (mswindows_canonicalize_device_connection): Added.
15870
15871         * console-msw.h (struct msprinter_device): Added this struct and
15872         accessor macros.
15873         (mswindows_device): Made fontlist a lisp object.
15874
15875         * device.c (semi_canonicalize_device_connection):  Try to delegate
15876         to canonicalize_device_connection if no such console method.
15877         (canonicalize_device_connection): Vice versa.
15878         (print_device): Do not print nil connection.
15879
15880         * device-msw.c (mswindows_init_device): Call InitCommonControls
15881         when have widgets.
15882         (mswindows_delete_device): Removed fontlist deallocation.
15883         (mswindows_mark_device): Added.
15884
15885         * events.c (event_equal): Added abort() at unreached code.
15886         (event_hash): Ditto.
15887
15888         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15889         fallback tags of Windows devices.
15890
15891         * general.c (syms_of_general): Initialized Qmsprinter.
15892
15893         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15894         of fallback tags of Windows devices.
15895
15896         * lisp.h: Declared Qmsprinter.
15897
15898         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15899         of strings.
15900         (mswindows_list_fonts): Ditto.
15901         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15902         that it can be used by both mswindows and msprinter devices.
15903         (initialize_font_instance): Added.
15904         (mswindows_initialize_font_instance): Use it.
15905         (msprinter_initialize_font_instance): Added.
15906
15907         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15908         and implementation flags check.
15909         (redisplay_without_hooks): Changed the call to the above.
15910         (Fredraw_device): Ditto.
15911         (Fredisplay_device): Ditto.
15912
15913         * redisplay-msw.c (get_frame_dc): Implemented.
15914         (get_frame_compdc): Implemented.
15915         (many functions): Use the two functions above to get device
15916         contexts, ether for a window or a printer.
15917
15918 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15919
15920         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15921         initialization here.
15922         (init_symbols_once_early): Call it.
15923         * emacs.c (main_1): Call it.
15924         * symsinit.h: Declare it.
15925
15926 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15927
15928         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15929         Lisp_Object.
15930         (pdump_backtrace): Ditto.
15931         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15932         (pdump_get_entry): Abort if trying to register a null pointer.
15933         (pdump_dump_data): Cleanup types when relocating.
15934         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15935         (pdump_dump_rtables): Remove bad casts.
15936         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15937         Lisp_Object instead of a EMACS_INT for the hashtable
15938         reorganization.
15939
15940 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15941
15942         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15943
15944         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15945
15946         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15947
15948         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15949
15950 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15951
15952         * faces.h (FACE_STRIKETHRU_P): Added.
15953
15954         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15955         of font variants.
15956
15957         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15958         (mswindows_set_dc_font): New function, aware of font variants,
15959         separated from mswindows_update_dc.
15960
15961         * objects-msw.h (struct mswindows_font_instance_data): Added
15962         definition.
15963
15964         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15965         cached fonts and the data structure.
15966         (mswindows_initialize_font_instance): Added creation of font data
15967         structure.
15968         (mswindows_print_font_instance): Print at least something.
15969         (mswindows_create_font_variant): Implemented.
15970         (mswindows_get_hfont): Implemented.
15971
15972 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15973
15974         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15975         prototyping problem with msvc.
15976
15977         * emacs.c (main_1): added syms_of_gui_mswindows() call
15978
15979         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15980         syms_of_gui_mswindows() function
15981
15982         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15983
15984 2000-01-18  Martin Buchholz <martin@xemacs.org>
15985
15986         * XEmacs 21.2.27 is released.
15987
15988 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15989
15990         * glyphs-eimage.c (struct tiff_error_struct):
15991         (tiff_error_func):
15992         (tiff_warning_func):
15993         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15994
15995         * unexmips.c:
15996         * unexhp9k3.c:
15997         * unexfreebsd.c:
15998         * unexec.c: Remove vestigial Lucid C code.
15999         * unexalpha.c:
16000         * unexaix.c:
16001         * termcap.c:
16002         * libsst.c: Ansify.
16003         Remove declarations of errno and strerror().
16004
16005         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16006
16007         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16008
16009 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16010
16011         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16012         Optimize.
16013
16014 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16015
16016         * md5.c:
16017         * file-coding.c:
16018         * file-coding.h:
16019         Change enum eol_type to eol_type_t.
16020
16021 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16022
16023         * gui.c (get_gui_callback): Check cons before accessing car.
16024
16025 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16026
16027         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16028         (XSETSPECIFIER_TYPE): Ditto.
16029
16030 2000-01-17  Didier Verna  <didier@xemacs.org>
16031
16032         * redisplay.c (generate_fstring_runes): compute string size in
16033         characters, not bytes.
16034
16035 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16036
16037         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16038
16039 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16040
16041         * print.c (print_error_message): Call print_prepare().
16042
16043 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16044
16045         * .dbxrc: Renamed from dbxrc.
16046
16047         * events.c (event_to_character):
16048         Use `assert (foo)' instead of `if (!foo) abort()'
16049
16050         * .gdbinit (xtype): Add documentation.
16051         * .gdbinit (check-temacs): New function.
16052         * .gdbinit (check-xemacs): New function.
16053         * dbxrc (check-xemacs): New function.
16054         * dbxrc (check-xemacs): New function.
16055
16056 2000-01-14  Andy Piper  <andy@xemacs.org>
16057
16058         * glyphs-widget.c (widget_query_geometry): Make sure that we
16059         calculate default dimensions correctly.
16060
16061 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16062
16063         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16064
16065         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16066         pdump_wire'd variable.
16067
16068         * emacs.c: (main_1): Conditionalized calls to
16069         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16070
16071 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16072
16073         * window.c (Fset_window_configuration):
16074         * sysdep.c (_start):
16075         * input-method-motif.c (res):
16076         * event-Xt.c (Xt_process_to_emacs_event):
16077         Simple compiler warning fixes.
16078
16079         * bytecode.c (funcall_compiled_function): Use the original
16080         function symbol on the backtrace list in preference to the
16081         compiled_function object in error messages.
16082
16083 2000-01-13  Andy Piper  <andy@xemacs.org>
16084
16085         * glyphs-x.c (update_widget_face): Make sure we update the widget
16086         background as well as foreground.
16087
16088 2000-01-13  Andy Piper  <andy@xemacs.org>
16089
16090         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16091         fields to subwindow.
16092         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16093         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16094         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16095         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16096
16097         * glyphs-widget.c (check_valid_tab_orientation): new function.
16098         (initialize_widget_image_instance): zero orientation and
16099         justification.
16100         (widget_instantiate): pick up orientation.
16101         (tab_control_query_geometry): return appropriate values for
16102         vertical tabs.
16103
16104         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16105         appropriate creation flags for left, right and bottom tabs.
16106
16107         * s/cygwin32.h: add tab definitions.
16108
16109 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16110
16111         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16112         frame upon hiding a subwindow.
16113         (mswindows_button_instantiate): Changed the push button style to
16114         BS_PUSHBUTTON.
16115         (mswindows_button_instantiate): Removed button BS_NOTIFY
16116         style.
16117         (mswindows_button_instantiate): Removed redundant check for
16118         a disabled gui item.
16119         (mswindows_button_instantiate): Made use of WS_TABSTOP
16120         consistent: "operable" controls (edit, button, tree, scroll) have
16121         this style, "display-only" ones (static, progress gauge) do
16122         not. This style is currently ignored by XEmacs though. Also,
16123         removed the WS_EX_CONTROLPARENT style - it is not for children,
16124         it is for their parents!
16125         (mswindows_edit_field_instantiate): Ditto.
16126         (mswindows_progress_gauge_instantiate): Ditto.
16127         (mswindows_tree_view_instantiate): Ditto.
16128         (mswindows_tab_control_instantiate): Ditto.
16129         (mswindows_scrollbar_instantiate): Ditto.
16130         (mswindows_combo_box_instantiate): Ditto.
16131         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16132         style to the "clip" window.
16133         (mswindows_button_instantiate): Removed compilation warning by
16134         equally typing terms of the ?: operator.
16135
16136 2000-01-12  Didier Verna  <didier@xemacs.org>
16137
16138         * redisplay.c (generate_fstring_runes): new parameter holding the
16139         last modeline-format extent.
16140         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16141         extent, fill the glyph block with it.
16142         (generate_fstring_runes): handle these parameters.
16143         (generate_formatted_string_db): ditto.
16144
16145         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16146         glyphs'extents in the modeline.
16147
16148 1999-01-11  Mike Woolley  <mike@bulsara.com>
16149
16150         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16151         256Mb, as a workaround for the non-starting problem many people
16152         have experienced.
16153
16154 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16155
16156         * console-tty.c (Fset_console_tty_output_coding_system):
16157         Force redrawing tty frame.
16158
16159 2000-01-10  Didier Verna  <didier@xemacs.org>
16160
16161         * redisplay.c (generate_fstring_runes): fix size computation bug.
16162
16163 2000-01-09  William M. Perry <wmperry@aventail.com>
16164
16165         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16166
16167 2000-01-09  Andy Piper  <andy@xemacs.org>
16168
16169         * glyphs-msw.c: index -> i to avoid shadows.
16170         (xbm_create_bitmap_from_data): make static.
16171         (check_valid_string_or_int): deleted.
16172         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16173
16174         * glyphs-x.c (x_update_subwindow): remove unused args.
16175
16176         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16177         back pointer - this is done in allocate_image_instance.
16178         (query_string_font): return Qnil to make the compiler happy.
16179         (unmap_subwindow): set to ~0 to make the compiler happy.
16180         (glyph_query_geometry): comment out until used.
16181         (glyph_layout): ditto.
16182
16183 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16184
16185         * insdel.c (signal_after_change): Remove extraneous unbind_to().