update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (decode_ccs_conversion): New function.
4         (decode_defined_char): Use `decode_ccs_conversion'.
5         (decode_builtin_char): Likewise.
6
7 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
8
9         * char-ucs.h: Change some charset-ids of private coded-charsets.
10
11 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
14         (char_encode_as_entity_reference): Likewise.
15         (decode_coding_big5): Modify for `decode_defined_char' and
16         `DECODE_CHAR'.
17         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
18         avoid compiler warning.
19         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
20
21         * mule-charset.c (decode_defined_char): Add new argument
22         `without_inheritance'.
23         (Fdecode_char): Add new optional argument `without_inheritance'.
24         (Fdecode_builtin_char): Modify for `Fdecode_char'.
25
26         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
27         (simplify_char_spec): Likewise.
28
29         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
30         setting.
31
32         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
33         (map_char_table): Likewise.
34         (Fdefine_char): Use `Fdecode_char' without inheritance.
35         (Ffind_char): Modify for `Fdecode_char'.
36
37         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
38
39         * char-ucs.h (decode_defined_char): Add new argument
40         `without_inheritance'.
41         (DECODE_CHAR): Likewise.
42         (MAKE_CHAR): Modify for `DECODE_CHAR'.
43
44 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
45
46         * chartab.c (Vchise_system_db_directory): New variable.
47         (vars_of_chartab): Add new variable `chise-system-db-directory'.
48
49 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * chartab.c: EXFUN `Fmount_char_attribute_table'.
52         (print_chartab_range): Don't define when `UTF2000' is defined.
53         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
54         `CHISE_DS_open'.
55
56 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
59         and optional argument `rehash' is specified, call
60         `open_chise_data_source_maybe' before
61         `chise_ds_foreach_char_feature_name' is called.
62
63 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
64
65         * chartab.c (char_attribute_list_reset_map_func): New function
66         when HAVE_LIBCHISE is defined.
67         (Fchar_attribute_list): Add new optional argument `rehash' when
68         HAVE_LIBCHISE is defined.
69         (open_chise_data_source_maybe): Use "chise-db" instead of
70         "char-db".
71         (char_attribute_system_db_file): Likewise.
72         (Fload_char_attribute_table): Use
73         `chise_feature_foreach_char_with_value' instead of
74         `chise_char_feature_value_iterate'.
75
76 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * chartab.c (Vchise_db_directory): New variable.
79         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
80
81 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
84         instead of HAVE_CHISE to specify using with libchise.
85
86         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
87
88         * chartab.h: Don't use HAVE_CHISE_CLIENT.
89
90         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
91         defined or HAVE_LIBCHISE_LIBCHISE is defined.
92         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
93         is defined.
94         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
95         HAVE_CHISE to specify using with libchise.
96         (syms_of_chartab): Don't define symbol `system-char-id' when
97         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
98
99 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
102         specify CHISE DB support.
103         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
104         of `char_attribute_system_db_file' to check feature DB file.
105
106         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
107         HAVE_CHISE_CLIENT to specify CHISE DB support.
108
109         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
110         specify CHISE DB support.
111         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
112         not defined.
113         (Freset_char_attribute_table): Use `chise_feature_setup_db'
114         instead of `char_attribute_system_db_file' to check feature DB
115         file.
116
117 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
118
119         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
120         `HAVE_CHISE_CLIENT'.
121
122 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
125         (Fsave_charset_mapping_table): Don't use
126         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
127
128         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
129         (HAVE_LIBCHISE): New macro.
130
131         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
132
133         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
134         (Fsave_char_attribute_table): Don't use
135         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
136
137 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
138
139         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
140         defined.
141         (save_uint16_byte_table): Likewise.
142         (save_byte_table): Likewise.
143         (char_table_get_db): Use `chise_ds_load_char_feature_value'
144         instead of `chise_char_load_feature_value'.
145         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
146
147 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
148
149         * chartab.h (struct Lisp_Char_Table): Delete member
150         `feature_table' if CHISE is defined.
151
152         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
153         (Fcopy_char_table): Likewise.
154         (char_table_open_db_maybe): Likewise.
155         (char_table_close_db_maybe): Likewise.
156         (char_table_get_db): Likewise.
157         (Fmount_char_attribute_table): Likewise.
158         (Fload_char_attribute_table): Likewise.
159
160 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * mule-charset.c (load_char_decoding_entry_maybe): Use
163         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
164         `chise_ccs_decode'.
165
166 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
169         instead of `chise_open_data_source'.
170         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
171         `chise_ds_close'.
172
173 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
174
175         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
176         instead of `chise_ds_open_feature_table'.
177         (char_table_close_db_maybe): Don't use `chise_ft_close'.
178
179 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
180
181         * mule-charset.c (Fsave_charset_mapping_table): Use
182         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
183         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
184         `chise_ccs_sync' instead of `chise_ccst_close'.
185         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
186
187         * chartab.c (open_chise_data_source_maybe): Modify for
188         `chise_open_data_source'.
189         (char_table_open_db_maybe): Modify for
190         `chise_ds_open_feature_table'.
191
192 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
193
194         * mule-charset.c (load_char_decoding_entry_maybe): Use
195         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
196         `chise_ccst_close'.
197
198 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
199
200         * mule-charset.c (Fsave_charset_mapping_table): Use
201         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
202         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
203         `chise_dt_put_char' and `chise_dt_close'.
204         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
205         `chise_ccs_decode' and `chise_ccst_close' instead of
206         `chise_ds_open_decoding_table', `chise_dt_get_char' and
207         `chise_dt_close'.
208
209         * chartab.c (char_table_get_db): Use
210         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
211         (load_char_attribute_table_map_func): Modify for
212         `chise_char_feature_value_iterate'.
213         (Fload_char_attribute_table): Use
214         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
215
216 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
217
218         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
219
220 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
221
222         * chartab.c (put_char_table): Modify for inherited coded-charsets
223         in XEmacs CHISE.
224
225 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
226
227         * chartab.c (Fput_char_table_map_function): Fixed.
228         (word_boundary_p): Don't check charset in XEmacs CHISE.
229
230 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
231
232         * mule-charset.c (Fsave_charset_mapping_table): Use
233         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
234         instead of `chise_open_decoding_table'; refer
235         `default_chise_data_source'; use `chise_dt_close' instead of
236         `chise_close_decoding_table'.
237         (load_char_decoding_entry_maybe): Likewise.
238
239         * chartab.c (default_chise_data_source): New variable when `CHISE'
240         is defined.
241         (Fcopy_char_table): `ct->ds' is deleted.
242         (open_chise_data_source_maybe): New function.
243         (Fclose_char_data_source): New function.
244         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
245         use `chise_ds_open_feature_table' instead of
246         `chise_open_feature_table'.
247         (char_table_close_db_maybe): Use `chise_ft_close' instead of
248         `chise_close_feature_table'; `cit->ds' is deleted.
249         (syms_of_chartab): Add new builtin function
250         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
251
252         * chartab.h (default_chise_data_source): New extern variable.
253         (open_chise_data_source_maybe): New prototype.
254         (struct Lisp_Char_Table): Delete `ds'.
255
256 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
257
258         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
259         `CHISE' is defined.
260
261 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
262
263         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
264         not defined; add code for non-libchise setting.
265         (char_table_close_db_maybe): Likewise.
266         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
267         defined.
268         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
269         even if `CHISE' is not defined.
270         (Freset_char_attribute_table): Likewise.
271         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
272         `char_table_close_db_maybe' even if `CHISE' is not defined; use
273         `char_table_get_db'.
274         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
275         `char_table_close_db_maybe' even if `CHISE' is not defined.
276
277 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
278
279         * chartab.c (char_table_open_db_maybe): New function.
280         (char_table_close_db_maybe): New function.
281         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
282         (Freset_char_attribute_table): Likewise.
283         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
284         `char_table_close_db_maybe'.
285         (Fload_char_attribute_table): Likewise.
286
287 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
288
289         * chartab.c: Don't include <chise.h> because it is included in
290         chartab.h.
291         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
292         defined.
293         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
294         `CHISE' is defined.
295         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
296         `CHISE' is defined.
297         (Fclose_char_attribute_table): Close `ct->feature_table' and
298         `ct->ds' when `CHISE' is defined.
299         (Freset_char_attribute_table): Likewise.
300         (load_char_attribute_maybe): Use `cit->ds' and
301         `cit->feature_table' when `CHISE' is defined.
302         (Fload_char_attribute_table): Likewise.
303
304         * chartab.h: Include <chise.h> when `CHISE' is defined.
305         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
306         when `CHISE' is defined.
307
308 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
309
310         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
311         is defined.
312         (char_table_description): Likewise.
313         (Fmake_char_table): Likewise.
314         (Fcopy_char_table): Likewise.
315         (Fmount_char_attribute_table): Likewise.
316         (Fclose_char_attribute_table): Likewise.
317         (Freset_char_attribute_table): Likewise.
318         (load_char_attribute_maybe): Likewise.
319         (Fload_char_attribute_table): Likewise.
320
321         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
322         defined.
323
324 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
325
326         * chartab.c (load_char_attribute_table_map_func): New function
327         when CHISE is defined.
328         (Qload_char_attribute_table_map_function): Don't define when CHISE
329         is defined.
330         (Fload_char_attribute_table_map_function): Likewise.
331         (Fload_char_attribute_table): Use libchise when `CHISE' is
332         defined.
333         (syms_of_chartab): Don't define
334         `load-char-attribute-table-map-function' when CHISE is defined.
335
336 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
337
338         * chartab.c: Include <chise.h> when `CHISE' is defined.
339         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
340
341 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * mule-charset.c (charset_code_point): Fix problem when searching
344         in mother CCS fails with `defined_only' mode.
345
346 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
347
348         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
349         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
350         (put_char_composition): Likewise.
351         (Fput_char_attribute): Likewise.
352         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
353
354 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
355
356         * chartab.c (Q_ucs): Deleted.
357         (Fput_char_attribute): Don't refer `->ucs'.
358         (Fdefine_char): Likewise.
359         (Ffind_char): Likewise.
360         (syms_of_chartab): Delete `->ucs'.
361
362 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
363
364         * mule-charset.c (Qmap_cns11643_2): Renamed from
365         `Qchinese_cns11643_2'.
366         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
367         `chinese-cns11643-2'.
368         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
369         `=cns11643-2'.
370
371 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
372
373         * mule-charset.c (Qmap_cns11643_1): Renamed from
374         `Qchinese_cns11643_1'.
375         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
376         `chinese-cns11643-1'.
377         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
378         `=cns11643-1'.
379
380 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
381
382         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
383         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
384         `chinese-gb12345'.
385         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
386         `=gb12345'.
387
388 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
389
390         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
391         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
392         `chinese-gb2312'.
393         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
394         `=gb2312'.
395
396 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
397
398         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
399         (syms_of_mule_charset): Add new symbol `=big5' instead of
400         `chinese-big5'.
401         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
402
403 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
406         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
407         `korean-ksc5601'.
408         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
409         `=ks-x1001'.
410
411 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
412
413         * mule-charset.c (Qmap_jis_x0212): Renamed from
414         `Qjapanese_jisx0212'.
415         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
416         `japanese-jisx0212'.
417         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
418         `=jis-x0212'.
419
420 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
421
422         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
423         `Qjapanese_jisx0208'.
424         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
425         of `japanese-jisx0208'.
426         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
427         `=jis-x0208-1983'.
428
429 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
430
431         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
432         `Qjapanese_jisx0208_1978'.
433         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
434         of `japanese-jisx0208-1978'.
435         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
436         `=jis-x0208-1978'.
437
438 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
439
440         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
441         only for XEmacs CHISE.
442
443 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
444
445         * char-ucs.h: Compact non-ISO-IR charset-ids.
446         (LEADING_BYTE_UCS): Changed to -177.
447         (LEADING_BYTE_CONTROL_1): Changed to -77.
448         (LEADING_BYTE_UCS_BMP): Changed to -176.
449         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
450
451 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
452
453         * mule-charset.c (Qiso_ir): New variable.
454         (Fmake_charset): Recognise new property `iso-ir'.
455         (syms_of_mule_charset): Add new symbol `iso-ir'.
456
457 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
458
459         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
460         n to -n; charset-id of non ISO-IR sets are changed to positive
461         numbers.
462
463 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
464
465         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
466         for &MCS-XXXXXXXX; values.
467
468 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
469
470         * mule.c (Vxemacs_chise_version): Renamed from
471         `Vutf_2000_version'.
472         (vars_of_mule): Add new variable `xemacs-chise-version'; define
473         `utf-2000-version' as an alias for `xemacs-chise-version'.
474
475 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
476
477         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
478         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
479         defined.
480
481         * config.h.in (CHISE): New macro.
482
483 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
484
485         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
486         of `ucs'.
487         (Qmap_ucs): New variable.
488         (syms_of_mule_charset): Add new symbol `=ucs'.
489         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
490
491         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
492         (simplify_char_spec): Likewise.
493
494         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
495
496         * char-ucs.h (Qmap_ucs): New extern variable.
497
498 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
499
500         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
501         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
502         don't define it when UTF2000 is not defined.
503         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
504         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
505         when UTF2000 is not defined.
506         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
507         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
508
509 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
510
511         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
512
513         * mule-charset.c (Vcharset_ucs_gb): Deleted.
514         (Qucs_gb): Deleted.
515         (syms_of_mule_charset): Delete `ucs-gb'.
516         (complex_vars_of_mule_charset): Likewise.
517
518 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
519
520         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
521
522         * mule-charset.c (Vcharset_ucs_cns): Deleted.
523         (Qucs_cns): Deleted.
524         (syms_of_mule_charset): Delete `ucs-cns'.
525         (complex_vars_of_mule_charset): Likewise.
526
527 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
530
531         * mule-charset.c (Vcharset_ucs_jis): Deleted.
532         (Qucs_jis): Deleted.
533         (syms_of_mule_charset): Delete `ucs-jis'.
534         (complex_vars_of_mule_charset): Likewise.
535
536 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
537
538         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
539
540         * mule-charset.c (Vcharset_ucs_ks): Deleted.
541         (Qucs_ks): Deleted.
542         (syms_of_mule_charset): Delete `ucs-ks'.
543         (complex_vars_of_mule_charset): Likewise.
544
545 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
546
547         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
548         (Qideograph_daikanwa_2): Deleted.
549         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
550         (complex_vars_of_mule_charset): Likewise.
551
552         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
553         (LEADING_BYTE_DAIKANWA_1): Deleted.
554         (LEADING_BYTE_DAIKANWA_2): Deleted.
555         (MIN_CHAR_DAIKANWA): Deleted.
556         (MAX_CHAR_DAIKANWA): Deleted.
557
558 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
559
560         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
561         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
562         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
563
564         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
565         (Vcharset_ideograph_daikanwa): Deleted.
566         (Qideograph_hanziku_{1..12}): Deleted.
567         (Qideograph_daikanwa): Deleted.
568         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
569         Vcharset_ideograph_daikanwa.
570         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
571         `ideograph-hanziku-{1..12}'.
572         (complex_vars_of_mule_charset): Likewise.
573
574 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
575
576         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
577
578         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
579         (Qideograph_gt_pj_{1..11}): Deleted.
580         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
581         (complex_vars_of_mule_charset): Likewise.
582
583 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
584
585         * mule-charset.c (Vcharset_ucs_big5): Deleted.
586         (Vcharset_ideograph_gt): Deleted.
587         (Qucs_big5): Deleted.
588         (Qideograph_gt): Deleted.
589         (syms_of_mule_charset): Delete symbol `ucs-big5' and
590         `ideograph-gt'.
591         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
592         and `ideograph-gt'.
593
594         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
595         (LEADING_BYTE_GT): Deleted.
596         (MIN_CHAR_GT): Deleted.
597         (MAX_CHAR_GT): Deleted.
598
599 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
600
601         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
602
603 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
604
605         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
606         (save_uint16_byte_table): Likewise.
607         (save_byte_table): Likewise; convert values by it.
608         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
609         for `ideographic-structure'.
610         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
611         as the filter for `ideographic-structure'.
612
613 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
614
615         * chartab.c (put_char_composition): New function.
616         (Fput_char_attribute): Use `put_char_composition'; use
617         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
618
619         * fns.c (simplify_char_spec): New function.
620         (char_ref_simplify_spec): New function.
621         (Fchar_refs_simplify_char_specs): New function.
622         (syms_of_fns): Add new builtin function
623         `char-refs-simplify-char-specs'.
624
625 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
626
627         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
628         (Qideograph_cbeta): Deleted.
629         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
630         (complex_vars_of_mule_charset): Likewise.
631
632         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
633         (MIN_CHAR_CBETA): Comment out.
634         (MAX_CHAR_CBETA): Likewise.
635
636 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
637
638         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
639         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
640         CHISE client feature.
641
642 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
643
644         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
645
646 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
647
648         * mule-charset.c (charset_lookup_description_1): Use
649         `NUM_LEADING_BYTES' in UTF-2000.
650
651 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
652
653         * char-ucs.h (GC_CHARSETP): Deleted.
654
655 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * char-ucs.h (MAX_CHAR_GT): Updated.
658
659 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
660
661         * text-coding.c: Sync with XEmacs 21.4.10.
662
663 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
664
665         * mule-charset.c (Vcharset_china3_jef): Deleted.
666         (Qchina3_jef): Deleted.
667         (syms_of_mule_charset): Don't define `china3-jef'.
668         (complex_vars_of_mule_charset): Likewise.
669
670         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
671         (MIN_CHAR_CHINA3_JEF): Comment out.
672         (MAX_CHAR_CHINA3_JEF): Comment out.
673
674 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * mule-charset.c (Vcharset_ucs_gb): New variable.
677         (Qucs_gb): New variable.
678         (syms_of_mule_charset): Add new symbol `ucs-gb'.
679         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
680
681         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
682
683 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
684
685         * mule-charset.c (charset_code_point): if a coded-charset has a
686         final-byte, don't inherit the builtin range of the mother CCS.
687
688 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
689
690         * mule-charset.c (charset_code_point): Fix problem about
691         inheritance.
692
693 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
694
695         * mule-charset.c (decode_builtin_char): Reorganized.
696
697 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
698
699         * text-coding.c (char_encode_as_entity_reference): Modify for
700         `charset_code_point'.
701         (char_encode_shift_jis): Likewise.
702         (char_encode_big5): Likewise.
703         (char_encode_utf8): Likewise.
704         (char_encode_iso2022): Likewise.
705
706         * mule-charset.c (charset_code_point): Add new argument
707         `defined_only'.
708         (Fencode_char): Add new optional argument `defined_only'.
709
710         * chartab.c (put_char_table): Modify for `charset_code_point'.
711
712         * char-ucs.h (charset_code_point): Add new argument
713         `defined_only'.
714         (encode_char_1): Modify for `charset_code_point'.
715
716 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
717
718         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
719         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
720
721 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
722
723         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
724         (Qjis_x0208): Likewise.
725         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
726         XCHARSET_FINAL(charset).
727         (charset_code_point): Modify condition for final-byte based
728         builtin-chars.
729         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
730         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
731         in UTF-2000; specify `=jis-x0208' as the mother of
732         `japanese-jisx0208-1978', `japanese-jisx0208' and
733         `japanese-jisx0208-1990' in UTF-2000.
734
735 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
736
737         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
738
739 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
740
741         * text-coding.c (decode_coding_utf16): Support UTF-16.
742         (char_encode_utf16): Fixed.
743
744 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
745
746         * text-coding.c (Qutf16): New variable in MULE.
747         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
748         (Fcoding_system_type): Add `utf-16' in MULE.
749         (struct detection_state): Add a structure for utf16 in MULE.
750         (detect_coding_type): Setup st->utf16.mask in MULE.
751         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
752         MULE.
753         (reset_encoding_stream): Use `char_encode_utf16' and
754         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
755         (detect_coding_utf16): New function [incomplete].
756         (decode_coding_utf16): New function [support only UCS-2].
757         (char_encode_utf16): New function.
758         (char_finish_utf16): New function.
759         (syms_of_file_coding): Add new symbol `utf-16'; setup
760         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
761
762         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
763         UTF-2000.
764         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
765         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
766
767 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
768
769         * chartab.c (put_char_table): When a charset is specified as a
770         range in UTF-2000, don't support builtin characters.
771
772 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
773
774         * mule-charset.c (decode_defined_char): Don't refer external
775         database if Qunbound or Qnil are found.
776         (Fsave_charset_mapping_table): Don't define it if
777         HAVE_CHISE_CLIENT is not defined.
778         (Freset_charset_mapping_table): New function.
779         (load_char_decoding_entry_maybe): Store Qnil if a character is not
780         found in external database.
781         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
782         if HAVE_CHISE_CLIENT is not defined; add new builtin function
783         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
784
785 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
786
787         * text-coding.c (decode_coding_utf8): Check CCS is specified or
788         not.
789
790 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
791
792         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
793         Q_lowercase, Q_uppercase in UTF-2000.
794
795         * chartab.c (get_char_table): Add special code for the standard
796         case table to use character attribute `->downcase' and
797         `->uppercase' for case operations in UTF-2000.
798
799         * casetab.c (Qflippedcase): New variable in UTF-2000.
800         (Q_lowercase): Likewise.
801         (Q_uppercase): Likewise.
802         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
803         and `->uppercase' in UTF-2000.
804         (complex_vars_of_casetab): Assign attribute name `downcase' to
805         downcase and CANON table of Vstandard_case_table in UTF-2000;
806         assign attribute name `flippedcase' to upcase and EQV table of
807         Vstandard_case_table in UTF-2000.
808
809 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
810
811         * text-coding.c (decode_add_er_char): Support isolated-chars.
812         (char_encode_as_entity_reference): Likewise.
813
814 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
815
816         * emacs.c (Vutf_2000_lisp_directory): New variable.
817         (Vconfigure_utf_2000_lisp_directory): Likewise.
818         (complex_vars_of_emacs): Add new variable
819         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
820
821 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
822
823         * char-ucs.h (DECODE_CHAR): Delete special code for
824         `chinese-big5-1' and `chinese-big5-2'.
825
826         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
827         (Qbig5_2): Likewise.
828         (decode_defined_char): Support CONVERSION_BIG5_1 and
829         CONVERSION_BIG5_2.
830         (decode_builtin_char): Likewise.
831         (charset_code_point): Likewise.
832         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
833         'conversion in UTF-2000.
834         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
835         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
836         `chinese-big5-2' as children of `chinese-big5'.
837
838         * char-ucs.h (CONVERSION_BIG5_1): New macro.
839         (CONVERSION_BIG5_2): New macro.
840
841 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
842
843         * text-coding.c (char_encode_big5): Support entity-reference.
844
845 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
846
847         * text-coding.c (char_encode_as_entity_reference): New function.
848         (char_encode_utf8): Use `char_encode_as_entity_reference'.
849
850 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
851
852         * text-coding.c (decode_coding_big5): Support entity-reference
853         decoding feature.
854
855 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
856
857         * text-coding.c (allocate_coding_system): Initialize initial
858         charsets for CODESYS_UTF8.
859         (Fmake_coding_system): Accept charset-g0, charset-g1 and
860         charset-g2 for CODESYS_UTF8.
861         (decode_coding_utf8): Use charset-g0.
862         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
863         to force variants to map to UCS.
864
865 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * text-coding.c (Qutf_8_mcs): New variable.
868         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
869         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
870         instead of `utf-8' in UTF-2000.
871
872 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
873
874         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
875         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
876         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
877         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
878         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
879         CONVERSION_96x96x96x96 are introduced.
880         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
881         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
882         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
883
884         * char-ucs.h (CONVERSION_94): New macro.
885         (CONVERSION_96): New macro.
886         (CONVERSION_94x94): New macro.
887         (CONVERSION_96x96): New macro.
888         (CONVERSION_94x94x94): New macro.
889         (CONVERSION_96x96x96): New macro.
890         (CONVERSION_94x94x94x60): New macro.
891         (CONVERSION_94x94x94x94): New macro.
892         (CONVERSION_96x96x96x96): New macro.
893
894 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
895
896         * chartab.c (Vcharacter_variant_table): Deleted.
897         (Fchar_variants): Use character-attribute `->ucs-variants' instead
898         of `Vcharacter_variant_table'.
899         (Fput_char_attribute): Likewise.
900         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
901         (complex_vars_of_chartab): Likewise.
902
903 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
904
905         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
906
907         * fns.c (Qideographic_structure): New variable.
908         (Qkeyword_char): New variable.
909         (ids_format_unit): New function.
910         (Fideographic_structure_to_ids): New function.
911         (syms_of_fns): Add new symbols `ideographic-structure' and
912         `:char'; add new builtin function `ideographic-structure-to-ids'.
913
914         * data.c (Fchar_ref_p): New function.
915         (syms_of_data): Add new builtin function `char-ref-p'.
916
917         * chartab.h: Add an EXFUN for `Ffind_char'.
918
919 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
920
921         * text-coding.c (Vcharacter_composition_table): Deleted.
922         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
923         in every UTF-2000.
924
925         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
926         UTF-2000.
927         (Vcharacter_composition_table): Deleted.
928         (Fget_composite_char): Use the implementation for external-DB
929         support in every UTF-2000.
930         (Fput_char_attribute): Likewise.
931         (char_attribute_system_db_file): Don't define if external-DB
932         feature is not available.
933         (Fsave_char_attribute_table): Likewise.
934         (Fmount_char_attribute_table): Likewise.
935         (Fclose_char_attribute_table): Likewise.
936         (Freset_char_attribute_table): Likewise.
937         (Fload_char_attribute_table): Likewise.
938         (syms_of_chartab): Don't define `save-char-attribute-table',
939         `mount-char-attribute-table', `reset-char-attribute-table',
940         `close-char-attribute-table' and `load-char-attribute-table' if
941         external-DB feature is not available.
942         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
943
944 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
945
946         * text-coding.c (Qcomposition): Add extern if external-DB feature
947         is supported.
948         (Vcharacter_composition_table): Don't add extern if external-DB
949         feature is supported.
950         (COMPOSE_ADD_CHAR): Modify for new data-representation of
951         character composition rule if external-DB feature is supported.
952
953         * chartab.c (Vcharacter_composition_table): Don't define if
954         external-DB feature is supported.
955         (Qcomposition): New variable.
956         (Fget_composite_char): New implementation for external-DB support.
957         (Fput_char_attribute): Use `composition' property of each
958         character instead of `Vcharacter_composition_table' to store
959         character-composition rules if external-DB feature is supported.
960         (syms_of_chartab): Add new symbol `composition'.
961         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
962         external-DB feature is supported.
963
964 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
965
966         * chartab.c (Vchar_db_stingy_mode): New variable.
967         (load_char_attribute_maybe): Close database if
968         Vchar_db_stingy_mode is not NIL.
969         (Fload_char_attribute_table_map_function): Use
970         `get_char_id_table_0' instead of `get_char_id_table'.
971         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
972
973         * chartab.h (get_char_id_table_0): New inline function.
974         (get_char_id_table): Use `get_char_id_table_0'.
975
976 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
977
978         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
979         and `COMPOSE_ADD_CHAR'.
980         (decode_coding_iso2022): Use `decode_flush_er_chars'.
981
982 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
983
984         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
985         instead of `DECODE_ADD_UCS_CHAR'.
986         (COMPOSE_ADD_CHAR): Likewise.
987
988 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
989
990         * text-coding.c (decode_flush_er_chars): New inline function.
991         (decode_add_er_char): New function.
992         (decode_coding_utf8): Use `decode_flush_er_chars' and
993         `decode_add_er_char'.
994
995 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
996
997         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
998         done before `decode_output_utf8_partial_char'.
999
1000         * mule-charset.c (complex_vars_of_mule_charset): Specify
1001         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1002         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1003
1004 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1005
1006         * mule-charset.c (decode_defined_char): New function; search
1007         mother.
1008         (decode_builtin_char): Don't search mother if
1009         XCHARSET_MAX_CODE(charset) == 0.
1010         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1011         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1012         (Fdecode_char): Use `decode_defined_char' instead of
1013         `DECODE_DEFINED_CHAR'.
1014         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1015         mother of `Vcharset_ucs_jis'.
1016
1017         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1018         instead of `DECODE_DEFINED_CHAR'.
1019
1020         * char-ucs.h (decode_defined_char): Renamed from
1021         `DECODE_DEFINED_CHAR'; changed to normal function.
1022         (DECODE_CHAR): Use `decode_defined_char' instead of
1023         `DECODE_DEFINED_CHAR'.
1024
1025         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1026
1027 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1028
1029         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1030
1031         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1032         variable.
1033         (Quse_entity_reference): New variable.
1034         (Qd): New variable.
1035         (Qx): New variable.
1036         (QX): New variable.
1037         (coding_system_description): Add description for
1038         `ccs_priority_list'.
1039         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1040         (allocate_coding_system): Initialize `ccs_priority_list' in
1041         UTF-2000.
1042         (Fmake_coding_system): Add description about
1043         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1044         (codesys).
1045         (Fcoding_system_property): Accept `disable-composition' and
1046         `use-entity-reference' in UTF-2000.
1047         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1048         in UTF-2000.
1049         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1050         (decode_coding_utf8): Decode entity-reference if
1051         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1052         (char_encode_utf8): Encode non-Unicode characters as
1053         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1054         (str->codesys).
1055         (syms_of_file_coding): Add new symbols `use-entity-reference',
1056         `d', `x', `X'.
1057         (vars_of_file_coding): Add new variable
1058         `coded-charset-entity-reference-alist'.
1059         (complex_vars_of_file_coding): Declare `disable-composition' and
1060         `use-entity-reference' to be coding-system-properties in UTF-2000.
1061
1062         * file-coding.h (struct Lisp_Coding_System): Add new member
1063         `use_entity_reference' and `ccs_priority_list'.
1064         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1065         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1066         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1067
1068 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1069
1070         * chartab.c (save_uint8_byte_table): Don't clear the table.
1071         (save_uint16_byte_table): Likewise.
1072         (save_byte_table): Likewise.
1073         (Fmount_char_attribute_table): New function.
1074         (syms_of_chartab): Add new builtin function
1075         `mount-char-attribute-table'.
1076
1077 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1078
1079         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1080         "w+" mode.
1081         (load_char_decoding_entry_maybe): Open database as read-only mode.
1082
1083         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1084         open database as "w+" mode.
1085         (load_char_attribute_maybe): Open database as read-only mode.
1086         (Fload_char_attribute_table): Likewise.
1087
1088 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1089
1090         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1091         (char_table_description): Delete member `db_file'.
1092         (Fmake_char_table): Don't refer `ct->db_file'.
1093         (Fcopy_char_table): Likewise.
1094         (Fsave_char_attribute_table): Likewise.
1095         (Fclose_char_attribute_table): Likewise.
1096         (Freset_char_attribute_table): Likewise.
1097         (load_char_attribute_maybe): Likewise.
1098         (Fload_char_attribute_table): Likewise.
1099
1100         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1101
1102 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1103
1104         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1105         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1106         `ct->db' is living.
1107         (load_char_attribute_maybe): Likewise.
1108         (Fload_char_attribute_table): Likewise.
1109
1110 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1111
1112         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1113         `ct->db_file' unconditionally.
1114
1115 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1116
1117         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1118         UTF-2000.
1119         (char_table_description): Add description for `db_file' and `db'
1120         in UTF-2000.
1121         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1122         UTF-2000.
1123         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1124         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1125         (Fclose_char_attribute_table): New function.
1126         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1127         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1128         and `cit->db'.
1129         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1130         (syms_of_chartab): Add new builtin function
1131         `Fclose_char_attribute_table'.
1132
1133 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1134
1135         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1136         `db' in UTF-2000.
1137         (load_char_attribute_maybe): Change interface.
1138         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1139
1140 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1141
1142         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1143
1144 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1145
1146         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1147         instead of `DECODE_CHAR' for mother; don't use special code for
1148         chinese-big5 to use code space of chinese-big5-1 and
1149         chinese-big5-2.
1150         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1151         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1152
1153         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1154         (MAX_CHAR_BIG5_CDP): Revival.
1155
1156 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1157
1158         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1159         the XLFD registry-encoding name of `chinese-big5'.
1160
1161 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1162
1163         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1164         (Qchinese_big5_cdp): Deleted.
1165         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1166         (complex_vars_of_mule_charset): Delete coded-charset
1167         `chinese-big5-cdp'.
1168
1169         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1170         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1171         `CHARSET_ID_OFFSET - n' for private CCS.
1172         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1173         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1174         of `MIN_LEADING_BYTE'.
1175         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1176         `(CHARSET_ID_OFFSET - 97)'.
1177         (MIN_CHAR_BIG5_CDP): Deleted.
1178         (MAX_CHAR_BIG5_CDP): Deleted.
1179
1180 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1181
1182         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1183
1184 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1185
1186         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1187         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1188         chartab.c].
1189
1190         * chartab.c (Vutf_2000_version): Moved to mule.c.
1191         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1192
1193 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1194
1195         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1196         when HAVE_CHISE_CLIENT is not defined.
1197
1198         * mule.c (vars_of_mule): Provide feature `chise' when
1199         HAVE_CHISE_CLIENT is defined.
1200
1201 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1202
1203         * config.h.in (UTF2000): Add comment.
1204         (HAVE_CHISE_CLIENT): New macro.
1205
1206 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1207
1208         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1209         CONSP.
1210         (Fput_char_attribute): Likewise.
1211         (char_attribute_system_db_file): Encode file-name of attribute.
1212         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1213         the initial value.
1214
1215 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1216
1217         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1218         (Fsave_charset_mapping_table): Use
1219         `char_attribute_system_db_file'.
1220         (load_char_decoding_entry_maybe): Likewise.
1221
1222         * chartab.h (Qsystem_char_id): New external variable.
1223         (char_attribute_system_db_file): New prototype.
1224
1225         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1226         (char_attribute_system_db_file): New function.
1227         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1228         (Freset_char_attribute_table): Likewise.
1229         (load_char_attribute_maybe): Likewise.
1230         (Fload_char_attribute_table): Likewise.
1231         (syms_of_chartab): Add new symbol `system-char-id'.
1232
1233 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1234
1235         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1236         `XCHARSET_GRAPHIC(ccs)'.
1237
1238 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1239
1240         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1241
1242 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1243
1244         * chartab.c (Q_ucs_variants): New variable.
1245         (syms_of_chartab): Add new symbol `->ucs-variants'.
1246         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1247         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1248         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1249
1250         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1251
1252         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1253         `HAVE_DATABASE' is defined.
1254         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1255         `HAVE_DATABASE' is defined.
1256
1257 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1258
1259         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1260         attribute-table.
1261         (Freset_char_attribute_table): New function.
1262         (syms_of_chartab): Add new builtin function
1263         `reset-char-attribute-table'.
1264
1265 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1266
1267         * chartab.c (load_char_attribute_maybe): Don't make directories.
1268
1269 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1270
1271         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1272
1273         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1274         for decoding-table.
1275
1276 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1277
1278         * mule-charset.c (Fsave_charset_mapping_table): Use
1279         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1280
1281         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1282         instead of `XCHARSET_CHARS'.
1283
1284 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1285
1286         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1287         (XCHARSET_BYTE_SIZE): Likewise.
1288
1289         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1290         mule-charset.c].
1291         (XCHARSET_BYTE_SIZE): Likewise.
1292
1293 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1294
1295         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1296         data-directory to store database.
1297         (Fsave_char_attribute_table): Likewise.
1298         (load_char_attribute_maybe): Likewise.
1299         (Fload_char_attribute_table): Likewise.
1300
1301 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1302
1303         * mule-charset.c (Fsave_charset_mapping_table): New function.
1304         (syms_of_mule_charset): Add new builtin function
1305         `save-charset-mapping-table'.
1306
1307 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1308
1309         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1310         (get_ccs_octet_table): New inline function.
1311         (put_ccs_octet_table): Likewise.
1312         (decoding_table_put_char): Use `get_ccs_octet_table' and
1313         `put_ccs_octet_table'.
1314         (decoding_table_remove_char): Use `decoding_table_put_char'.
1315         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1316
1317         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1318         into encoding_table.
1319         (make_charset): Use Qunbound instead Qnil as initial value of
1320         decoding_table.
1321
1322 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1323
1324         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1325         element is Qunloaded.
1326         (map_over_uint16_byte_table): Likewise.
1327         (map_over_byte_table): Likewise.
1328         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1329         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1330         database support, load encoding-table of the specified
1331         coded-charset if it is not loaded yet.
1332         (save_uint8_byte_table): New function of UTF-2000 with external
1333         database support.
1334         (save_uint16_byte_table): Likewise.
1335         (save_byte_table): Likewise.
1336         (Fput_char_attribute): Don't store value into external database
1337         even if the external database feature is supported in UTF-2000;
1338         set `attribute' as name of char-table if the external database
1339         feature is supported.
1340         (Fsave_char_attribute_table): New function in UTF-2000.
1341         (syms_of_chartab): Add new builtin function
1342         `save-char-attribute-table' in UTF-2000.
1343
1344 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1345
1346         * chartab.c (char_attribute_table_to_put): New variable in
1347         UTF-2000.
1348         (Qput_char_table_map_function): Likewise.
1349         (value_to_put): Likewise.
1350         (Fput_char_table_map_function): New function in UTF-2000.
1351         (put_char_table): Use `Fmap_char_attribute' for
1352         CHARTAB_RANGE_CHARSET in UTF-2000.
1353         (Fput_char_attribute): Store symbol instead of string in
1354         `XCHAR_TABLE_NAME (table)'.
1355         (load_char_attribute_maybe): Likewise.
1356         (syms_of_chartab): Add new symbol/function
1357         `put-char-table-map-function'.
1358
1359 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1360
1361         * database.h: Add new EXFUN for `Fmap_database'.
1362
1363         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1364         (syms_of_database): Likewise.
1365
1366         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1367         UTF-2000.
1368         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1369         (XCHAR_TABLE_UNLOADED): Likewise.
1370
1371         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1372         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1373         HAVE_DATABASE is defined.
1374         (char_attribute_table_to_load): New variable of UTF-2000 with
1375         external database support.
1376         (Qload_char_attribute_table_map_function): Likewise.
1377         (Fload_char_attribute_table_map_function): New function of
1378         UTF-2000 with external database support.
1379         (Fload_char_attribute_table): New function of UTF-2000.
1380         (Fmap_char_attribute): Call Fload_char_attribute_table if
1381         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1382         (syms_of_chartab): Add new symbol and function
1383         `load-char-attribute-table-map-function' in UTF-2000 with external
1384         database support; add new function `load-char-attribute-table' in
1385         UTF-2000.
1386
1387 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1388
1389         * chartab.h (load_char_attribute_maybe): New prototype for
1390         UTF-2000 with DATABASE support.
1391         (get_char_id_table): Use `load_char_attribute_maybe' if
1392         HAVE_DATABASE is defined.
1393
1394         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1395         with DATABASE support.
1396
1397 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1398
1399         * chartab.c (Fput_char_attribute): Use S-expression as key of
1400         external database.
1401
1402         * chartab.h (get_char_id_table): Use S-expression as key of
1403         external database.
1404
1405 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1406
1407         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1408         if an element is not loaded, load the corresponding attributes
1409         from an external database.
1410         (map_over_uint16_byte_table): Likewise.
1411         (map_over_byte_table): Likewise.
1412         (map_char_table): Modify for `map_over_uint8_byte_table',
1413         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1414         element is not loaded, load the corresponding attributes from an
1415         external database.
1416         (Fput_char_attribute): Change initial values to Qunloaded.
1417
1418         * chartab.h (get_char_id_table): If a character attribute is not
1419         loaded and the attribute value is not found in an external
1420         database, store Qunbound as the attribute value.
1421
1422 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1423
1424         * chartab.c (BT_UINT8_unloaded): New macro.
1425         (UINT8_VALUE_P): Accept Qunloaded.
1426         (UINT8_ENCODE): Likewise.
1427         (UINT8_DECODE): Likewise.
1428         (BT_UINT16_unloaded): New macro.
1429         (UINT16_VALUE_P): Accept Qunloaded.
1430         (UINT16_ENCODE): Likewise.
1431         (UINT16_DECODE): Likewise.
1432         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1433         BT_UINT16_unloaded.
1434         (mark_char_table): Mark `ct->name' in UTF-2000.
1435         (char_table_description): Add `name' in UTF-2000.
1436         (Fmake_char_table): Initialize `ct->name'.
1437         (Fcopy_char_table): Copy `ct->name'.
1438         (Fput_char_attribute): Store value into an external database if
1439         HAVE_DATABASE is defined.
1440
1441         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1442         UTF-2000.
1443         (CHAR_TABLE_NAME): New macro in UTF-2000.
1444         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1445         (get_char_id_table): Try to read an external database if Qunloaded
1446         is stored in a table.
1447
1448         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1449         Qunloaded.
1450
1451 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1452
1453         * database.h: Add EXFUN definitions for Fopen_database,
1454         Fput_database, Fget_database and Fclose_database.
1455
1456         * data.c (Qunloaded): New variable in UTF-2000.
1457
1458         * lisp.h (Qunloaded): New variable in UTF-2000.
1459
1460 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1461
1462         * mule-charset.c (put_char_ccs_code_point): Modify for
1463         `decoding_table_remove_char' and `decoding_table_put_char'.
1464         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1465
1466         * char-ucs.h (decoding_table_remove_char): Change arguments to
1467         hide decoding_table vector.
1468         (decoding_table_put_char): Likewise.
1469
1470 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1471
1472         * mule-charset.c (decoding_table_remove_char): Moved to
1473         char-ucs.h.
1474         (decoding_table_put_char): Likewise.
1475
1476         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1477         from mule-charset.c].
1478         (decoding_table_remove_char): New inline function [moved from
1479         mule-charset.c].
1480         (decoding_table_put_char): Likewise.
1481
1482 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1483
1484         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1485         extension.
1486
1487 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1488
1489         * mule-charset.c (decode_builtin_char): Support mother charsets.
1490
1491 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1492
1493         * mule-charset.c (Q94x94x60): New variable.
1494         (charset_code_point): Support conversion `94x94x60'.
1495         (Fmake_charset): Likewise.
1496         (syms_of_mule_charset): Add new symbol `94x94x60'.
1497
1498         * char-ucs.h (CONVERSION_94x94x60): New macro.
1499
1500 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1501
1502         * mule-charset.c (charset_code_point): Unify code about
1503         `code-offset'.
1504
1505 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1506
1507         * mule-charset.c (charset_code_point): Merge code about builtin
1508         characters into code about mother charsets; don't use
1509         `range_charset_code_point'.
1510         (range_charset_code_point): Deleted.
1511
1512 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1513
1514         * mule-charset.c (Qcode_offset): New variable.
1515         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1516         `max-code'; accept new property `code-offset'.
1517         (syms_of_mule_charset): Add new symbol `code-offset'.
1518
1519 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1520
1521         * mule-charset.c (range_charset_code_point): Fixed.
1522
1523 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1524
1525         * mule-charset.c (decode_builtin_char): Change semantics of
1526         code-offset of coded-charset.
1527         (charset_code_point): Likewise.
1528         (range_charset_code_point): Likewise.
1529         (complex_vars_of_mule_charset): Modify for the change.
1530
1531 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1532
1533         * mule-charset.c (Fencode_char): Reverse arguments.
1534
1535         * mule-charset.c (charset_code_point): Fixed.
1536
1537 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * mule-charset.c (Vcharset_mojikyo): Deleted.
1540         (Vcharset_mojikyo_2022_1): Deleted.
1541         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1542         (Qmin_code): New variable in UTF-2000.
1543         (Qmax_code): Likewise.
1544         (Qmother): Likewise.
1545         (Qconversion): Likewise.
1546         (Q94x60): Likewise.
1547         (Qmojikyo): Deleted.
1548         (Qmojikyo_2022_1): Deleted.
1549         (Qmojikyo_pj_{1..22}): Deleted.
1550         (mark_charset): Mark `cs->mother'.
1551         (charset_description): Add description for `mother'.
1552         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1553         new arguments `mother' and `conversion'; use
1554         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1555         (charset_code_point): Moved from char-ucs.h; support `mother'
1556         charset feature.
1557         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1558         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1559         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1560         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1561         allow 2 as the value of `graphic' in UTF-2000; add new properties
1562         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1563         require `final' in UTF-2000; modify for `make_charset'.
1564         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1565         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1566         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1567         (Fencode_char): New function.
1568         (syms_of_mule_charset): Add new builtin function `encode-char' in
1569         UTF-2000; add new symbols `min-code', `max-code', `mother',
1570         `conversion' and `94x60'; delete symbols `mojikyo',
1571         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1572         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1573         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1574         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1575
1576         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1577         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1578
1579         * char-ucs.h (Vcharset_mojikyo): Deleted.
1580         (Vcharset_mojikyo_2022_1): Deleted.
1581         (LEADING_BYTE_MOJIKYO): Deleted.
1582         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1583         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1584         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1585         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1586         add new member `mother'; add new member `conversion'.
1587         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1588         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1589         (CHARSET_MOTHER): New macro.
1590         (CHARSET_CONVERSION): New macro.
1591         (CONVERSION_IDENTICAL): New macro.
1592         (CONVERSION_94x60): New macro.
1593         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1594         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1595         (XCHARSET_MOTHER): New macro.
1596         (XCHARSET_CONVERSION): New macro.
1597         (MIN_CHAR_MOJIKYO): Deleted.
1598         (MAX_CHAR_MOJIKYO): Deleted.
1599         (DECODE_MOJIKYO_2022): Deleted.
1600         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1601         (charset_code_point): Changed to non-inline function.
1602         (encode_char_1): Use `charset_code_point'.
1603         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1604
1605 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606
1607         * lread.c (read_compiled_function): Fix prototype.
1608         (read_vector): Likewise.
1609
1610 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1611
1612         * lrecord.h (struct lrecord_header): Delete `older'.
1613         (set_lheader_implementation): Delete code for `older'.
1614         (set_lheader_older_implementation): Deleted.
1615         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1616         (OLDER_RECORD_P): Deleted.
1617         (OLDER_RECORD_HEADER_P): Deleted.
1618         (alloc_older_lcrecord): Deleted.
1619         (alloc_older_lcrecord_type): Deleted.
1620
1621         * alloc.c (all_older_lcrecords): Deleted.
1622         (alloc_older_lcrecord): Deleted.
1623         (disksave_object_finalization_1): Delete code for older objects.
1624         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1625         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1626
1627 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1628
1629         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1630         instead of `make_older_vector'.
1631         (put_char_ccs_code_point): Likewise.
1632         (mark_charset): Mark `cs->decoding_table'.
1633         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1634
1635         * lisp.h (make_older_vector): Deleted.
1636         (make_vector_newer): Deleted.
1637
1638         * config.h.in (HAVE_GGC): Deleted.
1639
1640         * alloc.c (make_older_vector): Deleted.
1641         (make_vector_newer_1): Deleted.
1642         (make_vector_newer): Deleted.
1643
1644 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1645
1646         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1647         (Qideograph_daikanwa_2): New variable.
1648         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1649         (complex_vars_of_mule_charset): Add new coded-charset
1650         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1651         `LEADING_BYTE_DAIKANWA'.
1652
1653         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1654         (LEADING_BYTE_DAIKANWA_1): New macro.
1655         (LEADING_BYTE_DAIKANWA_2): New macro.
1656         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1657
1658 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1659
1660         * mule-charset.c (complex_vars_of_mule_charset): Change
1661         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1662         the second revised version.
1663
1664 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1665
1666         * mule-charset.c (Vcharset_ucs_smp): New variable.
1667         (Vcharset_ucs_sip): New variable.
1668         (Qucs_smp): New variable.
1669         (Qucs_sip): New variable.
1670         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1671         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1672         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1673         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1674         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1675         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1676
1677         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1678         (LEADING_BYTE_UCS_SIP): New macro.
1679         (MIN_CHAR_SMP): New macro.
1680         (MAX_CHAR_SMP): New macro.
1681         (MIN_CHAR_SIP): New macro.
1682         (MAX_CHAR_SIP): New macro.
1683
1684 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1685
1686         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1687         utf-2000.
1688
1689 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1690
1691         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1692         value; don't store value into `encoding_table' of `Lisp_Charset'.
1693         (mark_charset): `encoding_table' was deleted.
1694         (charset_description): Likewise.
1695         (make_charset): Likewise.
1696         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1697         `put_char_ccs_code_point'.
1698
1699         * chartab.h (Fput_char_attribute): New EXFUN.
1700
1701         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1702         is unified with normal symbol space.
1703         (Fget_char_attribute): Likewise.
1704         (Fput_char_attribute): Likewise; behavior of
1705         `put_char_ccs_code_point' is changed.
1706
1707         * char-ucs.h: Include "elhash.h".
1708         (Vchar_attribute_hash_table): New external variable.
1709         (struct Lisp_Charset): Delete `encoding_table'.
1710         (CHARSET_ENCODING_TABLE): New implementation; refer
1711         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1712         `Lisp_Charset'.
1713
1714 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1715
1716         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1717         (cs) == 0.
1718
1719 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1720
1721         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1722         `chinese-big5'.
1723
1724 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1725
1726         * chartab.c (uint8_byte_table_description): New constant.
1727         (uint8-byte-table): Use `uint8_byte_table_description'.
1728         (uint16_byte_table_description): New constant.
1729         (uint16-byte-table): Use `uint16_byte_table_description'.
1730
1731 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1732
1733         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1734         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1735
1736 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1737
1738         * mule-charset.c (Vcharset_ucs_ks): New variable.
1739         (Qucs_ks): New variable.
1740         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1741         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1742
1743         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1744
1745 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1746
1747         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1748         (Fdecode_char): Likewise.
1749
1750         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1751         chartab.h.
1752         (Fdefine_char): Modify for Fdecode_char.
1753         (Ffind_char): Likewise.
1754
1755         * mule-charset.c (Fdecode_char): Add new optional argument
1756         `defined-only'.
1757         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1758
1759 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1760
1761         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1762         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1763         (allocate_coding_system): Initialize initial-charsets of
1764         CODESYS_BIG5 in XEmacs UTF-2000.
1765         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1766         CODESYS_BIG5 in XEmacs UTF-2000.
1767         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1768         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1769
1770         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1771         variables.
1772         (Qideograph_hanziku_{1 .. 12}): Likewise.
1773         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1774         .. 12}'.
1775         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1776         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1777         `ideograph-hanziku-{1 .. 12}'.
1778
1779         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1780         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1781         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1782         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1783         (DECODE_DEFINED_CHAR): New inline function.
1784         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1785
1786 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1787
1788         * mule-charset.c (Vcharset_china3_jef): Renamed from
1789         `Vcharset_japanese_jef_china3'.
1790         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1791         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1792         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1793         (syms_of_mule_charset): Rename `china3-jef' from
1794         `japanese-jef-china3'.
1795         (complex_vars_of_mule_charset): Likewise; rename
1796         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1797
1798         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1799         `LEADING_BYTE_JEF_CHINA3'.
1800         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1801         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1802
1803 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1804
1805         * mule-charset.c (encode_builtin_char_1): Comment out special code
1806         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1807
1808         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1809         (MAX_CHAR_MOJIKYO_0): Comment out.
1810         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1811         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1812         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1813         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1814
1815 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1816
1817         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1818         (Qideograph_cbeta): New variable.
1819         (encode_builtin_char_1): Comment out special code for
1820         coded-charset `mojikyo' and `japanese-jef-china3'.
1821         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1822         (complex_vars_of_mule_charset): Add new coded-charset
1823         `ideograph-cbeta'.
1824
1825         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1826         (MIN_CHAR_CBETA): New macro.
1827         (MAX_CHAR_CBETA): New macro.
1828
1829 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1830
1831         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1832         (LEADING_BYTE_JEF_CHINA3): New macro.
1833         (MIN_CHAR_JEF_CHINA3): New macro.
1834         (MAX_CHAR_JEF_CHINA3): Likewise.
1835         (DECODE_CHAR): Fixed.
1836
1837 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1838
1839         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1840         (Qjapanese_jef_china3): New variable.
1841         (encode_builtin_char_1): Support `japanese-jef-china3'.
1842         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1843         (complex_vars_of_mule_charset): Add new coded-charset
1844         `japanese-jef-china3'.
1845
1846 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1847
1848         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1849         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1850         94^4, 96^3, 96^4, 128^n and 256^n set.
1851         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1852         (map_char_table): Likewise.
1853
1854 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1855
1856         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1857         UTF-2000.
1858
1859 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1860
1861         * chartab.h (get_char_id_table): New inline function.
1862
1863         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1864         function.
1865
1866 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1867
1868         * chartab.h (decode_char_table_range): New prototype in XEmacs
1869         UTF-2000.
1870         (put_char_id_table): New inline function in XEmacs UTF-2000.
1871
1872         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1873         function.
1874         (decode_char_table_range): Delete static declaration in XEmacs
1875         UTF-2000.
1876
1877 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1878
1879         * chartab.c (put_char_id_table): Use `put_char_table'.
1880
1881 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1882
1883         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1884         (map_over_uint16_byte_table): Likewise.
1885         (map_over_byte_table): Likewise.
1886         (map_char_table): Modify for `map_over_uint8_byte_table',
1887         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1888         UTF-2000.
1889
1890 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1891
1892         * chartab.c (struct map_char_table_for_charset_arg): New
1893         structure.
1894         (map_char_table_for_charset_fun): New function.
1895         (map_char_table): Use `map_char_table' for encoding_table of
1896         `range->charset'.
1897
1898 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1899
1900         * chartab.c (map_char_table): Check a character is found in
1901         range->charset instead of non default value is defined in
1902         char-table when range is CHARTAB_RANGE_ROW.
1903
1904 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * chartab.c (map_char_id_table): Deleted.
1907         (Fmap_char_attribute): Use `map_char_table' instead of
1908         `map_char_id_table'.
1909
1910 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1911
1912         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1913         UTF-2000.
1914         (update_syntax_table): Deleted in XEmacs UTF-2000.
1915
1916         * syntax.c (find_defun_start): Use `syntax_table' instead of
1917         `mirror_syntax_table' in XEmacs UTF-2000.
1918         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1919         UTF-2000.
1920         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1921         XEmacs UTF-2000.
1922         (Fmatching_paren): Likewise.
1923         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1924         in XEmacs UTF-2000.
1925         (find_start_of_comment): Likewise.
1926         (find_end_of_comment): Likewise.
1927         (Fforward_comment): Likewise.
1928         (scan_lists): Likewise.
1929         (char_quoted): Likewise.
1930         (Fbackward_prefix_chars): Likewise.
1931         (scan_sexps_forward): Likewise.
1932         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1933         (update_syntax_table): Likewise.
1934
1935         * search.c (skip_chars): Use `syntax_table' instead of
1936         `mirror_syntax_table' in XEmacs UTF-2000.
1937         (wordify): Likewise.
1938         (Freplace_match): Likewise.
1939
1940         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1941         `mirror_syntax_table' in XEmacs UTF-2000.
1942         (WORDCHAR_P_UNSAFE): Likewise.
1943         (re_match_2_internal): Likewise.
1944
1945         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1946         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1947
1948         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1949         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1950
1951         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1952         XEmacs UTF-2000.
1953
1954         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1955         UTF-2000.
1956         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1957         (char_table_description): Delete `mirror_table' in XEmacs
1958         UTF-2000.
1959         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1960         UTF-2000.
1961         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1962         (Fcopy_char_table): Likewise.
1963         (put_char_table): Don't call `update_syntax_table' in XEmacs
1964         UTF-2000.
1965
1966         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1967         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1968         (casify_region_internal): Likewise.
1969
1970         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1971
1972         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1973         `mirror_syntax_table' in XEmacs UTF-2000.
1974
1975         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1976         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1977         (Fexpand_abbrev): Likewise.
1978
1979 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1980
1981         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1982
1983 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1984
1985         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1986         (map_over_uint16_byte_table): Likewise.
1987         (map_over_byte_table): Likewise.
1988         (get_char_id_table): Refer `cit->default_value'.
1989         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1990         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1991         of character-id ranges.
1992         (mark_char_table): Mark `ct->default_value'.
1993         (char_table_description): Add `default_value'.
1994         (fill_char_table): Use `default_value'.
1995         (decode_char_table_range): Decode `nil' as
1996         `CHARTAB_RANGE_DEFAULT'.
1997         (get_char_id_table): Refer `cit->default_value'.
1998         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1999         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2000         temporary hack; check value of char-table is bound or not.
2001         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2002
2003         * chartab.h (struct Lisp_Char_Table): Add new member
2004         `default_value' in XEmacs UTF-2000.
2005         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2006         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2007         UTF-2000.
2008
2009 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2010
2011         * chartab.h (Lisp_Char_ID_Table): Deleted.
2012
2013         * chartab.c (char_table_description): Fix typo.
2014         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2015         `Lisp_Char_ID_Table'.
2016
2017 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2018
2019         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2020         `CHAR_ID_TABLE_P'.
2021
2022         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2023         `CHAR_ID_TABLE_P'.
2024
2025         * chartab.h (XCHAR_ID_TABLE): Deleted.
2026         (XSETCHAR_ID_TABLE): Deleted.
2027         (CHAR_ID_TABLE_P): Deleted.
2028
2029         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2030         `CHAR_ID_TABLE_P'.
2031         (Fget_composite_char): Likewise.
2032         (put_char_table): Likewise.
2033         (add_char_attribute_alist_mapper): Fixed.
2034         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2035         `CHAR_ID_TABLE_P'.
2036         (Fget_char_attribute): Likewise.
2037         (Fget_char_attribute): Likewise.
2038         (Fmap_char_attribute): Likewise.
2039
2040         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2041         `CHAR_ID_TABLE_P'.
2042         (encode_char_1): Likewise.
2043
2044 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2045
2046         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2047         `XCHAR_ID_TABLE'.
2048
2049         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2050         instead of `XCHAR_ID_TABLE'.
2051         (remove_char_ccs): Likewise.
2052
2053         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2054         `XCHAR_ID_TABLE'.
2055         (Fget_composite_char): Likewise.
2056         (Fchar_variants): Likewise.
2057         (put_char_table): Likewise.
2058         (add_char_attribute_alist_mapper): Likewise.
2059         (Fchar_attribute_alist): Likewise.
2060         (Fget_char_attribute): Likewise.
2061         (Fput_char_attribute): Likewise.
2062         (Fmap_char_attribute): Likewise.
2063         (Fmap_char_attribute): Likewise.
2064
2065         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2066         `XCHAR_ID_TABLE'.
2067         (encode_char_1): Likewise.
2068
2069 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2070
2071         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2072         `Lisp_Char_ID_Table'.
2073         (mark_char_id_table): Deleted.
2074         (print_char_id_table): Likewise.
2075         (char_id_table_equal): Likewise.
2076         (char_id_table_hash): Likewise.
2077         (char_id_table_description): Likewise.
2078         (char_id_table): Likewise.
2079         (make_char_id_table): Use `Fmake_char_table' and
2080         `fill_char_table'.
2081         (get_char_id_table): Use `Lisp_Char_Table' instead of
2082         `Lisp_Char_ID_Table'.
2083         (put_char_id_table): Likewise.
2084         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2085         `XCHAR_ID_TABLE'.
2086         (Fremove_char_attribute): Likewise.
2087         (syms_of_chartab): Don't define type `char-id-table'.
2088
2089         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2090         (char_id_table): Likewise.
2091         (GC_CHAR_ID_TABLE_P): Likewise.
2092         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2093         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2094         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2095         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2096         (get_char_id_table): Use `Lisp_Char_Table' instead of
2097         `Lisp_Char_ID_Table'.
2098         (put_char_id_table_0): Likewise.
2099         (put_char_id_table): Likewise.
2100
2101 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2102
2103         * chartab.h: Lisp_Byte_Table related codes are moved from
2104         chartab.h.
2105
2106         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2107
2108 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2109
2110         * chartab.h: Don't include "chartab.h".
2111         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2112         (Lisp_Char_ID_Table): Likewise.
2113         (char_id_table): Likewise.
2114         (XCHAR_ID_TABLE): Likewise.
2115         (XSETCHAR_ID_TABLE): Likewise.
2116         (CHAR_ID_TABLE_P): Likewise.
2117         (GC_CHAR_ID_TABLE_P): Likewise.
2118         (get_char_id_table): Likewise.
2119
2120         * char-ucs.h: Include "chartab.h".
2121         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2122         (Lisp_Char_ID_Table): Likewise.
2123         (char_id_table): Likewise.
2124         (XCHAR_ID_TABLE): Likewise.
2125         (XSETCHAR_ID_TABLE): Likewise.
2126         (CHAR_ID_TABLE_P): Likewise.
2127         (GC_CHAR_ID_TABLE_P): Likewise.
2128         (get_char_id_table): Likewise.
2129
2130 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2131
2132         * chartab.c (copy_uint8_byte_table): New function.
2133         (copy_uint16_byte_table): New function.
2134         (copy_byte_table): New function.
2135         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2136         characters to call.
2137         (map_over_uint16_byte_table): Likewise.
2138         (map_over_byte_table): Likewise.
2139         (get_byte_table): Move prototype to chartab.h.
2140         (put_byte_table): Likewise.
2141         (put_char_id_table_0): Moved to chartab.h.
2142         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2143         (char_table_entry_equal): Likewise.
2144         (char_table_entry_hash): Likewise.
2145         (char_table_entry_description): Likewise.
2146         (char_table_entry): Likewise.
2147         (make_char_table_entry): Likewise.
2148         (copy_char_table_entry): Likewise.
2149         (get_non_ascii_char_table_value): Likewise.
2150         (map_over_charset_ascii): Likewise.
2151         (map_over_charset_control_1): Likewise.
2152         (map_over_charset_row): Likewise.
2153         (map_over_other_charset): Likewise.
2154         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2155         (print_char_table): Likewise.
2156         (char_table_equal): Likewise.
2157         (char_table_hash): Likewise.
2158         (char_table_description): Likewise.
2159         (fill_char_table): Likewise.
2160         (Fcopy_char_table): Likewise.
2161         (get_char_table): Likewise.
2162         (Fget_range_char_table): Likewise.
2163         (put_char_table): Likewise.
2164         (map_char_table): Likewise.
2165         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2166         UTF-2000.
2167
2168 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2169
2170         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2171         `Vauto_fill_chars' in XEmacs UTF-2000.
2172
2173         * chartab.h (get_byte_table): New prototype [moved from
2174         chartab.c].
2175         (put_byte_table): Likewise [moved from chartab.c].
2176         (put_char_id_table_0): New inline function [moved from chartab.c].
2177         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2178         (Lisp_Char_Table_Entry): Likewise.
2179         (char_table_entry): Likewise.
2180         (XCHAR_TABLE_ENTRY): Likewise.
2181         (XSETCHAR_TABLE_ENTRY): Likewise.
2182         (CHAR_TABLE_ENTRYP): Likewise.
2183         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2184         (NUM_ASCII_CHARS): Likewise.
2185         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2186         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2187
2188 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2189
2190         * chartab.c (get_char_id_table): Change interface.
2191         (put_char_id_table_0): New function.
2192         (put_char_id_table): Change interface; new implementation.
2193         (Fget_composite_char): Modify for interface change of
2194         `get_char_id_table'.
2195         (Fchar_variants): Likewise.
2196         (add_char_attribute_alist_mapper): Likewise.
2197         (Fchar_attribute_alist): Likewise.
2198         (Fget_char_attribute): Likewise.
2199         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2200         as same as character as the first argument like `put-char-table';
2201         modify for interface change of `put_char_id_table'.
2202         (Fremove_char_attribute): Modify for interface change of
2203         `put_char_id_table'.
2204
2205 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2206
2207         * text-coding.c: Sync up with XEmacs 21.2.41.
2208         (COMPOSE_ADD_CHAR): Modify for interface change of
2209         `get_char_id_table'.
2210
2211         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2212         change of `put_char_id_table'.
2213         (remove_char_ccs): Likewise.
2214
2215         * chartab.h (put_char_id_table): Change interface.
2216
2217         * char-ucs.h (get_char_id_table): Change interface.
2218         (charset_code_point): Modify for interface change of
2219         `get_char_id_table'.
2220         (encode_char_1): Likewise.
2221
2222 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2223
2224         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2225         argument `ccs'.
2226         (map_over_uint16_byte_table): Likewise.
2227         (map_over_byte_table): Likewise.
2228         (map_char_id_table): Add new argument `range' like
2229         `map_char_table'.
2230         (Fmap_char_attribute): Add new argument `range' like
2231         `Fmap_char_table'.
2232
2233 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2234
2235         * chartab.c (map_over_uint8_byte_table): Change interface of
2236         mapping function to use struct chartab_range instead of Emchar.
2237         (map_over_uint16_byte_table): Likewise.
2238         (map_over_byte_table): Likewise.
2239         (map_char_id_table): Likewise.
2240         (struct slow_map_char_id_table_arg): Deleted.
2241         (slow_map_char_id_table_fun): Deleted.
2242         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2243         function `slow_map_char_table_fun' instead of struct
2244         `slow_map_char_id_table_arg' and function
2245         `slow_map_char_id_table_fun'.
2246
2247 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2248
2249         * mule-charset.c: Move char-it-table related codes to chartab.c.
2250         (Vutf_2000_version): Moved to chartab.c.
2251         (Fdefine_char): Likewise.
2252         (Ffind_char): Likewise.
2253         (syms_of_mule_charset): Move types `uint8-byte-table',
2254         `uint16-byte-table', `byte-table' and `char-id-table' to
2255         chartab.c; move functions `char_attribute_list,
2256         `find_char_attribute_table, `char_attribute_alist,
2257         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2258         `map_char_attribute, `define_char, `find_char, `char_variants and
2259         `get_composite_char to chartab.c; move symbols `=>ucs',
2260         `->decomposition', `compat', `isolated', `initial', `medial',
2261         `final', `vertical', `noBreak', `fraction', `super', `sub',
2262         `circle', `square', `wide', `narrow', `small' and `font' to
2263         chartab.c.
2264         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2265         setting codes for `Vcharacter_composition_table' and
2266         `Vcharacter_variant_table' to chartab.c.
2267         (complex_vars_of_mule_charset): Move setting code for
2268         `Vchar_attribute_hash_table' to chartab.c.
2269
2270         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2271         (make_char_id_table): New prototype.
2272         (put_char_id_table): Likewise.
2273         (Fget_char_attribute): Likewise.
2274
2275         * chartab.c: Move char-id-table related code from mule-charset.c.
2276         (Vutf_2000_version): Moved from mule-charset.c.
2277
2278         * char-ucs.h (Qucs): New external variable.
2279         (put_char_ccs_code_point): New prototype.
2280         (remove_char_ccs): Likewise.
2281
2282 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2283
2284         * mule-charset.c (Vcharset_ucs_jis): New variable.
2285         (Qucs_jis): Likewise.
2286         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2287         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2288
2289         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2290
2291 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2292
2293         * mule-charset.c (map_over_uint8_byte_table): New function.
2294         (map_over_uint16_byte_table): Likewise.
2295         (map_over_byte_table): Likewise.
2296         (map_char_id_table): Likewise.
2297         (slow_map_char_id_table_fun): Likewise.
2298         (Fmap_char_attribute): Likewise.
2299         (syms_of_mule_charset): Add new function `map-char-attribute'.
2300
2301 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2302
2303         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2304         (syms_of_mule_charset): Add new function `find-char'.
2305
2306 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2307
2308         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2309         XEmacs UTF-2000.
2310         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2311         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2312         XEmacs UTF-2000.
2313         (complex_vars_of_mule_charset): Add new coded-charset
2314         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2315         `ideograph-gt-pj-*'.
2316
2317         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2318
2319 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2320
2321         * mule-charset.c (encode_builtin_char_1): Purge codes about
2322         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2323         {MIN|MAX}_CHAR_HEBREW.
2324         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2325         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2326
2327         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2328         (MAX_CHAR_GREEK): Purged.
2329         (MIN_CHAR_CYRILLIC): Purged.
2330         (MAX_CHAR_CYRILLIC): Purged.
2331         (MIN_CHAR_HEBREW): Commented out.
2332         (MAX_CHAR_HEBREW): Likewise.
2333
2334 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2335
2336         * mule-charset.c (Qto_ucs): New variable.
2337         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2338         (Fdefine_char): Likewise.
2339         (syms_of_mule_charset): Add new symbol `=>ucs'.
2340
2341 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2342
2343         * mule-charset.c (Fdecode_char): Fixed.
2344
2345 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2346
2347         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2348         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2349         "tcvn5712-1".
2350
2351 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2352
2353         * mule-charset.c (Vcharset_ucs_big5): New variable.
2354         (Qucs_big5): Likewise.
2355         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2356         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2357
2358         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2359
2360 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2361
2362         * mule-charset.c (decode_builtin_char): Check Big5 code range
2363         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2364
2365 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2366
2367         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2368         (Qchinese_gb12345): Likewise.
2369         (Fdecode_builtin_char): Fixed.
2370         (syms_of_mule_charset): Add `chinese-gb12345'.
2371         (complex_vars_of_mule_charset): Add coded-charset
2372         `chinese-gb12345'.
2373
2374         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2375         (LEADING_BYTE_CHINESE_GB12345): New macro.
2376
2377 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2378
2379         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2380         and `latin-viscii-upper' for `latin-viscii'.
2381
2382 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2383
2384         * mule-charset.c (Fdecode_builtin_char): Comment out
2385         regularization code for ISO-IR GR representation.
2386
2387 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2388
2389         * mule-charset.c (decode_builtin_char): New function; renamed from
2390         `make_builtin_char'; return -1 instead of signal.
2391         (Fdecode_builtin_char): Use `decode_builtin_char'.
2392
2393         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2394         `make_builtin_char'.
2395         (DECODE_CHAR): Use `decode_builtin_char' instead of
2396         `make_builtin_char'; use mapping table of `chinese-big5' for
2397         `chinese-big5-{1,2}'.
2398
2399 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2400
2401         * text-coding.c (char_encode_big5): New function.
2402         (char_finish_big5): Likewise.
2403         (reset_encoding_stream): Use `char_encode_big5' and
2404         `char_finish_big5' for CODESYS_BIG5.
2405         (mule_encode): Don't use `encode_coding_big5'.
2406         (encode_coding_big5): Deleted.
2407
2408 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2409
2410         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2411         0x81- in XEmacs UTF-2000.
2412         (detect_coding_big5): Likewise.
2413
2414 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2415
2416         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2417         generate character-id if the CCS property does not have
2418         corresponding predefined character.
2419         (make_builtin_char): Return -1 if corresponding predefined
2420         character is not found.
2421         (Fdecode_char): Return nil if corresponding character is not
2422         found.
2423         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2424         don't map to builtin ucs space.
2425
2426 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2427
2428         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2429         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2430
2431 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2432
2433         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2434         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2435         (Qideograph_gt): Likewise.
2436         (Qideograph_gt_pj_{1..11}): Likewise.
2437         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2438         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2439         `ideograph-gt-pj-11'.
2440         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2441         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2442         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2443
2444         * char-ucs.h (LEADING_BYTE_GT): New macro.
2445         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2446         (MIN_CHAR_GT): Likewise.
2447         (MAX_CHAR_GT): Likewise.
2448
2449 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2450
2451         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2452         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2453
2454         * doprnt.c (unsigned_int_converters): Add `c'.
2455         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2456
2457         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2458         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2459         `MIN_CHAR_MOJIKYO'.
2460         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2461         (MAX_CHAR_MOJIKYO_0): New macro.
2462         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2463
2464 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2465
2466         * mule-charset.c (Fdefine_char): Delete cemented out code.
2467         (encode_builtin_char_1): Modify for new allocation of builtin
2468         Mojikyo characters.
2469
2470         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2471
2472 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2473
2474         * mule-charset.c (Vcharset_ucs_cns): New variable.
2475         (Qucs_cns): New variable.
2476         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2477         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2478
2479 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2480
2481         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2482
2483 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2484
2485         * search.c (search_buffer): Make `charset_base_code' as
2486         character-id >> 6 to eliminate the corresponding last byte in
2487         UTF-8 representation [I'm not sure it is right thing].
2488         (boyer_moore): Likewise.
2489
2490 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2491
2492         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2493         representation in MULE.
2494
2495 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2496
2497         * text-coding.c (Fmake_coding_system): Use
2498         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2499         `EXTERNAL_PROPERTY_LIST_LOOP'.
2500
2501 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2502
2503         * text-coding.c (decode_output_utf8_partial_char): New function.
2504         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2505
2506 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2507
2508         * text-coding.c (decode_coding_utf8): Output original byte
2509         sequence if it is broken; change order of conditions.
2510
2511         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2512         of conditions.
2513
2514         * mb-multibyte.h (BYTE_ASCII_P):
2515         Use bit ops for char-signedness safety.
2516         (BYTE_C0_P): Use bit ops for char-signedness safety.
2517         (BYTE_C1_P): Use bit ops for char-signedness safety.
2518
2519         * character.h: (XCHAR_OR_CHAR_INT):
2520         Always use inline function.
2521         Remove redundant type checking assert() - XINT will abort quite
2522         nicely.
2523
2524 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2525
2526         * text-coding.c: (Fencode_shift_jis_char):
2527         (Fencode_big5_char):
2528         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2529         Replace 0 with '\0' when working with bytes.
2530         Replace initial "(" with "\(" in docstrings.
2531
2532         (Fmake_coding_system):
2533         When type is ccl and value is vector, register it with a proper
2534         symbol.  And checks whether the given ccl program is valid.
2535         (mule_decode): When calling ccl_driver, if src indicates
2536         NULL pointer, set an empty string instead.
2537         (mule_encode): Likewise.
2538
2539         (detect_eol_type):
2540         (detect_coding_sjis):
2541         (decode_coding_sjis):
2542         (detect_coding_big5):
2543         (decode_coding_big5):
2544         (detect_coding_ucs4):
2545         (decode_coding_ucs4):
2546         (detect_coding_utf8):
2547         (decode_coding_utf8):
2548         (detect_coding_iso2022):
2549         (decode_coding_iso2022):
2550         (decode_coding_no_conversion):
2551         (mule_decode):
2552         Make all detecting and decoding functions take an Extbyte * arg.
2553         (text_encode_generic):
2554         (encode_coding_big5):
2555         (encode_coding_no_conversion):
2556         (mule_encode):
2557         Make all encoding functions take a Bufbyte * arg.
2558         Use size_t instead of unsigned int for memory sizes.
2559         Only cast to unsigned char whenever dereferencing Extbyte *.
2560
2561         (struct lrecord_description fcd_description_1): Use countof.
2562         (complex_vars_of_file_coding):
2563         Use countof instead of sizeof.
2564         Use CHECK_NATNUM instead of CHECK_INT.
2565
2566 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2567
2568         * mule-charset.c (Fget_char_attribute): Add new optional argument
2569         `default-value'.
2570         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2571         (remove_char_ccs): Likewise.
2572
2573 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2574
2575         * text-coding.c (char_encode_shift_jis): New implementation in
2576         UTF-2000.
2577         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2578         ...)'.
2579
2580         * mule-charset.c (Vcharset_chinese_big5): New variable in
2581         UTF-2000.
2582         (Qchinese_big5): New variable in UTF-2000.
2583         (BIG5_SAME_ROW): New macro in UTF-2000.
2584         (make_builtin_char): Use builtin characters of
2585         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2586         characters of `Vcharset_chinese_big5'.
2587         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2588         (complex_vars_of_mule_charset): Add new coded-charset
2589         `chinese-big5' in UTF-2000.
2590
2591         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2592         (Vcharset_chinese_big5): New external variable declaration.
2593         (Vcharset_japanese_jisx0208_1990): Likewise.
2594
2595 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2598         function.
2599         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2600
2601 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2602
2603         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2604         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2605         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2606         `mojikyo-pj-*'.
2607
2608 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2609
2610         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2611
2612 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2613
2614         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2615         to 0.17.
2616
2617 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2618
2619         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2620         for `CHARSET_BY_ATTRIBUTES'.
2621         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2622         `CHARSET_BY_ATTRIBUTES'.
2623
2624         * text-coding.c (struct decoding_stream): Rename member `CH' to
2625         `CPOS'.
2626         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2627         (decode_coding_sjis): Likewise.
2628         (decode_coding_big5): Likewise.
2629         (decode_coding_ucs4): Likewise.
2630         (decode_coding_utf8): Likewise.
2631         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2632         `CHARSET_BY_ATTRIBUTES'.
2633         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2634         `str->counter'; decode 3, 4 bytes sets.
2635         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2636         sets.
2637         (decode_coding_no_conversion): Use `str->cpos' instead of
2638         `str->ch'.
2639
2640         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2641         (Qmojikyo_2022_1): New variable.
2642         (make_charset): Don't use `CHARSET_TYPE_*'.
2643         (range_charset_code_point): Support coded-charset
2644         `mojikyo-2022-1'.
2645         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2646         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2647         `CHARSET_BY_ATTRIBUTES'.
2648         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2649         `CHARSET_BY_ATTRIBUTES'.
2650         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2651         (complex_vars_of_mule_charset): Add new coded-charset
2652         `mojikyo-2022-1'.
2653
2654         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2655         interface; changed to inline function.
2656
2657         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2658         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2659         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2660         (CHARSET_TYPE_94): Deleted.
2661         (CHARSET_TYPE_94X94): Deleted.
2662         (CHARSET_TYPE_96): Deleted.
2663         (CHARSET_TYPE_96X96): Deleted.
2664         (CHARSET_TYPE_128): Deleted.
2665         (CHARSET_TYPE_128X128): Deleted.
2666         (CHARSET_TYPE_256): Deleted.
2667         (CHARSET_TYPE_256X256): Deleted.
2668         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2669         to inline function.
2670         (DECODE_MOJIKYO_2022): New inline function.
2671         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2672         `Vcharset_mojikyo_2022_1'.
2673
2674 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2675
2676         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2677         instead of `EQ'.
2678         (put_byte_table): Likewise.
2679         (char_id_table_equal): Use `get_byte_table' [new implementation].
2680
2681 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2682
2683         * mule-charset.c: Include <limits.h> in UTF-2000.
2684         (BT_UINT8_MIN): New macro in UTF-2000.
2685         (BT_UINT8_MAX): New macro in UTF-2000.
2686         (BT_UINT8_t): New macro in UTF-2000.
2687         (BT_UINT8_nil): New macro in UTF-2000.
2688         (BT_UINT8_unbound): New macro in UTF-2000.
2689         (INT_UINT8_P): New inline function in UTF-2000.
2690         (UINT8_VALUE_P): New inline function in UTF-2000.
2691         (UINT8_ENCODE): New inline function in UTF-2000.
2692         (UINT8_DECODE): New inline function in UTF-2000.
2693         (mark_uint8_byte_table): New function in UTF-2000.
2694         (print_uint8_byte_table): New function in UTF-2000.
2695         (uint8_byte_table_equal): New function in UTF-2000.
2696         (uint8_byte_table_hash): New function in UTF-2000.
2697         (make_uint8_byte_table): New function in UTF-2000.
2698         (uint8_byte_table_same_value_p): New function in UTF-2000.
2699         (BT_UINT16_MIN): New macro in UTF-2000.
2700         (BT_UINT16_MAX): New macro in UTF-2000.
2701         (BT_UINT16_t): New macro in UTF-2000.
2702         (BT_UINT16_nil): New macro in UTF-2000.
2703         (BT_UINT16_unbound): New macro in UTF-2000.
2704         (INT_UINT16_P): New inline function in UTF-2000.
2705         (UINT16_VALUE_P): New inline function in UTF-2000.
2706         (UINT16_ENCODE): New inline function in UTF-2000.
2707         (UINT16_DECODE): New inline function in UTF-2000.
2708         (UINT8_TO_UINT16): New inline function in UTF-2000.
2709         (mark_uint16_byte_table): New function in UTF-2000.
2710         (print_uint16_byte_table): New function in UTF-2000.
2711         (uint16_byte_table_equal): New function in UTF-2000.
2712         (uint16_byte_table_hash): New function in UTF-2000.
2713         (make_uint16_byte_table): New function in UTF-2000.
2714         (uint16_byte_table_same_value_p): New function in UTF-2000.
2715         (print_byte_table): New function in UTF-2000.
2716         (byte-table): Use `print_byte_table' as printer.
2717         (make_byte_table): Delete second argument `older'.
2718         (byte_table_same_value_p): New function in UTF-2000.
2719         (copy_byte_table): Deleted.
2720         (get_byte_table): New function in UTF-2000.
2721         (put_byte_table): New function in UTF-2000.
2722         (print_char_id_table): New function in UTF-2000.
2723         (char-id-table): Use `print_char_id_table' as printer.
2724         (make_char_id_table): Delete second argument `older'.
2725         (get_char_id_table): Use `get_byte_table [new implementation].
2726         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2727         implementation].
2728         (Ffind_char_attribute_table): New function in UTF-2000.
2729         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2730         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2731         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2732         (syms_of_mule_charset): Add new function
2733         `find-char-attribute-table' in UTF-2000.
2734
2735         * lrecord.h (enum lrecord_type): Add
2736         `lrecord_type_uint16_byte_table' and
2737         `lrecord_type_uint8_byte_table'.
2738
2739         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2740         (Lisp_Uint8_Byte_Table): New type.
2741         (XUINT8_BYTE_TABLE): New macro.
2742         (XSETUINT8_BYTE_TABLE): New macro.
2743         (UINT8_BYTE_TABLE_P): New macro.
2744         (GC_UINT8_BYTE_TABLE_P): New macro.
2745         (struct Lisp_Uint16_Byte_Table): New structure.
2746         (Lisp_Uint16_Byte_Table): New type.
2747         (XUINT16_BYTE_TABLE): New macro.
2748         (XSETUINT16_BYTE_TABLE): New macro.
2749         (UINT16_BYTE_TABLE_P): New macro.
2750         (GC_UINT16_BYTE_TABLE_P): New macro.
2751
2752 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2753
2754         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2755         (Vcharacter_ideographic_strokes_table): Deleted.
2756         (Vcharacter_total_strokes_table): Deleted.
2757         (Vcharacter_morohashi_daikanwa_table): Deleted.
2758         (Vcharacter_decomposition_table): Deleted.
2759         (Qname): Deleted because it is duplicated.
2760         (Qideographic_radical): Deleted.
2761         (Qideographic_strokes): Deleted.
2762         (Qtotal_strokes): Deleted.
2763         (Qmorohashi_daikanwa): Deleted.
2764         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2765         `ideographic-radical', `ideographic-strokes', `total-strokes',
2766         `morohashi-daikanwa' and `->decomposition'.
2767         (Fget_char_attribute): Likewise.
2768         (Fput_char_attribute): Likewise; use `make-vector' instead of
2769         `make_older_vector' for `->decomposition' value.
2770         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2771         `ideograph-daikanwa'.
2772         (syms_of_mule_charset): Delete builtin symbols `name',
2773         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2774         `morohashi-daikanwa'.
2775         (vars_of_mule_charset): Don't setup
2776         `Vcharacter_ideographic_radical_table',
2777         `Vcharacter_ideographic_strokes_table',
2778         `Vcharacter_total_strokes_table',
2779         `Vcharacter_morohashi_daikanwa_table' and
2780         `Vcharacter_decomposition_table'.
2781
2782 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2783
2784         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2785         `make_older_vector', `make_vector_newer_1' and
2786         `make_vector_newer'.
2787
2788         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2789         `make_older_vector' and `make_vector_newer'.
2790
2791         * config.h.in (HAVE_GGC): New macro.
2792
2793 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2794
2795         * mule-charset.c (struct char_attribute_list_closure): New
2796         structure in UTF-2000.
2797         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2798         (Fchar_attribute_list): Likewise.
2799         (Fset_charset_mapping_table): Use `make_vector_newer'.
2800         (Fdecode_builtin_char): New function in UTF-2000.
2801         (syms_of_mule_charset): Add new function `char-attribute-list' and
2802         `decode-builtin-char' in UTF-2000.
2803
2804         * lisp.h (make_vector_newer): New prototype.
2805
2806         * alloc.c (make_vector_newer_1): New function.
2807         (make_vector_newer): New function.
2808
2809 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2810
2811         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2812         50100)'.
2813
2814 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2815
2816         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2817         (Vcharacter_attribute_table): Deleted.
2818         (Vcharacter_name_table): Deleted.
2819         (put_char_attribute): Deleted.
2820         (remove_char_attribute): Deleted.
2821         (struct char_attribute_alist_closure): New structure.
2822         (add_char_attribute_alist_mapper): New function.
2823         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2824         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2825         (Fget_char_attribute): Likewise.
2826         (Fput_char_attribute): Likewise.
2827         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2828         of `remove_char_attribute'.
2829         (Fdefine_char): Return character.
2830         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2831         and `Vcharacter_name_table'.
2832         (complex_vars_of_mule_charset): Likewise
2833         `Vchar_attribute_hash_table'.
2834
2835 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2836
2837         * character.h (CHARC_CHARSET): New macro.
2838         (CHARC_CHARSET_ID): New macro.
2839         (CHARC_CODE_POINT): New macro.
2840         (CHARC_COLUMNS): New macro.
2841         (CHARC_TO_CHAR): New inline function.
2842         (CHARC_EQ): New inline function.
2843         (CHARC_ASCII_EQ): New inline function.
2844         (CHARC_IS_SPACE): New inline function.
2845         (ASCII_TO_CHARC): New inline function.
2846
2847         * char-ucs.h (encode_char_2): Deleted.
2848         (ENCODE_CHAR): Use `encode_char_1' again.
2849         (breakup_char_1): Likewise.
2850         (CHAR_TO_CHARC): New inline function.
2851
2852         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2853
2854 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2855
2856         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2857         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2858         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2859         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2860         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2861         `CHARC_IS_SPACE'.
2862         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2863
2864         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2865         `CHARC_CODE_POINT'.
2866         (x_output_display_block): Use `CHARC_CHARSET' and
2867         `CHARC_ASCII_EQ'.
2868
2869         * redisplay-tty.c (tty_output_display_block): Use
2870         `CHARC_ASCII_EQ'.
2871         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2872
2873         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2874
2875         * insdel.c (find_charsets_in_charc_string): Use
2876         `CHARC_CHARSET_ID'.
2877         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2878         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2879         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2880         (convert_charc_string_into_malloced_string): Likewise.
2881
2882 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2883
2884         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2885         instead of <Emchar_dynarr *> for buf; use
2886         `convert_bufbyte_string_into_charc_dynarr' instead of
2887         `convert_bufbyte_string_into_emchar_dynarr'; use
2888         `find_charsets_in_charc_string' instead of
2889         `find_charsets_in_emchar_string'.
2890
2891         * redisplay.h:
2892         - Include "character.h".
2893         (struct rune): New member `cglyph'; delete member `chr'.
2894
2895         * redisplay.c (redisplay_text_width_charc_string): New function;
2896         delete `redisplay_text_width_emchar_string'.
2897         (rtw_charc_dynarr): New variable; renamed from
2898         `rtw_emchar_dynarr'.
2899         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2900         `rtw_emchar_dynarr'; use
2901         `convert_bufbyte_string_into_charc_dynarr' instead of
2902         `convert_bufbyte_string_into_emchar_dynarr'; use
2903         `redisplay_text_width_charc_string' instead of
2904         `redisplay_text_width_emchar_string'.
2905         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2906         instead of `rtw_emchar_dynarr'; use
2907         `convert_bufbyte_string_into_charc_dynarr' instead of
2908         `convert_bufbyte_string_into_emchar_dynarr'.
2909         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2910         `redisplay_text_width_charc_string' instead of
2911         `redisplay_text_width_emchar_string'.
2912         (create_text_block): Modify for <struct rune> change.
2913         (generate_formatted_string_db): Likewise.
2914         (create_string_text_block): Likewise.
2915         (pixel_to_glyph_translation): Likewise.
2916
2917         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2918         instead of <const Emchar *>.
2919         (x_text_width): Likewise.
2920         (x_output_display_block): Use <Charc_dynarr *> instead
2921         <Emchar_dynarr *>; modify for <structure rune> change.
2922         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2923         *>.
2924
2925         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2926         <const Emchar *>; use `charc_string_displayed_columns' instead of
2927         `emchar_string_displayed_columns'.
2928         (tty_output_display_block): Use <Charc_dynarr *> instead of
2929         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2930         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2931         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2932         `tty_output_emchar_dynarr_dynarr'.
2933         (tty_output_charc_dynarr): New function; delete
2934         `tty_output_charc_dynarr'.
2935
2936         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2937         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2938         <Emchar_dynarr *> for buf; use
2939         `convert_bufbyte_string_into_charc_dynarr' instead of
2940         `convert_bufbyte_string_into_emchar_dynarr'.
2941
2942         * frame.c (title_string_charc_dynarr): New variable; renamed from
2943         `title_string_emchar_dynarr'.
2944         (generate_title_string): Use `title_string_charc_dynarr' instead
2945         of `title_string_emchar_dynarr'; use
2946         `convert_charc_string_into_malloced_string' instead of
2947         `convert_emchar_string_into_malloced_string'.
2948         (init_frame): Use `title_string_charc_dynarr' instead of
2949         `title_string_emchar_dynarr'.
2950
2951         * console.h:
2952         - Include "character.h".
2953         (struct console_methods): Use <const Charc *> instead of <const
2954         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2955         <Emchar_dynarr *> in output_string_method.
2956
2957         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2958         <Emchar_dynarr *>.
2959
2960         * console-stream.c (stream_text_width): Use <const Charc *>
2961         instead of <const Emchar *>.
2962
2963         * character.h (Charc_dynarr): New type.
2964
2965         * char-ucs.h (structure Charc): New structure; define new type
2966         `Charc'.
2967
2968         * char-lb.h (DECODE_CHAR): New inline function.
2969         (encode_char_1): New inline function.
2970         (ENCODE_CHAR): New macro.
2971         (structure Charc): New structure; define new type `Charc'.
2972
2973         * char-1byte.h (Vcharset_control_1): New macro.
2974         (Vcharset_latin_iso8859_1): New macro.
2975         (DECODE_CHAR): New inline function.
2976         (encode_char_1): New inline function.
2977         (ENCODE_CHAR): New macro.
2978         (structure Charc): New structure; define new type `Charc'.
2979
2980         * insdel.c (find_charsets_in_charc_string): New function; delete
2981         `find_charsets_in_emchar_string'.
2982         (charc_string_displayed_columns): New function; delete
2983         `emchar_string_displayed_columns'.
2984         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2985         `convert_bufbyte_string_into_emchar_dynarr'.
2986         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2987         `convert_charc_string_into_bufbyte_dynarr'.
2988         (convert_charc_string_into_malloced_string): New function; delete
2989         `convert_charc_string_into_malloced_string'.
2990
2991         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2992         `find_charsets_in_emchar_string'.
2993         (charc_string_displayed_columns): New prototype; delete
2994         `emchar_string_displayed_columns'.
2995         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2996         `convert_charc_string_into_bufbyte_dynarr'.
2997         (convert_charc_string_into_malloced_string): New prototype; delete
2998         `convert_charc_string_into_malloced_string'.
2999
3000 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3001
3002         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3003
3004 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3005
3006         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3007
3008         * char-ucs.h: Use <short> for <Charset_ID>.
3009
3010         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3011         <Charset_ID>.
3012
3013 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3014
3015         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3016         to 0.16.
3017
3018 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3019
3020         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3021         variable.
3022         (Qmorohashi_daikanwa): New variable.
3023         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3024         for `morohashi-daikanwa' attribute.
3025         (Fget_char_attribute): Likewise.
3026         (Fput_char_attribute): Likewise.
3027         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3028         has the same value of `ideograph-daikanwa'.
3029         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3030         (vars_of_mule_charset): Setup
3031         `Vcharacter_morohashi_daikanwa_table'.
3032
3033 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3034
3035         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3036         attributes.
3037         (add_charset_to_list_mapper): Add `key' instead of
3038         `XCHARSET_NAME (value)' to return aliases.
3039
3040 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3041
3042         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3043         variable.
3044         (Vcharacter_ideographic_strokes_table): New variable.
3045         (Qideographic_radical): New variable.
3046         (Qideographic_strokes): New variable.
3047         (Fchar_attribute_alist): Use
3048         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3049         attribute; use `Vcharacter_ideographic_strokes_table' for
3050         `ideographic-strokes' attribute.
3051         (Fget_char_attribute): Likewise.
3052         (Fput_char_attribute): Likewise.
3053         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3054         `ideographic-strokes'.
3055         (vars_of_mule_charset): Setup
3056         `Vcharacter_ideographic_radical_table' and
3057         `Vcharacter_ideographic_strokes_table'.
3058
3059 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3060
3061         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3062         (Qtotal_strokes): New variable.
3063         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3064         `total-strokes' attribute.
3065         (Fget_char_attribute): Likewise.
3066         (Fput_char_attribute): Likewise.
3067         (syms_of_mule_charset): Add new symbol `total-strokes'.
3068         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3069
3070 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3071
3072         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3073         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3074         are found.
3075         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3076         `->decomposition' attribute.
3077         (Fput_char_attribute): Likewise.
3078         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3079
3080 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3081
3082         * mule-charset.c (decoding_table_check_elements): New function.
3083         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3084
3085 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3086
3087         * mule-charset.c (Fset_charset_mapping_table): Use
3088         `put_char_ccs_code_point'.
3089
3090 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3091
3092         * mule-charset.c (decoding_table_put_char): New inline function.
3093         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3094
3095 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3096
3097         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3098         (XCHARSET_BYTE_SIZE): New macro.
3099         (decoding_table_remove_char): New inline function.
3100         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3101         `decoding_table_remove_char'.
3102         (remove_char_ccs): Use `decoding_table_remove_char'.
3103         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3104
3105 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3106
3107         * mule-charset.c (Vcharacter_name_table): New variable.
3108         (Qname): New variable.
3109         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3110         attribute.
3111         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3112         `Vcharacter_name_table' for `name' attribute.
3113         (Fremove_char_attribute): Use function `remove_char_ccs'.
3114         (put_char_ccs_code_point): New function.
3115         (remove_char_ccs): New function.
3116         (syms_of_mule_charset): Add new symbol `name'.
3117         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3118
3119 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3120
3121         * mule-charset.c (make_byte_table): Add new argument `older'.
3122         (make_char_id_table): Likewise.
3123         (copy_char_id_table): Comment out because it is not used.
3124         (put_char_id_table): Modify for `make_byte_table'.
3125         (Fput_char_attribute): Make encoding_table as older object;
3126         inherit older bit of `Vcharacter_composition_table'.
3127         (mark_charset): Don't mark `cs->encoding_table'.
3128         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3129         normal object; make `Vcharacter_composition_table' as an older
3130         object; delete staticpro for `Vcharacter_composition_table'; make
3131         `Vcharacter_variant_table' as a normal object.
3132
3133         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3134         (mark_object): Don't check older object in UTF-2000.
3135
3136         * lrecord.h (struct lrecord_header): Add new member `older' in
3137         UTF-2000.
3138         (set_lheader_implementation): Setup `SLI_header->older' in
3139         UTF-2000.
3140         (set_lheader_older_implementation): New macro in UTF-2000.
3141         (OLDER_RECORD_P): New macro in UTF-2000.
3142         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3143         (alloc_older_lcrecord): New prototype in UTF-2000.
3144         (alloc_older_lcrecord_type): New macro in UTF-2000.
3145
3146 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3147
3148         * mule-charset.c (byte_table_description): Use
3149         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3150         (char_id_table_description): Delete bogus `, 1'.
3151         (Fget_char_attribute): Refer encoding_table of each coded-charset
3152         to get value of coded-charset attribute of a character.
3153         (Fput_char_attribute): Use `make_older_vector' instead of
3154         `make_vector'; use encoding_table of each coded-charset to store
3155         value of coded-charset attribute of a character.
3156         (Fremove_char_attribute): Use encoding_table of each coded-charset
3157         to store value of coded-charset attribute of a character.
3158         (mark_charset): Mark `cs->encoding_table'; don't mark
3159         `cs->decoding_table'.
3160         (charset_description): Add description of new member
3161         `encoding_table'.
3162         (make_charset): Initialize `encoding_table'.
3163
3164         * char-ucs.h (struct Lisp_Charset): Add new member
3165         `encoding_table'.
3166         (CHARSET_ENCODING_TABLE): New macro.
3167         (XCHARSET_ENCODING_TABLE): New macro.
3168         (charset_code_point): New implementation.
3169         (encode_char_1): Likewise.
3170
3171         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3172         (disksave_object_finalization_1): Call finalizers of
3173         `all_older_lcrecords' in UTF-2000.
3174         (make_older_vector): New function in UTF-2000.
3175         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3176         UTF-2000.
3177
3178         * lisp.h (make_older_vector): New prototype in UTF-2000.
3179
3180 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3181
3182         * lrecord.h (enum lrecord_type): Rename
3183         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3184
3185         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3186         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3187         `get_char_code_table'.
3188
3189         * mule-charset.c (mark_char_id_table): Renamed from
3190         `mark_char_code_table'.
3191         (char_id_table_equal): Renamed from `char_code_table_equal'.
3192         (char_id_table_hash): Renamed from `char_code_table_hash'.
3193         (make_char_id_table): Renamed from `make_char_code_table'.
3194         (copy_char_id_table): Renamed from `copy_char_code_table'.
3195         (get_char_id_table): Renamed from `get_char_code_table'.
3196         (put_char_id_table): Renamed from `put_char_code_table'.
3197         (to_char_id): Renamed from `to_char_code'.
3198
3199         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3200         `Lisp_Char_Code_Table'.
3201         (char_id_table): Renamed from `char_code_table'.
3202         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3203         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3204         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3205         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3206         (get_char_id_table): Renamed from `get_char_code_table'.
3207
3208 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3209
3210         * lrecord.h (enum lrecord_type): Rename
3211         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3212
3213         * mule-charset.c (mark_byte_table): Renamed from
3214         `mark_char_byte_table'.
3215         (byte_table_equal): Renamed from `char_byte_table_equal'.
3216         (byte_table_hash): Renamed from `byte_table_hash'.
3217         (make_byte_table): Renamed from `make_byte_table'.
3218         (copy_byte_table): Renamed from `copy_char_byte_table'.
3219
3220         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3221         `Lisp_Char_Byte_Table'.
3222         (byte_table): Renamed from `char_byte_table'.
3223         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3224         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3225         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3226         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3227
3228 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3229
3230         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3231         (dfc_convert_to_internal_format): Likewise.
3232         
3233         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3234         * text-coding.c (Fcoding_system_alias_p): New function.
3235         * text-coding.c (Fcoding_system_aliasee): New function.
3236         * text-coding.c (append_suffix_to_symbol): New function.
3237         * text-coding.c (dangling_coding_system_alias_p): New function.
3238         * text-coding.c (Ffind_coding_system):
3239         * text-coding.c (Fcopy_coding_system):
3240         * text-coding.c (encode_coding_no_conversion):
3241         * text-coding.c (syms_of_file_coding):
3242         * text-coding.c (vars_of_file_coding):
3243         Rewrite coding system alias code.
3244         Allow nested aliases, like symbolic links.
3245         Allow redefinition of coding system aliases.
3246         Prevent existence of dangling coding system aliases.
3247         Eliminate convert_to_external_format.
3248         Eliminate convert_to_internal_format.
3249         
3250         * text-coding.c: Change enum eol_type to eol_type_t.
3251
3252 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3253
3254         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3255         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3256
3257         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3258         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3259
3260 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3261
3262         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3263         `ideograph-daikanwa'.
3264
3265         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3266         (Vcharset_ucs_bmp): Likewise.
3267         (Vcharset_mojikyo): Add new extern variable definition.
3268         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3269         (Vcharset_latin_iso8859_3): Likewise.
3270         (Vcharset_latin_iso8859_4): Likewise.
3271         (Vcharset_latin_iso8859_9): Likewise.
3272         (Vcharset_latin_viscii_lower): Likewise.
3273         (Vcharset_latin_viscii_upper): Likewise.
3274         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3275         `mojikyo' code-point is used to decode.
3276         (encode_char_2): New function [to convert `mojikyo' code-point to
3277         Mojikyo font encoding].
3278         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3279         (breakup_char_1): Likewise.
3280         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3281
3282 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3283
3284         * text-coding.c (Fmake_coding_system): Add document about
3285         `disable-composition' property.
3286
3287 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3288
3289         * text-coding.c (Qdisable_composition): New variable; delete
3290         `Qcomposite'.
3291         (Fmake_coding_system): Add new property `disable-composite';
3292         delete property `composite'.
3293         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3294         instead of `!CODING_SYSTEM_COMPOSITE'.
3295         (syms_of_file_coding): Add new symbol `disable-composition';
3296         delete symbol `composite'.
3297
3298         * file-coding.h (struct Lisp_Coding_System): Add
3299         `disable_composition'; delete `enable_composition'.
3300         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3301         `CODING_SYSTEM_COMPOSITE'.
3302         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3303         `XCODING_SYSTEM_COMPOSITE'.
3304
3305 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3306
3307         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3308         to 0.15.
3309
3310 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3311
3312         * text-coding.c (Qcomposite): New variable.
3313         (Fmake_coding_system): Add new property `composite'.
3314         (struct decoding_stream): Add `combined_char_count',
3315         `combined_chars' and `combining_table' in UTF-2000.
3316         (COMPOSE_FLUSH_CHARS): New macro.
3317         (COMPOSE_ADD_CHAR): New macro.
3318         (reset_decoding_stream): Reset `str->combined_char_count' and
3319         `str->combining_table' in UTF-2000.
3320         (decode_coding_iso2022): Modify for character-decomposition.
3321         (syms_of_file_coding): Add new symbol `composite'.
3322
3323 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3324
3325         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3326         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3327         of `Vcharacter_composition_table' if `->decomposition' property
3328         has only 1 element.
3329         (Qlatin_tcvn5712): New variable.
3330         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3331         (complex_vars_of_mule_charset): Add new coded-charset
3332         `latin-tcvn5712'.
3333
3334         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3335
3336 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3337
3338         * file-coding.h (struct Lisp_Coding_System): Add
3339         `enable_composition'.
3340         (CODING_SYSTEM_COMPOSITE): New macro.
3341         (XCODING_SYSTEM_COMPOSITE): New macro.
3342
3343 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3344
3345         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3346
3347 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3348
3349         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3350         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3351
3352 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3353
3354         * mule-charset.c (Vcharset_mojikyo): New variable.
3355         (Fdefine_char): Don't use coded-charset which does not have
3356         non-builtin character range to allocate character-id.
3357         (Qmojikyo): New variable.
3358         (syms_of_mule_charset): Add new symbol `mojikyo'.
3359         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3360
3361         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3362         (LEADING_BYTE_MOJIKYO): New macro.
3363         (MIN_CHAR_MOJIKYO): New macro.
3364         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3365         (MAX_CHAR_MOJIKYO): New macro.
3366
3367 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3368
3369         * mule-charset.c (remove_char_attribute): Fixed.
3370
3371 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3372
3373         * mule-charset.c (remove_char_attribute): New function.
3374         (Fremove_char_attribute): New function.
3375         (encode_builtin_char_1): Comment out builtin-support for
3376         greek-iso8859-7 and cyrillic-iso8859-5.
3377         (Fdecode_char): Check `code' is an integer.
3378         (syms_of_mule_charset): Add `remove-char-attribute'.
3379         (MIN_CHAR_GREEK): Deleted.
3380         (MAX_CHAR_GREEK): Likewise.
3381         (MIN_CHAR_CYRILLIC): Likewise.
3382         (MAX_CHAR_CYRILLIC): Likewise.
3383         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3384         MAX_CHAR_GREEK for `greek-iso8859-7'.
3385
3386         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3387         (MAX_CHAR_GREEK): Likewise.
3388         (MIN_CHAR_CYRILLIC): Likewise.
3389         (MAX_CHAR_CYRILLIC): Likewise.
3390
3391 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3392
3393         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3394         format is used without `ucs' property.
3395         (Fdecode_char): Fix problem with GR representation.
3396         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3397         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3398
3399 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3400
3401         * mule-charset.c (make_builtin_char): New function.
3402         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3403         (Fset_charset_mapping_table): Modify for new representation of
3404         code-point.
3405         (Fdecode_char): New function.
3406         (syms_of_mule_charset): Add new builtin function `decode-char' in
3407         UTF-2000.
3408
3409         * char-ucs.h (make_builtin_char): New prototype.
3410         (DECODE_CHAR): New inline function.
3411         (MAKE_CHAR): Use `DECODE_CHAR'.
3412
3413 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3414
3415         * text-coding.c (parse_charset_conversion_specs): Use
3416         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3417         `XCHARSET_TYPE'.
3418         (iso2022_designate): Likewise.
3419
3420         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3421         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3422
3423         * mule-charset.c (Vcharset_ucs): New variable.
3424         (print_charset): Change design; use `CHARSET_CHARS' and
3425         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3426         (make_charset): Change signature to specify `chars' and
3427         `dimension' instead of `type'.
3428         (range_charset_code_point): Modify for 256^n-set.
3429         (encode_builtin_char_1): Encode as `ucs' in default.
3430         (Fmake_charset): Modify for `make_charset'.
3431         (Fmake_reverse_direction_charset): Likewise.
3432         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3433         UTF-2000.
3434         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3435         for `make_charset'.
3436
3437         * char-ucs.h (Vcharset_ucs): New variable.
3438         (LEADING_BYTE_UCS): New macro.
3439         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3440         and `chars' to `unsigned short' from `unsigned int'.
3441         (CHARSET_TYPE): Deleted.
3442         (XCHARSET_TYPE): Deleted.
3443
3444 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3445
3446         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3447
3448         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3449         (ENCODE_CHAR): New macro.
3450
3451 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3452
3453         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3454         to 0.14 (Kawachi-Katakami).
3455
3456 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3457
3458         * text-coding.c (char_encode_shift_jis): Modify for
3459         `charset_code_point'.
3460         (char_encode_iso2022): Likewise.
3461
3462         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3463         (integer) instead of list of <Lisp_Object>s (integers) as the
3464         format of code-point of a coded-charset.
3465         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3466         (encode_builtin_char_1): New function; delete
3467         `split_builtin_char'.
3468         (charset_code_point): Return <int> instead of <Lisp_Object>.
3469         (Fsplit_char): Don't use `SPLIT_CHAR'.
3470
3471         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3472         prototype for `split_builtin_char'.
3473         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3474         (charset_code_point): Likewise.
3475         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3476         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3477
3478 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3479
3480         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3481         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3482
3483 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3484
3485         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3486
3487         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3488         (MAX_CHAR_OBS_94x94): Deleted.
3489
3490 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3491
3492         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3493
3494         * char-ucs.h (MAX_CHAR_BMP): New macro.
3495
3496 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3497
3498         * text-coding.c: Sync with r21-2-24.
3499
3500 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3501
3502         * file-coding.c: Modify for UTF-2000.
3503
3504 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3505
3506         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3507         to 0.13 (Takaida).
3508
3509 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3510
3511         * mule-charset.c (split_builtin_char): Delete builtin support for
3512         `katakana-jisx0201'.
3513         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3514         BMP area in builtin representation.
3515
3516         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3517         `Vcharset_katakana_jisx0201'.
3518
3519 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3520
3521         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3522         (Qisolated): New variable.
3523         (Qinitial): New variable.
3524         (Qmedial): New variable.
3525         (Qfinal): New variable.
3526         (Qvertical): New variable.
3527         (Qsmall): New variable.
3528         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3529         `Qvertical' and `Qsmall'.
3530         (Qmojikyo_pj_[1 .. 21]): New variable.
3531         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3532         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3533         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3534         .. 21]'.
3535
3536 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3537
3538         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3539         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3540         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3541
3542 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3543
3544         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3545         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3546         BMP.
3547         (Qjapanese_jisx0208_1990): New variable.
3548         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3549         (complex_vars_of_mule_charset): Add new coded-charset
3550         `japanese-jisx0208-1990'.
3551
3552         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3553         (MIN_CHAR_JIS_X0208_1990): New macro.
3554         (MAX_CHAR_JIS_X0208_1990): New macro.
3555
3556 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3557
3558         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3559         coded-charset is not found.
3560
3561 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3562
3563         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3564         (Fdefine_char): Use `Fmake_char'.
3565
3566 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3567
3568         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3569         (Vcharset_hiragana_jisx0208): Deleted.
3570         (Vcharset_katakana_jisx0208): Deleted.
3571         (Qideograph_daikanwa): New variable.
3572         (Qhiragana_jisx0208): Deleted.
3573         (Qkatakana_jisx0208): Deleted.
3574         (split_builtin_char): Split `ideograph-daikanwa'.
3575         (Fsplit_char): New implementation for UTF-2000.
3576         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3577         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3578         (complex_vars_of_mule_charset): Add new coded-charset
3579         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3580         `katakana-jisx0208'.
3581
3582         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3583         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3584         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3585         (MIN_CHAR_DAIKANWA): New macro.
3586         (MAX_CHAR_DAIKANWA): New macro.
3587
3588 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3589
3590         * data.c (Fstring_to_number): Don't recognize floating point if
3591         base is not 10.
3592
3593 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3594
3595         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3596
3597 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3598
3599         * mule-charset.c (Qsquare): New variable.
3600         (to_char_code): Add `Qsquare'.
3601         (syms_of_mule_charset): Add new symbol `square'.
3602
3603 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3604
3605         * mule-charset.c (Qcircle): New variable.
3606         (to_char_code): Add `Qcircle'.
3607         (syms_of_mule_charset): Add new symbol `circle'.
3608
3609 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3610
3611         * mule-charset.c (Qfont): New variable.
3612         (to_char_code): Add `Qfont'.
3613         (syms_of_mule_charset): Add new symbol `font'.
3614
3615 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3616
3617         * mule-charset.c (Qsub): New variable.
3618         (to_char_code): Add `Qsub'.
3619         (syms_of_mule_charset): Add new symbol `sub'.
3620
3621 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3622
3623         * mule-charset.c (Fput_char_attribute): Convert each element of
3624         VALUE to GL position if ATTRIBUTE is a GR-set,
3625
3626 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3627
3628         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3629         coded-charset is a GR-set.
3630
3631 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3632
3633         * mule-charset.c (Fput_char_attribute): Check each element of
3634         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3635
3636 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3637
3638         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3639         UTF-2000.
3640         (Qethiopic_ucs): New variable in UTF-2000.
3641         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3642         (complex_vars_of_mule_charset): Add new coded-charset
3643         `ethiopic-ucs' in UTF-2000.
3644
3645         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3646         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3647         9)'.
3648         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3649         10)'.
3650         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3651
3652 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3653
3654         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3655         `ascii'.
3656
3657 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3658
3659         * mule-charset.c (Vcharacter_variant_table): New variable.
3660         (Q_ucs): New variable.
3661         (Fchar_variants): New function.
3662         (Fput_char_attribute): Register `->ucs' value to
3663         `Vcharacter_variant_table'.
3664         (syms_of_mule_charset): Add new function `char-variants' and new
3665         symbol `->ucs'.
3666         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3667
3668 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3669
3670         * mule-charset.c (get_char_code_table): Allow negative character
3671         code.
3672         (put_char_code_table): Likewise.
3673         (Vcharacter_composition_table): New variable.
3674         (Q_decomposition): New variable.
3675         (Qwide): New variable.
3676         (Qnarrow): New variable.
3677         (Qcompat): New variable.
3678         (QnoBreak): New variable.
3679         (Qsuper): New variable.
3680         (Qfraction): New variable.
3681         (to_char_code): New function.
3682         (Fget_composite_char): New function.
3683         (Fput_char_attribute): Register `->decomposition' value to
3684         `Vcharacter_composition_table'.
3685         (syms_of_mule_charset): Add new function `get-composite-char', new
3686         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3687         `super' and `fraction'.
3688         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3689
3690 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3691
3692         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3693         character; copy the return value.
3694
3695 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3696
3697         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3698
3699         * mule-charset.c (range_charset_code_point): Must use make_int.
3700         (split_builtin_char): New function.
3701
3702 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3703
3704         * mule-charset.c (char_byte_table): Change name from
3705         "char-code-table" to "char-byte-table".
3706         (mark_char_code_table): New function.
3707         (char_code_table_equal): New function.
3708         (char_code_table_hash): New function.
3709         (char_code_table_description): New constant.
3710         (char_code_table): New type.
3711         (make_char_code_table): New function.
3712         (copy_char_code_table): New function.
3713         (get_char_code_table): Modify for `char_code_table' type.
3714         (put_char_code_table): Likewise.
3715         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3716         (Kashiwara).
3717
3718         * char-ucs.h (char_code_table): New type.
3719         (XCHAR_CODE_TABLE): New macro.
3720         (XSETCHAR_CODE_TABLE): New macro.
3721         (CHAR_CODE_TABLE_P): New macro.
3722         (GC_CHAR_CODE_TABLE_P): New macro.
3723         (struct Lisp_Char_Code_Table): New structure.
3724
3725 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3726
3727         * mule-charset.c (Fmake_charset): Setup byte_offset for
3728         {94|96}^n-set.
3729
3730 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3731
3732         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3733         character.
3734
3735 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3736
3737         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3738         is found.
3739
3740 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3741
3742         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3743         charset, it is regarded as a charset.
3744         (put_char_attribute): New function in UTF-2000.
3745         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3746         charset, mapping-table of the charset is modified.
3747         (Fdefine_char): New function in UTF-2000.
3748         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3749         `Fput_char_attribute'.
3750         (syms_of_mule_charset): Add new function `define-char' and new
3751         symbol `ucs' in UTF-2000.
3752         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3753
3754 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3755
3756         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3757         non-UTF-2000 configuration.
3758
3759 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3760
3761         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3762         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3763
3764         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3765         deleted.
3766         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3767         (Fset_charset_mapping_table): Likewise.
3768
3769         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3770         (CHARSET_ENCODING_TABLE): Delete.
3771         (XCHARSET_ENCODING_TABLE): Delete.
3772         (charset_code_point): New interface.
3773
3774 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3775
3776         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3777         instead of `charset_get_byte1' and `charset_get_byte2'.
3778
3779         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3780         (charset_get_byte2): Deleted.
3781
3782 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3783
3784         * char-ucs.h (SPLIT_CHAR): New inline function.
3785         (breakup_char_1): Use `SPLIT_CHAR'.
3786
3787         * mule-charset.c (range_charset_code_point): New function.
3788         (charset_code_point): New function.
3789
3790         * char-ucs.h (range_charset_code_point): New interface.
3791         (breakup_char_1): Use `range_charset_code_point'.
3792
3793 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3794
3795         * mule-charset.c (Fmake_charset): Delete unused local variable
3796         `code_offset'.
3797
3798         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3799         (breakup_char_1): Find a charset and code-point in
3800         `Vcharacter_attribute_table'.
3801
3802 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3803
3804         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3805         to 0.10 (Yao).
3806
3807 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3808
3809         * mule-charset.c (Vcharacter_attribute_table): New variable.
3810         (Fchar_attribute_alist): New function.
3811         (Fget_char_attribute): New function.
3812         (Fput_char_attribute): New function.
3813         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3814         too.
3815         (syms_of_mule_charset): Add new function `char-attribute-alist',
3816         `get-char-attribute' and `put-char-attribute'.
3817         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3818
3819 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3820
3821         * mule-charset.c (Fmake_charset): Just use
3822         `get_unallocated_leading_byte'.
3823
3824         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3825         sets; don't use final-byte based number for private sets.
3826
3827 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3828
3829         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3830         integer.
3831
3832 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3833
3834         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3835         to 0.9.
3836
3837 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3838
3839         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3840         of `CHAR_LEADING_BYTE' in UTF-2000.
3841
3842         * insdel.c (find_charsets_in_bufbyte_string): Use
3843         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3844         (find_charsets_in_emchar_string): Likewise.
3845
3846         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3847         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3848
3849         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3850         (CHAR_CHARSET_ID): New macro.
3851
3852 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3853
3854         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3855         charset-id - MIN_LEADING_BYTE.
3856         (put_char_table): Likewise.
3857
3858 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3859
3860         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3861         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3862         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3863         (CHARSET_ID_OFFSET): New macro.
3864         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3865         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3866         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3867         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3868         4).
3869         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3870         5).
3871         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3872         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3873         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3874         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3875         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3876
3877 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3878
3879         * mule-charset.c (next_allocated_leading_byte): New variable in
3880         UTF-2000.
3881         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3882         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3883         (get_unallocated_leading_byte): Simply use
3884         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3885         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3886         UTF-2000.
3887
3888         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3889         (MAX_LEADING_BYTE_PRIVATE): New macro.
3890         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3891         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3892
3893 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3894
3895         * mule-charset.c (Fmake_charset): Allocate final-byte based
3896         charset-id for 94-set, 96-set and 94x94-set.
3897
3898 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3899
3900         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3901         ambiguous `else'.
3902         (Fmake_charset): Likewise.
3903         (complex_vars_of_mule_charset): Modify the font registry of
3904         `ucs-bmp' not to match `Ethiopic-Unicode'.
3905
3906 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3907
3908         * mule-charset.c (complex_vars_of_mule_charset): Add font
3909         registory of `ucs-bmp'.
3910
3911 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3912
3913         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3914         coded-charsets in `default-coded-charset-priority-list' when
3915         breaking up a character.
3916
3917         * mule-charset.c (Vcharset_latin_viscii): New variable.
3918         (Qlatin_viscii): New variable.
3919         (make_charset): Don't use `decoding_table'.
3920         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3921         byte_offset.
3922         (Fset_charset_mapping_table): New implementation.
3923         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3924         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3925         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3926         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3927         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3928         charset `latin_viscii'.
3929
3930         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3931         (CHARSET_TYPE_94X94): Change to 1 from 2.
3932         (CHARSET_TYPE_96): Change to 2 from 1.
3933         (CHARSET_TYPE_128): New macro.
3934         (CHARSET_TYPE_128X128): Change to 5 from 4.
3935         (CHARSET_TYPE_256): New macro.
3936         (CHARSET_TYPE_256X256): Change to 7 from 5.
3937         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3938
3939 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3940
3941         * text-coding.c (char_encode_shift_jis): Refer
3942         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3943         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3944
3945         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3946         (char_byte_table_equal): New function in UTF-2000.
3947         (char_byte_table_hash): New function in UTF-2000.
3948         (char_byte_table_description): New constant in UTF-2000.
3949         (char_byte_table): New type in UTF-2000.
3950         (make_char_byte_table): New function in UTF-2000.
3951         (copy_char_byte_table): New function in UTF-2000.
3952         (make_char_code_table): New macro in UTF-2000.
3953         (get_char_code_table): New function in UTF-2000.
3954         (put_char_code_table): New function in UTF-2000.
3955         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3956         (charset_description): Add setting in UTF-2000.
3957         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3958         `CHARSET_TO_BYTE1_TABLE(cs)'.
3959         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3960         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3961         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3962         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3963         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3964         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3965         `CHARSET_TO_BYTE2_TABLE(cs)'.
3966
3967         * char-ucs.h (char_byte_table): New type.
3968         (XCHAR_BYTE_TABLE): New macro.
3969         (XSETCHAR_BYTE_TABLE): New macro.
3970         (CHAR_BYTE_TABLE_P): New macro.
3971         (GC_CHAR_BYTE_TABLE_P): New macro.
3972         (struct Lisp_Char_Byte_Table): New structure.
3973         (get_char_code_table): New interface.
3974         (Emchar_to_byte_table): Deleted.
3975         (get_byte_from_character_table): Deleted.
3976         (struct Lisp_Charset): Add `encoding_table'; delete
3977         `to_byte1_table' and `to_byte2_table'.
3978         (CHARSET_ENCODING_TABLE): New macro.
3979         (CHARSET_TO_BYTE1_TABLE): Deleted.
3980         (CHARSET_TO_BYTE2_TABLE): Deleted.
3981         (XCHARSET_ENCODING_TABLE): New macro.
3982         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3983         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3984
3985 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3986
3987         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3988         `vietnamese-viscii-*'.
3989
3990 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3991
3992         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3993         (Qvietnamese_viscii_upper): New variable.
3994         (Fdefine_charset_alias): New function.
3995         (syms_of_mule_charset): Add new function `define-charset-alias'.
3996         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3997         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3998         `latin-viscii-*'.
3999
4000 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4001
4002         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4003         (MAX_CHAR_OBS_94x94): New macro.
4004         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4005         for 94x94 sets.
4006
4007         * mule-charset.c (put_byte_from_character_table): Change unit size
4008         from 128 to 256.
4009         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4010         not defined.
4011         (Fmake_reverse_direction_charset): Modify dummy argument of
4012         `make_charset' for non-UTF-2000 environment.
4013
4014 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4015
4016         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4017
4018         * mule-charset.c (destroy_byte_from_character_table): New macro.
4019         (latin_jisx0201_to_ucs): Deleted.
4020         (latin_iso8859_2_to_ucs): Deleted.
4021         (latin_iso8859_3_to_ucs): Deleted.
4022         (latin_iso8859_4_to_ucs): Deleted.
4023         (latin_iso8859_9_to_ucs): Deleted.
4024         (latin_viscii_lower_to_ucs): Deleted.
4025         (latin_viscii_upper_to_ucs): Deleted.
4026         (mark_charset): Mark `cs->decoding_table'.
4027         (Fcharset_mapping_table): Fix DOC-string.
4028         (Fset_charset_mapping_table): New function.
4029         (syms_of_mule_charset): Add nwe function
4030         `set-charset-mapping-table'.
4031         (complex_vars_of_mule_charset): Don't setup and use
4032         `latin_*_to_ucs'.
4033
4034 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4035
4036         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4037         charset.
4038
4039 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4040
4041         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4042         (Vcharset_katakana_jisx0208): New variable.
4043         (Qhiragana_jisx0208): New variable.
4044         (Qkatakana_jisx0208): New variable.
4045         (make_charset): Add new argument `byte_offset'.
4046         (charset_get_byte1): Modify for new coded-charset definition; use
4047         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4048         `XCHARSET_BYTE_OFFSET'.
4049         (Fmake_charset): Modify for `make_charset'.
4050         (Fmake_reverse_direction_charset): Likewise.
4051         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4052         `katakana-jisx0208'.
4053         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4054         `.'  in font registry of charset `katakana-jisx0201',
4055         `latin-jisx0201', `vietnamese-viscii-lower' and
4056         `vietnamese-viscii-upper'; modify DOC-string of charset
4057         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4058         registry of charset `japanese-jisx0208' not to use font for JIS
4059         X0208:1990; add new charset `hiragana-jisx0208' and
4060         `katakana-jisx0208'.
4061
4062         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4063         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4064         (struct Lisp_Charset): Add `byte_offset'.
4065         (CHARSET_BYTE_OFFSET): New macro.
4066         (XCHARSET_UCS_MIN): New macro.
4067         (XCHARSET_UCS_MAX): New macro.
4068         (XCHARSET_CODE_OFFSET): New macro.
4069         (XCHARSET_BYTE_OFFSET): New macro.
4070         (MIN_CHAR_HIRAGANA): New macro.
4071         (MAX_CHAR_HIRAGANA): New macro.
4072         (MIN_CHAR_KATAKANA): New macro.
4073         (MAX_CHAR_KATAKANA): New macro.
4074         (MAKE_CHAR): Modify for new coded-charset definition; use
4075         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4076         `XCHARSET_BYTE_OFFSET'.
4077
4078 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4079
4080         * mule-charset.c (CHAR96): Deleted.
4081         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4082         <Lisp_Object>.
4083         (latin_iso8859_2_to_ucs): Likewise.
4084         (latin_iso8859_3_to_ucs): Likewise.
4085         (latin_iso8859_4_to_ucs): Likewise.
4086         (latin_iso8859_9_to_ucs): Likewise.
4087         (latin_viscii_lower_to_ucs): Likewise.
4088         (latin_viscii_upper_to_ucs): Likewise.
4089         (latin_tcvn5712_to_ucs): Commented out.
4090         (make_charset): Change type of argument `decoding_table' from
4091         <Emchar*> to <Lisp_Object> [vector of characters].
4092         (Fmake_charset): Modify for `make_charset'.
4093         (Fmake_reverse_direction_charset): Likewise.
4094         (Fcharset_mapping_table): New function in UTF-2000.
4095         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4096         UTF-2000.
4097         (complex_vars_of_mule_charset): Modify for type change of
4098         `*_to_ucs'; modify for `make_charset'.
4099
4100         * char-ucs.h (struct Lisp_Charset): Change type of
4101         `decoding_table' from <Emchar*> to <Lisp_Object>.
4102         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4103
4104 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4105
4106         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4107         error with non-UTF-2000-Mule.
4108
4109 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4110
4111         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4112         in lisp again].
4113         (Vcharset_chinese_cns11643_4): Likewise.
4114         (Vcharset_chinese_cns11643_5): Likewise.
4115         (Vcharset_chinese_cns11643_6): Likewise.
4116         (Vcharset_chinese_cns11643_7): Likewise.
4117         (Qchinese_cns11643_3): Likewise.
4118         (Qchinese_cns11643_4): Likewise.
4119         (Qchinese_cns11643_5): Likewise.
4120         (Qchinese_cns11643_6): Likewise.
4121         (Qchinese_cns11643_7): Likewise.
4122         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4123         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4124         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4125         (complex_vars_of_mule_charset): Likewise.
4126
4127 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4128
4129         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4130         96-set.
4131         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4132         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4133
4134 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4135
4136         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4137         0xFF60.
4138         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4139         (breakup_char_1): Likewise.
4140
4141         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4142         one of them includes the specified character.
4143
4144 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4145
4146         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4147
4148 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4149
4150         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4151
4152 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4153
4154         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4155         definition for non-UTF-2000 Mule.
4156         (latin_iso8859_3_to_ucs): Likewise.
4157         (latin_iso8859_4_to_ucs): Likewise.
4158         (latin_iso8859_9_to_ucs): Likewise.
4159         (latin_jisx0201_to_ucs): Likewise.
4160         (MIN_CHAR_THAI): Likewise.
4161         (MAX_CHAR_THAI): Likewise.
4162         (MIN_CHAR_GREEK): Likewise.
4163         (MAX_CHAR_GREEK): Likewise.
4164         (MIN_CHAR_HEBREW): Likewise.
4165         (MAX_CHAR_HEBREW): Likewise.
4166         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4167         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4168         (MIN_CHAR_CYRILLIC): Likewise.
4169         (MAX_CHAR_CYRILLIC): Likewise.
4170
4171 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4172
4173         * char-ucs.h (breakup_char_1): Use
4174         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4175         thai-tis620 and katakana-jisx0201 area.
4176
4177 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4178
4179         * char-ucs.h (breakup_char_1): Use
4180         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4181         area.
4182
4183         * text-coding.c (reset_encoding_stream): Fixed.
4184         (char_encode_ucs4): Delete `& 255'.
4185
4186         * char-ucs.h (breakup_char_1): Use
4187         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4188
4189 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4190
4191         * file-coding.c (Fmake_coding_system): Don't set up
4192         `codesys->fixed.size'.
4193         (encode_coding_no_conversion): Don't refer
4194         `str->codesys->fixed.size'.
4195
4196 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4197
4198         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4199         (latin_a_char_to_byte1): Deleted.
4200         (latin_a_char_to_byte2): Deleted.
4201
4202 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4203
4204         * mule-charset.c (make_charset): Add new argument `ucs_min',
4205         `ucs_max' and `code_offset'.
4206         (charset_get_byte1): New implementation [delete specific charset
4207         depended implementations].
4208         (Fmake_charset): Modify for `make_charset'.
4209         (Fmake_reverse_direction_charset): Likewise.
4210         (complex_vars_of_mule_charset): Likewise.
4211
4212         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4213         `code_offset'.
4214         (CHARSET_UCS_MIN): New macro.
4215         (CHARSET_UCS_MAX): New macro.
4216         (CHARSET_CODE_OFFSET): New macro.
4217         (MAKE_CHAR): Delete charset depended definitions [except
4218         katakana-jisx0201].
4219
4220 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4221
4222         * char-ucs.h (breakup_char_1): Use
4223         `Vdefault_coded_charset_priority_list' for C0-Controls,
4224         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4225
4226 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4227
4228         * char-ucs.h (charset_get_byte1): New function.
4229         (XCHARSET_GET_BYTE1): Deleted.
4230         (charset_get_byte2): New function.
4231         (XCHARSET_GET_BYTE2): Deleted.
4232         (Vdefault_coded_charset_priority_list): New external variable.
4233         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4234         `Vdefault_preferred_coded_charset_list'.
4235
4236         * mule-charset.c (charset_get_byte1): New function.
4237         (charset_get_byte2): New function.
4238         (Vdefault_coded_charset_priority_list): New variable.
4239         (vars_of_mule_charset): Add new variable
4240         `default-coded-charset-priority-list'.
4241
4242 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4243
4244         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4245         (XCHARSET_GET_BYTE2): New inline function.
4246         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4247         `XCHARSET_GET_BYTE2'.
4248
4249 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4250
4251         * mule-charset.c (make_charset): Initialize
4252         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4253         NULL if table is not defined.
4254
4255 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4256
4257         * text-coding.c (char_encode_shift_jis): Use
4258         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4259         `ucs_to_latin_jisx0201'.
4260
4261         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4262         (ucs_to_latin_iso8859_2): Deleted.
4263         (ucs_to_latin_iso8859_3): Deleted.
4264         (ucs_to_latin_iso8859_4): Deleted.
4265         (ucs_to_latin_iso8859_9): Deleted.
4266         (ucs_to_latin_viscii_lower): Deleted.
4267         (ucs_to_latin_viscii_upper): Deleted.
4268         (ucs_to_latin_tcvn5712): Deleted.
4269         (make_charset): Add new argument `decoding_table'; set up
4270         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4271         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4272         `decoding_table' is defined in UTF-2000.
4273         (Fmake_charset): Modify for `make_charset'.
4274         (Fmake_reverse_direction_charset): Likewise.
4275         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4276         and `GENERATE_96_SET'.
4277
4278         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4279         (ucs_to_latin_jisx0201): Deleted.
4280         (latin_iso8859_2_to_ucs): Deleted.
4281         (ucs_to_latin_iso8859_2): Deleted.
4282         (latin_iso8859_3_to_ucs): Deleted.
4283         (ucs_to_latin_iso8859_3): Deleted.
4284         (latin_iso8859_4_to_ucs): Deleted.
4285         (ucs_to_latin_iso8859_4): Deleted.
4286         (latin_iso8859_9_to_ucs): Deleted.
4287         (ucs_to_latin_iso8859_9): Deleted.
4288         (latin_viscii_lower_to_ucs): Deleted.
4289         (ucs_to_latin_viscii_lower): Deleted.
4290         (latin_viscii_upper_to_ucs): Deleted.
4291         (ucs_to_latin_viscii_upper): Deleted.
4292         (struct Lisp_Charset): Renamed `encoding_table' to
4293         `to_byte1_table'; add `to_byte2_table'.
4294         (CHARSET_DECODING_TABLE): New macro.
4295         (CHARSET_TO_BYTE1_TABLE): New macro.
4296         (CHARSET_TO_BYTE2_TABLE): New macro.
4297         (XCHARSET_DECODING_TABLE): New macro.
4298         (XCHARSET_TO_BYTE1_TABLE): New macro.
4299         (XCHARSET_TO_BYTE2_TABLE): New macro.
4300         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4301         tables.
4302         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4303         don't use `ucs_to_*' tables.
4304
4305 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4306
4307         * text-coding.c (Fmake_coding_system): Don't set up
4308         `codesys->fixed.size'.
4309         (encode_coding_no_conversion): Use `if' instead of `switch'.
4310
4311         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4312
4313 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4314
4315         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4316         (Fmake_charset): Modify for `make_charset'.
4317         (Fmake_reverse_direction_charset): Likewise.
4318         (complex_vars_of_mule_charset): Likewise.
4319
4320 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4321
4322         * text-coding.c (char_encode_shift_jis): Use table
4323         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4324
4325 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4326
4327         * text-coding.c (text_encode_generic): Use `if' instead of
4328         `switch'.
4329         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4330         decode JIS-Latin.
4331
4332 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4333
4334         * text-coding.c (encode_coding_sjis): Deleted.
4335         (char_encode_shift_jis): New function.
4336         (char_finish_shift_jis): New function.
4337         (reset_encoding_stream): Set up `encode_char' and `finish' for
4338         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4339         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4340         (char_encode_utf8): Treat `eol_type'.
4341
4342 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4343
4344         * file-coding.c (decode_coding_iso2022): Use
4345         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4346
4347 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4348
4349         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4350         to 0.7 (Hirano).
4351
4352 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4353
4354         * char-lb.h (CHAR_COLUMNS): New macro.
4355
4356 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4357
4358         * text-coding.c (char_encode_ucs4): New function.
4359         (char_finish_ucs4): New function.
4360         (encode_coding_ucs4): Deleted.
4361         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4362         (text_encode_generic): Delete local variable `charset' and `half'.
4363         (ucs_to_mule_table): Deleted.
4364         (mule_to_ucs_table): Deleted.
4365         (Fset_ucs_char): Deleted.
4366         (ucs_to_char): Deleted.
4367         (Fucs_char): Deleted.
4368         (Fset_char_ucs): Deleted.
4369         (Fchar_ucs): Deleted.
4370         (decode_ucs4): Deleted.
4371         (mule_char_to_ucs4): Deleted.
4372         (encode_ucs4): Deleted.
4373         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4374         (decode_coding_utf8): Likewise.
4375         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4376         (char_encode_iso2022): Fixed.
4377         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4378         `Fset_char_ucs' and `Fchar_ucs'.
4379         (complex_vars_of_file_coding): Don't initialize
4380         `ucs_to_mule_table'.
4381
4382         * objects-tty.c (tty_initialize_font_instance): Don't use
4383         `XCHARSET_COLUMNS'.
4384
4385         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4386         UTF-2000.
4387
4388         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4389         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4390
4391         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4392         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4393         (emchar_string_displayed_columns): Likewise.
4394
4395         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4396         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4397         (string_column_at_point): Likewise.
4398         (Fmove_to_column): Likewise.
4399
4400         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4401         `encoding_table' and `decoding_table'.
4402         (CHARSET_REP_BYTES): Deleted.
4403         (XCHARSET_REP_BYTES): Deleted.
4404         (XCHARSET_COLUMNS): Deleted.
4405         (CHAR_COLUMNS): New macro.
4406         (lookup_composite_char): Deleted unconditionally.
4407         (composite_char_string): Likewise.
4408
4409 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4410
4411         * char-ucs.h (Emchar_to_byte_table): New type.
4412         (get_byte_from_character_table): New function interface.
4413         (Vcharset_latin_jisx0201): New variable.
4414         (latin_jisx0201_to_ucs): New variable.
4415         (ucs_to_latin_jisx0201): New variable.
4416         (Vcharset_latin_iso8859_2): New variable.
4417         (latin_iso8859_2_to_ucs): New variable.
4418         (ucs_to_latin_iso8859_2): New variable.
4419         (Vcharset_latin_iso8859_3): New variable.
4420         (latin_iso8859_3_to_ucs): New variable.
4421         (ucs_to_latin_iso8859_3): New variable.
4422         (Vcharset_latin_iso8859_4): New variable.
4423         (latin_iso8859_4_to_ucs): New variable.
4424         (ucs_to_latin_iso8859_4): New variable.
4425         (Vcharset_latin_iso8859_9): New variable.
4426         (latin_iso8859_9_to_ucs): New variable.
4427         (ucs_to_latin_iso8859_9): New variable.
4428         (Vcharset_latin_viscii_lower): New variable.
4429         (latin_viscii_lower_to_ucs): New variable.
4430         (ucs_to_latin_viscii_lower): New variable.
4431         (Vcharset_latin_viscii_upper): New variable.
4432         (latin_viscii_upper_to_ucs): New variable.
4433         (ucs_to_latin_viscii_upper): New variable.
4434         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4435         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4436         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4437         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4438         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4439         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4440         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4441         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4442         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4443         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4444
4445         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4446         (Vcharset_latin_viscii_upper): New variable.
4447         (make_byte_from_character_table): New function.
4448         (put_byte_from_character_table): New function.
4449         (get_byte_from_character_table): New function.
4450         (CHAR96): New macro.
4451         (ucs_to_latin_jisx0201): New variable.
4452         (latin_jisx0201_to_ucs): New variable.
4453         (ucs_to_latin_iso8859_2): New variable.
4454         (latin_iso8859_2_to_ucs): New variable.
4455         (ucs_to_latin_iso8859_3): New variable.
4456         (latin_iso8859_3_to_ucs): New variable.
4457         (ucs_to_latin_iso8859_4): New variable.
4458         (latin_iso8859_4_to_ucs): New variable.
4459         (ucs_to_latin_iso8859_9): New variable.
4460         (latin_iso8859_9_to_ucs): New variable.
4461         (ucs_to_latin_viscii_lower): New variable.
4462         (latin_viscii_lower_to_ucs): New variable.
4463         (ucs_to_latin_viscii_upper): New variable.
4464         (latin_viscii_upper_to_ucs): New variable.
4465         (ucs_to_latin_tcvn5712): New variable.
4466         (latin_tcvn5712_to_ucs): New variable.
4467         (Qlatin_viscii_lower): New variable.
4468         (Qlatin_viscii_upper): New variable.
4469         (syms_of_mule_charset): Set up new symbol
4470         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4471         (complex_vars_of_mule_charset): Set up new charset
4472         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4473         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4474         `ucs_to_<CHARSET>' tables.
4475
4476 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4477
4478         * text-coding.c: New file.
4479
4480 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4481
4482         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4483
4484         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4485         (MAKE_CHAR): Modify for `ucs-bmp'.
4486         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4487         non-MULE characters of BMP.
4488
4489 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4490
4491         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4492         to 0.6.
4493
4494 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4495
4496         * lstream.h:
4497         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4498         - Include character.h for `CHAR_ASCII_P'.
4499
4500         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4501
4502         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4503         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4504
4505         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4506         (BYTE_C0_P): Likewise.
4507         (BYTE_C1_P): Likewise.
4508         (Lstream_get_emchar_1): Likewise.
4509         (Lstream_fput_emchar): Likewise.
4510         (Lstream_funget_emchar): Likewise.
4511         (copy_internal_to_external): Likewise.
4512         (copy_external_to_internal): Likewise.
4513
4514         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4515         (BYTE_C0_P): Likewise.
4516         (BYTE_C1_P): Likewise.
4517         (Lstream_get_emchar_1): Likewise.
4518         (Lstream_fput_emchar): Likewise.
4519         (Lstream_funget_emchar): Likewise.
4520         (copy_internal_to_external): Likewise.
4521         (copy_external_to_internal): Likewise.
4522
4523         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4524         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4525
4526         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4527         (BYTE_ASCII_P): Moved to mb-1byte.h.
4528
4529 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4530
4531         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4532
4533         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4534         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4535         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4536         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4537         (VALIDATE_CHARPTR_FORWARD): Likewise.
4538         (simple_charptr_emchar): Moved to mb-multibyte.h.
4539         (simple_set_charptr_emchar): Likewise.
4540         (simple_charptr_copy_char): Likewise.
4541         (non_ascii_charptr_emchar): Likewise.
4542         (non_ascii_set_charptr_emchar): Likewise.
4543         (non_ascii_charptr_copy_char): Likewise.
4544         (charptr_emchar): Moved to mb-*byte.h.
4545         (set_charptr_emchar): Likewise.
4546         (charptr_copy_char): Likewise.
4547
4548         * mb-1byte.h, mb-multibyte.h: New files.
4549
4550 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4551
4552         * mb-utf-8.h (MULTIBYTE): New macro.
4553         (MAX_EMCHAR_LEN): Moved from buffer.h.
4554         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4555
4556         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4557
4558         * mb-lb.h, multibyte.h: New files.
4559
4560         * char-1byte.h (Charset_ID): Moved from buffer.h.
4561         (MIN_LEADING_BYTE): Likewise.
4562         (LEADING_BYTE_ASCII): Likewise.
4563         (NUM_LEADING_BYTES): Likewise.
4564         (CHARSETP): Likewise.
4565         (CHARSET_BY_LEADING_BYTE): Likewise.
4566         (XCHARSET_LEADING_BYTE): Likewise.
4567         (XCHARSET_GRAPHIC): Likewise.
4568         (XCHARSET_COLUMNS): Likewise.
4569         (XCHARSET_DIMENSION): Likewise.
4570         (CHAR_CHARSET): Likewise.
4571         (CHAR_LEADING_BYTE): Likewise.
4572         (BREAKUP_CHAR): Likewise.
4573         (Vcharset_ascii): Likewise.
4574
4575         * buffer.h: Include multibyte.h unconditionally.
4576         (VALID_CHARPTR_P): Moved to multibyte.h.
4577         (ASSERT_VALID_CHARPTR): Likewise.
4578         (REAL_INC_CHARPTR): Likewise.
4579         (REAL_INC_CHARBYTIND): Likewise.
4580         (REAL_DEC_CHARPTR): Likewise.
4581         (INC_CHARPTR): Likewise.
4582         (INC_CHARBYTIND): Likewise.
4583         (DEC_CHARPTR): Likewise.
4584         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4585         (VALIDATE_CHARPTR_FORWARD): Likewise.
4586         (charptr_n_addr): Likewise.
4587         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4588         (simple_charptr_emchar): Moved to multibyte.h.
4589         (simple_set_charptr_emchar): Likewise.
4590         (simple_charptr_copy_char): Likewise.
4591         (non_ascii_charptr_emchar): Likewise.
4592         (non_ascii_set_charptr_emchar): Likewise.
4593         (non_ascii_charptr_copy_char): Likewise.
4594         (charptr_emchar): Likewise.
4595         (set_charptr_emchar): Likewise.
4596         (charptr_copy_char): Likewise.
4597         (charptr_emchar_n): Likewise.
4598         (Charset_ID): Moved to char-1byte.h.
4599         (Vcharset_ascii): Likewise.
4600         (CHAR_CHARSET): Likewise.
4601         (CHAR_LEADING_BYTE): Likewise.
4602         (LEADING_BYTE_ASCII): Likewise.
4603         (NUM_LEADING_BYTES): Likewise.
4604         (MIN_LEADING_BYTE): Likewise.
4605         (CHARSETP): Likewise.
4606         (CHARSET_BY_LEADING_BYTE): Likewise.
4607         (XCHARSET_LEADING_BYTE): Likewise.
4608         (XCHARSET_GRAPHIC): Likewise.
4609         (XCHARSET_COLUMNS): Likewise.
4610         (XCHARSET_DIMENSION): Likewise.
4611         (BREAKUP_CHAR): Likewise.
4612
4613 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4614
4615         * character.h: Add document about interface for characters.
4616
4617         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4618         (MAKE_CHAR): Delete comment about
4619         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4620         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4621         (BREAKUP_CHAR): Modify name of arguments.
4622         (CHAR_CHARSET): Modify name of argument.
4623
4624         * buffer.h: Delete document about Emchar accessors.
4625
4626 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4627
4628         * character.h (CHAR_INTP): Moved from buffer.h
4629         (CHAR_OR_CHAR_INTP): Likewise.
4630         (XCHAR_OR_CHAR_INT): Likewise.
4631         (CHECK_CHAR_COERCE_INT): Likewise.
4632
4633         * buffer.h (CHAR_INTP): Moved to character.h
4634         (CHAR_OR_CHAR_INTP): Likewise.
4635         (XCHAR_OR_CHAR_INT): Likewise.
4636         (CHECK_CHAR_COERCE_INT): Likewise.
4637
4638 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4639
4640         * character.h:
4641         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4642         - Include char-1byte.h, char-lb.h or char-ucs.h.
4643
4644         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4645
4646         * buffer.h: Include character unconditionally.
4647         (valid_char_p): Moved to char-*.h.
4648         (non_ascii_valid_char_p): Moved to char-lb.h.
4649
4650         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4651
4652 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4653
4654         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4655         in UTF-2000 because it is not ported yet and not to use
4656         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4657         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4658         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4659
4660         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4661         (CHAR_ASCII_P): Moved from character.h.
4662
4663         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4664         (CHAR_ASCII_P): Likewise.
4665         (CHAR_FIELD1_MASK): Deleted.
4666         (CHAR_FIELD2_MASK): Deleted.
4667         (CHAR_FIELD3_MASK): Deleted.
4668         (MAX_CHAR_BASIC_LATIN): New macro.
4669         (CHAR_FIELD1): Deleted.
4670         (CHAR_FIELD2_INTERNAL): Deleted.
4671         (CHAR_FIELD3_INTERNAL): Deleted.
4672         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4673         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4674         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4675         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4676         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4677         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4678         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4679         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4680         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4681         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4682         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4683         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4684         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4685         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4686         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4687         (MIN_CHAR_COMPOSITION): Deleted.
4688         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4689         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4690
4691 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4692
4693         * buffer.h: Include mb-utf-8.h in UTF-2000.
4694
4695         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4696
4697         * mb-utf-8.h: New file.
4698
4699 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4700
4701         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4702         instead of `int'.
4703
4704         * mule-charset.h, buffer.h (Charset_ID): New type.
4705
4706 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4707
4708         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4709         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4710         instead of `MULE_CHAR_PRIVATE_OFFSET',
4711         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4712         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4713         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4714
4715         * character.h (Vcharset_japanese_jisx0212): New variable
4716         definition.
4717
4718 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4719
4720         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4721         (charset_by_attributes): Delete array about direction.
4722         (latin_a_char_to_charset): New variable in UTF-2000.
4723         (latin_a_char_to_byte1): New variable in UTF-2000.
4724         (latin_a_char_to_byte2): New variable in UTF-2000.
4725         (Qucs_bmp): New variable.
4726         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4727         `Bufbyte'.
4728         (next_allocated_2_byte_leading_byte): Likewise.
4729         (non_ascii_set_charptr_emchar): Likewise.
4730         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4731         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4732         `charset_by_attributes'.
4733         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4734         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4735         and `CHARSET_BY_LEADING_BYTE'.
4736         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4737         `utf-2000-version' to `vars_of_mule_charset'.
4738         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4739         define `leading-code-private-11' in UTF-2000; move setting of
4740         `utf-2000-version' from `syms_of_mule_charset'.
4741         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4742         UTF-2000.
4743
4744         * character.h (Charset_ID): New type.
4745         (LEADING_BYTE_UCS_BMP): New macro.
4746         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4747         (CHARSET_ID_OFFSET_94): New macro.
4748         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4749         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4750         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4751         final-byte.
4752         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4753         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4754         (CHARSET_ID_OFFSET_96): New macro.
4755         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4756         CHARSET_ID_OFFSET_96 and final-byte.
4757         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4758         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4759         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4760         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4761         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4762         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4763         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4764         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4765         (LEADING_BYTE_THAI_TIS620): Likewise.
4766         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4767         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4768         (CHARSET_ID_OFFSET_94x94): New macro.
4769         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4770         CHARSET_ID_OFFSET_94x94 and final-byte.
4771         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4772         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4773         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4774         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4775         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4776         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4777         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4778         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4779         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4780         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4781         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4782         (CHARSET_TYPE_128X128): New macro.
4783         (CHARSET_TYPE_256X256): New macro.
4784         (XCHARSET_PRIVATE_P): Delete unconditionally.
4785         (charset_by_attributes): Delete array about direction.
4786         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4787         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4788         (MIN_CHAR_94): New macro.
4789         (MAX_CHAR_94): New macro.
4790         (MIN_CHAR_96): New macro.
4791         (MAX_CHAR_96): New macro.
4792         (MIN_CHAR_94x94): New macro.
4793         (MAX_CHAR_94x94): New macro.
4794         (MIN_CHAR_96x96): New macro.
4795         (MAX_CHAR_96x96): New macro.
4796         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4797         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4798         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4799         - 32)'.
4800         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4801         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4802         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4803         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4804         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4805         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4806         `XCHARSET_LEADING_BYTE' to make code-point.
4807         (latin_a_char_to_charset): New variable.
4808         (latin_a_char_to_byte1): New variable.
4809         (latin_a_char_to_byte2): New variable.
4810         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4811         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4812         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4813
4814         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4815         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4816         (find_charsets_in_emchar_string): Likewise.
4817         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4818
4819         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4820         `int'.
4821         (decode_coding_iso2022): Likewise.
4822
4823         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4824         of `unsigned char'.
4825
4826         * redisplay.c (redisplay_text_width_emchar_string): Use
4827         `Charset_ID' instead of `unsigned char'.
4828         (redisplay_frame_text_width_string): Likewise.
4829
4830         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4831         `unsigned char'.
4832
4833         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4834         instead of `unsigned char'.
4835         (face_cachel_charset_font_metric_info): Likewise.
4836
4837         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4838         (get_non_ascii_char_table_value): Likewise.
4839         (get_char_table): Likewise.
4840         (put_char_table): Likewise.
4841         (map_over_other_charset): Likewise.
4842         (map_char_table): Likewise.
4843
4844         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4845         instead of `unsigned char'.
4846
4847 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4848
4849         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4850         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4851
4852         * mule-charset.c (leading_code_private_11): Don't define in
4853         UTF-2000.
4854
4855         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4856         in UTF-2000 because it is not ported yet and not to use
4857         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4858
4859 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4860
4861         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4862
4863 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4864
4865         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4866         in UTF-2000.
4867
4868         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4869         of unsigned char to store leading-byte.
4870
4871         * chartab.c (get_non_ascii_char_table_value): Don't use
4872         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4873
4874         * file-coding.c (encode_coding_big5): Delete bogus implementation
4875         in UTF2000.
4876
4877         * character.h (LEADING_BYTE_*): Delete definition for
4878         non-UTF-2000.
4879         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4880         (LEADING_BYTE_PREFIX_P): Deleted.
4881         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4882         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4883         (BUFBYTE_LEADING_BYTE_P): Deleted.
4884         (CHARSET_PRIVATE_P): Deleted unconditionally.
4885         (rep_bytes_by_first_byte): Deleted unconditionally.
4886         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4887         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4888         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4889         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4890         (CHAR_FIELD2): Deleted.
4891         (CHAR_FIELD3): Deleted.
4892         (MAKE_CHAR): Delete definition for non-UTF-2000.
4893         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4894         (breakup_char_1): New implementation.
4895         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4896         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4897
4898 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4899
4900         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4901         condition.
4902
4903 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4904
4905         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4906         (CHARSET_PRIVATE_P): Likewise.
4907         (XCHARSET_PRIVATE_P): Likewise.
4908         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4909
4910         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4911         UTF2000.
4912         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4913
4914 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4915
4916         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4917         (NUM_LEADING_BYTES): Changed from 128 to 256.
4918         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4919         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4920         UTF2000.
4921         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4922
4923         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4924         UTF2000.
4925         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4926         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4927         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4928         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4929         (Qchinese_cns11643_3): New variable in UTF2000.
4930         (Qchinese_cns11643_4): New variable in UTF2000.
4931         (Qchinese_cns11643_5): New variable in UTF2000.
4932         (Qchinese_cns11643_6): New variable in UTF2000.
4933         (Qchinese_cns11643_7): New variable in UTF2000.
4934         (syms_of_mule_charset): Define `chinese-cns11643-3',
4935         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4936         and `chinese-cns11643-7' in UTF2000.
4937         (vars_of_mule_charset): Initialize
4938         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4939         + 1 in UTF2000.
4940         (complex_vars_of_mule_charset): Setup charset
4941         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4942         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4943
4944 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4945
4946         * mule-charset.c: Move setting for `leading-code-private-11' from
4947         `syms_of_mule_charset' to `vars_of_mule_charset'.
4948
4949 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4950
4951         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4952         and `NUM_LEADING_BYTES' in assert.
4953
4954 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4955
4956         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4957         instead of 128.
4958         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4959         `NUM_LEADING_BYTES' instead of 128.
4960
4961 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4962
4963         * mule-charset.h (charset_by_leading_byte): Use
4964         `NUM_LEADING_BYTES' instead of 128.
4965         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4966
4967         * mule-charset.c (charset_by_leading_byte): Use
4968         `NUM_LEADING_BYTES' instead of 128.
4969         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4970
4971         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4972         128.
4973
4974 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4975
4976         * mule-charset.c (syms_of_mule_charset): Update to
4977         0.4 (Shin-Imamiya).
4978
4979 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4980
4981         * file-coding.c (encode_coding_sjis): New implementation for
4982         UTF2000.  (decode_coding_sjis): Ditto.
4983
4984 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4985
4986         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4987         Don't define in UTF2000.
4988
4989         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4990         defined.
4991
4992         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4993         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4994         MULE.
4995
4996 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4997
4998         * config.h.in (CHAR_IS_UCS4): New macro.
4999
5000         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5001         conventional MULE representation.
5002         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5003
5004         * mule-charset.h: Reverted to original.
5005
5006         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5007         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5008         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5009
5010         * character.h: New file.
5011
5012         * file-coding.c (Fmake_coding_system): Set 1 to
5013         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5014         defined.
5015         (encode_coding_no_conversion): New implementation for UTF2000.
5016
5017         * file-coding.h (struct Lisp_Coding_System): Add new member
5018         `fixed.size'.
5019
5020 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5021
5022         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5023         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5024         (encode_coding_iso2022): New implementation for UTF2000.
5025
5026 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5027
5028         * mule-canna.c (c2mu): New implementation for UTF2000.
5029         (m2c): Likewise.
5030
5031 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5032
5033         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5034
5035 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5036
5037         * file-coding.c (reset_encoding_stream): Set 0 to
5038         `str->iso2022.current_char_boundary' in UTF2000.
5039         (encode_utf8): Don't define in UTF2000.
5040         (encode_coding_utf8): New implementation for UTF-8 representation
5041         of UTF2000.
5042         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5043
5044 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5045
5046         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5047
5048         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5049         UTF2000.
5050         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5051
5052         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5053
5054         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5055         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5056         as UTF-8 in UTF2000.
5057         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5058         (non_ascii_valid_char_p): Don't define in UTF2000.
5059         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5060         (Lstream_get_emchar_1): Likewise.
5061         (utf-2000-version): New variable in UTF2000.
5062
5063         * lread.c (read_escape): Add new reader `u'.
5064
5065         * insdel.c (three_to_one_table): Don't define in UTF2000.
5066         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5067         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5068         UTF2000.
5069         (bytind_to_bufpos_func): Likewise.
5070         (buffer_mule_signal_inserted_region): Likewise.
5071         (vars_of_insdel): Don't initialize `three_to_one_table'.
5072         (init_buffer_text): Use `buf->text->mule_size' instead of
5073         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5074         UTF2000.
5075
5076         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5077         UTF-8 representation in UTF2000.
5078         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5079         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5080         (decode_coding_iso2022): Don't define local variable `lb' in
5081         UTF2000; don't use LEADING_BYTE in UTF2000; use
5082         `DECODE_ADD_UCS_CHAR' in UTF2000.
5083         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5084
5085         * config.h.in (UTF2000): New macro.
5086
5087         * buffer.h (struct buffer_text): Add new member `mule_size' and
5088         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5089         (valid_char_p): Return always 1 in UTF2000.
5090         (MAX_EMCHAR_LEN): 6 in UTF2000.
5091         (three_to_one_table): Don't define in UTF2000.
5092         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5093         UTF2000.
5094         (real_bytind_to_bufpos): Likewise.
5095
5096         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5097
5098 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5099
5100         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5101         representation change.
5102         (Vutf_2000_version): New variable.
5103         (leading_code_private_11): New variable.
5104         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5105         `leading-code-private-11'.
5106
5107         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5108         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5109         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5110         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5111         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5112         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5113         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5114         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5115         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5116         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5117         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5118         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5119         (MIN_CHAR_GREEK): New macro.
5120         (MAX_CHAR_GREEK): New macro.
5121         (MIN_CHAR_CYRILLIC): New macro.
5122         (MAX_CHAR_CYRILLIC): New macro.
5123         (MIN_CHAR_HEBREW): New macro.
5124         (MAX_CHAR_HEBREW): New macro.
5125         (MIN_CHAR_THAI): New macro.
5126         (MAX_CHAR_THAI): New macro.
5127         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5128         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5129         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5130         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5131         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5132         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5133         (CHAR_FIELD2): New inline function.
5134         (CHAR_FIELD3): New inline function.
5135         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5136         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5137         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5138         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5139         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5140         (MIN_CHAR_COMPOSITION): Likewise.
5141         (CHAR_LEADING_BYTE): Modified for character representation change.
5142         (MAKE_CHAR): Likewise.
5143
5144         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5145         (Vcharset_greek_iso8859_7): Likewise.
5146         (Vcharset_cyrillic_iso8859_5): Likewise.
5147         (Vcharset_hebrew_iso8859_8): Likewise.
5148         (Vcharset_thai_tis620): Likewise.
5149         (Vcharset_katakana_jisx0201): Likewise.
5150
5151 2003-09-03  Vin Shelton <acs@xemacs.org>
5152
5153         * XEmacs 21.4.14 is released
5154
5155 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5156
5157         * config.h.in (REGEX_MALLOC): Make it configure'able.
5158
5159 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5160
5161         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5162         linking.
5163         * sysdll.c (dll_init):
5164         * sysdll.c (dll_open):
5165         * sysdll.c (dll_close):
5166         * sysdll.c (dll_function):
5167         * sysdll.c (dll_variable):
5168         * sysdll.c (dll_error):
5169         Add support for loading bundles using Darwin/MacOSX
5170         native API.
5171
5172 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5173
5174         * process.c (start-process-internal): Document coding systems.
5175
5176 2003-07-30  Jerry James  <james@xemacs.org>
5177
5178         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5179
5180 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5181
5182         * event-msw.c (mswindows_enqueue_mouse_button_event):
5183         * event-msw.c (mswindows_wnd_proc):
5184           enqueue button event when scrollwheel event isn't handled by 
5185           mswindows_handle_mousewheel_event, such as when the scrollbars
5186           are not showing.
5187
5188 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5189
5190         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5191
5192 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5193
5194         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5195
5196 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5197
5198         * regex.c (re_match_2_internal): Fix matching degenerate word
5199         boundaries.
5200
5201 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5202
5203         * XEmacs 21.4.13 is released
5204
5205 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5206
5207         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5208         * lisp.h (<inttypes.h>):
5209         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5210         the definition.
5211
5212 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5213
5214         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5215         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5216         Result: "temacs can only be run in -batch mode."
5217         Fix: Check xemacs executable candidate for directory-ness.
5218
5219 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5220
5221         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5222           they conflict with <sys/types.h>.
5223
5224 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5225
5226         * database.c: Berkeley DB wants __STDC__ to be defined.
5227
5228 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5229
5230         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5231
5232 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5233
5234         * process-unix.c (unix_send_process): Fix C++ compile error.
5235
5236 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5237
5238         * Added .dylib as an acceptable shared library file extension
5239         * to support MacOSX.
5240
5241 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5242
5243         * EmacsFrameP.h (EmacsFramePart):
5244         Kludge to allow compiling with Motif1, but linking with Motif2.
5245
5246 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5247
5248         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5249
5250
5251 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5252
5253         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5254
5255 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5256
5257         * sysdll.c: Included lisp.h to define needed alloca_array.
5258
5259 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5260
5261         Make XEmacs redisplay 10 times faster.
5262         If, that is, you're using a slow X connection and MoveOpaque.
5263         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5264         Use compress_motion = TRUE.
5265         * EmacsFrame.c (emacsFrameClassRec): 
5266         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5267         * EmacsManager.c (emacsManagerClassRec):
5268         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5269
5270 2003-01-30  Vin Shelton  <acs@xemacs.org>
5271
5272         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5273
5274 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5275
5276         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5277         Patch by Martin Buchholz.
5278
5279 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5280
5281         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5282         Thanks to icc for warning and Martin Buchholz for reporting.
5283
5284 2003-01-29  Vin Shelton <acs@xemacs.org>
5285
5286         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5287
5288         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5289         remember to multiply by the element size.
5290
5291 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5292
5293         * XEmacs 21.4.12 "Portable Code" is released.
5294
5295 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5296
5297         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5298         * s/cygwin.sc: new linker file.
5299
5300 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5301
5302         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5303
5304         * redisplay-x.c (x_output_string): Use X11-specified types.
5305         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5306         * emacs.c (__free_hook): Use typeof with Intel compiler.
5307         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5308
5309 2003-01-08  Andy Piper  <andy@xemacs.org>
5310
5311         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5312         reserve size during unexec().
5313
5314 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5315
5316         * process-unix.c (unix_create_process): Don't let outchannel block.
5317
5318 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5319
5320         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5321         Needed for IsBadReadPtr().
5322
5323 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5324
5325         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5326
5327 2002-12-14  Ben Wing  <ben@xemacs.org>
5328
5329         * callint.c: Declaration error.
5330         * dumper.c (pdump):
5331         * dumper.c (pdump_load): Warning fix.
5332         * process.c: GCPRO error.
5333         * glyphs.c (unmap_subwindow):
5334         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5335         * event-stream.c (maybe_kbd_translate): Wrong argument to
5336         character_to_event().
5337
5338         * alloc.c (garbage_collect_1):
5339         * emacs.c:
5340         * emacs.c (debug_can_access_memory):
5341         * emacs.c (fatal_error_signal):
5342         * emacs.c (mswindows_handle_hardware_exceptions):
5343         * emacs.c (main_1):
5344         * emacs.c (main):
5345         * emacs.c (assert_failed):
5346         * emacs.c (syms_of_emacs):
5347         * lisp.h:
5348         * print.c:
5349         * print.c (std_handle_out_va):
5350         * print.c (write_string_to_stdio_stream):
5351         * print.c (write_fmt_string):
5352         * print.c (printing_badness):
5353         * print.c (printing_major_badness):
5354         * print.c (print_internal):
5355         * print.c (debug_print_no_newline):
5356         * print.c (debug_backtrace):
5357         Be more defensive in handling bad values when printing.  Add code
5358         from trunk involving inhibit_non_essential_printing_operations.
5359         When going down or in debug_print(), don't do external conversion
5360         and such and try really, really hard when printing to avoid core
5361         dumping.  Add force-debugging-signal, debug_break().
5362
5363 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5364
5365         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5366         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5367
5368 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5369
5370         * database.c: Fix open_database. Berkeley DB API has changed in
5371         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5372
5373 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5374
5375         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5376
5377 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5378
5379         * event-Xt.c (Xt_timeout):
5380         (Xt_timeout_callback):
5381         (emacs_Xt_add_timeout):
5382         (emacs_Xt_remove_timeout):
5383         (Xt_timeout_to_emacs_event):
5384         Turn completed_timeouts from a stack into a queue.  Fixes
5385         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5386
5387 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5388
5389         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5390         * emacs.c (main): Assert that mmap'd allocation is disabled.
5391
5392 2002-10-14  Andy Piper  <andy@xemacs.org>
5393
5394         * glyphs-widget.c (layout_query_geometry): add in fiddle
5395         factor. Include border text in width layout calculation.
5396         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5397
5398 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5399
5400         * XEmacs 21.4.10 "Military Intelligence" is released.
5401
5402 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5403
5404         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5405         using the NAS private array SoundFileInfo that no longer exists in
5406         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5407         and earlier.  This is broken for some versions between 1.5a and
5408         1.5f.
5409
5410 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5411
5412         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5413
5414         * emacs.c (shut_down_emacs): Improve crash message.
5415
5416 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5417
5418         * file-coding.c (determine_real_coding_system): Check for coding
5419         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5420         shebangs and Python PEP 263.
5421
5422 2002-10-08  Andy Piper  <andy@xemacs.org>
5423
5424         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5425         if static sizes haven't been set.
5426
5427 2002-08-30  Mike Alexander  <mta@arbortext.com>
5428
5429         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5430         to close a socket.
5431
5432 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5433
5434         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5435
5436 2002-09-20  Mike Sperber <mike@xemacs.org>
5437
5438         (This partially gets back my patch from 2002-07-20 without the
5439         bug.)
5440         * callproc.c (child_setup): Remove Ben's comment noting confusion
5441         over the file descriptors >= 3: close_process_descs() doesn't
5442         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5443         * process-unix.c (unix_create_process): Call
5444         begin_dont_check_for_quit to inhibit unwanted interaction (and
5445         thus breaking of X event synchronicity) in the child.
5446
5447 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5448
5449         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5450         widget.
5451
5452 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5453
5454         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5455         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5456         the xemacs process did not exit, but looped infinitely here.  This
5457         fixes that problem.
5458
5459 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5460
5461         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5462         (find_context): Improve comments.
5463
5464         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5465         (re_match_2): An XCHAR_TABLE operation was missing.
5466
5467         Many of the following changes were inspired by Andy Piper's (now
5468         obsolete) patch to make syntax-table text property lookup optional.
5469
5470         [Documentation]
5471
5472         * syntax.h (top level): Document semantics of syntax flags.
5473         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5474         * syntax.c, syntax.h (top level): Document syntax cache better in
5475         comments.
5476
5477         [Instrument syntax caching (temporary change)]
5478
5479         * syntax.h (enum syntax_cache_statistics_functions, struct
5480         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5481         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5482         * syntax.c (scan_words, Fforward_comment, scan_lists,
5483         Fbackward_prefix_characters):
5484         * font-lock.c (find_context):
5485         Use them to instrument syntax caching. 
5486         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5487         syntax_cache_statistics_function_names): New type and variables.
5488         * syntax.c (update_syntax_cache): Update and report statistics.
5489
5490         [Major syntax cache optimizations]
5491
5492         syntax.c (lookup_syntax_properties): Default off.
5493
5494         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5495         * syntax.c (update_syntax_cache):
5496         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5497
5498         [Minor syntax cache optimizations and code clarifications]
5499
5500         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5501         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5502         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5503         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5504         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5505         (Code clarification.)
5506
5507         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5508         scan_lists): Compute code from syncode, use Boolean macros instead
5509         of redundant masking operations.  (Code clarification; any decent
5510         compiler can do this optimization.)
5511
5512         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5513         for clarity.
5514
5515         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5516         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5517         use F*_single_property_change instead of F*_extent_change.
5518         Currently F*_single_property_change is _much_ less efficient.
5519
5520         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5521         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5522         syntax_cache.object properly, don't leave Qt or Qnil.
5523         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5524         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5525         tests for Qt or Qnil.
5526
5527 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5528
5529         * redisplay.c (point_in_line_start_cache): 
5530         * extents.c (print_extent_1):
5531         Fix warnings.
5532
5533         * extents.c (Fset_extent_property): Document `syntax-table' property.
5534
5535         * extents.h (Fnext_single_property_change): EXFUN it.
5536
5537 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5538
5539         * search.c (clear_unused_search_regs): New static function.
5540         (search_buffer): 
5541         (simple_search): 
5542         (boyer_moore):
5543         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5544         Minor clarifications in comments.
5545
5546         * regex.c (re_match_2_internal): Ensure no stale submatches.
5547
5548 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5549
5550         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5551
5552 2002-08-29  Jerry James  <james@xemacs.org>
5553
5554         * lisp.h: structrures -> structures.
5555
5556 2002-06-03  Andy Piper  <andy@xemacs.org>
5557
5558         * frame.c (frame_conversion_internal): add conversion appropriate
5559         for setting frame dimensions in pixels.
5560
5561         * console.h (struct console_methods): add device-specific widget
5562         layout functions.
5563
5564         * emacs.c (main_1): initialize glyph vars.
5565
5566         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5567         (handle_focus_event_2): new function. Allow focus to
5568         be set to a particular window and widget.
5569         (enqueue_focus_event): new function. Create a
5570         synthetic focus event.
5571         (emacs_Xt_handle_magic_event): call
5572         handle_focus_event_2.
5573
5574         * frame.c (Fset_frame_pixel_height): new function. Allow
5575         pixel-based sizing. Does the right thing on character-oriented
5576         displays.
5577         (Fset_frame_pixel_width): ditto.
5578         (Fset_frame_pixel_size): ditto.
5579         (syms_of_frame): declare.
5580
5581         * general-slots.h: add :vertically-justify and
5582         :horizontally-justify.
5583
5584         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5585         (mswindows_widget_border_width): new function.
5586         (mswindows_combo_box_instantiate): set border widths.
5587         (console_type_create_glyphs_mswindows): declare.
5588
5589         * glyphs-widget.c:
5590         (check_valid_justification): allow vertical and horizontal
5591         justification.
5592         (widget_border_width): new function. Call device methods.
5593         (widget_instance_border_width): ditto.
5594         (logical_unit_height): new function. Determine the height of a
5595         logical-unit. Logical units are intended to provide grid-like
5596         layout for subcontrols in a layout. If the layout is
5597         :vertically-justify top then subcontrols will be positioned on
5598         logical-unit boundaries, thus allowing adjacent subcontrols to
5599         line up.
5600         (widget_logical_unit_height): ditto for widgets.
5601         (redisplay_widget): misc cleanup.
5602         (widget_spacing): new function. Call device specific
5603         methods. Intended to be the default gap between adjacent widgets.
5604         (widget_query_geometry): use new spacing functions to determine
5605         appropriate geometry.
5606         (initialize_widget_image_instance): initialize horizontal and
5607         vertical justification.
5608         (widget_instantiate): use logica-units where appropriate for
5609         sizing large widgets.
5610         (button_query_geometry): use widget_instance_border_width.
5611         (tree_view_query_geometry): ditto.
5612         (tab_control_query_geometry): ditto.
5613         (edit_field_query_geometry): new function.
5614         (layout_update): pick up :justify, :horizontally-justify and
5615         :vertically-justify none of which worked previously. :justify is
5616         used as a fallback for both horizontal and vertical justification.
5617         (layout_query_geometry): use logical units to size appropriately.
5618         (layout_layout): ditto.
5619         (Fwidget_logical_to_character_width): new function. Allow users to
5620         convert from logical units to characters so that frame sizes can
5621         be set appropriately.
5622         (Fwidget_logical_to_character_height): ditto.
5623         (syms_of_glyphs_widget): declare.
5624         (image_instantiator_edit_fields): add edit_field_query_geometry.
5625         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5626         :horizontally-justify.
5627         (specifier_vars_of_glyphs_widget): new function. Declare
5628         Vwidget_border_width which is not yet used.
5629
5630         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5631         (x_widget_border_width): new function.
5632         (x_widget_instantiate): create a sensible name for widgets.
5633         (console_type_create_glyphs_x): declare x_widget_border_width.
5634
5635         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5636         (struct Lisp_Image_Instance): add :vertically-justify and
5637         :horizontally-justify.
5638         (LAYOUT_JUSTIFY_TOP): new.
5639         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5640         (ROUND_UP): new macro. Round argument up to next integral
5641         interval.
5642
5643         * redisplay-output.c (redisplay_output_layout): misc formatting.
5644
5645         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5646
5647 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5648
5649         * XEmacs 21.4.9 "Informed Management" is released.
5650
5651 2002-08-19  Andy Piper  <andy@xemacs.org>
5652
5653         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5654         win32 format.
5655
5656         * realpath.c (xrealpath): normalize drive spec also so that dir
5657         sep chars are not mixed on cygwin.
5658
5659 2002-08-06  Jerry James  <james@xemacs.org>
5660
5661         * window.c (Fsplit_window): Count only half of the divider width
5662         against the left window when splitting horizontally. 
5663
5664 2002-06-24  Andy Piper  <andy@xemacs.org>
5665
5666         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5667         toolbar was cleared.
5668
5669         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5670         function. Split out from mswindows_output_frame_toolbars.
5671         (mswindows_output_frame_toolbars): move clear pieces to
5672         mswindows_output_frame_toolbars.
5673
5674         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5675         out from gtk_output_frame_toolbars.
5676         (gtk_output_frame_toolbars): move clear pieces to
5677         gtk_clear_frame_toolbars.
5678
5679         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5680         the frame is cleared. How this ever worked before is a mystery.
5681         (x_output_frame_toolbars): Only output toolbars.
5682         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5683
5684         * gutter.c (update_gutter_geometry):
5685         Mark frame layout changed.
5686         (update_frame_gutter_geometry, update_frame_gutters):
5687         Respect frame_layout_changed.
5688
5689         * console.h (struct console_methods): add
5690         clear_frame_toolbars_method.
5691
5692         * redisplay.c (redisplay_frame): call
5693         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5694
5695         * toolbar.h: declare update_frame_toolbars_geometry.
5696
5697         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5698         out from update_frame_toolbars.  Call clear_frame_toolbars.
5699         (update_frame_toolbars): only output, do not change geometry.
5700
5701         * redisplay.c: add frame_layout_changed.
5702
5703         * redisplay.h: add frame_layout_changed.
5704         (CLASS_RESET_CHANGED_FLAGS): set it.
5705         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5706         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5707         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5708
5709         * device.h (struct device): add frame_layout_changed.
5710         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5711
5712         * frame.h (struct frame): add frame_layout_changed.
5713         (MARK_FRAME_LAYOUT_CHANGED): new.
5714
5715 2002-06-30  Mike Alexander  <mta@arbortext.com>
5716
5717         * event-msw.c (mswindows_need_event): Don't wait for a new message
5718         if the queue is not empty.  Suggested by Paul Moore.
5719
5720 2002-06-12  Andy Piper  <andy@xemacs.org>
5721
5722         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5723         for printing on accurately.
5724
5725 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5726
5727         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5728         WM_ACTIVATE message. Make sure that the frame is visible if the
5729         window is visible. This seemss to fix the problem where XEmacs
5730         appears to freeze after switching desktops with certain virtual
5731         window managers.
5732         (debug_output_mswin_message): Added code to output message
5733         parameters for WM_WINDOWPOSCHANGED, 
5734         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5735
5736 2002-05-25  Andy Piper  <andy@xemacs.org>
5737
5738         * select-x.c (vars_of_select_x): Fix docstring of
5739         x-selection-strict-motif-ownership
5740
5741 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5742
5743         * keymap.c (get_keymap):
5744         Add comment about do_autoload GCPROs own args.
5745
5746 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5747
5748         * bytecode.c (execute_optimized_program): check_opcode ifdef
5749         ERROR_CHECK_BYTE_CODE.
5750
5751 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5752
5753         Thanks to Ben Wing and Michael Sperber.
5754
5755         * eval.c (Fcommand_execute):
5756         (Feval):
5757         (Ffuncall):
5758         (Fmacroexpand_internal):
5759         (function_argcount):
5760         callint.c (Fcall_interactively):
5761         Add comment about do_autoload GCPROs own args.
5762
5763         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5764
5765         * eval.c (Ffuncall): Extra braces to placate GCC.
5766
5767 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5768
5769         * backtrace.h (grow_specpdl):
5770         (SPECPDL_RESERVE):
5771         * EmacsFrame.c (EmacsFrameSetValues):
5772         * eval.c (grow_specpdl):
5773         * ExternalShell.c (hack_event_masks_1):
5774         * glyphs-x.c (convert_EImage_to_XImage): 
5775         (x_finalize_image_instance):
5776         * ralloc.c (page_size):
5777         (r_alloc_sbrk):
5778         * xgccache.c (gc_cache_hash):
5779         Fix unsigned comparison warnings.
5780
5781 2002-07-29  Jerry James  <james@xemacs.org>
5782
5783         * lread.c (locate_file): Any nonnegative return value indicates
5784         success if MODE is nonnegative.
5785
5786 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5787
5788         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5789         argument. 
5790
5791 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5792
5793         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5794
5795         * dumper.c (pdump_get_indirect_count):
5796         (pdump_scan_by_alignment):
5797         (pdump_dump_root_struct_ptrs):
5798         (pdump_dump_rtables):
5799         (pdump_dump_root_objects):
5800         (pdump):
5801         * nas.c (WaveOpenDataForReading):
5802         * fns.c (print_bit_vector):
5803         * font-lock.c (SINGLE_SYNTAX_STYLE):
5804         * glyphs.c (check_for_ignored_expose):
5805         (find_matching_subwindow):
5806         * glyphs-eimage.c:
5807         * imgproc.c (get_histogram):
5808         * redisplay.c (point_in_line_start_cache):
5809         * redisplay-output.c (redisplay_unmap_subwindows):
5810         * symbols.c (defsymbol_massage_name_1):
5811         (defkeyword_massage_name):
5812         (deferror_massage_name_and_message):
5813         * redisplay-x.c (x_output_string): 
5814         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5815         * frame.h (struct frame):
5816         * filelock.c (current_lock_owner):
5817         * doprnt.c (emacs_doprnt_1):
5818         * lisp.h (struct Lisp_Bit_Vector):
5819         (DO_REALLOC):
5820         Fix warnings.
5821
5822 2002-02-13  Ben Wing  <ben@xemacs.org>
5823
5824         * event-stream.c (reset_key_echo):
5825         * event-stream.c (reset_this_command_keys):
5826         * event-stream.c (execute_command_event):
5827         If console is dead as a result of C-x 5 0, then post-command stuff
5828         needs to be careful and do only non-console-specific stuff.
5829
5830 2002-07-01  Mike Sperber <mike@xemacs.org>
5831
5832         * process-unix.c (unix_send_process): Mark coding_outstream as
5833         non-open upon SIGPIPE.
5834
5835         * event-stream.c (Fnext_event): Reorder switch cases to something
5836         that makes sense.
5837
5838 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5839
5840         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5841         Don't bogusly reinitialize ascii_character property.
5842
5843 2002-07-08  Mike Sperber <mike@xemacs.org>
5844
5845         * process.c (Fstart_process_internal): Do error checking before we
5846         fork off the child, so the child can't muck with the state of the
5847         parent.
5848
5849 2002-07-08  Mike Sperber <mike@xemacs.org>
5850
5851         * ralloc.c (init_ralloc): Allocate properly for pdump.
5852
5853 2002-06-12  Andy Piper  <andy@xemacs.org>
5854
5855         * glyphs.c (query_string_geometry): check the string.
5856
5857         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5858         widget names.
5859
5860 2002-06-17  Jerry James  <james@xemacs.org>
5861
5862         * sysdll.c: Remove RTLD_GLOBAL initialization.
5863         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5864
5865 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5866
5867         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5868
5869 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5870
5871         * sysdep.c (sys_rename): Make sys_rename work for the case where
5872         Windows rename sets errno to EACCES if target file exists.
5873
5874 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5875
5876         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5877         Fix detection of metric units to work on Win95
5878
5879 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5880
5881         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5882
5883 2002-04-25  Andy Piper  <andy@xemacs.org>
5884
5885         * redisplay.c (create_text_block): Remove extra comment trailer.
5886
5887 2002-04-24  Andy Piper  <andy@xemacs.org>
5888
5889         * redisplay.c (create_text_block): Don't actually add propagation
5890         data if the line ends after we have added a glyph.
5891
5892 2002-04-22  Andy Piper  <andy@xemacs.org>
5893
5894         * extents.c (extent_fragment_update): check for glyphs we have
5895         previously displayed.
5896         * extents.c (print_extent_1): warning removal.
5897         * extents.h: change prototype.
5898         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5899         widths correctly for wide glyphs.
5900         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5901         * redisplay.c (prop_type): add PROP_GLYPH.
5902         * redisplay.c (struct prop_block): add glyph type
5903         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5904         to the propagation data.
5905         * redisplay.c (create_text_block): if there is a glyph in the
5906         propagation data use it to salt extent_fragment_update.
5907         * redisplay.c (create_string_text_block): ditto.
5908
5909 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5910
5911         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5912         * redisplay-output.c (compare_runes): Compare them.
5913         * redisplay.c: Update copyright date.
5914         * redisplay.c (pos_data): Add need_baseline_computation field.
5915         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5916         need_baseline_computation; zero yoffset. Set max_pixmap_height
5917         for all pixmaps, not just automatically positioned ones.
5918         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5919         * redisplay.c (calculate_baseline): New, compute textual baseline.
5920         * redisplay.c (add_glyph_rune): Call them.
5921         * redisplay.c (create_text_block): Likewise.
5922         * redisplay.c (create_overlay_glyph_block): Likewise.
5923         * redisplay.c (add_margin_runes): Likewise.
5924         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5925
5926         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5927         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5928         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5929         * redisplay-msw.c (mswindows_output_string): Likewise.
5930         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5931         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5932         * redisplay-x.c (x_output_display_block): Likewise.
5933
5934 2002-03-28  Ben Wing  <ben@xemacs.org>
5935
5936         * redisplay.c: Fixed bug in redisplay
5937         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5938         and down of the lines, since they're bigger than the line
5939         size. (It was seen most obviously when there's a horizontal scroll
5940         bar, e.g. do C-h a glyph or something like that.) The problem was
5941         that the glyph-contrib-p setting on glyphs was ignored even if it
5942         was set properly, which it wasn't until now.
5943
5944 2002-04-24  Andy Piper  <andy@xemacs.org>
5945
5946         * lisp.h (Dynarr_end): Fix definition.
5947
5948 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5949
5950         * redisplay.c (mark_redisplay): Remove call to
5951         update_frame_window_mirror.
5952
5953 2001-11-15  Andy Piper  <andy@xemacs.org>
5954
5955         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5956         cygwin (again).
5957
5958 2002-02-13  Andy Piper  <andy@xemacs.org>
5959
5960         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5961         we did in fact enqueue the XM_MAPFRAME event.
5962
5963 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5964
5965         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5966         to fix problem switching between virtual desktops under virtuawin
5967         virtual window manager.
5968
5969 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5970
5971         * event-msw.c: Typo fix.
5972         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5973         magic XM_MAPFRAME event has been sent.
5974
5975 2001-11-23  Andy Piper  <andy@xemacs.org>
5976
5977         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5978
5979 2001-11-21  Andy Piper  <andy@xemacs.org>
5980
5981         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5982         mouse events outside the frame.
5983
5984 2002-03-20  Andy Piper  <andy@xemacs.org>
5985
5986         * menubar-msw.c (mswindows_popup_menu): warning removal.
5987         * dialog-msw.c (dialog_popped_down): ditto.
5988
5989 2001-12-11  Andy Piper  <andy@xemacs.org>
5990
5991         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5992         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5993         popup_up_p.
5994         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5995         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5996         * menubar-msw.c (mswindows_popup_menu): ditto.
5997
5998 2001-10-29  Andy Piper  <andy@xemacs.org>
5999
6000         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6001         cancels.
6002
6003 2002-01-03  Andy Piper  <andy@xemacs.org>
6004
6005         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6006         letters.
6007         (xrealpath): ditto.
6008
6009 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6010
6011         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6012         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6013         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6014         Detect and handle case where machine is set up for metric units
6015
6016 2002-04-02  Andy Piper  <andy@xemacs.org>
6017
6018         * dired-msw.c (mswindows_get_files): 
6019         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6020         completely handled by XEmacs. Suggested by Thomas Vogler
6021         <mail@thomas-vogler.de>.
6022
6023 2001-11-14  Andy Piper  <andy@xemacs.org>
6024
6025         * nt.c (REG_ROOT): change registry key to XEmacs.
6026
6027 2002-04-27  Andy Piper  <andy@xemacs.org>
6028
6029         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6030
6031 2002-04-26  Andy Piper  <andy@xemacs.org>
6032
6033         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6034         behavior.
6035
6036 2002-03-14  Mike Alexander  <mta@arbortext.com>
6037
6038         * event-msw.c (mswindows_unwait_process): New, remove process from
6039         wait list
6040         * process-nt.c (nt_finalize_process_data): Call
6041         mswindows_unwait_process
6042         * console-msw.h: Declare mswindows_unwait_process
6043
6044 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6045
6046         * editfns.c (Fdecode_time):
6047         (Fformat_time_string):
6048         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6049         (make_time): Warning elimination (change arg name).
6050
6051 2001-11-24  Andy Piper  <andy@xemacs.org>
6052
6053         * window.c (Fsplit_window): Doc return type.
6054
6055 2002-04-01  Andy Piper  <andy@xemacs.org>
6056
6057         * emacs.c (Fkill_emacs): Only output message box in interactive
6058         mode.
6059
6060 2002-04-26  Andy Piper  <andy@xemacs.org>
6061  
6062         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6063         cygwin.
6064
6065 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6066
6067         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6068         bit platform.
6069
6070 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6071
6072         * XEmacs 21.4.8 "Honest Recruiter" is released.
6073
6074 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6075
6076         Supersedes 2002-04-17 patch.
6077
6078         * process.h (PROCESS_LIVE_P): Use the process status as
6079         evidence of health, not the state of the input stream.
6080         (PROCESS_READABLE_P): Say if the process is readable
6081         from. (It may be dead nonetheless.)
6082         (CHECK_READABLE_PROCESS): Test for that condition.
6083
6084         * process.c (create_process): Use PROCESS_READABLE_P.
6085         (read_process_output, set_process_filter): Likewise.
6086
6087         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6088         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6089
6090         This code is #if 0'd, this is not the time to add new functions:
6091
6092         * process.c (Fprocess_readable_p): Report readability status.
6093         * process.c (Qprocess_readable_p): New, associated symbol...
6094         * process.c (syms_of_process): ... initialize it.
6095
6096 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6097
6098         * XEmacs 21.4.7 "Economic Science" is released.
6099
6100 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6101
6102         * process.h (PROCESS_LIVE_P): Use the process status as
6103         evidence of health, not the state of the input stream.
6104
6105 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6106
6107         * sysdep.c (sys_siglist): change "signum" to "signal"
6108
6109 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6110
6111         * s/darwin.h: New file.
6112         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6113         
6114 2002-04-23  Andreas Jaeger  <aj@suse.de>
6115
6116         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6117         which use lib64 for 64-bit libs.
6118         (START_FILES): Likewise.
6119
6120 2002-02-11  Mike Sperber  <mike@xemacs.org>
6121
6122         * device-x.c: 
6123         (x_IO_error_handler):
6124         (x_init_device): Temporarily keep device in static variable
6125         `device_being_initialized' so we can recover gracefully from
6126         internal XOpenDevice failure.  (XOpenDevice is documented to
6127         return NULL on failure, but sometimes calls the IO error handler
6128         instead.)
6129
6130 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6131
6132         * dired.c (Ffile_name_all_completions): Change documentation --
6133         remove reference to completion-ignored-extensions.
6134         * dired.c (vars_of_dired): Change documentation for
6135         completion-ignored-extensions -- remove reference to
6136         file-name-all-completions.
6137
6138 2002-03-06  Jerry James  <james@xemacs.org>
6139
6140         * emodules.c (emodules_load): Fix multiple loading of same module.
6141
6142 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6143         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6144         RTLD_LAZY to avoid incorrect symbol binding when using nested
6145         shared libraries on Solaris.
6146
6147 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6148
6149         * fileio.c (Ffind_file_name_handler): Improve docstring.
6150
6151 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6152
6153         * fns.c (Fmapconcat): Improve docstring.
6154
6155 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6156
6157         * device-gtk.c: Add prototype for
6158         emacs_gtk_selection_clear_event_handle.
6159         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6160         selection.  Setup signal handler for "selection_clear_event"
6161         (emacs_gtk_selection_clear_event_handle).
6162
6163         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6164         other applications owning the clipboard (based on
6165         x_handle_selection_clear).
6166
6167 2001-12-23  William M. Perry  <wmperry@gnu.org>
6168
6169         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6170         
6171 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6172
6173         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6174
6175 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6176
6177         * XEmacs 21.4.6 "Common Lisp" is released.
6178
6179 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6180
6181         * search.c (Freplace_match): Add missing sub-expression functionality.
6182
6183         * buffer.c (decode_buffer): Add a check for pointer type to
6184         decode_buffer, before gcc's CSE optimization reorders a
6185         dereference in front of the allow_string test.
6186
6187 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6188
6189         * window.c (window_loop): Fix bug that sometimes prevented
6190         window_loop() from iterating across multiple devices.  Also, at
6191         Ben's request, changed infloop-detecting code to abort() instead
6192         of silently terminating window_loop().
6193
6194 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6195
6196         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6197         * editfns.c (make_time): New function.
6198         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6199         * lisp.h (make_time): Prototype and comment it.
6200         * dired.c (wasteful_word_to_lisp): Deprecate.
6201         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6202
6203 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6204
6205         * fileio.c (auto_save_1): Use current coding system, not
6206         escape-quoted.
6207
6208 2001-11-13  Ben Wing  <ben@xemacs.org>
6209
6210         * window.c:
6211         * window.c (window_truncation_on):
6212         * window.c (syms_of_window):
6213         truncate-partial-width-windows should respect the buffer being
6214         displayed, like other redisplay vars.
6215
6216 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6217
6218         * event-stream.c (Fread_key_sequence): save current buffer.
6219
6220 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6221
6222         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6223
6224 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6225
6226         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6227
6228 2001-10-26  Mike Alexander  <mta@arbortext.com>
6229
6230         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6231
6232 2001-10-25  Andy Piper  <andy@xemacs.org>
6233
6234         * ChangeLog:
6235         * dialog-msw.c (handle_directory_proc): new function.
6236          (handle_directory_dialog_box): new fucntion.
6237          (handle_file_dialog_box): use new directory dialog support.
6238          (mswindows_make_dialog_box_internal): ditto.
6239         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6240         handling.
6241         (mswindows_find_frame): make global.
6242         * fileio.c (Fexpand_file_name): build fix.
6243         * general-slots.h: add Qdirectory.
6244         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6245         handling.
6246         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6247         cygwin not leaving win32 paths unchanged.
6248         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6249         cygwin runtime to do path conversion.
6250         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6251         (syms_of_win32): add new function.
6252         * window.c (window_loop): build fix.
6253
6254 2001-10-15  Andy Piper  <andy@xemacs.org>
6255
6256         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6257
6258 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6259
6260         * XEmacs 21.4.5 "Civil Service" is released.
6261
6262 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6263
6264         * glyphs-x.c: Force buffer-tab highlight update when moving the
6265         buffer, avoiding an ugly black border, used for keyboard focus
6266         indication, on a widget that can never have keyboard focus, the
6267         buffer tab.
6268
6269 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6270
6271         * process-unix.c (unix_open_multicast_group): Remove too much
6272         conversion between host and network byte order.
6273
6274 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6275
6276         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6277         before replacing them.
6278
6279         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6280         operation.
6281
6282         * src/window.c (undedicate_windows): Use it.
6283         * src/window.h: Add prototype.
6284
6285 2001-09-17  Ben Wing  <ben@xemacs.org>
6286
6287         * fileio.c (normalize_filename):
6288         * fileio.c (Fexpand_file_name):
6289         Fix various C++ compile errors in Andy's recent code.
6290         
6291         * callint.c (Fcall_interactively):
6292         * editfns.c (Ftemp_directory):
6293         * editfns.c (Fuser_full_name):
6294         * emacs.c (argmatch):
6295         * lread.c (locate_file_map_suffixes):
6296         * redisplay-x.c (x_ring_bell):
6297         Fix sign-compare warnings.
6298         
6299 2001-09-08  Andy Piper  <andy@xemacs.org>
6300
6301         * fileio.c (normalize_filename): copied from nt.c
6302         * (Ffile_name_directory): enable win32 paths under cygwin.
6303         * (Ffile_name_nondirectory): ditto.
6304         * (directory_file_name): ditto.
6305         * (Fexpand_file_name): ditto.
6306         * (Ffile_truename): ditto.
6307         * (Fsubstitute_in_file_name): ditto.
6308         * (Ffile_name_absolute_p): ditto.
6309         * (Ffile_readable_p): ditto.
6310
6311 2001-09-08  Andy Piper  <andy@xemacs.org>
6312
6313         * device-msw.c (mswindows_finish_init_device): remove dde
6314         initialization.
6315         * device-msw.c (mswindows_init_dde): factor out from
6316         mswindows_finish_init_device()
6317         * device-msw.c (init_mswindows_very_early): new function
6318         initialize but don't enable dde.
6319         * emacs.c (main_1): call init_mswindows_very_early.
6320         * event-msw.c:
6321         * event-msw.c (mswindows_dde_callback): only execute when we are
6322         ready.
6323         * symsinit.h: declare init_mswindows_very_early.
6324
6325 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6326
6327         [sjt: This has been in 21.5 for months with no complaints.]
6328
6329         * console.h (struct console_methods): Added flags member.
6330         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6331         (CONMETH_IMPL_FLAG):
6332         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6333         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6334
6335         * device.c (window_system_pixelated_geometry): Use the above macros.
6336
6337         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6338         implememntation flag.
6339         * device.h (DEVICE_DISPLAY_P): Use it.
6340
6341         * frame.c (delete_frame_internal): Use the above macro.
6342
6343         * redisplay.c (redisplay_device): Use it.
6344         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6345         (redisplay_frame): Ditto.
6346
6347         * device-msw.c (mswindows_device_implementation_flags): Removed.
6348         (msprinter_device_implementation_flags): Removed.
6349         (console_type_create_device_mswindows): Removed references to
6350         implementation_flags methods, set implementation flags here.
6351         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6352
6353         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6354         (console_type_create_device_gtk): Removed method declaration.
6355         Added commented out statement which semantically matches the
6356         commented out statement in the above removed method.
6357
6358 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6359
6360         The attached patch fixes a few warnings. 
6361
6362         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6363         * src/frame-gtk.c: guard against GNOME calls in GTK only
6364         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6365         * src/select-gtk.c: prototype lisp_to_time
6366
6367 2001-06-08  Ben Wing  <ben@xemacs.org>
6368
6369         ------ gc-in-window-procedure fixes ------
6370         
6371         * alloc.c:
6372         * alloc.c (struct post_gc_action):
6373         * alloc.c (register_post_gc_action):
6374         * alloc.c (run_post_gc_actions):
6375         * alloc.c (garbage_collect_1):
6376         Create "post-gc actions", to avoid those dreaded "GC during window
6377         procedure" problems.
6378
6379         * event-msw.c:
6380         Abort, clean and simple, when GC in window procedure.  We want
6381         to flush these puppies out.
6382
6383         * glyphs-msw.c:
6384         * glyphs-msw.c (finalize_destroy_window):
6385         * glyphs-msw.c (mswindows_finalize_image_instance):
6386         Use a post-gc action when destroying subwindows.
6387
6388         * lisp.h:
6389         Declare register_post_gc_action().
6390
6391         * scrollbar-msw.c:
6392         * scrollbar-msw.c (unshow_that_mofo):
6393         Use a post-gc action when unshowing scrollbar windows, if in gc.
6394
6395         * redisplay.c (mark_redisplay):
6396         Add comment about the utter evilness of what's going down here.
6397
6398         ------ cygwin setitimer fixes ------
6399         
6400         * Makefile.in.in (sheap_objs):
6401         * Makefile.in.in (profile_objs):
6402         * Makefile.in.in (objs):
6403         Compile profile.c only when HAVE_SETITIMER.
6404         
6405         * nt.c (mswindows_sigset):
6406         * nt.c (mswindows_sighold):
6407         * nt.c (mswindows_sigrelse):
6408         * nt.c (mswindows_sigpause):
6409         * nt.c (mswindows_raise):
6410         * nt.c (close_file_data):
6411         Style fixes.
6412         
6413         * nt.c:
6414         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6415         
6416         * profile.c:
6417         * profile.c (Fstart_profiling):
6418         * profile.c (Fstop_profiling):
6419         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6420         instead of just plain setitimer().
6421         
6422         * signal.c:
6423         * signal.c (set_one_shot_timer):
6424         * signal.c (alarm):
6425         Define qxe_setitimer() as an encapsulation around setitimer() --
6426         call setitimer() directly unless Cygwin or MS Win, in which case
6427         we use our simulated version in win32.c.
6428         
6429         * systime.h:
6430         * systime.h (struct itimerval):
6431         * systime.h (ITIMER_REAL):
6432         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6433         comment about "qxe" and the policy regarding encapsulation.
6434
6435         * win32.c:
6436         * win32.c (setitimer_helper_proc):
6437         * win32.c (setitimer_helper_period):
6438         * win32.c (setitimer_helper):
6439         * win32.c (mswindows_setitimer):
6440         Move setitimer() emulation here, so Cygwin can use it.
6441         Rename a couple of functions and variables to be longer and more
6442         descriptive.  In setitimer_helper_proc(), send the signal
6443         using either mswindows_raise() or (on Cygwin) kill().  If for
6444         some reason we are still getting lockups, we'll change the kill()
6445         to directly invoke the signal handlers.
6446
6447         ------ windows shell fixes ------
6448         
6449         * callproc.c:
6450         * ntproc.c:
6451         Comments about how these two files must die.
6452
6453         * callproc.c (init_callproc):
6454         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6455         not just COMSPEC. (more correct and closer to FSF.) Don't
6456         force a value for SHELL into the environment. (Comments added
6457         to explain why not.)
6458         
6459         * nt.c (init_user_info):
6460         Don't shove a fabricated SHELL into the environment.  See above.
6461
6462 2001-06-01  Ben Wing  <ben@xemacs.org>
6463
6464         * Makefile.in.in (ldflags):
6465         eliminate that pesky "defaulting to 00401000" warning.
6466         * nt.h:
6467         eliminate warnings.
6468
6469 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6470
6471         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6472         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6473
6474 2001-04-24  Jerry James <james@xemacs.org>
6475
6476         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6477         correct order.
6478
6479 2001-06-01  Ben Wing  <ben@xemacs.org>
6480
6481         * event-msw.c (debug_mswin_messages):
6482         conditionalize the messages that were causing compile errors.
6483         (if only macros could generate #ifdef statements ...)
6484
6485 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6486
6487         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6488
6489 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6490
6491         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6492
6493 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6494
6495         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6496         * process-unix.c (unix_canonicalize_host_name):
6497         sysdep.c (init_system_name):
6498         Use it to conditionally support IPv6 canonicalization.
6499
6500 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6501
6502         * event-msw.c:
6503         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6504
6505 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6506
6507         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6508         attempt is made to scroll when no scroll bar is available.
6509
6510 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6511
6512         * input-method-motif.c (XIM_delete_frame): New callback.
6513         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6514         got deleted from 21.4.3.)
6515
6516 2001-06-01  Ben Wing  <ben@xemacs.org>
6517
6518         * nt.c (mswindows_utime):
6519         * nt.c (close_file_data):
6520         fix off-by-one-indirection error.
6521
6522 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6523
6524         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6525         because set_file_times() now takes Lisp_Object path, instead of
6526         char*.
6527         * nt.c: Include buffer.h.
6528         * nt.c (convert_from_time_t): New.
6529         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6530         not set mtime correctly.
6531         * nt.h: Declare mswindows_utime().
6532         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6533         path, instead of char*.
6534         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6535
6536 2001-05-30  Ben Wing  <ben@xemacs.org>
6537
6538         For 21.4:
6539
6540         (Stephen, just take all event-msw.c patches.  This includes
6541         the "iconify" fix below.)
6542
6543         * event-msw.c:
6544         * event-msw.c (mswindows_dequeue_dispatch_event):
6545         * event-msw.c (assert):
6546         * event-msw.c (emacs_mswindows_quit_p):
6547         * event-msw.c (debug_mswin_messages):
6548         * event-msw.c (debug_output_mswin_message):
6549         * event-msw.c (vars_of_event_mswindows):
6550         Fix yet more problems with C-g handling.
6551         Implement debug-mswindows-events.
6552         
6553 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6554
6555         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6556         
6557 2001-05-23  Ben Wing  <ben@xemacs.org>
6558
6559         * event-msw.c (winsock_writer):
6560         * event-msw.c (winsock_closer):
6561         prior kludgy code was clobbering the buffer, thinking it was
6562         "unused" space to store an unneeded return value; instead, use
6563         the variable we've already got staring us in the face.
6564
6565 2001-05-17  Andy Piper  <andy@xemacs.org>
6566
6567         * sysfile.h: don't assume that file attributes are boolean
6568
6569 2001-05-23  Ben Wing  <ben@xemacs.org>
6570
6571         * device-msw.c (msprinter_init_device):
6572         signal an error rather than crash with an unavailable network
6573         printer (from Mike Alexander).
6574         
6575         * event-msw.c:
6576         * event-msw.c (struct winsock_stream):
6577         * event-msw.c (winsock_writer):
6578         * event-msw.c (winsock_closer):
6579         * event-msw.c (make_winsock_stream_1):
6580         cleanup headers.  fix (hopefully) an error with data corruption
6581         when sending to a network connection.
6582
6583         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6584         to handle the ~user prefix by (a) always assuming we're referencing
6585         ourselves and not even verifying the user -- hence any file with
6586         a tilde as its first char is invalid! (b) if there wasn't a slash
6587         following the filename, the pointer was set *past* the end of
6588         file and we started reading from uninitialized memory.  Now we
6589         simply treat these as files, always.
6590
6591         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6592         
6593 2001-05-19  Ben Wing  <ben@xemacs.org>
6594
6595         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6596
6597         * process-nt.c:
6598         * process-nt.c (vars_of_process_nt):
6599         remove unused mswindows-quote-process-args.  rec for 21.4.
6600         
6601 2001-05-12  Ben Wing  <ben@xemacs.org>
6602
6603         * event-msw.c (mswindows_dde_callback):
6604         * event-msw.c (mswindows_wnd_proc):
6605         eliminate cygwin warnings.
6606
6607 2001-05-06  Ben Wing  <ben@xemacs.org>
6608
6609         * console-msw.h:
6610         * device-msw.c:
6611         * device-msw.c (print_dialog_worker):
6612         * device-msw.c (mswindows_handle_print_dialog_box):
6613         * device-msw.c (syms_of_device_mswindows):
6614         * dialog-msw.c (mswindows_make_dialog_box_internal):
6615         * general-slots.h:
6616         implement printing the selection when it's selected.
6617
6618 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6619
6620         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6621
6622 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6623
6624         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6625         EMACS_INT is signed.
6626
6627 2001-04-15  Michael Lausch  <mla@1012surf.net>
6628
6629         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6630         gtk_widget_request_size() to give scrollbar >0 width for
6631         GTK >1.2.8.
6632
6633 2001-05-30  William M. Perry  <wmperry@gnu.org>
6634
6635         * event-gtk.c: Check for buttons as modifier keys.
6636
6637 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6638
6639         * s\mingw32.h:
6640         Properly find MinGW's <process.h> inside Cygwin's restructured
6641         include directories.  Don't try to include <cygwin/version.h>
6642         since we are dropping support for MinGW in versions of Cygwin
6643         earlier than b21.
6644         * nt.c:
6645         Drop support for MinGW in versions of Cygwin before b21.
6646         * sysdep.c:
6647         Properly find MinGW's <process.h> inside Cygwin's restructured
6648         include directories.
6649         * syswindows.h:
6650         Drop support for MinGW in versions of Cygwin before b21.
6651         * unexcw.c:
6652         Even though a.out.h is no longer detected by configure, allow
6653         MinGW to use it until we figure out how to do the job with Win32.
6654
6655 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6656
6657         * syntax.c (find_start_of_comment):
6658         Fix `unbalanced parentheses' bug when dealing with mixed comment
6659         styles in c++/java/etc. mode
6660
6661 2001-05-29  Mike Alexander  <mta@arbortext.com>
6662
6663         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6664         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6665
6666 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6667
6668         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6669
6670 2001-03-31  Mike Sperber <mike@xemacs.org>
6671
6672         * search.c (Freplace_match): Support FSF-style specification of
6673         match subexpression when applied to a buffer.
6674
6675 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6676
6677         * event-stream.c (is_scrollbar_event): add missing semicolon
6678
6679 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6680
6681         * Makefile.in.in: Use TAR macro instead of hardcoding
6682           tar.  Allows use of GNU tar instead of system tar
6683
6684 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6685
6686         * event-stream.c (is_scrollbar_event): add missing semicolon
6687
6688 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6689
6690         * XEmacs 21.4.3 "Academic Rigor" is released.
6691
6692 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6693
6694         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6695
6696 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6697
6698         * buffer.c (Vcase_fold_search): Remove obsolete
6699           comment about non ASCII case-fold-search.  This
6700           bug has been fixed by case-table changes.
6701
6702 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6703
6704         * event-msw.c: Restore include of events-mod.h.
6705
6706 2001-04-22   zhaoway  <zw@debian.org>
6707
6708         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6709         !HAVE_SCROLLBARS.
6710
6711 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6712
6713         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6714
6715 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6716
6717         * mule-charset.c (Fmake_charset): Add missing else.
6718
6719 2001-04-23  Ben Wing  <ben@xemacs.org>
6720
6721         * event-msw.c (FAKE_MOD_QUIT):
6722         * event-msw.c (mswindows_dequeue_dispatch_event):
6723         * event-msw.c (mswindows_wnd_proc):
6724         * event-msw.c (emacs_mswindows_quit_p):
6725         Get critical quit working.
6726
6727 2001-05-05  Ben Wing  <ben@xemacs.org>
6728
6729         * console-msw.h:
6730         * device-msw.c:
6731         * device-msw.c (mswindows_get_default_margin):
6732         * frame-msw.c (mswindows_size_frame_internal):
6733         * frame-msw.c (msprinter_init_frame_1):
6734         * frame-msw.c (vars_of_frame_mswindows):
6735         Change top/bottom margin defaults to 0.5 inches.
6736
6737 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6738
6739         Fix link error with gcc 3.0 on Linux.
6740         * terminfo.c (UP): Remove.
6741         * terminfo.c (BC): Remove.
6742         * terminfo.c (PC): Remove.
6743         They weren't used, and in any case, these symbols should be
6744         defined in the *library*.
6745
6746 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6747
6748         * s/aix4.h: Fix crash with xlc -O3.
6749         Improve comment explaining how -O3 works.
6750
6751 2001-04-15  Ben Wing  <ben@xemacs.org>
6752
6753         * event-stream.c:
6754         * event-stream.c (Fnext_event):
6755         * event-stream.c (is_scrollbar_event):
6756         * event-stream.c (execute_command_event):
6757         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6758         crash' problem.  His fix introduces other problems.  We filter
6759         out scrollbar events specifically, making them somewhat invisible
6760         to command-building, and not appearing in `this-command-keys'.
6761         More work is still needed (see comments in event-stream.c), but
6762         this fixes all the major problems.
6763
6764 2001-04-20  Ben Wing  <ben@xemacs.org>
6765
6766         * .cvsignore: Added stuff for Windows.
6767
6768 2001-04-28  Ben Wing  <ben@xemacs.org>
6769
6770         * buffer.c (Ferase_buffer):
6771         * editfns.c (buffer_insert1):
6772         * editfns.c (Finsert_before_markers):
6773         * editfns.c (Finsert_string):
6774         * editfns.c (Finsert_char):
6775         * editfns.c (Fdelete_region):
6776         * editfns.c (Fwiden):
6777         * editfns.c (Fnarrow_to_region):
6778         remove bogus lines setting zmacs_region_stays to 0.
6779         
6780 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6781
6782         * process-unix.c (unix_open_network_stream): If connect() fails
6783         invalidate file descriptor after closing it.
6784
6785 2001-03-08  Mike Alexander  <mta@arbortext.com>
6786
6787         * event-msw.c (mswindows_need_event_in_modal_loop):
6788         Don't dispatch a message if we didn't get one.
6789         (mswindows_need_event):
6790         Terminate the correct process when one exits instead of the first
6791         one on Vprocess_list and look for process termination when in
6792         mswindows_protect_modal_loop.
6793
6794 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6795
6796         * XEmacs 21.4.1 "Copyleft" is released.
6797
6798 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6799
6800         * input-method-motif.c (XIM_delete_frame): New callback.
6801         (XIM_init_frame): Register it.
6802
6803 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6804
6805         * XEmacs 21.4.0 "Solid Vapor" is released.
6806
6807 2001-04-15  Ben Wing  <ben@xemacs.org>
6808
6809         * cmdloop.c (call_command_loop):
6810         Fix braino in bit-rotting code.
6811         
6812 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6813
6814         * extents.c (Fset_extent_endpoints): Force creation of extent info
6815         in buffer_or_string.
6816
6817         * extents.c (process_extents_for_insertion_mapper): Correctly
6818         check for open-open zero-length extents.
6819
6820 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6821
6822         * lisp.h: New typedefs Memory_count, Element_count.
6823         * regex.c:
6824         * regex.h:
6825         Sign-compare warning elimination: several unsigned -> signed.
6826         Based on work by Ben Wing <ben@xemacs.org>.
6827
6828 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6829
6830         * XEmacs 21.2.47 "Zephir" is released.
6831
6832 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6833
6834         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6835
6836 2001-04-03  Mike Sperber <mike@xemacs.org>
6837
6838         * search.c: Revert previous patch due because of release.
6839
6840 2001-03-30  Ben Wing  <ben@xemacs.org>
6841
6842         * s\cygwin32.h:
6843         Add missing killpg prototype.
6844
6845         * elhash.c:
6846         Add a comment about fixing problems when a new entry is added
6847         while mapping.
6848
6849         * frame-msw.c (mswindows_init_frame_1):
6850         Fix compile warnings.
6851
6852         * menubar.c (vars_of_menubar):
6853         Provide `menu-accelerator-support' to indicate that we properly
6854         support %_ in menu specifications, so that package code can
6855         conditionalize on this (and remove %_ from menu specifications
6856         on older versions).
6857
6858         * event-msw.c:
6859         * scrollbar-msw.c:
6860         * scrollbar-msw.c (can_scroll):
6861         * scrollbar-msw.h:
6862         Fix handling of mouse wheel under Windows to follow standards --
6863         now scrolls window under pointer, not selected window.
6864
6865 2001-03-31  Mike Sperber <mike@xemacs.org>
6866
6867         * search.c (Freplace_match): Support FSF-style specification of
6868         match subexpression when applied to a buffer.
6869
6870 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6871
6872         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6873         function to modify KEYMAP, so map over a copy of the hash table.
6874
6875 2001-03-21  Martin Buchholz <martin@xemacs.org>
6876
6877         * XEmacs 21.2.46 "Urania" is released.
6878
6879 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6880
6881         * realpath.c (xrealpath): Make file-truename work with symlinks to
6882         /cygdrive paths on cygwin. Always lowercase drive-letters on
6883         native windows.
6884         (cygwin_readlink): Don't try to find canonical filename unless
6885         file exists.
6886
6887 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6888
6889         * ChangeLog: Log GTK merge.
6890
6891         * dumper.c:
6892         * select-x.c:
6893         * specifier.c:
6894         * symeval.h:
6895         Revert gratuitous whitespace changes from GTK merge.
6896
6897         * emacs.c: Document end of complex #ifdef @ l. 1495.
6898
6899
6900 2001-03-12  Andy Piper  <andy@xemacs.org>
6901
6902         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6903         have to do likewise.
6904
6905 2001-03-12  Andy Piper  <andy@xemacs.org>
6906
6907         * sysdep.c: we only support mingw now.
6908
6909 2001-03-09  Andy Piper  <andy@xemacs.org>
6910
6911         * unexcw.c (copy_executable_and_dump_data_section): making approx
6912         overrun a warning only.
6913
6914 2001-03-10  William M. Perry  <wmperry@aventail.com>
6915
6916         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6917         satisfy Stephen's identical-after-cpp plea.
6918
6919 2001-03-02  Ben Wing  <ben@xemacs.org>
6920
6921         * cmds.c:
6922         * cmds.c (Fforward_char):
6923         * syntax.c:
6924         * window.c:
6925
6926         Augment documentation of the most common motion commands to make
6927         note of the shifted-motion support.
6928         
6929 2001-03-02  Ben Wing  <ben@xemacs.org>
6930
6931         * nt.c (mswindows_fstat):
6932         * nt.c (mswindows_stat):
6933         * search.c (boyer_moore):
6934         Fix compile warnings under Windows.
6935         
6936         * sysdep.c (sys_readdir):
6937         Fix buggy filename-conversion code under Mule.
6938
6939 2001-03-09  William M. Perry  <wmperry@aventail.com>
6940
6941         * Makefile.in.in:
6942         * config.h.in:
6943         * console.c:
6944         * console.h:
6945         * device.c:
6946         * device.h:
6947         * dragdrop.c:
6948         * emacs.c:
6949         * event-stream.c:
6950         * events.c:
6951         * events.h:
6952         * faces.c:
6953         * frame.h:
6954         * general-slots.h:
6955         * glyphs.c:
6956         * gutter.c:
6957         * inline.c:
6958         * lisp.h:
6959         * lrecord.h:
6960         * make-src-depend:
6961         * redisplay-output.c:
6962         * redisplay.c:
6963         * symsinit.h:
6964         * sysfile.h:
6965         * toolbar.c:
6966         * window.c:
6967         The Great GTK Merge.
6968
6969         * ChangeLog.GTK:
6970         * console-gtk.c:
6971         * console-gtk.h:
6972         * device-gtk.c:
6973         * emacs-marshals.c:
6974         * emacs-widget-accessors.c:
6975         * event-gtk.c:
6976         * frame-gtk.c:
6977         * gccache-gtk.c:
6978         * gccache-gtk.h:
6979         * glade.c:
6980         * glyphs-gtk.c:
6981         * glyphs-gtk.h:
6982         * gtk-glue.c:
6983         * gtk-xemacs.c:
6984         * gtk-xemacs.h:
6985         * gui-gtk.c:
6986         * gui-gtk.h:
6987         * menubar-gtk.c:
6988         * native-gtk-toolbar.c:
6989         * objects-gtk.c:
6990         * objects-gtk.h:
6991         * redisplay-gtk.c:
6992         * scrollbar-gtk.c:
6993         * scrollbar-gtk.h:
6994         * select-gtk.c:
6995         * toolbar-gtk.c:
6996         * ui-byhand.c:
6997         * ui-gtk.c:
6998         * ui-gtk.h:
6999         The Great GTK Merge: new files.
7000
7001 2001-02-26  Ben Wing  <ben@xemacs.org>
7002
7003         Reapplied Lstream change.
7004
7005 2001-02-26  Ben Wing  <ben@xemacs.org>
7006
7007         Undid the last change, since it is more controversial than I
7008         thought.  It should be back in at some point soon.
7009         
7010 2001-02-25  Ben Wing  <ben@xemacs.org>
7011
7012         * buffer.c:
7013         * callproc.c (Fold_call_process_internal):
7014         * event-msw.c (ntpipe_slurp_reader):
7015         * event-msw.c (ntpipe_shove_writer):
7016         * event-msw.c (winsock_reader):
7017         * event-msw.c (winsock_writer):
7018         * file-coding.c:
7019         * file-coding.c (detect_eol_type):
7020         * file-coding.c (detect_coding_type):
7021         * file-coding.c (determine_real_coding_system):
7022         * file-coding.c (Fdetect_coding_region):
7023         * file-coding.c (decoding_reader):
7024         * file-coding.c (decoding_writer):
7025         * file-coding.c (mule_decode):
7026         * file-coding.c (Fdecode_coding_region):
7027         * file-coding.c (encoding_reader):
7028         * file-coding.c (encoding_writer):
7029         * file-coding.c (mule_encode):
7030         * file-coding.c (Fencode_coding_region):
7031         * file-coding.c (detect_coding_sjis):
7032         * file-coding.c (decode_coding_sjis):
7033         * file-coding.c (encode_coding_sjis):
7034         * file-coding.c (detect_coding_big5):
7035         * file-coding.c (decode_coding_big5):
7036         * file-coding.c (encode_coding_big5):
7037         * file-coding.c (detect_coding_ucs4):
7038         * file-coding.c (decode_coding_ucs4):
7039         * file-coding.c (encode_coding_ucs4):
7040         * file-coding.c (detect_coding_utf8):
7041         * file-coding.c (decode_coding_utf8):
7042         * file-coding.c (encode_coding_utf8):
7043         * file-coding.c (detect_coding_iso2022):
7044         * file-coding.c (decode_coding_iso2022):
7045         * file-coding.c (encode_coding_iso2022):
7046         * file-coding.c (decode_coding_no_conversion):
7047         * file-coding.c (encode_coding_no_conversion):
7048         * glyphs-x.c (write_lisp_string_to_temp_file):
7049         * gpmevent.c (tty_get_foreign_selection):
7050         * lisp.h:
7051         * lstream.c:
7052         * lstream.c (Lstream_flush_out):
7053         * lstream.c (Lstream_adding):
7054         * lstream.c (Lstream_write_1):
7055         * lstream.c (Lstream_write):
7056         * lstream.c (Lstream_raw_read):
7057         * lstream.c (Lstream_read_more):
7058         * lstream.c (Lstream_read):
7059         * lstream.c (Lstream_unread):
7060         * lstream.c (Lstream_fputc):
7061         * lstream.c (stdio_reader):
7062         * lstream.c (stdio_writer):
7063         * lstream.c (filedesc_reader):
7064         * lstream.c (filedesc_writer):
7065         * lstream.c (lisp_string_reader):
7066         * lstream.c (struct fixed_buffer_stream):
7067         * lstream.c (make_fixed_buffer_input_stream):
7068         * lstream.c (make_fixed_buffer_output_stream):
7069         * lstream.c (fixed_buffer_reader):
7070         * lstream.c (fixed_buffer_writer):
7071         * lstream.c (struct resizing_buffer_stream):
7072         * lstream.c (resizing_buffer_writer):
7073         * lstream.c (dynarr_writer):
7074         * lstream.c (lisp_buffer_reader):
7075         * lstream.c (lisp_buffer_writer):
7076         * lstream.h:
7077         * lstream.h (lstream_implementation):
7078         * lstream.h (struct lstream):
7079         * md5.c (Fmd5):
7080         * process-nt.c (nt_send_process):
7081         * process-unix.c (unix_send_process):
7082         
7083         Correct Lstream lossage due to mixing of signed and unsigned
7084         quantities.  All Lstream uses of size_t and ssize_t are now a
7085         single signed data type Lstream_data_count.  This fixes problems
7086         under Windows with sending large quantities of data to a process,
7087         and may well fix other subtle bugs.
7088
7089 2001-02-23  Martin Buchholz <martin@xemacs.org>
7090
7091         * XEmacs 21.2.45 "Thelxepeia" is released.
7092
7093 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7094
7095         * lisp-union.h (XSETINT): 
7096         (XSETCHAR):
7097         (XSETOBJ): 
7098         Reverse previous change of 2001-02-06.
7099
7100 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7101
7102         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7103         buffers.
7104         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7105         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7106         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7107         * regex.c (POS_AS_IN_BUFFER): removed
7108         * regex.c (re_search_2):
7109         * regex.c (re_match_2):
7110         Don't use an offset of 1 when calculating buffer positions, since
7111         `BI_BUF_BEGV' does it already.
7112
7113 2001-02-18  Wim Dumon  <wim@easics.be>
7114
7115         * insdel.c (prepare_to_modify_buffer): Also check for
7116         supersession when clash-detection is enabled. 
7117
7118 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7119
7120         * regex.c (re_match_2_internal):
7121         Convert temp characters from 'const unsigned char' to 're_char'.
7122         Fix crashing bug with extended characters under mule.
7123         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7124         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7125         font-lock, pdump, and new syntax-table code.
7126         * syntax.c (find_start_of_comment):
7127         (find_end_of_comment):
7128         (forward-comment):
7129         Fix crashing bugs involving moving beyond end of buffer.
7130         * syntax.c (find_start_of_comment):
7131         Fixed logic to allow proper detection of cases where the same
7132         character is used to end both a two-char comment start and a
7133         two-char comment end sequence. Fixes `(forward-comment -1)'.
7134         * syntax.c (find_start_of_comment):
7135         Return position just past last comment-end character for all cases
7136         (previously was only done for two-char comment-end sequences).
7137         * syntax.c (forward-comment):
7138         Take value returned from `find_end_of_comment', rather than
7139         incrementing it.
7140         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7141         Properly deal with BUFFERP (syntax_cache.object)
7142
7143 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7144
7145         * alloc.c (Fgarbage_collect): 
7146         * alloc.c (make_bit_vector_from_byte_vector):
7147         -Wsign-compare-correctness.
7148
7149 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7150
7151         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7152         (XSETCHAR): Likewise.
7153         (XSETOBJ): Likewise.
7154
7155 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7156
7157         * mule-canna.c (canna-func-delete_previous): 
7158         Rename to canna-func-delete-previous.
7159
7160 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7161
7162         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7163
7164 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7165
7166         * font-lock.c (find_context): Fix C++ compile errors introduced by
7167         recent patch
7168
7169 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7170
7171         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7172         pragma, but earlier ones barf on the same pragma.
7173
7174 2001-02-06  Mike Sperber <mike@xemacs.org>
7175
7176         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7177         `configure-mule-lisp-directory'.
7178
7179 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7180
7181         Make sure dump-id.c is compiled in the same way as other .c's.
7182         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7183         * dump-id.h: Remove.
7184         * emacs.c: Move dump-id.h into dumper.h.
7185         * dumper.h: Move dump-id.h into dumper.h.
7186         * Makefile.in.in:
7187         Use standard .c.o rule for building dump-id.o.
7188         Remove preprocessor flags from link command.
7189         Add dump-id.o to ${otherobjs} if PDUMP.
7190
7191 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7192
7193         Port FSF 20.7 syntax table improvements.
7194         * syntax.c.
7195         * syntax.h.
7196
7197         Fixups for new syntax table stuff.
7198         * dired.c: Include syntax.c.
7199         (Fdirectory_files): Initialize regex_match_object and
7200         regex_emacs_buffer.
7201         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7202         and Fget_char_property.
7203
7204         Use ported FSF 20.7 syntax table improvements.
7205         * font-lock.c.
7206         * regex.c.
7207         * search.c.
7208         
7209 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7210
7211         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7212         Unixware's enum boolean from sys/types.h.
7213
7214 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7215
7216         Fix support for building with latest Purify.
7217         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7218         (PURIFY_FLAGS): Likewise.
7219
7220 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7221
7222         * fileio.c (lisp_string_set_file_times): New.
7223         * fileio.c (Fcopy_file): Use it.
7224         Fixes bug:
7225         (copy-file filename non-ascii-filename t t)
7226         ==> No such file or directory, non-ascii-filename
7227
7228 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7229
7230         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7231         USHRT_MAX seems clearer than ~0 anyways.
7232
7233 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7234
7235         dumper improvements.  Inspired by Olivier.
7236         * dumper.c (pdump_max_align): New.
7237         * dumper.c (pdump_add_entry): Use pdump_max_align.
7238         * dumper.c (pdump_get_entry_list): Likewise.
7239         * dumper.c (pdump_scan_by_alignment): Likewise.
7240         Don't iterate through unnecessary alignments.
7241         * dumper.c (pdump_file_get): No need to align result of malloc().
7242         * dumper.c (pdump_mallocadr): Remove.  
7243         The result of malloc() is guaranteed to be maximally aligned.
7244         * dumper.c: s/elmt/elt/g;
7245         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7246         * dumper.c (pdump_alert_undump_object): Likewise.
7247         * dumper.c (pdump_align_table): 
7248         Don't support alignments > 64.
7249         Store ALIGNOF's, not shift counts, in table.
7250
7251 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7252
7253         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7254         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7255         * systime.h: Use HAVE_UTIME.
7256         * sysdep.c (struct utimbuf): Remove.
7257         * sysdep.c (set_file_times): Prefer utime() to utimes().
7258         * config.h.in (HAVE_UTIME): New.
7259         * config.h.in (HAVE_UTIME_H): Remove.
7260         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7261
7262 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7263
7264         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7265
7266 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7267
7268         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7269
7270 2001-02-08  Martin Buchholz <martin@xemacs.org>
7271
7272         * XEmacs 21.2.44 "Thalia" is released.
7273
7274 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7275
7276         Fixes crashes in kill-emacs on some systems.
7277         * process-unix.c (unix_kill_child_process):
7278         It's OK for kill() to fail with ESRCH.
7279
7280 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7281
7282         Contortions to make .gdbinit tricks work on most systems.
7283         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7284         * alloc.c (dbg_valmask): Make non-const.
7285         * alloc.c (dbg_typemask): Make non-const.
7286         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7287         * alloc.c (dbg_valbits): Make non-const.
7288         * alloc.c (dbg_gctypebits): Make non-const.
7289         * .gdbinit (decode_object): Make it work with AIX cc.
7290
7291 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7292
7293         * elhash.c (make_general_lisp_hash_table):
7294         Use simpler and more efficient calloc to clear entries.
7295
7296 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7297
7298         * window.c (window_scroll): Work around an AIX C compiler bug.
7299         Fixes 'scroll-up' does nothing problem with xlC.
7300
7301 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7302
7303         * .gdbinit: Remove obsolete comment.
7304
7305 2001-01-31  Mike Alexander  <mta@arbortext.com>
7306
7307         * select.c (Fown_selection_internal): Set owned_p for device
7308         method correctly.
7309
7310 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7311
7312         Port to g++ 2.97.
7313         "not" cannot be used as a macro name as it is an operator in C++
7314         * config.h.in: Stop #defining `not'.
7315         * chartab.c (check_category_char): not ==> not_p
7316         * chartab.h: Likewise.
7317         * regex.c (re_match_2_internal): Likewise.
7318
7319 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7320
7321         * lisp-disunion.h: Fix up comments.
7322
7323 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7324
7325         * keymap.c (define_key_check_and_coerce_keysym):
7326         (syms_of_keymap):
7327         Support mouse-6 and mouse-7 bindings in the obvious way.
7328
7329 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7330
7331         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7332
7333 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7334
7335         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7336         Previous patch missed DEFVAR_INT_MAGIC.
7337         Make sure future DEFVAR_foo use correct types.
7338         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7339         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7340         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7341         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7342         * (DEFVAR_INT): Likewise.
7343         * redisplay.c (vertical_clip): Should be of type Fixnum.
7344         * redisplay.c (horizontal_clip): Likewise.
7345         * lisp.h (dump_add_opaque_int): New.
7346         (dump_add_opaque_fixnum): New.
7347
7348 2001-01-29  Andy Piper  <andy@xemacs.org>
7349
7350         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7351         since they can be eval'ed
7352
7353 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7354
7355         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7356         Oops, XEmacs redefines `class'.  Use `typename' instead.
7357
7358 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7359
7360         * dumper.c: Fix C++ compile errors.
7361
7362 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7363
7364         * tparam.c: Use correct prototypes.
7365
7366 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7367
7368         * sysproc.h: #include util.h for NetBSD's openpty.
7369
7370 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7371
7372         More 64-bit correctness.
7373         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7374         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7375         Fix up comments.
7376         This finally finishes the 64-bit SGI port.
7377         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7378         * symbols.c: Fix up comments and type casts.
7379         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7380         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7381         * symeval.h (Fixnum): New type.
7382         * symeval.h (symbol_value_type): Fix up comment.
7383
7384         * commands.h:
7385         * nt.c:
7386         * emacs.c:
7387         * data.c:
7388         * redisplay.c:
7389         * abbrev.c:
7390         * dired-msw.c:
7391         * event-Xt.c:
7392         * eldap.c:
7393         * window.c:
7394         * sound.c:
7395         * event-stream.c:
7396         * eval.c:
7397         * buffer.c:
7398         * mule-canna.c: A million DEFVAR_INTs here...
7399         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7400         * extents.c:
7401         * cmdloop.c:
7402         * lisp.h:
7403         * select-x.c:
7404         * console-x.h:
7405         * event-msw.c:
7406         * mule-wnnfns.c:
7407         * hpplay.c:
7408         * ralloc.c:
7409         * alloc.c:
7410         * keymap.c:
7411         * profile.c:
7412         s/int/Fixnum/g in DEFVAR_INT declarations.
7413
7414 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7415
7416         Port pdump to SGI alignment-sensitive environment.
7417         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7418         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7419         properly aligned.
7420         Define and use aligned reading and writing macros.
7421         Use buffered stdio instead of posix i/o for faster dumping.
7422         Eliminate kludgy 256 byte space for header.
7423         Read and write from dump file using structs for alignment safety.
7424         * dumper.c (pdump_align_stream): New.
7425         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7426         * dumper.c (PDUMP_READ_ALIGNED): New.
7427         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7428         * dumper.c (pdump_static_Lisp_Object): New struct.
7429         * dumper.c (pdump_static_pointer): New struct.
7430         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7431         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7432         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7433         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7434
7435         * dumper.c (pdump_backtrace):
7436         * dumper.c (pdump_get_indirect_count):
7437         * dumper.c (pdump_register_object):
7438         * dumper.c (pdump_register_struct):
7439         * dumper.c (pdump_reloc_one):
7440         * dumper.c (pdump_scan_by_alignment):
7441         * dumper.c (pdump_dump_from_root_struct_ptrs):
7442         * dumper.c (pdump_dump_opaques):
7443         * dumper.c (pdump_dump_rtables):
7444         * dumper.c (pdump_dump_from_root_objects):
7445         * dumper.c (pdump):
7446         * dumper.c (pdump_load_finish):
7447         Use aligned reading and writing.
7448
7449         * dumper.c (pdump_free): Make static.
7450         * dumper.c (pdump_hFile): Likewise.
7451         * dumper.c (pdump_hMap): Likewise.
7452
7453 2001-01-26  Martin Buchholz <martin@xemacs.org>
7454
7455         * XEmacs 21.2.43 "Terspichore" is released.
7456
7457 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7458
7459         Type fiddling for window_config.saved_windows_count
7460         * window.c (struct window_config): 
7461         Make saved_windows_count member unsigned.
7462         * window.c (sizeof_window_config_for_n_windows): 
7463         Make parameter unsigned.
7464         * window.c (mark_window_config):
7465         * window.c (window_config_equal):
7466         * window.c (free_window_configuration):
7467         * window.c (Fset_window_configuration):
7468         * window.c (count_windows):
7469         * window.c (Fcurrent_window_configuration):
7470         * window.c (reinit_vars_of_window):
7471         Update all callers and users.
7472
7473 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7474
7475         Alignment correctness for flexible arrays.
7476         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7477         Make alignment-correct. Add interesting comments.
7478         * alloc.c (size_vector):
7479         * alloc.c (make_vector_internal):
7480         * alloc.c (make_bit_vector_internal):
7481         * alloc.c (sweep_bit_vectors_1):
7482         * fns.c (size_bit_vector):
7483         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7484         * window.c (sizeof_window_config_for_n_windows): 
7485         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7486
7487 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7488
7489         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7490
7491 2001-01-23  Andy Piper  <andy@xemacs.org>
7492
7493         * select.c (Fown_selection_internal): pass owned_p
7494
7495         * select-msw.c (mswindows_own_selection): New Signature.
7496
7497         * console.h (struct console_methods): add owned_p to
7498         _own_selection.
7499
7500         * select-x.c (x_own_selection): pass owned_p
7501         (hack_motif_clipboard_selection): use owned_p
7502         (vars_of_select_x): new variable -
7503         x_selection_strict_motif_ownership.
7504
7505 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7506
7507         * specifier.h (specifier_data_offset): Remove pointless parens.
7508         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7509
7510 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7511
7512         Make Lisp_Object sizeof methods be alignment-correct.
7513         pdump must restore objects to the same alignment as the C compiler
7514         assumes.  It really matters on SGIs.
7515         * lstream.c (aligned_sizeof_lstream): New.
7516         (sizeof_lstream): Use aligned_sizeof_lstream.
7517         (Lstream_new): Likewise.
7518         * opaque.c (aligned_sizeof_opaque): New.
7519         (sizeof_opaque): Use aligned_sizeof_opaque.
7520         (make_opaque): Likewise.
7521         * specifier.c (aligned_sizeof_specifier): New.
7522         (sizeof_specifier): Use aligned_sizeof_specifier.
7523         (make_specifier_internal): Likewise.
7524
7525 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7526
7527         * lstream.h (struct lstream): Use max_align_t for trailing data.
7528         * specifier.h (struct Lisp_Specifier): Likewise.
7529
7530 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7531
7532         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7533         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7534         (CCL_SUSPEND): Likewise.
7535         (CCL_INVALID_CMD): Likewise.
7536         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7537         (ccl_driver): Likewise.
7538         (CCL_WRITE_CHAR): Macro hygiene.
7539         (CCL_WRITE_STRING): Macro hygiene.
7540
7541 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7542
7543         Port "portable" dumper to SunOS 4 and HP-UX.
7544         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7545         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7546         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7547
7548 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7549
7550         * lisp.h (ALIGNOF): A better definition for C++.
7551
7552 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7553
7554         Macro hygiene.
7555         Fix printf warnings: int format, long int arg.
7556         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7557         (PUSH_FAILURE_POINT): Use correct printf formats.
7558         (POP_FAILURE_POINT): Use correct printf formats.  
7559         Use do {...} while (0)
7560
7561 2001-01-20  Martin Buchholz <martin@xemacs.org>
7562
7563         * XEmacs 21.2.42 "Poseidon" is released.
7564
7565 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7566
7567         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7568
7569 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7570
7571         De-kludgify FIXED_TYPE free list frobbing.
7572         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7573         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7574         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7575         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7576         * alloc.c (LRECORD_FREE_P): New.
7577         * alloc.c (MARK_LRECORD_AS_FREE): New.
7578         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7579         * alloc.c (STRUCT_FREE_P): Deleted.
7580         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7581         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7582         * alloc.c (STRING_CHARS_FREE_P): New.
7583         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7584         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7585         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7586         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7587         * alloc.c (resize_string): Use new definitions.
7588         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7589         * alloc.c (verify_string_chars_integrity): Use new definitions.
7590         * alloc.c (compact_string_chars): Use new definitions.
7591         * alloc.c: Update monster comments.
7592         * lrecord.h (lrecord_type): Add some new lrecord types for
7593         alloc.c's use.
7594
7595 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7596
7597         Improve alignment hackery.
7598         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7599         (max_align_t): Moved from opaque.h - general purpose.
7600         (ALIGN_PTR): Use size_t, not long.
7601         * opaque.h (max_align_t): Move to lisp.h.
7602
7603 2001-01-18  Norbert Koch  <nk@LF.net>
7604
7605         * gui.h: Fix and add prototypes to fix build problems.
7606
7607 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7608
7609         temacs is going away, so `dump-temacs' is now a bad name.
7610         * .dbxrc (dump-temacs): Rename to `dmp'.
7611         * .gdbinit (dump-temacs): Rename to `dmp'.
7612
7613 2001-01-17  Andy Piper  <andy@xemacs.org>
7614
7615         * glyphs.c (print_image_instance): comment to make martin happy.
7616
7617         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7618         change.
7619
7620         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7621         activation.
7622         (mswindows_tab_control_redisplay): warning suppression.
7623
7624         * glyphs-widget.c (widget_update): re-write to cope with updated
7625         items.
7626         (widget_instantiate): use new gui_item functions.
7627         (tab_control_update): deleted.
7628         (progress_gauge_update): deleted.
7629         (image_instantiator_progress_guage): take out update reference.
7630         (image_instantiator_tree_view): ditto.
7631         (image_instantiator_tab_control): ditto.
7632
7633         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7634         Right the new way.
7635         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7636         return whether anything was changed.
7637         (update_gui_item_keywords): as it sounds.
7638
7639         * gui.h: declare widget_gui_parse_item_keywords.
7640
7641         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7642         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7643
7644 2001-01-17  Martin Buchholz <martin@xemacs.org>
7645
7646         * XEmacs 21.2.41 "Polyhymnia" is released.
7647
7648 2001-01-16  Didier Verna  <didier@xemacs.org>
7649
7650         * glyphs.c (image_instantiate): don't use fallbacks when
7651         instantiating a face's background pixmap by inheritance.
7652
7653 2001-01-14  Mike Sperber <mike@xemacs.org>
7654
7655         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7656         Conditionalize accordingly.
7657
7658 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7659
7660         * dumper.c (pdump_file_get): Fix a compiler warning.
7661
7662 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7663
7664         Make Purify happy when pdumping.
7665         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7666         iniitalizing all bits of new lisp object memory.
7667         * symbols.c (Fmake_local_variable): Likewise.
7668         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7669         * symbols.c (Fdefvaralias): Likewise.
7670         * mule-charset.c (vars_of_mule_charset): Likewise.
7671
7672 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7673         Add the `-nd' flag when running pre-dump operations under the debugger.
7674         * .dbxrc (run-temacs): Add `-nd'.
7675         * .dbxrc (update-elc): Likewise.
7676         * .dbxrc (dump-temacs): Likewise.
7677         * .gdbinit (run-temacs): Likewise.
7678         * .gdbinit (check-temacs): Likewise.
7679         * .gdbinit (update-elc): Likewise.
7680         * .gdbinit (dump-temacs): Likewise.
7681
7682 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7683
7684         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7685         export OBJECT_MODE=64
7686         configure --pdump --use-union-type=no
7687         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7688         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7689
7690         * miscplay.c (sndcnv8U_2mono):
7691         Avoid two uses of `++' in the same expression.
7692         Suppresses a GCC warning.
7693
7694 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7695
7696         Make sure future compilers don't miscompile alloc.c.
7697         * alloc.c:
7698         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7699         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7700
7701 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7702
7703         * dumper.c: A little post-pdump-rename comment fixup.
7704
7705 2001-01-09  Jerry James  <james@eecs.ku.edu>
7706
7707         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7708
7709 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7710
7711         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7712         script:
7713         #!/bin/sh
7714         replace_symbol () {
7715           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7716         }
7717
7718         replace_symbol pdump_wire_lists pdump_weak_object_chains
7719         replace_symbol pdump_wire_list dump_add_weak_object_chain
7720
7721         replace_symbol pdump_wires pdump_root_objects
7722         replace_symbol pdump_wire dump_add_root_object
7723
7724         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7725         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7726
7727         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7728         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7729         replace_symbol dumpstructinfo pdump_root_struct_ptr
7730         replace_symbol dumpstruct dump_add_root_struct_ptr
7731
7732         replace_symbol dumpopaque dump_add_opaque
7733         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7734         replace_symbol dumpopaqueinfos pdump_opaques
7735         replace_symbol dumpopaqueinfo pdump_opaque
7736
7737         replace_symbol nb_structdump nb_root_struct_ptrs
7738         replace_symbol nb_opaquedump nb_opaques
7739
7740         replace_symbol align_table pdump_align_table
7741         replace_symbol dump_header pdump_header
7742
7743         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7744         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7745
7746
7747 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7748
7749         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7750         optimizing bytecount_to_charcount().
7751
7752 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7753
7754         * config.h.in:
7755         (HAVE_DLFCN_H): Removed.
7756         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7757
7758 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7759
7760         Portable dumper maintainability improvements.
7761         * alloc.c (staticpro):
7762         * alloc.c (staticpro_nodump):
7763         * alloc.c (garbage_collect_1):
7764         * alloc.c (reinit_alloc_once_early):
7765         * alloc.c (init_alloc_once_early):
7766         * alloc.c: Move dumper functions to alloc.c.
7767         * dumper.c (pdump_backtrace):
7768         * dumper.c (pdump_dump_structs):
7769         * dumper.c (pdump_dump_opaques):
7770         * dumper.c (pdump_dump_rtables):
7771         * dumper.c (pdump_dump_wired):
7772         * dumper.c (pdump):
7773         * dumper.c (pdump_load_check):
7774         * dumper.c (pdump_load_finish):
7775         * dumper.c (pdump_file_unmap):
7776         * dumper.c (pdump_file_get):
7777         * dumper.c (pdump_resource_free):
7778         * dumper.c (pdump_resource_get):
7779         * dumper.c (pdump_file_free):
7780         * dumper.c (pdump_file_try):
7781         * dumper.c (pdump_load):
7782         Remove fixed size limits on staticpro(), staticpro_nodump(),
7783         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7784         Remove custom code for dumping lrecord_implementations_table - use
7785         dumpopaque instead.
7786         Remove (most of the) custom code for dumping staticpros - dump it
7787         like any other dynarr.
7788
7789         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7790         * dumper.c: Moved functions from alloc.c.
7791         * alloc.c (dumpstruct): Moved to dumper.c.
7792         * alloc.c (dumpopaque): Likewise.
7793         * alloc.c (pdump_wire): Likewise.
7794         * alloc.c (pdump_wire_list): Likewise.
7795
7796         * lisp.h (Dynarr_sizeof): New.
7797         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7798         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7799         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7800
7801         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7802         * lisp.h (dumpopaque): ditto.
7803         * lisp.h (pdump_wire): ditto.
7804         * lisp.h (pdump_wire_list): ditto.
7805
7806 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7807
7808         * make-src-depend (PrintPatternDeps):
7809         Use `sort' to make output independent of perl version.
7810
7811 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7812
7813         Port to Netbsd 1.5.
7814         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7815         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7816
7817 2001-01-03  Didier Verna  <didier@xemacs.org>
7818
7819         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7820         that `focus_frame' is alive before thinking of calling
7821         `redisplay_redraw_cursor' on it.
7822
7823 2001-01-08  Martin Buchholz <martin@xemacs.org>
7824
7825         * XEmacs 21.2.40 is released.
7826
7827 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7828
7829         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7830
7831 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7832
7833         * alloc.c (dbg_valmask): Make const.
7834         * alloc.c (dbg_typemask): Make const.
7835         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7836         * alloc.c (dbg_valbits): Make const.
7837         * alloc.c (dbg_gctypebits): Make const.
7838
7839 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7840
7841         * redisplay-x.c (x_bevel_area):
7842         redisplay.h (struct rune):
7843         Typo fixes in comments.
7844
7845 2001-01-05  Andy Piper  <andy@xemacs.org>
7846
7847         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7848         adjustment.
7849
7850         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7851
7852 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7853
7854         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7855
7856         * mule-ccl.c (stack_idx_of_map_multiple):
7857         Non const global data must not be initialized!
7858         Found by MIYASHITA Hisashi.
7859
7860 2001-01-02  Andy Piper  <andy@xemacs.org>
7861
7862         * frame.c (change_frame_size): make sure frame size is always
7863         marked as changed.
7864
7865         * glyphs.c (image_instance_layout): minor code reuse.
7866
7867         * window.c (Fcurrent_window_configuration): revert previous
7868         change.
7869
7870 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7871
7872         * glyphs.h:
7873         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7874
7875 2000-12-31  Andy Piper  <andy@xemacs.org>
7876
7877         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7878         when widget gets unmapped.
7879
7880         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7881         function. Make sure widgets losing focus don't just drop it.
7882         (handle_focus_event_1): record the widget with focus.
7883
7884 2000-12-31  Andy Piper  <andy@xemacs.org>
7885
7886         * window.c (allocate_window): use
7887         make_image_instance_cache_hash_table.
7888         (make_dummy_parent): ditto.
7889         (Fset_window_configuration): ditto.
7890
7891         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7892
7893         * glyphs.c (process_image_string_instantiator): use
7894         INSTANTIATOR_TYPE.
7895         (get_image_instantiator_governing_domain): ditto.
7896         (normalize_image_instantiator): ditto.
7897         (instantiate_image_instantiator): ditto.
7898         (make_image_instance_1): ditto.
7899         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7900         (instantiator_eq_equal): new function for use with instance hash
7901         tables.
7902         (instantiator_eq_hash): ditto.
7903         (make_image_instance_cache_hash_table): create a suitable hash
7904         table for storing image instances.
7905
7906         * elhash.h (hash_table_weakness): new internal weakness type
7907         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7908         declare new functions.
7909
7910         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7911         another weakness type for glyphs.
7912         (make_standard_lisp_hash_table): new function split out from
7913         make_general_lisp_hash_table.
7914         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7915         (hash_table_instantiate): ditto.
7916         (Fmake_hash_table): ditto.
7917
7918 2000-12-31  Martin Buchholz <martin@xemacs.org>
7919
7920         * XEmacs 21.2.39 is released.
7921
7922 2000-12-29  Andy Piper  <andy@xemacs.org>
7923
7924         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7925
7926         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7927         the frame has changed so that we pick up geometry changes such as
7928         menubar visibility.
7929
7930 2000-12-28  Andy Piper  <andy@xemacs.org>
7931
7932         * lastfile.c (my_ebss): make a char array so we can pad the
7933         bss. Fixes cygwin unexec.
7934
7935         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7936
7937 2000-12-26  Andy Piper  <andy@xemacs.org>
7938
7939         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7940         comments and try and be more precise about a non-/SIGIO world.
7941         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7942         SIGIO.
7943
7944         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7945         we don't normalize to zero width or height.
7946
7947 2000-12-24  Andy Piper  <andy@xemacs.org>
7948
7949         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7950
7951 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7952
7953         * s/sco5.h: SCO 5 has pty support.
7954
7955 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7956
7957         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7958         input-method-xlib.c contains whole contents of input-method-xfs.c,
7959         so we can use input-method-xlib.c's code for USE_XFONTSET
7960         using #ifdefs.
7961         * input-method-xfs.c: removed.
7962
7963 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7964
7965         * file-coding.h (enum coding_category_type): reorder enumerators to
7966         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7967         (now one greater than largest real coding_category_type enumerator).
7968         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7969         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7970         Fcoding_category_list, Fset_coding_priority_list,
7971         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7972         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7973
7974 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7975
7976         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7977         * redisplay-output.c (redisplay_output_window): Clear top of window
7978         when face is changed.
7979         * redisplay-x.c (x_redraw_exposed_window): Call
7980         redisplay_clear_top_of_window.
7981         * redisplay.h: Publish redisplay_clear_top_of_window.
7982
7983 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7984
7985         * buffer.c (Fkill_buffer): Map over all devices.
7986         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7987         (list_windows): New function.
7988         (list_all_windows): Ditto.
7989         (Freplace_buffer_in_windows): Use them.
7990
7991 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7992
7993         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7994         (Fopen_database): Use `db_create' instead of `db_open'.
7995         (syms_of_database): Initialize Qqueue.
7996
7997 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7998
7999         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8000         buffer_local_face_property.
8001         * buffer.h (struct buffer): New member buffer_local_face_property.
8002         * window.c (Fset_window_buffer):  Mark window's face as changed
8003         when buffer has buffer local face.
8004         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8005         * objects.c (color_after_change): Set buffer_local_face_property
8006         when locale of face specifier is buffer.
8007         * objects.c (font_after_change): Ditto.
8008         * objects.c (face_boolean_after_change): Ditto.
8009         * glyphs.c (image_after_change): Ditto.
8010
8011 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8012
8013         * nt.c (mswindows_fstat): Report file permissions, volume serial
8014         number, etc. Code adapted from FSF Emacs 20.7.
8015
8016 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8017
8018         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8019         of stat when we don't have symbolic links, to make sure
8020         mswindows_stat is called on mswindows.
8021
8022 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8023
8024         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8025
8026 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8027
8028         * doprnt.c (emacs_doprnt_1): More printing fixes.
8029         Make printing of numbers compatible with libc and FSF Emacs.
8030         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8031         Use the system printf to do most of the hard work of formatting,
8032         instead of doprnt_1().
8033         Calculate memory to allocate for format string.
8034         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8035         (doprnt_1): Cleaner code and documentation.
8036
8037 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8038
8039         * Makefile.in.in: Use the loop variable to install headers.
8040
8041 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8042
8043         * window.c (Fsplit_window): Don't invalidate face cache.
8044
8045 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8046
8047         * minibuf.c (Fall_completions): Undo the previous change
8048         which removed checking elements start with space.
8049
8050 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8051
8052         * mule-canna.c: Didier suppression.
8053
8054 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8055
8056         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8057         (warning suppression).  Add English comment translations.
8058
8059 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8060
8061         * unexelfsgi.c (unexec): Better test for mmap failure.
8062
8063 2000-12-05  Martin Buchholz <martin@xemacs.org>
8064
8065         * XEmacs 21.2.38 is released.
8066
8067 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8068
8069         * redisplay.c (bar-cursor): Make a user variable.
8070
8071         * symsinit.h: Add init_postgresql_from_environment.
8072
8073 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8074
8075         * regex.c: Convert to clean C.
8076
8077 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8078
8079         * realpath.c:
8080         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8081         initialization.
8082         (sys_readlink): renamed to system_readlink to avoid conflict with
8083         the other sys_readlink.
8084
8085 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8086
8087         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8088
8089 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8090
8091         * postgresql.c (init_postgresql_from_environment): new function.
8092         (vars_of_postgresql): Move code initializing Lisp variables out and
8093         into init_postgresql_from_environment.
8094         emacs.c (main_1): Call init_postgresql_from_environment if and only
8095         if running a dumped XEmacs.
8096
8097 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8098
8099         * buffer.c: Make find-file-compare-truenames default to true on
8100         windows.
8101
8102         * realpath.c (win32_abs_start):
8103         (cygwin_readlink):
8104         (win32_readlink): New functions.
8105         (xrealpath): Return really real filenames on windows.
8106
8107         * fileio.c (Ffile_truename): Make file-truename work on windows.
8108
8109 2000-11-29  Didier Verna  <didier@xemacs.org>
8110
8111         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8112         * faces.c (update_face_cachel_data): use it.
8113         * faces.c (add_face_cachel): use it. Complete background pixmap
8114         frobbing in face cache if `update_face_cachel_data' has not done so.
8115
8116 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8117
8118         * search.c (string_match_1): Don't set last_thing_searched
8119         when search failed.
8120
8121 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8122
8123         * buffer.c: Include casetab.h
8124         (common_init_complex_vars_of_buffer): Use new case-table object.
8125         * buffer.h: Include casetab.h
8126         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8127         (DOWNCASE_TABLE_OF): Ditto.
8128         * bufslots.h: Remove char-tables and add case-table.
8129         * casetab.c: Include casetab.h
8130         (CASE_TABLE_P): Removed.
8131         (mark_case_table): New function.
8132         (allocate_case_table): New function.
8133         (Fcase_table_p): Use new case-table.
8134         (case_table_char): New function.
8135         (Fget_case_table): Ditto.
8136         (Fput_case_table): Ditto.
8137         (Fput_case_table_pair): Ditto.
8138         (Fcopy_case_table): Ditto.
8139         (Fcurrent_case_table): Return case-table.
8140         (Fstandard_case_table): Return case-table.
8141         (Fset_case_table): Fix doc-string.
8142         (set_case_table): Use case-table
8143         (syms_of_casetab): DEFSUBR new functions.
8144         (complex_vars_of_casetab): Set up standard case-table.
8145         * casetab.h: New file.
8146         * editfns.c: Include casetab.h
8147         (Fcompare_buffer_substrings): Use case-table.
8148         * inline.c: Include casetab.h
8149         * lisp.h: Remove bogus extern.
8150         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8151         * search.c: Include casetab.h
8152         (TRANSLATE_ASCII): Removed.
8153         (TRANSLATE): Unconditionally translate character.
8154         (looking_at_1): Use case-table.
8155         (string_match_1): Ditto.
8156         (fast_string_match): Ditto.
8157         (search_command): Ditto.
8158         (search_buffer): Separate boyer_moore.  Check whether
8159         boyer_moore is possible.
8160         (simple_search): New function.
8161         (boyer_moore): Separated from search_buffer. Translate char.
8162
8163 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8164
8165         * regex.c (RE_TR_ASCII): Removed.
8166         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8167         (PATFETCH): Call PATFETCH_RAW.
8168         (PATFETCH_RAW): Fetch Emchar.
8169         (PATUNFETCH): Decrement charptr.
8170         (GET_BUFFER_SPACE): Rename b to buf_end.
8171         (BUF_PUSH): Ditto.
8172         (BUF_PUSH_2): Ditto.
8173         (BUF_PUSH_3): Ditto.
8174         (EXTEND_BUFFER): Ditto.
8175         (SET_LIST_BIT): Ditto.
8176         (regex_compile): Ditto.  Translate non ASCII char.
8177         (compile_range): Ditto.
8178         (re_search_2): Ditto.
8179         (re_match_2_internal): Compare Emchar.
8180         (bcmp_translate): Ditto.
8181
8182 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8183
8184         * lisp.h (basic char/int typedefs):  comment improvement.
8185
8186 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8187
8188         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8189         unstomp inhibit_site_lisp.  Improve comments.
8190
8191 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8192
8193         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8194
8195 2000-11-28  Andy Piper  <andy@xemacs.org>
8196
8197         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8198         clipped display for windows in the gutter also.
8199         (redisplay_display_boxes_in_window_p): change semantics of return
8200         codes to be more intuitive.
8201
8202         * gutter.h: declare display_boxes_in_gutter_p.
8203
8204         * gutter.c (display_boxes_in_gutter_p): new function for
8205         redisplay.
8206
8207 2000-11-22  Andy Piper  <andy@xemacs.org>
8208
8209         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8210         autodetect domain.
8211
8212 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8213
8214         * callproc.c (Fold_call_process_internal):
8215         * gpm.c (Freceive_gpm_event):
8216         (tty_get_foreign_selection): Might be just warning supression.
8217         * fileio.c (Fwrite_region_internal):
8218         (Fset_visited_file_modtime):
8219         * keymap.c (event_matches_key_specifier_p):
8220         Initialize GCPROed variable.
8221
8222         * menubar-x.c (command_builder_find_menu_accelerator):
8223         Initialize before use.
8224
8225 2000-11-23  Andy Piper  <andy@xemacs.org>
8226
8227         * unexcw.c (unexec): make the resulting executable executable.
8228
8229 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8230
8231         * doc.c (get_doc_string):
8232         Use size_t, not int, for result of XSTRING_LENGTH.
8233
8234         * cmds.c (Fdelete_char):
8235         * cmds.c (Fpoint_at_eol):
8236         * cmds.c (Fself_insert_command):
8237         Use EMACS_INT, not int, for result of XINT.
8238         Someday, someone will want to insert more than 2**31 identical characters.
8239
8240         * cmds.c (Fdelete_char):
8241         * cmds.c (Fdelete_backward_char):
8242         * syntax.c (Fforward_word):
8243         * syntax.c (Fforward_comment):
8244         Make COUNT argument optional, for consistency with forward-char et al.
8245
8246 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8247
8248         * lisp.h:
8249         * print.c (long_to_string):
8250         Return a useful value: the pointer at end of data written.
8251
8252         * doprnt.c:
8253         Use `static const char * const' for constant strings.
8254         (union printf_arg): Delete `i', `ui' members.
8255         (get_doprnt_args):
8256         (emacs_doprnt_1):
8257         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8258         Do all printf-ing via the `l' specifier.
8259         Use EMACS_INT instead of int.
8260         Optimize.
8261
8262 2000-11-20  Didier Verna  <didier@xemacs.org>
8263
8264         * faces.c (update_face_cachel_data): don't frob the background
8265         pixmap when the window is being created. The face is needed but
8266         does not exist yet.
8267
8268 2000-11-20  Andy Piper  <andy@xemacs.org>
8269
8270         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8271         messing with a debug environment.
8272
8273 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8274
8275         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8276
8277 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8278
8279         * casetab.c (Fcase_table_p): Fix compile error and crash.
8280
8281 2000-11-18  Philip Aston  <philipa@mail.com>
8282
8283         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8284
8285 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8286
8287         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8288         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8289
8290 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8291
8292         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8293         * unexelf.c: Use HAVE_ELF_H.
8294         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8295         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8296         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8297         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8298         for testing.
8299         So this is an unexelfsgi.c from a different line of development.
8300
8301 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8302
8303         * regex.c (RE_TR_ASCII): New function.
8304         (RE_TRANSLATE): Call it.
8305
8306 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8307
8308         * buffer.h (TRT_TABLE_OF): Remove assert.
8309         (IN_TRT_TABLE_DOMAIN): Removed.
8310
8311 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8312
8313         * free-hook.c (log_gcpro):
8314         (show_gcprohist): Add support for GCPRO5.
8315
8316 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8317
8318         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8319
8320 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8321
8322         * symeval.h: Declare flush_all_buffer_local_cache.
8323
8324         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8325         (flush_buffer_local_cache): Added.
8326         (flush_all_buffer_local_cache): Added.
8327
8328         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8329
8330         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8331         (pdump_dump_data): Ditto.
8332         (pdump_reloc_one): Ditto.
8333         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8334         before dumping.
8335
8336
8337 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8338
8339         * buffer.c: Remove if 0'ed entry.
8340         * buffer.h: Rewrite TRT to use char-table.
8341         * bufslots.h: Remove mirror tables.
8342         * casetab.c: Remove mirror tables.
8343         (CASE_TABLE_P): New macro.
8344         (Fcase_table_p): Element of a case table is string or char-table.
8345         (make_mirror_trt_table): Removed.
8346         (set_case_table): Setup char-table from strings for backward
8347         compatibility.
8348         * dired.c (Fdirectory_files):
8349         * dired-msw.c: (mswindows_get_files):
8350         * lisp.h: Change prototype of re_pattern_buffer.
8351         * regex.c: (RE_TRANSLATE): New macro.
8352         (TRANSLATE_P): Ditto.
8353         Change translate to type RE_TRANSLATE_TYPE.
8354         * regex.h: Define RE_TRANSLATE_TYPE
8355         * search.c (TRANSLATE): New macro.
8356         (TRANSLATE_ASCII): New macro.
8357         Translate table is changed to Lisp_Object.
8358         (signal_failure): Inhibit return.
8359
8360 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8361
8362         * device-msw.c:
8363         * eldap.c:
8364         * event-Xt.c:
8365         * event-stream.c:
8366         * print.c:
8367         Do UNGCPRO before return.
8368
8369 2000-11-14  Martin Buchholz <martin@xemacs.org>
8370
8371         * XEmacs 21.2.37 is released.
8372
8373 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8374
8375         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8376         Add comments about discarded return value.
8377
8378 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8379
8380         * callint.c:
8381         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8382
8383 2000-10-27  Andy Piper  <andy@xemacs.org>
8384
8385         * gutter.c (Fset_default_gutter_position): default left and right
8386         gutters to visible.
8387         (calculate_gutter_size): calculate resonable heuristic for left
8388         and right gutter sizes.
8389         (specifier_vars_of_gutter): change left and right gutter sizes to
8390         autodetect.
8391         (calculate_gutter_size_from_display_lines): new function.
8392         (output_gutter): check for resizing on left and right gutters.
8393         (clear_gutter): don't special case top and left gutters.
8394         (specifier_vars_of_gutter): use new signature for
8395         set_specifier_caching.
8396
8397         * glyphs-x.c (x_redisplay_widget): spelling fix.
8398         * glyphs.c (specifier_vars_of_glyphs):
8399         * menubar.c (specifier_vars_of_menubar):
8400         * redisplay.c (specifier_vars_of_redisplay):
8401         * toolbar.c (specifier_vars_of_toolbar):
8402         * window.c (specifier_vars_of_window):
8403         * scrollbar.c (specifier_vars_of_scrollbar):
8404         (complex_vars_of_scrollbar): use new signature for
8405         set_specifier_caching.
8406
8407         * specifier.c (set_specifier_caching): include recompute flag.
8408         (recompute_one_cached_specifier_in_window): always recompute if
8409         flag set.
8410         (recompute_one_cached_specifier_in_frame): ditto.
8411
8412         * specifier.h (struct specifier_caching): add recompute flag.
8413
8414 2000-10-24  Andy Piper  <andy@xemacs.org>
8415
8416         * unexcw.c (copy_executable_and_dump_data_section): add new
8417         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8418         5.0 happy.
8419
8420 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8421
8422         * console-x.h (x_device): New member modifier_release_time.
8423         * event-Xt.c (x_handle_sticky_modifiers):
8424         Bound interval modifier keys are sticky.
8425         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8426         * events.h: extern it.
8427
8428 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8429
8430         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8431
8432 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8433
8434         * event-stream.c (execute_command_event): Preserve current_events
8435         and the like when event is misc-user-event.
8436         Inhibit quit during the call to maybe_echo_keys.
8437
8438 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8439
8440         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8441         symlink when buffer is killed.
8442         (inhibit_clash_detection): New variable.
8443
8444 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8445
8446         * console.c (Fset_input_method): Trigger redisplay on tty.
8447
8448 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8449
8450         * process.c (Fprocess_status): Revert to previous behavior:
8451         (process-status "nosuchprocess") ==> nil
8452
8453 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8454
8455         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8456         Work around another GCC 2.95.2 optimizer bug.
8457
8458 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8459
8460         * process.c (Fget_process): Use LIST_LOOP_2.
8461         (kill_buffer_processes): Use LIST_LOOP_2.
8462
8463         * minibuf.c (Fall_completions):
8464         Delete old non-functional code for FSF fourth argument.
8465
8466         * frame.c (frame_matches_frame_spec):
8467         Renamed from `frame_matches_frametype'.  Update all callers.
8468         (device_matches_device_spec):
8469         Renamed from 'device_matches_console_spec'.  Update all callers.
8470
8471         * doc.c (Fsubstitute_command_keys):
8472         Remove buffer overflow crash.  Small code cleanups.
8473
8474         * casetab.c (check_case_table): Simpler code.
8475
8476         * window.c (Freplace_buffer_in_windows):
8477         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8478         (and similar implementation) as Fdelete_windows_on.
8479         Update all callers.
8480
8481         * alloc.c (Fmake_list):
8482         * alloc.c (make_vector):
8483         * alloc.c (Fmake_vector):
8484         * alloc.c (make_bit_vector):
8485         * alloc.c (Fmake_bit_vector):
8486         * alloc.c (Fbit_vector):
8487         * alloc.c (Fmake_string):
8488         * alloc.c (Fpurecopy):
8489         * alloc.c (Fmemory_limit):
8490         * buffer.c:
8491         * buffer.c (Fget_buffer):
8492         * buffer.c (Fkill_buffer):
8493         * buffer.c (complex_vars_of_buffer):
8494         * bytecode.c (Fcompiled_function_stack_depth):
8495         * callint.c (Fprefix_numeric_value):
8496         * event-stream.c:
8497         * event-stream.c (Fread_key_sequence):
8498         * casetab.c:
8499         * casetab.c (Fcase_table_p):
8500         * casetab.c (check_case_table):
8501         * casetab.c (Fset_case_table):
8502         * casetab.c (Fset_standard_case_table):
8503         * chartab.c:
8504         * chartab.c (Fchar_table_type):
8505         * chartab.c (Freset_char_table):
8506         * chartab.c (Fget_char_table):
8507         * chartab.c (Fget_range_char_table):
8508         * chartab.c (Fput_char_table):
8509         * chartab.c (Fmap_char_table):
8510         * chartab.c (Fcategory_table_p):
8511         * chartab.c (Fcheck_category_at):
8512         * chartab.c (Fchar_in_category_p):
8513         * chartab.c (Fcategory_table):
8514         * chartab.c (Fcopy_category_table):
8515         * chartab.c (Fset_category_table):
8516         * chartab.c (Fcategory_designator_p):
8517         * chartab.c (Fcategory_table_value_p):
8518         * cmds.c (Fdelete_char):
8519         * cmds.c (Fdelete_backward_char):
8520         * cmds.c (Fself_insert_command):
8521         * cmds.c (Fself_insert_internal):
8522         * console.c (Fvalid_console_type_p):
8523         * console.c (Fcdfw_console):
8524         * console.c (Fconsole_type):
8525         * console.c (Fconsole_name):
8526         * console.c (Fconsole_device_list):
8527         * console.c (Fconsole_on_window_system_p):
8528         * data.c:
8529         * data.c (Feq):
8530         * data.c (Fold_eq):
8531         * data.c (Fsubr_interactive):
8532         * data.c (Fchar_to_int):
8533         * data.c (Fint_to_char):
8534         * data.c (Fsetcar):
8535         * data.c (Fsetcdr):
8536         * data.c (Fnumber_to_string):
8537         * data.c (Fstring_to_number):
8538         * data.c (Frem):
8539         * database.c (mark_database):
8540         * database.c (finalize_database):
8541         * database.c (Fdatabase_live_p):
8542         * database.c (Fdatabasep):
8543         * device-x.c (Fx_get_resource):
8544         * device.c (Fdfw_device):
8545         * dired.c:
8546         * dired.c (Ffile_name_completion):
8547         * dired.c (Ffile_name_all_completions):
8548         * dired.c (Fuser_name_completion):
8549         * dired.c (Fuser_name_completion_1):
8550         * dired.c (Fuser_name_all_completions):
8551         * doc.c (Fdocumentation):
8552         * doc.c (Fdocumentation_property):
8553         * doc.c (Fsubstitute_command_keys):
8554         * editfns.c:
8555         * editfns.c (Fchar_to_string):
8556         * editfns.c (Fstring_to_char):
8557         * editfns.c (Ftemp_directory):
8558         * editfns.c (Finsert_char):
8559         * editfns.c (Fbuffer_substring_no_properties):
8560         * editfns.c (Fnarrow_to_region):
8561         * editfns.c (Fchar_equal):
8562         * editfns.c (Fchar_Equal):
8563         * editfns.c (Ftranspose_regions):
8564         * emacs.c (Fdump_emacs):
8565         * eval.c (Fthrow):
8566         * eval.c (Fcommand_execute):
8567         * eval.c (Fautoload):
8568         * eval.c (Fbacktrace):
8569         * eval.c (Fbacktrace_frame):
8570         * events.c:
8571         * events.c (Fcopy_event):
8572         * events.c (Fcharacter_to_event):
8573         * events.c (Fevent_button):
8574         * events.c (Fevent_process):
8575         * extents.c:
8576         * extents.c (Fnext_extent_change):
8577         * extents.c (Fextent_property):
8578         * faces.c (Ffacep):
8579         * faces.c (Fmake_face):
8580         * file-coding.c:
8581         * file-coding.c (Fencode_shift_jis_char):
8582         * file-coding.c (Fencode_big5_char):
8583         * fileio.c (Ffile_name_directory):
8584         * fileio.c (Ffile_name_nondirectory):
8585         * fileio.c (Ffile_name_as_directory):
8586         * fileio.c (Fdirectory_file_name):
8587         * fileio.c (Ffile_truename):
8588         * fileio.c (Fsubstitute_in_file_name):
8589         * fileio.c (Ffile_modes):
8590         * fileio.c (Fset_file_modes):
8591         * fileio.c (Fset_default_file_modes):
8592         * fileio.c (Fverify_visited_file_modtime):
8593         * floatfns.c (Facos):
8594         * floatfns.c (Fasin):
8595         * floatfns.c (Fatan):
8596         * floatfns.c (Fcos):
8597         * floatfns.c (Fsin):
8598         * floatfns.c (Ftan):
8599         * floatfns.c (Fbessel_j0):
8600         * floatfns.c (Fbessel_j1):
8601         * floatfns.c (Fbessel_jn):
8602         * floatfns.c (Fbessel_y0):
8603         * floatfns.c (Fbessel_y1):
8604         * floatfns.c (Fbessel_yn):
8605         * floatfns.c (Ferf):
8606         * floatfns.c (Ferfc):
8607         * floatfns.c (Flog_gamma):
8608         * floatfns.c (Fexp):
8609         * floatfns.c (Fexpt):
8610         * floatfns.c (Flog):
8611         * floatfns.c (Flog10):
8612         * floatfns.c (Fsqrt):
8613         * floatfns.c (Fcube_root):
8614         * floatfns.c (Facosh):
8615         * floatfns.c (Fasinh):
8616         * floatfns.c (Fatanh):
8617         * floatfns.c (Fcosh):
8618         * floatfns.c (Fsinh):
8619         * floatfns.c (Ftanh):
8620         * floatfns.c (Fabs):
8621         * floatfns.c (Ffloat):
8622         * floatfns.c (Flogb):
8623         * floatfns.c (Fceiling):
8624         * floatfns.c (Ffloor):
8625         * floatfns.c (Fround):
8626         * floatfns.c (Ftruncate):
8627         * floatfns.c (Ffceiling):
8628         * floatfns.c (Fffloor):
8629         * floatfns.c (Ffround):
8630         * floatfns.c (Fftruncate):
8631         * fns.c (Fstring_equal):
8632         * fns.c (Fstring_lessp):
8633         * fns.c (concat2):
8634         * fns.c (concat3):
8635         * fns.c (vconcat2):
8636         * fns.c (vconcat3):
8637         * fns.c (Fsubstring):
8638         * fns.c (Fassoc):
8639         * fns.c (Fold_assoc):
8640         * fns.c (assoc_no_quit):
8641         * fns.c (Fassq):
8642         * fns.c (Fold_assq):
8643         * fns.c (assq_no_quit):
8644         * fns.c (Frassoc):
8645         * fns.c (Fold_rassoc):
8646         * fns.c (Frassq):
8647         * fns.c (Fold_rassq):
8648         * fns.c (rassq_no_quit):
8649         * fns.c (Fremassoc):
8650         * fns.c (remassoc_no_quit):
8651         * fns.c (Fremassq):
8652         * fns.c (remassq_no_quit):
8653         * fns.c (Fremrassoc):
8654         * fns.c (Fremrassq):
8655         * fns.c (remrassq_no_quit):
8656         * fns.c (Fsort):
8657         * fns.c (Fplist_get):
8658         * fns.c (Fplist_put):
8659         * fns.c (Fplist_remprop):
8660         * fns.c (Fplist_member):
8661         * fns.c (Flax_plist_get):
8662         * fns.c (Flax_plist_put):
8663         * fns.c (Flax_plist_remprop):
8664         * fns.c (Flax_plist_member):
8665         * fns.c (Fequal):
8666         * fns.c (Fold_equal):
8667         * fns.c (Frequire):
8668         * fns.c (Fbase64_encode_region):
8669         * fns.c (Fbase64_encode_string):
8670         * fns.c (Fbase64_decode_region):
8671         * frame.c:
8672         * frame.c (frame_matches_frame_spec):
8673         * frame.c (device_matches_device_spec):
8674         * frame.c (next_frame):
8675         * frame.c (previous_frame):
8676         * frame.c (Fnext_frame):
8677         * frame.c (Fprevious_frame):
8678         * frame.c (Fframe_property):
8679         * frame.c (Fset_frame_height):
8680         * frame.c (Fset_frame_size):
8681         * frame.h:
8682         * glyphs.c:
8683         * glyphs.c (if):
8684         * glyphs.c (decode_error_behavior_flag):
8685         * glyphs.c (Fmake_image_instance):
8686         * indent.c (Findent_to):
8687         * intl.c (Fignore_defer_gettext):
8688         * keymap.c (Fkeymapp):
8689         * keymap.c (Flookup_key):
8690         * lread.c:
8691         * lread.c (Fload_internal):
8692         * lread.c (Feval_buffer):
8693         * lread.c (Feval_region):
8694         * macros.c (Fexecute_kbd_macro):
8695         * marker.c (set_marker_internal):
8696         * marker.c (Fset_marker):
8697         * marker.c (set_marker_restricted):
8698         * marker.c (Fcopy_marker):
8699         * marker.c (noseeum_copy_marker):
8700         * menubar.c:
8701         * menubar.c (Fpopup_menu):
8702         * minibuf.c:
8703         * mule-charset.c (Fcharset_name):
8704         * mule-charset.c (Fchar_charset):
8705         * mule-charset.c (Fchar_octet):
8706         * mule-charset.c (Fsplit_char):
8707         * mule-wnnfns.c (Fwnn_open):
8708         * mule-wnnfns.c (Fwnn_dict_comment):
8709         * mule-wnnfns.c (Fwnn_quit_henkan):
8710         * mule-wnnfns.c (Fwnn_word_toroku):
8711         * mule-wnnfns.c (Fwnn_word_sakujo):
8712         * mule-wnnfns.c (Fwnn_word_use):
8713         * mule-wnnfns.c (Fwnn_hindo_set):
8714         * objects.c:
8715         * objects.c (Fmake_color_instance):
8716         * objects.c (Fmake_font_instance):
8717         * print.c (Fwrite_char):
8718         * process.c:
8719         * process.c (mark_process):
8720         * process.c (print_process):
8721         * process.c (get_process_from_usid):
8722         * process.c (Fprocessp):
8723         * process.c (Fprocess_live_p):
8724         * process.c (Fget_process):
8725         * process.c (Fget_buffer_process):
8726         * process.c (get_process):
8727         * process.c (Fprocess_id):
8728         * process.c (Fprocess_name):
8729         * process.c (Fprocess_command):
8730         * process.c (init_process_io_handles):
8731         * process.c (start_process_unwind):
8732         * process.c (Fstart_process_internal):
8733         * process.c (Fopen_multicast_group_internal):
8734         * process.c (Fset_process_window_size):
8735         * process.c (read_process_output):
8736         * process.c (send_process):
8737         * process.c (Fprocess_tty_name):
8738         * process.c (Fset_process_buffer):
8739         * process.c (Fprocess_buffer):
8740         * process.c (Fprocess_mark):
8741         * process.c (set_process_filter):
8742         * process.c (Fset_process_filter):
8743         * process.c (Fprocess_filter):
8744         * process.c (Fprocess_send_region):
8745         * process.c (Fprocess_send_string):
8746         * process.c (exec_sentinel):
8747         * process.c (Fset_process_sentinel):
8748         * process.c (Fprocess_sentinel):
8749         * process.c (status_notify):
8750         * process.c (Fprocess_status):
8751         * process.c (Fprocess_exit_status):
8752         * process.c (process_send_signal):
8753         * process.c (Fprocess_send_eof):
8754         * process.c (deactivate_process):
8755         * process.c (remove_process):
8756         * process.c (Fdelete_process):
8757         * process.c (kill_buffer_processes):
8758         * process.c (Fprocess_kill_without_query):
8759         * process.c (Fprocess_kill_without_query_p):
8760         * rangetab.c:
8761         * rangetab.c (Fget_range_table):
8762         * rangetab.c (Fput_range_table):
8763         * rangetab.c (Fremove_range_table):
8764         * rangetab.c (Fclear_range_table):
8765         * search.c:
8766         * search.c (Fskip_chars_forward):
8767         * search.c (Fskip_chars_backward):
8768         * search.c (Fskip_syntax_forward):
8769         * search.c (Fskip_syntax_backward):
8770         * search.c (search_command):
8771         * search.c (Freplace_match):
8772         * search.c (Fregexp_quote):
8773         * select.c (Fown_selection_internal):
8774         * select.c (Fselection_owner_p):
8775         * select.c (Fselection_exists_p):
8776         * select.c (Fget_selection_internal):
8777         * specifier.c:
8778         * symbols.c:
8779         * symbols.c (Fintern):
8780         * symbols.c (Fintern_soft):
8781         * symbols.c (Funintern):
8782         * symbols.c (Fapropos_internal):
8783         * symbols.c (Fset_default):
8784         * syntax.c:
8785         * syntax.c (Fsyntax_table_p):
8786         * syntax.c (Fcopy_syntax_table):
8787         * syntax.c (Fset_syntax_table):
8788         * syntax.c (Fchar_syntax):
8789         * syntax.c (syntax_match):
8790         * syntax.c (Fmatching_paren):
8791         * syntax.c (Fforward_word):
8792         * syntax.c (scan_lists):
8793         * syntax.c (Fscan_lists):
8794         * syntax.c (Fscan_sexps):
8795         * syntax.c (Fparse_partial_sexp):
8796         * toolbar.c (Fcheck_toolbar_button_syntax):
8797         * tooltalk.doc:
8798         * window.c:
8799         * window.c (Fwindowp):
8800         * window.c (Fwindow_live_p):
8801         * window.c (Fwindow_point):
8802         * window.c (Fdelete_window):
8803         * window.c (Fnext_window):
8804         * window.c (Fprevious_window):
8805         * window.c (Fother_window):
8806         * window.c (window_loop):
8807         * window.c (Fget_lru_window):
8808         * window.c (Fsplit_window):
8809         * window.c (Fenlarge_window):
8810         * window.c (Fenlarge_window_pixels):
8811         * window.c (Fshrink_window):
8812         * window.c (Fshrink_window_pixels):
8813         * window.c (change_window_height):
8814         * window.c (Fwindow_configuration_p):
8815         * window.c (Fcurrent_window_configuration):
8816         * window.h:
8817         * casefiddle.c (casify_object):
8818         * casefiddle.c (Fupcase):
8819         * casefiddle.c (Fdowncase):
8820         * casefiddle.c (Fcapitalize):
8821         * casefiddle.c (Fupcase_initials):
8822         * casefiddle.c (casify_region_internal):
8823         * casefiddle.c (casify_region):
8824         * casefiddle.c (Fupcase_region):
8825         * casefiddle.c (Fdowncase_region):
8826         * casefiddle.c (Fcapitalize_region):
8827         * casefiddle.c (Fupcase_initials_region):
8828         * casefiddle.c (Fupcase_word):
8829         * casefiddle.c (Fdowncase_word):
8830         * casefiddle.c (Fcapitalize_word):
8831         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8832         Replace 0 with '\0' when working with bytes.
8833         Replace initial "(" with "\(" in docstrings.
8834
8835 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8836
8837         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8838
8839         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8840
8841 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8842
8843         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8844
8845 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8846
8847         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8848         correctly.
8849
8850 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8851
8852         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8853         (inhibit_auto_save_session): New variable.
8854         (vars_of_fileio): Declare and initialize them.
8855         * fileio.c (Fdo_auto_save): Don't create session file if
8856         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8857
8858 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8859
8860         * sgiplay.c (play_internal): C++ compilability.
8861         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8862         * callproc.c (Fold_call_process_internal):
8863         Remove unused vars `env', `first'.
8864         * scrollbar.c (update_scrollbar_instance):
8865         #### unused var `current_window'.
8866         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8867         etc. within #ifdef NOT_YET.
8868         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8869         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8870         * specifier.c (specifier_instance):
8871         #### unused var `tag'.
8872         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8873
8874 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8875
8876         * fns.c (Fbutlast):
8877         * fns.c (list_sort):
8878         * fns.c (Ffillarray):
8879         * fns.c (bytecode_nconc2):
8880         * fns.c (Fnconc):
8881         * fns.c (mapcar1):
8882         * fns.c (Fmapconcat):
8883         Be pedantically 64-bit correct.  For the time when someone will
8884         want to have a list with length > 2**32.
8885
8886         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8887         Work around MIPSpro compiler bug.
8888
8889         * process-unix.c (unix_kill_child_process): Add snarky comment.
8890         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8891
8892         * config.h.in: Oops, _getpt ==> _getpty
8893
8894 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8895
8896         * config.h.in:
8897         * regex.c:
8898         Use void*, not char*, as return type of alloca().
8899
8900         * alloc.c (free_marker): Side effect inside assert expression!
8901
8902 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8903
8904         * mule-charset.c (Fset_charset_ccl_program): To check
8905         if the given ccl program is valid, use setup_ccl_program()
8906         instead of CHECK_VECTOR().
8907         (Fmake_charset): Likewise.
8908
8909 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8910
8911         * faces.c (get_extent_fragment_face_cache_index):
8912         Fix cachel.merged_faces memory leak.
8913
8914 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8915
8916         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8917         Reset MSB of octets obtained by DECODE_SJIS
8918         because of the incompatibility with Emacs.
8919         (ccl_driver)<CCL_ENCODE_SJIS>:
8920         Set MSB of octets before passing them to
8921         ENCODE_SJIS because of the incompatibility
8922         with Emacs.
8923
8924 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8925
8926         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8927         (DECLARE_LRECORD): Undo the last change.
8928         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8929
8930 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8931
8932         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8933         the implementation to lrecord_implementations_table.
8934
8935 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8936
8937         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8938         initial value of `lrecord_type_##c_name' and
8939         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8940         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8941         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8942         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8943         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8944
8945 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8946
8947         * miscplay.c (sndcnv8S_2mono):
8948         (sndcnv2monounsigned):
8949         (sndcnvULaw_2linear):
8950         (sndcnv16swap):
8951         Remove implementation-defined behavior.
8952
8953 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8954
8955         * input-method-xlib.c: Warning suppression.
8956
8957 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8958
8959         * mule-ccl.c: Sync up with Emacs 21.0.90.
8960         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8961         Do nothing.
8962         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8963         Likewise.
8964         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8965         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8966         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8967         leading char belongs to official 2-dimensional charset.
8968         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8969         write the given character as is.  Otherwise,
8970         if it is a multibyte char, convert it by
8971         non_ascii_set_charptr_emchar, then write it.
8972         (CCL_WRITE_STRING): Likewise.
8973         (ccl_get_compiled_code): New function.
8974         (setup_ccl_program): When ccl_prog is invalid,
8975         return -1.
8976         (Fregister_code_conversion_map): New function.
8977         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8978
8979         * mule-ccl.h: Sync up with Emacs 21.0.90.
8980         (Fregister_ccl_program): export it.
8981
8982         * redisplay-msw.c (separate_textual_runs):
8983         If ccl program is not valid, don't do ccl conversion.
8984
8985         * redisplay-x.c (separate_textual_runs): Ditto.
8986
8987         * file-coding.c (Fmake_coding_system):
8988         When type is ccl and value is vector, register it
8989         with a proper symbol.  And checks whether the
8990         given ccl program is valid.
8991         (mule_decode): When calling ccl_driver, if src indicates
8992         NULL pointer, set an empty string instead.
8993         (mule_encode): Likewise.
8994
8995 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8996
8997         The following large batch of changes gets us back to a state of
8998         C++ compilability.  Extbyte is now a char, which means that
8999         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9000
9001         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9002
9003         * sound.c (Fplay_sound): Type correctness.
9004
9005         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9006         (x_get_window_property): Type correctness.
9007         (receive_incremental_selection): unsigned char ==> Extbyte
9008         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9009         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9010         (Fx_store_cutbuffer_internal): Type correctness.
9011
9012         * process-unix.c (try_to_initialize_subtty): Type correctness.
9013
9014         * objects-x.c (x_print_color_instance): Type correctness.
9015         (x_print_font_instance): Type correctness.
9016         (x_list_fonts): SExtbyte ==> Extbyte.
9017         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9018         (x_find_charset_font): SExtbyte ==> Extbyte.
9019         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9020         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9021         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9022         Use bufbyte_strcmp.
9023
9024         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9025         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9026         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9027         (BYTE_C0_P): Use bit ops for char-signedness safety.
9028         (BYTE_C1_P): Use bit ops for char-signedness safety.
9029         (CHARSET_BY_LEADING_BYTE):
9030         (CHARSET_BY_ATTRIBUTES):
9031         Always use inline function.
9032         Use type_checking_assert.
9033         Hide chlook.
9034
9035         * mule-charset.c (non_ascii_charptr_copy_char):
9036         Modify to work with both ASCII and non-ASCII characters.
9037         Improve docs and variable names.
9038         Replace over-clever fall-through switch with a simple loop.
9039         (Lstream_get_emchar_1):
9040         Replace over-clever fall-through switch with a simple loop.
9041
9042         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9043         Warning suppression.
9044
9045         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9046         the return value of Lstream_getc, which could be EOF as well.
9047
9048         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9049
9050         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9051         APIs can be used on Extbytes without casts.  Risky!
9052         (SExtbyte): Remove.
9053         (UExtbyte): Remove.
9054
9055         * input-method-xlib.c (XIM_init_device):
9056         Use Xlib.h instead of IntrinsicP.h.
9057         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9058         which will break in X11R7.
9059         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9060         to call XRegisterIMInstantiateCallback with correct types.
9061
9062         * gui-x.c (button_item_to_widget_value): Type correctness.
9063
9064         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9065
9066         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9067         (xbm_instantiate_1): Type correctness.
9068         (BUILD_GLYPH_INST):  Type correctness.
9069
9070         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9071
9072         * file-coding.c:
9073         (decode_coding_sjis):
9074         (decode_coding_big5):
9075         (decode_coding_ucs4):
9076         (decode_coding_utf8):
9077         (decode_coding_iso2022):
9078         (decode_coding_no_conversion):
9079         Make all decoding functions take an Extbyte * arg.
9080         (encode_coding_sjis):
9081         (encode_coding_big5):
9082         (encode_coding_ucs4):
9083         (encode_coding_utf8):
9084         (encode_coding_iso2022):
9085         (encode_coding_no_conversion):
9086         Make all encoding functions take a Bufbyte * arg.
9087         Use size_t instead of unsigned int for memory sizes.
9088         Only cast to unsigned char whenever dereferencing Extbyte *.
9089
9090         * doc.c (unparesseuxify_doc_string): Type correctness.
9091
9092         * console-x.c (split_up_display_spec):
9093         Rewrite without using details of internal string representation.
9094         (x_semi_canonicalize_device_connection): Type correctness.
9095
9096         * config.h.in:
9097         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9098         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9099         (HAVE_XFREE386): Removed.
9100
9101         * buffer.h (DEC_CHARPTR): `const' correctness.
9102         (bufbyte_strcmp): New.
9103         (bufbyte_memcmp): New.
9104
9105         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9106
9107         * buffer.h (XCHAR_OR_CHAR_INT):
9108         Always use inline function.
9109         Remove redundant type checking assert() - XINT will abort quite nicely.
9110
9111 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9112
9113         * search.c (Freplace_match): Set newtext to an empty string.
9114
9115 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9116
9117         * s/decosf1-3.h: Remove #include of stropts.h
9118         * s/ptx.h: Remove #include of stropts.h
9119         * s/usg5-4.h: Remove #include of stropts.h
9120         * sysproc.h:
9121         * config.h.in:
9122         Use stropts.h, not sys/stropts.h.
9123         Use strtio.h, not sys/strtio.h.
9124
9125 2000-10-04  Martin Buchholz <martin@xemacs.org>
9126
9127         * XEmacs 21.2.36 is released.
9128
9129 2000-09-21  Andy Piper  <andy@xemacs.org>
9130
9131         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9132         changes still involve copying the widget tree.
9133         (update_widget_face): make sure a change is register in the widget
9134         tree. Call update_tab_widget_face appropriately.
9135         (update_tab_widget_face): ditto.
9136         (x_tab_control_redisplay): make sure non-structural changes still
9137         involve copying the widget tree.
9138
9139 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9140
9141         * lread.c (locate_file): Check the path element is non-nil.
9142
9143 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9144
9145         * lisp.h: Warning suppression for SCO compilers.
9146
9147         * redisplay-tty.c (reset_tty_modes): Fix crash.
9148         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9149
9150 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9151
9152         Big signal/process handling overhaul.  Bugs fixed:
9153         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9154         M-x comint-kill-subjob should work for both values nil and t of
9155         process-connection-type. It was broken on most platforms.
9156         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9157         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9158         * process-unix.c: Signal/Process handling overhaul.
9159         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9160         (allocate_pty): Use all available modern methods of allocating
9161         ptys, falling back to old style BSD allocation as a last resort.
9162         Use allegedly more secure Unix98 pty allocation by default.
9163         (allocate_pty_the_old_fashioned_way): New. the last resort.
9164         (unix_create_process): Push ptem, ldterm, ttcompat where
9165         available.  Autoconfiscate.
9166         (try_to_initialize_subtty): New.
9167         (unix_kill_child_process): Proper signal handling for ptys on most
9168         platforms, using special knowledge of AIX, BSD, etc...
9169         (unix_create_process): Always disconnect_controlling_terminal() for
9170         subprocesses, whether using ptys or not.
9171         * process.h: Remove old getpt-dependent PTY code.
9172         * process.c (Fprocess_send_signal): New, obvious generic function.
9173         (decode_signal): New.
9174         (Finterrupt_process):
9175         (Fkill_process):
9176         (Fquit_process):
9177         (Fstop_process):
9178         (Fcontinue_process):
9179         (Fsignal_process): Use decode_signal.
9180         (process_send_signal):
9181         Many docstring corrections.
9182         Allow any signal to be sent to a process object.
9183         * config.h.in: Add symbols for big signal/process overhaul.
9184         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9185         * sysproc.h: Include process-related headers, where available:
9186         sys/stropts.h sys/strtio.h pty.h libutil.h
9187         * s/irix4-0.h:
9188         * s/irix5-0.h:
9189         * s/cygwin32.h:
9190         * s/gnu.h:
9191         * s/linux.h:
9192         * s/hpux.h:
9193         * s/aix3-1.h:
9194         Remove old S&M pty stuff.
9195         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9196         * systty.h: Simplify cpp hackery, improve comments.
9197         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9198
9199         * editfns.c (Fformat_time_string):
9200         Be a little more paranoid with the return value of ctime.
9201
9202         * fileio.c (check_executable):
9203         (check_writable):
9204         Use symbolic constants X_OK, W_OK.
9205
9206         * console-x.c (split_up_display_spec): Fix a warning.
9207
9208 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9209
9210         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9211         * ntproc.c (sys_spawnve): make_string ==> build_string
9212         Small clarity improvements.
9213
9214 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9215
9216         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9217
9218         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9219
9220         * config.h.in (HAVE_STRCASECMP): Remove.
9221
9222 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9223
9224         * redisplay-output.c (redisplay_output_pixmap):
9225         Cleaner and possibly more 64-bit correct code.
9226
9227 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9228
9229         * dumper.c (pdump_load_finish): move restoration of
9230         `noninteractive1' to emacs.c (main_1).
9231         * emacs.c (main_1): protect LISP-visible command-line flags
9232         from pdump_load().
9233
9234 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9235
9236         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9237         DUMP_TARGET instead of literal program names.
9238
9239 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9240
9241         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9242
9243 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9244
9245         * *: Spelling mega-patch
9246
9247 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9248
9249         * fns.c (bad_bad_turtle):
9250         Delete "Eek!" comment, since we fixed the bug to which it refers.
9251
9252 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9253
9254         * alloca.c: Replace REGISTER with register.
9255
9256 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9257
9258         * file-coding.c (ucs_to_char): Use countof.
9259
9260 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9261
9262         * file-coding.c: (ucs_to_char):
9263         (complex_vars_of_file_coding):
9264         Use countof instead of sizeof.
9265         Use CHECK_NATNUM instead of CHECK_INT.
9266
9267         * sysdep.c (strcasecmp): Remove.
9268         * device-x.c (ascii_strcasecmp): New.
9269         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9270         Avoid using non-standard non-portable strcasecmp.
9271
9272 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9273
9274         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9275         * font-lock.c: remove reference to emacsfns.h.
9276         * search.c: small doc improvement.
9277         * event-Xt.c: correct file names in comments.
9278         * console-x.h Correct file names in comments.
9279         * frame.c: Correct file names in comments.
9280         * event-stream.c: remove Energize from comments.
9281
9282 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9283
9284         * symeval.h (DEFERROR_STANDARD):
9285         (DEFERROR):
9286         (DEFSYMBOL):
9287         (DEFSYMBOL_NO_DUMP):
9288         (DEFSYMBOL_MULTIWORD_PREDICATE):
9289         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9290         (DEFKEYWORD):
9291         The construct &##name is not sensible C.
9292         Fixes compilation errors with Unixware native compiler.
9293
9294 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9295
9296         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9297         (next_frame_internal): Removed.  We now just have next_frame.
9298         (next_frame):
9299         Write a simpler and cleaner one-pass algorithm.
9300         Remove called_from_delete_device arg and #ifdefed-out code.
9301         (previous_frame):
9302         Renamed from prev_frame.  Update callers.
9303         Cleaned up to have an analogous implementation to next_frame.
9304         (other_visible_frames_internal): Remove the
9305         called_from_delete_device bogus arg, and hence, remove this
9306         function.  Just use other_visible_frames().
9307
9308         * window.c (Fnext_window):
9309         Prettify docstring.
9310         Since next_frame() is guaranteed to return a frame, remove check
9311         for nil inserted in previous patch.
9312         (Fprevious_window):
9313         Prettify docstring.
9314         Make code look more like Fnext_window.
9315         (window_loop):
9316         Respect the `console' arg when iterating through windows.
9317         Fixes bug: (get-buffer-window buffer t device) not respecting
9318         the `device' arg.
9319         This function needs more work, as others have pointed out.
9320
9321         * frame.h: Rename prev_frame to previous_frame.
9322         device_matches_console_spec no longer takes a `frame' arg.
9323
9324         * s/gnu.h:
9325         * s/linux.h:
9326         * s/hpux.h:
9327         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9328         From "Golubev I. N." <gin@mo.msk.ru>.
9329
9330         * make-src-depend: Fix typo.
9331
9332 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9333
9334         * window.c (Fnext_window):
9335         next_frame() might return nil, not a frame.
9336         Fixes this crash:
9337         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9338
9339         * frame.c (next_frame_internal):
9340         We've passed a frame if we've passed its device.
9341         Fixes this crash:
9342         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9343 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9344
9345 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9346
9347         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9348         Allow option to suppress accelerators in menu/dialog items.
9349         (populate_or_checksum_helper): Pass dialog title through above.
9350
9351 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9352
9353         * event-msw.c (mswindows_key_to_emacs_keysym):
9354         Add "pause" key, fix "menu" key.
9355
9356 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9357
9358         * eval.c (reinit_vars_of_eval):
9359         Increase max_lisp_eval_depth to 1000,
9360         required for thai-xtis.el to byte-compile under some circumstances.
9361
9362 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9363
9364         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9365         From Kenichi Handa.
9366
9367 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9368
9369         * make-src-depend: Make the generated Makefiles smaller.
9370
9371         * s/hpux.h (SETUP_SLAVE_PTY):
9372         Provide a %d in the format string for the errno argument.
9373
9374         * editfns.c (Ftemp_directory):
9375         Warning fix.
9376         Avoid buffer overrun on very long file name.
9377
9378         * input-method-xlib.c (XIM_init_device):
9379         6th parameter of XRegisterIMInstantiateCallback has different
9380         pointer types on different OSes, so simply cast to (void *).
9381
9382         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9383
9384         * sysdll.c (dll_open):
9385         shl_load will hang hard if passed a NULL filename.
9386         Simply return NULL for compatibility with dlopen.
9387         * sysdll.c: Conform to XEmacs coding standards.
9388
9389         * sysdep.c (get_pty_max_bytes):
9390         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9391
9392 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9393
9394         * tooltalk.c: Add #include <syssignal.h>
9395
9396 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9397
9398         * s/hpux.h: Don't use undefined function sigunblock().
9399
9400 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9401
9402         * config.h.in: Add HAVE_BALLOON_HELP.
9403         * emacs.c: Use HAVE_BALLOON_HELP.
9404         * Makefile.in.in (x_objs):
9405         Make Balloon Help conditional on finding shape.h.
9406
9407 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9408
9409         * syntax.c (regex_emacs_buffer_p): New variable.
9410         * syntax.h (regex_emacs_buffer_p): extern.
9411         * search.c (looking_at_1):
9412         (string_match_1):
9413         (fast_string_match):
9414         (search_buffer): Set regex_emacs_buffer_p.
9415         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9416         when before_dot, at_dot, after_dot.
9417
9418 2000-08-23  Andy Piper  <andy@xemacs.org>
9419
9420         * gui-x.c (popup_selection_callback): Only set action_occurred
9421         when we really have an image instance.
9422         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9423
9424 2000-08-23  Andy Piper  <andy@xemacs.org>
9425
9426         * gui-msw.c (mswindows_handle_gui_wm_command): set
9427         action_occurred.
9428         * gui-x.c (popup_selection_callback): ditto.
9429
9430         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9431         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9432         (struct Lisp_Image_Instance): add action_occurred flag.
9433
9434         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9435         (image_instance_changed): ditto.
9436         (reset_frame_subwindow_instance_cache): only unmap windows - do
9437         not remove them from the cache also.
9438
9439         * glyphs-widget.c (tab_control_update): better debug.
9440         (progress_gauge_update): ditto.
9441         (layout_update): ditto.
9442         (layout_instantiate): ditto.
9443         (tab_control_order_only_changed): cope with null pending items.
9444
9445         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9446         debug. Force selection of an item when an action occurred. Cope
9447         with null pending_items.
9448         (mswindows_progress_gauge_redisplay): better debug.
9449         * glyphs-x.c (x_tab_control_redisplay): ditto.
9450
9451         * redisplay.c (redisplay_frame): reset the frame cache if the
9452         frame is garbaged.
9453
9454         * window.c (Fset_window_configuration): potentially re-enable
9455         frame cache reset.
9456         (window_unmap_subwindows): need to finalize instances here since
9457         it is only used in mark_window_as_deleted.
9458
9459 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9460
9461         * nas.c (SndOpenDataForReading):
9462         nas.c (WaveOpenDataForReading):
9463         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9464         Somehow escaped from the 2000-08-14 patch.
9465
9466 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9467
9468         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9469         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9470
9471 2000-08-21  Andy Piper  <andy@xemacs.org>
9472
9473         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9474         window if it is not already displayed.
9475
9476         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9477         it is not already displayed.
9478
9479         * window.c (Fset_window_configuration): don't reset the frame
9480         cache.
9481
9482         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9483         instances from the frame cache if we are actually finalizing them.
9484         (reset_frame_subwindow_instance_cache): reset frame cache only
9485         after unmapping everything.
9486         (map_subwindow): set displayed flag after mapping.
9487
9488 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9489
9490         * data.c (indirect_function):
9491         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9492
9493         * eval.c (function_argcount):
9494         Use original function when signaling errors.
9495
9496 2000-08-18  Andy Piper  <andy@xemacs.org>
9497
9498         * frame.c (delete_frame_internal): use new
9499         free_frame_subwindow_instances name.
9500
9501         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9502         (add_tab_item): make return type correct.
9503         (mswindows_tab_control_instantiate): assert index of tab.
9504         (mswindows_tab_control_redisplay): Re-code to use
9505         gui_item_equal_sans_selected and gui_item_list_find_selected.
9506
9507         * glyphs-widget.c (tab_control_update): Correct comment.
9508
9509         * window.c (window_unmap_subwindows): use new
9510         unmap_subwindow_instance_cache_mapper.
9511         (window_unmap_subwindows_cache_mapper): deleted.
9512         (Fset_window_configuration): comparisons should now be with
9513         EQ. Preserve the subwindow instance cache across configuration
9514         changes.
9515         (allocate_window): ditto.
9516         (make_dummy_parent): ditto.
9517
9518         * glyphs.c (free_frame_subwindow_instances): rename from
9519         free_frame_subwindow_instance_cache. finalize all instances rather
9520         than just those in the display cache.
9521         (finalize_all_subwindow_instances): walk windows unmapping and
9522         finalizing subwindows.
9523         (unmap_subwindow_instance_cache_mapper): moved from
9524         window.c. Allow finalization as well as unmapping.
9525
9526         * gui.c (gui_item_list_find_selected): new function.
9527
9528         * gui.h (gui_item_list_find_selected): declare.
9529
9530         * glyphs-x.c (x_tab_control_redisplay): pick tab
9531         explicitly. Re-code to use gui_item_equal_sans_selected and
9532         gui_item_list_find_selected.
9533
9534         * glyphs-x.h: add lwlib-utils.h
9535
9536         * buffer.c (Frecord_buffer): undo previous change.
9537
9538 2000-08-09  Vin Shelton  <acs@xemacs.org>
9539
9540         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9541         possible.  Create temporary files more securely.  The patch was
9542         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9543         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9544         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9545         for details.
9546
9547 2000-08-07  Ben Wing  <ben@xemacs.org>
9548
9549         * getloadavg.c: remove duplicate (and windows-breaking)
9550         includes of fcntl.h and sys/file.h.
9551
9552         * nt.c: remove duplicate getloadavg() definition.
9553
9554         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9555         encodings.
9556
9557 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9558
9559         * eval.c (function_argcount): If function needs to be autoloaded
9560         actually use the loaded definition.
9561         GCPRO function.
9562
9563 2000-08-05  Ben Wing  <ben@xemacs.org>
9564
9565         * getloadavg.c: add prototype for getloadavg().  remove
9566         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9567         of the code).  remove duplicate header includes.
9568
9569         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9570
9571         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9572         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9573         useful load average.
9574
9575         * alloc.c (reinit_alloc_once_early): removed references to
9576         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9577         the lisp vars are the only things referencing the malloc_sbrk_*
9578         vars, and they were already if 0'd out.  these vars only exist
9579         in the older malloc.c, which is basically unused, and they're
9580         only for informational purposes.
9581
9582         * m\*.h: removed useless VIRT_ADDR_VARIES.
9583
9584         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9585
9586 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9587
9588         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9589         color if the image is a mono pixmap.
9590
9591 2000-07-30  Ben Wing  <ben@xemacs.org>
9592
9593         * Makefile.in.in (release):
9594         Remove stray @.
9595
9596         * buffer.c (directory_is_current_directory):
9597         * dired-msw.c (mswindows_get_files):
9598         * dired.c:
9599         * dired.c (Fdirectory_files):
9600         * dired.c (file_name_completion_stat):
9601         * dired.c (Ffile_attributes):
9602         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9603         preprocessor tricks, to avoid problems on some machines
9604         (e.g. SCO).
9605
9606         * callproc.c (egetenv): GC docs.
9607
9608         * console-msw.h:
9609         * console-msw.h (struct mswindows_dialog_id):
9610         * lrecord.h (lrecord_type):
9611         New object for use with MSW dialogs.
9612
9613         * console.h (struct console_methods):
9614         New enable/disable frame methods, for proper modal dialogs.
9615
9616         * device-msw.c (msprinter_default_printer): Fix to follow
9617         proper Mule conventions.
9618
9619         * device-msw.c:
9620         * device-msw.c (signal_open_printer_error):
9621         * device-msw.c (msprinter_init_device):
9622         * device-msw.c (ensure_not_printing):
9623         * device-msw.c (plist_get_margin):
9624         * device-msw.c (Fmsprinter_select_settings):
9625         * device-msw.c (finalize_devmode):
9626         * device-msw.c (Fmsprinter_settings_despecialize):
9627         * device-msw.c (signal_enum_priner_error):
9628         * extents.c (decode_extent):
9629         * extents.c (decode_map_extents_flags):
9630         * extents.c (decode_extent_at_flag):
9631         * extents.c (Fextent_at):
9632         * extents.c (Fextents_at):
9633         * extents.c (symbol_to_glyph_layout):
9634         [[[[2]]]] Use structured errors.
9635
9636         * dialog-msw.c:
9637         * dialog-msw.c (mswindows_is_dialog_msg):
9638         * dialog-msw.c (mark_mswindows_dialog_id):
9639         * dialog-msw.c (dialog_proc):
9640         * dialog-msw.c (handle_question_dialog_box):
9641         * dialog-msw.c (syms_of_dialog_mswindows):
9642         Define new object to clean up marking; use it as a dialog identifier.
9643         Call new delete-dialog-box-hook.
9644
9645         * dialog-x.c (dbox_selection_callback):
9646         * dialog-x.c (dbox_descriptor_to_widget_value):
9647         * dialog-x.c (x_make_dialog_box_internal):
9648         Call new delete-dialog-box-hook.
9649         Return an id.
9650
9651         * dialog.c:
9652         * dialog.c (syms_of_dialog):
9653         * dialog.c (vars_of_dialog):
9654         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9655
9656         * eval.c:
9657         * eval.c (signal_call_debugger):
9658         when noninteractive, output stack traces on the console instead
9659         of in a (never-seen) buffer.
9660
9661         * eval.c (signal_type_error):
9662         * eval.c (invalid_argument_2):
9663         * lisp.h:
9664         new funs for use w/structured errors.
9665
9666         * event-Xt.c:
9667         * event-Xt.c (x_to_emacs_keysym):
9668         * event-Xt.c (describe_event):
9669         * event-Xt.c (emacs_Xt_event_handler):
9670         * event-Xt.c (vars_of_event_Xt):
9671         * event-msw.c:
9672         * event-msw.c (mswindows_wnd_proc):
9673         * event-msw.c (vars_of_event_mswindows):
9674         rename {x,mswindows}-debug-events to debug-{}-events for
9675         consistency with other debug-foo variables.
9676
9677         * event-stream.c:
9678         document next-event more clearly.
9679
9680         * fileio.c (Ffile_name_directory):
9681         * fileio.c (Ffile_name_nondirectory):
9682         * fileio.c (Funhandled_file_name_directory):
9683         * fileio.c (file_name_as_directory):
9684         * fileio.c (Ffile_name_as_directory):
9685         * fileio.c (directory_file_name):
9686         * fileio.c (Fdirectory_file_name):
9687         * fileio.c (Fmake_temp_name):
9688         * fileio.c (Ffile_truename):
9689         * fileio.c (Fsubstitute_in_file_name):
9690         * fileio.c (expand_and_dir_to_file):
9691         * fileio.c (barf_or_query_if_file_exists):
9692         * fileio.c (check_executable):
9693         * fileio.c (Ffile_exists_p):
9694         * fileio.c (Ffile_writable_p):
9695         * fileio.c (Ffile_directory_p):
9696         * fileio.c (Ffile_regular_p):
9697         * fileio.c (Ffile_modes):
9698         * fileio.c (Ffile_newer_than_file_p):
9699         * fileio.c (Fverify_visited_file_modtime):
9700         * fileio.c (Fset_visited_file_modtime):
9701         * fileio.c (auto_save_1):
9702         (1). (2).
9703         fix up gcpro's.
9704
9705         * frame-msw.c:
9706         * frame-msw.c (mswindows_init_frame_1):
9707         * frame-msw.c (mswindows_enable_frame):
9708         * frame-msw.c (error_frame_unsizable):
9709         * frame-msw.c (msprinter_init_frame_1):
9710         * frame-msw.c (msprinter_init_frame_3):
9711         * frame-msw.c (console_type_create_frame_mswindows):
9712         (2).
9713         implement new enable/disable frame methods.
9714
9715         * frame-x.c:
9716         * frame-x.c (x_enable_frame):
9717         * frame-x.c (console_type_create_frame_x):
9718         implement new enable/disable frame methods.
9719
9720         * frame.c:
9721         * frame.c (Fdisable_frame):
9722         * frame.c (syms_of_frame):
9723         * frame.h (struct frame):
9724         implement new enable/disable frame methods/functions.
9725
9726         * general-slots.h:
9727         add initial-focus.
9728
9729         * glyphs-msw.c (mswindows_widget_instantiate):
9730         comment that initial-focus should be implemented.
9731
9732         * glyphs-widget.c:
9733         * glyphs-widget.c (check_valid_instantiator):
9734         * glyphs-widget.c (check_valid_orientation):
9735         * glyphs-widget.c (check_valid_tab_orientation):
9736         * glyphs-widget.c (check_valid_justification):
9737         * glyphs-widget.c (check_valid_border):
9738         * glyphs-widget.c (check_valid_callback):
9739         * glyphs-widget.c (check_valid_int_or_function):
9740         * glyphs-widget.c (check_valid_string_or_vector):
9741         * glyphs-widget.c (check_valid_item_list_1):
9742         * glyphs-widget.c (widget_validate):
9743         * glyphs-widget.c (combo_box_validate):
9744         * glyphs-widget.c (widget_instantiate):
9745         * glyphs-widget.c (syms_of_glyphs_widget):
9746         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9747         * glyphs-widget.c (image_instantiator_combo_box):
9748         * glyphs-widget.c (image_instantiator_scrollbar):
9749         * glyphs-widget.c (image_instantiator_tab_control):
9750         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9751         (2).
9752         support (unimplemented) keyword initial-focus.
9753         reindent long macros.
9754
9755         * glyphs-x.c (x_redisplay_widget):
9756         * glyphs-x.c (x_button_instantiate):
9757         * glyphs-x.c (x_button_redisplay):
9758         * glyphs-x.c (x_progress_gauge_instantiate):
9759         * glyphs-x.c (x_edit_field_instantiate):
9760         * glyphs-x.c (x_combo_box_instantiate):
9761         * glyphs-x.c (x_tab_control_instantiate):
9762         * glyphs-x.c (x_label_instantiate):
9763         * gui-x.c:
9764         * gui-x.c (button_item_to_widget_value):
9765         * gui-x.c (gui_items_to_widget_values_1):
9766         * gui-x.c (gui_item_children_to_widget_values):
9767         * gui-x.c (gui_items_to_widget_values):
9768         * gui-x.h:
9769         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9770         add new flag to gui-parsing routines to indicate whether
9771         accelerator specs should be supported.
9772
9773         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9774
9775         * glyphs.h (struct Lisp_Image_Instance):
9776         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9777         add initial-focus flag.
9778
9779         * gui.c:
9780         * gui.c (syms_of_gui):
9781         * gui.c (vars_of_gui):
9782         clean up menu-no-selection-hook.
9783
9784         * gui.h:
9785         support delete-dialog-box-hook.
9786
9787         * lread.c (Fload_internal):
9788         * lread.c (locate_file_in_directory_mapper):
9789         (1).
9790
9791         * lrecord.h:
9792         * lrecord.h (struct toolbar_button):
9793         * lrecord.h (syms_of_toolbar):
9794         document how to create a new object.
9795
9796         * menubar-msw.c (mswindows_char_is_accelerator):
9797         may be called on frames w/o menus.
9798
9799         * menubar.c (vars_of_menubar):
9800         clean up :filter docs.
9801
9802         * nt.c (readdir):
9803         * ntproc.c:
9804         (1).
9805
9806         * process-nt.c:
9807         * process-nt.c (validate_signal_number):
9808         * process-nt.c (signal_cannot_launch):
9809         * process-nt.c (nt_create_process):
9810         * process-nt.c (nt_send_process):
9811         * process-nt.c (nt_kill_child_process):
9812         * process-nt.c (nt_open_network_stream):
9813         * process-nt.c (syms_of_process_nt):
9814         (2).
9815         delete quote-handling.  call new lisp code that does it better.
9816
9817         * process-unix.c (connect_to_file_descriptor):
9818         * process-unix.c (allocate_pty):
9819         * process-unix.c (unix_send_process):
9820         * process-unix.c (unix_kill_child_process):
9821         * process-unix.c (unix_open_network_stream):
9822         * process-unix.c (unix_open_multicast_group):
9823         (1). (2).
9824
9825         * process.c:
9826         * process.c (Fstart_process_internal):
9827         (2).  need to canonicalize process path even if absolute.
9828
9829         * select-msw.c (symbol_to_ms_cf):
9830         * select-msw.c (ms_cf_to_symbol):
9831         * select-msw.c (cf_is_autofreed):
9832         * select-msw.c (mswindows_destroy_selection):
9833         * select.c:
9834         * select.c (syms_of_select):
9835         * select.h:
9836         support dibv5, fix bugs. (from Mike Alexander)
9837
9838         * select.c (Fget_selection_internal):
9839         * select.c (select_convert_out):
9840
9841         * sysdep.c:
9842         * sysdep.c (xemacs_stat):
9843         renamed.
9844
9845         * sysdep.c (mkdir):
9846         * sysdep.c (rmdir):
9847         but keep original stat() here because we provide encapsulation
9848         around these funs.
9849
9850         * sysfile.h:
9851         * sysfile.h (fstat):
9852         remove stat garbage.
9853
9854         * syswindows.h:
9855         fix X/MSW conflict.
9856         don't include tchar.h.  it's inappropriate because it makes
9857         compile-time distinctions when we want runtime distinctions.
9858         (we provide our own tchar replacements)
9859
9860         * toolbar.c:
9861         use default object printer for toolbar-button.
9862
9863         * unexcw.c:
9864         make sure we don't encapsulate.
9865
9866         * window.c (vars_of_window):
9867         emphasize that temp-buffer-show-hook is obsolete.
9868
9869 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9870
9871         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9872         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9873
9874         * events.c (Fevent_timestamp_lessp):
9875         Not 64-bit clean.  Use EMACS_INT, not int.
9876
9877 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9878
9879         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9880         unsigned int and changed the last enum to
9881         lrecord_type_last_built_in_type.
9882         (lrecord_implementations_table): changed prototype to know how
9883         long the array is supposed to be.
9884         (lrecord_type_count): new unsigned int to keep track of the
9885         current number of lisp lrecord types.
9886         (DEFINE_EXTERNAL_LRECORD):
9887         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9888         dynamic-modules to declare new lisp types. They are the same
9889         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9890         int for each new type, and increment lrecord_type_count by 1.
9891
9892         * alloc.c (lrecord_implementations_table): Changed to reference
9893         lrecord_type_last_built_in_type for the size of the array.
9894         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9895
9896 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9897
9898         * glyphs.h (check_valid_item_list): Renamed from
9899         check_valid_item_list_1.
9900
9901 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9902
9903         * select.c (Qselect_coerce): New.
9904         * select.c (Vselection_coercion_alist): New.
9905         * select.c (syms_of_select): Declare.
9906         * select.c (get-selection-internal): Use it.
9907         Use the new select-coerce functionality.
9908
9909         * select.c (select_coerce): New.
9910         * select.h (select_coerce): Declare.
9911         New function to coerce one type of data into another.
9912
9913 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9914
9915         * callproc.c (Fcall_process_internal):
9916         (Fcall_process_internal):
9917         * process-unix.c (unix_create_process):
9918         Save and restore the value of errno, so that error messages are accurate.
9919
9920 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9921
9922         * elhash.c (print_hash_table):
9923         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9924         Prettify docstrings and indentation.
9925
9926 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9927
9928         * window.c (Fwindow_pixel_edges): Subtract frame border and
9929         gutter size.
9930
9931 2000-07-31  Andy Piper  <andy@xemacs.org>
9932
9933         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9934         will acknowledge the change.
9935
9936         * glyphs.h: declare tab_control_order_only_changed.
9937
9938         * glyphs-x.c (x_tab_control_redisplay): use
9939         tab_control_order_only_changed.
9940
9941         * glyphs-widget.c (tab_control_order_only_changed): new function.
9942
9943         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9944         tab_control_order_only_changed.
9945
9946         * gui.c (gui_item_equal_sans_selected): new function.
9947         (gui_item_equal): use it.
9948
9949         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9950         :properties in favor of :items..
9951
9952         * glyphs-widget.c (check_valid_item_list): rename from
9953         check_valid_item_list_1.
9954         (check_valid_item_list_1): renamed.
9955         (combo_box_validate): deprecate :properties in favor of :items.
9956         (widget_instantiate): ditto.
9957         (tab_control_update): ditto.
9958         (image_instantiator_combo_box): ditto.
9959         (image_instantiator_tree_view): ditto.
9960         (image_instantiator_tab_control): ditto.
9961         (layout_post_instantiate): remove dead code.
9962
9963         * print.c (debug_print_no_newline): only write to debugger if in
9964         WIN32_NATIVE.
9965
9966         * elhash.c (Fmake_hash_table): update doc string.
9967
9968         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9969         messages whilst in GC. This at least stops XEmacs crashing but has
9970         the potential for wierd behaviour.
9971
9972 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9973
9974         * config.h.in:
9975         Make existence of s&m files optional.
9976
9977         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9978         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9979         * s/gnu.h: Remove HAVE_GETLOADAVG.
9980         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9981         * s/sol2.h: Remove HAVE_GETLOADAVG.
9982         * lisp.h: Remove getloadavg() declaration.
9983         * fns.c:
9984         Include <sys/loadavg.h> if available.
9985         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9986         * config.h.in:  Group together getloadavg()-related macros.
9987         Use only configure-time tests to detect getloadavg().
9988
9989 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9990
9991         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9992
9993 2000-07-25  Andy Piper  <andy@xemacs.org>
9994
9995         * syswindows.h: add tchar.h for native builds.
9996
9997         * frame.c (syms_of_frame): remove set-glyph-image.
9998
9999         * general-slots.h: add Qset_glyph_image.
10000
10001         * glyphs-widget.c (layout_update): add domain arg to
10002         set-glyph-image.
10003         (syms_of_glyphs_widget): remove set-glyph-image.
10004
10005 2000-07-23  Ben Wing  <ben@xemacs.org>
10006
10007         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10008         Vpopup_frame_list.
10009
10010 2000-07-22  Andy Piper  <andy@xemacs.org>
10011
10012         * symsinit.h: add syms_of_win32().
10013
10014         * gui-msw.c (syms_of_gui_mswindows): remove
10015         Fmswindows_shell_execute.
10016         (Fmswindows_shell_execute): moved to win32.c.
10017
10018         * emacs.c (main_1): add syms_of_win32 ().
10019
10020         * win32.c (init_potentially_nonexistent_functions): rewrite in
10021         compiler-friendly terms.
10022         (Fmswindows_shell_execute): move here from gui-msw.c.
10023         (syms_of_win32): new.
10024
10025         * device-msw.c (Fmswindows_printer_list): clean up args to
10026         EnumPrinters.
10027         Don't include tchar under cygwin or mingw.
10028         (msprinter_default_printer): make cygwin-friendly.
10029
10030 2000-07-21  Andy Piper  <andy@xemacs.org>
10031
10032         * glyphs-widget.c (image_instantiator_tree_view): use tab
10033         control's update function.
10034         (layout_property): new function. Retrieve items.
10035
10036         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10037         function. Re-populate the tree view from the pending items.
10038
10039         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10040         is designated the parent if the domain is an image instance. This
10041         is needed so that dirtiness can be cascade up the hierarchy and
10042         thus for layout children to be redisplayed correctly.
10043         (allocate_image_instance): rename glyph -> parent.
10044
10045         * redisplay.h: change redisplay_output_layout signature.
10046
10047         * redisplay-msw.c (mswindows_output_display_block): use domain
10048         arg.
10049
10050         * redisplay-x.c (x_output_display_block): use domain arg.
10051
10052 2000-07-10  Andy Piper  <andy@xemacs.org>
10053
10054         * window.c (Fset_window_configuration): add comment.
10055
10056         * redisplay-output.c (compare_runes):
10057         (redisplay_output_subwindow): redisplay rather than update subwindow.
10058         (redisplay_output_layout): ditto.
10059
10060         * redisplay-msw.c (mswindows_frame_output_end):
10061         (mswindows_frame_output_end): make defer window pos optional.
10062
10063         * lisp.h: add Flast.
10064
10065         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10066         normalize method. Change update method to be for changed
10067         instantiators. Add redisplay method. Change signature of layout
10068         method.
10069         (struct Lisp_Image_Instance): add instantiator.
10070         (IMAGE_INSTANCE_INSTANTIATOR): new.
10071         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10072         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10073         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10074
10075         * glyphs.c:
10076         (find_instantiator_differences): new function.
10077         (Fset_instantiator_property): new convenience function.
10078         (check_image_instance_structure): strictly check for vector
10079         instantiators.
10080         (normalize_image_instantiator): make non-static.
10081         (instantiate_image_instantiator): pass on dest_mask and use new
10082         signatures for image_instance_layout and friends.
10083         (mark_image_instance): mark the instantiator. Mark the subwindow
10084         face not the widget face.
10085         (image_instance_equal): add instantiator.
10086         (image_instance_hash): ditto.
10087         (allocate_image_instance): ditto.
10088         (Fset_image_instance_property): removed.
10089         (Fimage_instance_file_name): ditto.
10090         (Fcolorize_image_instance): ditto.
10091         (image_instance_layout): add offsets to be set.
10092         (update_image_instance): new function. update an image instance
10093         from its changed instantiator.
10094         (inherit_normalize): add dest_mask.
10095         (xbm_normalize): ditto.
10096         (xface_normalize): ditto.
10097         (xpm_normalize): ditto.
10098         (text_update): set_property -> update.
10099         (image_instantiate): use the glyph identity as a hash key, not the
10100         instantiator.
10101         (glyph_width): use new image_instance_layout signature.
10102         (glyph_ascent): ditto.
10103         (glyph_descent): ditto.
10104         (glyph_height): ditto.
10105         (glyph_query_geometry): ressurrect.
10106         (glyph_layout): ditto.
10107         (redisplay_subwindow): update -> redisplay.
10108         (syms_of_glyphs): add Fset_instantiator_property.
10109         (image_instantiator_format_create): set_property -> update.
10110
10111         * glyphs-x.c:
10112         (autodetect_normalize): add dest_maks to signature.
10113         (x_redisplay_subwindow): update -> redisplay.
10114         (x_redisplay_widget): ditto.
10115         (x_button_redisplay): ditto.
10116         (x_progress_gauge_redisplay): ditto.
10117         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10118         stacking order.
10119         (console_type_create_glyphs_x): update -> redisplay.
10120         (image_instantiator_format_create_glyphs_x): ditto.
10121
10122         * glyphs-widget.c:
10123         (check_valid_instantiator): disallow glyphs in the instantiator,
10124         they must now be vectors.
10125         (check_valid_instantiator_list): ditto.
10126         (glyph_instantiator_to_glyph): use internal symbol rather than
10127         intern.
10128         (widget_update): renamed from widget_set_property. Call cascaded
10129         update methods.
10130         (redisplay_widget): renamed from update_widget.
10131         (widget_layout): image_instance_layout now takes position as well
10132         as size.
10133         (widget_normalize): ditto.
10134         (widget_instantiate): ditto.
10135         (tab_control_query_geometry) ditto.:
10136         (tab_control_update): renamed from tab_control_set_property.
10137         (progress_gauge_update): set_property -> update.
10138         (layout_normalize): rewrite so that child instantiators are
10139         normalized also.
10140         (layout_update): new function. Create glyphs from the normalized
10141         children and cope with any other layout keywords. We do not
10142         instantiate children here that will be take care of by
10143         redisplay_output_layout.
10144         (layout_instantiate): call layout_update and not much else.
10145         (layout_post_instantiate): not sure whether this is needed
10146         anymore.
10147         (layout_query_geometry): query glyph geometry rather than
10148         image_instance geometry.
10149         (layout_layout): set offsets from pass in parameters. Use glyph
10150         geometry and layout functions rather than image instance ones.
10151         (native_layout_layout): ditto.
10152         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10153         (image_instantiator_widget): set_property -> update.
10154         (image_instantiator_buttons): ditto.
10155         (image_instantiator_progress_guage): ditto.
10156         (image_instantiator_tab_control): ditto.
10157         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10158         (image_instantiator_layout): add update method.
10159
10160         * glyphs-msw.c (bmp_normalize):
10161         (mswindows_resource_normalize): add dest_mask so that it can be
10162         proprogated by layout_normalize.
10163         (begin_defer_window_pos): make optional because it may not be the
10164         right thing to do and it introduces differences with X.
10165         (mswindows_unmap_subwindow): ditto.
10166         (mswindows_map_subwindow): ditto.
10167         (mswindows_redisplay_subwindow): renamed from
10168         mswindows_update_subwindow.
10169         (mswindows_redisplay_widget): ditto.
10170         (mswindows_button_redisplay): renamed from
10171         mswindows_button_update. Update is now what the instantiation
10172         function does for a changed instantiator.
10173         (mswindows_progress_gauge_instantiate): set the progress value
10174         here if appropriate.
10175         (mswindows_tab_control_redisplay): cope with re-ordering of the
10176         members of the tab widget by simply selecting the new top
10177         widget. This makes things appear ok if you click on a tab.
10178         (mswindows_combo_box_instantiate): image_instance_layout now takes
10179         position as well as size.
10180         (mswindows_progress_gauge_redisplay): renamed from
10181         mswindows_progress_gauge_update.
10182         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10183         (image_instantiator_format_create_glyphs_mswindows): ditto.
10184
10185         * glyphs-eimage.c (jpeg_normalize):
10186         (gif_normalize):
10187         (png_normalize):
10188         (tiff_normalize): add dest_mask so that it can be proprogated by
10189         layout_normalize.
10190
10191         * elhash.c:
10192         (print_hash_table):
10193         (hash_table_weakness_validate):
10194         (decode_hash_table_weakness):
10195         (Fhash_table_weakness):
10196         (Fhash_table_type):
10197         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10198
10199         * console.h (struct console_methods): move update_* to
10200         redisplay_*.
10201
10202 2000-07-20  Ben Wing  <ben@xemacs.org>
10203
10204         * *.[ch] (XSETOBJ): remove unused middle argument.
10205         lisp-disunion.h: correct wrap_object() to one argument.
10206
10207 2000-07-15  Ben Wing  <ben@xemacs.org>
10208
10209         * s/cygwin32.h:
10210         * s/cygwin32.h (CYGWIN_CONV_PATH):
10211         Add missing logb prototype for v1.1.
10212         Use post-b20 names and alias to pre-b20 names when pre-b20.
10213
10214         * s/windowsnt.h: [5].
10215
10216 2000-07-15  Ben Wing  <ben@xemacs.org>
10217
10218         * Makefile.in.in (x_objs):
10219         * Makefile.in.in (sheap_objs):
10220         * Makefile.in.in (objs):
10221         added win32.o, cosmetic cleanups.
10222
10223         * alloc.c (Fmake_byte_code):
10224         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10225         etc. macros which declare their own args now.
10226
10227         * alloc.c (syms_of_alloc):
10228         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10229
10230         * buffer.c:
10231         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10232
10233         * buffer.c (Fget_file_buffer):
10234         Fixed GCPRO problem.
10235
10236         * buffer.c (get_truename_buffer):
10237         Fixed comment about GC checking.
10238
10239         * buffer.c (syms_of_buffer):
10240         Undeclared those dedicated frame funs.
10241         [2].
10242
10243         * buffer.h:
10244         Define convenience macros for internal/external conversions.
10245         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10246         and Qenvironment_variable_encoding for cleaner code.
10247
10248         * bufslots.h:
10249         Remove dedicated-frame; in lisp.
10250
10251         * bytecode.c (funcall_compiled_function):
10252         [1].
10253
10254         * bytecode.c (syms_of_bytecode):
10255         [2].
10256
10257         * console-msw.c:
10258         * console-msw.c (mswindows_show_console): Rewrote.
10259
10260         * console-msw.c (Fmswindows_debugging_output): New.
10261         Sends to OutputDebugString (special MSWin debugger interface).
10262
10263         * console-msw.c (Fmswindows_message_box):
10264         Fixed stupid bugs so it works when called from kill-emacs.
10265
10266         * console-msw.c (syms_of_console_mswindows):
10267         Declare Fmswindows_debugging_output.
10268
10269         * console-msw.h:
10270         New MSWin prototypes.
10271
10272         * console-msw.h (struct mswindows_frame):
10273         New entry last-click-mods for improved button-modifier support.
10274
10275         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10276         New struct entry `popup' with corresponding accessor.
10277
10278         * console-x.c:
10279         * console-x.c (split_up_display_spec):
10280         * console-x.c (get_display_arg_connection):
10281         * console-x.c (x_semi_canonicalize_console_connection):
10282         * console-x.c (x_canonicalize_device_connection):
10283         [[[6]]]: Change char to more specific type.
10284         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10285
10286         * console-x.c (x_semi_canonicalize_console_connection):
10287         * console-x.c (x_canonicalize_device_connection):
10288         [[[9]]]: Fix up error signalling to use new structured error system.
10289
10290         * console-x.h:
10291         [[[4]]]: Define codesys aliases:
10292         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10293         Qx_color_name_encoding, Qx_display_name_encoding.
10294
10295         * console.h (struct console_methods):
10296         New method make_dialog_box_internal supersedes older
10297         popup_dialog_box method.
10298
10299         * data.c:
10300         Define many new errors, part of new structured errors.
10301
10302         * data.c (init_errors_once_early):
10303         * data.c (syms_of_data):
10304         [2].
10305
10306         * device-msw.c (mswindows_init_device):
10307         [[[5]]]: Cleanup to support NT 3.51.
10308
10309         * device-msw.c (decode_devmode): Cleanup.
10310
10311         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10312         * device-msw.c (mswindows_handle_print_dialog_box):
10313         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10314         * device-msw.c (syms_of_device_mswindows):
10315         Delete the dialog box primitives recently introduced by Kirill and
10316         instead interface to general dialog box interface.
10317
10318         * device-x.c:
10319         * device-x.c (compute_x_app_name):
10320         * device-x.c (x_init_device):
10321         * device-x.c (Fx_valid_keysym_name_p):
10322         * device-x.c (Fx_set_font_path):
10323         [6].
10324         [7].
10325
10326         * device.h (wrap_device): New.
10327         First of its kind; meant to replace XSETDEVICE.
10328
10329         * dialog-msw.c: Many file-dialog symbols.
10330
10331         * dialog-msw.c (mswindows_register_popup_frame): New.
10332         * dialog-msw.c (mswindows_is_dialog_msg): New.
10333         For supporting kbd traversal in dialog boxes.
10334
10335         * dialog-msw.c (dialog_proc):
10336         Support hitting ESC in dialogs.
10337
10338         * dialog-msw.c (struct):
10339         Common dialog box errors.
10340
10341         * dialog-msw.c (handle_file_dialog_box): New.
10342         Add file dialog code.
10343
10344         * dialog-msw.c (handle_question_dialog_box):
10345         Redo existing code to support new question dialog syntax.
10346
10347         * dialog-msw.c (console_type_create_dialog_mswindows):
10348         We support new dialog console method.
10349
10350         * dialog-msw.c (syms_of_dialog_mswindows):
10351         * dialog-msw.c (vars_of_dialog_mswindows):
10352         New file dialog symbols, vars.
10353
10354         * dialog-x.c:
10355         * dialog-x.c (maybe_run_dbox_text_callback):
10356         * dialog-x.c (dbox_descriptor_to_widget_value):
10357         * dialog-x.c (x_make_dialog_box_internal):
10358         * dialog-x.c (console_type_create_dialog_x):
10359         Mule-ize entire file.
10360         Redo to support question dialog syntax.
10361         [6].
10362
10363         * dialog.c:
10364         * dialog.c (Fmake_dialog_box_internal):
10365         * dialog.c (syms_of_dialog):
10366         Kill old popup-dialog-box, replace with new primitive.
10367         Just call device method or signal error.
10368
10369         * eldap.c (Fldap_open):
10370         * eldap.c (Fldap_search_basic):
10371         * eldap.c (Fldap_add):
10372         * eldap.c (Fldap_modify):
10373         [1].
10374         [7].
10375
10376         * emacs.c:
10377         * emacs.c (make_arg_list_1):
10378         * emacs.c (make_arg_list):
10379         Mule-ize call to dll_init().
10380         [6].
10381         [8].
10382
10383         * emacs.c (make_argc_argv):
10384         * emacs.c (free_argc_argv):
10385         * emacs.c (init_cmdargs):
10386         * emacs.c (main_1):
10387         * emacs.c (Fkill_emacs):
10388         * emacs.c (Fdump_emacs):
10389         Update comments about what can be used in syms_* etc.
10390         Call init_win32() when necessary.
10391         Fix up MS Win dialog box in kill-buffer to actually work right.
10392         [7].
10393
10394         * eval.c:
10395         * eval.c (For):
10396         * eval.c (Fand):
10397         * eval.c (Fprogn):
10398         * eval.c (Fprog1):
10399         * eval.c (Fprog2):
10400         * eval.c (FletX):
10401         * eval.c (Flet):
10402         * eval.c (condition_case_3):
10403         * eval.c (Feval):
10404         * eval.c (function_argcount):
10405         * eval.c (funcall_lambda):
10406         [1].
10407
10408         * eval.c (type_error): New.
10409         * eval.c (maybe_type_error): New.
10410         * eval.c (continuable_type_error): New.
10411         * eval.c (maybe_continuable_type_error): New.
10412         * eval.c (type_error_with_frob): New.
10413         * eval.c (maybe_type_error_with_frob): New.
10414         * eval.c (continuable_type_error_with_frob): New.
10415         * eval.c (maybe_continuable_type_error_with_frob): New.
10416         New functions for use with structured errors.
10417
10418         * event-Xt.c:
10419         * event-Xt.c (x_event_to_emacs_event):
10420         Buttons are now modifiers too.
10421
10422         * event-Xt.c (emacs_Xt_current_event_timestamp):
10423         Implement new event method.
10424         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10425
10426         * event-msw.c:
10427         * event-msw.c (ntpipe_shove_writer): [5].
10428         * event-msw.c (mswindows_enqueue_mouse_button_event):
10429         * event-msw.c (mswindows_drain_windows_queue):
10430         * event-msw.c (mswindows_wnd_proc): [7].
10431         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10432         * event-msw.c (mswindows_modifier_state):
10433         Throughout: support new button modifiers.
10434
10435         * event-msw.c (emacs_mswindows_current_event_timestamp):
10436         Implement new event method.
10437         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10438
10439         * event-stream.c:
10440         * event-stream.c (event_stream_current_event_timestamp): New.
10441         * event-stream.c (maybe_kbd_translate): New functionality.
10442         * event-stream.c (vars_of_event_stream):
10443         Document new kbd-translate-table functionality.
10444
10445         * event-stream.c (Fcurrent_event_timestamp): New.
10446         New primitive for use in fabricated events.
10447         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10448
10449         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10450
10451         * events.c:
10452         * events.c (Fmake_event):
10453         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10454         [1].
10455         [9].
10456
10457         * events.c (format_event_object): fix gcc warnings.
10458
10459         * events.c (Fevent_timestamp): Document new primitives.
10460
10461         * events.c (TIMESTAMP_HALFSPACE): New.
10462
10463         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10464         comparing timestamps correctly (half-space algorithm).
10465
10466         * events.c (Fevent_modifier_bits): Doc fix.
10467
10468         * events.c (Fevent_modifiers): Major doc addition.
10469         * events.c (event_x_y_pixel_internal): Typo fix.
10470         * events.c (syms_of_events): Declare new primitives.
10471
10472         * events.h:
10473         Update long comment for button modifiers, timestamps.
10474
10475         * events.h (struct event_stream):
10476         New current_event_timestamp method.
10477
10478         * extents.c:
10479         * extents.c (extent_in_region_p):
10480         * extents.c (decode_extent):
10481         * extents.c (Fset_extent_parent):
10482         * extents.c (decode_map_extents_flags):
10483         Fix gcc warnings.
10484         [9].
10485
10486         * extents.c (struct extent_at_arg):
10487         * extents.c (decode_extent_at_flag):
10488         * extents.c (extent_at_mapper):
10489         * extents.c (extent_at_bytind):
10490         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10491         * extents.c (Fextents_at): New primitive. [9].
10492         * extents.c (symbol_to_glyph_layout): [9].
10493         Support new primitive `extents-at'.
10494
10495
10496         * extents.c (get_text_property_bytind):
10497         extent_at_bytind has another arg.
10498         [9].
10499
10500         * extents.c (syms_of_extents): New primitive.
10501
10502         * file-coding.c (Fmake_coding_system): [1].
10503         * file-coding.c (subsidiary_coding_system): fix gcc warning
10504         * file-coding.c (syms_of_file_coding): [2].
10505
10506         * fileio.c (Fexpand_file_name):
10507         * fileio.c (Fsysnetunam):
10508         * fileio.c (Ffile_exists_p):
10509         * fileio.c (Ffile_executable_p):
10510         * fileio.c (Fverify_visited_file_modtime):
10511         Clean up GCPROing.
10512
10513         * fileio.c (syms_of_fileio): [2].
10514
10515         * filelock.c (lock_file_1):
10516         * filelock.c (current_lock_owner):
10517         * filelock.c (lock_if_free):
10518         * filelock.c (lock_file):
10519         * filelock.c (unlock_file):
10520         Clean up GCPROing.
10521
10522         * fns.c (concat): Fix gcc warning.
10523
10524         * fns.c (Fmember):
10525         * fns.c (Fold_member):
10526         * fns.c (Fmemq):
10527         * fns.c (Fold_memq):
10528         * fns.c (memq_no_quit):
10529         * fns.c (Fassoc):
10530         * fns.c (Fold_assoc):
10531         * fns.c (Fassq):
10532         * fns.c (Fold_assq):
10533         * fns.c (assq_no_quit):
10534         * fns.c (Frassoc):
10535         * fns.c (Fold_rassoc):
10536         * fns.c (Frassq):
10537         * fns.c (Fold_rassq):
10538         * fns.c (rassq_no_quit):
10539         * fns.c (Fdelete):
10540         * fns.c (Fold_delete):
10541         * fns.c (Fdelq):
10542         * fns.c (Fold_delq):
10543         * fns.c (delq_no_quit):
10544         * fns.c (Fremassoc):
10545         * fns.c (Fremassq):
10546         * fns.c (remassq_no_quit):
10547         * fns.c (Fremrassoc):
10548         * fns.c (Fremrassq):
10549         * fns.c (remrassq_no_quit):
10550         * fns.c (Freverse):
10551         * fns.c (mapcar1):
10552         [1].
10553
10554         * frame-msw.c (mswindows_init_frame_1):
10555         * frame-msw.c (mswindows_delete_frame):
10556         Register popups with dialog code so keyboard traversing works.
10557
10558         * frame-tty.c (tty_raise_frame_no_select): [1].
10559
10560         * frame-x.c:
10561         * frame-x.c (x_set_frame_text_value):
10562         * frame-x.c (x_set_frame_properties):
10563         * frame-x.c (x_create_widgets):
10564         [7].
10565
10566         * frame.c:
10567         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10568
10569         * frame.h (wrap_frame): New.
10570         Macro like wrap_device.
10571
10572         * general.c:
10573         * general.c (SYMBOL):
10574         * general.c (syms_of_general):
10575         Major reorg.  This is now just a wrapper and symbols themselves
10576         are listed in general-slots.h.
10577
10578         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10579         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10580
10581         * glyphs-msw.c (mswindows_native_layout_instantiate):
10582         Add DS_CONTROL so keyboard traversal will work.
10583
10584         * glyphs-widget.c:
10585         * glyphs-widget.c (syms_of_glyphs_widget):
10586         Move some symbols to general-slots.h.
10587
10588         * glyphs-x.c:
10589         * glyphs-x.c (xbm_instantiate_1):
10590         * glyphs-x.c (x_xbm_instantiate):
10591         * glyphs-x.c (x_xface_instantiate):
10592         * glyphs-x.c (autodetect_instantiate):
10593         * glyphs-x.c (cursor_font_instantiate):
10594         * glyphs-x.c (x_update_widget):
10595         * glyphs-x.c (x_widget_instantiate):
10596         * glyphs.c (bitmap_to_lisp_data):
10597         * glyphs.c (pixmap_to_lisp_data):
10598         [7].
10599
10600         * glyphs.c (syms_of_glyphs):
10601         [2].
10602
10603         * gui-x.c:
10604         * gui-x.c (print_widget_value):
10605         * gui-x.c (menu_separator_style_and_to_external):
10606         * gui-x.c (add_accel_and_to_external):
10607         * gui-x.c (button_item_to_widget_value):
10608         * gui-x.c (gui_items_to_widget_values_1):
10609         * gui-x.c (gui_items_to_widget_values):
10610         * gui-x.c (syms_of_gui_x):
10611         * gui-x.c (vars_of_gui_x):
10612         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10613         [9].
10614
10615         * gui-x.h:
10616         Muleize, prototype changes matching gui-x.c.
10617
10618         * gui.c:
10619         * gui.c (separator_string_p):
10620         * gui.c (gui_item_add_keyval_pair):
10621         * gui.c (make_gui_item_from_keywords_internal):
10622         * gui.c (signal_too_long_error):
10623         * gui.c (parse_gui_item_tree_item):
10624         * gui.c (syms_of_gui):
10625         * gui.c (vars_of_gui):
10626         * gui.h:
10627         menu-no-selection-hook moved here (used by MSWin).
10628         Move some symbols to general-slots.h.
10629         [6].
10630         [9].
10631
10632         * insdel.c (get_buffer_pos_char):
10633         * insdel.c (get_buffer_range_char):
10634         Add GC comments.
10635
10636         * keymap.c (keymap_lookup_directly):
10637         * keymap.c (keymap_store):
10638         * keymap.c (ensure_meta_prefix_char_keymapp):
10639         * keymap.c (describe_map):
10640         * keymap.h:
10641         Support new button modifiers.
10642
10643         * lisp-disunion.h (wrap_object):
10644         * lisp-disunion.h (XSETOBJ):
10645         Rename make_obj to wrap_object.
10646
10647         * lisp-union.h:
10648         * lisp-union.h (make_int):
10649         * lisp-union.h (make_char):
10650         Support wrap_object.
10651
10652         * lisp.h:
10653         * lisp.h (LIST_LOOP):
10654         * lisp.h (EXTERNAL_LIST_LOOP):
10655         * lisp.h (LIST_LOOP_2):
10656         * lisp.h (EXTERNAL_LIST_LOOP_1):
10657         * lisp.h (EXTERNAL_LIST_LOOP_2):
10658         * lisp.h (EXTERNAL_LIST_LOOP_3):
10659         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10660         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10661         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10662         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10663         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10664         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10665         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10666         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10667         * lisp.h (struct Lisp_Symbol):
10668         * lisp.h (maybe_continuable_error_with_frob):
10669         Fix up section comments.
10670         Add new types for char to indicate usage.
10671         Delete symbols auto-generated from general-slots.h.
10672         Add prototypes for structured error functions.
10673         Add long comments describing looping macros and change interface
10674         so that lvalues are automatically declared.
10675         Add NO_DECLARE macro in case callers want to declare lvalues
10676         themselves.
10677
10678         * lread.c (read_syntax_error):
10679         * lread.c (continuable_read_syntax_error):
10680         * lread.c (read_structure):
10681         * lread.c (sequence_reader):
10682         * lread.c (read_list_conser):
10683         * lread.c (read_compiled_function):
10684         Rename syntax_error and continuable_syntax_error to avoid clash
10685         with same-named structured error functions.
10686
10687         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10688         * menubar-msw.c (populate_menu_add_item):
10689         * menubar-msw.c (populate_or_checksum_helper):
10690         [5].
10691         [9].
10692
10693         * menubar-x.c:
10694         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10695         Mule-ize whole file.
10696
10697         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10698
10699         * mule-charset.c (Fmake_charset):
10700         * mule-wnnfns.c (Fwnn_set_param):
10701         [1].
10702
10703         * ntproc.c (create_child):
10704         * ntproc.c (Fwin32_set_current_locale):
10705         Add comments portending doom.
10706
10707         * objects-msw.c:
10708         * objects-msw.c (old_font_enum_callback_2):
10709         * objects-msw.c (font_enum_callback_1):
10710         * objects-msw.c (mswindows_enumerate_fonts):
10711         [5].
10712
10713         * objects-x.c:
10714         * objects-x.c (allocate_nearest_color):
10715         * objects-x.c (x_parse_nearest_color):
10716         * objects-x.c (x_initialize_color_instance):
10717         * objects-x.c (x_print_color_instance):
10718         * objects-x.c (x_finalize_color_instance):
10719         * objects-x.c (x_valid_color_name_p):
10720         * objects-x.c (x_initialize_font_instance):
10721         * objects-x.c (x_print_font_instance):
10722         * objects-x.c (valid_x_font_name_p):
10723         * objects-x.c (truename_via_FONT_prop):
10724         * objects-x.c (truename_via_random_props):
10725         * objects-x.c (truename_via_XListFonts):
10726         * objects-x.c (x_font_truename):
10727         * objects-x.c (x_font_instance_truename):
10728         * objects-x.c (x_font_instance_properties):
10729         * objects-x.c (x_list_fonts):
10730         * objects-x.c (x_find_charset_font):
10731         Mule-ize entire file.
10732         [7].
10733
10734         * objects-x.h:
10735         Mule-verify.
10736
10737         * print.c:
10738         * print.c (std_handle_out_external):
10739         * print.c (debug_print_no_newline):
10740         * print.c (syms_of_print):
10741         Output to all debugger kinds in debug-print.
10742         Fix console-output code under MSWin to actually work.
10743
10744         * process-nt.c (send_signal):
10745         * process-nt.c (nt_create_process):
10746         Use newer Unicode macros.
10747
10748         * process-unix.c (unix_create_process):
10749         * process-unix.c (unix_canonicalize_host_name):
10750         * process-unix.c (unix_open_network_stream):
10751         [7].
10752
10753         * scrollbar-x.c:
10754         Mule-verify.
10755
10756         * search.c (syms_of_search):
10757         [2].
10758
10759         * select-msw.c (mswindows_destroy_selection):
10760         Use LIST_LOOP_2.
10761
10762         * select-x.c (symbol_to_x_atom):
10763         [7].
10764
10765         * select.c (syms_of_select):
10766         [2].
10767
10768         * sound.c (Fplay_sound_file):
10769         [7].
10770
10771         * specifier.c:
10772         * specifier.c (decode_specifier_type):
10773         * specifier.c (Fvalid_specifier_locale_type_p):
10774         * specifier.c (check_valid_locale_or_locale_type):
10775         * specifier.c (decode_locale):
10776         * specifier.c (decode_locale_type):
10777         * specifier.c (decode_locale_list):
10778         * specifier.c (check_valid_domain):
10779         * specifier.c (decode_specifier_tag_set):
10780         * specifier.c (Fcanonicalize_tag_set):
10781         * specifier.c (Fdefine_specifier_tag):
10782         * specifier.c (Fspecifier_tag_predicate):
10783         * specifier.c (check_valid_inst_list):
10784         * specifier.c (check_valid_spec_list):
10785         * specifier.c (decode_how_to_add_specification):
10786         * specifier.c (check_modifiable_specifier):
10787         * specifier.c (specifier_add_spec):
10788         * specifier.c (boolean_validate):
10789         * specifier.c (display_table_validate):
10790         [9].
10791
10792         * specifier.c (syms_of_specifier):
10793         Move some symbols to general-slots.h.
10794         [2].
10795
10796         * symbols.c:
10797         * symbols.c (Fmapatoms):
10798         * symbols.c (Fapropos_internal):
10799         Add GCPROs.
10800
10801         * symbols.c (set_default_buffer_slot_variable):
10802         * symbols.c (set_default_console_slot_variable):
10803         [1].
10804
10805         * symbols.c (defsymbol_massage_name_1):
10806         * symbols.c (defkeyword_massage_name):
10807         * symbols.c (deferror_1):
10808         * symbols.c (deferror):
10809         * symbols.c (deferror_massage_name_and_message):
10810         * symeval.h:
10811         * symeval.h (DEFSYMBOL):
10812         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10813
10814         * symbols.c (syms_of_symbols):
10815         [2].
10816
10817         * symsinit.h:
10818         * symsinit.h (init_win32): New.
10819         Also new is syms_of_dialog_mswindows.
10820
10821         * syswindows.h:
10822         Add new Unicode macros, missing Cygwin wide-char functions,
10823         convenience conversion macros for Qmswindows_tstr, macros for
10824         encapsulating required MSWin <-> Cygwin filename conversions,
10825         prototype for dynamically-extracted (not in NT 3.51) functions.
10826
10827         * toolbar-x.c:
10828         Mule-verify.
10829
10830         * tooltalk.c (Fadd_tooltalk_message_arg):
10831         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10832         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10833         [7].
10834
10835         * tooltalk.c (syms_of_tooltalk):
10836         [2].
10837
10838         * unexnt.c:
10839         * unexnt.c (unexec):
10840         Fix up headers, declaration of unexec() to be more standard.
10841
10842 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10843
10844         * offix.h: Revert change to guard macros - they're used in offix.c!
10845
10846 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10847
10848         * lisp.h: Defsubred Fdelete.
10849
10850         * console-msw.h:  (msprinter_default_printer): Added.
10851
10852         * console-msw.c (msprinter_canonicalize_console_connection):
10853         (msprinter_canonicalize_device_connection): Added.
10854
10855         * device-msw.c (msprinter_default_printer):
10856         (Fmswingows_get_default_printer):
10857         (signal_enum_priner_error):
10858         (Fmswingows_printer_list): Added.
10859
10860 2000-07-19  Martin Buchholz <martin@xemacs.org>
10861
10862         * XEmacs 21.2.35 is released.
10863
10864 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10865
10866         * select-x.c (x_handle_selection_request):
10867         Text selected in xemacs and pasted into xterm failed to appear.
10868         Spelling fixes and cosmetic changes.
10869
10870 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10871
10872         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10873         XEmacs frame (fix for doubling chars in dialog boxes).
10874
10875 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10876
10877         * select.c (select_convert_in, select_convert_out):
10878         Don't call intern() every time.
10879
10880         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10881         * select.c (vars_of_select): Initialise them.
10882
10883 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10884
10885         * select.c (selection-coercible-types): New.
10886
10887         * select.c (own-selection-internal):
10888         * select.c (get-selection-internal):
10889         MULE bug fix - these should default to COMPOUND_TEXT and not
10890         STRING for MULE. I think.
10891
10892         * select.c (select_convert_out): Use selection-coercible-types
10893         to find types that we can attempt to perform coercions on.
10894
10895 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10896
10897         * mule-wnnfns.c:
10898         * mule-canna.c:
10899         Add coding: cookie to identify encoding.
10900
10901         * mule-canna.c (CANNA_mode_keys): make static.
10902         Use proper prototypes, even for functions of no arguments.
10903         Remove external prototype for Fding().
10904
10905         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10906
10907         * select.c (syms_of_select): Add missing DEFSUBR.
10908
10909 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10910
10911         * select.c (get_selection_internal, own_selection_internal):
10912         Make the type default to STRING, rather than placing a nil type
10913         into Vselection_alist.
10914
10915 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10916
10917         * gpmevent.c (tty_selection_exists_p):
10918         * gpmevent.c (tty_own_selection):
10919         Updated parameter lists.
10920
10921 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10922
10923         * select.h (selection-alist): Removed declaration.
10924
10925         * select.h (get_local_selection):
10926         * select.c (get_local_selection):
10927         Made static.
10928
10929         * select.h (convert_selection): Removed declaration.
10930         * select.c (convert_selection): Removed.
10931         This function belongs in Lisp.
10932
10933         * select.h (select_convert_in): Declare.
10934         * select.h (select_convert_out): Declare.
10935         * select.c (select_convert_in): New.
10936         * select.c (select_convert_out): New.
10937         New conversion functions for other files to call.
10938
10939         * select.h (select_notify_buffer_kill): Declare.
10940         * select.c (select_notify_buffer_kill): New.
10941         New functions that get called from kill-buffer.
10942
10943         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10944         X-specific lisp code.
10945
10946         * select.h: Declare some of the lisp-visible functions for
10947         external use.
10948
10949         * select.c (clean_local_selection_data): Removed. This was
10950         a disgusting function, and previously should have been in
10951         select-x.c in any case. The functionality is now provided
10952         in select-convert-from-integer (select.el).
10953
10954         * select.c (available-selection-types): Fixed stupidity where
10955         INTEGER and ATOM got added twice. Also add STRING when we see an
10956         extent.
10957
10958         * select.c (get-selection-internal): Removed symbol stripping. No
10959         longer causes conversion when data comes from the internal cache.
10960
10961         * select.c (syms_of_select): Added new functions.
10962
10963         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10964         error checking - previously this called abort!
10965
10966         * select-x.c (x_own_selection): Changed comment.
10967
10968         * select-x.c (x_handle_selection_request): Use select_convert_out.
10969         Don't mess with selection-alist; it's an internal variable of select.c.
10970
10971         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10972
10973         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10974         rather than messing with selection-alist.
10975
10976         * select-msw.c (mswindows_get_foreign_selection):
10977         Use TO_INTERNAL_FORMAT rather than hacking.
10978
10979 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10980
10981         * process-unix.c (unix_open_multicast_group):
10982         (unix_open_multicast_group): Remove useless casts.
10983
10984 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10985
10986         * sound.c (Fplay_sound): Fix `unused variable' warning.
10987
10988         * emacs.c (main): Use correct type for _environ on SCO5.
10989
10990 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10991
10992         * console.h (own_selection_method):
10993         * console.h (selection_exists_p_method):
10994         * console.h (available_selection_types_method): New.
10995         * console.h (register_selection_data_type_method): New.
10996         * console.h (selection_data_type_name): New.
10997
10998         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10999         function & alist to track GlobalAlloc()'d handles that need
11000         releasing when the clipboard data gets replaced or emptied.
11001
11002         * event-msw.c (mswindows_wnd_proc): Call it.
11003
11004         * lisp.h, general.c (Qappend): New symbol representing a
11005         `how-to-add' mode.
11006
11007         * select.c (own-selection-internal):
11008         * select.c (selection-exists-p):
11009         * select.c (available-selection-types): New.
11010         * select.c (register-selection-data-type): New.
11011         * select.c (selection-data-type-name): New.  New functions to deal
11012         with device-specific selection data formats.
11013         * select.c (selection-converter-out-alist): Renamed.
11014         * select.c (selection-converter-in-alist): New.
11015         * select.c (selection-appender-alist): New.  Added new alists.
11016         * select.c (syms_of_select, vars_of_select): Added new symbols &
11017         variables.
11018         * select.c (get_local_selection): Split.
11019         * select.c: Removed spurious type checking - selections may now be
11020         of any type, not just strings.
11021         * select.c (own-selection-internal):
11022
11023         * select.h, select.c (convert_selection): New. Created
11024         convert_selection() function based on get_local_selection().
11025         * select.h, select.c (QCF_*): New symbols representing mswindows
11026         clipboard formats.
11027         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11028         symbols representing `how-to-add' modes.
11029
11030         * select-msw.c (x_sym_p): New.
11031         * select-msw.c (symbol_to_ms_cf): New.
11032         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11033         symbols & clipboard formats. Can also handle string names.
11034         * select-msw.c (mswindows_own_selection):
11035         * select-msw.c (mswindows_selection_exists_p):
11036         Added `data-type' parameter. Use it.
11037         * select-msw.c (mswindows_available_selection_types): New.
11038         * select-msw.c (mswindows_register_selection_data_type): New.
11039         * select-msw.c (mswindows_selection_data_type_name): New.
11040         * select-msw.c (mswindows_own_selection):
11041         * select-msw.c (mswindows_get_foreign_selection):
11042         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11043         * select-msw.c (console_create_select_mswindows): Added new methods.
11044         * select-msw.c (mswindows_destroy_selection): New.
11045         * select-msw.c (Vhandle_alist): New list.
11046         * select-msw.c (mswindows_own_selection):
11047
11048         * select-x.c (x_own_selection):
11049         * select-x.c (x_selection_exists_p):
11050         * select-x.c: Added some comments about maybe using new
11051         functionality.
11052         * select-x.c (x_own_selection):
11053
11054         * specifier.c: Remove definition of Qappend (now in general.c)
11055         * specifier.c (syms_of_specifier): Remove Qappend.
11056
11057 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11058
11059         * config.h.in: Add socklen_t.
11060
11061         * s/decosf4-0.h: No special compiler flags needed or desired.
11062         In particular, undefine _BSD for DEC OSF 4.0.
11063
11064 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11065
11066         * redisplay-msw.c (msprinter_frame_output_end): Added.
11067         (console_type_create_redisplay_mswindows): Referred the above.
11068
11069         * frame.c (setup_frame_without_minibuffer): Do not create a
11070         default minibuffer frame on a printer device.
11071
11072         * frame-msw.c (apply_dc_geometry): Added.
11073         (msprinter_start_page):
11074         (msprinter_init_frame_3):
11075         (msprinter_eject_page): Use it.
11076
11077         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11078         and removed residual duplex and orientation properties.
11079
11080 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11081
11082         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11083
11084         * unexalpha.c: Remove system prototypes from C sources!
11085
11086 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11087
11088         * eval.c: Remove references to M-x edit-options in DEFUNs for
11089         `defvar' and `defconst'.
11090
11091 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11092
11093         * config.h.in: Remove SMART_INCLUDE hackery.
11094
11095         PostgreSQL hacking:
11096         * config.h.in: Don't use SMART_INCLUDE.
11097
11098         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11099         * inline.c: Simply #include "postgresql.h"
11100         * postgresql.c:
11101         - Don't use SMART_INCLUDE
11102         - Use simply "const".
11103         - Use standard doc string conventions.
11104         - Use correct type for result of PQstatus.
11105
11106 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11107
11108         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11109
11110         C++ compilation changes.
11111         * config.h.in (EXTERN_C): Define.
11112         * config.h.in (not): This is also a C++ keyword.
11113         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11114         * cm.c: Use EXTERN_C.
11115         * redisplay-tty.c: Use EXTERN_C.
11116         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11117
11118 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11119
11120         * general.c: Remove duplicate definition for Qfunction.
11121
11122 2000-07-08  Ben Wing  <ben@xemacs.org>
11123
11124         * device-msw.c (msprinter_init_device):
11125         * device-msw.c (sync_printer_with_devmode):
11126         * device-msw.c (handle_devmode_changes):
11127         * device-msw.c (print_dialog_worker):
11128         * device-msw.c (Fmsprinter_apply_settings):
11129         * device-msw.c (hash_devmode):
11130         * device-msw.c (Fmsprinter_settings_despecialize):
11131         use Qmswindows_tstr, not Qctext.
11132
11133         * vm-limit.c (check_memory_limits):
11134         avoid infinite loop printing warning messages.
11135
11136 2000-07-05  Craig Lanning  <lanning@scra.org>
11137
11138         * Makefile.in.in: Add support for including the Windows resources
11139         when building with the cygwin and mingw targets.
11140
11141         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11142         not set or not correct.
11143         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11144         (init_initial_directory): Don't try to use $PWD on the
11145         WIN32_NATIVE target.
11146
11147         * s\cygwin32.h:
11148         [[Add -mwindows to eliminate console window.]] not required --ben
11149         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11150         (MAIL_USE_POP): removed; now handled by configure.
11151
11152         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11153         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11154         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11155         (MAIL_USE_POP): removed; now handled by configure.
11156         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11157         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11158         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11159         constant string.
11160         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11161         up from <winsock.h> via systime.h.
11162         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11163         (getpagesize): from Dan Holmsand, added.
11164         Added #endif which was left dangling by Ben's mega patch; added
11165         comment to help prevent this in the future.
11166
11167         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11168
11169 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11170
11171         * console-msw.h (struct mswindows_device): Removed unnecessary
11172         cached device geometry values.
11173         Added update_tick and an accessor macro.
11174         (Lisp_Devmode): Added lrecord declaration.
11175         (struct msprinter_device): Contain devmode as a Lisp object.
11176         Added mswindows_get_selected_frame_hwnd();
11177
11178         * console.h (struct console_methods): Indentation nitpicking.
11179
11180         * device-msw.c (mswindows_init_device): Do not initialize geometry
11181         cache. Initialize update tick.
11182         (mswindows_device_system_metrics): Ask the device for its geometry.
11183         (global_free_2_maybe):
11184         (devmode_to_hglobal):
11185         (handle_printer_changes):
11186         (ensure_not_printing):
11187         (print_dialog_worker):
11188         (Fmsprinter_print_setup_dialog):
11189         (Fmsprinter_print_dialog):
11190         (plist_get_margin):
11191         (plist_set_margin):
11192         (Fmsprinter_page_setup_dialog): Added functions.
11193         (sync_printer_with_devmode):
11194         (handle_devmode_changes):
11195         (Fmsprinter_get_settings):
11196         (Fmsprinter_select_settings):
11197         (Fmsprinter_apply_settings):
11198         (allocate_devmode):
11199         (Fmsprinter_settings_copy):
11200         (Fmsprinter_settings_despecialize):
11201         (print_devmode):
11202         (finalize_devmode):
11203         (equal_devmode):
11204         (hash_devmode): Added functions
11205         (syms_of_device_mswindows): Init devmode lrecord class.
11206
11207         * device.h: Added an exfun for find-device.
11208
11209         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11210         geometry; although, recreate the device compatible DC.
11211
11212         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11213         (msprinter_init_frame_3):
11214         (msprinter_frame_property):
11215         (msprinter_internal_frame_property_p):
11216         (msprinter_frame_properties):
11217         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11218         print job properties (will move to device settings).
11219
11220         * lisp.h: Added symbols.
11221
11222         * general.c (syms_of_general): Declared them.
11223
11224         * hash.c (string_hash): Added.
11225
11226         * lrecord.h (lrecord_type): Added devmode lrecord type.
11227
11228 2000-07-02  Mike Sperber <mike@xemacs.org>
11229
11230         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11231         FreeBSD 4.0.
11232
11233 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11234
11235         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11236         integer.
11237
11238 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11239
11240         * data.c (Fstring_to_number): Don't recognize floating point if
11241         base is not 10.
11242
11243 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11244
11245         * glyphs-widget.c (tab_control_query_geometry):
11246         (widget_query_geometry):
11247         (button_query_geometry):
11248         * glyphs.c (text_query_geometry):
11249         Enforce type correctness.
11250
11251 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11252
11253         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11254         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11255
11256 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11257
11258         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11259         conflicts with gcc's fixincluded version of FOO.h.
11260
11261         * glyphs.h (image_instance_geometry): Remove trailing `,'
11262
11263 2000-06-08  Mike Alexander  <mta@arbortext.com>
11264
11265         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11266         (shove_thread): Don't write the same output twice
11267         (make_ntpipe_output_stream): Increase priority of shove thread
11268         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11269         chance to run
11270         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11271         it.
11272
11273 2000-06-12  Ben Wing  <ben@xemacs.org>
11274
11275         * s\mingw32.h (sigset):
11276         * s\windowsnt.h (sigset):
11277         rename msw_ to mswindows_ for consistency with general convention.
11278
11279 2000-06-12  Ben Wing  <ben@xemacs.org>
11280
11281         * console-msw.c:
11282         * console-msw.c (mswindows_get_console_hwnd):
11283         * console-msw.c (mswindows_ensure_console_allocated):
11284         * console-msw.c (mswindows_hide_console):
11285         * console-msw.c (mswindows_show_console):
11286         * console-msw.c (mswindows_ensure_console_buffered):
11287         * console-msw.c (mswindows_output_console_string):
11288         * console-msw.c (mswindows_windows9x_p):
11289         * console-msw.h:
11290         * device-msw.c (mswindows_get_workspace_coords):
11291         * device-msw.c (mswindows_device_system_metrics):
11292         * dialog-msw.c (mswindows_popup_dialog_box):
11293         * event-msw.c (mswindows_wnd_proc):
11294         * frame-msw.c (mswindows_size_frame_internal):
11295         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11296         * menubar-msw.c (displayable_menu_item):
11297         * menubar-msw.c (mswindows_char_is_accelerator):
11298         * nt.c:
11299         * nt.c (mswindows_sigset):
11300         * nt.c (mswindows_sigrelse):
11301         * nt.c (mswindows_sigpause):
11302         * nt.c (mswindows_raise):
11303         * nt.c (timer_proc):
11304         * ntproc.c:
11305         * ntproc.c (find_child_console):
11306         * ntproc.c (sys_kill):
11307         * print.c:
11308         * print.c (std_handle_out_external):
11309         * process-nt.c (find_child_console):
11310         * process-nt.c (send_signal_the_95_way):
11311         * process-nt.c (ensure_console_window_exists):
11312         * process-nt.c (nt_create_process):
11313         * syssignal.h:
11314         rename msw_ to mswindows_ for consistency with general convention.
11315
11316         * emacs.c:
11317         * dumper.c:
11318         include nt.h, not syswindows.h.
11319
11320         * nt.c (mswindows_fstat):
11321         * nt.c (mswindows_stat):
11322         prefix mswindows_ instead of attempting to directly override the
11323         library functions.  fix declarations.
11324
11325         * nt.h:
11326         include syswindows.h.  move some sysdep.h stuff here.
11327
11328         * ntheap.h:
11329         include syswindows.h, not <windows.h>.
11330
11331         * ntplay.c:
11332         clean up headers.
11333
11334         * sysdep.c:
11335         clean up headers.
11336
11337         * sysdep.c (sys_fstat):
11338         * sysdep.c (sys_stat):
11339         call mswindows versions when appropriate.
11340
11341         * sysdep.h:
11342         move mswin decls to nt.h.
11343
11344         * syswindows.h:
11345         add long comment describing appropriate use of the various windows
11346         headers.
11347
11348 2000-06-11  Ben Wing  <ben@xemacs.org>
11349
11350         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11351
11352 2000-06-10  Ben Wing  <ben@xemacs.org>
11353
11354         * Makefile.in.in (release):
11355         Correction to make sure xemacs.exe always dumped when correct.
11356
11357         * alloca.c:
11358         * balloon_help.c:
11359         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11360
11361         * buffer.c (set_buffer_internal):
11362         [[[[2]]]]: Remove HAVE_FEP code.
11363
11364         * buffer.c (init_initial_directory):
11365         [3].
11366
11367         * bytecode.c:
11368         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11369         individual files.
11370
11371         * callproc.c:
11372         * callproc.c (call_process_cleanup):
11373         * callproc.c (Fold_call_process_internal):
11374         * callproc.c (child_setup):
11375         * callproc.c (getenv_internal):
11376         * callproc.c (init_callproc):
11377         * callproc.c (vars_of_callproc):
11378         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11379         __CYGWIN32__ -> CYGWIN.
11380         DOS_NT -> WIN32_NATIVE.
11381         Remove MSDOS support/references, converting to WIN32_NATIVE
11382           where correct.
11383         __MINGW32__ -> MINGW.
11384         Fix windows.h includes.
11385         Remove bogus HAVE_NTGUI.
11386
11387         * config.h.in:
11388         [2].
11389
11390         * console-msw.c:
11391         mswindows_message_outputted added for use in allowing startup
11392         errors on the console to be seen.
11393
11394         * console-msw.c (msw_ensure_console_allocated):
11395         * console-msw.c (msw_output_console_string):
11396         * console-msw.c (DHEADER):
11397         * console-msw.c (DOPAQUE_DATA):
11398         * console-msw.c (DEVENT):
11399         * console-msw.c (DCONS):
11400         * console-msw.c (DCONSCDR):
11401         * console-msw.c (DSTRING):
11402         * console-msw.c (DVECTOR):
11403         * console-msw.c (DSYMBOL):
11404         * console-msw.c (DSYMNAME):
11405         Fix warnings.
11406
11407         * console-stream.c (stream_init_console):
11408         Fix text/binary problems.
11409
11410         * device-msw.c:
11411         * device-msw.c (mswindows_finish_init_device):
11412         * device-msw.c (mswindows_delete_device):
11413         [1].
11414
11415         * device.c (handle_asynch_device_change):
11416         [3].
11417
11418         * dgif_lib.c:
11419         * dgif_lib.c (DGifOpenFileName):
11420         * dgif_lib.c (DGifOpenFileHandle):
11421         * dgif_lib.c (DGifGetLine):
11422         * dgif_lib.c (DGifGetPixel):
11423         Added config.h/lisp.h, fix up includes.
11424         [1].
11425
11426         * dired-msw.c:
11427         [4].
11428
11429         * dired.c:
11430         * dired.c (file_name_completion):
11431         * dired.c (Ffile_attributes):
11432         * dired.c (syms_of_dired):
11433         [1].
11434
11435         * dumper.c:
11436         * dumper.c (pdump_file_unmap):
11437         * dumper.c (pdump_load):
11438         [1].
11439
11440         * editfns.c:
11441         * editfns.c (Ftemp_directory):
11442         * editfns.c (user_login_name):
11443         * editfns.c (Fuser_real_login_name):
11444         * editfns.c (get_home_directory):
11445         [1].
11446
11447         * elhash.c (finish_marking_weak_hash_tables):
11448         [[[[5]]]]: Fix GCC warnings.
11449
11450         * emacs.c:
11451         * emacs.c (mswindows_handle_hardware_exceptions):
11452         * emacs.c (make_arg_list_1):
11453         * emacs.c (main_1):
11454         * emacs.c (Fkill_emacs):
11455         * emacs.c (Fdump_emacs):
11456         [1].
11457         Fix problems with nested crashes, add long comment.
11458
11459         * event-Xt.c (init_event_Xt_late):
11460         [1].
11461
11462         * event-msw.c:
11463         * event-msw.c (mswindows_dde_callback):
11464         * event-msw.c (mswindows_handle_sticky_modifiers):
11465         * event-msw.c (mswindows_wnd_proc):
11466         [1].
11467         [5].
11468
11469         * events.c (character_to_event):
11470         [1].
11471
11472         * fileio.c:
11473         * fileio.c (Ffile_name_directory):
11474         * fileio.c (Ffile_name_nondirectory):
11475         * fileio.c (directory_file_name):
11476         * fileio.c (Fexpand_file_name):
11477         * fileio.c (Fsubstitute_in_file_name):
11478         * fileio.c (Ffile_name_absolute_p):
11479         * fileio.c (check_executable):
11480         * fileio.c (Ffile_readable_p):
11481         * fileio.c (Ffile_accessible_directory_p):
11482         * fileio.c (Ffile_modes):
11483         * fileio.c (Funix_sync):
11484         * fileio.c (vars_of_fileio):
11485         [1]. [4].
11486
11487         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11488
11489         Expand getdefdir defn.
11490         Fix bogus rename() comment.
11491
11492         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11493         to use standard XEmacs include files, e.g. sysfile.h, rather
11494         than system-specific includes.
11495
11496         * fns.c:
11497         * fns.c (Fsubseq):
11498         [5]. [6].
11499
11500         * frame.c (vars_of_frame):
11501         [1].
11502
11503         * getloadavg.c:
11504         * getloadavg.c (getloadavg):
11505         [1]. [6].
11506         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11507         (We don't use it elsewhere in the code; just add a comment.)
11508
11509         * gif_io.c:
11510         [6].
11511         Add config.h.
11512
11513         * glyphs-msw.c:
11514         * glyphs-msw.c (mswindows_resource_instantiate):
11515         [1].
11516
11517         * glyphs-x.c (x_native_layout_instantiate):
11518         [5].
11519
11520         * gui-msw.c (Fmswindows_shell_execute):
11521         [1].
11522
11523         * insdel.c:
11524         [4].
11525
11526         * lisp.h:
11527         [4]. [5].
11528
11529         * lread.c (locate_file_in_directory_mapper):
11530         [1].
11531
11532         * lstream.c:
11533         [4].
11534
11535         * mem-limits.h:
11536         * mem-limits.h (get_lim_data):
11537         [1].
11538
11539         * menubar-msw.c:
11540         [4].
11541
11542         * ndir.h:
11543         [1].
11544
11545         * nt.c:
11546         * nt.c (getwd):
11547         * nt.c (closedir):
11548         * nt.c (rva_to_section):
11549         * nt.c (mswindows_executable_type):
11550         [1]. [6].
11551         Fix closedir() defn.
11552
11553         * nt.h:
11554         [[[[8]]]]: *_OK defs moved to sysfile.h.
11555
11556         * ntproc.c:
11557         [6]. [7].
11558
11559         * objects-x.c:
11560         [4].
11561
11562         * print.c:
11563         * print.c (std_handle_out_external):
11564         [1]. [4].
11565
11566         * process-nt.c:
11567         * process-nt.c (nt_create_process):
11568         [6].
11569         try to fix process quoting somewhat.
11570
11571         * process-unix.c (unix_create_process):
11572         [1].
11573
11574         * process.c:
11575         * process.c (vars_of_process):
11576         Add Vnull_device.
11577
11578         * process.h:
11579         [1].
11580
11581         * realpath.c:
11582         * realpath.c (xrealpath):
11583         [1].
11584
11585         * redisplay-tty.c (init_tty_for_redisplay):
11586         [3].
11587
11588         * redisplay.c:
11589         [4]. [6].
11590
11591         * scrollbar-msw.c:
11592         [4].
11593
11594         * sheap.c:
11595         * sheap.c (more_static_core):
11596         * sheap.c (report_sheap_usage):
11597         [5]. [6].
11598
11599         * signal.c:
11600         * signal.c (alarm_signal):
11601         [1]. [6].
11602
11603         * sound.c:
11604         [6].
11605
11606         * strftime.c:
11607         * strftime.c (zone_name):
11608         [1]. [5].
11609
11610         * symsinit.h (init_sunpro):
11611         [1].
11612
11613         * syscommctrl.h:
11614         commctrl.h not in Cygwin b20.1.
11615
11616         * sysdep.c:
11617         * sysdep.c (endif):
11618         * sysdep.c (sys_subshell):
11619         * sysdep.c (init_baud_rate):
11620         * sysdep.c (emacs_get_tty):
11621         * sysdep.c (emacs_set_tty):
11622         * sysdep.c (tty_init_sys_modes_on_device):
11623         * sysdep.c (init_system_name):
11624         * sysdep.c (sys_open):
11625         * sysdep.c (interruptible_open):
11626         * sysdep.c (sys_fopen):
11627         * sysdep.c (sys_mkdir):
11628         * sysdep.c (sys_rename):
11629         * sysdep.c (get_process_times_1):
11630         [1]. [6].
11631
11632         * sysdep.h:
11633         [1].
11634
11635         * sysdir.h:
11636         * sysdir.h (DIRENTRY_NONEMPTY):
11637         [1]. [6].
11638
11639         * sysdll.c (dll_init):
11640         * sysdll.h:
11641         [1].
11642
11643         * sysfile.h:
11644         [1]. [6]. [8].
11645         added text/binary defs.
11646
11647         * sysfloat.h:
11648         [1].
11649
11650         * sysproc.h:
11651         * sysproc.h (EDESTADDRREQ):
11652         * sysproc.h (poll_fds_for_input):
11653         [1]. [6].
11654
11655         * syspwd.h:
11656         [6].
11657
11658         * syssignal.h:
11659         [1].
11660
11661         * systime.h:
11662         [1]. [6].
11663
11664         * systty.h:
11665         [1].
11666
11667         * syswindows.h:
11668         [1].
11669         Always define WIN32_LEAN_AND_MEAN.
11670
11671         * unexcw.c (unexec):
11672         [5].
11673
11674         * unexec.c:
11675         * unexec.c (copy_text_and_data):
11676         * unexec.c (adjust_lnnoptrs):
11677         [1].
11678
11679         * unexnt.c:
11680         * unexnt.c (_start):
11681         [1].
11682
11683 2000-06-07  Ben Wing  <ben@xemacs.org>
11684
11685         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11686         was used only as a model.  We've long since extracted any useful
11687         logic or code out of this. (I just did an exhaustive search.)
11688
11689         * s\msdos.h: Removed.
11690
11691         * s\windows95.h: Removed.
11692
11693 2000-06-10  Ben Wing  <ben@xemacs.org>
11694
11695         * s\cygwin32.h:
11696         [1]. [5].
11697         Don't use extern with fun defs.
11698
11699         * s\mingw32.h:
11700         [1]. [7].
11701         Remove nt\inc include.
11702         Remove getdisk, getdefdir. (The former is unused, the latter
11703         expanded in fileio.h.)
11704
11705         * s\windowsnt.h:
11706         * s\windowsnt.h (WIN32_NATIVE):
11707         * s\windowsnt.h (HAVE_STRCASECMP):
11708         [1]. [7].
11709         Add long comment about preprocessor changes.
11710         Remove getdisk, getdefdir. (The former is unused, the latter
11711         expanded in fileio.h.)
11712
11713 2000-06-10  Ben Wing  <ben@xemacs.org>
11714
11715         * m\arm.h:
11716         * m\delta.h:
11717         * m\intel386.h:
11718         * m\sequent.h:
11719         * m\template.h:
11720         * m\windowsnt.h:
11721         [1].
11722         Remove bogus/unused NO_SOCK_SIGIO.
11723
11724 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11725
11726         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11727         not an Emchar.
11728
11729 2000-06-04  Mike Sperber <mike@xemacs.org>
11730
11731         * casetab.c (set_case_table): For `set-standard-case-table',
11732         actually deposit the new case tables where the rest of XEmacs can
11733         see them.
11734
11735 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11736
11737         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11738
11739 2000-06-05  Ben Wing  <ben@xemacs.org>
11740
11741         * callproc.c (child_setup): Don't do close_load_descs() under
11742         MS Windows.  Put in a comment explaining why.
11743
11744 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11745
11746         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11747         Toolkit shell" which breaks `kill-compilation' on Windows NT
11748         native, retaining STDERR handling improvements.
11749
11750 2000-06-01  Andreas Jaeger  <aj@suse.de>
11751
11752         * s/s390.h: Support for S390, based on a patch by Martin
11753         Schwidefsky <schwidefsky@de.ibm.com>.
11754
11755 2000-05-30  Andy Piper  <andy@xemacs.org>
11756
11757         * window.c (allocate_window):
11758         (make_dummy_parent):
11759         (Fset_window_configuration): use new hashtable type.
11760
11761         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11762         (struct image_instantiator_methods):
11763         (struct Lisp_Image_Instance): make instance geometry signed.
11764
11765         * glyphs.c (instantiate_image_instantiator):
11766         (image_instance_query_geometry):
11767         (image_instance_layout):
11768         (image_instance_layout):
11769         (query_string_geometry):
11770         (text_query_geometry):
11771         (image_instantiate):
11772         (image_instantiate):
11773         (cache_subwindow_instance_in_frame_maybe):
11774         (subwindow_query_geometry): make instance geometry signed.
11775
11776         * glyphs-widget.c (widget_query_geometry):
11777         (widget_layout):
11778         (button_query_geometry):
11779         (tree_view_query_geometry):
11780         (tab_control_query_geometry):
11781         (layout_query_geometry):
11782         (layout_layout):
11783         (native_layout_layout): make instance geometry signed.
11784
11785 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11786
11787         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11788         constant.
11789
11790         * general.c (syms_of_general): Add Qfull_assoc symbol.
11791
11792         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11793         correctly.
11794         (decode_weak_list_type): Decode full-assoc type.
11795         (encode_weak_list_type): Encode full-assoc type.
11796         (Fmake_weak_list): Update doc string.
11797
11798 2000-05-30  Andy Piper  <andy@xemacs.org>
11799
11800         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11801
11802         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11803         (decode_hash_table_weakness): ditto.
11804         (Fhash_table_weakness): ditto.
11805         (Fhash_table_type): ditto.
11806         (finish_marking_weak_hash_tables): ditto.
11807         (hash_table_weakness_validate): ditto.
11808         (syms_of_elhash): ditto.
11809
11810 2000-05-28  Martin Buchholz <martin@xemacs.org>
11811
11812         * XEmacs 21.2.34 is released.
11813
11814 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11815
11816         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11817         start cache.
11818         (updating_line_start_cache): Gone.
11819         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11820         generic code to force a minimum of 1 line laid out in the
11821         CMOTION_DISP case.
11822
11823 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11824
11825         * glyphs.c (instantiate_image_instantiator): Check for initialized
11826         height & width no longer special cases IMAGE_NOTHING.
11827         (nothing_instantiate): Set height and width of instance.
11828
11829 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11830
11831         * unexelf.c (unexec): Search for ".data" section.
11832         Initialize new_data2_offset from old_data_index.
11833         Remove redundant check for ElfW.
11834
11835 2000-05-23  Andy Piper  <andy@xemacs.org>
11836
11837         * glyphs.c (get_image_instantiator_governing_domain): allow more
11838         specific domains as the governing domain rather than expecting an
11839         exact match. This fixes problems with layouts.
11840
11841 2000-05-22  Andy Piper  <andy@xemacs.org>
11842
11843         * redisplay-output.c (compare_runes): check for non-images
11844
11845         * glyphs.c (set_glyph_dirty_p): ditto.
11846         (update_glyph_cachel_data): ditto.
11847
11848         * glyphs-widget.c (layout_post_instantiate): ditto.
11849         (layout_post_instantiate): ditto.
11850
11851         * event-msw.c (mswindows_wnd_proc): warning removal.
11852
11853 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11854
11855         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11856
11857         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11858
11859         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11860
11861         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11862         (mswindows_executable_type): mingw32 now has enough headers for
11863         this to work.
11864
11865 2000-05-20  Andy Piper  <andy@xemacs.org>
11866
11867         * console-msw.c (mswindows_output_last_error): ; -> ,
11868
11869 2000-05-12  Andy Piper  <andy@xemacs.org>
11870
11871         * console-msw.c (FROB): compare ints with ints.
11872
11873 2000-05-11  Andy Piper  <andy@xemacs.org>
11874
11875         * glyphs-x.c (x_finalize_image_instance): make minimal build
11876         happy.
11877
11878 2000-05-20  Ben Wing  <ben@xemacs.org>
11879
11880         * event-Xt.c:
11881         * event-Xt.c (vars_of_event_Xt):
11882         move modifier-keys-are-sticky to event-stream.c.
11883
11884         * event-msw.c:
11885         * event-msw.c (mswindows_enqueue_mouse_button_event):
11886         * event-msw.c (key_needs_default_processing_p):
11887         * event-msw.c (XEMSW_LCONTROL):
11888         * event-msw.c (mswindows_handle_sticky_modifiers):
11889         * event-msw.c (FROB):
11890         * event-msw.c (clear_sticky_modifiers):
11891         * event-msw.c (output_modifier_keyboard_state):
11892         * event-msw.c (output_alt_keyboard_state):
11893         * event-msw.c (mswindows_wnd_proc):
11894         * event-msw.c (mswindows_modifier_state):
11895         * event-msw.c (emacs_mswindows_handle_magic_event):
11896         implement sticky modifiers.
11897
11898         * event-stream.c:
11899         * event-stream.c (vars_of_event_stream):
11900         move modifier-keys-are-sticky here.
11901
11902         * lisp.h:
11903         add CHECK_FUNCTION.
11904
11905         * rangetab.c:
11906         implement map-range-table.
11907
11908
11909 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11910
11911         * redisplay-tty.c (reset_tty_modes):
11912         (tty_redisplay_shutdown): Adjust argument type to
11913         tty_frame_output_end.
11914
11915 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11916
11917         * eval.c (Fbacktrace): Don't output a line with only right
11918         parenthesis.
11919
11920 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11921
11922         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11923         (Fpq_reset_poll): Ditto.
11924
11925 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11926
11927         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11928
11929 2000-05-16  Ben Wing  <ben@xemacs.org>
11930
11931         * buffer.c:
11932         * buffer.c (dfc_convert_to/from_internal_format):
11933         * buffer.c (reinit_vars_of_buffer):
11934         Fix conversion functions to allow reentrancy.
11935
11936         * console-msw.c:
11937         * console-msw.c (mswindows_output_last_error):
11938         New fun, generally useful -- output a human-readable
11939         version of GetLastError() on the console.
11940
11941         * console-msw.h:
11942         * console-msw.h (struct mswindows_frame):
11943         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11944
11945         * console-stream.c (stream_output_begin):
11946         * console-stream.c (stream_output_end):
11947         * console-stream.c (stream_output_vertical_divider):
11948         * console-stream.c (stream_clear_region):
11949         * console-stream.c (stream_flash):
11950         * console-stream.c (console_type_create_stream):
11951         Delete blank stream methods, not needed.
11952
11953         * console.h (struct console_methods):
11954         Split begin/end methods into window and frame.
11955
11956         * event-msw.c:
11957         * event-msw.c (mswindows_handle_paint):
11958         * event-msw.c (output_alt_keyboard_state):
11959         * event-msw.c (mswindows_wnd_proc):
11960         * event-msw.c (vars_of_event_mswindows):
11961         Comment about problems with ignored-expose.
11962         Define mswindows-debug-events; not really implemented.
11963
11964         * frame-msw.c (mswindows_init_frame_1):
11965         random cleanups.
11966
11967         * glyphs-msw.c:
11968         * glyphs-msw.c (begin_defer_window_pos):
11969         * glyphs-msw.c (mswindows_unmap_subwindow):
11970         * glyphs-msw.c (mswindows_map_subwindow):
11971         * glyphs-msw.c (mswindows_resize_subwindow):
11972         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11973
11974         * glyphs.c (make_image_instance_1):
11975         Fix crash.
11976
11977         * gutter.c (Fredisplay_gutter_area):
11978         Use new begin/end methods.
11979
11980         * lisp.h (Dynarr_new2):
11981         New creation fun.
11982
11983         * redisplay-msw.c:
11984         * redisplay-msw.c (mswindows_frame_output_begin):
11985         * redisplay-msw.c (mswindows_frame_output_end):
11986         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11987         New begin/end methods -- handle DeferWindowPos.
11988
11989         * redisplay-output.c (redisplay_move_cursor):
11990         * redisplay-output.c (redraw_cursor_in_window):
11991         * redisplay-output.c (redisplay_update_line):
11992         * redisplay-output.c (redisplay_output_window):
11993         New begin/end methods.
11994
11995         * redisplay-tty.c:
11996         * redisplay-tty.c (tty_frame_output_begin):
11997         * redisplay-tty.c (tty_frame_output_end):
11998         * redisplay-tty.c (console_type_create_redisplay_tty):
11999         New begin/end methods.
12000
12001         * redisplay-x.c:
12002         * redisplay-x.c (x_window_output_begin):
12003         * redisplay-x.c (x_window_output_end):
12004         * redisplay-x.c (console_type_create_redisplay_x):
12005         New begin/end methods.
12006
12007         * redisplay.c (redisplay_frame):
12008         * redisplay.c (Fredisplay_echo_area):
12009         New begin/end methods.
12010         use MAYBE_DEVMETH for clear_frame; it may not exist.
12011
12012         * window.h (WINDOW_XFRAME):
12013         WINDOW_XFOO macros -- get locale and decode struct pointer.
12014
12015
12016 2000-05-12  Ben Wing  <ben@xemacs.org>
12017
12018         * emacs.c:
12019         * emacs.c (ensure_no_quitting_from_now_on):
12020         * emacs.c (fatal_error_signal):
12021         * emacs.c (mswindows_handle_hardware_exceptions):
12022         * emacs.c (main):
12023         * emacs.c (Fkill_emacs):
12024         * emacs.c (shut_down_emacs):
12025         * emacs.c (assert_failed):
12026         various improvements in fatal error handling.
12027
12028         * eval.c:
12029         move preparing_for_armageddon to emacs.c.
12030
12031         * lisp.h:
12032         declare fatal_error_in_progress.
12033
12034         * print.c:
12035         * print.c (std_handle_out_external):
12036         * print.c (std_handle_out_va):
12037         * print.c (stderr_out):
12038         * print.c (stdout_out):
12039         use console under mswin when no standard output.
12040         don't do code conversion during fatal error.
12041
12042         * scrollbar.c (Fscrollbar_page_up):
12043         * scrollbar.c (Fscrollbar_page_down):
12044         fix missing else.  reindent.
12045
12046 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12047
12048         Emergency fix.
12049
12050         * glyphs.h (GLYPH_CACHEL_DESCENT):
12051         (GLYPH_CACHEL_DESCENT):
12052         (GLYPH_CACHEL_DESCENT):
12053         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12054         used in case these are inline functions.
12055         Use more absurd values to error check.
12056
12057         include window.h for error check functions.
12058
12059 2000-05-11  Ben Wing  <ben@xemacs.org>
12060
12061         * cmdloop.c (Freally_early_error_handler):
12062         Display message box under windows; otherwise, message will disappear
12063         before it can be viewed.
12064
12065         * console-msw.c:
12066         * console-msw.c (Fmswindows_message_box):
12067         * console-msw.c (FROB):
12068         * console-msw.c (syms_of_console_mswindows):
12069         Define new fun `mswindows-message-box'.
12070         #### I will merge this into `popup-dialog-box'; just give me
12071         a bit of time.
12072
12073         * general.c:
12074         * general.c (syms_of_general):
12075         Some new symbols used in `mswindows-message-box'.
12076
12077         * glyphs.c:
12078         * glyphs.c (Fset_image_instance_property):
12079         put warning in this fun.
12080
12081         * glyphs.h:
12082         * glyphs.h (GLYPH_CACHEL_WIDTH):
12083         * glyphs.h (GLYPH_CACHEL_ASCENT):
12084         * glyphs.h (GLYPH_CACHEL):
12085         * glyphs.h (GLYPH_CACHEL_GLYPH):
12086         define error-checking versions to try to catch a bug i've seen --
12087         redisplay gets in an infinite loop because the glyph width of the
12088         continuation glyph is 65535.
12089
12090         * lisp.h:
12091         Extern message-box stuff.
12092
12093         * window.c (allocate_window):
12094         * window.c (make_dummy_parent):
12095         * window.c (Fset_window_configuration):
12096         Use EQUAL not EQ for subwindow caches to make them work a bit
12097         better. (Something is still very broken.)
12098
12099
12100 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12101
12102         * glyphs.c (image_instantiate): Suppress gcc warnings.
12103         (Fmake_image_instance): Fix doc string.
12104         * specifier.c (Fmake_specifier): Ditto.
12105
12106 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12107
12108         * paths.h.in (PATH_LOCK): Removed.
12109         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12110         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12111
12112 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12113
12114         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12115         Document (featurep '(and xemacs 21.02)).
12116
12117 2000-05-09  Ben Wing  <ben@xemacs.org>
12118
12119         * buffer.c (complex_vars_of_buffer):
12120         update modeline-format doc.
12121
12122         * device.h:
12123         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12124
12125         * emacs.c:
12126         timeline of all released versions of Emacs, for use in creating
12127         authorship comments and in synching up.
12128
12129         * glyphs-widget.c (image_instantiator_buttons):
12130         * glyphs-widget.c (image_instantiator_edit_fields):
12131         * glyphs-widget.c (image_instantiator_combo_box):
12132         * glyphs-widget.c (image_instantiator_scrollbar):
12133         * glyphs-widget.c (image_instantiator_progress_guage):
12134         * glyphs-widget.c (image_instantiator_tree_view):
12135         * glyphs-widget.c (image_instantiator_tab_control):
12136         * glyphs-widget.c (image_instantiator_labels):
12137         * glyphs-widget.c (image_instantiator_layout):
12138         * glyphs-widget.c (image_instantiator_native_layout):
12139         rename decode_domain method to governing_domain.
12140
12141         * glyphs.c:
12142         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12143         * glyphs.c (add_entry_to_device_ii_format_list):
12144         make sure we don't put an entry more than once into the list.
12145         * glyphs.c (check_instance_cache_mapper):
12146         *************************************************************
12147         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12148         HAVE BEEN GETTING.
12149         *************************************************************
12150         * glyphs.c (get_image_instantiator_governing_domain):
12151         clean up, expand on new concept of governing domain.
12152         * glyphs.c (instantiate_image_instantiator):
12153         * glyphs.c (allocate_image_instance):
12154         use governing_domain instead of cache_domain in naming.
12155         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12156         * glyphs.c (make_image_instance_1):
12157         * glyphs.c (Fmake_image_instance):
12158         allow for any domain (not just device), and process the
12159         governing domain correctly.  very big doc fix.
12160         * glyphs.c (Fimage_instance_domain):
12161         new primitive, to retrieve the governing domain of an image instance.
12162         * glyphs.c (image_instantiate):
12163         use new governing_domain stuff.  this fixes a crash you could get
12164         by instantiating certain widget glyphs in frame locales. (should
12165         signal an error instead of crashing.)
12166         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12167         * glyphs.c (Fglyphp): clean up doc.
12168         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12169         * glyphs.c (syms_of_glyphs):
12170         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12171         * glyphs.c (image_instantiator_format_create): add some comments about
12172         bogus code.
12173         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12174         for current-display-table. (Apparently Hrjove implemented in 1998 a
12175         design I wrote up in 1996, but didn't update the doc string.)
12176
12177         * glyphs.h: clean up a doc string.
12178         * glyphs.h (governing_domain):
12179         * glyphs.h (struct image_instantiator_methods):
12180         changes for governing_domain stuff.
12181
12182         * gutter.c:
12183         * gutter.c (Fgutter_specifier_p):
12184         * gutter.c (Fgutter_size_specifier_p):
12185         * gutter.c (Fgutter_visible_specifier_p):
12186         * objects.c:
12187         * objects.c (Fcolor_specifier_p):
12188         * objects.c (Ffont_specifier_p):
12189         * objects.c (Fface_boolean_specifier_p):
12190         doc strings moved to make-*-specifier.
12191
12192         * redisplay.c (add_disp_table_entry_runes_1):
12193         * redisplay.c (generate_fstring_runes):
12194         * redisplay.c (screen):
12195         add random comments and doc strings.
12196
12197         * specifier.c:
12198         * specifier.c (Fmake_specifier):
12199         major overhaul of this doc string.
12200
12201         * specifier.c (Fvalid_specifier_domain_p):
12202         comment about the bogosity of image instances being domains.
12203         * specifier.c (decode_domain):
12204         now non-static, used in glyphs.c.
12205         * specifier.c (specifier_instance):
12206         comment about the bogosity of image instances being domains.
12207         * specifier.c (Fgeneric_specifier_p):
12208         move doc string to make-generic-specifier.
12209         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12210         rebackslashify.
12211
12212         * specifier.h:
12213         * specifier.h (DOMAIN_FRAME):
12214         * specifier.h (DOMAIN_LIVE_P):
12215         * specifier.h (DOMAIN_XDEVICE):
12216         rebackslashify.
12217         add comments about problems with these macros.
12218         prototype for decode_domain.
12219
12220         * toolbar.c:
12221         * toolbar.c (Ftoolbar_specifier_p):
12222         move doc string to `make-toolbar-specifier'.
12223
12224         * window.c (window_unmap_subwindows_cache_mapper):
12225         *************************************************************
12226         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12227         HAVE BEEN GETTING.
12228         *************************************************************
12229
12230 2000-05-09  Andy Piper  <andy@xemacs.org>
12231
12232         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12233
12234         * window.c (Fset_window_configuration): reset the frame subwindow
12235         cache and re-initialize the window subwindow caches.
12236
12237         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12238
12239 2000-05-09  Ben Wing  <ben@xemacs.org>
12240
12241         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12242         DWORD.
12243
12244 2000-04-26  Mike Woolley  <mike@bulsara.com>
12245
12246         * ntheap.c: Changed recreate_heap to limit the amount reserved
12247         for the heap to that which is actually available. Also now
12248         displays a message box (with some dignostics) in the event that
12249         it still can't start.
12250
12251 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12252
12253         * callproc.c (Fold_call_process_internal): GCPRO path
12254
12255 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12256
12257         Patch by Bill Perry.
12258
12259         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12260         back data instead of #ifdef.
12261         (Fscrollbar_page_down): ditto.
12262
12263 2000-05-07  Ben Wing  <ben@xemacs.org>
12264
12265         * buffer.h:
12266         Kludge for defining Qmswindows_tstr.
12267
12268         * nt.c:
12269         * nt.c (open_input_file):
12270         * nt.c (open_output_file):
12271         * nt.c (rva_to_section):
12272         * nt.c (mswindows_executable_type):
12273         Move all memory-mapped-file routines here (some were in unexnt.c,
12274         which is bad because they are used by process-nt.c, and unexnt
12275         won't be around when portable dumping).  Synched the above routines
12276         with FSF 20.6.
12277
12278         * nt.h:
12279         Removed ifdef'd out bogus code.
12280         Fixed some prototypes.
12281
12282         * nt.h (file_data):
12283         * nt.h (OFFSET_TO_RVA):
12284         * nt.h (RVA_TO_OFFSET):
12285         * nt.h (RVA_TO_PTR):
12286         Moved the memory-mapped-file structures, macros and prototypes
12287         here, to parallel nt.c.  ntheap.h should really be removed
12288         entirely, and it's a non-portable-dumper specific file.
12289
12290         * ntheap.h (round_to_next):
12291         Moved the memory-mapped-file structures, macros and prototypes
12292         to nt.h.
12293
12294         * ntproc.c (compare_env):
12295         Moved rva_to_section and mswindows_executable_type to nt.c.
12296         Moved compare_env to process-nt.c.
12297         ntproc.c will die, one day.
12298
12299         * ntproc.c (sys_spawnve):
12300         Account for win32_ -> mswindows_.
12301
12302         * process-nt.c:
12303         * process-nt.c (struct nt_process_data):
12304         * process-nt.c (ensure_console_window_exists):
12305         * process-nt.c (compare_env):
12306         * process-nt.c (nt_create_process):
12307         * process-nt.c (nt_kill_process_by_pid):
12308         * process-nt.c (syms_of_process_nt):
12309         * process-nt.c (vars_of_process_nt):
12310         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12311         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12312         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12313         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12314         Move compare_env here from ntproc.c.
12315
12316         * process.c (Fprocess_send_region):
12317         Takes an optional fourth argument, BUFFER, which should fix some
12318         problems with call-process.
12319
12320         * syscommctrl.h:
12321         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12322
12323         * syswindows.h:
12324         Move ICC_BAR_CLASSES to syscommctrl.h.
12325         Add preliminary macros for MSWindows/Mule.  More to come.
12326
12327         * unexnt.c:
12328         * unexnt.c (unexec):
12329         open_output_file moved to nt.c.
12330
12331
12332 2000-05-05  Andy Piper  <andy@xemacs.org>
12333
12334         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12335         instance from the frame cache also since GC may catch up too late
12336         to make frame deletion sane.
12337
12338 2000-05-04  Andy Piper  <andy@xemacs.org>
12339
12340         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12341         (x_finalize_image_instance): ungcpro on deletion.
12342
12343         * glyphs.c (image_instantiator_format_create): give pointers a
12344         query geometry method so that the geometry is at least set.
12345
12346         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12347         initialize layouts if using widgets.
12348
12349 2000-05-03  Andy Piper  <andy@xemacs.org>
12350
12351         * nt.c: remove bogus reference to sysmmsystem.h
12352
12353         * gui-x.c (popup_selection_callback): fix no selection abort.
12354
12355 2000-05-02  Andy Piper  <andy@xemacs.org>
12356
12357         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12358         (mswindows_widget_instantiate): ditto.
12359
12360         * glyphs-widget.c (initialize_widget_image_instance): initialize
12361         children correctly.
12362         (widget_instantiate): cope with children and items in the same
12363         instance.
12364
12365         * glyphs.c (mark_image_instance): cope with children as a first
12366         class member.
12367         (image_instance_equal): ditto.
12368         (image_instance_hash): ditto.
12369         (image_instance_changed): ditto.
12370
12371 2000-04-30  Andy Piper  <andy@xemacs.org>
12372
12373         * glyphs.c (subwindow_query_geometry): new function. Return some
12374         defaults.
12375         (subwindow_instantiate): don't assign dimensions if none have been
12376         given.
12377         (image_instantiator_format_create): add subwindow_query_geometry.
12378         (print_image_instance): cope with layouts as widgets.
12379
12380 2000-04-29  Andy Piper  <andy@xemacs.org>
12381
12382         * frame.c (delete_frame_internal): call
12383         free_frame_subwindow_instance_cache so that all subwindows are
12384         finalized before their parent.
12385         (mark_frame): remove subwindow_cachels.
12386         (Fmake_frame): remove subwindow_cachel manipulation.
12387         (allocate_frame_core): subwindow_instance_cache is a weak list.
12388         (delete_frame_internal): set subwindow_instance_cache to nil.
12389
12390         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12391         finalization safe.
12392         (mswindows_finalize_image_instance): use the device
12393         not the domain as the domain may have died already.
12394
12395         * glyphs-x.c (x_finalize_image_instance): ditto.
12396         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12397         HEIGHT.
12398
12399         * redisplay-output.c (redisplay_unmap_subwindows): update for
12400         subwindow instance cache as a weak list.
12401         (redisplay_unmap_subwindows_maybe): ditto.
12402         (redisplay_unmap_subwindows_except_us): ditto.
12403
12404         * glyphs.c (unmap_subwindow): error checking will check the domain
12405         so don't deal with it here. Don't use cachels anymore.
12406         (map_subwindow): ditto.
12407         (update_subwindow_cachel_data): remove old accessor names.
12408         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12409         (Fresize_subwindow): don't update cachel.
12410         (mark_subwindow_cachels):
12411         (update_subwindow_cachel_data):
12412         (add_subwindow_cachel):
12413         (get_subwindow_cachel_index):
12414         (update_subwindow_cachel):
12415         (reset_subwindow_cachels):
12416         (mark_subwindow_cachels_as_not_updated): deleted.
12417         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12418         subwindow instance to the frame cache.
12419         (find_matching_subwindow): update for subwindow instance cache as
12420         a weak list.
12421         (update_widget_instances): ditto.
12422         (image_instance_type_to_mask):inlined.
12423         (free_frame_subwindow_instance_cache): new function. finalize all
12424         subwindows that are instantiated.
12425
12426         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12427         of cachel information.
12428         (IMAGE_INSTANCE_DISPLAY_X):
12429         (IMAGE_INSTANCE_DISPLAY_Y):
12430         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12431         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12432         (XIMAGE_INSTANCE_DISPLAY_X):
12433         (XIMAGE_INSTANCE_DISPLAY_Y):
12434         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12435         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12436         remove subwindow_cachel structure and function references.
12437         (image_instance_type_to_mask): inline from glyphs.c
12438
12439         * redisplay.c (redisplay_frame): remove subwindow_cachel
12440         references.
12441
12442         * frame.h (struct frame): remove subwindow_cachels.
12443         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12444
12445         * frameslots.h: add subwindow_instance_cache.
12446
12447         * window.c (replace_window): check subwindow cache of replacement.
12448         (window_unmap_subwindows_cache_mapper):
12449         (window_unmap_subwindows): new functions. Unmap all subwindows
12450         cached on this window.
12451         (mark_window_as_deleted): unmap all subwindows.
12452
12453 2000-04-27  Andy Piper  <andy@xemacs.org>
12454
12455         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12456
12457         * glyphs-widget.c (widget_layout): return something.
12458         (layout_layout): return something. Fail if not initialized.
12459         (layout_query_geometry): ditto.
12460         (image_instantiator_native_layout): new function. Initialized the
12461         native layout type.
12462         (widget_instantiate): don't do layout stuff here.
12463
12464         * glyphs.c (instantiate_image_instantiator): reorded calling or
12465         instantiate and post_instantiate with layout in between.
12466         (image_instance_layout): be more selective about deciding whether
12467         the layout has been done or not.
12468
12469         * glyphs.h (struct image_instantiator_methods): return a value
12470         from layout_method.
12471
12472 2000-04-26  Andy Piper  <andy@xemacs.org>
12473
12474         * glyphs.c (allocate_image_instance): make initial width and
12475         height unspecified. Set initialized to 0.
12476
12477         * syscommctrl.h new file. Encapsulates commctrl.h.
12478
12479         * syswindows.h new file. Encapsulates windows.h.
12480
12481         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12482         * nt.c: ditto.
12483         * console-msw.h: ditto.
12484
12485         * redisplay-tty.c (tty_output_display_block): remove layout references.
12486
12487         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12488         window handle rather than just the frame.
12489
12490         * glyphs.c (mark_image_instance): remove layout references.
12491         (print_image_instance): ditto.
12492         (image_instance_equal): ditto.
12493         (image_instance_hash): ditto.
12494         (decode_image_instance_type): ditto.
12495         (encode_image_instance_type): ditto.
12496         (image_instantiate): ditto.
12497         (allocate_glyph): ditto.
12498         (Fimage_instance_height): ditto.
12499         (Fimage_instance_width): ditto.
12500         (update_subwindow): ditto.
12501
12502         * redisplay-x.c (x_output_display_block): recode for layouts as
12503         widgets.
12504
12505         * redisplay-output.c (redisplay_output_layout): recode for layouts
12506         as widgets.
12507         (compare_runes): remove layout references.
12508
12509         * redisplay-msw.c (mswindows_output_display_block): recode for
12510         layouts as widgets.
12511
12512         * glyphs-widget.c (image_instantiator_layout): remove
12513         layout_possible_dest_types.
12514         (layout_possible_dest_types): deleted.
12515
12516         * glyphs.h (image_instance_type): remove layout references.
12517         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12518         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12519         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12520
12521 2000-04-25  Andy Piper  <andy@xemacs.org>
12522
12523         * glyphs-widget.c (image_instantiator_buttons):
12524         (image_instantiator_edit_fields):
12525         (image_instantiator_combo_box):
12526         (image_instantiator_scrollbar):
12527         (image_instantiator_progress_guage):
12528         (image_instantiator_tree_view):
12529         (image_instantiator_tab_control):
12530         (image_instantiator_labels):
12531         (image_instantiator_layout): call default post_instantiate method.
12532         (widget_post_instantiate): new function. Simply lays out the
12533         widgets.
12534
12535         * glyphs.h (struct image_instantiator_methods): add
12536         post_instantiate method.
12537
12538         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12539         method calls.
12540
12541 2000-04-23  Andy Piper  <andy@xemacs.org>
12542
12543         * glyphs.h (struct image_instantiator_methods): add
12544         decode_domain_method.
12545         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12546         derived from the domain.
12547         (IMAGE_INSTANCE_FRAME): new accessor.
12548         (XIMAGE_INSTANCE_FRAME): ditto.
12549
12550         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12551         instead of _SUBWINDOW_FRAME.
12552         (finalize_image_instance): ditto.
12553         (Fimage_instance_foreground): ditto.
12554         (Fimage_instance_background): ditto.
12555         (image_instantiate): ditto.
12556         (update_subwindow_cachel): ditto.
12557         (update_subwindow): ditto.
12558         (unmap_subwindow): ditto.
12559         (map_subwindow): ditto
12560         (subwindow_instantiate): ditto.
12561         * glyphs-msw.c (mswindows_update_widget): ditto.
12562         (mswindows_progress_gauge_instantiate): ditto.
12563         (mswindows_tab_control_update): ditto.
12564         * glyphs-x.c (x_update_widget): ditto.
12565         (x_widget_instantiate): ditto.
12566         (x_tab_control_instantiate): ditto.
12567         (x_tab_control_update): ditto.
12568         * event-msw.c (mswindows_wnd_proc): ditto
12569
12570         * glyphs-widget.c (image_instantiator_layout): use
12571         subwindow_decode_domain.
12572         (image_instantiator_buttons): ditto.
12573         (image_instantiator_edit_fields): ditto.
12574         (image_instantiator_combo_box): ditto.
12575         (image_instantiator_scrollbar): ditto.
12576         (image_instantiator_progress_guage): ditto.
12577         (image_instantiator_tree_view): ditto.
12578         (image_instantiator_tab_control): ditto.
12579         (image_instantiator_labels): ditto.
12580         (image_instantiator_layout): ditto.
12581
12582         * glyphs.c: add instance error checking to many functions.
12583         (instantiate_image_instantiator): decode device from cache_domain.
12584         (image_instantiate): partially rewrite by using
12585         decode_image_instantiator_domain to determine what domain the
12586         instance needs to be cached in.
12587         (decode_image_instantiator_domain): new function. Determine what
12588         domain the image needs to be cached in.
12589         (check_window_subwindow_cache): new error checking function.
12590         (check_instance_cache_mapper): ditto.
12591         (check_image_instance_structure): ditto.
12592         (subwindow_decode_domain): new function. Encodes a window as a
12593         subwindow's cache domain.
12594         (image_instantiator_format_create): use it for text and
12595         subwindows.
12596
12597 2000-04-21  Andy Piper  <andy@xemacs.org>
12598
12599         * glyphs.c (image_instance_device): new function.
12600         (image_instance_frame): new function.
12601         (image_instance_window): new function.
12602         (image_instance_live_p): new function.
12603
12604         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12605         cache to nil.
12606
12607         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12608         (IMAGE_INSTANCE_DOMAIN): new accessor.
12609         (XIMAGE_INSTANCE_DOMAIN): ditto.
12610
12611         * glyphs-x.c (x_finalize_image_instance): device->domain.
12612
12613         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12614         (mswindows_finalize_image_instance): ditto.
12615
12616         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12617         (gif_instantiate): ditto.
12618         (png_instantiate): ditto.
12619         (tiff_instantiate): ditto.
12620
12621         * glyphs.c (instantiate_image_instantiator): use domain rather
12622         than device.
12623         (mark_image_instance): device -> domain.
12624         (print_image_instance): ditto.
12625         (finalize_image_instance): ditto.
12626         (image_instance_equal): ditto.
12627         (allocate_image_instance): ditto.
12628         (Fcolorize_image_instance): ditto.
12629         (query_string_geometry): ditto.
12630         (image_instantiate): ditto
12631         (query_string_font): ditto.
12632         (image_instantiate): ditto.
12633         (update_subwindow): ditto.
12634         (unmap_subwindow): ditto.
12635         (map_subwindow): ditto.
12636         (subwindow_instantiate): ditto.
12637
12638         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12639         (DOMAIN_FRAME): ditto.
12640         (DOMAIN_WINDOW): ditto.
12641         (DOMAIN_LIVE_P): ditto.
12642         (XDOMAIN_DEVICE): ditto.
12643         (XDOMAIN_FRAME): ditto.
12644         (XDOMAIN_WINDOW): ditto.
12645
12646         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12647         a valid specifier domain.
12648
12649 2000-04-19  Andy Piper  <andy@xemacs.org>
12650
12651         * glyphs-widget.c (syms_of_glyphs_widget): remove
12652         widget-callback-current-channel.
12653         (vars_of_glyphs_widget): ditto.
12654         * glyphs.h: ditto
12655
12656         * gui.c (get_gui_callback): revert to previous behaviour.
12657
12658 2000-04-18  Andy Piper  <andy@xemacs.org>
12659
12660         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12661         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12662         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12663
12664         * glyphs.c (image_instance_equal): add margin_width.
12665         (image_instance_hash): ditto.
12666
12667         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12668         (layout_query_geometry): ditto.
12669         (layout_layout): ditto.
12670         (syms_of_glyphs_widget): add margin-width.
12671         (image_instantiator_layout): allow margin-width.
12672
12673         * glyphs.c (update_widget_instances): make a normal function.
12674         (syms_of_glyphs): remove Qupdate_widget_instances.
12675         * glyphs.h: ditto.
12676
12677         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12678         so that we don't corrupt ideas about the last event or
12679         command. Remove widget-callback-current-channel fiddling.
12680         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12681
12682 2000-05-01  Martin Buchholz <martin@xemacs.org>
12683
12684         * XEmacs 21.2.33 is released.
12685
12686 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12687
12688         * make-src-depend: Allow dots in header file name.
12689
12690 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12691
12692         * mule-charset.h (struct charset_lookup): Add
12693         next_allocated_1_byte_leading_byte and
12694         next_allocated_2_byte_leading_byte.
12695         * mule-charset.c: Move above two variables so that those values
12696         will be dumped.
12697
12698 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12699
12700         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12701         when string length is zero.
12702         (find_charsets_in_emchar_string): Ditto.
12703
12704 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12705
12706         * lisp.h: extern Qdialog and Qmenubar.
12707
12708         * gui-x.c: added events.h.
12709                 also fixed typo which made the file uncompilable.
12710
12711         * general.c: Added Qmenubar and Qdialog
12712
12713 2000-04-28  Ben Wing  <ben@xemacs.org>
12714
12715         * frame-msw.c (mswindows_init_frame_1):
12716         * frame-msw.c (mswindows_mark_frame):
12717         * event-msw.c (mswindows_enqueue_dispatch_event):
12718         * console-msw.h:
12719         * console-msw.h (struct mswindows_frame):
12720         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12721         there are now three hash tables for callbacks.
12722         mswindows_enqueue_dispatch_event is no longer static.
12723
12724         * dialog-x.c (maybe_run_dbox_text_callback):
12725         * dialog-x.c (dbox_descriptor_to_widget_value):
12726         switch to new cons3 form for callbacks.
12727
12728         * glyphs-msw.c (mswindows_register_gui_item):
12729         * glyphs-msw.c (mswindows_widget_instantiate):
12730         * glyphs-msw.c (add_tree_item):
12731         * glyphs-msw.c (add_tab_item):
12732         new image instance parameter, so it can be passed to callback-ex.
12733         respect :callback-ex as well as :callback.
12734
12735         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12736         add :callback-ex.
12737
12738         * glyphs.c (print_image_instance):
12739         prettify, e.g. now prints widget type.
12740
12741         * gui-x.h:
12742         certain funs have new image instance parameter.
12743
12744         * gui.c:
12745         * gui.c (get_gui_callback):
12746         * gui.c (gui_item_add_keyval_pair):
12747         * gui.c (gui_item_init):
12748         * gui.c (gui_add_item_keywords_to_plist):
12749         * gui.c (mark_gui_item):
12750         * gui.c (gui_item_hash):
12751         * gui.c (gui_item_equal):
12752         * gui.c (copy_gui_item):
12753         * gui.c (syms_of_gui):
12754         recognize callback-ex in a number of places.
12755         also, fix the annoying "can't get out of yes-no dialog" bug.
12756
12757         * gui.h:
12758         * gui.h (struct Lisp_Gui_Item):
12759         recognize callback-ex in a number of places.
12760
12761         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12762         new parameter in button_item_to_widget_value.
12763
12764         * glyphs-x.c (x_update_widget):
12765         * glyphs-x.c (x_button_instantiate):
12766         * glyphs-x.c (x_button_update):
12767         * glyphs-x.c (x_progress_gauge_instantiate):
12768         * glyphs-x.c (x_edit_field_instantiate):
12769         * glyphs-x.c (x_combo_box_instantiate):
12770         * glyphs-x.c (x_tab_control_instantiate):
12771         * glyphs-x.c (x_label_instantiate):
12772         new image instance parameter in various places.
12773
12774         * event-Xt.c:
12775         * event-Xt.c (enqueue_Xt_dispatch_event):
12776         this fun gets exported.
12777
12778         * gui-msw.c:
12779         * gui-msw.c (mswindows_handle_gui_wm_command):
12780         handle both :callback and :callback-ex, and generate our own
12781         event because it's one of the callback-ex arguments.
12782
12783         * gui-x.c:
12784         * gui-x.c (popup_selection_callback):
12785         handle both :callback and :callback-ex, and generate our own
12786         event because it's one of the callback-ex arguments.
12787         * gui-x.c (button_item_to_widget_value):
12788         * gui-x.c (gui_items_to_widget_values_1):
12789         * gui-x.c (gui_item_children_to_widget_values):
12790         * gui-x.c (gui_items_to_widget_values):
12791         new image instance parameter in various places.
12792
12793         * fns.c (Freplace_list):
12794         fix small typo in doc string.
12795
12796         * lisp.h:
12797         declare enqueue_Xt_dispatch_event.
12798
12799 2000-04-28  Ben Wing  <ben@xemacs.org>
12800
12801         * buffer.c:
12802         * buffer.c (Frecord_buffer):
12803         * buffer.c (syms_of_buffer):
12804         delete record-buffer-hook.
12805
12806         * fns.c:
12807         * fns.c (Freplace_list):
12808         * fns.c (syms_of_fns):
12809         new primitive replace-list.
12810
12811         * frameslots.h:
12812         slot for old buffer-alist.
12813
12814         * lisp.h:
12815         exfun replace-list.
12816
12817         * redisplay.c:
12818         * redisplay.c (redisplay_frame):
12819         * redisplay.c (syms_of_redisplay):
12820         * redisplay.c (vars_of_redisplay):
12821         new hook buffer-list-changed-hook.
12822         call it.
12823
12824 2000-04-27  Ben Wing  <ben@xemacs.org>
12825
12826         * extents.h: extern in_modeline_generation.
12827
12828         * redisplay.c (generate_formatted_string_db): set
12829         in_modeline_generation.
12830
12831         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12832         flags if in modeline generation.  otherwise frame-modified-tick
12833         is ticked far too often.
12834         Declare in_modeline_generation.
12835
12836 2000-04-26  Ben Wing  <ben@xemacs.org>
12837
12838         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12839         option.
12840         (vars_of_emacs): add quick-build as an error-checking option.
12841         A bit kludgy, but there doesn't seem much point in creating
12842         a real var for this.
12843
12844         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12845
12846 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12847
12848         * redisplay.h (struct display_line): Add a new variable,
12849         line_continuation.
12850
12851         * redisplay.c (create_text_block): Set dl->line_continuation if
12852         the line continues.
12853         (create_string_text_block): Ditto.
12854         (regenerate_window_incrementally): Use line_continuation instead
12855         of searching continuation glyph.
12856         (add_margin_runes): Call add_glyph_rune.
12857         (add_glyph_rune): Handle margin glyph.
12858
12859 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12860
12861         * filelock.c (fill_in_lock_file_name):
12862         ANSIfy.
12863         Check for IS_ANY_SEP instead of '/'.
12864         (lock_file_1):
12865         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12866         Never check errno without first seeing that system call failed.
12867         (unlock_file): Add GCPRO.
12868         (Flock_buffer): Fix docstring.
12869         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12870
12871 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12872
12873         * sysdep.c (get_pty_max_bytes):
12874         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12875         strings longer than 252 bytes.
12876
12877         * md5.c: Unconditionally include ANSI header <limits.h>
12878
12879         * glyphs-x.c (convert_EImage_to_XImage):
12880         * lisp-union.h (union Lisp_Object):
12881         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12882
12883 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12884
12885         * filelock.c (current_lock_owner): Remove unused variable o, p.
12886
12887 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12888
12889         * callint.c: Remove multiply defined symbol Qlet
12890         (syms_of_callint): ditto.
12891
12892 2000-04-14  Andy Piper  <andy@xemacs.org>
12893
12894         * general.c (syms_of_general): add last-command, this-command, let
12895         and funcall.
12896
12897         * lisp.h: declare various symbols.
12898
12899         * glyphs.h: declare Qwidget_callback_current_channel;
12900
12901         * glyphs-widget.c (syms_of_glyphs_widget): add
12902         Qgui_callback_current_channel.
12903         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12904
12905         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12906         widget-callback-current-channel when invoking the interactive
12907         arg. Also bind last-command and next-command when invoking the
12908         widget updates.
12909         * gui-x.c (popup_selection_callback): ditto.
12910
12911         * gui.c (get_gui_callback): massage args so that we are always
12912         calling eval. This allows us to add our own variable bindings
12913         outside.
12914
12915         * glyphs-x.c (x_button_instantiate): use
12916         gui_items_to_widget_values since this is GC safe.
12917         (x_progress_gauge_instantiate): ditto.
12918         (x_edit_field_instantiate): ditto.
12919         (x_label_instantiate): ditto.
12920
12921         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12922         (emacs_Xt_event_widget_focus_out): new function
12923         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12924         focus.
12925         (emacs_Xt_event_add_widget_actions): new function. add focus
12926         functions as actions.
12927         (init_event_Xt_late): use it.
12928
12929 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12930
12931         * event-stream.c (Fdispatch_event): Doc fix.
12932
12933 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12934
12935         * postgresql.c: Remove all references to PQsetenv*.
12936
12937         * postgresql.h: Remove references to PGsetenvHandler object.
12938         * lrecord.h (lrecord_type): Ditto.
12939
12940 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12941
12942         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12943         real_heigh and real_width members, and accessor macros for these.
12944
12945         * glyphs-msw.c (init_image_instance_geometry): New function.
12946         (init_image_instance_from_dibitmap): Use it.
12947         (mswindows_resource_instantiate): Use it.
12948         (init_image_instance_from_xbm_inline): Use it.
12949         (mswindows_initialize_image_instance_mask): Use real bitmap
12950         geometry.
12951         (mswindows_create_resized_bitmap): Ditto.
12952         (mswindows_create_resized_mask): Ditto.
12953
12954         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12955         and bitmap to their surface size.
12956
12957 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12958
12959         * process-unix.c (unix_send_process): Guard against process MIA
12960         after Faccept_process_output.
12961
12962 2000-04-11  Ben Wing  <ben@xemacs.org>
12963
12964         * eval.c (unbind_to_hairy): fix brokenness introduced by
12965         nanosecond speed improvements.
12966
12967 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12968
12969         * sunplay.c (init_device): To play sounds correctly, the device
12970         apparently needs to be initialized at least once by XEmacs.  Make
12971         it so.
12972
12973 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12974
12975         * redisplay.c (add_margin_runes): Add text image glyph
12976           handling.
12977
12978 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12979
12980         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12981         gcc is newer than 2.5.
12982
12983 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12984
12985         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12986
12987         * fns.c (size_bit_vector):
12988         * alloc.c (size_vector):
12989         (make_vector_internal):
12990         (make_bit_vector_internal):
12991         (sweep_bit_vectors_1):
12992         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12993
12994 2000-04-06  Andy Piper  <andy@xemacs.org>
12995
12996         * gmalloc.c (malloc): undo previous change.
12997         (malloc): ditto.
12998         (free): ditto.
12999         (realloc): ditto.
13000
13001 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13002
13003         * line-number.c (buffer_line_number): Revert to former version.
13004
13005 2000-04-06  Andy Piper  <andy@xemacs.org>
13006
13007         * gmalloc.c (malloc): add error checking.
13008         (malloc): ditto.
13009         (free): ditto.
13010         (realloc): ditto.
13011
13012         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13013         button_item_to_widget_value arg.
13014
13015         * glyphs-x.c (x_button_instantiate): add extra
13016         button_item_to_widget_value arg.
13017         (x_progress_gauge_instantiate): ditto.
13018         (x_edit_field_instantiate): ditto.
13019         (x_label_instantiate): ditto.
13020
13021         * gui-x.c (gui_items_to_widget_values_1): add extra
13022         button_item_to_widget_value arg.
13023         (button_item_to_widget_value): add extra menu_item_p arg.
13024
13025         * gui-x.h: change signature of button_item_to_widget_value.
13026
13027         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13028         button_item_to_widget_value arg.
13029
13030 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13031
13032         * buffer.h (struct buffer): auto_save_modified should be long.
13033
13034 2000-04-05  Andy Piper  <andy@xemacs.org>
13035
13036         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13037         type.
13038         (button_query_geometry): give a little more room so that athena
13039         buttons fit.
13040
13041 2000-04-05  Andy Piper  <andy@xemacs.org>
13042
13043         * faces.c (complex_vars_of_faces): The widget face should inherit
13044         the font of the gui-element face.
13045
13046 2000-04-04  Andy Piper  <andy@xemacs.org>
13047
13048         * glyphs-x.c (x_button_update): new function. unconditionally
13049         update a button's state when the instance is dirty.
13050         (image_instantiator_format_create_glyphs_x): add x_button_update.
13051         (x_widget_instantiate): remove old resize cruft.
13052
13053 2000-04-02  Andy Piper  <andy@xemacs.org>
13054
13055         * frame.c (change_frame_size_1): The introduction of gutters means
13056         that we need to allow 0 as a potential frame dimension.
13057
13058 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13059
13060         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13061         image glyph if allow_cursor.
13062         (add_hscroll_rune): Don't allow cursor to border glyph.
13063         (create_text_block): Ditto.
13064
13065         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13066         text not in buffer.
13067         (redisplay_output_layout): Call ensure_face_cachel_complete for
13068         text image glyph.
13069
13070
13071 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13072
13073         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13074
13075         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13076         not in buffer
13077
13078         * redisplay-tty.c (tty_output_display_block): Delete the routine
13079         for text image glyph
13080         * redisplay-x.c (x_output_display_block): ditto
13081         * redisplay-msw.c (mswindows_output_display_block): ditto
13082
13083 2000-02-02  Mike Alexander  <mta@arbortext.com>
13084
13085         Note: Some of these were committed by accident as part of other
13086         patches.
13087
13088         * regex.c (regex_compile): Avoid compiler warnings.
13089
13090         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13091
13092         * nt.h: Declare term_ntproc correctly.
13093
13094         * nt.c: Remove incorrect declaration of get_home_directory which
13095         is declared correctly in lisp.h.
13096
13097         * keymap.c (get_keyelt): Avoid compiler warnings.
13098         (raw_lookup_key_mapper): Avoid compiler warnings.
13099
13100         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13101
13102         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13103
13104         * filemode.c (mode_string): Avoid compiler warnings.
13105
13106         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13107         avoid warning.
13108
13109         * events-mod.h: Undef some things that winuser.h defines differently.
13110
13111         * data.c (Faset): Avoid compiler warnings.
13112
13113         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13114
13115 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13116
13117         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13118         Fall through to simple beep on error.
13119         Replace "extern" by real header file.
13120
13121         * linuxplay.c: Use nativesound.h
13122         (play_sound_data): Return error code. Be less verbose on error.
13123
13124         * sunplay.c: Use nativesound.h
13125         (play_sound_data): Return error code. Be less verbose on error.
13126
13127         * ntplay.c: Use nativesound.h
13128         (play_sound_data): Return fake error code
13129
13130         * sgiplay.c: Use nativesound.h
13131         (play_sound_data): Return error code
13132
13133         * hpplay.c: Use nativesound.h, partially implement
13134         new error code. Break compilation until finished.
13135         (play_sound_data): error code.
13136
13137         * nativesound.h (play_sound_file):
13138           (play_sound_data): Prototype in new header.
13139
13140 2000-03-31  Andy Piper  <andy@xemacs.org>
13141
13142         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13143         for toggle and radio buttons.
13144         (image_instantiator_buttons): use it.
13145
13146 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13147
13148         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13149         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13150         found. Scrollbar event probably belonged to some old config.
13151
13152 2000-03-31  Andy Piper  <andy@xemacs.org>
13153
13154         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13155         than 1.
13156         (initialize_widget_image_instance): default layout to
13157         LAYOUT_HORIZONTAL rather than 0.
13158         (widget_instantiate): reverse the item list at the end rather than
13159         every iteration.
13160         (layout_layout): re-code for the border text at the front of the
13161         item list rather than at the end.
13162         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13163         provided by the user.
13164         (widget_query_geometry): comment.
13165
13166 2000-03-30  Andy Piper  <andy@xemacs.org>
13167
13168         * glyphs-widget.c (image_instantiator_layout): allow standard
13169         widget keywords in layouts.
13170
13171         * gutter.c (output_gutter): cope with nil gutter contents.
13172
13173         * frame.c (Fset_frame_properties): add gutter docs.
13174
13175 2000-03-29  Andy Piper  <andy@xemacs.org>
13176
13177         * toolbar-msw.c (TBSTYLE_FLAT): add.
13178         (mswindows_output_toolbar): minor fiddling.
13179
13180 2000-03-29  Andy Piper  <andy@xemacs.org>
13181
13182         * gutter.c (output_gutter): force gutter size recalculation if
13183         what we are trying to display won't fit.
13184         (update_gutter_geometry): new function. A per-gutter version of
13185         update_frame_gutter_geometry.
13186         (update_frame_gutter_geometry): use it.
13187         (redraw_exposed_gutter): add extra debugging output.
13188
13189 2000-03-28  Mike Alexander  <mta@arbortext.com>
13190
13191         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13192         (pdump_file_unmap): Implement it on Windows
13193         (pdump_file_get): Save alocated handles for pdump_file_unmap
13194
13195 2000-03-28  Andy Piper  <andy@xemacs.org>
13196
13197         * gui.c (get_gui_callback): treat Quit specially.
13198
13199 2000-03-27  Andy Piper  <andy@xemacs.org>
13200
13201         * glyphs.c (image_instantiate): be careful to check in the same
13202         way we assigned.
13203
13204 2000-03-27  Didier Verna  <didier@xemacs.org>
13205
13206         * config.h.in: define the proper SMART_INCLUDE macro.
13207         handle renaming of `foo_h_path' to `foo_h_file'.
13208
13209         * database.c: ditto.
13210
13211         * emacs.c: ditto.
13212
13213         * linuxplay.c: ditto.
13214
13215         * terminfo.c: ditto.
13216
13217         * tooltalk.h: ditto.
13218
13219 2000-03-27  Andy Piper  <andy@xemacs.org>
13220
13221         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13222         gets updated whenever the face might have changed.
13223
13224 2000-03-26  Mike Alexander  <mta@arbortext.com>
13225
13226         * dumper.c (pdump_resource_free): Fix the comment.
13227
13228 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13229
13230         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13231
13232 2000-03-22  Mike Alexander  <mta@arbortext.com>
13233
13234         * dumper.c: Include Windows headers on Windows
13235         (pdump_resource_free): Add a body to the function
13236         (pdump_load): exe_name -> exe_path and add some comments.
13237
13238 2000-03-25  Mike Alexander  <mta@arbortext.com>
13239
13240         * gui.c (copy_gui_item_tree): Return a value in all cases
13241
13242 2000-03-21  Didier Verna  <didier@xemacs.org>
13243
13244         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13245         lwlib/config.h.in.
13246         (SMART_INCLUDE): new macro.
13247         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13248         the proper location.
13249
13250         * postgresql.c: use it.
13251
13252         * inline.c: ditto.
13253
13254 2000-03-24  Andy Piper  <andy@xemacs.org>
13255
13256         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13257         do this.
13258
13259 2000-03-24  Andy Piper  <andy@xemacs.org>
13260
13261         * redisplay-output.c (compare_runes): use image_instance_changed
13262         to detect changes. Do not depend on glyphs_changed, only depend on
13263         dirtiness.
13264          (redisplay_output_layout): add debug messages.
13265         (compare_runes): ditto.
13266
13267         * glyphs.h: declare new functions.
13268         (struct Lisp_Image_Instance): remove percent and associated
13269         accessors.
13270
13271         * gui.h: declare new copying functions.
13272
13273         * gui.c (copy_gui_item_tree): new function.
13274         (copy_gui_item): new function.
13275         (gui_item_id_hash): revert to standard hash.
13276         (gui_item_hash): ditto.
13277         (gui_item_hash_internal): deleted.
13278         (mark_gui_item): mark value.
13279         (gui_item_add_keyval_pair): add value.
13280         (gui_item_init): ditto.
13281         (gui_add_item_keywords_to_plist): ditto.
13282         (gui_item_equal): ditto.
13283         (syms_of_gui): add Q_value.
13284
13285         * glyphs-x.c (x_progress_gauge_update): use pending items and
13286         value for setting the state.
13287         (x_update_widget): don't set items from pending here.
13288
13289         * glyphs-widget.c (update_widget): update items here.
13290         (progress_gauge_set_property): use items for storing value. Put
13291         new value in pending items.
13292
13293         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13294         items for new value. Convert percent -> value.
13295         (mswindows_tab_control_update): don't update items here.
13296
13297         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13298         (update_subwindow): ditto.
13299         (image_instance_changed): new function. Compare hash values and
13300         past and present widget items.
13301         (image_instantiate): We more careful about where we instantiate
13302         things.
13303         (image_instantiate): add error checking.
13304
13305         * gutter.c (syms_of_gutter): use -hook.
13306
13307 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13308
13309         * console-tty.c (Fset_console_tty_input_coding_system): Use
13310         Qkeyboard.
13311         (Fset_console_tty_output_coding_system): Use Qterminal.
13312         (tty_init_console): Use Qkeyboard and Qterminal.
13313
13314 2000-03-21  Ben Wing  <ben@xemacs.org>
13315
13316         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13317         From Mike Alexander <mta@arbortext.com>.
13318
13319 2000-03-21  Ben Wing  <ben@xemacs.org>
13320
13321         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13322         process brokenness.  Proper implementation to come.
13323         * callproc.c:
13324         Rename call-process-internal to old-call-process-internal.
13325         New impl. in process.el.
13326
13327 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13328
13329         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13330
13331 2000-03-20  Andy Piper  <andy@xemacs.org>
13332
13333         * glyphs.c (full_list_hash): make hashes of the same elements in
13334         different orders return different values.
13335
13336 2000-03-20  Martin Buchholz <martin@xemacs.org>
13337
13338         * XEmacs 21.2.32 is released.
13339
13340 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13341
13342         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13343         (DFC_MALLOC_USE_CONVERTED_DATA):
13344         Add aliasing-safe casts to allow use with char* or unsigned char*
13345         lvalues.
13346
13347         * eldap.c (Fldap_open):
13348         (Fldap_search_basic):
13349         (Fldap_add):
13350         (Fldap_modify):
13351         Make C++-compilable.
13352         Make sure GCPRO'ed variables are initialized.
13353         Use temp variables to avoid repeated calls to Flength.
13354
13355 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13356
13357         * sysfile.h:
13358         Make sure PATH_MAX is always defined.
13359         Include limits.h for PATH_MAX.
13360         Deprecate use of MAXPATHLEN.
13361
13362 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13363
13364         * emacs.c: Add reinit_vars_of_fileio.
13365         * symsinit.h: Add reinit_vars_of_fileio.
13366         * fileio.c (reinit_vars_of_fileio): New.
13367         * fileio.c (Fmake_temp_name):
13368         Initialize temp_name random number from microseconds to make
13369         collisions even less likely.  Initialize always at process startup
13370         time.  (make-temp-name) used to return the same file name twice in
13371         a row when PDUMP.
13372         Random stylistic fiddling.
13373         Comment fixes.
13374
13375 2000-03-20  Andy Piper  <andy@xemacs.org>
13376
13377         * glyphs.c (image_instantiate): allow text glyphs to be
13378         instantiated in the minibuffer window.
13379
13380 2000-03-19  Andy Piper  <andy@xemacs.org>
13381
13382         * glyphs.c (image_instance_hash): be careful about which items we
13383         hash on.
13384
13385         * glyphs-widget.c (tab_control_set_property): record into pending
13386         items rather than the actual items.
13387
13388         * glyphs-x.c (x_update_widget): use pending items to update with.
13389
13390         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13391         to update with.
13392
13393         * glyphs.c (mark_image_instance): mark pending items.
13394
13395         * window.c (Fset_window_configuration): record the buffer.
13396         (Fselect_window): totally revert previous change which breaks many
13397         things.
13398
13399 2000-03-18  Andy Piper  <andy@xemacs.org>
13400
13401         * glyphs-msw.c (mswindows_tab_control_update): force selected
13402         item.
13403
13404         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13405         window domain cache, otherwise we get inconsistencies at
13406         startup. There is something fishy at startup which can lead to the
13407         minibuffer being the selected window when the gutter content is
13408         instantiated.
13409
13410         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13411         gcpros.
13412         (parse_gui_item_tree_children): ditto.
13413         (parse_gui_item_tree_item): ditto.
13414
13415         * glyphs.c (Fupdate_widget_instances): return something.
13416
13417 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13418
13419         * window.c (Fselect_window): Undo 2000-03-17 change.
13420
13421 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13422
13423         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13424         against v7.0 libraries.  Insta-coredump city until the postgres
13425         folks fix it.
13426
13427 2000-03-17  Andy Piper  <andy@xemacs.org>
13428
13429         * faces.c (complex_vars_of_faces): don't give the widget face an
13430         inherited background pixmap.
13431
13432         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13433         selected item.
13434
13435         * event-stream.c (Fdispatch_non_command_events): return something.
13436
13437         * gutter.c (output_gutter): use widget face.
13438         (clear_gutter): ditto.
13439
13440         * NEWS: adjust again.
13441
13442         * window.c (Fselect_window): make sure this runs to completion to
13443         avoid oddities with Fset_window_configuration.
13444         (Fcurrent_window_configuration): in general do not save the
13445         minibuffer as the selected window.
13446
13447         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13448
13449 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13450
13451         * emacs.c (Frunning_temacs_p): Revert previous patch.
13452         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13453
13454 2000-03-16  Andy Piper  <andy@xemacs.org>
13455
13456         * glyphs-x.c (x_tab_control_update): if no widget values then
13457         return.
13458
13459         * NEWS: update for new features.
13460
13461         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13462         synthetic event to the native system.
13463         (reinit_vars_of_event_Xt): set force_event_pending to
13464         emacs_Xt_force_event_pending.
13465
13466         * events.h (struct event_stream): add force_event_pending.
13467
13468         * specifier.c (recompute_one_cached_specifier_in_window): add
13469         comment.
13470
13471         * redisplay.c (redisplay_frame): don't call
13472         update_frame_subwindows. Reset subwindow cachels when
13473         subwindows_changed, removing this was an optimization too far.
13474
13475         * redisplay-output.c (compare_runes): reorganize so that we catch
13476         glyph changes when we want them. Set optimize_output when this
13477         would help layouts.
13478         (redisplay_output_layout): remove frame_really_changed, use
13479         optimize_output instead.
13480
13481         * redisplay-msw.c (mswindows_output_display_block): reset
13482         optimize_output after outputting a glyph.
13483         * redisplay-x.c (x_output_display_block): ditto.
13484         * redisplay-tty.c (tty_output_display_block): ditto.
13485
13486         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13487         functions.
13488         (gutter_specs_changed): do specific gutter positions.
13489         (top_gutter_specs_changed): new function. Only update the
13490         specified gutter specs.
13491         (bottom_gutter_specs_changed): ditto.
13492         (left_gutter_specs_changed): ditto.
13493         (right_gutter_specs_changed): ditto.
13494
13495         * gui.c (gui_item_hash_internal): new function, does a real hash.
13496         (gui_item_id_hash): use it.
13497         (gui_item_hash): hash the eval'ed gui_item.
13498
13499         * gui-x.c (popup_selection_callback): send an eval event to call
13500         Fupdate_widget_instances.
13501
13502         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13503         to call Fupdate_widget_instances.
13504
13505         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13506         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13507
13508         * glyphs.c: (update_frame_subwindows): deleted.
13509         (Fupdate_widget_instances): new function for updating the dirty
13510         state of widgets that might have changed.
13511         (syms_of_glyphs): add Qupdate_widget_instances.
13512         (full_list_hash): hash a list completely.
13513         (image_instance_hash): use it for items and properties.
13514
13515         * frame-msw.c (mswindows_size_frame_internal): remove unused
13516         variable.
13517
13518         * faces.h (struct face_cachel): fix comment.
13519
13520         * event-stream.c (Fdispatch_non_command_events): new
13521         function. Process non-command events, forcing an event cycle
13522         beforehand.
13523         (syms_of_event_stream): declare.
13524         (event_stream_force_event_pending): new function. Force an event
13525         on the native event queue so that an event cycle will occur next
13526         time we check.
13527
13528         * event-msw.c:
13529         (struct ntpipe_shove_stream):
13530         (mswindows_enqueue_dispatch_event):
13531         (mswindows_dequeue_dispatch_event):
13532         (mswindows_cancel_dispatch_event):
13533         (mswindows_pump_outstanding_events):
13534         (mswindows_drain_windows_queue):
13535         (mswindows_handle_paint):
13536         (mswindows_wnd_proc):
13537         (mswindows_key_to_emacs_keysym):
13538         (get_process_input_waitable):
13539         (emacs_mswindows_delete_stream_pair): re-indent file.
13540         (mswindows_need_event): do not process further fds if the windows
13541         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13542         fixes the 100% cpu problem.
13543         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13544
13545 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13546
13547         * alloc.h: New.
13548         * dumper.h: New.
13549         * dumper.c: New.
13550
13551         * emacs.c: Moved dump file searching to dumper.c.
13552         (Frunning_temacs_p): Fixed.
13553
13554         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13555         last_lrecord_type_index_assigned.
13556
13557 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13558
13559         * symsinit.h: Added reinit parameter to init_console_stream
13560         declaration.
13561
13562         * lisp.h: Added file parameter to pdump_load declaration.
13563
13564         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13565         support.  Added dump file searching.
13566
13567         * config.h.in: Added EMACS_PROGNAME.
13568
13569         * console-stream.c (init_console_stream): Fix reinitialisation
13570         when running from temacs.
13571
13572         * alloc.c (pdump): Add id support.
13573         (pdump_load): Add file parameter and signature/id support.
13574
13575         * Makefile.in.in: Add full pdump support.
13576
13577 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13578
13579         * postgresql.c: Update documentation to reflect latest code
13580         status.
13581         (print_result): Show tuple counts in printed representation when
13582         appropriate.
13583         (Fpq_put_nbytes): MULE-ize.
13584         (Fpq_get_line_async): Ditto.
13585
13586 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13587
13588         * postgresql.c (Fpq_lo_import): Fix return value.
13589         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13590
13591 2000-03-13  Ben Wing  <ben@xemacs.org>
13592
13593         * alloc.c (pdump_load):
13594         Fix compile warning under mswin.
13595
13596 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13597
13598         * postgresql.c: Mule-ization, bug fixes.
13599         Use PG_CODING to encapsulate coding system name changes.
13600         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13601         (pg-coding-system): Create.
13602
13603         (Fpq_conn_defaults): Mule-ize.
13604         (Fpq_connectdb): Mule-ize & bug fix.
13605         (Fpq_connect_start): Mule-ize.
13606         (Fpq_set_client_encoding): Mule-ize.
13607         (Fpq_finish): Document `DEAD' connection status.
13608         (Fpq_clear): Ditto.
13609         (Fpq_pgconn): Mule-ize.
13610         (Fpq_exec): Mule-ize & bug fix.
13611         (Fpq_send_query): Ditto.
13612         (Fpq_get_result): Ditto.
13613         (Fpq_res_status): Mule-ize.
13614         (Fpq_result_error_message): Mule-ize.
13615         (Fpq_ntuples): fix comments.
13616         (Fpq_fname): Mule-ize.
13617         (Fpq_fnumber): Mule-ize.
13618         (Fpq_ftype): fix comments.
13619         (Fpq_get_value): Mule-ize.
13620         (Fpq_cmd_status): Ditto.
13621         (Fpq_cmd_tuples): Ditto.
13622         (Fpq_oid_value): Ditto.
13623         (Fpq_notifies): Ditto.
13624         (Fpq_lo_import): Ditto.
13625         (Fpq_lo_export): Ditto.
13626         (Fpq_get_line): Ditto.
13627         (Fpq_put_line): Mule-ize and bug fix.
13628         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13629
13630 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13631
13632         * postgresql.c (vars_of_postgresql): Mule-ize.
13633         (Fpq_conn_defaults): Ditto.
13634
13635 2000-03-12  Ben Wing  <ben@xemacs.org>
13636
13637         * alloc.c (Fmake_byte_code):
13638         * alloc.c (debug_string_purity_print):
13639         * alloc.c (pdump_backtrace):
13640         * alloc.c (pdump_get_indirect_count):
13641         * alloc.c (pdump_register_sub):
13642         * alloc.c (pdump_register_object):
13643         * alloc.c (pdump_register_struct):
13644         * alloc.c (pdump_dump_data):
13645         * alloc.c (pdump_reloc_one):
13646         Minor cleanups.
13647
13648         * console-msw.c:
13649         * console-msw.c (GetConsoleHwnd):
13650         * console-msw.c (msw_hide_console):
13651         * console-msw.c (msw_show_console):
13652         * console-msw.c (msw_ensure_console_buffered):
13653         * console-msw.c (msw_output_console_string):
13654         * console-msw.c (console_type_create_mswindows):
13655
13656         a) Added functions to manipulate the console window for use with
13657         shell support.
13658
13659         b) Added support for writing text to the console, which is now
13660         used under Windows when xemacs is not being run non-interactively,
13661         to write text that would otherwise be destined for stdout because
13662         under these circumstances, text written to stdout tends to
13663         disappear and not be seen.
13664
13665         * console-msw.h:
13666         * event-Xt.c:
13667         * event-Xt.c (x_event_to_emacs_event):
13668         * event-Xt.c (describe_event_window):
13669         * events-mod.h (XEMACS_MOD_CONTROL):
13670         * events.c:
13671         * events.c (Fmake_event):
13672         * events.c (character_to_event):
13673         * events.c (event_to_character):
13674         * events.c (format_event_object):
13675         * events.c (Fevent_modifiers):
13676         * events.h:
13677         * events.h (struct key_data):
13678         * events.h (struct button_data):
13679         * events.h (struct misc_user_data):
13680         * frame-x.c (Fcde_start_drag_internal):
13681         * frame-x.c (Foffix_start_drag_internal):
13682         * gpmevent.c (Freceive_gpm_event):
13683         * keymap.c:
13684         * keymap.c (bucky_sym_to_bucky_bit):
13685         * keymap.c (control_meta_superify):
13686         * keymap.c (make_key_description):
13687         * keymap.c (keymap_lookup_directly):
13688         * keymap.c (create_bucky_submap):
13689         * keymap.c (keymap_store):
13690         * keymap.c (define_key_check_and_coerce_keysym):
13691         * keymap.c (define_key_parser):
13692         * keymap.c (define_key_alternate_name):
13693         * keymap.c (Fdefine_key):
13694         * keymap.c (raw_lookup_key_mapper):
13695         * keymap.c (struct map_keymap_unsorted_closure):
13696         * keymap.c (map_keymap_unsorted_mapper):
13697         * keymap.c (map_keymap_sort_predicate):
13698         * keymap.c (map_keymap_sorted):
13699         * keymap.c (accessible_keymaps_mapper_1):
13700         * keymap.c (where_is_recursive_mapper):
13701         * keymap.c (describe_map_mapper):
13702         * keymap.c (describe_map_sort_predicate):
13703         * keymap.c (describe_map):
13704         * keymap.c (complex_vars_of_keymap):
13705         And a number of other files, the key modifier preprocessor
13706         constants that xemacs uses have names that conflict with constants
13707         defined under MS Windows for other purposes, so they were renamed
13708         to begin with the prefix XEMACS_. The variables that hold such
13709         modifiers were changed to consistently be of type int to fix
13710         various compile warnings.
13711
13712         * console.c (complex_vars_of_console):
13713         * device.c:
13714         * device-msw.c:
13715         * device-msw.c (mswindows_finish_init_device):
13716         * device-msw.c (msw_get_workspace_coords):
13717         * device-msw.c (mswindows_device_system_metrics):
13718         and various other files, added support for a new
13719         device property called offset-workspace which returns the position
13720         of the upper left corner of the workspace area and goes along with
13721         the existing size-workspace property.
13722
13723         * dialog-msw.c:
13724         * dialog-msw.c (push_bufbyte_string_as_unicode):
13725         * dialog-msw.c (mswindows_popup_dialog_box):
13726         Added support for XEmacs-style accelerator specifications in
13727         button text.  Note: I didn't add support for this under X Windows,
13728         and somebody needs to do this.
13729
13730         * dialog.c:
13731         * dialog.c (Fpopup_dialog_box):
13732         Documented the support for accelerators that was just mentioned.
13733
13734         editfns.c (get_home_directory): Changed behavior under Windows
13735         when HOME not defined; former behavior was irretrievably broken.
13736
13737         * emacs.c:
13738         * emacs.c (main_1):
13739         * emacs.c (main):
13740         * minibuf.c (clear_echo_area_internal):
13741         * minibuf.c (echo_area_append):
13742         * print.c:
13743         * print.c (std_handle_out_external):
13744         * print.c (std_handle_out_va):
13745         * print.c (fatal):
13746         * print.c (write_string_to_stdio_stream):
13747         * print.c (output_string):
13748         * print.c (debug_print):
13749         * print.c (debug_backtrace):
13750         * print.c (debug_short_backtrace):
13751         Cleaned up the code that prints text to stdout so that this can be
13752         changed to output into a console window instead under MS Windows,
13753         as described above.
13754
13755         * eval.c:
13756         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13757         * eval.c (internal_catch):
13758         * eval.c (unwind_to_catch):
13759         * eval.c (throw_or_bomb_out):
13760         * eval.c (condition_case_1):
13761         * eval.c (signal_1):
13762         * eval.c (check_error_state_sanity):
13763         * eval.c (call_with_suspended_errors_1):
13764         * eval.c (call_with_suspended_errors):
13765         * eval.c (reinit_vars_of_eval):
13766         Added code to catch throw loops and check for a pesky bug that may
13767         be gone now.
13768
13769         * event-msw.c:
13770         * event-msw.c (key_needs_default_processing_p):
13771         * event-msw.c (mswindows_wnd_proc):
13772         * event-msw.c (mswindows_modifier_state):
13773         * event-msw.c (emacs_mswindows_quit_p):
13774         * event-msw.c (vars_of_event_mswindows):
13775         a) Added support for using the alt key to select menu items as is
13776         standard under MS Windows.  This is controlled using the variable
13777         menu-accelerator-enabled, just like under X Windows.  There is an
13778         option on the options menu to turn this support on.  I really
13779         think that it should be on by default under Windows, but I'm not
13780         going to make this change yet.
13781
13782         b)  Added support for dynamic display size changes under Windows.
13783
13784         * event-stream.c:
13785         * event-stream.c (maybe_echo_keys):
13786         * event-stream.c (Fnext_event):
13787         * event-stream.c (command_builder_find_leaf):
13788         * event-stream.c (lookup_command_event):
13789         * event-stream.c (execute_command_event):
13790         * event-stream.c (pre_command_hook):
13791         * event-stream.c (post_command_hook):
13792         * event-stream.c (syms_of_event_stream):
13793         * event-stream.c (vars_of_event_stream):
13794         * event-stream.c (complex_vars_of_event_stream):
13795         * events.h (struct command_builder):
13796
13797         a) Tried to clean up a little bit the horribly written x-specific
13798         accelerator code that crept into this file.  I moved this code
13799         into menubar-x.c where it belongs. I also needed to move the
13800         command builder structure into the file events.h because it is
13801         accessed directly by this accelerator code.  What I didn't do, but
13802         which should be done at some point, is to properly abstract this
13803         code using device methods instead of the kludgy way that it
13804         currently hooks into the event code.
13805
13806         b) Added the lisp variables this-command-properties and
13807         last-command- properties, which should be used to synchronize two
13808         adjacent commands in preference to playing games with the variable
13809         this-command, which is typically what happens.
13810
13811         c) Added some slightly nasty code to hook into the lisp support
13812         for shifted- motion-key selection.  This is actually necessary for
13813         somewhat complicated reasons, which are described in
13814         simple.el. (NB: I think the proper thing would be to have the code
13815         that calls the pre and post command hooks also call out to generic
13816         lisp functions in simple.el, where all built-in stuff could be
13817         added.  I will think about this more.)
13818
13819         * event-unixoid.c (poll_fds_for_input):
13820         * lread.c (readchar):
13821         * redisplay-tty.c (tty_clear_frame):
13822         * redisplay-x.c (x_get_gc):
13823         * signal.c (interrupt_signal):
13824         And a whole bunch of other files: fixed up places that printed
13825         directly to stderr to instead call the function stderr_out so that
13826         the changes I made under Windows work correctly.
13827
13828         * filemode.c (mode_string):
13829         Warning fixes.
13830
13831         * frame-msw.c:
13832         * frame-msw.c (mswindows_size_frame_internal):
13833         Fixed the computation of frame size and position to keep the frame
13834         within the workspace area, rather than within the physical
13835         dimensions of the screen, so that the frame doesn't overlap window
13836         manager decorations, such as the start menu and toolbar, typically
13837         at the bottom of the screen.
13838
13839         * frame.c (vars_of_frame):
13840         Changed the default frame title format under MS Windows to consist
13841         of buffername-XEmacs, which is standard under MS Windows.  I think
13842         it might be a good idea to change this everywhere because I think
13843         it is superior to the current frame title format, but this is the
13844         kind of change that is likely to cause some people to get annoyed,
13845         so I'm not making it.
13846
13847         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13848
13849         * gui-msw.c (mswindows_handle_gui_wm_command):
13850         Fixed compile warnings.
13851
13852         * gui-x.c:
13853         * gui-x.c (strdup_and_add_accel):
13854         * gui-x.c (button_item_to_widget_value):
13855         * gui-x.h:
13856         Added code to automatically put an accelerator onto the beginning
13857         of menu items that don't have one as is now the standard, and is
13858         described more later.  Also fixed things so that the menu item
13859         name can be an evaluated expression, again a new standard.
13860
13861         * gui.c:
13862         * gui.c (gui_item_add_keyval_pair):
13863         * gui.c (make_gui_item_from_keywords_internal):
13864         * gui.c (gui_add_item_keywords_to_plist):
13865         * gui.c (gui_item_accelerator):
13866         * gui.c (gui_name_accelerator):
13867         * gui.c (gui_item_included_p):
13868         * gui.c (gui_item_display_flush_left):
13869         * gui.c (gui_item_display_flush_right):
13870         * gui.c (parse_gui_item_tree_item):
13871         * gui.c (parse_gui_item_tree_children):
13872         * gui.c (parse_gui_item_tree_list):
13873         Mule-ized.  Cleanup.  GCPRO addition.
13874
13875         * line-number.c (buffer_line_number):
13876         * lisp.h:
13877         * lisp.h (EMACS_INT_MAX):
13878         Added the manifest constant EMACS_INT_MIN corresponding to the
13879         existing constant EMACS_INT_MAX.  This is partially to fix compile
13880         warnings under Windows, and partly for cleanliness.
13881
13882         * menubar-msw.c:
13883         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13884         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13885         * menubar-msw.c (displayable_menu_item):
13886         * menubar-msw.c (populate_menu_add_item):
13887         * menubar-msw.c (populate_or_checksum_helper):
13888         * menubar-msw.c (populate_menu):
13889         * menubar-msw.c (update_frame_menubar_maybe):
13890         * menubar-msw.c (prune_menubar):
13891         * menubar-msw.c (msw_char_is_accelerator):
13892         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13893         * menubar-msw.c (mswindows_handle_wm_command):
13894         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13895         * menubar-msw.c (mswindows_handle_wm_initmenu):
13896         * menubar-msw.c (mswindows_update_frame_menubars):
13897         * menubar-msw.c (mswindows_free_frame_menubars):
13898         * menubar-msw.c (mswindows_popup_menu):
13899         Fixed a bug in handling accelerators where an extra character
13900         would be displayed in the menu item.  Also generalized the
13901         function displayable_menu_item because it is now used by the
13902         dialog box code as well.  And finally, added code in the functions
13903         that create the menubar to extract a list of accelerators for the
13904         top level menubar, which is used in the event code to determine
13905         whether a particular alt-key combination should be used to invoke
13906         a menu item, or should be passed through to access the standard
13907         XEmacs keymap binding for this key combination.
13908
13909         Much needed GCPROing.
13910
13911         * menubar-x.c:
13912         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13913         * menubar-x.c (menu_item_descriptor_to_widget_value):
13914         * menubar-x.c (restore_in_menu_callback):
13915         * menubar-x.c (x_popup_menu):
13916         * menubar-x.c (menu_move_up):
13917         * menubar-x.c (menu_move_down):
13918         * menubar-x.c (menu_move_left):
13919         * menubar-x.c (menu_move_right):
13920         * menubar-x.c (menu_select_item):
13921         * menubar-x.c (command_builder_operate_menu_accelerator):
13922         * menubar-x.c (menu_accelerator_junk_on_error):
13923         * menubar-x.c (command_builder_find_menu_accelerator):
13924         * menubar-x.c (Faccelerate_menu):
13925         * menubar.h:
13926         Moved a whole bunch of code here that was previously in
13927         event-stream.c as described above.  There is also code connected
13928         to the new standard of adding an accelerator to the beginning of
13929         menu items that don't have one as described above and below.
13930
13931         * menubar.c:
13932         * menubar.c (menu_parse_submenu_keywords):
13933         * menubar.c (Fmenu_find_real_submenu):
13934         * menubar.c (Fnormalize_menu_item_name):
13935         * menubar.c (syms_of_menubar):
13936         * menubar.c (vars_of_menubar):
13937         * menubar.c (complex_vars_of_menubar):
13938
13939         a) Cleaned up a bunch of documentation and improved it.
13940
13941         b) XEmacs now automatically adds an accelerator onto the beginning
13942         of any menu items that don't have one.  I did this because there
13943         will inevitably be some menu items on the main menubar that don't
13944         have accelerators on them because the package that adds that
13945         particular menu item hasn't yet been fixed up to have accelerators
13946         in them and it looked rather strange to have some items with and
13947         some items without accelerators, especially since even in items
13948         without accelerators, you can, at least under windows, still
13949         access the item through an accelerator corresponding to the first
13950         character in the item's name.  If people don't like this behavior,
13951         I can add a variable to turn it off optionally, but I'm not sure
13952         this is a good idea because we really do need to have accelerators
13953         on all of the menu items, and if a package doesn't like the
13954         accelerators being put on the first character, then it should put
13955         the accelerators where they belong.
13956
13957         c) I made a behavior change, which is that the descriptor that
13958         specifies the text of the menu item, which formerly was just a
13959         string, can now also be an evaluated expression.  This makes this
13960         descriptor parallel with all of the others, which could also be
13961         evaluated expressions.  This also obviates the need for the
13962         keyword :label, which was previously listed in the documentation
13963         as unimplemented, and which was for the same purpose.
13964
13965         d) GCPROing.
13966
13967         * ntproc.c:
13968         * ntproc.c (new_child):
13969         * ntproc.c (sys_spawnve):
13970         * ntproc.c (find_child_console):
13971         * ntproc.c (sys_kill):
13972         Fixed compile warnings.  By the way, this file should really go
13973         away entirely, and this will happen as soon as Kirill makes his
13974         final round of process cleanups, which affect the function
13975         call-process.
13976
13977         * process-nt.c:
13978         * process-nt.c (struct nt_process_data):
13979         * process-nt.c (find_process_from_pid):
13980         * process-nt.c (send_signal_the_nt_way):
13981         * process-nt.c (enable_child_signals):
13982         * process-nt.c (find_child_console):
13983         * process-nt.c (send_signal_the_95_way):
13984         * process-nt.c (nt_finalize_process_data):
13985         * process-nt.c (ensure_console_window_exists):
13986         * process-nt.c (nt_create_process):
13987         * process-nt.c (nt_kill_child_process):
13988         * process-nt.c (nt_kill_process_by_pid):
13989         * process-nt.c (nt_open_network_stream):
13990         * process-nt.c (vars_of_process_nt):
13991         Copied over code from Emacs 20.5 to correctly send signals to sub-
13992         processes under Windows 95.  Also added code to automatically
13993         create and hide console window when a sub-process is created under
13994         Windows 95, which obviates the need for the separate runemacs.exe
13995         executable, and finally implemented some variables that were
13996         implemented in Emacs 20.5, but previously not in XEmacs.  These
13997         include mswindows- start-process-share-console and
13998         mswindows-start-process-inherit-error-mode. (Both of these only
13999         apply to Windows 95.)
14000
14001         * regex.c (regex_compile): Fixed a compile warning.
14002
14003         * select-msw.c:
14004         * select-msw.c (mswindows_own_selection):
14005         * select-msw.c (mswindows_get_foreign_selection):
14006         * select-msw.c (mswindows_disown_selection):
14007         * select-msw.c (console_type_create_select_mswindows):
14008         * select-msw.c (syms_of_select_mswindows):
14009         Cleaned up the file and implemented the device method
14010         selection_exists_p, which had accidentally been left out.  Also
14011         removed four lisp functions that were remnants from before the
14012         time when the selection code was properly device abstracted.
14013         These functions are no longer needed because there are generic
14014         equivalents, and because they were added recently and don't exist
14015         in FSF Emacs, I don't think there's any problem with just deleting
14016         them.
14017
14018         * sysdep.c:
14019         * sysdep.c (sys_subshell):
14020         Fixed a compile warning, although in this case there's probably
14021         something wrong with this code, and it ought to be looked into
14022         more thoroughly by somebody who understands it.
14023
14024         * window.c:
14025         * window.c (Fwindow_text_area_height):
14026         * window.c (Fwindow_width):
14027         * window.c (Fwindow_full_width):
14028         * window.c (Fwindow_pixel_width):
14029         * window.c (debug_print_window):
14030         * window.c (syms_of_window):
14031         Added functions window-text-area-height and window-full-width,
14032         which are functions for returning various width and height
14033         characteristics of a window. (One of these functions is necessary
14034         for making the file dialog box work correctly, and the other one
14035         was added for completeness.)  Also added a table to the
14036         documentation for window-height which describes the entire scheme
14037         for accessing width and height characteristics of a window.
14038
14039 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14040
14041         * nt.c (fstat): Added a comment for another problem with
14042         non-encapsulated [f]stat(), reported by Adrian Aichner
14043         <aichner@ecf.teradyne.com>.
14044
14045 2000-03-11  Andy Piper  <andy@xemacs.org>
14046
14047         * window.c (make_dummy_parent): initialize subwindow instance
14048         cache.
14049         (Fset_window_configuration): zero extent_modiff.
14050
14051 2000-03-10  Andy Piper  <andy@xemacs.org>
14052
14053         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14054         more changes can be triggered.
14055         (Fredisplay_frame): ditto.
14056         (Fredraw_device): ditto.
14057         (Fredisplay_device): ditto.
14058         (redisplay_frame): make non-static.
14059         (redisplay_frame): call update_frame_gutter_geometry outside of
14060         display proper.
14061
14062         * gutter.h: declare update_frame_gutter_geometry.
14063
14064         * redisplay.h: declare redisplay_frame.
14065
14066         * gutter.c (update_frame_gutter_geometry): move geometry changes
14067         in update_frame_gutters here. Geometry changes can only occur
14068         outside of redisplay.
14069         (update_frame_gutters): remove geometry change code.
14070         (Fredisplay_gutter_area): make sure that we are in display when we
14071         update and that we have flushed any size changes.
14072
14073 2000-03-11  Andy Piper  <andy@xemacs.org>
14074
14075         * alloc.c (pdump_dump_data): remove i & count shadows.
14076
14077 2000-02-27  Mike Alexander  <mta@arbortext.com>
14078
14079         * sysdep.h: Declare pdump_read_file
14080
14081         * sysdep.c (pdump_read_file): New function
14082
14083         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14084         dump data
14085
14086 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14087
14088         * lrecord.h: add `lrecord_type_pgsetenv'.
14089
14090 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14091
14092         * symsinit.h: declare (vars|syms)_of* functions.
14093         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14094
14095 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14096
14097         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14098
14099         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14100         GCCs.
14101
14102         * emacs.c (main_1): Call postgres initialization code.
14103
14104         * postgresql.h: New file.  PostgreSQL RDBMS support.
14105         * postgresql.c: New file.
14106
14107 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14108
14109         * redisplay-output.c (redisplay_output_display_block): Disable
14110         redundant code.
14111
14112 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14113
14114         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14115         (Fcanna_henkan_next): Ditto.
14116         (Fcanna_bunsetu_henkou): Ditto.
14117         (Fcanna_henkan_kakutei): Ditto.
14118         (Fcanna_henkan_end): Ditto.
14119         (Fcanna_henkan_quit): Ditto.
14120         (Fcanna_henkan_next): Set retun value correctly.
14121         (c2mu): Use unsigned char instead of signed char.
14122
14123 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14124
14125         * emacs.c (main_1): Always call syms_of_gui.
14126         * inline.c: include gui.h
14127
14128 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14129
14130         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14131         converted to Lisp_Object.
14132         (Qtop_bottom): New variable.
14133         (syms_of_redisplay): Initialize it.
14134         * redisplay.h (Vvisible_bell): Ditto.
14135         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14136         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14137         only flash top and bottom.
14138
14139 2000-03-08  Andy Piper  <andy@xemacs.org>
14140
14141         * buffer.c (Frename_buffer): record new buffer name the right way.
14142
14143 2000-03-08  Andy Piper  <andy@xemacs.org>
14144
14145         * glyphs.c (update_subwindow): increase hash depth so that widget
14146         items get picked up properly.
14147
14148         * redisplay-output.c (compare_runes): increase hash depth so that
14149         widget items get picked up properly.
14150
14151 2000-03-08  Andy Piper  <andy@xemacs.org>
14152
14153         * gutter.c (output_gutter): add some debug.
14154
14155         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14156         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14157         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14158
14159         * redisplay-output.c (compare_runes): use display_hash to
14160         determine if glyphs really are not the same.
14161
14162         * glyphs.c (update_subwindow): check display_hash to see if
14163         anything really needs to be updated. If not then do
14164         nothing. Record the display_hash after updating.
14165         (image_instance_equal): compare the image_instance face also.
14166
14167 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14168
14169         * redisplay.h: Fix comment style.
14170
14171 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14172
14173         * consle-msw.h (struct mswindows_frame):
14174         Added new member paint_pending to indicate whether a WM_PAINT
14175         magic event has been queued for this frame.
14176
14177         * event-msw.c (mswindows_drain_windows_queue):
14178         Don't queue a WM_PAINT magic event if one is already queued.
14179         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14180
14181         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14182
14183 2000-03-07  Didier Verna  <didier@xemacs.org>
14184
14185         * dired.c: #include `regex.h' after `sysfile.h'.
14186
14187 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14188
14189         * sound.c (init_nas_sound): Fix compiler warning.
14190
14191         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14192         (FREE_STRUCT_P):
14193         (MARK_STRUCT_AS_FREE):
14194         (MARK_STRUCT_AS_NOT_FREE):
14195         Make `gcc -fstrict-aliasing' work properly.
14196
14197 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14198
14199         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14200         (mswindows_delete_device): Call CoUnnitialize().
14201
14202         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14203
14204 2000-02-25    <CraigL@DyCon.com>
14205
14206         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14207         <errno.h>.
14208
14209         * sysdep.c: This extern declaration for environ prevents MinGW
14210         from finding the variable in CRTDLL.DLL.
14211
14212         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14213         windows headers.
14214         (SHGFI_EXETYPE): ..
14215         (WM_MOUSEWHEEL): ..
14216         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14217         definitions.
14218         (MMRESULT): Removed, now defined in cygwin's windows headers.
14219         (TIMECAPS): ..
14220         (uid_t,gid_t,pid_t,ssize_t): ..
14221         (_timeb): Removed, MinGW defines both _timeb and timeb.
14222         (HAVE_H_ERRNO): Added.
14223         (HAVE_TZNAME): Added, configure is not detecting this.
14224
14225 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14226
14227         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14228         * syntax.c (syntax_match): Use it.
14229
14230         * cmds.c: Import auto-fill-chars from FSF Emacs.
14231         (Vauto_fill_chars): New variables.
14232         (internal_self_insert): Check Vauto_fill_chars.
14233         (vars_of_cmds):
14234         Declare auto-fill-chars as a Lisp variable and initialize it.
14235
14236 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14237
14238         * fileio.c (Fmake_symbolic_link):
14239         (Ffile_symlink_p):
14240         Run handlers even if local machine doesn't have symlinks.
14241
14242 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14243
14244         * event-msw.c (mswindows_drain_windows_queue):
14245         Don't generate paint magic events for non-XEmacs frames.
14246
14247 2000-03-05  Andy Piper  <andy@xemacs.org>
14248
14249         * redisplay.c (redisplay_frame): generate_displayable_area and
14250         friends assumes that we are not in GC, we therefore have to make
14251         sure that this doesn't happen.
14252
14253         * gutter.c (calculate_gutter_size): generate_displayable_area
14254         assumes that we are not in GC, we therefore have to make sure that
14255         this doesn't happen.
14256
14257 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14258
14259         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14260
14261 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14262
14263         * redisplay.c (regenerate_window): Make sure we set a sane value
14264         for end_pos even if we jump out of the loop.
14265         (regenerate_window): Answer Ben's question :-).
14266         (start_end_of_last_line): Add may_error argument.
14267         (start_of_last_line):
14268         (end_of_last_line): Pass may_error = 0.
14269         (end_of_last_line_may_error): New function.
14270         (pixel_to_glyph_translation): Use it, so we don't crash in
14271         event_to_glyph.
14272
14273 2000-03-04  Andy Piper  <andy@xemacs.org>
14274
14275         * window.h (struct window): add gutter_extent_modiff.
14276
14277         * window.c (allocate_window): zero out gutter_extent_modiff.
14278
14279         * redisplay.h: declare sync_display_line_structs.
14280
14281         * redisplay.c (add_glyph_rune): add a better comment.
14282
14283         * redisplay-output.c (sync_display_line_structs): made non-static.
14284         (compare_runes): remove unneccesary glyph cachel access.
14285
14286         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14287
14288         * gutter.c (output_gutter): don't output the gutter if extent
14289         changes only involve extents in buffers. use 4 sets of display
14290         lines.
14291         (gutter_extent_signal_changed_region_maybe): new function. Mark
14292         extents in gutters as changed.
14293         (update_frame_gutters): use 4 sets of display lines.
14294         (reset_gutter_display_lines): ditto.
14295         (free_frame_gutters): ditto.
14296         (redraw_exposed_gutter): force output of gutters.
14297
14298         * frame.h (struct frame): add 4 sets of gutter display lines.
14299
14300         * extents.c: (extent_changed_for_redisplay): signal changes to
14301         extents in strings in the gutter as well as extents in buffers.
14302
14303 2000-03-02  Andy Piper  <andy@xemacs.org>
14304
14305         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14306
14307         * frame.c (Fmake_frame): make sure the gutters get initialized
14308         after the frame is visible.
14309         (set_frame_selected_window): re-arrange compilation macros a
14310         little.
14311         (change_frame_size_1): mark gutters changed.
14312
14313         * device.c (Fset_device_class): mark gutters changed.
14314
14315 2000-03-01  Andy Piper  <andy@xemacs.org>
14316
14317         * window.c (window_top_frame_gutter_height): deleted.
14318         (window_bottom_frame_gutter_height): ditto.
14319         (window_left_frame_gutter_height): ditto.
14320         (window_right_frame_gutter_height): ditto.
14321         (window_top_gutter_height): don't use them.
14322         (window_bottom_gutter_height): ditto.
14323         (window_left_gutter_width): ditto.
14324         (window_right_gutter_width): ditto.
14325         (Fsplit_window): ditto.
14326         (Fwindow_pixel_edges): don't use border dimensions here.
14327
14328         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14329         (update_scrollbar_instance): ditto.
14330
14331         * redisplay.c (generate_modeline): don't take gutters into account.
14332         (generate_modeline): ditto.
14333         (redisplay_frame): small gutter display optimization.
14334
14335         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14336
14337         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14338         gutters into account.
14339
14340         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14341         for window position and type.
14342
14343         * gutter.c (get_gutter_coords): fix for frame gutters.
14344         (update_frame_gutters): update frame geometry if the gutters have
14345         changed.
14346         (init_frame_gutters): record current gutter geometries.
14347
14348         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14349         var.
14350         (mswindows_widget_instantiate): ditto.
14351
14352         * frame.h (struct frame): add current_gutter_bounds.
14353
14354         * frame.c (change_frame_size_1): position window and minibuffer
14355         appropriately taking into account the frame gutters.
14356
14357         * frame-x.c: (x_initialize_frame_size): take into account the
14358         frame gutters.
14359
14360 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14361
14362         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14363
14364 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14365
14366         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14367
14368 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14369
14370         * file-coding.c (reset_decoding_stream): Clear previous
14371         detection state when autodetect.
14372
14373 2000-02-29  Didier Verna  <didier@xemacs.org>
14374
14375         * extents.c (set_extent_glyph_1): don't require extents to be
14376         attached.
14377
14378 2000-02-27  Andy Piper  <andy@xemacs.org>
14379
14380         * gutter.c (Fset_default_gutter_position): don't default left and
14381         right gutter visibility to t.
14382         (Fset_default_gutter_position): run
14383         default-gutter-position-changed-hook.
14384         (syms_of_gutter): add default-gutter-position-changed-hook.
14385
14386 2000-02-26  Andy Piper  <andy@xemacs.org>
14387
14388         * specifier.c (Fmake_specifier): add gutter references.
14389
14390         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14391
14392         * lisp.h: declare Fvalid_plist_p.
14393
14394         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14395         as changed.
14396         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14397         well as its visibility so that it gets reconstructed.
14398         (construct_window_gutter_spec): new function. Construct a string
14399         to be displayed in the gutter from a plist of strings. Take care
14400         to only use elements that are declared as visible.
14401         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14402         WINDOW_GUTTER.
14403         (gutter_validate): allow plists of strings in the specifier.
14404         (gutter_specs_changed): construct the real_gutter from the gutter
14405         specs using construct_window_gutter_spec.
14406         (gutter_visible_validate): gutter-visible is a new specifier type.
14407         (Fgutter_visible_specifier_p): new function for the new specifier.
14408         (syms_of_gutter): declare gutter-visible and
14409         Fgutter_visible_specifier_p.
14410         (specifier_type_create_gutter): intitalize new gutter-visible
14411         specifier.
14412         (reinit_specifier_type_create_gutter): ditto.
14413         (specifier_vars_of_gutter): use new specifier type for gutter
14414         visibility.
14415         (init_frame_gutters): construct real_gutter correctly.
14416         (Fgutter_specifier_p): beef up documentation.
14417         (Fgutter_size_specifier_p): ditto.
14418
14419         * winslots.h: add real_gutter slots.
14420
14421 2000-02-25  Andy Piper  <andy@xemacs.org>
14422
14423         * device-msw.c: Be kind to older cygwin versions. From Raymond
14424         Toy <toy@rtp.ericsson.se>.
14425
14426         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14427         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14428
14429 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14430
14431         * elhash.c (MARK_OBJ): Practice macro hygiene.
14432
14433 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14434
14435         * miscplay.c: s/__inline__/inline/g;
14436         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14437         (get_device_compdc): INLINE ==> static inline
14438         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14439         find -name '*.h' | \
14440         xargs global-replace \
14441         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14442
14443 2000-02-25  Andy Piper  <andy@xemacs.org>
14444
14445         * window.c (window_top_frame_gutter_height): new function.
14446         (window_top_window_gutter_height): ditto.
14447         (window_top_gutter_height): use them.
14448         (window_bottom_frame_gutter_height): new function.
14449         (window_bottom_window_gutter_height): ditto.
14450         (window_bottom_gutter_height): use them.
14451         (window_left_window_gutter_width): new function.
14452         (window_left_frame_gutter_width): ditto.
14453         (window_left_gutter_width): use them.
14454         (window_right_window_gutter_width): new function.
14455         (window_right_frame_gutter_width): ditto.
14456         (window_right_gutter_width): use them.
14457         (window_pixel_height): new function. calulate window pixel height
14458         with frame gutter involvement.
14459         (Fsplit_window): calculate new sizes taking frame gutters into
14460         account.
14461         (window_char_height_to_pixel_height): don't include frame gutters.
14462         (window_char_height): use window_pixel_height.
14463         (window_pixheight): rename from window_pixel_height.
14464         (change_window_height): use it.
14465         (window_pixel_height_to_char_height): don't include frame gutters.
14466         (window_char_width_to_pixel_width): ditto.
14467
14468 2000-02-25  Andy Piper  <andy@xemacs.org>
14469
14470         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14471         if it is.
14472
14473 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14474
14475         * alloc.c (staticpro):
14476         (staticpro_nodump):
14477         (dumpstruct):
14478         (dumpopaque):
14479         (pdump_wire):
14480         (pdump_wire_list):
14481         (compact_string_chars):
14482         (pdump_dump_wired):
14483         Convert:  if (foo) abort();  ==>  assert (! foo);
14484
14485         * eldap.c (Fldap_search_basic):
14486         (Fldap_add):
14487         (Fldap_modify):
14488         (Fldap_delete):
14489         Fix compiler warnings, and possible crashes if (random) return
14490         value were to be used.
14491
14492 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14493
14494         * device-msw.c: Workaround ResetDC failure.
14495
14496         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14497         applying a devmode.
14498
14499         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14500         (mswindows_text_width): Do not start printer page.
14501
14502         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14503
14504         * glyphs-msw.c: Added image methods to msprinter console and
14505         msprinter-specific image instantiation.
14506
14507 2000-02-20  Mike Alexander  <mta@arbortext.com>
14508
14509         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14510         to avoid crashes when selection-sets-clipboard is on
14511         (mswindows_own_selection): ditto
14512
14513 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14514
14515         * glyphs-msw.c:
14516         * redisplay-msw.c (get_frame_dc):
14517         (get_frame_compdc):
14518         * console-msw.h:
14519         * device-msw.c (mswindows_init_device):
14520         (mswindows_delete_device):
14521         (msprinter_init_device):
14522         (msprinter_delete_device):
14523         * frame-msw.c (mswindows_init_frame_1):
14524         (mswindows_delete_frame):
14525         (msprinter_init_frame_3):
14526         (msprinter_delete_frame): Move compatible DC to device object from
14527         frame object, for both mswindows and msprinter. Only one at a time
14528         is needed, it is a real waste to have one per frame!
14529
14530 2000-02-23  Andy Piper  <andy@xemacs.org>
14531
14532         * glyphs.c: add dynamic width and height elements.
14533         (image_instance_equal): ditto.
14534
14535         * glyphs-widget.c (widget_query_geometry): calculate width and
14536         height dynamically if required.
14537         (initialize_widget_image_instance): initialize dynamic dimensions.
14538         (widget_instantiate): pick-up dynamic dimensions.
14539
14540         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14541         dynamic determination. Add appropriate macros.
14542
14543         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14544         dimensions safe.
14545         (WINDOW_GUTTER_SIZE): ditto.
14546         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14547
14548         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14549         inline.
14550         (get_frame_dc): ditto.
14551
14552         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14553         here.
14554
14555 2000-02-23  Martin Buchholz <martin@xemacs.org>
14556
14557         * XEmacs 21.2.31 is released.
14558
14559 2000-02-22  Ben Wing <ben@xemacs.org>
14560
14561         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14562
14563 2000-02-22  Andy Piper  <andy@xemacs.org>
14564
14565         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14566
14567 2000-02-21  Mike Sperber <mike@xemacs.org>
14568
14569         * .dbxrc:
14570         * .gdbinit:
14571         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14572         variables.
14573
14574 2000-02-21  Mike Sperber <mike@xemacs.org>
14575
14576         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14577
14578 2000-02-21  Martin Buchholz <martin@xemacs.org>
14579
14580         * XEmacs 21.2.30 is released.
14581
14582 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14583
14584         Performance hacking.
14585         * *.c (syms_of_*):
14586         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14587         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14588         * emacs.c (main_1):
14589         * lisp.h (DEFUN):
14590         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14591         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14592         * symeval.h (DEFVAR_SYMVAL_FWD):
14593         * symbols.c (guts_of_unbound_marker):
14594         Make all c_readonly objects also lisp_readonly and marked for life.
14595         * lrecord.h (struct lrecord_implementation):
14596         Document flags better.
14597         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14598         * lrecord.h (DECLARE_LRECORD):
14599         * lrecord.h (XSETRECORD):
14600         * lrecord.h (RECORDP):
14601         * lrecord.h (RECORD_TYPEP):
14602         * lrecord.h (RECORD_MARKER): New.
14603         * lrecord.h (error_check_*):
14604         * lrecord.h (CONCHECK_NONRECORD):
14605         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14606         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14607         * lrecord.h (set_lheader_implementation):
14608         * lrecord.h (enum lrecord_type): New.
14609         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14610         * alloc.c (disksave_object_finalization_1):
14611         * alloc.c (mark_object):
14612         * alloc.c (lrecord_type_index):
14613         * alloc.c (tick_lcrecord_stats):
14614         * alloc.c (Fgarbage_collect):
14615         * alloc.c (init_alloc_once_early):
14616         * alloc.c (pdump_load):
14617         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14618         * alloc.c (lrecord_type_index): Delete.
14619         Make lisp object type indexes be constant.
14620           Makes (byte-compile) 5% faster.
14621         Put all marker functions into their own array.
14622           Makes (garbage-collect) 5% faster.
14623         Optimize SYMBOL_VALUE_MAGIC_P.
14624           Makes (byte-compile) 2-3% faster.
14625         * config.h.in (gc_checking_assert): New.
14626         * alloc.c: Use gc_checking_assert().
14627         * .dbxrc: Make compatible with new object type implementation.
14628         * .gdbinit: Make compatible with new object type implementation.
14629         * alloc.c: Delete all symbols defined only for debugging, such as
14630         Lisp_Type_Vector and lrecord_charset.
14631
14632 2000-02-21  Andy Piper  <andy@xemacs.org>
14633
14634         * gui-msw.c (Fmswindows_shell_execute): fix file location
14635         problems.
14636
14637         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14638         unshowing so that set_window_buffer doesn't undo
14639         kill_buffer_hook's hard work.
14640
14641         * glyphs-widget.c (tab_control_query_geometry): don't count the
14642         first item when calculating geometry.
14643
14644         * glyphs.c (map_subwindow): remove redundant code.
14645         (update_frame_subwindows): be more circumspect about when to
14646         update subwindows.
14647
14648         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14649         when items haven't changed. Update faces if faces have changed as
14650         well as just the widget face.
14651         (x_tab_control_update): Update faces if faces have changed as well
14652         as just the widget face.
14653
14654 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14655
14656         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14657         registration.
14658         (build_syscolor_string): Use mswindows_color_to_string to try to
14659         get a named color.
14660         (mswindows_device_system_metrics): Reverse the foreground and
14661         background colors so that they match the documentation.
14662
14663         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14664         they match the default Windows palette.
14665         (mswindows_color_to_string): New function.
14666
14667 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14668
14669         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14670
14671 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14672
14673         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14674         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14675
14676         * symbols.c (init_symbols_once_early): Removed obsolete
14677         DATA_SEG_BITS related kludge.
14678         (defvar_magic): Ditto.
14679
14680         * malloc.c: Removed obsolete DATA_SEG_BITS
14681         * ralloc.c: Ditto.
14682         * mem-limits.h: Ditto.
14683
14684         * Makefile.in.in: Removed obsolete HAVE_SHM
14685         * emacs.c: Ditto.
14686
14687 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14688
14689         *  device-msw.c (mswindows_delete_device): Free DDE string
14690         handles.
14691
14692 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14693
14694         * keymap.c (get_keyelt):
14695         * unexnt.c (unexec):
14696         * vm-limit.c (memory_warnings):
14697         * ntheap.c (recreate_heap):
14698         * ntheap.h (UNINIT_PTR):
14699         * select-msw.c (Fmswindows_get_clipboard):
14700         (Fmswindows_set_clipboard):
14701         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14702         * objects-msw.c:
14703         * menubar-msw.c (displayable_menu_item):
14704         * glyphs-msw.c:
14705         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14706         * sysdep.c (sys_subshell):
14707         * process-nt.c (nt_create_process):
14708         * nt.c (normalize_filename):
14709         (dostounix_filename):
14710         (unixtodos_filename):
14711         * ntproc.c (win32_executable_type):
14712         * ntplay.c (play_sound_data_1):
14713         (play_sound_file):
14714         * editfns.c (get_home_directory):
14715         * event-msw.c (struct winsock_stream):
14716         (mswindows_dde_callback):
14717         * device-msw.c (msprinter_init_device):
14718         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14719
14720         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14721         mswindows_clear_toolbar were swapped!
14722
14723         * objects-msw.c:(colormap_t):
14724         (fontmap_t):
14725         * emacs.c (struct standard_args): Fixed const jumble.
14726
14727         * glyphs-widget.c (update_widget): Fixed comparison notation.
14728
14729         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14730
14731         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14732         __declspec(noreturn) syntax.
14733
14734 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14735
14736         * eldap.c (Fldap_open):
14737         (Fldap_search_basic):
14738         (Fldap_add):
14739         (Fldap_modify):
14740         Use new coding system conversion macros.
14741
14742 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14743
14744         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14745
14746 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14747
14748         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14749         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14750
14751         * eldap.c (Qadd, Qreplace): New constant symbols
14752         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14753         interruptions by XEmacs signals
14754         Remove unnecessary calls to slow_down_interrupts and
14755         speed_up_interrupts
14756         (Fldap_search_basic): Renamed from Fldap_search_internal
14757         Added new optional parameter VERBOSE that triggers the
14758         display of progress messages
14759         Remove unnecessary calls to slow_down_interrupts and
14760         speed_up_interrupts
14761         LDAP result code analysis rewritten
14762         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14763         (syms_of_eldap): Define the new symbols and functions
14764
14765
14766 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14767
14768         * realpath.c: Determine PATH_MAX maximally portably.
14769
14770         * insdel.c (bytecount_to_charcount): Optimize.
14771         The function used to be optimized for entirely ASCII sequences.
14772         Now it is optimized for successive characters from the same
14773         charset.  This also wins big for _mostly_ ASCII sequences.
14774
14775         * fileio.c (Ffile_truename): convert return from realpath() using
14776         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14777         - Rewrite GCPROing slightly.
14778
14779         * sysdep.c (sys_open): Do filename conversion, like all other
14780         sys_* functions.  Fixes bug:
14781         (let ((file-name-coding-system 'iso-8859-2))
14782            (write-region x y latin2-name))
14783         ==> writes filename using internal encoding.
14784
14785 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14786
14787         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14788         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14789         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14790         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14791         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14792         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14793         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14794         (CONST_IF_NOT_DEBUG): Delete.
14795         * alloc.c (this_one_is_unmarkable): Delete.
14796         (mark_object): Don't check for this_one_is_unmarkable. Use the
14797         c_readonly flag instead.
14798         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14799
14800 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14801
14802         * event-msw.c (mswindows_drain_windows_queue):
14803         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14804         away redundant repaint events.
14805
14806 2000-02-17  Andy Piper  <andy@xemacs.org>
14807
14808         * redisplay.h: declare mark_redisplay_structs.
14809
14810         * redisplay.c (redisplay_window):
14811         (redisplay_frame): don't check subwindows_state_changed.
14812         (mark_redisplay): mark gutters here.
14813
14814         * glyphs.c: (instantiate_image_instantiator): always layout if we
14815         haven't done so already.
14816         (allocate_image_instance): don't mark as dirty.
14817         (update_subwindow): bind inhibit_quit.
14818
14819         * gutter.c (mark_gutters): new function.
14820
14821         * glyphs-x.c (x_update_widget): Always resize to get round a
14822         widget bug.
14823
14824         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14825         breaking absolutely everything.
14826
14827         * gutter.h: declare mark_gutters.
14828
14829 2000-02-16  Martin Buchholz <martin@xemacs.org>
14830
14831         * XEmacs 21.2.29 is released.
14832
14833 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14834
14835         * fns.c (size_bit_vector): Fix computation of the size.
14836
14837 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14838
14839         * *.[ch]: Change CONST to const globally.
14840         find -name '*.[ch]' | \
14841         xargs global-replace \
14842         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14843         - Remove vestigial references to CONST_IS_LOSING
14844
14845 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14846
14847         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14848         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14849         events instead of dispatching them directly.
14850         (mswindows_handle_paint): New function to do repainting.
14851         (mswindows_wnd_proc):
14852         (emacs_mswindows_handle_magic_event): Call above function.
14853
14854 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14855
14856         * objects-msw.c (mswindows_create_font_variant): Return the new
14857         font handle.
14858         (initialize_font_instance): Get font metrics from the underlined
14859         variant of the font to cope with the case where the underlined
14860         font has a bigger descent.
14861
14862 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14863
14864         * gui.c (gui_item_accelerator): Return the first underlined
14865         character in item name.
14866
14867 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14868
14869         * lisp.h: Added Qprinter.
14870
14871         * general.c (syms_of_general): Initialized it.
14872
14873         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14874         (get_frame_dc):
14875         (get_frame_compdc): Made inline.
14876
14877         * console.h (struct console_methods): Added eject_page method.
14878
14879         * frame.h: Added FRAME_DISPLAY_P and friends.
14880         Aligned backslahes in many macros in more readable fashion.
14881         Added page_number to struct frame, and an accessor macro
14882         for it.
14883
14884         * defice.h: Added DEVICE_DISPLAY_P and friends.
14885
14886         * device.c (Fdevice_printer_p): Used these.
14887
14888         * frame.c (allocate_frame_core): Initialize page number.
14889         (Fprint_job_page_number):
14890         (Fprint_job_eject_page): Implemented.
14891
14892         * frame-msw.c (msprinter_eject_page): Added method.
14893         (msprinter_start_page): Added.
14894
14895         * window.c (Fwindow_truncated_p): Fixed docstring.
14896         (Fwindow_last_line_visible_height): Implemented.
14897
14898 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14899
14900         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14901
14902 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14903
14904         * syntax.c (scan_words): Always advance at least one character.
14905
14906 2000-02-13  Andy Piper  <andy@xemacs.org>
14907
14908         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14909         to make sure the glyph is in the cachels.
14910
14911         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14912         global image instance flag.
14913         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14914         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14915
14916         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14917         (Fset_image_instance_property): mark layout as changed.
14918         (invalidate_glyph_geometry_maybe): mark layout as changed.
14919         (glyph_width): use new NEEDS_LAYOUT macro.
14920         (glyph_ascent): ditto.
14921         (glyph_descent): ditto.
14922         (glyph_height): ditto.
14923         (image_instance_layout): mark layout as clean after laying out.
14924         (update_subwindow): don't mark layout as clean here.
14925
14926         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14927         should no longer be needed.
14928
14929         * glyphs-x.c (x_update_widget): sanitize asserts.
14930         (x_finalize_image_instance): sanitize assignment to widgets.
14931
14932         * glyphs-widget.c (widget_instantiate): don't need to clear the
14933         layout flag here.
14934
14935 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14936
14937         * sysdep.c (getcwd): Use standard prototype.
14938         * sysdep.h (getcwd): Use standard prototype.
14939
14940         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14941         (sequence, start, end).
14942         Remove redundant type checking.
14943         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14944         view of `caller-protects') to avoid a crash where the real fix was
14945         found elsewhere.
14946
14947 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14948
14949         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14950
14951         * s/sol2.h: Remove feature macro initialization.
14952
14953         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14954         (vector_hash): New.  Code from internal_hash.
14955         * lrecord.h:
14956         Fix up allocation subsystem comments.
14957
14958         * config.h.in: Add __EXTENSIONS__ for Solaris.
14959
14960         * systime.h (EMACS_GETTIMEOFDAY): New.
14961         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14962         Remove Solaris-specific code.
14963         Use void* for the (ignored) second arg for gettimeofday().
14964
14965         * elhash.c (hash_table_hash): Implement it, finally.
14966         * elhash.c:  Use hashcode_t.
14967
14968         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14969         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14970
14971         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14972         * fns.c (size_bit_vector):
14973         * alloc.c (size_vector):
14974         (make_vector_internal):
14975         (make_bit_vector_internal):
14976         (sweep_bit_vectors_1):
14977         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14978
14979 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14980
14981         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14982         Include strings.h to avoid warnings for bzero and strcasecmp.
14983
14984 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14985
14986         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14987         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14988
14989         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14990         sequence.
14991
14992 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14993
14994         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14995         use a value field instead.
14996         (symbol_value_forward_forward): Use value field.
14997         (DEFVAR_SYMVAL_FWD): Use value field.
14998         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14999         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15000         (DEFVAR_CONST_INT): Ditto.
15001         (DEFVAR_BOOL): Ditto.
15002         (DEFVAR_CONST_BOOL): Ditto.
15003         (DEFVAR_INT_MAGIC): Ditto.
15004         (DEFVAR_BOOL_MAGIC): Ditto.
15005
15006         * symbols.c (guts_of_unbound_marker): Use value field.
15007         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15008         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15009
15010         * lisp.h: Declare dumpopaque and noninteractive1.
15011
15012         * alloc.c (dumpopaque): Added.
15013         (pdump_dump_opaquevec): Added.
15014         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15015         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15016         noninteractive.
15017
15018 2000-02-10  Andy Piper  <andy@xemacs.org>
15019
15020         * glyphs.c (image_instance_layout): if the size changes, mark it
15021         as such.
15022
15023         * redisplay-output.c (redisplay_output_layout): Update the
15024         subwindow here.
15025         (redisplay_output_subwindow): ditto.
15026
15027         * glyphs.c (update_subwindow): make sure we reset flags for
15028         layouts as well as everything else.
15029
15030         * glyphs-widget.c (layout_layout): don't need to set the instances
15031         dimensions here.
15032
15033 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15034
15035         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15036         not HAVE_DLOPEN, which is a lower-level thing.
15037
15038         * .cvsignore: Ignore gmon.out
15039
15040 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15041
15042         * .cvsignore: Ignore portable dumper xemacs.dmp file
15043
15044 2000-02-09  Andy Piper  <andy@xemacs.org>
15045
15046         * redisplay-output.c (redisplay_output_layout): be more clever
15047         about when we output based on the changed flags.
15048
15049         * glyphs.h (struct image_instantiator_methods): add update_method.
15050         (struct Lisp_Image_Instance): add changed flags. Declare new
15051         macros for manipulating them.
15052
15053         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15054         (image_instance_parent_glyph): find an image_instance's parent
15055         glyph or image_instance.
15056         (image_instance_layout): mark the size as changed.
15057         (set_image_instance_dirty_p): new function. mark an image
15058         instance, plus all of its parents, as dirty.
15059         (Fset_image_instance_property): use it.
15060         (Fglyph_animated_timeout_handler): use it.
15061         (update_subwindow): call update_widget and device methods for
15062         update_subwindow. Mark all changed flags as clean.
15063         (Fresize_subwindow): mark size as changed.
15064
15065         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15066         failures.
15067         (x_update_subwindow): only resize subwindows here.
15068         (x_update_widget): new function. Update all changed properties of
15069         a widget.
15070         (x_resize_subwindow): deleted.
15071         (x_widget_set_property): deleted.
15072         (x_progress_gauge_set_property): deleted.
15073         (x_progress_gauge_update): new function. Implement recorded
15074         changes.
15075         (x_tab_control_update): ditto.
15076         (x_tab_control_set_property): deleted.
15077         (console_type_create_glyphs_x): declare new functions.
15078         (image_instantiator_format_create_glyphs_x): ditto.
15079
15080         * glyphs-widget.c (widget_set_property): mark text changed.
15081         (update_widget): new function. Update properties of a widget.
15082         (widget_instantiate): for layouts make sure we set their
15083         children's parent correctly.
15084         (tab_control_set_property): new function. Record changes that will
15085         take place under redisplay's control.
15086         (progress_gauge_set_property): ditto.
15087         (image_instantiator_progress_guage): declare new functions.
15088         (image_instantiator_tab_control): ditto.
15089
15090         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15091         now.
15092         (mswindows_update_widget): new function. Update all properties on
15093         a widget that have changed.
15094         (mswindows_button_update): new function. Update a button's set
15095         state.
15096         (mswindows_tab_control_update): new function. Update the items in
15097         a tab.
15098         (mswindows_tab_control_set_property): deleted.
15099         (mswindows_progress_gauge_update): new function. Update the
15100         progress gauge's progress.
15101         (mswindows_widget_set_property): deleted. This is all done
15102         asynchronously now.
15103         (mswindows_progress_gauge_set_property): ditto.
15104         (console_type_create_glyphs_mswindows): declare new methods.
15105         (image_instantiator_format_create_glyphs_mswindows): ditto.
15106
15107         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15108         (msprinter_set_frame_properties): ditto.
15109
15110         * console.h (struct console_methods): Add update_widget_method.
15111
15112 2000-02-09  Andy Piper  <andy@xemacs.org>
15113
15114         * gui-msw.c (Fmswindows_shell_execute): Make
15115         mswindows-shell-execute industrial strength.
15116
15117 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15118
15119         * lrecord.h: Make macro argument `props' match member function `plist'.
15120         * fns.c (Fget):
15121         * fns.c (Fput):
15122         * fns.c (Fremprop):
15123         * fns.c (Fobject_plist):
15124         * alloc.c:
15125         * symbols.c:
15126         Object property list frobbing cleanup.
15127         - Allow any lisp object (compared with `eq'), not just symbols, as
15128           keys in object plists.
15129         - Move symbol plist frobbing into symbols.c, where it belongs.
15130         - Move string plist frobbing into alloc.c, where it belongs.
15131         - Everything's an lrecord now, so no need to test for symbolp, etc.
15132         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15133
15134         * extents.c: Reorder code to remove declarations.
15135
15136         * frame.h (store_in_alist): Remove useless declaration.
15137
15138 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15139
15140         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15141         * config.h.in: Add HAVE_XCONVERTCASE.
15142
15143 2000-02-07  Andy Piper  <andy@xemacs.org>
15144
15145         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15146         it breaks many things.
15147
15148 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15149
15150         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15151         actually can start a common comment type.
15152         * src/syntax.h (SYNTAX_END_P): ditto for end.
15153
15154 2000-02-07  Martin Buchholz <martin@xemacs.org>
15155
15156         * XEmacs 21.2.28 is released.
15157
15158 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15159
15160         * event-Xt.c (x_keysym_to_character): New.
15161         (maybe_define_x_key_as_self_inserting_character): New.
15162         (x_has_keysym): New.
15163         Auto-define all keys on the keyboard as self-insert-key.
15164
15165 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15166
15167         * menubar.c (vars_of_menubar): A small code simplification.
15168
15169         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15170
15171         * ExternalShell.c:
15172         * ExternalClient.c:
15173         * EmacsShell-sub.c:
15174         * EmacsManager.c:
15175         * EmacsFrame.c:
15176         Use consistent style for specifying X resources.
15177
15178         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15179         This makes (dontusethis-set-symbol-value-handler) actually usable.
15180
15181         * lrecord.h (lrecord_decription_type):
15182         * alloc.c (pdump_register_sub):
15183         (pdump_dump_data):
15184         (pdump_reloc_one):
15185         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15186         Comply with XEmacs coding style.
15187         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15188         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15189
15190         * keymap.c (Faccessible_keymaps):
15191         Make (accessible-keymaps map "\C-h") do the Right Thing.
15192         Make (accessible-keymaps map []) do the Right Thing.
15193         Make (accessible-keymaps map "") do the Right Thing.
15194         (check_keymap_definition_loop): New function.
15195         (keymap_store_internal): Keep luser from shooting self in foot,
15196           via (define-key ctl-x-4-map "p" global-map).
15197         Remove fullness slot from struct Lisp_Keymap, since hash tables
15198         are now reliable.
15199         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15200
15201 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15202
15203         * redisplay.c (init_redisplay): Fix small memory leak.
15204         * elhash.h:
15205         * elhash.c (pdump_reorganize_hash_table):
15206         Rename from reorganize_hash_table. Change prototype.
15207         Reuse the original memory for hentries.  Save 100k.
15208         * alloc.c (PDUMP_READ): new macro.
15209         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15210         * alloc.c: No need to #ifndef before #undef.
15211
15212         * print.c: Allow debug_print() to print readably by modifying
15213         debug_print_readably.  Use consistent variable names.
15214
15215         * .dbxrc: Try to get things to work even if stopped in a function
15216         without source available by explicitly specifying source files.
15217 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15218
15219         * unexnt.c (_start): Removed bogus code which caused loading heap
15220         from differrent executable file.
15221         Removed bogus assignment to _fmode, which caused inconsistencies.
15222
15223 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15224
15225         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15226         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15227         Do not preliminary `#define signal sigset'.
15228
15229         * systime.h: Do not prototype environ on windows nt and cygwin,
15230         this conflicts with system header.
15231
15232         * syssignal.h: Use correct define for WINDOWSNT
15233
15234         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15235         with system header.
15236
15237         * sysdep.c (near start of file): Fixed commentary and rearranged
15238         ifdefs in readable order.
15239         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15240         (start_of_text):
15241         (end_of_text):
15242         (end_of_data): Do not compile in if using PDUMP.
15243
15244         * symsinit.h: Prototyped vars_of_nt().
15245
15246         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15247         (find_child_console): Use it.
15248         (sys_kill): Use it.
15249
15250         * ntheap.h: Do not extern os_subtype.
15251
15252         * ntheap.c (cache_system_info): Do not cache unneeded:
15253         nt_major_version, nt_minor_version and os_subtype.
15254         (recreate_heap): Do not compile in when PDUMPing.
15255
15256         * nt.c (geteuid and friends): Use the new varibale
15257         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15258         (init_user_info): Removed the above mentioned hackery.
15259         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15260         stat has been fixed in the C runtime.
15261         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15262
15263         * file-coding.c (struct file_coding_dump): Do not define
15264         ucs_to_mule_table in the struct if not MULE.
15265         (struct struct lrecord_description fcd_description_1): Do not dump
15266         the above.
15267
15268         * emacs.c (main_1): Call vars_of_nt().
15269         (right before Fdump_emacs_data): Don't need lastfile if using both
15270         portabe dumper and system malloc.
15271
15272         * alloc.c (Fmemory_limit): Conditionalized out.
15273         (pdump): Use OPEN_BINARY for the portable dump file.
15274         (pdump_load): Ditto.
15275
15276 2000-02-02  Mike Alexander  <mta@arbortext.com>
15277
15278         * nt.c (convert_time): Set tm_isdst before calling mktime and
15279         avoid calling it at all if the compiler supports 64 bit integers.
15280         Also initialize utc_base_ft before using it.
15281
15282 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15283
15284         * frame.c (change_frame_size_1): Take f->internal_border_width
15285         into consideration when calculating the width of the frame.
15286
15287 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15288
15289         * window.c (frame_min_height):
15290         (frame_size_valid_p):
15291         (frame_pixsize_valid_p): Added.
15292         (check_frame_size): Generalized.
15293
15294         * window.h: Prototyped the above.
15295
15296         * lisp.h:
15297         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15298         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15299         Deleted Vwin32_* and Vbinary_process_* unused variables.
15300
15301         * device-msw.c (msprinter_init_device): Do not get printer font
15302         list; Added DEVMODE functions.
15303
15304         * frame-msw.c: Added lots of printer code.
15305
15306         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15307         general.c.
15308
15309         * console-msw.h: Added more msprinter device private slots.
15310
15311 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15312
15313         * event-msw.c (key_needs_default_processing_p): Added.
15314         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15315
15316 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15317
15318         * glyphs.c (image_instance_layout): Mark image instance as clean
15319         after layout.
15320         (glyph_dirty_p): Removed redundant function.
15321         (invalidate_glyph_geometry_maybe): Added.
15322         (update_glyph_cachel_data): Call it.
15323
15324         * glyphs.h: Prototyped it.
15325
15326         * redisplay.c (add_glyph_rune): Call it.
15327         (redisplay_window): Reset glyphs cachels when frame faces have
15328         changed, thus forcing recomputation of built-in border glyphs.
15329
15330 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15331
15332         * Makefile.in.in: Make portable dumper and purify play well together.
15333         Add imperfect, but better than nothing, support for pdump.
15334         Remove xemacs.dmp when temacs is re-generated.
15335         Don't ignore errors when dumping xemacs.
15336
15337         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15338
15339 2000-01-28  Andy Piper  <andy@xemacs.org>
15340
15341         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15342         (setup_normal_frame): ditto.
15343         (setup_frame_without_minibuffer): ditto.
15344         (setup_minibuffer_frame): ditto.
15345         (delete_frame_internal): ditto.
15346         (Fmake_frame_invisible): ditto.
15347         (Ficonify_frame): ditto.
15348
15349         * window.h: change Fset_window_buffer signature.
15350
15351         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15352         (Fset_window_buffer): allow recording of buffer if the window is
15353         the selected window.
15354         (window_loop): Use new Fset_window signature.
15355
15356 2000-01-23  Daniel Pittman  <daniel@danann.net>
15357
15358         * config.h.in: Added template for `HAVE_ATHENA_3D'
15359
15360 2000-01-29  Andy Piper  <andy@xemacs.org>
15361
15362         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15363
15364         * gutter.c (output_gutter): Don't output if the window isn't live.
15365
15366 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15367
15368         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15369         of 01/12/00: Moved SetFocus back here where it belongs.
15370
15371 2000-01-23  Andy Piper  <andy@xemacs.org>
15372
15373         * s/cygwin32.h: declare printer things.
15374
15375 2000-01-26  Andy Piper  <andy@xemacs.org>
15376
15377         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15378         Alexander.
15379
15380 2000-01-24  Andy Piper  <andy@xemacs.org>
15381
15382         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15383         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15384
15385         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15386
15387         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15388
15389         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15390
15391         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15392         (mswindows_output_display_block): Avoid local shadows.
15393
15394         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15395         (mswindows_enqueue_mouse_button_event): ditto.
15396         (mswindows_handle_gui_wm_command): remove declaration.
15397
15398         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15399         warnings.
15400
15401         * console-msw.h: Avoid shadows.
15402         (mswindows_get_toolbar_button_text):
15403         (emacs_mswindows_create_stream_pair):
15404         (emacs_mswindows_delete_stream_pair):
15405         (mswindows_handle_toolbar_wm_command): declare.
15406
15407         * device-msw.c (build_syscolor_string): Avoid shadows.
15408
15409 2000-01-23  Andy Piper  <andy@xemacs.org>
15410
15411         * glyphs-widget.c (widget_instantiate): reverse the items for
15412         layouts so that children are in the expected order.
15413
15414 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15415
15416         * ralloc.c: safe_bcopy ==> memmove
15417         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15418         * s/msdos.h: Remove BCOPY macros.
15419         * insdel.c (gap_right): Remove BCOPY conditional code.
15420         * insdel.c (gap_left): Remove BCOPY conditional code.
15421         XEmacs demands a working ANSI C compiler - hence memmove.
15422
15423         * regex.c (regex_compile): Remove accidental use of trigraphs.
15424
15425 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15426
15427         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15428         event timestamp.
15429
15430 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15431
15432         * event-msw.c (mswindows_drain_windows_queue): Added the
15433         parameter.
15434         (mswindows_need_event): Commented the call to
15435         mswindows_drain_windows_queue().
15436         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15437         only.
15438
15439         * console-msw.h: Moved a few function prototypes here from
15440         event-msw.c.
15441
15442         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15443         parameter from unsigned short to unsigned long.
15444         (Fmswindows_shell_execute): Added return value.
15445
15446 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15447
15448         * sysdep.c (init_system_name):
15449           process-unix.c (unix_canonicalized_host_name):
15450         Don't call freeaddrinfo() if getaddrinfo() fails.
15451
15452         * process-unix.c (unix_open_unix_network_stream):
15453         Moved the code to get a port # into address loop.
15454
15455 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15456
15457         * buffer.c (reinit_vars_of_buffer):
15458         The right place to initialize conversion_in_dynarr and
15459         conversion_out_dynarr.
15460
15461         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15462
15463         * process-unix.c (unix_canonicalize_host_name): Muleize.
15464         (unix_open_network_stream): Muleize.
15465
15466         * buffer.h: Fix up prototypes for ralloc.c functions.
15467
15468 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15469         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15470         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15471                 instead of gethostbyname()
15472         * process-unix.c: In unix_canonicalize_host_name() and
15473                 unix_open_network_stream(), add code to use getaddrinfo()
15474                 instead of gethostbyname().
15475
15476 2000-01-27  Daniel Pittman <daniel@danann.net>
15477
15478         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15479         libs when built with flat Athena.
15480
15481 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15482
15483         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15484         Use coding standards for function prototypes.
15485
15486 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15487
15488         * dialog-msw.c (push_lisp_string_as_unicode):
15489         * doc.c (unparesseuxify_doc_string):
15490         * dired.c (Fuser_name_completion_1):
15491         * dired.c (Fuser_name_all_completions):
15492         * dired.c (free_user_cache):
15493         * dired.c (user_name_completion):
15494         * console-x.c (get_display_arg_connection):
15495         * minibuf.c (clear_echo_area_internal):
15496         * minibuf.c (echo_area_append):
15497         * eldap.c (Fldap_open):
15498         * eldap.c (Fldap_search_internal):
15499         * frame-x.c (x_set_frame_text_value):
15500         * frame-x.c (x_set_frame_properties):
15501         * frame-x.c (x_create_widgets):
15502         * redisplay-tty.c (term_get_fkeys_1):
15503         * objects-x.c (x_parse_nearest_color):
15504         * objects-x.c (x_valid_color_name_p):
15505         * objects-x.c (x_initialize_font_instance):
15506         * objects-x.c (x_list_fonts):
15507         * objects-x.c (x_find_charset_font):
15508         * tooltalk.c (Fadd_tooltalk_message_arg):
15509         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15510         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15511         * process-unix.c (unix_create_process):
15512         * ntproc.c (sys_spawnve):
15513         * sound.c (Fplay_sound_file):
15514         * sound.c (Fplay_sound):
15515         * buffer.c (init_initial_directory):
15516         * buffer.c (init_buffer):
15517         * editfns.c (init_editfns):
15518         * editfns.c (Ftemp_directory):
15519         * editfns.c (Fuser_full_name):
15520         * editfns.c (uncache_home_directory):
15521         * editfns.c (get_home_directory):
15522         * editfns.c (Fuser_home_directory):
15523         * editfns.c (Fformat_time_string):
15524         * editfns.c (Fcurrent_time_string):
15525         * gui-x.c (button_item_to_widget_value):
15526         * database.c (Fopen_database):
15527         * event-Xt.c (x_to_emacs_keysym):
15528         * event-Xt.c (x_event_to_emacs_event):
15529         * event-Xt.c (describe_event_window):
15530         * event-msw.c (mswindows_wnd_proc):
15531         * glyphs-eimage.c (jpeg_instantiate):
15532         * glyphs-eimage.c (gif_instantiate):
15533         * glyphs-eimage.c (png_instantiate):
15534         * glyphs-eimage.c (tiff_instantiate):
15535         * glyphs-x.c (xbm_instantiate_1):
15536         * glyphs-x.c (x_xbm_instantiate):
15537         * glyphs-x.c (x_xface_instantiate):
15538         * glyphs-x.c (autodetect_instantiate):
15539         * glyphs-x.c (cursor_font_instantiate):
15540         * glyphs-x.c (x_widget_instantiate):
15541         * glyphs-x.c (x_widget_set_property):
15542         * glyphs-x.c (x_widget_property):
15543         * glyphs-x.c (BUILD_GLYPH_INST):
15544         * print.c (write_string_to_stdio_stream):
15545         * print.c (output_string):
15546         * print.c (Falternate_debugging_output):
15547         * print.c (Fexternal_debugging_output):
15548         * glyphs-msw.c (extract_xpm_color_names):
15549         * glyphs-msw.c (mswindows_xpm_instantiate):
15550         * glyphs-msw.c (bmp_instantiate):
15551         * glyphs-msw.c (resource_name_to_resource):
15552         * glyphs-msw.c (mswindows_resource_instantiate):
15553         * glyphs-msw.c (xbm_instantiate_1):
15554         * glyphs-msw.c (mswindows_xbm_instantiate):
15555         * glyphs-msw.c (mswindows_xface_instantiate):
15556         * glyphs-msw.c (mswindows_widget_instantiate):
15557         * glyphs-msw.c (add_tree_item):
15558         * glyphs-msw.c (add_tab_item):
15559         * glyphs-msw.c (mswindows_combo_box_instantiate):
15560         * glyphs-msw.c (mswindows_widget_property):
15561         * glyphs-msw.c (mswindows_combo_box_property):
15562         * glyphs-msw.c (mswindows_widget_set_property):
15563         * console.c (stuff_buffered_input):
15564         * objects-msw.c (mswindows_initialize_color_instance):
15565         * objects-msw.c (mswindows_valid_color_name_p):
15566         * objects-msw.c (mswindows_list_fonts):
15567         * objects-msw.c (mswindows_font_instance_truename):
15568         * bytecode.c (optimize_compiled_function):
15569         * select-x.c (symbol_to_x_atom):
15570         * select-x.c (x_atom_to_symbol):
15571         * select-x.c (hack_motif_clipboard_selection):
15572         * select-x.c (selection_data_to_lisp_data):
15573         * select-x.c (lisp_data_to_selection_data):
15574         * select-x.c (Fx_get_cutbuffer_internal):
15575         * select-x.c (Fx_store_cutbuffer_internal):
15576         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15577         * buffer.h (TO_INTERNAL_FORMAT): New function.
15578         * emacs.c (make_arg_list_1):
15579         * emacs.c (make_argc_argv):
15580         * emacs.c (main_1):
15581         * emacs.c (Fdump_emacs):
15582         * emacs.c (split_string_by_emchar_1):
15583         * file-coding.h:
15584         * lisp.h:
15585         * lstream.h:
15586         * symsinit.h:
15587         * device-x.c (x_init_device):
15588         * device-x.c (Fx_valid_keysym_name_p):
15589         * device-x.c (Fx_get_font_path):
15590         * device-x.c (Fx_set_font_path):
15591         * glyphs.c (bitmap_to_lisp_data):
15592         * glyphs.c (pixmap_to_lisp_data):
15593         * alloc.c (make_ext_string): Use coding system arguments.  Update
15594         all callers.
15595         * alloc.c (build_string):
15596         * callproc.c (child_setup):
15597         * callproc.c (init_callproc):
15598         * fileio.c (lisp_strerror):
15599         * fileio.c (directory_file_name):
15600         * fileio.c (Fexpand_file_name):
15601         * fileio.c (Ffile_truename):
15602         * fileio.c (Fsysnetunam):
15603         * fileio.c (Fdo_auto_save):
15604         * sysdep.c (sys_readdir):
15605         * tests.c: New file.  Allow adding C tests.
15606         Replace GET_* macros with a more comprehensible and flexible
15607         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15608         Modify all calls.
15609         Any coding system can be used to do format conversion.
15610         Eliminate enum external_data_format.
15611         Eliminate convert_to_external_format.
15612         Eliminate convert_to_internal_format.
15613         Make sure file-name, keyboard, terminal, and ctext are always
15614         defined as coding systems or aliases.  Make
15615         file-name-coding-system, terminal-coding-system, and
15616         keyboard-coding-system magical variables that are equivalent to
15617         defining the corresponding coding system aliases.
15618
15619         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15620         * file-coding.c (Fcoding_system_alias_p): New function.
15621         * file-coding.c (Fcoding_system_aliasee): New function.
15622         * file-coding.c (append_suffix_to_symbol): New function.
15623         * file-coding.c (dangling_coding_system_alias_p): New function.
15624         * file-coding.c (Ffind_coding_system):
15625         * file-coding.c (Fcopy_coding_system):
15626         * file-coding.c (encode_coding_no_conversion):
15627         * file-coding.c (syms_of_file_coding):
15628         * file-coding.c (vars_of_file_coding):
15629         Rewrite coding system alias code.
15630         Allow nested aliases, like symbolic links.
15631         Allow redefinition of coding system aliases.
15632         Prevent existence of dangling coding system aliases.
15633
15634         * dired.c (Fuser_name_completion_1):
15635         * dired.c (Fuser_name_all_completions):
15636         A crash would happen if user did QUIT in the middle of building
15637         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15638
15639         * lisp.h:
15640         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15641
15642         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15643         an unsigned char *.  Update all callers.
15644
15645 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15646
15647         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15648
15649 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15650
15651         * elhash.c (hentry_description): Use more portable definition.
15652         (resize_hash_table): Initialize new hentries using
15653         xnew_array_and_zero, thereby simplifying the code.
15654
15655         * mule-charset.c (make_charset): Make sure entire object is
15656         initialized, to avoid Purify warnings.
15657
15658         * alloc.c (resize_string): Fix unlikely crash with big strings.
15659
15660 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15661
15662         * realpath.c (xrealpath):
15663         Don't call getwd().
15664
15665 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15666
15667         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15668
15669 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15670
15671         * unexelfsgi.c (unexec): Change the way we decide which segment
15672         should be extended.
15673
15674         Assumption that .bss section should be outside the PT_LOADable
15675         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15676         it's present) is inside the 'data' segment. This would fail the
15677         test which was used to find a segment to grow and cover new
15678         heap. Instead of this assumption, I created another one - on IRIX
15679         the segment to grow should start below .bss and it's address
15680         should extent above the end of .bss. Once this segment is
15681         identified, it's grown to accommodate the new heap and new
15682         zero-length .bss section is added at the end of .data2.
15683
15684 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15685
15686         * eval.c (Feval): Wrong number of arguments should use original
15687         function, not the indirect_function version of it.
15688
15689 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15690
15691         * glyphs-x.c (x_button_instantiate): Don't add image if
15692         it is not a pixmap.
15693         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15694         is relative.
15695
15696 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15697
15698         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15699         declaration.
15700         (DEFVAR_INT_MAGIC): Ditto.
15701         (DEFVAR_BOOL_MAGIC): Ditto.
15702         * glyphs.h: Reindent backslash.
15703
15704 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15705
15706         * glyphs-widget.c (layout_query_geometry):
15707         (layout_layout): Use correct types for gheight, gwidth.
15708
15709 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15710
15711         * EmacsManager.c (QueryGeometry): Purified.
15712
15713 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15714
15715         * alloc.c (make_float): Make sure entire object is initialized, to
15716         avoid Purify warnings.
15717         (pdump_register_sub): Remove useless assignment.
15718         (pdump): Use xmalloc, not malloc.
15719         (pdump_load): Use xmalloc, not malloc.
15720
15721 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15722
15723         * callproc.c:
15724         * dired-msw.c:
15725         * fileio.c:
15726         * process-nt.c:
15727         * redisplay-msw.c:
15728         * sysdep.c: Removed redundant #include <windows.h>
15729
15730 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15731
15732         * frame.c (delete_frame_internal): Do not delete device when its
15733         implementation so declares.
15734         (delete_frame_internal): Set device selected frame to nil when
15735         last frame goes away.
15736
15737         * device-msw.c (msprinter_device_system_metrics): Implemented.
15738         (mswindows_device_system_metrics): Added 'device-dpi property.
15739
15740         * device.c: (Fdevice_printer_p): Added.
15741         Added 'offset-workspace device metric.
15742
15743         * console.h (device_metrics): Declared DM_offset_workspace.
15744
15745 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15746
15747         * fileio.c (Ffile_truename): Remove pointless and confusing
15748         initialization of elen.
15749
15750         * glyphs-widget.c: Compiler warning fixes.
15751
15752 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15753
15754         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15755         instead of a Lisp_Object as argument to make it consistent with
15756         the other LIVE_P macros.
15757         (CHECK_LIVE_PROCESS): New macro.
15758
15759         * process.c: Declare Qprocess_live_p.
15760         (Fprocess_live_p): New function.
15761         (create_process): Use PROCESS_LIVE_P.
15762         (read_process_output): Ditto.
15763         (set_process_filter): Ditto.
15764         (Fdelete_process): Ditto.
15765         (kill_buffer_processes): Ditto
15766         (process_send_signal): Use CHECK_LIVE_PROCESS.
15767         (Fprocess_input_coding_system): Check whether process is still
15768         alive (fix PR#1061).
15769         (Fprocess_output_coding_system): Ditto.
15770         (Fprocess_coding_system): Ditto.
15771         (Fset_process_input_coding_system): Ditto.
15772         (Fset_process_output_coding_system): Ditto.
15773
15774 2000-01-23  Andy Piper  <andy@xemacs.org>
15775
15776         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15777         layout and widget.
15778
15779         * glyphs.c (mark_image_instance): take into account changed
15780         image_instance format.
15781         (image_instance_equal): ditto.
15782         (image_instance_hash): ditto.
15783
15784         * glyphs-widget.c (widget_instantiate): Incorporate layout
15785         instantiation here. Delay layout of the layout until later.
15786         (layout_instantiate): deleted.
15787         (layout_query_geometry): new function. get the geometry of a
15788         layout.
15789         (layout_layout): layout a layout dynamically.
15790         (image_instantiator_widget): New function - splitting up
15791         image_instantiator_format_create_glyphs_widget for netwinder
15792         compilation.
15793         (image_instantiator_buttons):
15794         (image_instantiator_edit_fields):
15795         (image_instantiator_combo_box):
15796         (image_instantiator_scrollbar):
15797         (image_instantiator_progress_guage):
15798         (image_instantiator_tree_view):
15799         (image_instantiator_tab_control):
15800         (image_instantiator_labels):
15801         (image_instantiator_layout): ditto.
15802         (image_instantiator_format_create_glyphs_widget): Call preceding
15803         functions.
15804
15805 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15806
15807         * process.c (Fset_process_coding_system):
15808         * device-x.c (Fx_keysym_hash_table):
15809         Docstring fixes.
15810
15811         * lstream.c (Lstream_write): Return documented value, not 0.
15812
15813         * fileio.c (directory_file_name):
15814         (Fsubstitute_in_file_name):
15815         (Fsubstitute_insert_file_contents_internal):
15816         (Fwrite_region_internal):
15817         * emacs.c:
15818         * sysdep.c:
15819         * getloadavg.c:
15820         * systty.h:
15821         Remove vestigial APOLLO-conditional code.
15822
15823 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15824
15825         * getpagesize.h: Add guard macros.
15826         * libsst.h: Add guard macros.
15827         * libst.h: Add guard macros.
15828         * line-number.h: Add guard macros.
15829         * ndir.h: Add guard macros.
15830         * sysfloat.h: Add guard macros.
15831         * sysfile.h: Add guard macros.
15832         * sysproc.h: Add guard macros.
15833         * syswait.h: Add guard macros.
15834         * xintrinsic.h: Add guard macros.
15835         * xintrinsicp.h: Add guard macros.
15836         * xmmanager.h: Add guard macros.
15837         * xmmanagerp.h: Add guard macros.
15838         * xmprimitive.h: Add guard macros.
15839         * xmu.h: Add guard macros.
15840         * gpmevent.h: Add copyright statement. Add guard macros.
15841         * miscplay.h: Add guard macros.
15842         * *.h: Use consistent C-standards-approved guard macro names.
15843
15844         * opaque.c (make_opaque): Switch parameter order.
15845         * opaque.h (make_opaque): Switch parameter order.
15846         Update all callers.
15847         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15848
15849         * config.h.in (type_checking_assert): Added.
15850         (bufpos_checking_assert): Added.
15851
15852 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15853
15854         * alloc.c: Harmless pdump changes.
15855         - Use countof().
15856         - spell alignment correctly.
15857         * sysdep.c: Use countof()
15858
15859 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15860
15861         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15862         initially_selected_for_input() console method, default to 0.
15863         (semi_canonicalize_console_connection): Try to delegate to
15864         canonicalize_console_connection if no such console method.
15865         (canonicalize_console_connection): Vice versa.
15866         (print_console): Do not print nil connection.
15867
15868         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15869         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15870         (XDEVIMPF_FRAMELESS_OK): Added.
15871         (CONSOLE_INHERITS_METHOD): Added.
15872
15873         * console-msw.c (mswindows_canonicalize_console_connection):
15874         Added.
15875         (mswindows_canonicalize_device_connection): Added.
15876
15877         * console-msw.h (struct msprinter_device): Added this struct and
15878         accessor macros.
15879         (mswindows_device): Made fontlist a lisp object.
15880
15881         * device.c (semi_canonicalize_device_connection):  Try to delegate
15882         to canonicalize_device_connection if no such console method.
15883         (canonicalize_device_connection): Vice versa.
15884         (print_device): Do not print nil connection.
15885
15886         * device-msw.c (mswindows_init_device): Call InitCommonControls
15887         when have widgets.
15888         (mswindows_delete_device): Removed fontlist deallocation.
15889         (mswindows_mark_device): Added.
15890
15891         * events.c (event_equal): Added abort() at unreached code.
15892         (event_hash): Ditto.
15893
15894         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15895         fallback tags of Windows devices.
15896
15897         * general.c (syms_of_general): Initialized Qmsprinter.
15898
15899         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15900         of fallback tags of Windows devices.
15901
15902         * lisp.h: Declared Qmsprinter.
15903
15904         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15905         of strings.
15906         (mswindows_list_fonts): Ditto.
15907         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15908         that it can be used by both mswindows and msprinter devices.
15909         (initialize_font_instance): Added.
15910         (mswindows_initialize_font_instance): Use it.
15911         (msprinter_initialize_font_instance): Added.
15912
15913         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15914         and implementation flags check.
15915         (redisplay_without_hooks): Changed the call to the above.
15916         (Fredraw_device): Ditto.
15917         (Fredisplay_device): Ditto.
15918
15919         * redisplay-msw.c (get_frame_dc): Implemented.
15920         (get_frame_compdc): Implemented.
15921         (many functions): Use the two functions above to get device
15922         contexts, ether for a window or a printer.
15923
15924 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15925
15926         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15927         initialization here.
15928         (init_symbols_once_early): Call it.
15929         * emacs.c (main_1): Call it.
15930         * symsinit.h: Declare it.
15931
15932 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15933
15934         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15935         Lisp_Object.
15936         (pdump_backtrace): Ditto.
15937         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15938         (pdump_get_entry): Abort if trying to register a null pointer.
15939         (pdump_dump_data): Cleanup types when relocating.
15940         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15941         (pdump_dump_rtables): Remove bad casts.
15942         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15943         Lisp_Object instead of a EMACS_INT for the hashtable
15944         reorganization.
15945
15946 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15947
15948         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15949
15950         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15951
15952         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15953
15954         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15955
15956 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15957
15958         * faces.h (FACE_STRIKETHRU_P): Added.
15959
15960         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15961         of font variants.
15962
15963         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15964         (mswindows_set_dc_font): New function, aware of font variants,
15965         separated from mswindows_update_dc.
15966
15967         * objects-msw.h (struct mswindows_font_instance_data): Added
15968         definition.
15969
15970         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15971         cached fonts and the data structure.
15972         (mswindows_initialize_font_instance): Added creation of font data
15973         structure.
15974         (mswindows_print_font_instance): Print at least something.
15975         (mswindows_create_font_variant): Implemented.
15976         (mswindows_get_hfont): Implemented.
15977
15978 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15979
15980         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15981         prototyping problem with msvc.
15982
15983         * emacs.c (main_1): added syms_of_gui_mswindows() call
15984
15985         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15986         syms_of_gui_mswindows() function
15987
15988         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15989
15990 2000-01-18  Martin Buchholz <martin@xemacs.org>
15991
15992         * XEmacs 21.2.27 is released.
15993
15994 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15995
15996         * glyphs-eimage.c (struct tiff_error_struct):
15997         (tiff_error_func):
15998         (tiff_warning_func):
15999         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16000
16001         * unexmips.c:
16002         * unexhp9k3.c:
16003         * unexfreebsd.c:
16004         * unexec.c: Remove vestigial Lucid C code.
16005         * unexalpha.c:
16006         * unexaix.c:
16007         * termcap.c:
16008         * libsst.c: Ansify.
16009         Remove declarations of errno and strerror().
16010
16011         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16012
16013         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16014
16015 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16016
16017         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16018         Optimize.
16019
16020 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16021
16022         * md5.c:
16023         * file-coding.c:
16024         * file-coding.h:
16025         Change enum eol_type to eol_type_t.
16026
16027 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16028
16029         * gui.c (get_gui_callback): Check cons before accessing car.
16030
16031 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16032
16033         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16034         (XSETSPECIFIER_TYPE): Ditto.
16035
16036 2000-01-17  Didier Verna  <didier@xemacs.org>
16037
16038         * redisplay.c (generate_fstring_runes): compute string size in
16039         characters, not bytes.
16040
16041 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16042
16043         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16044
16045 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16046
16047         * print.c (print_error_message): Call print_prepare().
16048
16049 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16050
16051         * .dbxrc: Renamed from dbxrc.
16052
16053         * events.c (event_to_character):
16054         Use `assert (foo)' instead of `if (!foo) abort()'
16055
16056         * .gdbinit (xtype): Add documentation.
16057         * .gdbinit (check-temacs): New function.
16058         * .gdbinit (check-xemacs): New function.
16059         * dbxrc (check-xemacs): New function.
16060         * dbxrc (check-xemacs): New function.
16061
16062 2000-01-14  Andy Piper  <andy@xemacs.org>
16063
16064         * glyphs-widget.c (widget_query_geometry): Make sure that we
16065         calculate default dimensions correctly.
16066
16067 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16068
16069         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16070
16071         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16072         pdump_wire'd variable.
16073
16074         * emacs.c: (main_1): Conditionalized calls to
16075         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16076
16077 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16078
16079         * window.c (Fset_window_configuration):
16080         * sysdep.c (_start):
16081         * input-method-motif.c (res):
16082         * event-Xt.c (Xt_process_to_emacs_event):
16083         Simple compiler warning fixes.
16084
16085         * bytecode.c (funcall_compiled_function): Use the original
16086         function symbol on the backtrace list in preference to the
16087         compiled_function object in error messages.
16088
16089 2000-01-13  Andy Piper  <andy@xemacs.org>
16090
16091         * glyphs-x.c (update_widget_face): Make sure we update the widget
16092         background as well as foreground.
16093
16094 2000-01-13  Andy Piper  <andy@xemacs.org>
16095
16096         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16097         fields to subwindow.
16098         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16099         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16100         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16101         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16102
16103         * glyphs-widget.c (check_valid_tab_orientation): new function.
16104         (initialize_widget_image_instance): zero orientation and
16105         justification.
16106         (widget_instantiate): pick up orientation.
16107         (tab_control_query_geometry): return appropriate values for
16108         vertical tabs.
16109
16110         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16111         appropriate creation flags for left, right and bottom tabs.
16112
16113         * s/cygwin32.h: add tab definitions.
16114
16115 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16116
16117         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16118         frame upon hiding a subwindow.
16119         (mswindows_button_instantiate): Changed the push button style to
16120         BS_PUSHBUTTON.
16121         (mswindows_button_instantiate): Removed button BS_NOTIFY
16122         style.
16123         (mswindows_button_instantiate): Removed redundant check for
16124         a disabled gui item.
16125         (mswindows_button_instantiate): Made use of WS_TABSTOP
16126         consistent: "operable" controls (edit, button, tree, scroll) have
16127         this style, "display-only" ones (static, progress gauge) do
16128         not. This style is currently ignored by XEmacs though. Also,
16129         removed the WS_EX_CONTROLPARENT style - it is not for children,
16130         it is for their parents!
16131         (mswindows_edit_field_instantiate): Ditto.
16132         (mswindows_progress_gauge_instantiate): Ditto.
16133         (mswindows_tree_view_instantiate): Ditto.
16134         (mswindows_tab_control_instantiate): Ditto.
16135         (mswindows_scrollbar_instantiate): Ditto.
16136         (mswindows_combo_box_instantiate): Ditto.
16137         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16138         style to the "clip" window.
16139         (mswindows_button_instantiate): Removed compilation warning by
16140         equally typing terms of the ?: operator.
16141
16142 2000-01-12  Didier Verna  <didier@xemacs.org>
16143
16144         * redisplay.c (generate_fstring_runes): new parameter holding the
16145         last modeline-format extent.
16146         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16147         extent, fill the glyph block with it.
16148         (generate_fstring_runes): handle these parameters.
16149         (generate_formatted_string_db): ditto.
16150
16151         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16152         glyphs'extents in the modeline.
16153
16154 1999-01-11  Mike Woolley  <mike@bulsara.com>
16155
16156         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16157         256Mb, as a workaround for the non-starting problem many people
16158         have experienced.
16159
16160 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16161
16162         * console-tty.c (Fset_console_tty_output_coding_system):
16163         Force redrawing tty frame.
16164
16165 2000-01-10  Didier Verna  <didier@xemacs.org>
16166
16167         * redisplay.c (generate_fstring_runes): fix size computation bug.
16168
16169 2000-01-09  William M. Perry <wmperry@aventail.com>
16170
16171         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16172
16173 2000-01-09  Andy Piper  <andy@xemacs.org>
16174
16175         * glyphs-msw.c: index -> i to avoid shadows.
16176         (xbm_create_bitmap_from_data): make static.
16177         (check_valid_string_or_int): deleted.
16178         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16179
16180         * glyphs-x.c (x_update_subwindow): remove unused args.
16181
16182         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16183         back pointer - this is done in allocate_image_instance.
16184         (query_string_font): return Qnil to make the compiler happy.
16185         (unmap_subwindow): set to ~0 to make the compiler happy.
16186         (glyph_query_geometry): comment out until used.
16187         (glyph_layout): ditto.
16188
16189 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16190
16191         * insdel.c (signal_after_change): Remove extraneous unbind_to().