Change some charset-ids of private coded-charsets.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
4         (char_encode_as_entity_reference): Likewise.
5         (decode_coding_big5): Modify for `decode_defined_char' and
6         `DECODE_CHAR'.
7         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
8         avoid compiler warning.
9         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
10
11         * mule-charset.c (decode_defined_char): Add new argument
12         `without_inheritance'.
13         (Fdecode_char): Add new optional argument `without_inheritance'.
14         (Fdecode_builtin_char): Modify for `Fdecode_char'.
15
16         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
17         (simplify_char_spec): Likewise.
18
19         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
20         setting.
21
22         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
23         (map_char_table): Likewise.
24         (Fdefine_char): Use `Fdecode_char' without inheritance.
25         (Ffind_char): Modify for `Fdecode_char'.
26
27         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
28
29         * char-ucs.h (decode_defined_char): Add new argument
30         `without_inheritance'.
31         (DECODE_CHAR): Likewise.
32         (MAKE_CHAR): Modify for `DECODE_CHAR'.
33
34 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
35
36         * chartab.c (Vchise_system_db_directory): New variable.
37         (vars_of_chartab): Add new variable `chise-system-db-directory'.
38
39 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
40
41         * chartab.c: EXFUN `Fmount_char_attribute_table'.
42         (print_chartab_range): Don't define when `UTF2000' is defined.
43         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
44         `CHISE_DS_open'.
45
46 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
47
48         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
49         and optional argument `rehash' is specified, call
50         `open_chise_data_source_maybe' before
51         `chise_ds_foreach_char_feature_name' is called.
52
53 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * chartab.c (char_attribute_list_reset_map_func): New function
56         when HAVE_LIBCHISE is defined.
57         (Fchar_attribute_list): Add new optional argument `rehash' when
58         HAVE_LIBCHISE is defined.
59         (open_chise_data_source_maybe): Use "chise-db" instead of
60         "char-db".
61         (char_attribute_system_db_file): Likewise.
62         (Fload_char_attribute_table): Use
63         `chise_feature_foreach_char_with_value' instead of
64         `chise_char_feature_value_iterate'.
65
66 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
67
68         * chartab.c (Vchise_db_directory): New variable.
69         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
70
71 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
74         instead of HAVE_CHISE to specify using with libchise.
75
76         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
77
78         * chartab.h: Don't use HAVE_CHISE_CLIENT.
79
80         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
81         defined or HAVE_LIBCHISE_LIBCHISE is defined.
82         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
83         is defined.
84         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
85         HAVE_CHISE to specify using with libchise.
86         (syms_of_chartab): Don't define symbol `system-char-id' when
87         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
88
89 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
90
91         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
92         specify CHISE DB support.
93         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
94         of `char_attribute_system_db_file' to check feature DB file.
95
96         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
97         HAVE_CHISE_CLIENT to specify CHISE DB support.
98
99         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
100         specify CHISE DB support.
101         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
102         not defined.
103         (Freset_char_attribute_table): Use `chise_feature_setup_db'
104         instead of `char_attribute_system_db_file' to check feature DB
105         file.
106
107 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
108
109         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
110         `HAVE_CHISE_CLIENT'.
111
112 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
113
114         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
115         (Fsave_charset_mapping_table): Don't use
116         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
117
118         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
119         (HAVE_LIBCHISE): New macro.
120
121         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
122
123         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
124         (Fsave_char_attribute_table): Don't use
125         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
126
127 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
128
129         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
130         defined.
131         (save_uint16_byte_table): Likewise.
132         (save_byte_table): Likewise.
133         (char_table_get_db): Use `chise_ds_load_char_feature_value'
134         instead of `chise_char_load_feature_value'.
135         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
136
137 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
138
139         * chartab.h (struct Lisp_Char_Table): Delete member
140         `feature_table' if CHISE is defined.
141
142         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
143         (Fcopy_char_table): Likewise.
144         (char_table_open_db_maybe): Likewise.
145         (char_table_close_db_maybe): Likewise.
146         (char_table_get_db): Likewise.
147         (Fmount_char_attribute_table): Likewise.
148         (Fload_char_attribute_table): Likewise.
149
150 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
151
152         * mule-charset.c (load_char_decoding_entry_maybe): Use
153         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
154         `chise_ccs_decode'.
155
156 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
157
158         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
159         instead of `chise_open_data_source'.
160         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
161         `chise_ds_close'.
162
163 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
164
165         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
166         instead of `chise_ds_open_feature_table'.
167         (char_table_close_db_maybe): Don't use `chise_ft_close'.
168
169 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
170
171         * mule-charset.c (Fsave_charset_mapping_table): Use
172         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
173         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
174         `chise_ccs_sync' instead of `chise_ccst_close'.
175         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
176
177         * chartab.c (open_chise_data_source_maybe): Modify for
178         `chise_open_data_source'.
179         (char_table_open_db_maybe): Modify for
180         `chise_ds_open_feature_table'.
181
182 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
183
184         * mule-charset.c (load_char_decoding_entry_maybe): Use
185         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
186         `chise_ccst_close'.
187
188 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
189
190         * mule-charset.c (Fsave_charset_mapping_table): Use
191         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
192         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
193         `chise_dt_put_char' and `chise_dt_close'.
194         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
195         `chise_ccs_decode' and `chise_ccst_close' instead of
196         `chise_ds_open_decoding_table', `chise_dt_get_char' and
197         `chise_dt_close'.
198
199         * chartab.c (char_table_get_db): Use
200         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
201         (load_char_attribute_table_map_func): Modify for
202         `chise_char_feature_value_iterate'.
203         (Fload_char_attribute_table): Use
204         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
205
206 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
207
208         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
209
210 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
211
212         * chartab.c (put_char_table): Modify for inherited coded-charsets
213         in XEmacs CHISE.
214
215 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
216
217         * chartab.c (Fput_char_table_map_function): Fixed.
218         (word_boundary_p): Don't check charset in XEmacs CHISE.
219
220 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
221
222         * mule-charset.c (Fsave_charset_mapping_table): Use
223         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
224         instead of `chise_open_decoding_table'; refer
225         `default_chise_data_source'; use `chise_dt_close' instead of
226         `chise_close_decoding_table'.
227         (load_char_decoding_entry_maybe): Likewise.
228
229         * chartab.c (default_chise_data_source): New variable when `CHISE'
230         is defined.
231         (Fcopy_char_table): `ct->ds' is deleted.
232         (open_chise_data_source_maybe): New function.
233         (Fclose_char_data_source): New function.
234         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
235         use `chise_ds_open_feature_table' instead of
236         `chise_open_feature_table'.
237         (char_table_close_db_maybe): Use `chise_ft_close' instead of
238         `chise_close_feature_table'; `cit->ds' is deleted.
239         (syms_of_chartab): Add new builtin function
240         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
241
242         * chartab.h (default_chise_data_source): New extern variable.
243         (open_chise_data_source_maybe): New prototype.
244         (struct Lisp_Char_Table): Delete `ds'.
245
246 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
247
248         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
249         `CHISE' is defined.
250
251 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
252
253         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
254         not defined; add code for non-libchise setting.
255         (char_table_close_db_maybe): Likewise.
256         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
257         defined.
258         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
259         even if `CHISE' is not defined.
260         (Freset_char_attribute_table): Likewise.
261         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
262         `char_table_close_db_maybe' even if `CHISE' is not defined; use
263         `char_table_get_db'.
264         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
265         `char_table_close_db_maybe' even if `CHISE' is not defined.
266
267 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
268
269         * chartab.c (char_table_open_db_maybe): New function.
270         (char_table_close_db_maybe): New function.
271         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
272         (Freset_char_attribute_table): Likewise.
273         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
274         `char_table_close_db_maybe'.
275         (Fload_char_attribute_table): Likewise.
276
277 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
278
279         * chartab.c: Don't include <chise.h> because it is included in
280         chartab.h.
281         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
282         defined.
283         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
284         `CHISE' is defined.
285         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
286         `CHISE' is defined.
287         (Fclose_char_attribute_table): Close `ct->feature_table' and
288         `ct->ds' when `CHISE' is defined.
289         (Freset_char_attribute_table): Likewise.
290         (load_char_attribute_maybe): Use `cit->ds' and
291         `cit->feature_table' when `CHISE' is defined.
292         (Fload_char_attribute_table): Likewise.
293
294         * chartab.h: Include <chise.h> when `CHISE' is defined.
295         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
296         when `CHISE' is defined.
297
298 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
299
300         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
301         is defined.
302         (char_table_description): Likewise.
303         (Fmake_char_table): Likewise.
304         (Fcopy_char_table): Likewise.
305         (Fmount_char_attribute_table): Likewise.
306         (Fclose_char_attribute_table): Likewise.
307         (Freset_char_attribute_table): Likewise.
308         (load_char_attribute_maybe): Likewise.
309         (Fload_char_attribute_table): Likewise.
310
311         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
312         defined.
313
314 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
315
316         * chartab.c (load_char_attribute_table_map_func): New function
317         when CHISE is defined.
318         (Qload_char_attribute_table_map_function): Don't define when CHISE
319         is defined.
320         (Fload_char_attribute_table_map_function): Likewise.
321         (Fload_char_attribute_table): Use libchise when `CHISE' is
322         defined.
323         (syms_of_chartab): Don't define
324         `load-char-attribute-table-map-function' when CHISE is defined.
325
326 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
327
328         * chartab.c: Include <chise.h> when `CHISE' is defined.
329         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
330
331 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
332
333         * mule-charset.c (charset_code_point): Fix problem when searching
334         in mother CCS fails with `defined_only' mode.
335
336 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
337
338         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
339         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
340         (put_char_composition): Likewise.
341         (Fput_char_attribute): Likewise.
342         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
343
344 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
345
346         * chartab.c (Q_ucs): Deleted.
347         (Fput_char_attribute): Don't refer `->ucs'.
348         (Fdefine_char): Likewise.
349         (Ffind_char): Likewise.
350         (syms_of_chartab): Delete `->ucs'.
351
352 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
353
354         * mule-charset.c (Qmap_cns11643_2): Renamed from
355         `Qchinese_cns11643_2'.
356         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
357         `chinese-cns11643-2'.
358         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
359         `=cns11643-2'.
360
361 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
362
363         * mule-charset.c (Qmap_cns11643_1): Renamed from
364         `Qchinese_cns11643_1'.
365         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
366         `chinese-cns11643-1'.
367         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
368         `=cns11643-1'.
369
370 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
371
372         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
373         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
374         `chinese-gb12345'.
375         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
376         `=gb12345'.
377
378 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
379
380         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
381         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
382         `chinese-gb2312'.
383         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
384         `=gb2312'.
385
386 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
387
388         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
389         (syms_of_mule_charset): Add new symbol `=big5' instead of
390         `chinese-big5'.
391         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
392
393 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
394
395         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
396         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
397         `korean-ksc5601'.
398         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
399         `=ks-x1001'.
400
401 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
402
403         * mule-charset.c (Qmap_jis_x0212): Renamed from
404         `Qjapanese_jisx0212'.
405         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
406         `japanese-jisx0212'.
407         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
408         `=jis-x0212'.
409
410 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
411
412         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
413         `Qjapanese_jisx0208'.
414         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
415         of `japanese-jisx0208'.
416         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
417         `=jis-x0208-1983'.
418
419 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
420
421         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
422         `Qjapanese_jisx0208_1978'.
423         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
424         of `japanese-jisx0208-1978'.
425         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
426         `=jis-x0208-1978'.
427
428 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
429
430         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
431         only for XEmacs CHISE.
432
433 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
434
435         * char-ucs.h: Compact non-ISO-IR charset-ids.
436         (LEADING_BYTE_UCS): Changed to -177.
437         (LEADING_BYTE_CONTROL_1): Changed to -77.
438         (LEADING_BYTE_UCS_BMP): Changed to -176.
439         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
440
441 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
442
443         * mule-charset.c (Qiso_ir): New variable.
444         (Fmake_charset): Recognise new property `iso-ir'.
445         (syms_of_mule_charset): Add new symbol `iso-ir'.
446
447 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
448
449         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
450         n to -n; charset-id of non ISO-IR sets are changed to positive
451         numbers.
452
453 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
454
455         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
456         for &MCS-XXXXXXXX; values.
457
458 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
459
460         * mule.c (Vxemacs_chise_version): Renamed from
461         `Vutf_2000_version'.
462         (vars_of_mule): Add new variable `xemacs-chise-version'; define
463         `utf-2000-version' as an alias for `xemacs-chise-version'.
464
465 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
466
467         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
468         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
469         defined.
470
471         * config.h.in (CHISE): New macro.
472
473 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
474
475         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
476         of `ucs'.
477         (Qmap_ucs): New variable.
478         (syms_of_mule_charset): Add new symbol `=ucs'.
479         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
480
481         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
482         (simplify_char_spec): Likewise.
483
484         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
485
486         * char-ucs.h (Qmap_ucs): New extern variable.
487
488 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
489
490         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
491         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
492         don't define it when UTF2000 is not defined.
493         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
494         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
495         when UTF2000 is not defined.
496         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
497         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
498
499 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
502
503         * mule-charset.c (Vcharset_ucs_gb): Deleted.
504         (Qucs_gb): Deleted.
505         (syms_of_mule_charset): Delete `ucs-gb'.
506         (complex_vars_of_mule_charset): Likewise.
507
508 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
509
510         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
511
512         * mule-charset.c (Vcharset_ucs_cns): Deleted.
513         (Qucs_cns): Deleted.
514         (syms_of_mule_charset): Delete `ucs-cns'.
515         (complex_vars_of_mule_charset): Likewise.
516
517 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
518
519         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
520
521         * mule-charset.c (Vcharset_ucs_jis): Deleted.
522         (Qucs_jis): Deleted.
523         (syms_of_mule_charset): Delete `ucs-jis'.
524         (complex_vars_of_mule_charset): Likewise.
525
526 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
527
528         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
529
530         * mule-charset.c (Vcharset_ucs_ks): Deleted.
531         (Qucs_ks): Deleted.
532         (syms_of_mule_charset): Delete `ucs-ks'.
533         (complex_vars_of_mule_charset): Likewise.
534
535 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
536
537         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
538         (Qideograph_daikanwa_2): Deleted.
539         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
540         (complex_vars_of_mule_charset): Likewise.
541
542         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
543         (LEADING_BYTE_DAIKANWA_1): Deleted.
544         (LEADING_BYTE_DAIKANWA_2): Deleted.
545         (MIN_CHAR_DAIKANWA): Deleted.
546         (MAX_CHAR_DAIKANWA): Deleted.
547
548 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
549
550         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
551         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
552         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
553
554         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
555         (Vcharset_ideograph_daikanwa): Deleted.
556         (Qideograph_hanziku_{1..12}): Deleted.
557         (Qideograph_daikanwa): Deleted.
558         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
559         Vcharset_ideograph_daikanwa.
560         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
561         `ideograph-hanziku-{1..12}'.
562         (complex_vars_of_mule_charset): Likewise.
563
564 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
565
566         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
567
568         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
569         (Qideograph_gt_pj_{1..11}): Deleted.
570         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
571         (complex_vars_of_mule_charset): Likewise.
572
573 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
574
575         * mule-charset.c (Vcharset_ucs_big5): Deleted.
576         (Vcharset_ideograph_gt): Deleted.
577         (Qucs_big5): Deleted.
578         (Qideograph_gt): Deleted.
579         (syms_of_mule_charset): Delete symbol `ucs-big5' and
580         `ideograph-gt'.
581         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
582         and `ideograph-gt'.
583
584         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
585         (LEADING_BYTE_GT): Deleted.
586         (MIN_CHAR_GT): Deleted.
587         (MAX_CHAR_GT): Deleted.
588
589 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
590
591         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
592
593 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
594
595         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
596         (save_uint16_byte_table): Likewise.
597         (save_byte_table): Likewise; convert values by it.
598         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
599         for `ideographic-structure'.
600         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
601         as the filter for `ideographic-structure'.
602
603 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
604
605         * chartab.c (put_char_composition): New function.
606         (Fput_char_attribute): Use `put_char_composition'; use
607         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
608
609         * fns.c (simplify_char_spec): New function.
610         (char_ref_simplify_spec): New function.
611         (Fchar_refs_simplify_char_specs): New function.
612         (syms_of_fns): Add new builtin function
613         `char-refs-simplify-char-specs'.
614
615 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
616
617         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
618         (Qideograph_cbeta): Deleted.
619         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
620         (complex_vars_of_mule_charset): Likewise.
621
622         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
623         (MIN_CHAR_CBETA): Comment out.
624         (MAX_CHAR_CBETA): Likewise.
625
626 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
627
628         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
629         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
630         CHISE client feature.
631
632 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
633
634         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
635
636 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
637
638         * mule-charset.c (charset_lookup_description_1): Use
639         `NUM_LEADING_BYTES' in UTF-2000.
640
641 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
642
643         * char-ucs.h (GC_CHARSETP): Deleted.
644
645 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
646
647         * char-ucs.h (MAX_CHAR_GT): Updated.
648
649 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
650
651         * text-coding.c: Sync with XEmacs 21.4.10.
652
653 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
654
655         * mule-charset.c (Vcharset_china3_jef): Deleted.
656         (Qchina3_jef): Deleted.
657         (syms_of_mule_charset): Don't define `china3-jef'.
658         (complex_vars_of_mule_charset): Likewise.
659
660         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
661         (MIN_CHAR_CHINA3_JEF): Comment out.
662         (MAX_CHAR_CHINA3_JEF): Comment out.
663
664 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * mule-charset.c (Vcharset_ucs_gb): New variable.
667         (Qucs_gb): New variable.
668         (syms_of_mule_charset): Add new symbol `ucs-gb'.
669         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
670
671         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
672
673 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
674
675         * mule-charset.c (charset_code_point): if a coded-charset has a
676         final-byte, don't inherit the builtin range of the mother CCS.
677
678 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
679
680         * mule-charset.c (charset_code_point): Fix problem about
681         inheritance.
682
683 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
684
685         * mule-charset.c (decode_builtin_char): Reorganized.
686
687 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
688
689         * text-coding.c (char_encode_as_entity_reference): Modify for
690         `charset_code_point'.
691         (char_encode_shift_jis): Likewise.
692         (char_encode_big5): Likewise.
693         (char_encode_utf8): Likewise.
694         (char_encode_iso2022): Likewise.
695
696         * mule-charset.c (charset_code_point): Add new argument
697         `defined_only'.
698         (Fencode_char): Add new optional argument `defined_only'.
699
700         * chartab.c (put_char_table): Modify for `charset_code_point'.
701
702         * char-ucs.h (charset_code_point): Add new argument
703         `defined_only'.
704         (encode_char_1): Modify for `charset_code_point'.
705
706 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
707
708         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
709         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
710
711 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
712
713         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
714         (Qjis_x0208): Likewise.
715         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
716         XCHARSET_FINAL(charset).
717         (charset_code_point): Modify condition for final-byte based
718         builtin-chars.
719         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
720         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
721         in UTF-2000; specify `=jis-x0208' as the mother of
722         `japanese-jisx0208-1978', `japanese-jisx0208' and
723         `japanese-jisx0208-1990' in UTF-2000.
724
725 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
726
727         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
728
729 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
730
731         * text-coding.c (decode_coding_utf16): Support UTF-16.
732         (char_encode_utf16): Fixed.
733
734 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * text-coding.c (Qutf16): New variable in MULE.
737         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
738         (Fcoding_system_type): Add `utf-16' in MULE.
739         (struct detection_state): Add a structure for utf16 in MULE.
740         (detect_coding_type): Setup st->utf16.mask in MULE.
741         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
742         MULE.
743         (reset_encoding_stream): Use `char_encode_utf16' and
744         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
745         (detect_coding_utf16): New function [incomplete].
746         (decode_coding_utf16): New function [support only UCS-2].
747         (char_encode_utf16): New function.
748         (char_finish_utf16): New function.
749         (syms_of_file_coding): Add new symbol `utf-16'; setup
750         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
751
752         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
753         UTF-2000.
754         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
755         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
756
757 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
758
759         * chartab.c (put_char_table): When a charset is specified as a
760         range in UTF-2000, don't support builtin characters.
761
762 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
763
764         * mule-charset.c (decode_defined_char): Don't refer external
765         database if Qunbound or Qnil are found.
766         (Fsave_charset_mapping_table): Don't define it if
767         HAVE_CHISE_CLIENT is not defined.
768         (Freset_charset_mapping_table): New function.
769         (load_char_decoding_entry_maybe): Store Qnil if a character is not
770         found in external database.
771         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
772         if HAVE_CHISE_CLIENT is not defined; add new builtin function
773         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
774
775 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
776
777         * text-coding.c (decode_coding_utf8): Check CCS is specified or
778         not.
779
780 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
781
782         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
783         Q_lowercase, Q_uppercase in UTF-2000.
784
785         * chartab.c (get_char_table): Add special code for the standard
786         case table to use character attribute `->downcase' and
787         `->uppercase' for case operations in UTF-2000.
788
789         * casetab.c (Qflippedcase): New variable in UTF-2000.
790         (Q_lowercase): Likewise.
791         (Q_uppercase): Likewise.
792         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
793         and `->uppercase' in UTF-2000.
794         (complex_vars_of_casetab): Assign attribute name `downcase' to
795         downcase and CANON table of Vstandard_case_table in UTF-2000;
796         assign attribute name `flippedcase' to upcase and EQV table of
797         Vstandard_case_table in UTF-2000.
798
799 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
800
801         * text-coding.c (decode_add_er_char): Support isolated-chars.
802         (char_encode_as_entity_reference): Likewise.
803
804 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
805
806         * emacs.c (Vutf_2000_lisp_directory): New variable.
807         (Vconfigure_utf_2000_lisp_directory): Likewise.
808         (complex_vars_of_emacs): Add new variable
809         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
810
811 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
812
813         * char-ucs.h (DECODE_CHAR): Delete special code for
814         `chinese-big5-1' and `chinese-big5-2'.
815
816         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
817         (Qbig5_2): Likewise.
818         (decode_defined_char): Support CONVERSION_BIG5_1 and
819         CONVERSION_BIG5_2.
820         (decode_builtin_char): Likewise.
821         (charset_code_point): Likewise.
822         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
823         'conversion in UTF-2000.
824         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
825         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
826         `chinese-big5-2' as children of `chinese-big5'.
827
828         * char-ucs.h (CONVERSION_BIG5_1): New macro.
829         (CONVERSION_BIG5_2): New macro.
830
831 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
832
833         * text-coding.c (char_encode_big5): Support entity-reference.
834
835 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
836
837         * text-coding.c (char_encode_as_entity_reference): New function.
838         (char_encode_utf8): Use `char_encode_as_entity_reference'.
839
840 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
841
842         * text-coding.c (decode_coding_big5): Support entity-reference
843         decoding feature.
844
845 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
846
847         * text-coding.c (allocate_coding_system): Initialize initial
848         charsets for CODESYS_UTF8.
849         (Fmake_coding_system): Accept charset-g0, charset-g1 and
850         charset-g2 for CODESYS_UTF8.
851         (decode_coding_utf8): Use charset-g0.
852         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
853         to force variants to map to UCS.
854
855 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
856
857         * text-coding.c (Qutf_8_mcs): New variable.
858         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
859         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
860         instead of `utf-8' in UTF-2000.
861
862 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
863
864         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
865         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
866         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
867         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
868         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
869         CONVERSION_96x96x96x96 are introduced.
870         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
871         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
872         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
873
874         * char-ucs.h (CONVERSION_94): New macro.
875         (CONVERSION_96): New macro.
876         (CONVERSION_94x94): New macro.
877         (CONVERSION_96x96): New macro.
878         (CONVERSION_94x94x94): New macro.
879         (CONVERSION_96x96x96): New macro.
880         (CONVERSION_94x94x94x60): New macro.
881         (CONVERSION_94x94x94x94): New macro.
882         (CONVERSION_96x96x96x96): New macro.
883
884 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
885
886         * chartab.c (Vcharacter_variant_table): Deleted.
887         (Fchar_variants): Use character-attribute `->ucs-variants' instead
888         of `Vcharacter_variant_table'.
889         (Fput_char_attribute): Likewise.
890         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
891         (complex_vars_of_chartab): Likewise.
892
893 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
894
895         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
896
897         * fns.c (Qideographic_structure): New variable.
898         (Qkeyword_char): New variable.
899         (ids_format_unit): New function.
900         (Fideographic_structure_to_ids): New function.
901         (syms_of_fns): Add new symbols `ideographic-structure' and
902         `:char'; add new builtin function `ideographic-structure-to-ids'.
903
904         * data.c (Fchar_ref_p): New function.
905         (syms_of_data): Add new builtin function `char-ref-p'.
906
907         * chartab.h: Add an EXFUN for `Ffind_char'.
908
909 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
910
911         * text-coding.c (Vcharacter_composition_table): Deleted.
912         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
913         in every UTF-2000.
914
915         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
916         UTF-2000.
917         (Vcharacter_composition_table): Deleted.
918         (Fget_composite_char): Use the implementation for external-DB
919         support in every UTF-2000.
920         (Fput_char_attribute): Likewise.
921         (char_attribute_system_db_file): Don't define if external-DB
922         feature is not available.
923         (Fsave_char_attribute_table): Likewise.
924         (Fmount_char_attribute_table): Likewise.
925         (Fclose_char_attribute_table): Likewise.
926         (Freset_char_attribute_table): Likewise.
927         (Fload_char_attribute_table): Likewise.
928         (syms_of_chartab): Don't define `save-char-attribute-table',
929         `mount-char-attribute-table', `reset-char-attribute-table',
930         `close-char-attribute-table' and `load-char-attribute-table' if
931         external-DB feature is not available.
932         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
933
934 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
935
936         * text-coding.c (Qcomposition): Add extern if external-DB feature
937         is supported.
938         (Vcharacter_composition_table): Don't add extern if external-DB
939         feature is supported.
940         (COMPOSE_ADD_CHAR): Modify for new data-representation of
941         character composition rule if external-DB feature is supported.
942
943         * chartab.c (Vcharacter_composition_table): Don't define if
944         external-DB feature is supported.
945         (Qcomposition): New variable.
946         (Fget_composite_char): New implementation for external-DB support.
947         (Fput_char_attribute): Use `composition' property of each
948         character instead of `Vcharacter_composition_table' to store
949         character-composition rules if external-DB feature is supported.
950         (syms_of_chartab): Add new symbol `composition'.
951         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
952         external-DB feature is supported.
953
954 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
955
956         * chartab.c (Vchar_db_stingy_mode): New variable.
957         (load_char_attribute_maybe): Close database if
958         Vchar_db_stingy_mode is not NIL.
959         (Fload_char_attribute_table_map_function): Use
960         `get_char_id_table_0' instead of `get_char_id_table'.
961         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
962
963         * chartab.h (get_char_id_table_0): New inline function.
964         (get_char_id_table): Use `get_char_id_table_0'.
965
966 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
967
968         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
969         and `COMPOSE_ADD_CHAR'.
970         (decode_coding_iso2022): Use `decode_flush_er_chars'.
971
972 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
973
974         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
975         instead of `DECODE_ADD_UCS_CHAR'.
976         (COMPOSE_ADD_CHAR): Likewise.
977
978 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
979
980         * text-coding.c (decode_flush_er_chars): New inline function.
981         (decode_add_er_char): New function.
982         (decode_coding_utf8): Use `decode_flush_er_chars' and
983         `decode_add_er_char'.
984
985 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
986
987         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
988         done before `decode_output_utf8_partial_char'.
989
990         * mule-charset.c (complex_vars_of_mule_charset): Specify
991         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
992         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
993
994 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
995
996         * mule-charset.c (decode_defined_char): New function; search
997         mother.
998         (decode_builtin_char): Don't search mother if
999         XCHARSET_MAX_CODE(charset) == 0.
1000         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1001         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1002         (Fdecode_char): Use `decode_defined_char' instead of
1003         `DECODE_DEFINED_CHAR'.
1004         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1005         mother of `Vcharset_ucs_jis'.
1006
1007         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1008         instead of `DECODE_DEFINED_CHAR'.
1009
1010         * char-ucs.h (decode_defined_char): Renamed from
1011         `DECODE_DEFINED_CHAR'; changed to normal function.
1012         (DECODE_CHAR): Use `decode_defined_char' instead of
1013         `DECODE_DEFINED_CHAR'.
1014
1015         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1016
1017 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1018
1019         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1020
1021         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1022         variable.
1023         (Quse_entity_reference): New variable.
1024         (Qd): New variable.
1025         (Qx): New variable.
1026         (QX): New variable.
1027         (coding_system_description): Add description for
1028         `ccs_priority_list'.
1029         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1030         (allocate_coding_system): Initialize `ccs_priority_list' in
1031         UTF-2000.
1032         (Fmake_coding_system): Add description about
1033         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1034         (codesys).
1035         (Fcoding_system_property): Accept `disable-composition' and
1036         `use-entity-reference' in UTF-2000.
1037         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1038         in UTF-2000.
1039         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1040         (decode_coding_utf8): Decode entity-reference if
1041         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1042         (char_encode_utf8): Encode non-Unicode characters as
1043         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1044         (str->codesys).
1045         (syms_of_file_coding): Add new symbols `use-entity-reference',
1046         `d', `x', `X'.
1047         (vars_of_file_coding): Add new variable
1048         `coded-charset-entity-reference-alist'.
1049         (complex_vars_of_file_coding): Declare `disable-composition' and
1050         `use-entity-reference' to be coding-system-properties in UTF-2000.
1051
1052         * file-coding.h (struct Lisp_Coding_System): Add new member
1053         `use_entity_reference' and `ccs_priority_list'.
1054         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1055         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1056         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1057
1058 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1059
1060         * chartab.c (save_uint8_byte_table): Don't clear the table.
1061         (save_uint16_byte_table): Likewise.
1062         (save_byte_table): Likewise.
1063         (Fmount_char_attribute_table): New function.
1064         (syms_of_chartab): Add new builtin function
1065         `mount-char-attribute-table'.
1066
1067 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1068
1069         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1070         "w+" mode.
1071         (load_char_decoding_entry_maybe): Open database as read-only mode.
1072
1073         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1074         open database as "w+" mode.
1075         (load_char_attribute_maybe): Open database as read-only mode.
1076         (Fload_char_attribute_table): Likewise.
1077
1078 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1079
1080         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1081         (char_table_description): Delete member `db_file'.
1082         (Fmake_char_table): Don't refer `ct->db_file'.
1083         (Fcopy_char_table): Likewise.
1084         (Fsave_char_attribute_table): Likewise.
1085         (Fclose_char_attribute_table): Likewise.
1086         (Freset_char_attribute_table): Likewise.
1087         (load_char_attribute_maybe): Likewise.
1088         (Fload_char_attribute_table): Likewise.
1089
1090         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1091
1092 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1093
1094         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1095         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1096         `ct->db' is living.
1097         (load_char_attribute_maybe): Likewise.
1098         (Fload_char_attribute_table): Likewise.
1099
1100 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1101
1102         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1103         `ct->db_file' unconditionally.
1104
1105 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1106
1107         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1108         UTF-2000.
1109         (char_table_description): Add description for `db_file' and `db'
1110         in UTF-2000.
1111         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1112         UTF-2000.
1113         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1114         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1115         (Fclose_char_attribute_table): New function.
1116         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1117         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1118         and `cit->db'.
1119         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1120         (syms_of_chartab): Add new builtin function
1121         `Fclose_char_attribute_table'.
1122
1123 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1124
1125         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1126         `db' in UTF-2000.
1127         (load_char_attribute_maybe): Change interface.
1128         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1129
1130 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1131
1132         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1133
1134 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1135
1136         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1137         instead of `DECODE_CHAR' for mother; don't use special code for
1138         chinese-big5 to use code space of chinese-big5-1 and
1139         chinese-big5-2.
1140         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1141         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1142
1143         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1144         (MAX_CHAR_BIG5_CDP): Revival.
1145
1146 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1147
1148         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1149         the XLFD registry-encoding name of `chinese-big5'.
1150
1151 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1152
1153         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1154         (Qchinese_big5_cdp): Deleted.
1155         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1156         (complex_vars_of_mule_charset): Delete coded-charset
1157         `chinese-big5-cdp'.
1158
1159         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1160         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1161         `CHARSET_ID_OFFSET - n' for private CCS.
1162         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1163         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1164         of `MIN_LEADING_BYTE'.
1165         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1166         `(CHARSET_ID_OFFSET - 97)'.
1167         (MIN_CHAR_BIG5_CDP): Deleted.
1168         (MAX_CHAR_BIG5_CDP): Deleted.
1169
1170 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1171
1172         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1173
1174 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1175
1176         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1177         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1178         chartab.c].
1179
1180         * chartab.c (Vutf_2000_version): Moved to mule.c.
1181         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1182
1183 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1184
1185         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1186         when HAVE_CHISE_CLIENT is not defined.
1187
1188         * mule.c (vars_of_mule): Provide feature `chise' when
1189         HAVE_CHISE_CLIENT is defined.
1190
1191 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1192
1193         * config.h.in (UTF2000): Add comment.
1194         (HAVE_CHISE_CLIENT): New macro.
1195
1196 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1197
1198         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1199         CONSP.
1200         (Fput_char_attribute): Likewise.
1201         (char_attribute_system_db_file): Encode file-name of attribute.
1202         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1203         the initial value.
1204
1205 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1206
1207         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1208         (Fsave_charset_mapping_table): Use
1209         `char_attribute_system_db_file'.
1210         (load_char_decoding_entry_maybe): Likewise.
1211
1212         * chartab.h (Qsystem_char_id): New external variable.
1213         (char_attribute_system_db_file): New prototype.
1214
1215         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1216         (char_attribute_system_db_file): New function.
1217         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1218         (Freset_char_attribute_table): Likewise.
1219         (load_char_attribute_maybe): Likewise.
1220         (Fload_char_attribute_table): Likewise.
1221         (syms_of_chartab): Add new symbol `system-char-id'.
1222
1223 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1224
1225         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1226         `XCHARSET_GRAPHIC(ccs)'.
1227
1228 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229
1230         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1231
1232 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1233
1234         * chartab.c (Q_ucs_variants): New variable.
1235         (syms_of_chartab): Add new symbol `->ucs-variants'.
1236         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1237         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1238         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1239
1240         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1241
1242         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1243         `HAVE_DATABASE' is defined.
1244         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1245         `HAVE_DATABASE' is defined.
1246
1247 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1248
1249         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1250         attribute-table.
1251         (Freset_char_attribute_table): New function.
1252         (syms_of_chartab): Add new builtin function
1253         `reset-char-attribute-table'.
1254
1255 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1256
1257         * chartab.c (load_char_attribute_maybe): Don't make directories.
1258
1259 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1260
1261         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1262
1263         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1264         for decoding-table.
1265
1266 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1267
1268         * mule-charset.c (Fsave_charset_mapping_table): Use
1269         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1270
1271         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1272         instead of `XCHARSET_CHARS'.
1273
1274 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1275
1276         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1277         (XCHARSET_BYTE_SIZE): Likewise.
1278
1279         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1280         mule-charset.c].
1281         (XCHARSET_BYTE_SIZE): Likewise.
1282
1283 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1284
1285         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1286         data-directory to store database.
1287         (Fsave_char_attribute_table): Likewise.
1288         (load_char_attribute_maybe): Likewise.
1289         (Fload_char_attribute_table): Likewise.
1290
1291 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1292
1293         * mule-charset.c (Fsave_charset_mapping_table): New function.
1294         (syms_of_mule_charset): Add new builtin function
1295         `save-charset-mapping-table'.
1296
1297 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1298
1299         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1300         (get_ccs_octet_table): New inline function.
1301         (put_ccs_octet_table): Likewise.
1302         (decoding_table_put_char): Use `get_ccs_octet_table' and
1303         `put_ccs_octet_table'.
1304         (decoding_table_remove_char): Use `decoding_table_put_char'.
1305         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1306
1307         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1308         into encoding_table.
1309         (make_charset): Use Qunbound instead Qnil as initial value of
1310         decoding_table.
1311
1312 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1313
1314         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1315         element is Qunloaded.
1316         (map_over_uint16_byte_table): Likewise.
1317         (map_over_byte_table): Likewise.
1318         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1319         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1320         database support, load encoding-table of the specified
1321         coded-charset if it is not loaded yet.
1322         (save_uint8_byte_table): New function of UTF-2000 with external
1323         database support.
1324         (save_uint16_byte_table): Likewise.
1325         (save_byte_table): Likewise.
1326         (Fput_char_attribute): Don't store value into external database
1327         even if the external database feature is supported in UTF-2000;
1328         set `attribute' as name of char-table if the external database
1329         feature is supported.
1330         (Fsave_char_attribute_table): New function in UTF-2000.
1331         (syms_of_chartab): Add new builtin function
1332         `save-char-attribute-table' in UTF-2000.
1333
1334 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1335
1336         * chartab.c (char_attribute_table_to_put): New variable in
1337         UTF-2000.
1338         (Qput_char_table_map_function): Likewise.
1339         (value_to_put): Likewise.
1340         (Fput_char_table_map_function): New function in UTF-2000.
1341         (put_char_table): Use `Fmap_char_attribute' for
1342         CHARTAB_RANGE_CHARSET in UTF-2000.
1343         (Fput_char_attribute): Store symbol instead of string in
1344         `XCHAR_TABLE_NAME (table)'.
1345         (load_char_attribute_maybe): Likewise.
1346         (syms_of_chartab): Add new symbol/function
1347         `put-char-table-map-function'.
1348
1349 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1350
1351         * database.h: Add new EXFUN for `Fmap_database'.
1352
1353         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1354         (syms_of_database): Likewise.
1355
1356         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1357         UTF-2000.
1358         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1359         (XCHAR_TABLE_UNLOADED): Likewise.
1360
1361         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1362         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1363         HAVE_DATABASE is defined.
1364         (char_attribute_table_to_load): New variable of UTF-2000 with
1365         external database support.
1366         (Qload_char_attribute_table_map_function): Likewise.
1367         (Fload_char_attribute_table_map_function): New function of
1368         UTF-2000 with external database support.
1369         (Fload_char_attribute_table): New function of UTF-2000.
1370         (Fmap_char_attribute): Call Fload_char_attribute_table if
1371         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1372         (syms_of_chartab): Add new symbol and function
1373         `load-char-attribute-table-map-function' in UTF-2000 with external
1374         database support; add new function `load-char-attribute-table' in
1375         UTF-2000.
1376
1377 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1378
1379         * chartab.h (load_char_attribute_maybe): New prototype for
1380         UTF-2000 with DATABASE support.
1381         (get_char_id_table): Use `load_char_attribute_maybe' if
1382         HAVE_DATABASE is defined.
1383
1384         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1385         with DATABASE support.
1386
1387 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1388
1389         * chartab.c (Fput_char_attribute): Use S-expression as key of
1390         external database.
1391
1392         * chartab.h (get_char_id_table): Use S-expression as key of
1393         external database.
1394
1395 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1396
1397         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1398         if an element is not loaded, load the corresponding attributes
1399         from an external database.
1400         (map_over_uint16_byte_table): Likewise.
1401         (map_over_byte_table): Likewise.
1402         (map_char_table): Modify for `map_over_uint8_byte_table',
1403         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1404         element is not loaded, load the corresponding attributes from an
1405         external database.
1406         (Fput_char_attribute): Change initial values to Qunloaded.
1407
1408         * chartab.h (get_char_id_table): If a character attribute is not
1409         loaded and the attribute value is not found in an external
1410         database, store Qunbound as the attribute value.
1411
1412 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1413
1414         * chartab.c (BT_UINT8_unloaded): New macro.
1415         (UINT8_VALUE_P): Accept Qunloaded.
1416         (UINT8_ENCODE): Likewise.
1417         (UINT8_DECODE): Likewise.
1418         (BT_UINT16_unloaded): New macro.
1419         (UINT16_VALUE_P): Accept Qunloaded.
1420         (UINT16_ENCODE): Likewise.
1421         (UINT16_DECODE): Likewise.
1422         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1423         BT_UINT16_unloaded.
1424         (mark_char_table): Mark `ct->name' in UTF-2000.
1425         (char_table_description): Add `name' in UTF-2000.
1426         (Fmake_char_table): Initialize `ct->name'.
1427         (Fcopy_char_table): Copy `ct->name'.
1428         (Fput_char_attribute): Store value into an external database if
1429         HAVE_DATABASE is defined.
1430
1431         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1432         UTF-2000.
1433         (CHAR_TABLE_NAME): New macro in UTF-2000.
1434         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1435         (get_char_id_table): Try to read an external database if Qunloaded
1436         is stored in a table.
1437
1438         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1439         Qunloaded.
1440
1441 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1442
1443         * database.h: Add EXFUN definitions for Fopen_database,
1444         Fput_database, Fget_database and Fclose_database.
1445
1446         * data.c (Qunloaded): New variable in UTF-2000.
1447
1448         * lisp.h (Qunloaded): New variable in UTF-2000.
1449
1450 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1451
1452         * mule-charset.c (put_char_ccs_code_point): Modify for
1453         `decoding_table_remove_char' and `decoding_table_put_char'.
1454         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1455
1456         * char-ucs.h (decoding_table_remove_char): Change arguments to
1457         hide decoding_table vector.
1458         (decoding_table_put_char): Likewise.
1459
1460 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1461
1462         * mule-charset.c (decoding_table_remove_char): Moved to
1463         char-ucs.h.
1464         (decoding_table_put_char): Likewise.
1465
1466         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1467         from mule-charset.c].
1468         (decoding_table_remove_char): New inline function [moved from
1469         mule-charset.c].
1470         (decoding_table_put_char): Likewise.
1471
1472 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1473
1474         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1475         extension.
1476
1477 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1478
1479         * mule-charset.c (decode_builtin_char): Support mother charsets.
1480
1481 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1482
1483         * mule-charset.c (Q94x94x60): New variable.
1484         (charset_code_point): Support conversion `94x94x60'.
1485         (Fmake_charset): Likewise.
1486         (syms_of_mule_charset): Add new symbol `94x94x60'.
1487
1488         * char-ucs.h (CONVERSION_94x94x60): New macro.
1489
1490 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1491
1492         * mule-charset.c (charset_code_point): Unify code about
1493         `code-offset'.
1494
1495 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1496
1497         * mule-charset.c (charset_code_point): Merge code about builtin
1498         characters into code about mother charsets; don't use
1499         `range_charset_code_point'.
1500         (range_charset_code_point): Deleted.
1501
1502 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1503
1504         * mule-charset.c (Qcode_offset): New variable.
1505         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1506         `max-code'; accept new property `code-offset'.
1507         (syms_of_mule_charset): Add new symbol `code-offset'.
1508
1509 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1510
1511         * mule-charset.c (range_charset_code_point): Fixed.
1512
1513 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1514
1515         * mule-charset.c (decode_builtin_char): Change semantics of
1516         code-offset of coded-charset.
1517         (charset_code_point): Likewise.
1518         (range_charset_code_point): Likewise.
1519         (complex_vars_of_mule_charset): Modify for the change.
1520
1521 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1522
1523         * mule-charset.c (Fencode_char): Reverse arguments.
1524
1525         * mule-charset.c (charset_code_point): Fixed.
1526
1527 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1528
1529         * mule-charset.c (Vcharset_mojikyo): Deleted.
1530         (Vcharset_mojikyo_2022_1): Deleted.
1531         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1532         (Qmin_code): New variable in UTF-2000.
1533         (Qmax_code): Likewise.
1534         (Qmother): Likewise.
1535         (Qconversion): Likewise.
1536         (Q94x60): Likewise.
1537         (Qmojikyo): Deleted.
1538         (Qmojikyo_2022_1): Deleted.
1539         (Qmojikyo_pj_{1..22}): Deleted.
1540         (mark_charset): Mark `cs->mother'.
1541         (charset_description): Add description for `mother'.
1542         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1543         new arguments `mother' and `conversion'; use
1544         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1545         (charset_code_point): Moved from char-ucs.h; support `mother'
1546         charset feature.
1547         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1548         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1549         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1550         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1551         allow 2 as the value of `graphic' in UTF-2000; add new properties
1552         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1553         require `final' in UTF-2000; modify for `make_charset'.
1554         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1555         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1556         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1557         (Fencode_char): New function.
1558         (syms_of_mule_charset): Add new builtin function `encode-char' in
1559         UTF-2000; add new symbols `min-code', `max-code', `mother',
1560         `conversion' and `94x60'; delete symbols `mojikyo',
1561         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1562         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1563         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1564         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1565
1566         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1567         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1568
1569         * char-ucs.h (Vcharset_mojikyo): Deleted.
1570         (Vcharset_mojikyo_2022_1): Deleted.
1571         (LEADING_BYTE_MOJIKYO): Deleted.
1572         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1573         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1574         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1575         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1576         add new member `mother'; add new member `conversion'.
1577         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1578         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1579         (CHARSET_MOTHER): New macro.
1580         (CHARSET_CONVERSION): New macro.
1581         (CONVERSION_IDENTICAL): New macro.
1582         (CONVERSION_94x60): New macro.
1583         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1584         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1585         (XCHARSET_MOTHER): New macro.
1586         (XCHARSET_CONVERSION): New macro.
1587         (MIN_CHAR_MOJIKYO): Deleted.
1588         (MAX_CHAR_MOJIKYO): Deleted.
1589         (DECODE_MOJIKYO_2022): Deleted.
1590         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1591         (charset_code_point): Changed to non-inline function.
1592         (encode_char_1): Use `charset_code_point'.
1593         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1594
1595 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1596
1597         * lread.c (read_compiled_function): Fix prototype.
1598         (read_vector): Likewise.
1599
1600 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1601
1602         * lrecord.h (struct lrecord_header): Delete `older'.
1603         (set_lheader_implementation): Delete code for `older'.
1604         (set_lheader_older_implementation): Deleted.
1605         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1606         (OLDER_RECORD_P): Deleted.
1607         (OLDER_RECORD_HEADER_P): Deleted.
1608         (alloc_older_lcrecord): Deleted.
1609         (alloc_older_lcrecord_type): Deleted.
1610
1611         * alloc.c (all_older_lcrecords): Deleted.
1612         (alloc_older_lcrecord): Deleted.
1613         (disksave_object_finalization_1): Delete code for older objects.
1614         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1615         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1616
1617 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1618
1619         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1620         instead of `make_older_vector'.
1621         (put_char_ccs_code_point): Likewise.
1622         (mark_charset): Mark `cs->decoding_table'.
1623         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1624
1625         * lisp.h (make_older_vector): Deleted.
1626         (make_vector_newer): Deleted.
1627
1628         * config.h.in (HAVE_GGC): Deleted.
1629
1630         * alloc.c (make_older_vector): Deleted.
1631         (make_vector_newer_1): Deleted.
1632         (make_vector_newer): Deleted.
1633
1634 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1635
1636         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1637         (Qideograph_daikanwa_2): New variable.
1638         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1639         (complex_vars_of_mule_charset): Add new coded-charset
1640         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1641         `LEADING_BYTE_DAIKANWA'.
1642
1643         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1644         (LEADING_BYTE_DAIKANWA_1): New macro.
1645         (LEADING_BYTE_DAIKANWA_2): New macro.
1646         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1647
1648 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1649
1650         * mule-charset.c (complex_vars_of_mule_charset): Change
1651         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1652         the second revised version.
1653
1654 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1655
1656         * mule-charset.c (Vcharset_ucs_smp): New variable.
1657         (Vcharset_ucs_sip): New variable.
1658         (Qucs_smp): New variable.
1659         (Qucs_sip): New variable.
1660         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1661         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1662         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1663         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1664         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1665         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1666
1667         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1668         (LEADING_BYTE_UCS_SIP): New macro.
1669         (MIN_CHAR_SMP): New macro.
1670         (MAX_CHAR_SMP): New macro.
1671         (MIN_CHAR_SIP): New macro.
1672         (MAX_CHAR_SIP): New macro.
1673
1674 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1675
1676         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1677         utf-2000.
1678
1679 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1680
1681         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1682         value; don't store value into `encoding_table' of `Lisp_Charset'.
1683         (mark_charset): `encoding_table' was deleted.
1684         (charset_description): Likewise.
1685         (make_charset): Likewise.
1686         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1687         `put_char_ccs_code_point'.
1688
1689         * chartab.h (Fput_char_attribute): New EXFUN.
1690
1691         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1692         is unified with normal symbol space.
1693         (Fget_char_attribute): Likewise.
1694         (Fput_char_attribute): Likewise; behavior of
1695         `put_char_ccs_code_point' is changed.
1696
1697         * char-ucs.h: Include "elhash.h".
1698         (Vchar_attribute_hash_table): New external variable.
1699         (struct Lisp_Charset): Delete `encoding_table'.
1700         (CHARSET_ENCODING_TABLE): New implementation; refer
1701         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1702         `Lisp_Charset'.
1703
1704 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1705
1706         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1707         (cs) == 0.
1708
1709 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1710
1711         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1712         `chinese-big5'.
1713
1714 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1715
1716         * chartab.c (uint8_byte_table_description): New constant.
1717         (uint8-byte-table): Use `uint8_byte_table_description'.
1718         (uint16_byte_table_description): New constant.
1719         (uint16-byte-table): Use `uint16_byte_table_description'.
1720
1721 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1722
1723         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1724         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1725
1726 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727
1728         * mule-charset.c (Vcharset_ucs_ks): New variable.
1729         (Qucs_ks): New variable.
1730         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1731         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1732
1733         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1734
1735 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1736
1737         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1738         (Fdecode_char): Likewise.
1739
1740         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1741         chartab.h.
1742         (Fdefine_char): Modify for Fdecode_char.
1743         (Ffind_char): Likewise.
1744
1745         * mule-charset.c (Fdecode_char): Add new optional argument
1746         `defined-only'.
1747         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1748
1749 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1750
1751         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1752         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1753         (allocate_coding_system): Initialize initial-charsets of
1754         CODESYS_BIG5 in XEmacs UTF-2000.
1755         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1756         CODESYS_BIG5 in XEmacs UTF-2000.
1757         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1758         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1759
1760         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1761         variables.
1762         (Qideograph_hanziku_{1 .. 12}): Likewise.
1763         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1764         .. 12}'.
1765         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1766         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1767         `ideograph-hanziku-{1 .. 12}'.
1768
1769         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1770         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1771         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1772         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1773         (DECODE_DEFINED_CHAR): New inline function.
1774         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1775
1776 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1777
1778         * mule-charset.c (Vcharset_china3_jef): Renamed from
1779         `Vcharset_japanese_jef_china3'.
1780         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1781         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1782         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1783         (syms_of_mule_charset): Rename `china3-jef' from
1784         `japanese-jef-china3'.
1785         (complex_vars_of_mule_charset): Likewise; rename
1786         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1787
1788         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1789         `LEADING_BYTE_JEF_CHINA3'.
1790         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1791         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1792
1793 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1794
1795         * mule-charset.c (encode_builtin_char_1): Comment out special code
1796         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1797
1798         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1799         (MAX_CHAR_MOJIKYO_0): Comment out.
1800         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1801         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1802         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1803         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1804
1805 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1806
1807         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1808         (Qideograph_cbeta): New variable.
1809         (encode_builtin_char_1): Comment out special code for
1810         coded-charset `mojikyo' and `japanese-jef-china3'.
1811         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1812         (complex_vars_of_mule_charset): Add new coded-charset
1813         `ideograph-cbeta'.
1814
1815         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1816         (MIN_CHAR_CBETA): New macro.
1817         (MAX_CHAR_CBETA): New macro.
1818
1819 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1820
1821         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1822         (LEADING_BYTE_JEF_CHINA3): New macro.
1823         (MIN_CHAR_JEF_CHINA3): New macro.
1824         (MAX_CHAR_JEF_CHINA3): Likewise.
1825         (DECODE_CHAR): Fixed.
1826
1827 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1828
1829         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1830         (Qjapanese_jef_china3): New variable.
1831         (encode_builtin_char_1): Support `japanese-jef-china3'.
1832         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1833         (complex_vars_of_mule_charset): Add new coded-charset
1834         `japanese-jef-china3'.
1835
1836 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1837
1838         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1839         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1840         94^4, 96^3, 96^4, 128^n and 256^n set.
1841         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1842         (map_char_table): Likewise.
1843
1844 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1845
1846         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1847         UTF-2000.
1848
1849 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1850
1851         * chartab.h (get_char_id_table): New inline function.
1852
1853         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1854         function.
1855
1856 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1857
1858         * chartab.h (decode_char_table_range): New prototype in XEmacs
1859         UTF-2000.
1860         (put_char_id_table): New inline function in XEmacs UTF-2000.
1861
1862         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1863         function.
1864         (decode_char_table_range): Delete static declaration in XEmacs
1865         UTF-2000.
1866
1867 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1868
1869         * chartab.c (put_char_id_table): Use `put_char_table'.
1870
1871 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1872
1873         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1874         (map_over_uint16_byte_table): Likewise.
1875         (map_over_byte_table): Likewise.
1876         (map_char_table): Modify for `map_over_uint8_byte_table',
1877         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1878         UTF-2000.
1879
1880 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1881
1882         * chartab.c (struct map_char_table_for_charset_arg): New
1883         structure.
1884         (map_char_table_for_charset_fun): New function.
1885         (map_char_table): Use `map_char_table' for encoding_table of
1886         `range->charset'.
1887
1888 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1889
1890         * chartab.c (map_char_table): Check a character is found in
1891         range->charset instead of non default value is defined in
1892         char-table when range is CHARTAB_RANGE_ROW.
1893
1894 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1895
1896         * chartab.c (map_char_id_table): Deleted.
1897         (Fmap_char_attribute): Use `map_char_table' instead of
1898         `map_char_id_table'.
1899
1900 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1901
1902         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1903         UTF-2000.
1904         (update_syntax_table): Deleted in XEmacs UTF-2000.
1905
1906         * syntax.c (find_defun_start): Use `syntax_table' instead of
1907         `mirror_syntax_table' in XEmacs UTF-2000.
1908         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1909         UTF-2000.
1910         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1911         XEmacs UTF-2000.
1912         (Fmatching_paren): Likewise.
1913         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1914         in XEmacs UTF-2000.
1915         (find_start_of_comment): Likewise.
1916         (find_end_of_comment): Likewise.
1917         (Fforward_comment): Likewise.
1918         (scan_lists): Likewise.
1919         (char_quoted): Likewise.
1920         (Fbackward_prefix_chars): Likewise.
1921         (scan_sexps_forward): Likewise.
1922         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1923         (update_syntax_table): Likewise.
1924
1925         * search.c (skip_chars): Use `syntax_table' instead of
1926         `mirror_syntax_table' in XEmacs UTF-2000.
1927         (wordify): Likewise.
1928         (Freplace_match): Likewise.
1929
1930         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1931         `mirror_syntax_table' in XEmacs UTF-2000.
1932         (WORDCHAR_P_UNSAFE): Likewise.
1933         (re_match_2_internal): Likewise.
1934
1935         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1936         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1937
1938         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1939         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1940
1941         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1942         XEmacs UTF-2000.
1943
1944         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1945         UTF-2000.
1946         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1947         (char_table_description): Delete `mirror_table' in XEmacs
1948         UTF-2000.
1949         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1950         UTF-2000.
1951         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1952         (Fcopy_char_table): Likewise.
1953         (put_char_table): Don't call `update_syntax_table' in XEmacs
1954         UTF-2000.
1955
1956         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1957         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1958         (casify_region_internal): Likewise.
1959
1960         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1961
1962         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1963         `mirror_syntax_table' in XEmacs UTF-2000.
1964
1965         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1966         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1967         (Fexpand_abbrev): Likewise.
1968
1969 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1970
1971         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1972
1973 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1974
1975         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1976         (map_over_uint16_byte_table): Likewise.
1977         (map_over_byte_table): Likewise.
1978         (get_char_id_table): Refer `cit->default_value'.
1979         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1980         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1981         of character-id ranges.
1982         (mark_char_table): Mark `ct->default_value'.
1983         (char_table_description): Add `default_value'.
1984         (fill_char_table): Use `default_value'.
1985         (decode_char_table_range): Decode `nil' as
1986         `CHARTAB_RANGE_DEFAULT'.
1987         (get_char_id_table): Refer `cit->default_value'.
1988         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1989         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1990         temporary hack; check value of char-table is bound or not.
1991         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1992
1993         * chartab.h (struct Lisp_Char_Table): Add new member
1994         `default_value' in XEmacs UTF-2000.
1995         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1996         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1997         UTF-2000.
1998
1999 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2000
2001         * chartab.h (Lisp_Char_ID_Table): Deleted.
2002
2003         * chartab.c (char_table_description): Fix typo.
2004         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2005         `Lisp_Char_ID_Table'.
2006
2007 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2008
2009         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2010         `CHAR_ID_TABLE_P'.
2011
2012         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2013         `CHAR_ID_TABLE_P'.
2014
2015         * chartab.h (XCHAR_ID_TABLE): Deleted.
2016         (XSETCHAR_ID_TABLE): Deleted.
2017         (CHAR_ID_TABLE_P): Deleted.
2018
2019         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2020         `CHAR_ID_TABLE_P'.
2021         (Fget_composite_char): Likewise.
2022         (put_char_table): Likewise.
2023         (add_char_attribute_alist_mapper): Fixed.
2024         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2025         `CHAR_ID_TABLE_P'.
2026         (Fget_char_attribute): Likewise.
2027         (Fget_char_attribute): Likewise.
2028         (Fmap_char_attribute): Likewise.
2029
2030         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2031         `CHAR_ID_TABLE_P'.
2032         (encode_char_1): Likewise.
2033
2034 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2035
2036         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2037         `XCHAR_ID_TABLE'.
2038
2039         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2040         instead of `XCHAR_ID_TABLE'.
2041         (remove_char_ccs): Likewise.
2042
2043         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2044         `XCHAR_ID_TABLE'.
2045         (Fget_composite_char): Likewise.
2046         (Fchar_variants): Likewise.
2047         (put_char_table): Likewise.
2048         (add_char_attribute_alist_mapper): Likewise.
2049         (Fchar_attribute_alist): Likewise.
2050         (Fget_char_attribute): Likewise.
2051         (Fput_char_attribute): Likewise.
2052         (Fmap_char_attribute): Likewise.
2053         (Fmap_char_attribute): Likewise.
2054
2055         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2056         `XCHAR_ID_TABLE'.
2057         (encode_char_1): Likewise.
2058
2059 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2060
2061         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2062         `Lisp_Char_ID_Table'.
2063         (mark_char_id_table): Deleted.
2064         (print_char_id_table): Likewise.
2065         (char_id_table_equal): Likewise.
2066         (char_id_table_hash): Likewise.
2067         (char_id_table_description): Likewise.
2068         (char_id_table): Likewise.
2069         (make_char_id_table): Use `Fmake_char_table' and
2070         `fill_char_table'.
2071         (get_char_id_table): Use `Lisp_Char_Table' instead of
2072         `Lisp_Char_ID_Table'.
2073         (put_char_id_table): Likewise.
2074         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2075         `XCHAR_ID_TABLE'.
2076         (Fremove_char_attribute): Likewise.
2077         (syms_of_chartab): Don't define type `char-id-table'.
2078
2079         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2080         (char_id_table): Likewise.
2081         (GC_CHAR_ID_TABLE_P): Likewise.
2082         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2083         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2084         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2085         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2086         (get_char_id_table): Use `Lisp_Char_Table' instead of
2087         `Lisp_Char_ID_Table'.
2088         (put_char_id_table_0): Likewise.
2089         (put_char_id_table): Likewise.
2090
2091 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2092
2093         * chartab.h: Lisp_Byte_Table related codes are moved from
2094         chartab.h.
2095
2096         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2097
2098 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2099
2100         * chartab.h: Don't include "chartab.h".
2101         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2102         (Lisp_Char_ID_Table): Likewise.
2103         (char_id_table): Likewise.
2104         (XCHAR_ID_TABLE): Likewise.
2105         (XSETCHAR_ID_TABLE): Likewise.
2106         (CHAR_ID_TABLE_P): Likewise.
2107         (GC_CHAR_ID_TABLE_P): Likewise.
2108         (get_char_id_table): Likewise.
2109
2110         * char-ucs.h: Include "chartab.h".
2111         (struct Lisp_Char_ID_Table): Moved to chartab.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 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2121
2122         * chartab.c (copy_uint8_byte_table): New function.
2123         (copy_uint16_byte_table): New function.
2124         (copy_byte_table): New function.
2125         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2126         characters to call.
2127         (map_over_uint16_byte_table): Likewise.
2128         (map_over_byte_table): Likewise.
2129         (get_byte_table): Move prototype to chartab.h.
2130         (put_byte_table): Likewise.
2131         (put_char_id_table_0): Moved to chartab.h.
2132         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2133         (char_table_entry_equal): Likewise.
2134         (char_table_entry_hash): Likewise.
2135         (char_table_entry_description): Likewise.
2136         (char_table_entry): Likewise.
2137         (make_char_table_entry): Likewise.
2138         (copy_char_table_entry): Likewise.
2139         (get_non_ascii_char_table_value): Likewise.
2140         (map_over_charset_ascii): Likewise.
2141         (map_over_charset_control_1): Likewise.
2142         (map_over_charset_row): Likewise.
2143         (map_over_other_charset): Likewise.
2144         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2145         (print_char_table): Likewise.
2146         (char_table_equal): Likewise.
2147         (char_table_hash): Likewise.
2148         (char_table_description): Likewise.
2149         (fill_char_table): Likewise.
2150         (Fcopy_char_table): Likewise.
2151         (get_char_table): Likewise.
2152         (Fget_range_char_table): Likewise.
2153         (put_char_table): Likewise.
2154         (map_char_table): Likewise.
2155         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2156         UTF-2000.
2157
2158 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2159
2160         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2161         `Vauto_fill_chars' in XEmacs UTF-2000.
2162
2163         * chartab.h (get_byte_table): New prototype [moved from
2164         chartab.c].
2165         (put_byte_table): Likewise [moved from chartab.c].
2166         (put_char_id_table_0): New inline function [moved from chartab.c].
2167         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2168         (Lisp_Char_Table_Entry): Likewise.
2169         (char_table_entry): Likewise.
2170         (XCHAR_TABLE_ENTRY): Likewise.
2171         (XSETCHAR_TABLE_ENTRY): Likewise.
2172         (CHAR_TABLE_ENTRYP): Likewise.
2173         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2174         (NUM_ASCII_CHARS): Likewise.
2175         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2176         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2177
2178 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2179
2180         * chartab.c (get_char_id_table): Change interface.
2181         (put_char_id_table_0): New function.
2182         (put_char_id_table): Change interface; new implementation.
2183         (Fget_composite_char): Modify for interface change of
2184         `get_char_id_table'.
2185         (Fchar_variants): Likewise.
2186         (add_char_attribute_alist_mapper): Likewise.
2187         (Fchar_attribute_alist): Likewise.
2188         (Fget_char_attribute): Likewise.
2189         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2190         as same as character as the first argument like `put-char-table';
2191         modify for interface change of `put_char_id_table'.
2192         (Fremove_char_attribute): Modify for interface change of
2193         `put_char_id_table'.
2194
2195 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2196
2197         * text-coding.c: Sync up with XEmacs 21.2.41.
2198         (COMPOSE_ADD_CHAR): Modify for interface change of
2199         `get_char_id_table'.
2200
2201         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2202         change of `put_char_id_table'.
2203         (remove_char_ccs): Likewise.
2204
2205         * chartab.h (put_char_id_table): Change interface.
2206
2207         * char-ucs.h (get_char_id_table): Change interface.
2208         (charset_code_point): Modify for interface change of
2209         `get_char_id_table'.
2210         (encode_char_1): Likewise.
2211
2212 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2213
2214         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2215         argument `ccs'.
2216         (map_over_uint16_byte_table): Likewise.
2217         (map_over_byte_table): Likewise.
2218         (map_char_id_table): Add new argument `range' like
2219         `map_char_table'.
2220         (Fmap_char_attribute): Add new argument `range' like
2221         `Fmap_char_table'.
2222
2223 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2224
2225         * chartab.c (map_over_uint8_byte_table): Change interface of
2226         mapping function to use struct chartab_range instead of Emchar.
2227         (map_over_uint16_byte_table): Likewise.
2228         (map_over_byte_table): Likewise.
2229         (map_char_id_table): Likewise.
2230         (struct slow_map_char_id_table_arg): Deleted.
2231         (slow_map_char_id_table_fun): Deleted.
2232         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2233         function `slow_map_char_table_fun' instead of struct
2234         `slow_map_char_id_table_arg' and function
2235         `slow_map_char_id_table_fun'.
2236
2237 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2238
2239         * mule-charset.c: Move char-it-table related codes to chartab.c.
2240         (Vutf_2000_version): Moved to chartab.c.
2241         (Fdefine_char): Likewise.
2242         (Ffind_char): Likewise.
2243         (syms_of_mule_charset): Move types `uint8-byte-table',
2244         `uint16-byte-table', `byte-table' and `char-id-table' to
2245         chartab.c; move functions `char_attribute_list,
2246         `find_char_attribute_table, `char_attribute_alist,
2247         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2248         `map_char_attribute, `define_char, `find_char, `char_variants and
2249         `get_composite_char to chartab.c; move symbols `=>ucs',
2250         `->decomposition', `compat', `isolated', `initial', `medial',
2251         `final', `vertical', `noBreak', `fraction', `super', `sub',
2252         `circle', `square', `wide', `narrow', `small' and `font' to
2253         chartab.c.
2254         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2255         setting codes for `Vcharacter_composition_table' and
2256         `Vcharacter_variant_table' to chartab.c.
2257         (complex_vars_of_mule_charset): Move setting code for
2258         `Vchar_attribute_hash_table' to chartab.c.
2259
2260         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2261         (make_char_id_table): New prototype.
2262         (put_char_id_table): Likewise.
2263         (Fget_char_attribute): Likewise.
2264
2265         * chartab.c: Move char-id-table related code from mule-charset.c.
2266         (Vutf_2000_version): Moved from mule-charset.c.
2267
2268         * char-ucs.h (Qucs): New external variable.
2269         (put_char_ccs_code_point): New prototype.
2270         (remove_char_ccs): Likewise.
2271
2272 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2273
2274         * mule-charset.c (Vcharset_ucs_jis): New variable.
2275         (Qucs_jis): Likewise.
2276         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2277         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2278
2279         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2280
2281 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2282
2283         * mule-charset.c (map_over_uint8_byte_table): New function.
2284         (map_over_uint16_byte_table): Likewise.
2285         (map_over_byte_table): Likewise.
2286         (map_char_id_table): Likewise.
2287         (slow_map_char_id_table_fun): Likewise.
2288         (Fmap_char_attribute): Likewise.
2289         (syms_of_mule_charset): Add new function `map-char-attribute'.
2290
2291 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2292
2293         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2294         (syms_of_mule_charset): Add new function `find-char'.
2295
2296 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2297
2298         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2299         XEmacs UTF-2000.
2300         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2301         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2302         XEmacs UTF-2000.
2303         (complex_vars_of_mule_charset): Add new coded-charset
2304         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2305         `ideograph-gt-pj-*'.
2306
2307         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2308
2309 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2310
2311         * mule-charset.c (encode_builtin_char_1): Purge codes about
2312         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2313         {MIN|MAX}_CHAR_HEBREW.
2314         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2315         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2316
2317         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2318         (MAX_CHAR_GREEK): Purged.
2319         (MIN_CHAR_CYRILLIC): Purged.
2320         (MAX_CHAR_CYRILLIC): Purged.
2321         (MIN_CHAR_HEBREW): Commented out.
2322         (MAX_CHAR_HEBREW): Likewise.
2323
2324 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2325
2326         * mule-charset.c (Qto_ucs): New variable.
2327         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2328         (Fdefine_char): Likewise.
2329         (syms_of_mule_charset): Add new symbol `=>ucs'.
2330
2331 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2332
2333         * mule-charset.c (Fdecode_char): Fixed.
2334
2335 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2336
2337         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2338         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2339         "tcvn5712-1".
2340
2341 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2342
2343         * mule-charset.c (Vcharset_ucs_big5): New variable.
2344         (Qucs_big5): Likewise.
2345         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2346         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2347
2348         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2349
2350 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2351
2352         * mule-charset.c (decode_builtin_char): Check Big5 code range
2353         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2354
2355 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2356
2357         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2358         (Qchinese_gb12345): Likewise.
2359         (Fdecode_builtin_char): Fixed.
2360         (syms_of_mule_charset): Add `chinese-gb12345'.
2361         (complex_vars_of_mule_charset): Add coded-charset
2362         `chinese-gb12345'.
2363
2364         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2365         (LEADING_BYTE_CHINESE_GB12345): New macro.
2366
2367 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2368
2369         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2370         and `latin-viscii-upper' for `latin-viscii'.
2371
2372 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2373
2374         * mule-charset.c (Fdecode_builtin_char): Comment out
2375         regularization code for ISO-IR GR representation.
2376
2377 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2378
2379         * mule-charset.c (decode_builtin_char): New function; renamed from
2380         `make_builtin_char'; return -1 instead of signal.
2381         (Fdecode_builtin_char): Use `decode_builtin_char'.
2382
2383         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2384         `make_builtin_char'.
2385         (DECODE_CHAR): Use `decode_builtin_char' instead of
2386         `make_builtin_char'; use mapping table of `chinese-big5' for
2387         `chinese-big5-{1,2}'.
2388
2389 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2390
2391         * text-coding.c (char_encode_big5): New function.
2392         (char_finish_big5): Likewise.
2393         (reset_encoding_stream): Use `char_encode_big5' and
2394         `char_finish_big5' for CODESYS_BIG5.
2395         (mule_encode): Don't use `encode_coding_big5'.
2396         (encode_coding_big5): Deleted.
2397
2398 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2399
2400         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2401         0x81- in XEmacs UTF-2000.
2402         (detect_coding_big5): Likewise.
2403
2404 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2405
2406         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2407         generate character-id if the CCS property does not have
2408         corresponding predefined character.
2409         (make_builtin_char): Return -1 if corresponding predefined
2410         character is not found.
2411         (Fdecode_char): Return nil if corresponding character is not
2412         found.
2413         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2414         don't map to builtin ucs space.
2415
2416 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2417
2418         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2419         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2420
2421 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2422
2423         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2424         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2425         (Qideograph_gt): Likewise.
2426         (Qideograph_gt_pj_{1..11}): Likewise.
2427         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2428         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2429         `ideograph-gt-pj-11'.
2430         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2431         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2432         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2433
2434         * char-ucs.h (LEADING_BYTE_GT): New macro.
2435         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2436         (MIN_CHAR_GT): Likewise.
2437         (MAX_CHAR_GT): Likewise.
2438
2439 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2440
2441         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2442         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2443
2444         * doprnt.c (unsigned_int_converters): Add `c'.
2445         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2446
2447         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2448         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2449         `MIN_CHAR_MOJIKYO'.
2450         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2451         (MAX_CHAR_MOJIKYO_0): New macro.
2452         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2453
2454 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2455
2456         * mule-charset.c (Fdefine_char): Delete cemented out code.
2457         (encode_builtin_char_1): Modify for new allocation of builtin
2458         Mojikyo characters.
2459
2460         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2461
2462 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2463
2464         * mule-charset.c (Vcharset_ucs_cns): New variable.
2465         (Qucs_cns): New variable.
2466         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2467         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2468
2469 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2470
2471         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2472
2473 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2474
2475         * search.c (search_buffer): Make `charset_base_code' as
2476         character-id >> 6 to eliminate the corresponding last byte in
2477         UTF-8 representation [I'm not sure it is right thing].
2478         (boyer_moore): Likewise.
2479
2480 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2481
2482         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2483         representation in MULE.
2484
2485 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2486
2487         * text-coding.c (Fmake_coding_system): Use
2488         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2489         `EXTERNAL_PROPERTY_LIST_LOOP'.
2490
2491 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2492
2493         * text-coding.c (decode_output_utf8_partial_char): New function.
2494         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2495
2496 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2497
2498         * text-coding.c (decode_coding_utf8): Output original byte
2499         sequence if it is broken; change order of conditions.
2500
2501         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2502         of conditions.
2503
2504         * mb-multibyte.h (BYTE_ASCII_P):
2505         Use bit ops for char-signedness safety.
2506         (BYTE_C0_P): Use bit ops for char-signedness safety.
2507         (BYTE_C1_P): Use bit ops for char-signedness safety.
2508
2509         * character.h: (XCHAR_OR_CHAR_INT):
2510         Always use inline function.
2511         Remove redundant type checking assert() - XINT will abort quite
2512         nicely.
2513
2514 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2515
2516         * text-coding.c: (Fencode_shift_jis_char):
2517         (Fencode_big5_char):
2518         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2519         Replace 0 with '\0' when working with bytes.
2520         Replace initial "(" with "\(" in docstrings.
2521
2522         (Fmake_coding_system):
2523         When type is ccl and value is vector, register it with a proper
2524         symbol.  And checks whether the given ccl program is valid.
2525         (mule_decode): When calling ccl_driver, if src indicates
2526         NULL pointer, set an empty string instead.
2527         (mule_encode): Likewise.
2528
2529         (detect_eol_type):
2530         (detect_coding_sjis):
2531         (decode_coding_sjis):
2532         (detect_coding_big5):
2533         (decode_coding_big5):
2534         (detect_coding_ucs4):
2535         (decode_coding_ucs4):
2536         (detect_coding_utf8):
2537         (decode_coding_utf8):
2538         (detect_coding_iso2022):
2539         (decode_coding_iso2022):
2540         (decode_coding_no_conversion):
2541         (mule_decode):
2542         Make all detecting and decoding functions take an Extbyte * arg.
2543         (text_encode_generic):
2544         (encode_coding_big5):
2545         (encode_coding_no_conversion):
2546         (mule_encode):
2547         Make all encoding functions take a Bufbyte * arg.
2548         Use size_t instead of unsigned int for memory sizes.
2549         Only cast to unsigned char whenever dereferencing Extbyte *.
2550
2551         (struct lrecord_description fcd_description_1): Use countof.
2552         (complex_vars_of_file_coding):
2553         Use countof instead of sizeof.
2554         Use CHECK_NATNUM instead of CHECK_INT.
2555
2556 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2557
2558         * mule-charset.c (Fget_char_attribute): Add new optional argument
2559         `default-value'.
2560         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2561         (remove_char_ccs): Likewise.
2562
2563 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2564
2565         * text-coding.c (char_encode_shift_jis): New implementation in
2566         UTF-2000.
2567         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2568         ...)'.
2569
2570         * mule-charset.c (Vcharset_chinese_big5): New variable in
2571         UTF-2000.
2572         (Qchinese_big5): New variable in UTF-2000.
2573         (BIG5_SAME_ROW): New macro in UTF-2000.
2574         (make_builtin_char): Use builtin characters of
2575         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2576         characters of `Vcharset_chinese_big5'.
2577         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2578         (complex_vars_of_mule_charset): Add new coded-charset
2579         `chinese-big5' in UTF-2000.
2580
2581         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2582         (Vcharset_chinese_big5): New external variable declaration.
2583         (Vcharset_japanese_jisx0208_1990): Likewise.
2584
2585 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2586
2587         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2588         function.
2589         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2590
2591 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2592
2593         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2594         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2595         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2596         `mojikyo-pj-*'.
2597
2598 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2599
2600         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2601
2602 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2603
2604         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2605         to 0.17.
2606
2607 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2608
2609         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2610         for `CHARSET_BY_ATTRIBUTES'.
2611         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2612         `CHARSET_BY_ATTRIBUTES'.
2613
2614         * text-coding.c (struct decoding_stream): Rename member `CH' to
2615         `CPOS'.
2616         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2617         (decode_coding_sjis): Likewise.
2618         (decode_coding_big5): Likewise.
2619         (decode_coding_ucs4): Likewise.
2620         (decode_coding_utf8): Likewise.
2621         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2622         `CHARSET_BY_ATTRIBUTES'.
2623         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2624         `str->counter'; decode 3, 4 bytes sets.
2625         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2626         sets.
2627         (decode_coding_no_conversion): Use `str->cpos' instead of
2628         `str->ch'.
2629
2630         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2631         (Qmojikyo_2022_1): New variable.
2632         (make_charset): Don't use `CHARSET_TYPE_*'.
2633         (range_charset_code_point): Support coded-charset
2634         `mojikyo-2022-1'.
2635         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2636         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2637         `CHARSET_BY_ATTRIBUTES'.
2638         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2639         `CHARSET_BY_ATTRIBUTES'.
2640         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2641         (complex_vars_of_mule_charset): Add new coded-charset
2642         `mojikyo-2022-1'.
2643
2644         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2645         interface; changed to inline function.
2646
2647         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2648         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2649         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2650         (CHARSET_TYPE_94): Deleted.
2651         (CHARSET_TYPE_94X94): Deleted.
2652         (CHARSET_TYPE_96): Deleted.
2653         (CHARSET_TYPE_96X96): Deleted.
2654         (CHARSET_TYPE_128): Deleted.
2655         (CHARSET_TYPE_128X128): Deleted.
2656         (CHARSET_TYPE_256): Deleted.
2657         (CHARSET_TYPE_256X256): Deleted.
2658         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2659         to inline function.
2660         (DECODE_MOJIKYO_2022): New inline function.
2661         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2662         `Vcharset_mojikyo_2022_1'.
2663
2664 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2665
2666         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2667         instead of `EQ'.
2668         (put_byte_table): Likewise.
2669         (char_id_table_equal): Use `get_byte_table' [new implementation].
2670
2671 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2672
2673         * mule-charset.c: Include <limits.h> in UTF-2000.
2674         (BT_UINT8_MIN): New macro in UTF-2000.
2675         (BT_UINT8_MAX): New macro in UTF-2000.
2676         (BT_UINT8_t): New macro in UTF-2000.
2677         (BT_UINT8_nil): New macro in UTF-2000.
2678         (BT_UINT8_unbound): New macro in UTF-2000.
2679         (INT_UINT8_P): New inline function in UTF-2000.
2680         (UINT8_VALUE_P): New inline function in UTF-2000.
2681         (UINT8_ENCODE): New inline function in UTF-2000.
2682         (UINT8_DECODE): New inline function in UTF-2000.
2683         (mark_uint8_byte_table): New function in UTF-2000.
2684         (print_uint8_byte_table): New function in UTF-2000.
2685         (uint8_byte_table_equal): New function in UTF-2000.
2686         (uint8_byte_table_hash): New function in UTF-2000.
2687         (make_uint8_byte_table): New function in UTF-2000.
2688         (uint8_byte_table_same_value_p): New function in UTF-2000.
2689         (BT_UINT16_MIN): New macro in UTF-2000.
2690         (BT_UINT16_MAX): New macro in UTF-2000.
2691         (BT_UINT16_t): New macro in UTF-2000.
2692         (BT_UINT16_nil): New macro in UTF-2000.
2693         (BT_UINT16_unbound): New macro in UTF-2000.
2694         (INT_UINT16_P): New inline function in UTF-2000.
2695         (UINT16_VALUE_P): New inline function in UTF-2000.
2696         (UINT16_ENCODE): New inline function in UTF-2000.
2697         (UINT16_DECODE): New inline function in UTF-2000.
2698         (UINT8_TO_UINT16): New inline function in UTF-2000.
2699         (mark_uint16_byte_table): New function in UTF-2000.
2700         (print_uint16_byte_table): New function in UTF-2000.
2701         (uint16_byte_table_equal): New function in UTF-2000.
2702         (uint16_byte_table_hash): New function in UTF-2000.
2703         (make_uint16_byte_table): New function in UTF-2000.
2704         (uint16_byte_table_same_value_p): New function in UTF-2000.
2705         (print_byte_table): New function in UTF-2000.
2706         (byte-table): Use `print_byte_table' as printer.
2707         (make_byte_table): Delete second argument `older'.
2708         (byte_table_same_value_p): New function in UTF-2000.
2709         (copy_byte_table): Deleted.
2710         (get_byte_table): New function in UTF-2000.
2711         (put_byte_table): New function in UTF-2000.
2712         (print_char_id_table): New function in UTF-2000.
2713         (char-id-table): Use `print_char_id_table' as printer.
2714         (make_char_id_table): Delete second argument `older'.
2715         (get_char_id_table): Use `get_byte_table [new implementation].
2716         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2717         implementation].
2718         (Ffind_char_attribute_table): New function in UTF-2000.
2719         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2720         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2721         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2722         (syms_of_mule_charset): Add new function
2723         `find-char-attribute-table' in UTF-2000.
2724
2725         * lrecord.h (enum lrecord_type): Add
2726         `lrecord_type_uint16_byte_table' and
2727         `lrecord_type_uint8_byte_table'.
2728
2729         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2730         (Lisp_Uint8_Byte_Table): New type.
2731         (XUINT8_BYTE_TABLE): New macro.
2732         (XSETUINT8_BYTE_TABLE): New macro.
2733         (UINT8_BYTE_TABLE_P): New macro.
2734         (GC_UINT8_BYTE_TABLE_P): New macro.
2735         (struct Lisp_Uint16_Byte_Table): New structure.
2736         (Lisp_Uint16_Byte_Table): New type.
2737         (XUINT16_BYTE_TABLE): New macro.
2738         (XSETUINT16_BYTE_TABLE): New macro.
2739         (UINT16_BYTE_TABLE_P): New macro.
2740         (GC_UINT16_BYTE_TABLE_P): New macro.
2741
2742 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2743
2744         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2745         (Vcharacter_ideographic_strokes_table): Deleted.
2746         (Vcharacter_total_strokes_table): Deleted.
2747         (Vcharacter_morohashi_daikanwa_table): Deleted.
2748         (Vcharacter_decomposition_table): Deleted.
2749         (Qname): Deleted because it is duplicated.
2750         (Qideographic_radical): Deleted.
2751         (Qideographic_strokes): Deleted.
2752         (Qtotal_strokes): Deleted.
2753         (Qmorohashi_daikanwa): Deleted.
2754         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2755         `ideographic-radical', `ideographic-strokes', `total-strokes',
2756         `morohashi-daikanwa' and `->decomposition'.
2757         (Fget_char_attribute): Likewise.
2758         (Fput_char_attribute): Likewise; use `make-vector' instead of
2759         `make_older_vector' for `->decomposition' value.
2760         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2761         `ideograph-daikanwa'.
2762         (syms_of_mule_charset): Delete builtin symbols `name',
2763         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2764         `morohashi-daikanwa'.
2765         (vars_of_mule_charset): Don't setup
2766         `Vcharacter_ideographic_radical_table',
2767         `Vcharacter_ideographic_strokes_table',
2768         `Vcharacter_total_strokes_table',
2769         `Vcharacter_morohashi_daikanwa_table' and
2770         `Vcharacter_decomposition_table'.
2771
2772 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2773
2774         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2775         `make_older_vector', `make_vector_newer_1' and
2776         `make_vector_newer'.
2777
2778         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2779         `make_older_vector' and `make_vector_newer'.
2780
2781         * config.h.in (HAVE_GGC): New macro.
2782
2783 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2784
2785         * mule-charset.c (struct char_attribute_list_closure): New
2786         structure in UTF-2000.
2787         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2788         (Fchar_attribute_list): Likewise.
2789         (Fset_charset_mapping_table): Use `make_vector_newer'.
2790         (Fdecode_builtin_char): New function in UTF-2000.
2791         (syms_of_mule_charset): Add new function `char-attribute-list' and
2792         `decode-builtin-char' in UTF-2000.
2793
2794         * lisp.h (make_vector_newer): New prototype.
2795
2796         * alloc.c (make_vector_newer_1): New function.
2797         (make_vector_newer): New function.
2798
2799 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2800
2801         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2802         50100)'.
2803
2804 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2805
2806         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2807         (Vcharacter_attribute_table): Deleted.
2808         (Vcharacter_name_table): Deleted.
2809         (put_char_attribute): Deleted.
2810         (remove_char_attribute): Deleted.
2811         (struct char_attribute_alist_closure): New structure.
2812         (add_char_attribute_alist_mapper): New function.
2813         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2814         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2815         (Fget_char_attribute): Likewise.
2816         (Fput_char_attribute): Likewise.
2817         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2818         of `remove_char_attribute'.
2819         (Fdefine_char): Return character.
2820         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2821         and `Vcharacter_name_table'.
2822         (complex_vars_of_mule_charset): Likewise
2823         `Vchar_attribute_hash_table'.
2824
2825 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2826
2827         * character.h (CHARC_CHARSET): New macro.
2828         (CHARC_CHARSET_ID): New macro.
2829         (CHARC_CODE_POINT): New macro.
2830         (CHARC_COLUMNS): New macro.
2831         (CHARC_TO_CHAR): New inline function.
2832         (CHARC_EQ): New inline function.
2833         (CHARC_ASCII_EQ): New inline function.
2834         (CHARC_IS_SPACE): New inline function.
2835         (ASCII_TO_CHARC): New inline function.
2836
2837         * char-ucs.h (encode_char_2): Deleted.
2838         (ENCODE_CHAR): Use `encode_char_1' again.
2839         (breakup_char_1): Likewise.
2840         (CHAR_TO_CHARC): New inline function.
2841
2842         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2843
2844 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2845
2846         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2847         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2848         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2849         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2850         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2851         `CHARC_IS_SPACE'.
2852         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2853
2854         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2855         `CHARC_CODE_POINT'.
2856         (x_output_display_block): Use `CHARC_CHARSET' and
2857         `CHARC_ASCII_EQ'.
2858
2859         * redisplay-tty.c (tty_output_display_block): Use
2860         `CHARC_ASCII_EQ'.
2861         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2862
2863         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2864
2865         * insdel.c (find_charsets_in_charc_string): Use
2866         `CHARC_CHARSET_ID'.
2867         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2868         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2869         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2870         (convert_charc_string_into_malloced_string): Likewise.
2871
2872 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2873
2874         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2875         instead of <Emchar_dynarr *> for buf; use
2876         `convert_bufbyte_string_into_charc_dynarr' instead of
2877         `convert_bufbyte_string_into_emchar_dynarr'; use
2878         `find_charsets_in_charc_string' instead of
2879         `find_charsets_in_emchar_string'.
2880
2881         * redisplay.h:
2882         - Include "character.h".
2883         (struct rune): New member `cglyph'; delete member `chr'.
2884
2885         * redisplay.c (redisplay_text_width_charc_string): New function;
2886         delete `redisplay_text_width_emchar_string'.
2887         (rtw_charc_dynarr): New variable; renamed from
2888         `rtw_emchar_dynarr'.
2889         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2890         `rtw_emchar_dynarr'; use
2891         `convert_bufbyte_string_into_charc_dynarr' instead of
2892         `convert_bufbyte_string_into_emchar_dynarr'; use
2893         `redisplay_text_width_charc_string' instead of
2894         `redisplay_text_width_emchar_string'.
2895         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2896         instead of `rtw_emchar_dynarr'; use
2897         `convert_bufbyte_string_into_charc_dynarr' instead of
2898         `convert_bufbyte_string_into_emchar_dynarr'.
2899         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2900         `redisplay_text_width_charc_string' instead of
2901         `redisplay_text_width_emchar_string'.
2902         (create_text_block): Modify for <struct rune> change.
2903         (generate_formatted_string_db): Likewise.
2904         (create_string_text_block): Likewise.
2905         (pixel_to_glyph_translation): Likewise.
2906
2907         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2908         instead of <const Emchar *>.
2909         (x_text_width): Likewise.
2910         (x_output_display_block): Use <Charc_dynarr *> instead
2911         <Emchar_dynarr *>; modify for <structure rune> change.
2912         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2913         *>.
2914
2915         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2916         <const Emchar *>; use `charc_string_displayed_columns' instead of
2917         `emchar_string_displayed_columns'.
2918         (tty_output_display_block): Use <Charc_dynarr *> instead of
2919         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2920         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2921         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2922         `tty_output_emchar_dynarr_dynarr'.
2923         (tty_output_charc_dynarr): New function; delete
2924         `tty_output_charc_dynarr'.
2925
2926         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2927         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2928         <Emchar_dynarr *> for buf; use
2929         `convert_bufbyte_string_into_charc_dynarr' instead of
2930         `convert_bufbyte_string_into_emchar_dynarr'.
2931
2932         * frame.c (title_string_charc_dynarr): New variable; renamed from
2933         `title_string_emchar_dynarr'.
2934         (generate_title_string): Use `title_string_charc_dynarr' instead
2935         of `title_string_emchar_dynarr'; use
2936         `convert_charc_string_into_malloced_string' instead of
2937         `convert_emchar_string_into_malloced_string'.
2938         (init_frame): Use `title_string_charc_dynarr' instead of
2939         `title_string_emchar_dynarr'.
2940
2941         * console.h:
2942         - Include "character.h".
2943         (struct console_methods): Use <const Charc *> instead of <const
2944         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2945         <Emchar_dynarr *> in output_string_method.
2946
2947         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2948         <Emchar_dynarr *>.
2949
2950         * console-stream.c (stream_text_width): Use <const Charc *>
2951         instead of <const Emchar *>.
2952
2953         * character.h (Charc_dynarr): New type.
2954
2955         * char-ucs.h (structure Charc): New structure; define new type
2956         `Charc'.
2957
2958         * char-lb.h (DECODE_CHAR): New inline function.
2959         (encode_char_1): New inline function.
2960         (ENCODE_CHAR): New macro.
2961         (structure Charc): New structure; define new type `Charc'.
2962
2963         * char-1byte.h (Vcharset_control_1): New macro.
2964         (Vcharset_latin_iso8859_1): New macro.
2965         (DECODE_CHAR): New inline function.
2966         (encode_char_1): New inline function.
2967         (ENCODE_CHAR): New macro.
2968         (structure Charc): New structure; define new type `Charc'.
2969
2970         * insdel.c (find_charsets_in_charc_string): New function; delete
2971         `find_charsets_in_emchar_string'.
2972         (charc_string_displayed_columns): New function; delete
2973         `emchar_string_displayed_columns'.
2974         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2975         `convert_bufbyte_string_into_emchar_dynarr'.
2976         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2977         `convert_charc_string_into_bufbyte_dynarr'.
2978         (convert_charc_string_into_malloced_string): New function; delete
2979         `convert_charc_string_into_malloced_string'.
2980
2981         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2982         `find_charsets_in_emchar_string'.
2983         (charc_string_displayed_columns): New prototype; delete
2984         `emchar_string_displayed_columns'.
2985         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2986         `convert_charc_string_into_bufbyte_dynarr'.
2987         (convert_charc_string_into_malloced_string): New prototype; delete
2988         `convert_charc_string_into_malloced_string'.
2989
2990 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2991
2992         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2993
2994 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2995
2996         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2997
2998         * char-ucs.h: Use <short> for <Charset_ID>.
2999
3000         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3001         <Charset_ID>.
3002
3003 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3004
3005         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3006         to 0.16.
3007
3008 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3009
3010         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3011         variable.
3012         (Qmorohashi_daikanwa): New variable.
3013         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3014         for `morohashi-daikanwa' attribute.
3015         (Fget_char_attribute): Likewise.
3016         (Fput_char_attribute): Likewise.
3017         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3018         has the same value of `ideograph-daikanwa'.
3019         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3020         (vars_of_mule_charset): Setup
3021         `Vcharacter_morohashi_daikanwa_table'.
3022
3023 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3024
3025         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3026         attributes.
3027         (add_charset_to_list_mapper): Add `key' instead of
3028         `XCHARSET_NAME (value)' to return aliases.
3029
3030 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3031
3032         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3033         variable.
3034         (Vcharacter_ideographic_strokes_table): New variable.
3035         (Qideographic_radical): New variable.
3036         (Qideographic_strokes): New variable.
3037         (Fchar_attribute_alist): Use
3038         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3039         attribute; use `Vcharacter_ideographic_strokes_table' for
3040         `ideographic-strokes' attribute.
3041         (Fget_char_attribute): Likewise.
3042         (Fput_char_attribute): Likewise.
3043         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3044         `ideographic-strokes'.
3045         (vars_of_mule_charset): Setup
3046         `Vcharacter_ideographic_radical_table' and
3047         `Vcharacter_ideographic_strokes_table'.
3048
3049 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3050
3051         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3052         (Qtotal_strokes): New variable.
3053         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3054         `total-strokes' attribute.
3055         (Fget_char_attribute): Likewise.
3056         (Fput_char_attribute): Likewise.
3057         (syms_of_mule_charset): Add new symbol `total-strokes'.
3058         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3059
3060 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3061
3062         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3063         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3064         are found.
3065         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3066         `->decomposition' attribute.
3067         (Fput_char_attribute): Likewise.
3068         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3069
3070 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3071
3072         * mule-charset.c (decoding_table_check_elements): New function.
3073         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3074
3075 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3076
3077         * mule-charset.c (Fset_charset_mapping_table): Use
3078         `put_char_ccs_code_point'.
3079
3080 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3081
3082         * mule-charset.c (decoding_table_put_char): New inline function.
3083         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3084
3085 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3086
3087         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3088         (XCHARSET_BYTE_SIZE): New macro.
3089         (decoding_table_remove_char): New inline function.
3090         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3091         `decoding_table_remove_char'.
3092         (remove_char_ccs): Use `decoding_table_remove_char'.
3093         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3094
3095 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3096
3097         * mule-charset.c (Vcharacter_name_table): New variable.
3098         (Qname): New variable.
3099         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3100         attribute.
3101         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3102         `Vcharacter_name_table' for `name' attribute.
3103         (Fremove_char_attribute): Use function `remove_char_ccs'.
3104         (put_char_ccs_code_point): New function.
3105         (remove_char_ccs): New function.
3106         (syms_of_mule_charset): Add new symbol `name'.
3107         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3108
3109 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3110
3111         * mule-charset.c (make_byte_table): Add new argument `older'.
3112         (make_char_id_table): Likewise.
3113         (copy_char_id_table): Comment out because it is not used.
3114         (put_char_id_table): Modify for `make_byte_table'.
3115         (Fput_char_attribute): Make encoding_table as older object;
3116         inherit older bit of `Vcharacter_composition_table'.
3117         (mark_charset): Don't mark `cs->encoding_table'.
3118         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3119         normal object; make `Vcharacter_composition_table' as an older
3120         object; delete staticpro for `Vcharacter_composition_table'; make
3121         `Vcharacter_variant_table' as a normal object.
3122
3123         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3124         (mark_object): Don't check older object in UTF-2000.
3125
3126         * lrecord.h (struct lrecord_header): Add new member `older' in
3127         UTF-2000.
3128         (set_lheader_implementation): Setup `SLI_header->older' in
3129         UTF-2000.
3130         (set_lheader_older_implementation): New macro in UTF-2000.
3131         (OLDER_RECORD_P): New macro in UTF-2000.
3132         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3133         (alloc_older_lcrecord): New prototype in UTF-2000.
3134         (alloc_older_lcrecord_type): New macro in UTF-2000.
3135
3136 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3137
3138         * mule-charset.c (byte_table_description): Use
3139         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3140         (char_id_table_description): Delete bogus `, 1'.
3141         (Fget_char_attribute): Refer encoding_table of each coded-charset
3142         to get value of coded-charset attribute of a character.
3143         (Fput_char_attribute): Use `make_older_vector' instead of
3144         `make_vector'; use encoding_table of each coded-charset to store
3145         value of coded-charset attribute of a character.
3146         (Fremove_char_attribute): Use encoding_table of each coded-charset
3147         to store value of coded-charset attribute of a character.
3148         (mark_charset): Mark `cs->encoding_table'; don't mark
3149         `cs->decoding_table'.
3150         (charset_description): Add description of new member
3151         `encoding_table'.
3152         (make_charset): Initialize `encoding_table'.
3153
3154         * char-ucs.h (struct Lisp_Charset): Add new member
3155         `encoding_table'.
3156         (CHARSET_ENCODING_TABLE): New macro.
3157         (XCHARSET_ENCODING_TABLE): New macro.
3158         (charset_code_point): New implementation.
3159         (encode_char_1): Likewise.
3160
3161         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3162         (disksave_object_finalization_1): Call finalizers of
3163         `all_older_lcrecords' in UTF-2000.
3164         (make_older_vector): New function in UTF-2000.
3165         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3166         UTF-2000.
3167
3168         * lisp.h (make_older_vector): New prototype in UTF-2000.
3169
3170 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3171
3172         * lrecord.h (enum lrecord_type): Rename
3173         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3174
3175         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3176         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3177         `get_char_code_table'.
3178
3179         * mule-charset.c (mark_char_id_table): Renamed from
3180         `mark_char_code_table'.
3181         (char_id_table_equal): Renamed from `char_code_table_equal'.
3182         (char_id_table_hash): Renamed from `char_code_table_hash'.
3183         (make_char_id_table): Renamed from `make_char_code_table'.
3184         (copy_char_id_table): Renamed from `copy_char_code_table'.
3185         (get_char_id_table): Renamed from `get_char_code_table'.
3186         (put_char_id_table): Renamed from `put_char_code_table'.
3187         (to_char_id): Renamed from `to_char_code'.
3188
3189         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3190         `Lisp_Char_Code_Table'.
3191         (char_id_table): Renamed from `char_code_table'.
3192         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3193         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3194         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3195         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3196         (get_char_id_table): Renamed from `get_char_code_table'.
3197
3198 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3199
3200         * lrecord.h (enum lrecord_type): Rename
3201         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3202
3203         * mule-charset.c (mark_byte_table): Renamed from
3204         `mark_char_byte_table'.
3205         (byte_table_equal): Renamed from `char_byte_table_equal'.
3206         (byte_table_hash): Renamed from `byte_table_hash'.
3207         (make_byte_table): Renamed from `make_byte_table'.
3208         (copy_byte_table): Renamed from `copy_char_byte_table'.
3209
3210         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3211         `Lisp_Char_Byte_Table'.
3212         (byte_table): Renamed from `char_byte_table'.
3213         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3214         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3215         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3216         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3217
3218 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3219
3220         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3221         (dfc_convert_to_internal_format): Likewise.
3222         
3223         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3224         * text-coding.c (Fcoding_system_alias_p): New function.
3225         * text-coding.c (Fcoding_system_aliasee): New function.
3226         * text-coding.c (append_suffix_to_symbol): New function.
3227         * text-coding.c (dangling_coding_system_alias_p): New function.
3228         * text-coding.c (Ffind_coding_system):
3229         * text-coding.c (Fcopy_coding_system):
3230         * text-coding.c (encode_coding_no_conversion):
3231         * text-coding.c (syms_of_file_coding):
3232         * text-coding.c (vars_of_file_coding):
3233         Rewrite coding system alias code.
3234         Allow nested aliases, like symbolic links.
3235         Allow redefinition of coding system aliases.
3236         Prevent existence of dangling coding system aliases.
3237         Eliminate convert_to_external_format.
3238         Eliminate convert_to_internal_format.
3239         
3240         * text-coding.c: Change enum eol_type to eol_type_t.
3241
3242 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3243
3244         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3245         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3246
3247         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3248         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3249
3250 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3251
3252         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3253         `ideograph-daikanwa'.
3254
3255         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3256         (Vcharset_ucs_bmp): Likewise.
3257         (Vcharset_mojikyo): Add new extern variable definition.
3258         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3259         (Vcharset_latin_iso8859_3): Likewise.
3260         (Vcharset_latin_iso8859_4): Likewise.
3261         (Vcharset_latin_iso8859_9): Likewise.
3262         (Vcharset_latin_viscii_lower): Likewise.
3263         (Vcharset_latin_viscii_upper): Likewise.
3264         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3265         `mojikyo' code-point is used to decode.
3266         (encode_char_2): New function [to convert `mojikyo' code-point to
3267         Mojikyo font encoding].
3268         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3269         (breakup_char_1): Likewise.
3270         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3271
3272 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3273
3274         * text-coding.c (Fmake_coding_system): Add document about
3275         `disable-composition' property.
3276
3277 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3278
3279         * text-coding.c (Qdisable_composition): New variable; delete
3280         `Qcomposite'.
3281         (Fmake_coding_system): Add new property `disable-composite';
3282         delete property `composite'.
3283         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3284         instead of `!CODING_SYSTEM_COMPOSITE'.
3285         (syms_of_file_coding): Add new symbol `disable-composition';
3286         delete symbol `composite'.
3287
3288         * file-coding.h (struct Lisp_Coding_System): Add
3289         `disable_composition'; delete `enable_composition'.
3290         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3291         `CODING_SYSTEM_COMPOSITE'.
3292         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3293         `XCODING_SYSTEM_COMPOSITE'.
3294
3295 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3296
3297         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3298         to 0.15.
3299
3300 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3301
3302         * text-coding.c (Qcomposite): New variable.
3303         (Fmake_coding_system): Add new property `composite'.
3304         (struct decoding_stream): Add `combined_char_count',
3305         `combined_chars' and `combining_table' in UTF-2000.
3306         (COMPOSE_FLUSH_CHARS): New macro.
3307         (COMPOSE_ADD_CHAR): New macro.
3308         (reset_decoding_stream): Reset `str->combined_char_count' and
3309         `str->combining_table' in UTF-2000.
3310         (decode_coding_iso2022): Modify for character-decomposition.
3311         (syms_of_file_coding): Add new symbol `composite'.
3312
3313 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3314
3315         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3316         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3317         of `Vcharacter_composition_table' if `->decomposition' property
3318         has only 1 element.
3319         (Qlatin_tcvn5712): New variable.
3320         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3321         (complex_vars_of_mule_charset): Add new coded-charset
3322         `latin-tcvn5712'.
3323
3324         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3325
3326 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3327
3328         * file-coding.h (struct Lisp_Coding_System): Add
3329         `enable_composition'.
3330         (CODING_SYSTEM_COMPOSITE): New macro.
3331         (XCODING_SYSTEM_COMPOSITE): New macro.
3332
3333 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3334
3335         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3336
3337 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3338
3339         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3340         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3341
3342 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3343
3344         * mule-charset.c (Vcharset_mojikyo): New variable.
3345         (Fdefine_char): Don't use coded-charset which does not have
3346         non-builtin character range to allocate character-id.
3347         (Qmojikyo): New variable.
3348         (syms_of_mule_charset): Add new symbol `mojikyo'.
3349         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3350
3351         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3352         (LEADING_BYTE_MOJIKYO): New macro.
3353         (MIN_CHAR_MOJIKYO): New macro.
3354         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3355         (MAX_CHAR_MOJIKYO): New macro.
3356
3357 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3358
3359         * mule-charset.c (remove_char_attribute): Fixed.
3360
3361 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3362
3363         * mule-charset.c (remove_char_attribute): New function.
3364         (Fremove_char_attribute): New function.
3365         (encode_builtin_char_1): Comment out builtin-support for
3366         greek-iso8859-7 and cyrillic-iso8859-5.
3367         (Fdecode_char): Check `code' is an integer.
3368         (syms_of_mule_charset): Add `remove-char-attribute'.
3369         (MIN_CHAR_GREEK): Deleted.
3370         (MAX_CHAR_GREEK): Likewise.
3371         (MIN_CHAR_CYRILLIC): Likewise.
3372         (MAX_CHAR_CYRILLIC): Likewise.
3373         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3374         MAX_CHAR_GREEK for `greek-iso8859-7'.
3375
3376         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3377         (MAX_CHAR_GREEK): Likewise.
3378         (MIN_CHAR_CYRILLIC): Likewise.
3379         (MAX_CHAR_CYRILLIC): Likewise.
3380
3381 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3382
3383         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3384         format is used without `ucs' property.
3385         (Fdecode_char): Fix problem with GR representation.
3386         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3387         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3388
3389 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3390
3391         * mule-charset.c (make_builtin_char): New function.
3392         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3393         (Fset_charset_mapping_table): Modify for new representation of
3394         code-point.
3395         (Fdecode_char): New function.
3396         (syms_of_mule_charset): Add new builtin function `decode-char' in
3397         UTF-2000.
3398
3399         * char-ucs.h (make_builtin_char): New prototype.
3400         (DECODE_CHAR): New inline function.
3401         (MAKE_CHAR): Use `DECODE_CHAR'.
3402
3403 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3404
3405         * text-coding.c (parse_charset_conversion_specs): Use
3406         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3407         `XCHARSET_TYPE'.
3408         (iso2022_designate): Likewise.
3409
3410         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3411         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3412
3413         * mule-charset.c (Vcharset_ucs): New variable.
3414         (print_charset): Change design; use `CHARSET_CHARS' and
3415         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3416         (make_charset): Change signature to specify `chars' and
3417         `dimension' instead of `type'.
3418         (range_charset_code_point): Modify for 256^n-set.
3419         (encode_builtin_char_1): Encode as `ucs' in default.
3420         (Fmake_charset): Modify for `make_charset'.
3421         (Fmake_reverse_direction_charset): Likewise.
3422         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3423         UTF-2000.
3424         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3425         for `make_charset'.
3426
3427         * char-ucs.h (Vcharset_ucs): New variable.
3428         (LEADING_BYTE_UCS): New macro.
3429         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3430         and `chars' to `unsigned short' from `unsigned int'.
3431         (CHARSET_TYPE): Deleted.
3432         (XCHARSET_TYPE): Deleted.
3433
3434 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3435
3436         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3437
3438         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3439         (ENCODE_CHAR): New macro.
3440
3441 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3442
3443         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3444         to 0.14 (Kawachi-Katakami).
3445
3446 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3447
3448         * text-coding.c (char_encode_shift_jis): Modify for
3449         `charset_code_point'.
3450         (char_encode_iso2022): Likewise.
3451
3452         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3453         (integer) instead of list of <Lisp_Object>s (integers) as the
3454         format of code-point of a coded-charset.
3455         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3456         (encode_builtin_char_1): New function; delete
3457         `split_builtin_char'.
3458         (charset_code_point): Return <int> instead of <Lisp_Object>.
3459         (Fsplit_char): Don't use `SPLIT_CHAR'.
3460
3461         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3462         prototype for `split_builtin_char'.
3463         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3464         (charset_code_point): Likewise.
3465         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3466         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3467
3468 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3469
3470         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3471         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3472
3473 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3474
3475         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3476
3477         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3478         (MAX_CHAR_OBS_94x94): Deleted.
3479
3480 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3481
3482         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3483
3484         * char-ucs.h (MAX_CHAR_BMP): New macro.
3485
3486 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3487
3488         * text-coding.c: Sync with r21-2-24.
3489
3490 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3491
3492         * file-coding.c: Modify for UTF-2000.
3493
3494 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3495
3496         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3497         to 0.13 (Takaida).
3498
3499 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3500
3501         * mule-charset.c (split_builtin_char): Delete builtin support for
3502         `katakana-jisx0201'.
3503         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3504         BMP area in builtin representation.
3505
3506         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3507         `Vcharset_katakana_jisx0201'.
3508
3509 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3510
3511         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3512         (Qisolated): New variable.
3513         (Qinitial): New variable.
3514         (Qmedial): New variable.
3515         (Qfinal): New variable.
3516         (Qvertical): New variable.
3517         (Qsmall): New variable.
3518         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3519         `Qvertical' and `Qsmall'.
3520         (Qmojikyo_pj_[1 .. 21]): New variable.
3521         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3522         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3523         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3524         .. 21]'.
3525
3526 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3527
3528         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3529         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3530         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3531
3532 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3533
3534         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3535         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3536         BMP.
3537         (Qjapanese_jisx0208_1990): New variable.
3538         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3539         (complex_vars_of_mule_charset): Add new coded-charset
3540         `japanese-jisx0208-1990'.
3541
3542         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3543         (MIN_CHAR_JIS_X0208_1990): New macro.
3544         (MAX_CHAR_JIS_X0208_1990): New macro.
3545
3546 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3547
3548         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3549         coded-charset is not found.
3550
3551 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3552
3553         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3554         (Fdefine_char): Use `Fmake_char'.
3555
3556 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3557
3558         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3559         (Vcharset_hiragana_jisx0208): Deleted.
3560         (Vcharset_katakana_jisx0208): Deleted.
3561         (Qideograph_daikanwa): New variable.
3562         (Qhiragana_jisx0208): Deleted.
3563         (Qkatakana_jisx0208): Deleted.
3564         (split_builtin_char): Split `ideograph-daikanwa'.
3565         (Fsplit_char): New implementation for UTF-2000.
3566         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3567         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3568         (complex_vars_of_mule_charset): Add new coded-charset
3569         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3570         `katakana-jisx0208'.
3571
3572         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3573         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3574         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3575         (MIN_CHAR_DAIKANWA): New macro.
3576         (MAX_CHAR_DAIKANWA): New macro.
3577
3578 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3579
3580         * data.c (Fstring_to_number): Don't recognize floating point if
3581         base is not 10.
3582
3583 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3584
3585         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3586
3587 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3588
3589         * mule-charset.c (Qsquare): New variable.
3590         (to_char_code): Add `Qsquare'.
3591         (syms_of_mule_charset): Add new symbol `square'.
3592
3593 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3594
3595         * mule-charset.c (Qcircle): New variable.
3596         (to_char_code): Add `Qcircle'.
3597         (syms_of_mule_charset): Add new symbol `circle'.
3598
3599 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3600
3601         * mule-charset.c (Qfont): New variable.
3602         (to_char_code): Add `Qfont'.
3603         (syms_of_mule_charset): Add new symbol `font'.
3604
3605 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3606
3607         * mule-charset.c (Qsub): New variable.
3608         (to_char_code): Add `Qsub'.
3609         (syms_of_mule_charset): Add new symbol `sub'.
3610
3611 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3612
3613         * mule-charset.c (Fput_char_attribute): Convert each element of
3614         VALUE to GL position if ATTRIBUTE is a GR-set,
3615
3616 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3617
3618         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3619         coded-charset is a GR-set.
3620
3621 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3622
3623         * mule-charset.c (Fput_char_attribute): Check each element of
3624         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3625
3626 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3627
3628         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3629         UTF-2000.
3630         (Qethiopic_ucs): New variable in UTF-2000.
3631         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3632         (complex_vars_of_mule_charset): Add new coded-charset
3633         `ethiopic-ucs' in UTF-2000.
3634
3635         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3636         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3637         9)'.
3638         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3639         10)'.
3640         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3641
3642 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3643
3644         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3645         `ascii'.
3646
3647 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3648
3649         * mule-charset.c (Vcharacter_variant_table): New variable.
3650         (Q_ucs): New variable.
3651         (Fchar_variants): New function.
3652         (Fput_char_attribute): Register `->ucs' value to
3653         `Vcharacter_variant_table'.
3654         (syms_of_mule_charset): Add new function `char-variants' and new
3655         symbol `->ucs'.
3656         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3657
3658 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3659
3660         * mule-charset.c (get_char_code_table): Allow negative character
3661         code.
3662         (put_char_code_table): Likewise.
3663         (Vcharacter_composition_table): New variable.
3664         (Q_decomposition): New variable.
3665         (Qwide): New variable.
3666         (Qnarrow): New variable.
3667         (Qcompat): New variable.
3668         (QnoBreak): New variable.
3669         (Qsuper): New variable.
3670         (Qfraction): New variable.
3671         (to_char_code): New function.
3672         (Fget_composite_char): New function.
3673         (Fput_char_attribute): Register `->decomposition' value to
3674         `Vcharacter_composition_table'.
3675         (syms_of_mule_charset): Add new function `get-composite-char', new
3676         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3677         `super' and `fraction'.
3678         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3679
3680 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3681
3682         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3683         character; copy the return value.
3684
3685 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3686
3687         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3688
3689         * mule-charset.c (range_charset_code_point): Must use make_int.
3690         (split_builtin_char): New function.
3691
3692 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3693
3694         * mule-charset.c (char_byte_table): Change name from
3695         "char-code-table" to "char-byte-table".
3696         (mark_char_code_table): New function.
3697         (char_code_table_equal): New function.
3698         (char_code_table_hash): New function.
3699         (char_code_table_description): New constant.
3700         (char_code_table): New type.
3701         (make_char_code_table): New function.
3702         (copy_char_code_table): New function.
3703         (get_char_code_table): Modify for `char_code_table' type.
3704         (put_char_code_table): Likewise.
3705         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3706         (Kashiwara).
3707
3708         * char-ucs.h (char_code_table): New type.
3709         (XCHAR_CODE_TABLE): New macro.
3710         (XSETCHAR_CODE_TABLE): New macro.
3711         (CHAR_CODE_TABLE_P): New macro.
3712         (GC_CHAR_CODE_TABLE_P): New macro.
3713         (struct Lisp_Char_Code_Table): New structure.
3714
3715 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3716
3717         * mule-charset.c (Fmake_charset): Setup byte_offset for
3718         {94|96}^n-set.
3719
3720 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3721
3722         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3723         character.
3724
3725 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3726
3727         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3728         is found.
3729
3730 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3731
3732         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3733         charset, it is regarded as a charset.
3734         (put_char_attribute): New function in UTF-2000.
3735         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3736         charset, mapping-table of the charset is modified.
3737         (Fdefine_char): New function in UTF-2000.
3738         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3739         `Fput_char_attribute'.
3740         (syms_of_mule_charset): Add new function `define-char' and new
3741         symbol `ucs' in UTF-2000.
3742         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3743
3744 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3745
3746         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3747         non-UTF-2000 configuration.
3748
3749 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3750
3751         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3752         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3753
3754         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3755         deleted.
3756         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3757         (Fset_charset_mapping_table): Likewise.
3758
3759         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3760         (CHARSET_ENCODING_TABLE): Delete.
3761         (XCHARSET_ENCODING_TABLE): Delete.
3762         (charset_code_point): New interface.
3763
3764 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3765
3766         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3767         instead of `charset_get_byte1' and `charset_get_byte2'.
3768
3769         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3770         (charset_get_byte2): Deleted.
3771
3772 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3773
3774         * char-ucs.h (SPLIT_CHAR): New inline function.
3775         (breakup_char_1): Use `SPLIT_CHAR'.
3776
3777         * mule-charset.c (range_charset_code_point): New function.
3778         (charset_code_point): New function.
3779
3780         * char-ucs.h (range_charset_code_point): New interface.
3781         (breakup_char_1): Use `range_charset_code_point'.
3782
3783 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3784
3785         * mule-charset.c (Fmake_charset): Delete unused local variable
3786         `code_offset'.
3787
3788         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3789         (breakup_char_1): Find a charset and code-point in
3790         `Vcharacter_attribute_table'.
3791
3792 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3793
3794         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3795         to 0.10 (Yao).
3796
3797 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3798
3799         * mule-charset.c (Vcharacter_attribute_table): New variable.
3800         (Fchar_attribute_alist): New function.
3801         (Fget_char_attribute): New function.
3802         (Fput_char_attribute): New function.
3803         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3804         too.
3805         (syms_of_mule_charset): Add new function `char-attribute-alist',
3806         `get-char-attribute' and `put-char-attribute'.
3807         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3808
3809 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3810
3811         * mule-charset.c (Fmake_charset): Just use
3812         `get_unallocated_leading_byte'.
3813
3814         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3815         sets; don't use final-byte based number for private sets.
3816
3817 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3818
3819         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3820         integer.
3821
3822 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3823
3824         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3825         to 0.9.
3826
3827 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3828
3829         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3830         of `CHAR_LEADING_BYTE' in UTF-2000.
3831
3832         * insdel.c (find_charsets_in_bufbyte_string): Use
3833         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3834         (find_charsets_in_emchar_string): Likewise.
3835
3836         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3837         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3838
3839         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3840         (CHAR_CHARSET_ID): New macro.
3841
3842 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3843
3844         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3845         charset-id - MIN_LEADING_BYTE.
3846         (put_char_table): Likewise.
3847
3848 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3849
3850         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3851         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3852         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3853         (CHARSET_ID_OFFSET): New macro.
3854         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3855         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3856         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3857         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3858         4).
3859         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3860         5).
3861         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3862         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3863         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3864         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3865         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3866
3867 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3868
3869         * mule-charset.c (next_allocated_leading_byte): New variable in
3870         UTF-2000.
3871         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3872         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3873         (get_unallocated_leading_byte): Simply use
3874         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3875         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3876         UTF-2000.
3877
3878         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3879         (MAX_LEADING_BYTE_PRIVATE): New macro.
3880         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3881         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3882
3883 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3884
3885         * mule-charset.c (Fmake_charset): Allocate final-byte based
3886         charset-id for 94-set, 96-set and 94x94-set.
3887
3888 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3889
3890         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3891         ambiguous `else'.
3892         (Fmake_charset): Likewise.
3893         (complex_vars_of_mule_charset): Modify the font registry of
3894         `ucs-bmp' not to match `Ethiopic-Unicode'.
3895
3896 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3897
3898         * mule-charset.c (complex_vars_of_mule_charset): Add font
3899         registory of `ucs-bmp'.
3900
3901 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3902
3903         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3904         coded-charsets in `default-coded-charset-priority-list' when
3905         breaking up a character.
3906
3907         * mule-charset.c (Vcharset_latin_viscii): New variable.
3908         (Qlatin_viscii): New variable.
3909         (make_charset): Don't use `decoding_table'.
3910         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3911         byte_offset.
3912         (Fset_charset_mapping_table): New implementation.
3913         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3914         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3915         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3916         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3917         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3918         charset `latin_viscii'.
3919
3920         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3921         (CHARSET_TYPE_94X94): Change to 1 from 2.
3922         (CHARSET_TYPE_96): Change to 2 from 1.
3923         (CHARSET_TYPE_128): New macro.
3924         (CHARSET_TYPE_128X128): Change to 5 from 4.
3925         (CHARSET_TYPE_256): New macro.
3926         (CHARSET_TYPE_256X256): Change to 7 from 5.
3927         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3928
3929 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3930
3931         * text-coding.c (char_encode_shift_jis): Refer
3932         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3933         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3934
3935         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3936         (char_byte_table_equal): New function in UTF-2000.
3937         (char_byte_table_hash): New function in UTF-2000.
3938         (char_byte_table_description): New constant in UTF-2000.
3939         (char_byte_table): New type in UTF-2000.
3940         (make_char_byte_table): New function in UTF-2000.
3941         (copy_char_byte_table): New function in UTF-2000.
3942         (make_char_code_table): New macro in UTF-2000.
3943         (get_char_code_table): New function in UTF-2000.
3944         (put_char_code_table): New function in UTF-2000.
3945         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3946         (charset_description): Add setting in UTF-2000.
3947         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3948         `CHARSET_TO_BYTE1_TABLE(cs)'.
3949         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3950         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3951         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3952         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3953         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3954         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3955         `CHARSET_TO_BYTE2_TABLE(cs)'.
3956
3957         * char-ucs.h (char_byte_table): New type.
3958         (XCHAR_BYTE_TABLE): New macro.
3959         (XSETCHAR_BYTE_TABLE): New macro.
3960         (CHAR_BYTE_TABLE_P): New macro.
3961         (GC_CHAR_BYTE_TABLE_P): New macro.
3962         (struct Lisp_Char_Byte_Table): New structure.
3963         (get_char_code_table): New interface.
3964         (Emchar_to_byte_table): Deleted.
3965         (get_byte_from_character_table): Deleted.
3966         (struct Lisp_Charset): Add `encoding_table'; delete
3967         `to_byte1_table' and `to_byte2_table'.
3968         (CHARSET_ENCODING_TABLE): New macro.
3969         (CHARSET_TO_BYTE1_TABLE): Deleted.
3970         (CHARSET_TO_BYTE2_TABLE): Deleted.
3971         (XCHARSET_ENCODING_TABLE): New macro.
3972         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3973         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3974
3975 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3976
3977         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3978         `vietnamese-viscii-*'.
3979
3980 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3981
3982         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3983         (Qvietnamese_viscii_upper): New variable.
3984         (Fdefine_charset_alias): New function.
3985         (syms_of_mule_charset): Add new function `define-charset-alias'.
3986         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3987         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3988         `latin-viscii-*'.
3989
3990 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3991
3992         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3993         (MAX_CHAR_OBS_94x94): New macro.
3994         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3995         for 94x94 sets.
3996
3997         * mule-charset.c (put_byte_from_character_table): Change unit size
3998         from 128 to 256.
3999         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4000         not defined.
4001         (Fmake_reverse_direction_charset): Modify dummy argument of
4002         `make_charset' for non-UTF-2000 environment.
4003
4004 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4005
4006         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4007
4008         * mule-charset.c (destroy_byte_from_character_table): New macro.
4009         (latin_jisx0201_to_ucs): Deleted.
4010         (latin_iso8859_2_to_ucs): Deleted.
4011         (latin_iso8859_3_to_ucs): Deleted.
4012         (latin_iso8859_4_to_ucs): Deleted.
4013         (latin_iso8859_9_to_ucs): Deleted.
4014         (latin_viscii_lower_to_ucs): Deleted.
4015         (latin_viscii_upper_to_ucs): Deleted.
4016         (mark_charset): Mark `cs->decoding_table'.
4017         (Fcharset_mapping_table): Fix DOC-string.
4018         (Fset_charset_mapping_table): New function.
4019         (syms_of_mule_charset): Add nwe function
4020         `set-charset-mapping-table'.
4021         (complex_vars_of_mule_charset): Don't setup and use
4022         `latin_*_to_ucs'.
4023
4024 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4025
4026         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4027         charset.
4028
4029 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4030
4031         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4032         (Vcharset_katakana_jisx0208): New variable.
4033         (Qhiragana_jisx0208): New variable.
4034         (Qkatakana_jisx0208): New variable.
4035         (make_charset): Add new argument `byte_offset'.
4036         (charset_get_byte1): Modify for new coded-charset definition; use
4037         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4038         `XCHARSET_BYTE_OFFSET'.
4039         (Fmake_charset): Modify for `make_charset'.
4040         (Fmake_reverse_direction_charset): Likewise.
4041         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4042         `katakana-jisx0208'.
4043         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4044         `.'  in font registry of charset `katakana-jisx0201',
4045         `latin-jisx0201', `vietnamese-viscii-lower' and
4046         `vietnamese-viscii-upper'; modify DOC-string of charset
4047         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4048         registry of charset `japanese-jisx0208' not to use font for JIS
4049         X0208:1990; add new charset `hiragana-jisx0208' and
4050         `katakana-jisx0208'.
4051
4052         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4053         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4054         (struct Lisp_Charset): Add `byte_offset'.
4055         (CHARSET_BYTE_OFFSET): New macro.
4056         (XCHARSET_UCS_MIN): New macro.
4057         (XCHARSET_UCS_MAX): New macro.
4058         (XCHARSET_CODE_OFFSET): New macro.
4059         (XCHARSET_BYTE_OFFSET): New macro.
4060         (MIN_CHAR_HIRAGANA): New macro.
4061         (MAX_CHAR_HIRAGANA): New macro.
4062         (MIN_CHAR_KATAKANA): New macro.
4063         (MAX_CHAR_KATAKANA): New macro.
4064         (MAKE_CHAR): Modify for new coded-charset definition; use
4065         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4066         `XCHARSET_BYTE_OFFSET'.
4067
4068 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4069
4070         * mule-charset.c (CHAR96): Deleted.
4071         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4072         <Lisp_Object>.
4073         (latin_iso8859_2_to_ucs): Likewise.
4074         (latin_iso8859_3_to_ucs): Likewise.
4075         (latin_iso8859_4_to_ucs): Likewise.
4076         (latin_iso8859_9_to_ucs): Likewise.
4077         (latin_viscii_lower_to_ucs): Likewise.
4078         (latin_viscii_upper_to_ucs): Likewise.
4079         (latin_tcvn5712_to_ucs): Commented out.
4080         (make_charset): Change type of argument `decoding_table' from
4081         <Emchar*> to <Lisp_Object> [vector of characters].
4082         (Fmake_charset): Modify for `make_charset'.
4083         (Fmake_reverse_direction_charset): Likewise.
4084         (Fcharset_mapping_table): New function in UTF-2000.
4085         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4086         UTF-2000.
4087         (complex_vars_of_mule_charset): Modify for type change of
4088         `*_to_ucs'; modify for `make_charset'.
4089
4090         * char-ucs.h (struct Lisp_Charset): Change type of
4091         `decoding_table' from <Emchar*> to <Lisp_Object>.
4092         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4093
4094 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4095
4096         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4097         error with non-UTF-2000-Mule.
4098
4099 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4100
4101         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4102         in lisp again].
4103         (Vcharset_chinese_cns11643_4): Likewise.
4104         (Vcharset_chinese_cns11643_5): Likewise.
4105         (Vcharset_chinese_cns11643_6): Likewise.
4106         (Vcharset_chinese_cns11643_7): Likewise.
4107         (Qchinese_cns11643_3): Likewise.
4108         (Qchinese_cns11643_4): Likewise.
4109         (Qchinese_cns11643_5): Likewise.
4110         (Qchinese_cns11643_6): Likewise.
4111         (Qchinese_cns11643_7): Likewise.
4112         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4113         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4114         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4115         (complex_vars_of_mule_charset): Likewise.
4116
4117 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4118
4119         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4120         96-set.
4121         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4122         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4123
4124 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4125
4126         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4127         0xFF60.
4128         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4129         (breakup_char_1): Likewise.
4130
4131         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4132         one of them includes the specified character.
4133
4134 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4135
4136         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4137
4138 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4139
4140         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4141
4142 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4143
4144         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4145         definition for non-UTF-2000 Mule.
4146         (latin_iso8859_3_to_ucs): Likewise.
4147         (latin_iso8859_4_to_ucs): Likewise.
4148         (latin_iso8859_9_to_ucs): Likewise.
4149         (latin_jisx0201_to_ucs): Likewise.
4150         (MIN_CHAR_THAI): Likewise.
4151         (MAX_CHAR_THAI): Likewise.
4152         (MIN_CHAR_GREEK): Likewise.
4153         (MAX_CHAR_GREEK): Likewise.
4154         (MIN_CHAR_HEBREW): Likewise.
4155         (MAX_CHAR_HEBREW): Likewise.
4156         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4157         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4158         (MIN_CHAR_CYRILLIC): Likewise.
4159         (MAX_CHAR_CYRILLIC): Likewise.
4160
4161 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4162
4163         * char-ucs.h (breakup_char_1): Use
4164         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4165         thai-tis620 and katakana-jisx0201 area.
4166
4167 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4168
4169         * char-ucs.h (breakup_char_1): Use
4170         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4171         area.
4172
4173         * text-coding.c (reset_encoding_stream): Fixed.
4174         (char_encode_ucs4): Delete `& 255'.
4175
4176         * char-ucs.h (breakup_char_1): Use
4177         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4178
4179 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4180
4181         * file-coding.c (Fmake_coding_system): Don't set up
4182         `codesys->fixed.size'.
4183         (encode_coding_no_conversion): Don't refer
4184         `str->codesys->fixed.size'.
4185
4186 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4187
4188         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4189         (latin_a_char_to_byte1): Deleted.
4190         (latin_a_char_to_byte2): Deleted.
4191
4192 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4193
4194         * mule-charset.c (make_charset): Add new argument `ucs_min',
4195         `ucs_max' and `code_offset'.
4196         (charset_get_byte1): New implementation [delete specific charset
4197         depended implementations].
4198         (Fmake_charset): Modify for `make_charset'.
4199         (Fmake_reverse_direction_charset): Likewise.
4200         (complex_vars_of_mule_charset): Likewise.
4201
4202         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4203         `code_offset'.
4204         (CHARSET_UCS_MIN): New macro.
4205         (CHARSET_UCS_MAX): New macro.
4206         (CHARSET_CODE_OFFSET): New macro.
4207         (MAKE_CHAR): Delete charset depended definitions [except
4208         katakana-jisx0201].
4209
4210 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4211
4212         * char-ucs.h (breakup_char_1): Use
4213         `Vdefault_coded_charset_priority_list' for C0-Controls,
4214         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4215
4216 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4217
4218         * char-ucs.h (charset_get_byte1): New function.
4219         (XCHARSET_GET_BYTE1): Deleted.
4220         (charset_get_byte2): New function.
4221         (XCHARSET_GET_BYTE2): Deleted.
4222         (Vdefault_coded_charset_priority_list): New external variable.
4223         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4224         `Vdefault_preferred_coded_charset_list'.
4225
4226         * mule-charset.c (charset_get_byte1): New function.
4227         (charset_get_byte2): New function.
4228         (Vdefault_coded_charset_priority_list): New variable.
4229         (vars_of_mule_charset): Add new variable
4230         `default-coded-charset-priority-list'.
4231
4232 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4233
4234         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4235         (XCHARSET_GET_BYTE2): New inline function.
4236         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4237         `XCHARSET_GET_BYTE2'.
4238
4239 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4240
4241         * mule-charset.c (make_charset): Initialize
4242         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4243         NULL if table is not defined.
4244
4245 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4246
4247         * text-coding.c (char_encode_shift_jis): Use
4248         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4249         `ucs_to_latin_jisx0201'.
4250
4251         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4252         (ucs_to_latin_iso8859_2): Deleted.
4253         (ucs_to_latin_iso8859_3): Deleted.
4254         (ucs_to_latin_iso8859_4): Deleted.
4255         (ucs_to_latin_iso8859_9): Deleted.
4256         (ucs_to_latin_viscii_lower): Deleted.
4257         (ucs_to_latin_viscii_upper): Deleted.
4258         (ucs_to_latin_tcvn5712): Deleted.
4259         (make_charset): Add new argument `decoding_table'; set up
4260         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4261         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4262         `decoding_table' is defined in UTF-2000.
4263         (Fmake_charset): Modify for `make_charset'.
4264         (Fmake_reverse_direction_charset): Likewise.
4265         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4266         and `GENERATE_96_SET'.
4267
4268         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4269         (ucs_to_latin_jisx0201): Deleted.
4270         (latin_iso8859_2_to_ucs): Deleted.
4271         (ucs_to_latin_iso8859_2): Deleted.
4272         (latin_iso8859_3_to_ucs): Deleted.
4273         (ucs_to_latin_iso8859_3): Deleted.
4274         (latin_iso8859_4_to_ucs): Deleted.
4275         (ucs_to_latin_iso8859_4): Deleted.
4276         (latin_iso8859_9_to_ucs): Deleted.
4277         (ucs_to_latin_iso8859_9): Deleted.
4278         (latin_viscii_lower_to_ucs): Deleted.
4279         (ucs_to_latin_viscii_lower): Deleted.
4280         (latin_viscii_upper_to_ucs): Deleted.
4281         (ucs_to_latin_viscii_upper): Deleted.
4282         (struct Lisp_Charset): Renamed `encoding_table' to
4283         `to_byte1_table'; add `to_byte2_table'.
4284         (CHARSET_DECODING_TABLE): New macro.
4285         (CHARSET_TO_BYTE1_TABLE): New macro.
4286         (CHARSET_TO_BYTE2_TABLE): New macro.
4287         (XCHARSET_DECODING_TABLE): New macro.
4288         (XCHARSET_TO_BYTE1_TABLE): New macro.
4289         (XCHARSET_TO_BYTE2_TABLE): New macro.
4290         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4291         tables.
4292         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4293         don't use `ucs_to_*' tables.
4294
4295 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4296
4297         * text-coding.c (Fmake_coding_system): Don't set up
4298         `codesys->fixed.size'.
4299         (encode_coding_no_conversion): Use `if' instead of `switch'.
4300
4301         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4302
4303 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4304
4305         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4306         (Fmake_charset): Modify for `make_charset'.
4307         (Fmake_reverse_direction_charset): Likewise.
4308         (complex_vars_of_mule_charset): Likewise.
4309
4310 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4311
4312         * text-coding.c (char_encode_shift_jis): Use table
4313         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4314
4315 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4316
4317         * text-coding.c (text_encode_generic): Use `if' instead of
4318         `switch'.
4319         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4320         decode JIS-Latin.
4321
4322 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4323
4324         * text-coding.c (encode_coding_sjis): Deleted.
4325         (char_encode_shift_jis): New function.
4326         (char_finish_shift_jis): New function.
4327         (reset_encoding_stream): Set up `encode_char' and `finish' for
4328         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4329         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4330         (char_encode_utf8): Treat `eol_type'.
4331
4332 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4333
4334         * file-coding.c (decode_coding_iso2022): Use
4335         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4336
4337 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4338
4339         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4340         to 0.7 (Hirano).
4341
4342 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4343
4344         * char-lb.h (CHAR_COLUMNS): New macro.
4345
4346 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4347
4348         * text-coding.c (char_encode_ucs4): New function.
4349         (char_finish_ucs4): New function.
4350         (encode_coding_ucs4): Deleted.
4351         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4352         (text_encode_generic): Delete local variable `charset' and `half'.
4353         (ucs_to_mule_table): Deleted.
4354         (mule_to_ucs_table): Deleted.
4355         (Fset_ucs_char): Deleted.
4356         (ucs_to_char): Deleted.
4357         (Fucs_char): Deleted.
4358         (Fset_char_ucs): Deleted.
4359         (Fchar_ucs): Deleted.
4360         (decode_ucs4): Deleted.
4361         (mule_char_to_ucs4): Deleted.
4362         (encode_ucs4): Deleted.
4363         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4364         (decode_coding_utf8): Likewise.
4365         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4366         (char_encode_iso2022): Fixed.
4367         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4368         `Fset_char_ucs' and `Fchar_ucs'.
4369         (complex_vars_of_file_coding): Don't initialize
4370         `ucs_to_mule_table'.
4371
4372         * objects-tty.c (tty_initialize_font_instance): Don't use
4373         `XCHARSET_COLUMNS'.
4374
4375         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4376         UTF-2000.
4377
4378         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4379         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4380
4381         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4382         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4383         (emchar_string_displayed_columns): Likewise.
4384
4385         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4386         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4387         (string_column_at_point): Likewise.
4388         (Fmove_to_column): Likewise.
4389
4390         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4391         `encoding_table' and `decoding_table'.
4392         (CHARSET_REP_BYTES): Deleted.
4393         (XCHARSET_REP_BYTES): Deleted.
4394         (XCHARSET_COLUMNS): Deleted.
4395         (CHAR_COLUMNS): New macro.
4396         (lookup_composite_char): Deleted unconditionally.
4397         (composite_char_string): Likewise.
4398
4399 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4400
4401         * char-ucs.h (Emchar_to_byte_table): New type.
4402         (get_byte_from_character_table): New function interface.
4403         (Vcharset_latin_jisx0201): New variable.
4404         (latin_jisx0201_to_ucs): New variable.
4405         (ucs_to_latin_jisx0201): New variable.
4406         (Vcharset_latin_iso8859_2): New variable.
4407         (latin_iso8859_2_to_ucs): New variable.
4408         (ucs_to_latin_iso8859_2): New variable.
4409         (Vcharset_latin_iso8859_3): New variable.
4410         (latin_iso8859_3_to_ucs): New variable.
4411         (ucs_to_latin_iso8859_3): New variable.
4412         (Vcharset_latin_iso8859_4): New variable.
4413         (latin_iso8859_4_to_ucs): New variable.
4414         (ucs_to_latin_iso8859_4): New variable.
4415         (Vcharset_latin_iso8859_9): New variable.
4416         (latin_iso8859_9_to_ucs): New variable.
4417         (ucs_to_latin_iso8859_9): New variable.
4418         (Vcharset_latin_viscii_lower): New variable.
4419         (latin_viscii_lower_to_ucs): New variable.
4420         (ucs_to_latin_viscii_lower): New variable.
4421         (Vcharset_latin_viscii_upper): New variable.
4422         (latin_viscii_upper_to_ucs): New variable.
4423         (ucs_to_latin_viscii_upper): New variable.
4424         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4425         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4426         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4427         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4428         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4429         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4430         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4431         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4432         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4433         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4434
4435         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4436         (Vcharset_latin_viscii_upper): New variable.
4437         (make_byte_from_character_table): New function.
4438         (put_byte_from_character_table): New function.
4439         (get_byte_from_character_table): New function.
4440         (CHAR96): New macro.
4441         (ucs_to_latin_jisx0201): New variable.
4442         (latin_jisx0201_to_ucs): New variable.
4443         (ucs_to_latin_iso8859_2): New variable.
4444         (latin_iso8859_2_to_ucs): New variable.
4445         (ucs_to_latin_iso8859_3): New variable.
4446         (latin_iso8859_3_to_ucs): New variable.
4447         (ucs_to_latin_iso8859_4): New variable.
4448         (latin_iso8859_4_to_ucs): New variable.
4449         (ucs_to_latin_iso8859_9): New variable.
4450         (latin_iso8859_9_to_ucs): New variable.
4451         (ucs_to_latin_viscii_lower): New variable.
4452         (latin_viscii_lower_to_ucs): New variable.
4453         (ucs_to_latin_viscii_upper): New variable.
4454         (latin_viscii_upper_to_ucs): New variable.
4455         (ucs_to_latin_tcvn5712): New variable.
4456         (latin_tcvn5712_to_ucs): New variable.
4457         (Qlatin_viscii_lower): New variable.
4458         (Qlatin_viscii_upper): New variable.
4459         (syms_of_mule_charset): Set up new symbol
4460         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4461         (complex_vars_of_mule_charset): Set up new charset
4462         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4463         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4464         `ucs_to_<CHARSET>' tables.
4465
4466 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4467
4468         * text-coding.c: New file.
4469
4470 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4471
4472         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4473
4474         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4475         (MAKE_CHAR): Modify for `ucs-bmp'.
4476         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4477         non-MULE characters of BMP.
4478
4479 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4480
4481         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4482         to 0.6.
4483
4484 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4485
4486         * lstream.h:
4487         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4488         - Include character.h for `CHAR_ASCII_P'.
4489
4490         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4491
4492         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4493         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4494
4495         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4496         (BYTE_C0_P): Likewise.
4497         (BYTE_C1_P): Likewise.
4498         (Lstream_get_emchar_1): Likewise.
4499         (Lstream_fput_emchar): Likewise.
4500         (Lstream_funget_emchar): Likewise.
4501         (copy_internal_to_external): Likewise.
4502         (copy_external_to_internal): Likewise.
4503
4504         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4505         (BYTE_C0_P): Likewise.
4506         (BYTE_C1_P): Likewise.
4507         (Lstream_get_emchar_1): Likewise.
4508         (Lstream_fput_emchar): Likewise.
4509         (Lstream_funget_emchar): Likewise.
4510         (copy_internal_to_external): Likewise.
4511         (copy_external_to_internal): Likewise.
4512
4513         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4514         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4515
4516         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4517         (BYTE_ASCII_P): Moved to mb-1byte.h.
4518
4519 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4520
4521         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4522
4523         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4524         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4525         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4526         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4527         (VALIDATE_CHARPTR_FORWARD): Likewise.
4528         (simple_charptr_emchar): Moved to mb-multibyte.h.
4529         (simple_set_charptr_emchar): Likewise.
4530         (simple_charptr_copy_char): Likewise.
4531         (non_ascii_charptr_emchar): Likewise.
4532         (non_ascii_set_charptr_emchar): Likewise.
4533         (non_ascii_charptr_copy_char): Likewise.
4534         (charptr_emchar): Moved to mb-*byte.h.
4535         (set_charptr_emchar): Likewise.
4536         (charptr_copy_char): Likewise.
4537
4538         * mb-1byte.h, mb-multibyte.h: New files.
4539
4540 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4541
4542         * mb-utf-8.h (MULTIBYTE): New macro.
4543         (MAX_EMCHAR_LEN): Moved from buffer.h.
4544         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4545
4546         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4547
4548         * mb-lb.h, multibyte.h: New files.
4549
4550         * char-1byte.h (Charset_ID): Moved from buffer.h.
4551         (MIN_LEADING_BYTE): Likewise.
4552         (LEADING_BYTE_ASCII): Likewise.
4553         (NUM_LEADING_BYTES): Likewise.
4554         (CHARSETP): Likewise.
4555         (CHARSET_BY_LEADING_BYTE): Likewise.
4556         (XCHARSET_LEADING_BYTE): Likewise.
4557         (XCHARSET_GRAPHIC): Likewise.
4558         (XCHARSET_COLUMNS): Likewise.
4559         (XCHARSET_DIMENSION): Likewise.
4560         (CHAR_CHARSET): Likewise.
4561         (CHAR_LEADING_BYTE): Likewise.
4562         (BREAKUP_CHAR): Likewise.
4563         (Vcharset_ascii): Likewise.
4564
4565         * buffer.h: Include multibyte.h unconditionally.
4566         (VALID_CHARPTR_P): Moved to multibyte.h.
4567         (ASSERT_VALID_CHARPTR): Likewise.
4568         (REAL_INC_CHARPTR): Likewise.
4569         (REAL_INC_CHARBYTIND): Likewise.
4570         (REAL_DEC_CHARPTR): Likewise.
4571         (INC_CHARPTR): Likewise.
4572         (INC_CHARBYTIND): Likewise.
4573         (DEC_CHARPTR): Likewise.
4574         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4575         (VALIDATE_CHARPTR_FORWARD): Likewise.
4576         (charptr_n_addr): Likewise.
4577         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4578         (simple_charptr_emchar): Moved to multibyte.h.
4579         (simple_set_charptr_emchar): Likewise.
4580         (simple_charptr_copy_char): Likewise.
4581         (non_ascii_charptr_emchar): Likewise.
4582         (non_ascii_set_charptr_emchar): Likewise.
4583         (non_ascii_charptr_copy_char): Likewise.
4584         (charptr_emchar): Likewise.
4585         (set_charptr_emchar): Likewise.
4586         (charptr_copy_char): Likewise.
4587         (charptr_emchar_n): Likewise.
4588         (Charset_ID): Moved to char-1byte.h.
4589         (Vcharset_ascii): Likewise.
4590         (CHAR_CHARSET): Likewise.
4591         (CHAR_LEADING_BYTE): Likewise.
4592         (LEADING_BYTE_ASCII): Likewise.
4593         (NUM_LEADING_BYTES): Likewise.
4594         (MIN_LEADING_BYTE): Likewise.
4595         (CHARSETP): Likewise.
4596         (CHARSET_BY_LEADING_BYTE): Likewise.
4597         (XCHARSET_LEADING_BYTE): Likewise.
4598         (XCHARSET_GRAPHIC): Likewise.
4599         (XCHARSET_COLUMNS): Likewise.
4600         (XCHARSET_DIMENSION): Likewise.
4601         (BREAKUP_CHAR): Likewise.
4602
4603 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4604
4605         * character.h: Add document about interface for characters.
4606
4607         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4608         (MAKE_CHAR): Delete comment about
4609         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4610         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4611         (BREAKUP_CHAR): Modify name of arguments.
4612         (CHAR_CHARSET): Modify name of argument.
4613
4614         * buffer.h: Delete document about Emchar accessors.
4615
4616 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4617
4618         * character.h (CHAR_INTP): Moved from buffer.h
4619         (CHAR_OR_CHAR_INTP): Likewise.
4620         (XCHAR_OR_CHAR_INT): Likewise.
4621         (CHECK_CHAR_COERCE_INT): Likewise.
4622
4623         * buffer.h (CHAR_INTP): Moved to character.h
4624         (CHAR_OR_CHAR_INTP): Likewise.
4625         (XCHAR_OR_CHAR_INT): Likewise.
4626         (CHECK_CHAR_COERCE_INT): Likewise.
4627
4628 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4629
4630         * character.h:
4631         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4632         - Include char-1byte.h, char-lb.h or char-ucs.h.
4633
4634         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4635
4636         * buffer.h: Include character unconditionally.
4637         (valid_char_p): Moved to char-*.h.
4638         (non_ascii_valid_char_p): Moved to char-lb.h.
4639
4640         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4641
4642 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4643
4644         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4645         in UTF-2000 because it is not ported yet and not to use
4646         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4647         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4648         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4649
4650         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4651         (CHAR_ASCII_P): Moved from character.h.
4652
4653         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4654         (CHAR_ASCII_P): Likewise.
4655         (CHAR_FIELD1_MASK): Deleted.
4656         (CHAR_FIELD2_MASK): Deleted.
4657         (CHAR_FIELD3_MASK): Deleted.
4658         (MAX_CHAR_BASIC_LATIN): New macro.
4659         (CHAR_FIELD1): Deleted.
4660         (CHAR_FIELD2_INTERNAL): Deleted.
4661         (CHAR_FIELD3_INTERNAL): Deleted.
4662         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4663         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4664         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4665         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4666         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4667         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4668         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4669         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4670         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4671         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4672         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4673         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4674         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4675         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4676         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4677         (MIN_CHAR_COMPOSITION): Deleted.
4678         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4679         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4680
4681 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4682
4683         * buffer.h: Include mb-utf-8.h in UTF-2000.
4684
4685         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4686
4687         * mb-utf-8.h: New file.
4688
4689 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4690
4691         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4692         instead of `int'.
4693
4694         * mule-charset.h, buffer.h (Charset_ID): New type.
4695
4696 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4697
4698         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4699         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4700         instead of `MULE_CHAR_PRIVATE_OFFSET',
4701         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4702         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4703         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4704
4705         * character.h (Vcharset_japanese_jisx0212): New variable
4706         definition.
4707
4708 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4709
4710         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4711         (charset_by_attributes): Delete array about direction.
4712         (latin_a_char_to_charset): New variable in UTF-2000.
4713         (latin_a_char_to_byte1): New variable in UTF-2000.
4714         (latin_a_char_to_byte2): New variable in UTF-2000.
4715         (Qucs_bmp): New variable.
4716         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4717         `Bufbyte'.
4718         (next_allocated_2_byte_leading_byte): Likewise.
4719         (non_ascii_set_charptr_emchar): Likewise.
4720         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4721         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4722         `charset_by_attributes'.
4723         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4724         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4725         and `CHARSET_BY_LEADING_BYTE'.
4726         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4727         `utf-2000-version' to `vars_of_mule_charset'.
4728         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4729         define `leading-code-private-11' in UTF-2000; move setting of
4730         `utf-2000-version' from `syms_of_mule_charset'.
4731         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4732         UTF-2000.
4733
4734         * character.h (Charset_ID): New type.
4735         (LEADING_BYTE_UCS_BMP): New macro.
4736         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4737         (CHARSET_ID_OFFSET_94): New macro.
4738         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4739         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4740         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4741         final-byte.
4742         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4743         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4744         (CHARSET_ID_OFFSET_96): New macro.
4745         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4746         CHARSET_ID_OFFSET_96 and final-byte.
4747         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4748         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4749         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4750         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4751         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4752         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4753         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4754         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4755         (LEADING_BYTE_THAI_TIS620): Likewise.
4756         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4757         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4758         (CHARSET_ID_OFFSET_94x94): New macro.
4759         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4760         CHARSET_ID_OFFSET_94x94 and final-byte.
4761         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4762         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4763         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4764         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4765         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4766         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4767         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4768         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4769         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4770         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4771         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4772         (CHARSET_TYPE_128X128): New macro.
4773         (CHARSET_TYPE_256X256): New macro.
4774         (XCHARSET_PRIVATE_P): Delete unconditionally.
4775         (charset_by_attributes): Delete array about direction.
4776         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4777         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4778         (MIN_CHAR_94): New macro.
4779         (MAX_CHAR_94): New macro.
4780         (MIN_CHAR_96): New macro.
4781         (MAX_CHAR_96): New macro.
4782         (MIN_CHAR_94x94): New macro.
4783         (MAX_CHAR_94x94): New macro.
4784         (MIN_CHAR_96x96): New macro.
4785         (MAX_CHAR_96x96): New macro.
4786         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4787         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4788         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4789         - 32)'.
4790         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4791         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4792         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4793         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4794         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4795         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4796         `XCHARSET_LEADING_BYTE' to make code-point.
4797         (latin_a_char_to_charset): New variable.
4798         (latin_a_char_to_byte1): New variable.
4799         (latin_a_char_to_byte2): New variable.
4800         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4801         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4802         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4803
4804         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4805         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4806         (find_charsets_in_emchar_string): Likewise.
4807         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4808
4809         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4810         `int'.
4811         (decode_coding_iso2022): Likewise.
4812
4813         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4814         of `unsigned char'.
4815
4816         * redisplay.c (redisplay_text_width_emchar_string): Use
4817         `Charset_ID' instead of `unsigned char'.
4818         (redisplay_frame_text_width_string): Likewise.
4819
4820         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4821         `unsigned char'.
4822
4823         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4824         instead of `unsigned char'.
4825         (face_cachel_charset_font_metric_info): Likewise.
4826
4827         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4828         (get_non_ascii_char_table_value): Likewise.
4829         (get_char_table): Likewise.
4830         (put_char_table): Likewise.
4831         (map_over_other_charset): Likewise.
4832         (map_char_table): Likewise.
4833
4834         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4835         instead of `unsigned char'.
4836
4837 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4838
4839         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4840         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4841
4842         * mule-charset.c (leading_code_private_11): Don't define in
4843         UTF-2000.
4844
4845         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4846         in UTF-2000 because it is not ported yet and not to use
4847         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4848
4849 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4850
4851         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4852
4853 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4854
4855         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4856         in UTF-2000.
4857
4858         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4859         of unsigned char to store leading-byte.
4860
4861         * chartab.c (get_non_ascii_char_table_value): Don't use
4862         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4863
4864         * file-coding.c (encode_coding_big5): Delete bogus implementation
4865         in UTF2000.
4866
4867         * character.h (LEADING_BYTE_*): Delete definition for
4868         non-UTF-2000.
4869         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4870         (LEADING_BYTE_PREFIX_P): Deleted.
4871         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4872         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4873         (BUFBYTE_LEADING_BYTE_P): Deleted.
4874         (CHARSET_PRIVATE_P): Deleted unconditionally.
4875         (rep_bytes_by_first_byte): Deleted unconditionally.
4876         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4877         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4878         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4879         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4880         (CHAR_FIELD2): Deleted.
4881         (CHAR_FIELD3): Deleted.
4882         (MAKE_CHAR): Delete definition for non-UTF-2000.
4883         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4884         (breakup_char_1): New implementation.
4885         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4886         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4887
4888 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4889
4890         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4891         condition.
4892
4893 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4894
4895         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4896         (CHARSET_PRIVATE_P): Likewise.
4897         (XCHARSET_PRIVATE_P): Likewise.
4898         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4899
4900         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4901         UTF2000.
4902         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4903
4904 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4905
4906         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4907         (NUM_LEADING_BYTES): Changed from 128 to 256.
4908         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4909         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4910         UTF2000.
4911         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4912
4913         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4914         UTF2000.
4915         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4916         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4917         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4918         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4919         (Qchinese_cns11643_3): New variable in UTF2000.
4920         (Qchinese_cns11643_4): New variable in UTF2000.
4921         (Qchinese_cns11643_5): New variable in UTF2000.
4922         (Qchinese_cns11643_6): New variable in UTF2000.
4923         (Qchinese_cns11643_7): New variable in UTF2000.
4924         (syms_of_mule_charset): Define `chinese-cns11643-3',
4925         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4926         and `chinese-cns11643-7' in UTF2000.
4927         (vars_of_mule_charset): Initialize
4928         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4929         + 1 in UTF2000.
4930         (complex_vars_of_mule_charset): Setup charset
4931         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4932         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4933
4934 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4935
4936         * mule-charset.c: Move setting for `leading-code-private-11' from
4937         `syms_of_mule_charset' to `vars_of_mule_charset'.
4938
4939 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4940
4941         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4942         and `NUM_LEADING_BYTES' in assert.
4943
4944 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4945
4946         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4947         instead of 128.
4948         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4949         `NUM_LEADING_BYTES' instead of 128.
4950
4951 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4952
4953         * mule-charset.h (charset_by_leading_byte): Use
4954         `NUM_LEADING_BYTES' instead of 128.
4955         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4956
4957         * mule-charset.c (charset_by_leading_byte): Use
4958         `NUM_LEADING_BYTES' instead of 128.
4959         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4960
4961         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4962         128.
4963
4964 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4965
4966         * mule-charset.c (syms_of_mule_charset): Update to
4967         0.4 (Shin-Imamiya).
4968
4969 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4970
4971         * file-coding.c (encode_coding_sjis): New implementation for
4972         UTF2000.  (decode_coding_sjis): Ditto.
4973
4974 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4975
4976         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4977         Don't define in UTF2000.
4978
4979         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4980         defined.
4981
4982         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4983         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4984         MULE.
4985
4986 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4987
4988         * config.h.in (CHAR_IS_UCS4): New macro.
4989
4990         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4991         conventional MULE representation.
4992         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4993
4994         * mule-charset.h: Reverted to original.
4995
4996         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4997         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4998         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4999
5000         * character.h: New file.
5001
5002         * file-coding.c (Fmake_coding_system): Set 1 to
5003         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5004         defined.
5005         (encode_coding_no_conversion): New implementation for UTF2000.
5006
5007         * file-coding.h (struct Lisp_Coding_System): Add new member
5008         `fixed.size'.
5009
5010 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5011
5012         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5013         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5014         (encode_coding_iso2022): New implementation for UTF2000.
5015
5016 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5017
5018         * mule-canna.c (c2mu): New implementation for UTF2000.
5019         (m2c): Likewise.
5020
5021 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5022
5023         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5024
5025 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5026
5027         * file-coding.c (reset_encoding_stream): Set 0 to
5028         `str->iso2022.current_char_boundary' in UTF2000.
5029         (encode_utf8): Don't define in UTF2000.
5030         (encode_coding_utf8): New implementation for UTF-8 representation
5031         of UTF2000.
5032         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5033
5034 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5035
5036         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5037
5038         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5039         UTF2000.
5040         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5041
5042         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5043
5044         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5045         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5046         as UTF-8 in UTF2000.
5047         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5048         (non_ascii_valid_char_p): Don't define in UTF2000.
5049         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5050         (Lstream_get_emchar_1): Likewise.
5051         (utf-2000-version): New variable in UTF2000.
5052
5053         * lread.c (read_escape): Add new reader `u'.
5054
5055         * insdel.c (three_to_one_table): Don't define in UTF2000.
5056         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5057         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5058         UTF2000.
5059         (bytind_to_bufpos_func): Likewise.
5060         (buffer_mule_signal_inserted_region): Likewise.
5061         (vars_of_insdel): Don't initialize `three_to_one_table'.
5062         (init_buffer_text): Use `buf->text->mule_size' instead of
5063         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5064         UTF2000.
5065
5066         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5067         UTF-8 representation in UTF2000.
5068         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5069         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5070         (decode_coding_iso2022): Don't define local variable `lb' in
5071         UTF2000; don't use LEADING_BYTE in UTF2000; use
5072         `DECODE_ADD_UCS_CHAR' in UTF2000.
5073         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5074
5075         * config.h.in (UTF2000): New macro.
5076
5077         * buffer.h (struct buffer_text): Add new member `mule_size' and
5078         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5079         (valid_char_p): Return always 1 in UTF2000.
5080         (MAX_EMCHAR_LEN): 6 in UTF2000.
5081         (three_to_one_table): Don't define in UTF2000.
5082         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5083         UTF2000.
5084         (real_bytind_to_bufpos): Likewise.
5085
5086         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5087
5088 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5089
5090         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5091         representation change.
5092         (Vutf_2000_version): New variable.
5093         (leading_code_private_11): New variable.
5094         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5095         `leading-code-private-11'.
5096
5097         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5098         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5099         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5100         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5101         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5102         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5103         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5104         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5105         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5106         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5107         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5108         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5109         (MIN_CHAR_GREEK): New macro.
5110         (MAX_CHAR_GREEK): New macro.
5111         (MIN_CHAR_CYRILLIC): New macro.
5112         (MAX_CHAR_CYRILLIC): New macro.
5113         (MIN_CHAR_HEBREW): New macro.
5114         (MAX_CHAR_HEBREW): New macro.
5115         (MIN_CHAR_THAI): New macro.
5116         (MAX_CHAR_THAI): New macro.
5117         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5118         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5119         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5120         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5121         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5122         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5123         (CHAR_FIELD2): New inline function.
5124         (CHAR_FIELD3): New inline function.
5125         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5126         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5127         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5128         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5129         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5130         (MIN_CHAR_COMPOSITION): Likewise.
5131         (CHAR_LEADING_BYTE): Modified for character representation change.
5132         (MAKE_CHAR): Likewise.
5133
5134         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5135         (Vcharset_greek_iso8859_7): Likewise.
5136         (Vcharset_cyrillic_iso8859_5): Likewise.
5137         (Vcharset_hebrew_iso8859_8): Likewise.
5138         (Vcharset_thai_tis620): Likewise.
5139         (Vcharset_katakana_jisx0201): Likewise.
5140
5141 2003-09-03  Vin Shelton <acs@xemacs.org>
5142
5143         * XEmacs 21.4.14 is released
5144
5145 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5146
5147         * config.h.in (REGEX_MALLOC): Make it configure'able.
5148
5149 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5150
5151         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5152         linking.
5153         * sysdll.c (dll_init):
5154         * sysdll.c (dll_open):
5155         * sysdll.c (dll_close):
5156         * sysdll.c (dll_function):
5157         * sysdll.c (dll_variable):
5158         * sysdll.c (dll_error):
5159         Add support for loading bundles using Darwin/MacOSX
5160         native API.
5161
5162 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5163
5164         * process.c (start-process-internal): Document coding systems.
5165
5166 2003-07-30  Jerry James  <james@xemacs.org>
5167
5168         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5169
5170 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5171
5172         * event-msw.c (mswindows_enqueue_mouse_button_event):
5173         * event-msw.c (mswindows_wnd_proc):
5174           enqueue button event when scrollwheel event isn't handled by 
5175           mswindows_handle_mousewheel_event, such as when the scrollbars
5176           are not showing.
5177
5178 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5179
5180         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5181
5182 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5183
5184         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5185
5186 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5187
5188         * regex.c (re_match_2_internal): Fix matching degenerate word
5189         boundaries.
5190
5191 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5192
5193         * XEmacs 21.4.13 is released
5194
5195 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5196
5197         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5198         * lisp.h (<inttypes.h>):
5199         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5200         the definition.
5201
5202 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5203
5204         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5205         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5206         Result: "temacs can only be run in -batch mode."
5207         Fix: Check xemacs executable candidate for directory-ness.
5208
5209 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5210
5211         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5212           they conflict with <sys/types.h>.
5213
5214 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5215
5216         * database.c: Berkeley DB wants __STDC__ to be defined.
5217
5218 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5219
5220         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5221
5222 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5223
5224         * process-unix.c (unix_send_process): Fix C++ compile error.
5225
5226 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5227
5228         * Added .dylib as an acceptable shared library file extension
5229         * to support MacOSX.
5230
5231 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5232
5233         * EmacsFrameP.h (EmacsFramePart):
5234         Kludge to allow compiling with Motif1, but linking with Motif2.
5235
5236 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5237
5238         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5239
5240
5241 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5242
5243         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5244
5245 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5246
5247         * sysdll.c: Included lisp.h to define needed alloca_array.
5248
5249 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5250
5251         Make XEmacs redisplay 10 times faster.
5252         If, that is, you're using a slow X connection and MoveOpaque.
5253         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5254         Use compress_motion = TRUE.
5255         * EmacsFrame.c (emacsFrameClassRec): 
5256         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5257         * EmacsManager.c (emacsManagerClassRec):
5258         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5259
5260 2003-01-30  Vin Shelton  <acs@xemacs.org>
5261
5262         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5263
5264 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5265
5266         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5267         Patch by Martin Buchholz.
5268
5269 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5270
5271         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5272         Thanks to icc for warning and Martin Buchholz for reporting.
5273
5274 2003-01-29  Vin Shelton <acs@xemacs.org>
5275
5276         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5277
5278         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5279         remember to multiply by the element size.
5280
5281 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5282
5283         * XEmacs 21.4.12 "Portable Code" is released.
5284
5285 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5286
5287         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5288         * s/cygwin.sc: new linker file.
5289
5290 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5291
5292         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5293
5294         * redisplay-x.c (x_output_string): Use X11-specified types.
5295         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5296         * emacs.c (__free_hook): Use typeof with Intel compiler.
5297         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5298
5299 2003-01-08  Andy Piper  <andy@xemacs.org>
5300
5301         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5302         reserve size during unexec().
5303
5304 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5305
5306         * process-unix.c (unix_create_process): Don't let outchannel block.
5307
5308 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5309
5310         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5311         Needed for IsBadReadPtr().
5312
5313 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5314
5315         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5316
5317 2002-12-14  Ben Wing  <ben@xemacs.org>
5318
5319         * callint.c: Declaration error.
5320         * dumper.c (pdump):
5321         * dumper.c (pdump_load): Warning fix.
5322         * process.c: GCPRO error.
5323         * glyphs.c (unmap_subwindow):
5324         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5325         * event-stream.c (maybe_kbd_translate): Wrong argument to
5326         character_to_event().
5327
5328         * alloc.c (garbage_collect_1):
5329         * emacs.c:
5330         * emacs.c (debug_can_access_memory):
5331         * emacs.c (fatal_error_signal):
5332         * emacs.c (mswindows_handle_hardware_exceptions):
5333         * emacs.c (main_1):
5334         * emacs.c (main):
5335         * emacs.c (assert_failed):
5336         * emacs.c (syms_of_emacs):
5337         * lisp.h:
5338         * print.c:
5339         * print.c (std_handle_out_va):
5340         * print.c (write_string_to_stdio_stream):
5341         * print.c (write_fmt_string):
5342         * print.c (printing_badness):
5343         * print.c (printing_major_badness):
5344         * print.c (print_internal):
5345         * print.c (debug_print_no_newline):
5346         * print.c (debug_backtrace):
5347         Be more defensive in handling bad values when printing.  Add code
5348         from trunk involving inhibit_non_essential_printing_operations.
5349         When going down or in debug_print(), don't do external conversion
5350         and such and try really, really hard when printing to avoid core
5351         dumping.  Add force-debugging-signal, debug_break().
5352
5353 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5354
5355         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5356         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5357
5358 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5359
5360         * database.c: Fix open_database. Berkeley DB API has changed in
5361         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5362
5363 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5364
5365         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5366
5367 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5368
5369         * event-Xt.c (Xt_timeout):
5370         (Xt_timeout_callback):
5371         (emacs_Xt_add_timeout):
5372         (emacs_Xt_remove_timeout):
5373         (Xt_timeout_to_emacs_event):
5374         Turn completed_timeouts from a stack into a queue.  Fixes
5375         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5376
5377 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5378
5379         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5380         * emacs.c (main): Assert that mmap'd allocation is disabled.
5381
5382 2002-10-14  Andy Piper  <andy@xemacs.org>
5383
5384         * glyphs-widget.c (layout_query_geometry): add in fiddle
5385         factor. Include border text in width layout calculation.
5386         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5387
5388 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5389
5390         * XEmacs 21.4.10 "Military Intelligence" is released.
5391
5392 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5393
5394         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5395         using the NAS private array SoundFileInfo that no longer exists in
5396         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5397         and earlier.  This is broken for some versions between 1.5a and
5398         1.5f.
5399
5400 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5401
5402         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5403
5404         * emacs.c (shut_down_emacs): Improve crash message.
5405
5406 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5407
5408         * file-coding.c (determine_real_coding_system): Check for coding
5409         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5410         shebangs and Python PEP 263.
5411
5412 2002-10-08  Andy Piper  <andy@xemacs.org>
5413
5414         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5415         if static sizes haven't been set.
5416
5417 2002-08-30  Mike Alexander  <mta@arbortext.com>
5418
5419         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5420         to close a socket.
5421
5422 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5423
5424         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5425
5426 2002-09-20  Mike Sperber <mike@xemacs.org>
5427
5428         (This partially gets back my patch from 2002-07-20 without the
5429         bug.)
5430         * callproc.c (child_setup): Remove Ben's comment noting confusion
5431         over the file descriptors >= 3: close_process_descs() doesn't
5432         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5433         * process-unix.c (unix_create_process): Call
5434         begin_dont_check_for_quit to inhibit unwanted interaction (and
5435         thus breaking of X event synchronicity) in the child.
5436
5437 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5438
5439         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5440         widget.
5441
5442 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5443
5444         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5445         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5446         the xemacs process did not exit, but looped infinitely here.  This
5447         fixes that problem.
5448
5449 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5450
5451         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5452         (find_context): Improve comments.
5453
5454         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5455         (re_match_2): An XCHAR_TABLE operation was missing.
5456
5457         Many of the following changes were inspired by Andy Piper's (now
5458         obsolete) patch to make syntax-table text property lookup optional.
5459
5460         [Documentation]
5461
5462         * syntax.h (top level): Document semantics of syntax flags.
5463         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5464         * syntax.c, syntax.h (top level): Document syntax cache better in
5465         comments.
5466
5467         [Instrument syntax caching (temporary change)]
5468
5469         * syntax.h (enum syntax_cache_statistics_functions, struct
5470         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5471         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5472         * syntax.c (scan_words, Fforward_comment, scan_lists,
5473         Fbackward_prefix_characters):
5474         * font-lock.c (find_context):
5475         Use them to instrument syntax caching. 
5476         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5477         syntax_cache_statistics_function_names): New type and variables.
5478         * syntax.c (update_syntax_cache): Update and report statistics.
5479
5480         [Major syntax cache optimizations]
5481
5482         syntax.c (lookup_syntax_properties): Default off.
5483
5484         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5485         * syntax.c (update_syntax_cache):
5486         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5487
5488         [Minor syntax cache optimizations and code clarifications]
5489
5490         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5491         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5492         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5493         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5494         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5495         (Code clarification.)
5496
5497         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5498         scan_lists): Compute code from syncode, use Boolean macros instead
5499         of redundant masking operations.  (Code clarification; any decent
5500         compiler can do this optimization.)
5501
5502         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5503         for clarity.
5504
5505         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5506         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5507         use F*_single_property_change instead of F*_extent_change.
5508         Currently F*_single_property_change is _much_ less efficient.
5509
5510         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5511         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5512         syntax_cache.object properly, don't leave Qt or Qnil.
5513         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5514         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5515         tests for Qt or Qnil.
5516
5517 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5518
5519         * redisplay.c (point_in_line_start_cache): 
5520         * extents.c (print_extent_1):
5521         Fix warnings.
5522
5523         * extents.c (Fset_extent_property): Document `syntax-table' property.
5524
5525         * extents.h (Fnext_single_property_change): EXFUN it.
5526
5527 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5528
5529         * search.c (clear_unused_search_regs): New static function.
5530         (search_buffer): 
5531         (simple_search): 
5532         (boyer_moore):
5533         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5534         Minor clarifications in comments.
5535
5536         * regex.c (re_match_2_internal): Ensure no stale submatches.
5537
5538 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5539
5540         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5541
5542 2002-08-29  Jerry James  <james@xemacs.org>
5543
5544         * lisp.h: structrures -> structures.
5545
5546 2002-06-03  Andy Piper  <andy@xemacs.org>
5547
5548         * frame.c (frame_conversion_internal): add conversion appropriate
5549         for setting frame dimensions in pixels.
5550
5551         * console.h (struct console_methods): add device-specific widget
5552         layout functions.
5553
5554         * emacs.c (main_1): initialize glyph vars.
5555
5556         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5557         (handle_focus_event_2): new function. Allow focus to
5558         be set to a particular window and widget.
5559         (enqueue_focus_event): new function. Create a
5560         synthetic focus event.
5561         (emacs_Xt_handle_magic_event): call
5562         handle_focus_event_2.
5563
5564         * frame.c (Fset_frame_pixel_height): new function. Allow
5565         pixel-based sizing. Does the right thing on character-oriented
5566         displays.
5567         (Fset_frame_pixel_width): ditto.
5568         (Fset_frame_pixel_size): ditto.
5569         (syms_of_frame): declare.
5570
5571         * general-slots.h: add :vertically-justify and
5572         :horizontally-justify.
5573
5574         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5575         (mswindows_widget_border_width): new function.
5576         (mswindows_combo_box_instantiate): set border widths.
5577         (console_type_create_glyphs_mswindows): declare.
5578
5579         * glyphs-widget.c:
5580         (check_valid_justification): allow vertical and horizontal
5581         justification.
5582         (widget_border_width): new function. Call device methods.
5583         (widget_instance_border_width): ditto.
5584         (logical_unit_height): new function. Determine the height of a
5585         logical-unit. Logical units are intended to provide grid-like
5586         layout for subcontrols in a layout. If the layout is
5587         :vertically-justify top then subcontrols will be positioned on
5588         logical-unit boundaries, thus allowing adjacent subcontrols to
5589         line up.
5590         (widget_logical_unit_height): ditto for widgets.
5591         (redisplay_widget): misc cleanup.
5592         (widget_spacing): new function. Call device specific
5593         methods. Intended to be the default gap between adjacent widgets.
5594         (widget_query_geometry): use new spacing functions to determine
5595         appropriate geometry.
5596         (initialize_widget_image_instance): initialize horizontal and
5597         vertical justification.
5598         (widget_instantiate): use logica-units where appropriate for
5599         sizing large widgets.
5600         (button_query_geometry): use widget_instance_border_width.
5601         (tree_view_query_geometry): ditto.
5602         (tab_control_query_geometry): ditto.
5603         (edit_field_query_geometry): new function.
5604         (layout_update): pick up :justify, :horizontally-justify and
5605         :vertically-justify none of which worked previously. :justify is
5606         used as a fallback for both horizontal and vertical justification.
5607         (layout_query_geometry): use logical units to size appropriately.
5608         (layout_layout): ditto.
5609         (Fwidget_logical_to_character_width): new function. Allow users to
5610         convert from logical units to characters so that frame sizes can
5611         be set appropriately.
5612         (Fwidget_logical_to_character_height): ditto.
5613         (syms_of_glyphs_widget): declare.
5614         (image_instantiator_edit_fields): add edit_field_query_geometry.
5615         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5616         :horizontally-justify.
5617         (specifier_vars_of_glyphs_widget): new function. Declare
5618         Vwidget_border_width which is not yet used.
5619
5620         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5621         (x_widget_border_width): new function.
5622         (x_widget_instantiate): create a sensible name for widgets.
5623         (console_type_create_glyphs_x): declare x_widget_border_width.
5624
5625         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5626         (struct Lisp_Image_Instance): add :vertically-justify and
5627         :horizontally-justify.
5628         (LAYOUT_JUSTIFY_TOP): new.
5629         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5630         (ROUND_UP): new macro. Round argument up to next integral
5631         interval.
5632
5633         * redisplay-output.c (redisplay_output_layout): misc formatting.
5634
5635         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5636
5637 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5638
5639         * XEmacs 21.4.9 "Informed Management" is released.
5640
5641 2002-08-19  Andy Piper  <andy@xemacs.org>
5642
5643         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5644         win32 format.
5645
5646         * realpath.c (xrealpath): normalize drive spec also so that dir
5647         sep chars are not mixed on cygwin.
5648
5649 2002-08-06  Jerry James  <james@xemacs.org>
5650
5651         * window.c (Fsplit_window): Count only half of the divider width
5652         against the left window when splitting horizontally. 
5653
5654 2002-06-24  Andy Piper  <andy@xemacs.org>
5655
5656         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5657         toolbar was cleared.
5658
5659         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5660         function. Split out from mswindows_output_frame_toolbars.
5661         (mswindows_output_frame_toolbars): move clear pieces to
5662         mswindows_output_frame_toolbars.
5663
5664         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5665         out from gtk_output_frame_toolbars.
5666         (gtk_output_frame_toolbars): move clear pieces to
5667         gtk_clear_frame_toolbars.
5668
5669         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5670         the frame is cleared. How this ever worked before is a mystery.
5671         (x_output_frame_toolbars): Only output toolbars.
5672         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5673
5674         * gutter.c (update_gutter_geometry):
5675         Mark frame layout changed.
5676         (update_frame_gutter_geometry, update_frame_gutters):
5677         Respect frame_layout_changed.
5678
5679         * console.h (struct console_methods): add
5680         clear_frame_toolbars_method.
5681
5682         * redisplay.c (redisplay_frame): call
5683         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5684
5685         * toolbar.h: declare update_frame_toolbars_geometry.
5686
5687         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5688         out from update_frame_toolbars.  Call clear_frame_toolbars.
5689         (update_frame_toolbars): only output, do not change geometry.
5690
5691         * redisplay.c: add frame_layout_changed.
5692
5693         * redisplay.h: add frame_layout_changed.
5694         (CLASS_RESET_CHANGED_FLAGS): set it.
5695         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5696         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5697         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5698
5699         * device.h (struct device): add frame_layout_changed.
5700         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5701
5702         * frame.h (struct frame): add frame_layout_changed.
5703         (MARK_FRAME_LAYOUT_CHANGED): new.
5704
5705 2002-06-30  Mike Alexander  <mta@arbortext.com>
5706
5707         * event-msw.c (mswindows_need_event): Don't wait for a new message
5708         if the queue is not empty.  Suggested by Paul Moore.
5709
5710 2002-06-12  Andy Piper  <andy@xemacs.org>
5711
5712         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5713         for printing on accurately.
5714
5715 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5716
5717         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5718         WM_ACTIVATE message. Make sure that the frame is visible if the
5719         window is visible. This seemss to fix the problem where XEmacs
5720         appears to freeze after switching desktops with certain virtual
5721         window managers.
5722         (debug_output_mswin_message): Added code to output message
5723         parameters for WM_WINDOWPOSCHANGED, 
5724         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5725
5726 2002-05-25  Andy Piper  <andy@xemacs.org>
5727
5728         * select-x.c (vars_of_select_x): Fix docstring of
5729         x-selection-strict-motif-ownership
5730
5731 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5732
5733         * keymap.c (get_keymap):
5734         Add comment about do_autoload GCPROs own args.
5735
5736 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5737
5738         * bytecode.c (execute_optimized_program): check_opcode ifdef
5739         ERROR_CHECK_BYTE_CODE.
5740
5741 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5742
5743         Thanks to Ben Wing and Michael Sperber.
5744
5745         * eval.c (Fcommand_execute):
5746         (Feval):
5747         (Ffuncall):
5748         (Fmacroexpand_internal):
5749         (function_argcount):
5750         callint.c (Fcall_interactively):
5751         Add comment about do_autoload GCPROs own args.
5752
5753         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5754
5755         * eval.c (Ffuncall): Extra braces to placate GCC.
5756
5757 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5758
5759         * backtrace.h (grow_specpdl):
5760         (SPECPDL_RESERVE):
5761         * EmacsFrame.c (EmacsFrameSetValues):
5762         * eval.c (grow_specpdl):
5763         * ExternalShell.c (hack_event_masks_1):
5764         * glyphs-x.c (convert_EImage_to_XImage): 
5765         (x_finalize_image_instance):
5766         * ralloc.c (page_size):
5767         (r_alloc_sbrk):
5768         * xgccache.c (gc_cache_hash):
5769         Fix unsigned comparison warnings.
5770
5771 2002-07-29  Jerry James  <james@xemacs.org>
5772
5773         * lread.c (locate_file): Any nonnegative return value indicates
5774         success if MODE is nonnegative.
5775
5776 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5777
5778         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5779         argument. 
5780
5781 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5782
5783         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5784
5785         * dumper.c (pdump_get_indirect_count):
5786         (pdump_scan_by_alignment):
5787         (pdump_dump_root_struct_ptrs):
5788         (pdump_dump_rtables):
5789         (pdump_dump_root_objects):
5790         (pdump):
5791         * nas.c (WaveOpenDataForReading):
5792         * fns.c (print_bit_vector):
5793         * font-lock.c (SINGLE_SYNTAX_STYLE):
5794         * glyphs.c (check_for_ignored_expose):
5795         (find_matching_subwindow):
5796         * glyphs-eimage.c:
5797         * imgproc.c (get_histogram):
5798         * redisplay.c (point_in_line_start_cache):
5799         * redisplay-output.c (redisplay_unmap_subwindows):
5800         * symbols.c (defsymbol_massage_name_1):
5801         (defkeyword_massage_name):
5802         (deferror_massage_name_and_message):
5803         * redisplay-x.c (x_output_string): 
5804         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5805         * frame.h (struct frame):
5806         * filelock.c (current_lock_owner):
5807         * doprnt.c (emacs_doprnt_1):
5808         * lisp.h (struct Lisp_Bit_Vector):
5809         (DO_REALLOC):
5810         Fix warnings.
5811
5812 2002-02-13  Ben Wing  <ben@xemacs.org>
5813
5814         * event-stream.c (reset_key_echo):
5815         * event-stream.c (reset_this_command_keys):
5816         * event-stream.c (execute_command_event):
5817         If console is dead as a result of C-x 5 0, then post-command stuff
5818         needs to be careful and do only non-console-specific stuff.
5819
5820 2002-07-01  Mike Sperber <mike@xemacs.org>
5821
5822         * process-unix.c (unix_send_process): Mark coding_outstream as
5823         non-open upon SIGPIPE.
5824
5825         * event-stream.c (Fnext_event): Reorder switch cases to something
5826         that makes sense.
5827
5828 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5829
5830         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5831         Don't bogusly reinitialize ascii_character property.
5832
5833 2002-07-08  Mike Sperber <mike@xemacs.org>
5834
5835         * process.c (Fstart_process_internal): Do error checking before we
5836         fork off the child, so the child can't muck with the state of the
5837         parent.
5838
5839 2002-07-08  Mike Sperber <mike@xemacs.org>
5840
5841         * ralloc.c (init_ralloc): Allocate properly for pdump.
5842
5843 2002-06-12  Andy Piper  <andy@xemacs.org>
5844
5845         * glyphs.c (query_string_geometry): check the string.
5846
5847         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5848         widget names.
5849
5850 2002-06-17  Jerry James  <james@xemacs.org>
5851
5852         * sysdll.c: Remove RTLD_GLOBAL initialization.
5853         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5854
5855 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5856
5857         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5858
5859 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5860
5861         * sysdep.c (sys_rename): Make sys_rename work for the case where
5862         Windows rename sets errno to EACCES if target file exists.
5863
5864 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5865
5866         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5867         Fix detection of metric units to work on Win95
5868
5869 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5870
5871         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5872
5873 2002-04-25  Andy Piper  <andy@xemacs.org>
5874
5875         * redisplay.c (create_text_block): Remove extra comment trailer.
5876
5877 2002-04-24  Andy Piper  <andy@xemacs.org>
5878
5879         * redisplay.c (create_text_block): Don't actually add propagation
5880         data if the line ends after we have added a glyph.
5881
5882 2002-04-22  Andy Piper  <andy@xemacs.org>
5883
5884         * extents.c (extent_fragment_update): check for glyphs we have
5885         previously displayed.
5886         * extents.c (print_extent_1): warning removal.
5887         * extents.h: change prototype.
5888         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5889         widths correctly for wide glyphs.
5890         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5891         * redisplay.c (prop_type): add PROP_GLYPH.
5892         * redisplay.c (struct prop_block): add glyph type
5893         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5894         to the propagation data.
5895         * redisplay.c (create_text_block): if there is a glyph in the
5896         propagation data use it to salt extent_fragment_update.
5897         * redisplay.c (create_string_text_block): ditto.
5898
5899 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5900
5901         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5902         * redisplay-output.c (compare_runes): Compare them.
5903         * redisplay.c: Update copyright date.
5904         * redisplay.c (pos_data): Add need_baseline_computation field.
5905         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5906         need_baseline_computation; zero yoffset. Set max_pixmap_height
5907         for all pixmaps, not just automatically positioned ones.
5908         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5909         * redisplay.c (calculate_baseline): New, compute textual baseline.
5910         * redisplay.c (add_glyph_rune): Call them.
5911         * redisplay.c (create_text_block): Likewise.
5912         * redisplay.c (create_overlay_glyph_block): Likewise.
5913         * redisplay.c (add_margin_runes): Likewise.
5914         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5915
5916         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5917         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5918         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5919         * redisplay-msw.c (mswindows_output_string): Likewise.
5920         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5921         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5922         * redisplay-x.c (x_output_display_block): Likewise.
5923
5924 2002-03-28  Ben Wing  <ben@xemacs.org>
5925
5926         * redisplay.c: Fixed bug in redisplay
5927         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5928         and down of the lines, since they're bigger than the line
5929         size. (It was seen most obviously when there's a horizontal scroll
5930         bar, e.g. do C-h a glyph or something like that.) The problem was
5931         that the glyph-contrib-p setting on glyphs was ignored even if it
5932         was set properly, which it wasn't until now.
5933
5934 2002-04-24  Andy Piper  <andy@xemacs.org>
5935
5936         * lisp.h (Dynarr_end): Fix definition.
5937
5938 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5939
5940         * redisplay.c (mark_redisplay): Remove call to
5941         update_frame_window_mirror.
5942
5943 2001-11-15  Andy Piper  <andy@xemacs.org>
5944
5945         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5946         cygwin (again).
5947
5948 2002-02-13  Andy Piper  <andy@xemacs.org>
5949
5950         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5951         we did in fact enqueue the XM_MAPFRAME event.
5952
5953 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5954
5955         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5956         to fix problem switching between virtual desktops under virtuawin
5957         virtual window manager.
5958
5959 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5960
5961         * event-msw.c: Typo fix.
5962         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5963         magic XM_MAPFRAME event has been sent.
5964
5965 2001-11-23  Andy Piper  <andy@xemacs.org>
5966
5967         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5968
5969 2001-11-21  Andy Piper  <andy@xemacs.org>
5970
5971         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5972         mouse events outside the frame.
5973
5974 2002-03-20  Andy Piper  <andy@xemacs.org>
5975
5976         * menubar-msw.c (mswindows_popup_menu): warning removal.
5977         * dialog-msw.c (dialog_popped_down): ditto.
5978
5979 2001-12-11  Andy Piper  <andy@xemacs.org>
5980
5981         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5982         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5983         popup_up_p.
5984         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5985         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5986         * menubar-msw.c (mswindows_popup_menu): ditto.
5987
5988 2001-10-29  Andy Piper  <andy@xemacs.org>
5989
5990         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5991         cancels.
5992
5993 2002-01-03  Andy Piper  <andy@xemacs.org>
5994
5995         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5996         letters.
5997         (xrealpath): ditto.
5998
5999 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6000
6001         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6002         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6003         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6004         Detect and handle case where machine is set up for metric units
6005
6006 2002-04-02  Andy Piper  <andy@xemacs.org>
6007
6008         * dired-msw.c (mswindows_get_files): 
6009         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6010         completely handled by XEmacs. Suggested by Thomas Vogler
6011         <mail@thomas-vogler.de>.
6012
6013 2001-11-14  Andy Piper  <andy@xemacs.org>
6014
6015         * nt.c (REG_ROOT): change registry key to XEmacs.
6016
6017 2002-04-27  Andy Piper  <andy@xemacs.org>
6018
6019         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6020
6021 2002-04-26  Andy Piper  <andy@xemacs.org>
6022
6023         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6024         behavior.
6025
6026 2002-03-14  Mike Alexander  <mta@arbortext.com>
6027
6028         * event-msw.c (mswindows_unwait_process): New, remove process from
6029         wait list
6030         * process-nt.c (nt_finalize_process_data): Call
6031         mswindows_unwait_process
6032         * console-msw.h: Declare mswindows_unwait_process
6033
6034 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6035
6036         * editfns.c (Fdecode_time):
6037         (Fformat_time_string):
6038         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6039         (make_time): Warning elimination (change arg name).
6040
6041 2001-11-24  Andy Piper  <andy@xemacs.org>
6042
6043         * window.c (Fsplit_window): Doc return type.
6044
6045 2002-04-01  Andy Piper  <andy@xemacs.org>
6046
6047         * emacs.c (Fkill_emacs): Only output message box in interactive
6048         mode.
6049
6050 2002-04-26  Andy Piper  <andy@xemacs.org>
6051  
6052         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6053         cygwin.
6054
6055 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6056
6057         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6058         bit platform.
6059
6060 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6061
6062         * XEmacs 21.4.8 "Honest Recruiter" is released.
6063
6064 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6065
6066         Supersedes 2002-04-17 patch.
6067
6068         * process.h (PROCESS_LIVE_P): Use the process status as
6069         evidence of health, not the state of the input stream.
6070         (PROCESS_READABLE_P): Say if the process is readable
6071         from. (It may be dead nonetheless.)
6072         (CHECK_READABLE_PROCESS): Test for that condition.
6073
6074         * process.c (create_process): Use PROCESS_READABLE_P.
6075         (read_process_output, set_process_filter): Likewise.
6076
6077         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6078         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6079
6080         This code is #if 0'd, this is not the time to add new functions:
6081
6082         * process.c (Fprocess_readable_p): Report readability status.
6083         * process.c (Qprocess_readable_p): New, associated symbol...
6084         * process.c (syms_of_process): ... initialize it.
6085
6086 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6087
6088         * XEmacs 21.4.7 "Economic Science" is released.
6089
6090 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6091
6092         * process.h (PROCESS_LIVE_P): Use the process status as
6093         evidence of health, not the state of the input stream.
6094
6095 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6096
6097         * sysdep.c (sys_siglist): change "signum" to "signal"
6098
6099 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6100
6101         * s/darwin.h: New file.
6102         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6103         
6104 2002-04-23  Andreas Jaeger  <aj@suse.de>
6105
6106         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6107         which use lib64 for 64-bit libs.
6108         (START_FILES): Likewise.
6109
6110 2002-02-11  Mike Sperber  <mike@xemacs.org>
6111
6112         * device-x.c: 
6113         (x_IO_error_handler):
6114         (x_init_device): Temporarily keep device in static variable
6115         `device_being_initialized' so we can recover gracefully from
6116         internal XOpenDevice failure.  (XOpenDevice is documented to
6117         return NULL on failure, but sometimes calls the IO error handler
6118         instead.)
6119
6120 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6121
6122         * dired.c (Ffile_name_all_completions): Change documentation --
6123         remove reference to completion-ignored-extensions.
6124         * dired.c (vars_of_dired): Change documentation for
6125         completion-ignored-extensions -- remove reference to
6126         file-name-all-completions.
6127
6128 2002-03-06  Jerry James  <james@xemacs.org>
6129
6130         * emodules.c (emodules_load): Fix multiple loading of same module.
6131
6132 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6133         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6134         RTLD_LAZY to avoid incorrect symbol binding when using nested
6135         shared libraries on Solaris.
6136
6137 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6138
6139         * fileio.c (Ffind_file_name_handler): Improve docstring.
6140
6141 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6142
6143         * fns.c (Fmapconcat): Improve docstring.
6144
6145 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6146
6147         * device-gtk.c: Add prototype for
6148         emacs_gtk_selection_clear_event_handle.
6149         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6150         selection.  Setup signal handler for "selection_clear_event"
6151         (emacs_gtk_selection_clear_event_handle).
6152
6153         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6154         other applications owning the clipboard (based on
6155         x_handle_selection_clear).
6156
6157 2001-12-23  William M. Perry  <wmperry@gnu.org>
6158
6159         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6160         
6161 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6162
6163         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6164
6165 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6166
6167         * XEmacs 21.4.6 "Common Lisp" is released.
6168
6169 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6170
6171         * search.c (Freplace_match): Add missing sub-expression functionality.
6172
6173         * buffer.c (decode_buffer): Add a check for pointer type to
6174         decode_buffer, before gcc's CSE optimization reorders a
6175         dereference in front of the allow_string test.
6176
6177 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6178
6179         * window.c (window_loop): Fix bug that sometimes prevented
6180         window_loop() from iterating across multiple devices.  Also, at
6181         Ben's request, changed infloop-detecting code to abort() instead
6182         of silently terminating window_loop().
6183
6184 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6185
6186         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6187         * editfns.c (make_time): New function.
6188         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6189         * lisp.h (make_time): Prototype and comment it.
6190         * dired.c (wasteful_word_to_lisp): Deprecate.
6191         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6192
6193 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6194
6195         * fileio.c (auto_save_1): Use current coding system, not
6196         escape-quoted.
6197
6198 2001-11-13  Ben Wing  <ben@xemacs.org>
6199
6200         * window.c:
6201         * window.c (window_truncation_on):
6202         * window.c (syms_of_window):
6203         truncate-partial-width-windows should respect the buffer being
6204         displayed, like other redisplay vars.
6205
6206 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6207
6208         * event-stream.c (Fread_key_sequence): save current buffer.
6209
6210 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6211
6212         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6213
6214 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6215
6216         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6217
6218 2001-10-26  Mike Alexander  <mta@arbortext.com>
6219
6220         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6221
6222 2001-10-25  Andy Piper  <andy@xemacs.org>
6223
6224         * ChangeLog:
6225         * dialog-msw.c (handle_directory_proc): new function.
6226          (handle_directory_dialog_box): new fucntion.
6227          (handle_file_dialog_box): use new directory dialog support.
6228          (mswindows_make_dialog_box_internal): ditto.
6229         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6230         handling.
6231         (mswindows_find_frame): make global.
6232         * fileio.c (Fexpand_file_name): build fix.
6233         * general-slots.h: add Qdirectory.
6234         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6235         handling.
6236         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6237         cygwin not leaving win32 paths unchanged.
6238         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6239         cygwin runtime to do path conversion.
6240         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6241         (syms_of_win32): add new function.
6242         * window.c (window_loop): build fix.
6243
6244 2001-10-15  Andy Piper  <andy@xemacs.org>
6245
6246         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6247
6248 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6249
6250         * XEmacs 21.4.5 "Civil Service" is released.
6251
6252 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6253
6254         * glyphs-x.c: Force buffer-tab highlight update when moving the
6255         buffer, avoiding an ugly black border, used for keyboard focus
6256         indication, on a widget that can never have keyboard focus, the
6257         buffer tab.
6258
6259 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6260
6261         * process-unix.c (unix_open_multicast_group): Remove too much
6262         conversion between host and network byte order.
6263
6264 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6265
6266         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6267         before replacing them.
6268
6269         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6270         operation.
6271
6272         * src/window.c (undedicate_windows): Use it.
6273         * src/window.h: Add prototype.
6274
6275 2001-09-17  Ben Wing  <ben@xemacs.org>
6276
6277         * fileio.c (normalize_filename):
6278         * fileio.c (Fexpand_file_name):
6279         Fix various C++ compile errors in Andy's recent code.
6280         
6281         * callint.c (Fcall_interactively):
6282         * editfns.c (Ftemp_directory):
6283         * editfns.c (Fuser_full_name):
6284         * emacs.c (argmatch):
6285         * lread.c (locate_file_map_suffixes):
6286         * redisplay-x.c (x_ring_bell):
6287         Fix sign-compare warnings.
6288         
6289 2001-09-08  Andy Piper  <andy@xemacs.org>
6290
6291         * fileio.c (normalize_filename): copied from nt.c
6292         * (Ffile_name_directory): enable win32 paths under cygwin.
6293         * (Ffile_name_nondirectory): ditto.
6294         * (directory_file_name): ditto.
6295         * (Fexpand_file_name): ditto.
6296         * (Ffile_truename): ditto.
6297         * (Fsubstitute_in_file_name): ditto.
6298         * (Ffile_name_absolute_p): ditto.
6299         * (Ffile_readable_p): ditto.
6300
6301 2001-09-08  Andy Piper  <andy@xemacs.org>
6302
6303         * device-msw.c (mswindows_finish_init_device): remove dde
6304         initialization.
6305         * device-msw.c (mswindows_init_dde): factor out from
6306         mswindows_finish_init_device()
6307         * device-msw.c (init_mswindows_very_early): new function
6308         initialize but don't enable dde.
6309         * emacs.c (main_1): call init_mswindows_very_early.
6310         * event-msw.c:
6311         * event-msw.c (mswindows_dde_callback): only execute when we are
6312         ready.
6313         * symsinit.h: declare init_mswindows_very_early.
6314
6315 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6316
6317         [sjt: This has been in 21.5 for months with no complaints.]
6318
6319         * console.h (struct console_methods): Added flags member.
6320         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6321         (CONMETH_IMPL_FLAG):
6322         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6323         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6324
6325         * device.c (window_system_pixelated_geometry): Use the above macros.
6326
6327         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6328         implememntation flag.
6329         * device.h (DEVICE_DISPLAY_P): Use it.
6330
6331         * frame.c (delete_frame_internal): Use the above macro.
6332
6333         * redisplay.c (redisplay_device): Use it.
6334         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6335         (redisplay_frame): Ditto.
6336
6337         * device-msw.c (mswindows_device_implementation_flags): Removed.
6338         (msprinter_device_implementation_flags): Removed.
6339         (console_type_create_device_mswindows): Removed references to
6340         implementation_flags methods, set implementation flags here.
6341         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6342
6343         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6344         (console_type_create_device_gtk): Removed method declaration.
6345         Added commented out statement which semantically matches the
6346         commented out statement in the above removed method.
6347
6348 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6349
6350         The attached patch fixes a few warnings. 
6351
6352         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6353         * src/frame-gtk.c: guard against GNOME calls in GTK only
6354         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6355         * src/select-gtk.c: prototype lisp_to_time
6356
6357 2001-06-08  Ben Wing  <ben@xemacs.org>
6358
6359         ------ gc-in-window-procedure fixes ------
6360         
6361         * alloc.c:
6362         * alloc.c (struct post_gc_action):
6363         * alloc.c (register_post_gc_action):
6364         * alloc.c (run_post_gc_actions):
6365         * alloc.c (garbage_collect_1):
6366         Create "post-gc actions", to avoid those dreaded "GC during window
6367         procedure" problems.
6368
6369         * event-msw.c:
6370         Abort, clean and simple, when GC in window procedure.  We want
6371         to flush these puppies out.
6372
6373         * glyphs-msw.c:
6374         * glyphs-msw.c (finalize_destroy_window):
6375         * glyphs-msw.c (mswindows_finalize_image_instance):
6376         Use a post-gc action when destroying subwindows.
6377
6378         * lisp.h:
6379         Declare register_post_gc_action().
6380
6381         * scrollbar-msw.c:
6382         * scrollbar-msw.c (unshow_that_mofo):
6383         Use a post-gc action when unshowing scrollbar windows, if in gc.
6384
6385         * redisplay.c (mark_redisplay):
6386         Add comment about the utter evilness of what's going down here.
6387
6388         ------ cygwin setitimer fixes ------
6389         
6390         * Makefile.in.in (sheap_objs):
6391         * Makefile.in.in (profile_objs):
6392         * Makefile.in.in (objs):
6393         Compile profile.c only when HAVE_SETITIMER.
6394         
6395         * nt.c (mswindows_sigset):
6396         * nt.c (mswindows_sighold):
6397         * nt.c (mswindows_sigrelse):
6398         * nt.c (mswindows_sigpause):
6399         * nt.c (mswindows_raise):
6400         * nt.c (close_file_data):
6401         Style fixes.
6402         
6403         * nt.c:
6404         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6405         
6406         * profile.c:
6407         * profile.c (Fstart_profiling):
6408         * profile.c (Fstop_profiling):
6409         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6410         instead of just plain setitimer().
6411         
6412         * signal.c:
6413         * signal.c (set_one_shot_timer):
6414         * signal.c (alarm):
6415         Define qxe_setitimer() as an encapsulation around setitimer() --
6416         call setitimer() directly unless Cygwin or MS Win, in which case
6417         we use our simulated version in win32.c.
6418         
6419         * systime.h:
6420         * systime.h (struct itimerval):
6421         * systime.h (ITIMER_REAL):
6422         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6423         comment about "qxe" and the policy regarding encapsulation.
6424
6425         * win32.c:
6426         * win32.c (setitimer_helper_proc):
6427         * win32.c (setitimer_helper_period):
6428         * win32.c (setitimer_helper):
6429         * win32.c (mswindows_setitimer):
6430         Move setitimer() emulation here, so Cygwin can use it.
6431         Rename a couple of functions and variables to be longer and more
6432         descriptive.  In setitimer_helper_proc(), send the signal
6433         using either mswindows_raise() or (on Cygwin) kill().  If for
6434         some reason we are still getting lockups, we'll change the kill()
6435         to directly invoke the signal handlers.
6436
6437         ------ windows shell fixes ------
6438         
6439         * callproc.c:
6440         * ntproc.c:
6441         Comments about how these two files must die.
6442
6443         * callproc.c (init_callproc):
6444         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6445         not just COMSPEC. (more correct and closer to FSF.) Don't
6446         force a value for SHELL into the environment. (Comments added
6447         to explain why not.)
6448         
6449         * nt.c (init_user_info):
6450         Don't shove a fabricated SHELL into the environment.  See above.
6451
6452 2001-06-01  Ben Wing  <ben@xemacs.org>
6453
6454         * Makefile.in.in (ldflags):
6455         eliminate that pesky "defaulting to 00401000" warning.
6456         * nt.h:
6457         eliminate warnings.
6458
6459 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6460
6461         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6462         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6463
6464 2001-04-24  Jerry James <james@xemacs.org>
6465
6466         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6467         correct order.
6468
6469 2001-06-01  Ben Wing  <ben@xemacs.org>
6470
6471         * event-msw.c (debug_mswin_messages):
6472         conditionalize the messages that were causing compile errors.
6473         (if only macros could generate #ifdef statements ...)
6474
6475 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6476
6477         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6478
6479 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6480
6481         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6482
6483 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6484
6485         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6486         * process-unix.c (unix_canonicalize_host_name):
6487         sysdep.c (init_system_name):
6488         Use it to conditionally support IPv6 canonicalization.
6489
6490 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6491
6492         * event-msw.c:
6493         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6494
6495 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6496
6497         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6498         attempt is made to scroll when no scroll bar is available.
6499
6500 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6501
6502         * input-method-motif.c (XIM_delete_frame): New callback.
6503         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6504         got deleted from 21.4.3.)
6505
6506 2001-06-01  Ben Wing  <ben@xemacs.org>
6507
6508         * nt.c (mswindows_utime):
6509         * nt.c (close_file_data):
6510         fix off-by-one-indirection error.
6511
6512 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6513
6514         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6515         because set_file_times() now takes Lisp_Object path, instead of
6516         char*.
6517         * nt.c: Include buffer.h.
6518         * nt.c (convert_from_time_t): New.
6519         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6520         not set mtime correctly.
6521         * nt.h: Declare mswindows_utime().
6522         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6523         path, instead of char*.
6524         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6525
6526 2001-05-30  Ben Wing  <ben@xemacs.org>
6527
6528         For 21.4:
6529
6530         (Stephen, just take all event-msw.c patches.  This includes
6531         the "iconify" fix below.)
6532
6533         * event-msw.c:
6534         * event-msw.c (mswindows_dequeue_dispatch_event):
6535         * event-msw.c (assert):
6536         * event-msw.c (emacs_mswindows_quit_p):
6537         * event-msw.c (debug_mswin_messages):
6538         * event-msw.c (debug_output_mswin_message):
6539         * event-msw.c (vars_of_event_mswindows):
6540         Fix yet more problems with C-g handling.
6541         Implement debug-mswindows-events.
6542         
6543 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6544
6545         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6546         
6547 2001-05-23  Ben Wing  <ben@xemacs.org>
6548
6549         * event-msw.c (winsock_writer):
6550         * event-msw.c (winsock_closer):
6551         prior kludgy code was clobbering the buffer, thinking it was
6552         "unused" space to store an unneeded return value; instead, use
6553         the variable we've already got staring us in the face.
6554
6555 2001-05-17  Andy Piper  <andy@xemacs.org>
6556
6557         * sysfile.h: don't assume that file attributes are boolean
6558
6559 2001-05-23  Ben Wing  <ben@xemacs.org>
6560
6561         * device-msw.c (msprinter_init_device):
6562         signal an error rather than crash with an unavailable network
6563         printer (from Mike Alexander).
6564         
6565         * event-msw.c:
6566         * event-msw.c (struct winsock_stream):
6567         * event-msw.c (winsock_writer):
6568         * event-msw.c (winsock_closer):
6569         * event-msw.c (make_winsock_stream_1):
6570         cleanup headers.  fix (hopefully) an error with data corruption
6571         when sending to a network connection.
6572
6573         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6574         to handle the ~user prefix by (a) always assuming we're referencing
6575         ourselves and not even verifying the user -- hence any file with
6576         a tilde as its first char is invalid! (b) if there wasn't a slash
6577         following the filename, the pointer was set *past* the end of
6578         file and we started reading from uninitialized memory.  Now we
6579         simply treat these as files, always.
6580
6581         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6582         
6583 2001-05-19  Ben Wing  <ben@xemacs.org>
6584
6585         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6586
6587         * process-nt.c:
6588         * process-nt.c (vars_of_process_nt):
6589         remove unused mswindows-quote-process-args.  rec for 21.4.
6590         
6591 2001-05-12  Ben Wing  <ben@xemacs.org>
6592
6593         * event-msw.c (mswindows_dde_callback):
6594         * event-msw.c (mswindows_wnd_proc):
6595         eliminate cygwin warnings.
6596
6597 2001-05-06  Ben Wing  <ben@xemacs.org>
6598
6599         * console-msw.h:
6600         * device-msw.c:
6601         * device-msw.c (print_dialog_worker):
6602         * device-msw.c (mswindows_handle_print_dialog_box):
6603         * device-msw.c (syms_of_device_mswindows):
6604         * dialog-msw.c (mswindows_make_dialog_box_internal):
6605         * general-slots.h:
6606         implement printing the selection when it's selected.
6607
6608 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6609
6610         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6611
6612 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6613
6614         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6615         EMACS_INT is signed.
6616
6617 2001-04-15  Michael Lausch  <mla@1012surf.net>
6618
6619         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6620         gtk_widget_request_size() to give scrollbar >0 width for
6621         GTK >1.2.8.
6622
6623 2001-05-30  William M. Perry  <wmperry@gnu.org>
6624
6625         * event-gtk.c: Check for buttons as modifier keys.
6626
6627 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6628
6629         * s\mingw32.h:
6630         Properly find MinGW's <process.h> inside Cygwin's restructured
6631         include directories.  Don't try to include <cygwin/version.h>
6632         since we are dropping support for MinGW in versions of Cygwin
6633         earlier than b21.
6634         * nt.c:
6635         Drop support for MinGW in versions of Cygwin before b21.
6636         * sysdep.c:
6637         Properly find MinGW's <process.h> inside Cygwin's restructured
6638         include directories.
6639         * syswindows.h:
6640         Drop support for MinGW in versions of Cygwin before b21.
6641         * unexcw.c:
6642         Even though a.out.h is no longer detected by configure, allow
6643         MinGW to use it until we figure out how to do the job with Win32.
6644
6645 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6646
6647         * syntax.c (find_start_of_comment):
6648         Fix `unbalanced parentheses' bug when dealing with mixed comment
6649         styles in c++/java/etc. mode
6650
6651 2001-05-29  Mike Alexander  <mta@arbortext.com>
6652
6653         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6654         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6655
6656 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6657
6658         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6659
6660 2001-03-31  Mike Sperber <mike@xemacs.org>
6661
6662         * search.c (Freplace_match): Support FSF-style specification of
6663         match subexpression when applied to a buffer.
6664
6665 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6666
6667         * event-stream.c (is_scrollbar_event): add missing semicolon
6668
6669 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6670
6671         * Makefile.in.in: Use TAR macro instead of hardcoding
6672           tar.  Allows use of GNU tar instead of system tar
6673
6674 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6675
6676         * event-stream.c (is_scrollbar_event): add missing semicolon
6677
6678 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6679
6680         * XEmacs 21.4.3 "Academic Rigor" is released.
6681
6682 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6683
6684         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6685
6686 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6687
6688         * buffer.c (Vcase_fold_search): Remove obsolete
6689           comment about non ASCII case-fold-search.  This
6690           bug has been fixed by case-table changes.
6691
6692 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6693
6694         * event-msw.c: Restore include of events-mod.h.
6695
6696 2001-04-22   zhaoway  <zw@debian.org>
6697
6698         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6699         !HAVE_SCROLLBARS.
6700
6701 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6702
6703         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6704
6705 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6706
6707         * mule-charset.c (Fmake_charset): Add missing else.
6708
6709 2001-04-23  Ben Wing  <ben@xemacs.org>
6710
6711         * event-msw.c (FAKE_MOD_QUIT):
6712         * event-msw.c (mswindows_dequeue_dispatch_event):
6713         * event-msw.c (mswindows_wnd_proc):
6714         * event-msw.c (emacs_mswindows_quit_p):
6715         Get critical quit working.
6716
6717 2001-05-05  Ben Wing  <ben@xemacs.org>
6718
6719         * console-msw.h:
6720         * device-msw.c:
6721         * device-msw.c (mswindows_get_default_margin):
6722         * frame-msw.c (mswindows_size_frame_internal):
6723         * frame-msw.c (msprinter_init_frame_1):
6724         * frame-msw.c (vars_of_frame_mswindows):
6725         Change top/bottom margin defaults to 0.5 inches.
6726
6727 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6728
6729         Fix link error with gcc 3.0 on Linux.
6730         * terminfo.c (UP): Remove.
6731         * terminfo.c (BC): Remove.
6732         * terminfo.c (PC): Remove.
6733         They weren't used, and in any case, these symbols should be
6734         defined in the *library*.
6735
6736 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6737
6738         * s/aix4.h: Fix crash with xlc -O3.
6739         Improve comment explaining how -O3 works.
6740
6741 2001-04-15  Ben Wing  <ben@xemacs.org>
6742
6743         * event-stream.c:
6744         * event-stream.c (Fnext_event):
6745         * event-stream.c (is_scrollbar_event):
6746         * event-stream.c (execute_command_event):
6747         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6748         crash' problem.  His fix introduces other problems.  We filter
6749         out scrollbar events specifically, making them somewhat invisible
6750         to command-building, and not appearing in `this-command-keys'.
6751         More work is still needed (see comments in event-stream.c), but
6752         this fixes all the major problems.
6753
6754 2001-04-20  Ben Wing  <ben@xemacs.org>
6755
6756         * .cvsignore: Added stuff for Windows.
6757
6758 2001-04-28  Ben Wing  <ben@xemacs.org>
6759
6760         * buffer.c (Ferase_buffer):
6761         * editfns.c (buffer_insert1):
6762         * editfns.c (Finsert_before_markers):
6763         * editfns.c (Finsert_string):
6764         * editfns.c (Finsert_char):
6765         * editfns.c (Fdelete_region):
6766         * editfns.c (Fwiden):
6767         * editfns.c (Fnarrow_to_region):
6768         remove bogus lines setting zmacs_region_stays to 0.
6769         
6770 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6771
6772         * process-unix.c (unix_open_network_stream): If connect() fails
6773         invalidate file descriptor after closing it.
6774
6775 2001-03-08  Mike Alexander  <mta@arbortext.com>
6776
6777         * event-msw.c (mswindows_need_event_in_modal_loop):
6778         Don't dispatch a message if we didn't get one.
6779         (mswindows_need_event):
6780         Terminate the correct process when one exits instead of the first
6781         one on Vprocess_list and look for process termination when in
6782         mswindows_protect_modal_loop.
6783
6784 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6785
6786         * XEmacs 21.4.1 "Copyleft" is released.
6787
6788 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6789
6790         * input-method-motif.c (XIM_delete_frame): New callback.
6791         (XIM_init_frame): Register it.
6792
6793 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6794
6795         * XEmacs 21.4.0 "Solid Vapor" is released.
6796
6797 2001-04-15  Ben Wing  <ben@xemacs.org>
6798
6799         * cmdloop.c (call_command_loop):
6800         Fix braino in bit-rotting code.
6801         
6802 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6803
6804         * extents.c (Fset_extent_endpoints): Force creation of extent info
6805         in buffer_or_string.
6806
6807         * extents.c (process_extents_for_insertion_mapper): Correctly
6808         check for open-open zero-length extents.
6809
6810 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6811
6812         * lisp.h: New typedefs Memory_count, Element_count.
6813         * regex.c:
6814         * regex.h:
6815         Sign-compare warning elimination: several unsigned -> signed.
6816         Based on work by Ben Wing <ben@xemacs.org>.
6817
6818 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6819
6820         * XEmacs 21.2.47 "Zephir" is released.
6821
6822 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6823
6824         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6825
6826 2001-04-03  Mike Sperber <mike@xemacs.org>
6827
6828         * search.c: Revert previous patch due because of release.
6829
6830 2001-03-30  Ben Wing  <ben@xemacs.org>
6831
6832         * s\cygwin32.h:
6833         Add missing killpg prototype.
6834
6835         * elhash.c:
6836         Add a comment about fixing problems when a new entry is added
6837         while mapping.
6838
6839         * frame-msw.c (mswindows_init_frame_1):
6840         Fix compile warnings.
6841
6842         * menubar.c (vars_of_menubar):
6843         Provide `menu-accelerator-support' to indicate that we properly
6844         support %_ in menu specifications, so that package code can
6845         conditionalize on this (and remove %_ from menu specifications
6846         on older versions).
6847
6848         * event-msw.c:
6849         * scrollbar-msw.c:
6850         * scrollbar-msw.c (can_scroll):
6851         * scrollbar-msw.h:
6852         Fix handling of mouse wheel under Windows to follow standards --
6853         now scrolls window under pointer, not selected window.
6854
6855 2001-03-31  Mike Sperber <mike@xemacs.org>
6856
6857         * search.c (Freplace_match): Support FSF-style specification of
6858         match subexpression when applied to a buffer.
6859
6860 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6861
6862         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6863         function to modify KEYMAP, so map over a copy of the hash table.
6864
6865 2001-03-21  Martin Buchholz <martin@xemacs.org>
6866
6867         * XEmacs 21.2.46 "Urania" is released.
6868
6869 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6870
6871         * realpath.c (xrealpath): Make file-truename work with symlinks to
6872         /cygdrive paths on cygwin. Always lowercase drive-letters on
6873         native windows.
6874         (cygwin_readlink): Don't try to find canonical filename unless
6875         file exists.
6876
6877 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6878
6879         * ChangeLog: Log GTK merge.
6880
6881         * dumper.c:
6882         * select-x.c:
6883         * specifier.c:
6884         * symeval.h:
6885         Revert gratuitous whitespace changes from GTK merge.
6886
6887         * emacs.c: Document end of complex #ifdef @ l. 1495.
6888
6889
6890 2001-03-12  Andy Piper  <andy@xemacs.org>
6891
6892         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6893         have to do likewise.
6894
6895 2001-03-12  Andy Piper  <andy@xemacs.org>
6896
6897         * sysdep.c: we only support mingw now.
6898
6899 2001-03-09  Andy Piper  <andy@xemacs.org>
6900
6901         * unexcw.c (copy_executable_and_dump_data_section): making approx
6902         overrun a warning only.
6903
6904 2001-03-10  William M. Perry  <wmperry@aventail.com>
6905
6906         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6907         satisfy Stephen's identical-after-cpp plea.
6908
6909 2001-03-02  Ben Wing  <ben@xemacs.org>
6910
6911         * cmds.c:
6912         * cmds.c (Fforward_char):
6913         * syntax.c:
6914         * window.c:
6915
6916         Augment documentation of the most common motion commands to make
6917         note of the shifted-motion support.
6918         
6919 2001-03-02  Ben Wing  <ben@xemacs.org>
6920
6921         * nt.c (mswindows_fstat):
6922         * nt.c (mswindows_stat):
6923         * search.c (boyer_moore):
6924         Fix compile warnings under Windows.
6925         
6926         * sysdep.c (sys_readdir):
6927         Fix buggy filename-conversion code under Mule.
6928
6929 2001-03-09  William M. Perry  <wmperry@aventail.com>
6930
6931         * Makefile.in.in:
6932         * config.h.in:
6933         * console.c:
6934         * console.h:
6935         * device.c:
6936         * device.h:
6937         * dragdrop.c:
6938         * emacs.c:
6939         * event-stream.c:
6940         * events.c:
6941         * events.h:
6942         * faces.c:
6943         * frame.h:
6944         * general-slots.h:
6945         * glyphs.c:
6946         * gutter.c:
6947         * inline.c:
6948         * lisp.h:
6949         * lrecord.h:
6950         * make-src-depend:
6951         * redisplay-output.c:
6952         * redisplay.c:
6953         * symsinit.h:
6954         * sysfile.h:
6955         * toolbar.c:
6956         * window.c:
6957         The Great GTK Merge.
6958
6959         * ChangeLog.GTK:
6960         * console-gtk.c:
6961         * console-gtk.h:
6962         * device-gtk.c:
6963         * emacs-marshals.c:
6964         * emacs-widget-accessors.c:
6965         * event-gtk.c:
6966         * frame-gtk.c:
6967         * gccache-gtk.c:
6968         * gccache-gtk.h:
6969         * glade.c:
6970         * glyphs-gtk.c:
6971         * glyphs-gtk.h:
6972         * gtk-glue.c:
6973         * gtk-xemacs.c:
6974         * gtk-xemacs.h:
6975         * gui-gtk.c:
6976         * gui-gtk.h:
6977         * menubar-gtk.c:
6978         * native-gtk-toolbar.c:
6979         * objects-gtk.c:
6980         * objects-gtk.h:
6981         * redisplay-gtk.c:
6982         * scrollbar-gtk.c:
6983         * scrollbar-gtk.h:
6984         * select-gtk.c:
6985         * toolbar-gtk.c:
6986         * ui-byhand.c:
6987         * ui-gtk.c:
6988         * ui-gtk.h:
6989         The Great GTK Merge: new files.
6990
6991 2001-02-26  Ben Wing  <ben@xemacs.org>
6992
6993         Reapplied Lstream change.
6994
6995 2001-02-26  Ben Wing  <ben@xemacs.org>
6996
6997         Undid the last change, since it is more controversial than I
6998         thought.  It should be back in at some point soon.
6999         
7000 2001-02-25  Ben Wing  <ben@xemacs.org>
7001
7002         * buffer.c:
7003         * callproc.c (Fold_call_process_internal):
7004         * event-msw.c (ntpipe_slurp_reader):
7005         * event-msw.c (ntpipe_shove_writer):
7006         * event-msw.c (winsock_reader):
7007         * event-msw.c (winsock_writer):
7008         * file-coding.c:
7009         * file-coding.c (detect_eol_type):
7010         * file-coding.c (detect_coding_type):
7011         * file-coding.c (determine_real_coding_system):
7012         * file-coding.c (Fdetect_coding_region):
7013         * file-coding.c (decoding_reader):
7014         * file-coding.c (decoding_writer):
7015         * file-coding.c (mule_decode):
7016         * file-coding.c (Fdecode_coding_region):
7017         * file-coding.c (encoding_reader):
7018         * file-coding.c (encoding_writer):
7019         * file-coding.c (mule_encode):
7020         * file-coding.c (Fencode_coding_region):
7021         * file-coding.c (detect_coding_sjis):
7022         * file-coding.c (decode_coding_sjis):
7023         * file-coding.c (encode_coding_sjis):
7024         * file-coding.c (detect_coding_big5):
7025         * file-coding.c (decode_coding_big5):
7026         * file-coding.c (encode_coding_big5):
7027         * file-coding.c (detect_coding_ucs4):
7028         * file-coding.c (decode_coding_ucs4):
7029         * file-coding.c (encode_coding_ucs4):
7030         * file-coding.c (detect_coding_utf8):
7031         * file-coding.c (decode_coding_utf8):
7032         * file-coding.c (encode_coding_utf8):
7033         * file-coding.c (detect_coding_iso2022):
7034         * file-coding.c (decode_coding_iso2022):
7035         * file-coding.c (encode_coding_iso2022):
7036         * file-coding.c (decode_coding_no_conversion):
7037         * file-coding.c (encode_coding_no_conversion):
7038         * glyphs-x.c (write_lisp_string_to_temp_file):
7039         * gpmevent.c (tty_get_foreign_selection):
7040         * lisp.h:
7041         * lstream.c:
7042         * lstream.c (Lstream_flush_out):
7043         * lstream.c (Lstream_adding):
7044         * lstream.c (Lstream_write_1):
7045         * lstream.c (Lstream_write):
7046         * lstream.c (Lstream_raw_read):
7047         * lstream.c (Lstream_read_more):
7048         * lstream.c (Lstream_read):
7049         * lstream.c (Lstream_unread):
7050         * lstream.c (Lstream_fputc):
7051         * lstream.c (stdio_reader):
7052         * lstream.c (stdio_writer):
7053         * lstream.c (filedesc_reader):
7054         * lstream.c (filedesc_writer):
7055         * lstream.c (lisp_string_reader):
7056         * lstream.c (struct fixed_buffer_stream):
7057         * lstream.c (make_fixed_buffer_input_stream):
7058         * lstream.c (make_fixed_buffer_output_stream):
7059         * lstream.c (fixed_buffer_reader):
7060         * lstream.c (fixed_buffer_writer):
7061         * lstream.c (struct resizing_buffer_stream):
7062         * lstream.c (resizing_buffer_writer):
7063         * lstream.c (dynarr_writer):
7064         * lstream.c (lisp_buffer_reader):
7065         * lstream.c (lisp_buffer_writer):
7066         * lstream.h:
7067         * lstream.h (lstream_implementation):
7068         * lstream.h (struct lstream):
7069         * md5.c (Fmd5):
7070         * process-nt.c (nt_send_process):
7071         * process-unix.c (unix_send_process):
7072         
7073         Correct Lstream lossage due to mixing of signed and unsigned
7074         quantities.  All Lstream uses of size_t and ssize_t are now a
7075         single signed data type Lstream_data_count.  This fixes problems
7076         under Windows with sending large quantities of data to a process,
7077         and may well fix other subtle bugs.
7078
7079 2001-02-23  Martin Buchholz <martin@xemacs.org>
7080
7081         * XEmacs 21.2.45 "Thelxepeia" is released.
7082
7083 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7084
7085         * lisp-union.h (XSETINT): 
7086         (XSETCHAR):
7087         (XSETOBJ): 
7088         Reverse previous change of 2001-02-06.
7089
7090 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7091
7092         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7093         buffers.
7094         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7095         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7096         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7097         * regex.c (POS_AS_IN_BUFFER): removed
7098         * regex.c (re_search_2):
7099         * regex.c (re_match_2):
7100         Don't use an offset of 1 when calculating buffer positions, since
7101         `BI_BUF_BEGV' does it already.
7102
7103 2001-02-18  Wim Dumon  <wim@easics.be>
7104
7105         * insdel.c (prepare_to_modify_buffer): Also check for
7106         supersession when clash-detection is enabled. 
7107
7108 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7109
7110         * regex.c (re_match_2_internal):
7111         Convert temp characters from 'const unsigned char' to 're_char'.
7112         Fix crashing bug with extended characters under mule.
7113         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7114         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7115         font-lock, pdump, and new syntax-table code.
7116         * syntax.c (find_start_of_comment):
7117         (find_end_of_comment):
7118         (forward-comment):
7119         Fix crashing bugs involving moving beyond end of buffer.
7120         * syntax.c (find_start_of_comment):
7121         Fixed logic to allow proper detection of cases where the same
7122         character is used to end both a two-char comment start and a
7123         two-char comment end sequence. Fixes `(forward-comment -1)'.
7124         * syntax.c (find_start_of_comment):
7125         Return position just past last comment-end character for all cases
7126         (previously was only done for two-char comment-end sequences).
7127         * syntax.c (forward-comment):
7128         Take value returned from `find_end_of_comment', rather than
7129         incrementing it.
7130         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7131         Properly deal with BUFFERP (syntax_cache.object)
7132
7133 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7134
7135         * alloc.c (Fgarbage_collect): 
7136         * alloc.c (make_bit_vector_from_byte_vector):
7137         -Wsign-compare-correctness.
7138
7139 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7140
7141         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7142         (XSETCHAR): Likewise.
7143         (XSETOBJ): Likewise.
7144
7145 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7146
7147         * mule-canna.c (canna-func-delete_previous): 
7148         Rename to canna-func-delete-previous.
7149
7150 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7151
7152         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7153
7154 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7155
7156         * font-lock.c (find_context): Fix C++ compile errors introduced by
7157         recent patch
7158
7159 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7160
7161         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7162         pragma, but earlier ones barf on the same pragma.
7163
7164 2001-02-06  Mike Sperber <mike@xemacs.org>
7165
7166         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7167         `configure-mule-lisp-directory'.
7168
7169 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7170
7171         Make sure dump-id.c is compiled in the same way as other .c's.
7172         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7173         * dump-id.h: Remove.
7174         * emacs.c: Move dump-id.h into dumper.h.
7175         * dumper.h: Move dump-id.h into dumper.h.
7176         * Makefile.in.in:
7177         Use standard .c.o rule for building dump-id.o.
7178         Remove preprocessor flags from link command.
7179         Add dump-id.o to ${otherobjs} if PDUMP.
7180
7181 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7182
7183         Port FSF 20.7 syntax table improvements.
7184         * syntax.c.
7185         * syntax.h.
7186
7187         Fixups for new syntax table stuff.
7188         * dired.c: Include syntax.c.
7189         (Fdirectory_files): Initialize regex_match_object and
7190         regex_emacs_buffer.
7191         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7192         and Fget_char_property.
7193
7194         Use ported FSF 20.7 syntax table improvements.
7195         * font-lock.c.
7196         * regex.c.
7197         * search.c.
7198         
7199 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7200
7201         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7202         Unixware's enum boolean from sys/types.h.
7203
7204 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7205
7206         Fix support for building with latest Purify.
7207         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7208         (PURIFY_FLAGS): Likewise.
7209
7210 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7211
7212         * fileio.c (lisp_string_set_file_times): New.
7213         * fileio.c (Fcopy_file): Use it.
7214         Fixes bug:
7215         (copy-file filename non-ascii-filename t t)
7216         ==> No such file or directory, non-ascii-filename
7217
7218 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7219
7220         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7221         USHRT_MAX seems clearer than ~0 anyways.
7222
7223 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7224
7225         dumper improvements.  Inspired by Olivier.
7226         * dumper.c (pdump_max_align): New.
7227         * dumper.c (pdump_add_entry): Use pdump_max_align.
7228         * dumper.c (pdump_get_entry_list): Likewise.
7229         * dumper.c (pdump_scan_by_alignment): Likewise.
7230         Don't iterate through unnecessary alignments.
7231         * dumper.c (pdump_file_get): No need to align result of malloc().
7232         * dumper.c (pdump_mallocadr): Remove.  
7233         The result of malloc() is guaranteed to be maximally aligned.
7234         * dumper.c: s/elmt/elt/g;
7235         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7236         * dumper.c (pdump_alert_undump_object): Likewise.
7237         * dumper.c (pdump_align_table): 
7238         Don't support alignments > 64.
7239         Store ALIGNOF's, not shift counts, in table.
7240
7241 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7242
7243         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7244         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7245         * systime.h: Use HAVE_UTIME.
7246         * sysdep.c (struct utimbuf): Remove.
7247         * sysdep.c (set_file_times): Prefer utime() to utimes().
7248         * config.h.in (HAVE_UTIME): New.
7249         * config.h.in (HAVE_UTIME_H): Remove.
7250         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7251
7252 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7253
7254         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7255
7256 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7257
7258         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7259
7260 2001-02-08  Martin Buchholz <martin@xemacs.org>
7261
7262         * XEmacs 21.2.44 "Thalia" is released.
7263
7264 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7265
7266         Fixes crashes in kill-emacs on some systems.
7267         * process-unix.c (unix_kill_child_process):
7268         It's OK for kill() to fail with ESRCH.
7269
7270 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7271
7272         Contortions to make .gdbinit tricks work on most systems.
7273         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7274         * alloc.c (dbg_valmask): Make non-const.
7275         * alloc.c (dbg_typemask): Make non-const.
7276         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7277         * alloc.c (dbg_valbits): Make non-const.
7278         * alloc.c (dbg_gctypebits): Make non-const.
7279         * .gdbinit (decode_object): Make it work with AIX cc.
7280
7281 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7282
7283         * elhash.c (make_general_lisp_hash_table):
7284         Use simpler and more efficient calloc to clear entries.
7285
7286 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7287
7288         * window.c (window_scroll): Work around an AIX C compiler bug.
7289         Fixes 'scroll-up' does nothing problem with xlC.
7290
7291 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7292
7293         * .gdbinit: Remove obsolete comment.
7294
7295 2001-01-31  Mike Alexander  <mta@arbortext.com>
7296
7297         * select.c (Fown_selection_internal): Set owned_p for device
7298         method correctly.
7299
7300 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7301
7302         Port to g++ 2.97.
7303         "not" cannot be used as a macro name as it is an operator in C++
7304         * config.h.in: Stop #defining `not'.
7305         * chartab.c (check_category_char): not ==> not_p
7306         * chartab.h: Likewise.
7307         * regex.c (re_match_2_internal): Likewise.
7308
7309 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7310
7311         * lisp-disunion.h: Fix up comments.
7312
7313 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7314
7315         * keymap.c (define_key_check_and_coerce_keysym):
7316         (syms_of_keymap):
7317         Support mouse-6 and mouse-7 bindings in the obvious way.
7318
7319 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7320
7321         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7322
7323 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7324
7325         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7326         Previous patch missed DEFVAR_INT_MAGIC.
7327         Make sure future DEFVAR_foo use correct types.
7328         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7329         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7330         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7331         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7332         * (DEFVAR_INT): Likewise.
7333         * redisplay.c (vertical_clip): Should be of type Fixnum.
7334         * redisplay.c (horizontal_clip): Likewise.
7335         * lisp.h (dump_add_opaque_int): New.
7336         (dump_add_opaque_fixnum): New.
7337
7338 2001-01-29  Andy Piper  <andy@xemacs.org>
7339
7340         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7341         since they can be eval'ed
7342
7343 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7344
7345         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7346         Oops, XEmacs redefines `class'.  Use `typename' instead.
7347
7348 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7349
7350         * dumper.c: Fix C++ compile errors.
7351
7352 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7353
7354         * tparam.c: Use correct prototypes.
7355
7356 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7357
7358         * sysproc.h: #include util.h for NetBSD's openpty.
7359
7360 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7361
7362         More 64-bit correctness.
7363         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7364         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7365         Fix up comments.
7366         This finally finishes the 64-bit SGI port.
7367         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7368         * symbols.c: Fix up comments and type casts.
7369         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7370         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7371         * symeval.h (Fixnum): New type.
7372         * symeval.h (symbol_value_type): Fix up comment.
7373
7374         * commands.h:
7375         * nt.c:
7376         * emacs.c:
7377         * data.c:
7378         * redisplay.c:
7379         * abbrev.c:
7380         * dired-msw.c:
7381         * event-Xt.c:
7382         * eldap.c:
7383         * window.c:
7384         * sound.c:
7385         * event-stream.c:
7386         * eval.c:
7387         * buffer.c:
7388         * mule-canna.c: A million DEFVAR_INTs here...
7389         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7390         * extents.c:
7391         * cmdloop.c:
7392         * lisp.h:
7393         * select-x.c:
7394         * console-x.h:
7395         * event-msw.c:
7396         * mule-wnnfns.c:
7397         * hpplay.c:
7398         * ralloc.c:
7399         * alloc.c:
7400         * keymap.c:
7401         * profile.c:
7402         s/int/Fixnum/g in DEFVAR_INT declarations.
7403
7404 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7405
7406         Port pdump to SGI alignment-sensitive environment.
7407         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7408         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7409         properly aligned.
7410         Define and use aligned reading and writing macros.
7411         Use buffered stdio instead of posix i/o for faster dumping.
7412         Eliminate kludgy 256 byte space for header.
7413         Read and write from dump file using structs for alignment safety.
7414         * dumper.c (pdump_align_stream): New.
7415         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7416         * dumper.c (PDUMP_READ_ALIGNED): New.
7417         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7418         * dumper.c (pdump_static_Lisp_Object): New struct.
7419         * dumper.c (pdump_static_pointer): New struct.
7420         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7421         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7422         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7423         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7424
7425         * dumper.c (pdump_backtrace):
7426         * dumper.c (pdump_get_indirect_count):
7427         * dumper.c (pdump_register_object):
7428         * dumper.c (pdump_register_struct):
7429         * dumper.c (pdump_reloc_one):
7430         * dumper.c (pdump_scan_by_alignment):
7431         * dumper.c (pdump_dump_from_root_struct_ptrs):
7432         * dumper.c (pdump_dump_opaques):
7433         * dumper.c (pdump_dump_rtables):
7434         * dumper.c (pdump_dump_from_root_objects):
7435         * dumper.c (pdump):
7436         * dumper.c (pdump_load_finish):
7437         Use aligned reading and writing.
7438
7439         * dumper.c (pdump_free): Make static.
7440         * dumper.c (pdump_hFile): Likewise.
7441         * dumper.c (pdump_hMap): Likewise.
7442
7443 2001-01-26  Martin Buchholz <martin@xemacs.org>
7444
7445         * XEmacs 21.2.43 "Terspichore" is released.
7446
7447 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7448
7449         Type fiddling for window_config.saved_windows_count
7450         * window.c (struct window_config): 
7451         Make saved_windows_count member unsigned.
7452         * window.c (sizeof_window_config_for_n_windows): 
7453         Make parameter unsigned.
7454         * window.c (mark_window_config):
7455         * window.c (window_config_equal):
7456         * window.c (free_window_configuration):
7457         * window.c (Fset_window_configuration):
7458         * window.c (count_windows):
7459         * window.c (Fcurrent_window_configuration):
7460         * window.c (reinit_vars_of_window):
7461         Update all callers and users.
7462
7463 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7464
7465         Alignment correctness for flexible arrays.
7466         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7467         Make alignment-correct. Add interesting comments.
7468         * alloc.c (size_vector):
7469         * alloc.c (make_vector_internal):
7470         * alloc.c (make_bit_vector_internal):
7471         * alloc.c (sweep_bit_vectors_1):
7472         * fns.c (size_bit_vector):
7473         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7474         * window.c (sizeof_window_config_for_n_windows): 
7475         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7476
7477 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7478
7479         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7480
7481 2001-01-23  Andy Piper  <andy@xemacs.org>
7482
7483         * select.c (Fown_selection_internal): pass owned_p
7484
7485         * select-msw.c (mswindows_own_selection): New Signature.
7486
7487         * console.h (struct console_methods): add owned_p to
7488         _own_selection.
7489
7490         * select-x.c (x_own_selection): pass owned_p
7491         (hack_motif_clipboard_selection): use owned_p
7492         (vars_of_select_x): new variable -
7493         x_selection_strict_motif_ownership.
7494
7495 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7496
7497         * specifier.h (specifier_data_offset): Remove pointless parens.
7498         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7499
7500 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7501
7502         Make Lisp_Object sizeof methods be alignment-correct.
7503         pdump must restore objects to the same alignment as the C compiler
7504         assumes.  It really matters on SGIs.
7505         * lstream.c (aligned_sizeof_lstream): New.
7506         (sizeof_lstream): Use aligned_sizeof_lstream.
7507         (Lstream_new): Likewise.
7508         * opaque.c (aligned_sizeof_opaque): New.
7509         (sizeof_opaque): Use aligned_sizeof_opaque.
7510         (make_opaque): Likewise.
7511         * specifier.c (aligned_sizeof_specifier): New.
7512         (sizeof_specifier): Use aligned_sizeof_specifier.
7513         (make_specifier_internal): Likewise.
7514
7515 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7516
7517         * lstream.h (struct lstream): Use max_align_t for trailing data.
7518         * specifier.h (struct Lisp_Specifier): Likewise.
7519
7520 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7521
7522         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7523         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7524         (CCL_SUSPEND): Likewise.
7525         (CCL_INVALID_CMD): Likewise.
7526         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7527         (ccl_driver): Likewise.
7528         (CCL_WRITE_CHAR): Macro hygiene.
7529         (CCL_WRITE_STRING): Macro hygiene.
7530
7531 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7532
7533         Port "portable" dumper to SunOS 4 and HP-UX.
7534         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7535         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7536         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7537
7538 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7539
7540         * lisp.h (ALIGNOF): A better definition for C++.
7541
7542 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7543
7544         Macro hygiene.
7545         Fix printf warnings: int format, long int arg.
7546         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7547         (PUSH_FAILURE_POINT): Use correct printf formats.
7548         (POP_FAILURE_POINT): Use correct printf formats.  
7549         Use do {...} while (0)
7550
7551 2001-01-20  Martin Buchholz <martin@xemacs.org>
7552
7553         * XEmacs 21.2.42 "Poseidon" is released.
7554
7555 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7556
7557         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7558
7559 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7560
7561         De-kludgify FIXED_TYPE free list frobbing.
7562         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7563         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7564         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7565         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7566         * alloc.c (LRECORD_FREE_P): New.
7567         * alloc.c (MARK_LRECORD_AS_FREE): New.
7568         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7569         * alloc.c (STRUCT_FREE_P): Deleted.
7570         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7571         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7572         * alloc.c (STRING_CHARS_FREE_P): New.
7573         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7574         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7575         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7576         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7577         * alloc.c (resize_string): Use new definitions.
7578         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7579         * alloc.c (verify_string_chars_integrity): Use new definitions.
7580         * alloc.c (compact_string_chars): Use new definitions.
7581         * alloc.c: Update monster comments.
7582         * lrecord.h (lrecord_type): Add some new lrecord types for
7583         alloc.c's use.
7584
7585 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7586
7587         Improve alignment hackery.
7588         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7589         (max_align_t): Moved from opaque.h - general purpose.
7590         (ALIGN_PTR): Use size_t, not long.
7591         * opaque.h (max_align_t): Move to lisp.h.
7592
7593 2001-01-18  Norbert Koch  <nk@LF.net>
7594
7595         * gui.h: Fix and add prototypes to fix build problems.
7596
7597 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7598
7599         temacs is going away, so `dump-temacs' is now a bad name.
7600         * .dbxrc (dump-temacs): Rename to `dmp'.
7601         * .gdbinit (dump-temacs): Rename to `dmp'.
7602
7603 2001-01-17  Andy Piper  <andy@xemacs.org>
7604
7605         * glyphs.c (print_image_instance): comment to make martin happy.
7606
7607         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7608         change.
7609
7610         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7611         activation.
7612         (mswindows_tab_control_redisplay): warning suppression.
7613
7614         * glyphs-widget.c (widget_update): re-write to cope with updated
7615         items.
7616         (widget_instantiate): use new gui_item functions.
7617         (tab_control_update): deleted.
7618         (progress_gauge_update): deleted.
7619         (image_instantiator_progress_guage): take out update reference.
7620         (image_instantiator_tree_view): ditto.
7621         (image_instantiator_tab_control): ditto.
7622
7623         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7624         Right the new way.
7625         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7626         return whether anything was changed.
7627         (update_gui_item_keywords): as it sounds.
7628
7629         * gui.h: declare widget_gui_parse_item_keywords.
7630
7631         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7632         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7633
7634 2001-01-17  Martin Buchholz <martin@xemacs.org>
7635
7636         * XEmacs 21.2.41 "Polyhymnia" is released.
7637
7638 2001-01-16  Didier Verna  <didier@xemacs.org>
7639
7640         * glyphs.c (image_instantiate): don't use fallbacks when
7641         instantiating a face's background pixmap by inheritance.
7642
7643 2001-01-14  Mike Sperber <mike@xemacs.org>
7644
7645         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7646         Conditionalize accordingly.
7647
7648 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7649
7650         * dumper.c (pdump_file_get): Fix a compiler warning.
7651
7652 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7653
7654         Make Purify happy when pdumping.
7655         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7656         iniitalizing all bits of new lisp object memory.
7657         * symbols.c (Fmake_local_variable): Likewise.
7658         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7659         * symbols.c (Fdefvaralias): Likewise.
7660         * mule-charset.c (vars_of_mule_charset): Likewise.
7661
7662 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7663         Add the `-nd' flag when running pre-dump operations under the debugger.
7664         * .dbxrc (run-temacs): Add `-nd'.
7665         * .dbxrc (update-elc): Likewise.
7666         * .dbxrc (dump-temacs): Likewise.
7667         * .gdbinit (run-temacs): Likewise.
7668         * .gdbinit (check-temacs): Likewise.
7669         * .gdbinit (update-elc): Likewise.
7670         * .gdbinit (dump-temacs): Likewise.
7671
7672 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7673
7674         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7675         export OBJECT_MODE=64
7676         configure --pdump --use-union-type=no
7677         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7678         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7679
7680         * miscplay.c (sndcnv8U_2mono):
7681         Avoid two uses of `++' in the same expression.
7682         Suppresses a GCC warning.
7683
7684 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7685
7686         Make sure future compilers don't miscompile alloc.c.
7687         * alloc.c:
7688         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7689         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7690
7691 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7692
7693         * dumper.c: A little post-pdump-rename comment fixup.
7694
7695 2001-01-09  Jerry James  <james@eecs.ku.edu>
7696
7697         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7698
7699 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7700
7701         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7702         script:
7703         #!/bin/sh
7704         replace_symbol () {
7705           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7706         }
7707
7708         replace_symbol pdump_wire_lists pdump_weak_object_chains
7709         replace_symbol pdump_wire_list dump_add_weak_object_chain
7710
7711         replace_symbol pdump_wires pdump_root_objects
7712         replace_symbol pdump_wire dump_add_root_object
7713
7714         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7715         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7716
7717         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7718         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7719         replace_symbol dumpstructinfo pdump_root_struct_ptr
7720         replace_symbol dumpstruct dump_add_root_struct_ptr
7721
7722         replace_symbol dumpopaque dump_add_opaque
7723         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7724         replace_symbol dumpopaqueinfos pdump_opaques
7725         replace_symbol dumpopaqueinfo pdump_opaque
7726
7727         replace_symbol nb_structdump nb_root_struct_ptrs
7728         replace_symbol nb_opaquedump nb_opaques
7729
7730         replace_symbol align_table pdump_align_table
7731         replace_symbol dump_header pdump_header
7732
7733         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7734         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7735
7736
7737 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7738
7739         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7740         optimizing bytecount_to_charcount().
7741
7742 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7743
7744         * config.h.in:
7745         (HAVE_DLFCN_H): Removed.
7746         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7747
7748 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7749
7750         Portable dumper maintainability improvements.
7751         * alloc.c (staticpro):
7752         * alloc.c (staticpro_nodump):
7753         * alloc.c (garbage_collect_1):
7754         * alloc.c (reinit_alloc_once_early):
7755         * alloc.c (init_alloc_once_early):
7756         * alloc.c: Move dumper functions to alloc.c.
7757         * dumper.c (pdump_backtrace):
7758         * dumper.c (pdump_dump_structs):
7759         * dumper.c (pdump_dump_opaques):
7760         * dumper.c (pdump_dump_rtables):
7761         * dumper.c (pdump_dump_wired):
7762         * dumper.c (pdump):
7763         * dumper.c (pdump_load_check):
7764         * dumper.c (pdump_load_finish):
7765         * dumper.c (pdump_file_unmap):
7766         * dumper.c (pdump_file_get):
7767         * dumper.c (pdump_resource_free):
7768         * dumper.c (pdump_resource_get):
7769         * dumper.c (pdump_file_free):
7770         * dumper.c (pdump_file_try):
7771         * dumper.c (pdump_load):
7772         Remove fixed size limits on staticpro(), staticpro_nodump(),
7773         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7774         Remove custom code for dumping lrecord_implementations_table - use
7775         dumpopaque instead.
7776         Remove (most of the) custom code for dumping staticpros - dump it
7777         like any other dynarr.
7778
7779         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7780         * dumper.c: Moved functions from alloc.c.
7781         * alloc.c (dumpstruct): Moved to dumper.c.
7782         * alloc.c (dumpopaque): Likewise.
7783         * alloc.c (pdump_wire): Likewise.
7784         * alloc.c (pdump_wire_list): Likewise.
7785
7786         * lisp.h (Dynarr_sizeof): New.
7787         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7788         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7789         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7790
7791         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7792         * lisp.h (dumpopaque): ditto.
7793         * lisp.h (pdump_wire): ditto.
7794         * lisp.h (pdump_wire_list): ditto.
7795
7796 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7797
7798         * make-src-depend (PrintPatternDeps):
7799         Use `sort' to make output independent of perl version.
7800
7801 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7802
7803         Port to Netbsd 1.5.
7804         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7805         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7806
7807 2001-01-03  Didier Verna  <didier@xemacs.org>
7808
7809         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7810         that `focus_frame' is alive before thinking of calling
7811         `redisplay_redraw_cursor' on it.
7812
7813 2001-01-08  Martin Buchholz <martin@xemacs.org>
7814
7815         * XEmacs 21.2.40 is released.
7816
7817 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7818
7819         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7820
7821 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7822
7823         * alloc.c (dbg_valmask): Make const.
7824         * alloc.c (dbg_typemask): Make const.
7825         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7826         * alloc.c (dbg_valbits): Make const.
7827         * alloc.c (dbg_gctypebits): Make const.
7828
7829 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7830
7831         * redisplay-x.c (x_bevel_area):
7832         redisplay.h (struct rune):
7833         Typo fixes in comments.
7834
7835 2001-01-05  Andy Piper  <andy@xemacs.org>
7836
7837         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7838         adjustment.
7839
7840         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7841
7842 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7843
7844         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7845
7846         * mule-ccl.c (stack_idx_of_map_multiple):
7847         Non const global data must not be initialized!
7848         Found by MIYASHITA Hisashi.
7849
7850 2001-01-02  Andy Piper  <andy@xemacs.org>
7851
7852         * frame.c (change_frame_size): make sure frame size is always
7853         marked as changed.
7854
7855         * glyphs.c (image_instance_layout): minor code reuse.
7856
7857         * window.c (Fcurrent_window_configuration): revert previous
7858         change.
7859
7860 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7861
7862         * glyphs.h:
7863         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7864
7865 2000-12-31  Andy Piper  <andy@xemacs.org>
7866
7867         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7868         when widget gets unmapped.
7869
7870         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7871         function. Make sure widgets losing focus don't just drop it.
7872         (handle_focus_event_1): record the widget with focus.
7873
7874 2000-12-31  Andy Piper  <andy@xemacs.org>
7875
7876         * window.c (allocate_window): use
7877         make_image_instance_cache_hash_table.
7878         (make_dummy_parent): ditto.
7879         (Fset_window_configuration): ditto.
7880
7881         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7882
7883         * glyphs.c (process_image_string_instantiator): use
7884         INSTANTIATOR_TYPE.
7885         (get_image_instantiator_governing_domain): ditto.
7886         (normalize_image_instantiator): ditto.
7887         (instantiate_image_instantiator): ditto.
7888         (make_image_instance_1): ditto.
7889         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7890         (instantiator_eq_equal): new function for use with instance hash
7891         tables.
7892         (instantiator_eq_hash): ditto.
7893         (make_image_instance_cache_hash_table): create a suitable hash
7894         table for storing image instances.
7895
7896         * elhash.h (hash_table_weakness): new internal weakness type
7897         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7898         declare new functions.
7899
7900         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7901         another weakness type for glyphs.
7902         (make_standard_lisp_hash_table): new function split out from
7903         make_general_lisp_hash_table.
7904         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7905         (hash_table_instantiate): ditto.
7906         (Fmake_hash_table): ditto.
7907
7908 2000-12-31  Martin Buchholz <martin@xemacs.org>
7909
7910         * XEmacs 21.2.39 is released.
7911
7912 2000-12-29  Andy Piper  <andy@xemacs.org>
7913
7914         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7915
7916         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7917         the frame has changed so that we pick up geometry changes such as
7918         menubar visibility.
7919
7920 2000-12-28  Andy Piper  <andy@xemacs.org>
7921
7922         * lastfile.c (my_ebss): make a char array so we can pad the
7923         bss. Fixes cygwin unexec.
7924
7925         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7926
7927 2000-12-26  Andy Piper  <andy@xemacs.org>
7928
7929         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7930         comments and try and be more precise about a non-/SIGIO world.
7931         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7932         SIGIO.
7933
7934         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7935         we don't normalize to zero width or height.
7936
7937 2000-12-24  Andy Piper  <andy@xemacs.org>
7938
7939         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7940
7941 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7942
7943         * s/sco5.h: SCO 5 has pty support.
7944
7945 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7946
7947         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7948         input-method-xlib.c contains whole contents of input-method-xfs.c,
7949         so we can use input-method-xlib.c's code for USE_XFONTSET
7950         using #ifdefs.
7951         * input-method-xfs.c: removed.
7952
7953 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7954
7955         * file-coding.h (enum coding_category_type): reorder enumerators to
7956         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7957         (now one greater than largest real coding_category_type enumerator).
7958         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7959         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7960         Fcoding_category_list, Fset_coding_priority_list,
7961         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7962         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7963
7964 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7965
7966         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7967         * redisplay-output.c (redisplay_output_window): Clear top of window
7968         when face is changed.
7969         * redisplay-x.c (x_redraw_exposed_window): Call
7970         redisplay_clear_top_of_window.
7971         * redisplay.h: Publish redisplay_clear_top_of_window.
7972
7973 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7974
7975         * buffer.c (Fkill_buffer): Map over all devices.
7976         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7977         (list_windows): New function.
7978         (list_all_windows): Ditto.
7979         (Freplace_buffer_in_windows): Use them.
7980
7981 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7982
7983         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7984         (Fopen_database): Use `db_create' instead of `db_open'.
7985         (syms_of_database): Initialize Qqueue.
7986
7987 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7988
7989         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7990         buffer_local_face_property.
7991         * buffer.h (struct buffer): New member buffer_local_face_property.
7992         * window.c (Fset_window_buffer):  Mark window's face as changed
7993         when buffer has buffer local face.
7994         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7995         * objects.c (color_after_change): Set buffer_local_face_property
7996         when locale of face specifier is buffer.
7997         * objects.c (font_after_change): Ditto.
7998         * objects.c (face_boolean_after_change): Ditto.
7999         * glyphs.c (image_after_change): Ditto.
8000
8001 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8002
8003         * nt.c (mswindows_fstat): Report file permissions, volume serial
8004         number, etc. Code adapted from FSF Emacs 20.7.
8005
8006 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8007
8008         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8009         of stat when we don't have symbolic links, to make sure
8010         mswindows_stat is called on mswindows.
8011
8012 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8013
8014         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8015
8016 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8017
8018         * doprnt.c (emacs_doprnt_1): More printing fixes.
8019         Make printing of numbers compatible with libc and FSF Emacs.
8020         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8021         Use the system printf to do most of the hard work of formatting,
8022         instead of doprnt_1().
8023         Calculate memory to allocate for format string.
8024         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8025         (doprnt_1): Cleaner code and documentation.
8026
8027 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8028
8029         * Makefile.in.in: Use the loop variable to install headers.
8030
8031 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8032
8033         * window.c (Fsplit_window): Don't invalidate face cache.
8034
8035 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8036
8037         * minibuf.c (Fall_completions): Undo the previous change
8038         which removed checking elements start with space.
8039
8040 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8041
8042         * mule-canna.c: Didier suppression.
8043
8044 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8045
8046         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8047         (warning suppression).  Add English comment translations.
8048
8049 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8050
8051         * unexelfsgi.c (unexec): Better test for mmap failure.
8052
8053 2000-12-05  Martin Buchholz <martin@xemacs.org>
8054
8055         * XEmacs 21.2.38 is released.
8056
8057 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8058
8059         * redisplay.c (bar-cursor): Make a user variable.
8060
8061         * symsinit.h: Add init_postgresql_from_environment.
8062
8063 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8064
8065         * regex.c: Convert to clean C.
8066
8067 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8068
8069         * realpath.c:
8070         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8071         initialization.
8072         (sys_readlink): renamed to system_readlink to avoid conflict with
8073         the other sys_readlink.
8074
8075 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8076
8077         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8078
8079 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8080
8081         * postgresql.c (init_postgresql_from_environment): new function.
8082         (vars_of_postgresql): Move code initializing Lisp variables out and
8083         into init_postgresql_from_environment.
8084         emacs.c (main_1): Call init_postgresql_from_environment if and only
8085         if running a dumped XEmacs.
8086
8087 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8088
8089         * buffer.c: Make find-file-compare-truenames default to true on
8090         windows.
8091
8092         * realpath.c (win32_abs_start):
8093         (cygwin_readlink):
8094         (win32_readlink): New functions.
8095         (xrealpath): Return really real filenames on windows.
8096
8097         * fileio.c (Ffile_truename): Make file-truename work on windows.
8098
8099 2000-11-29  Didier Verna  <didier@xemacs.org>
8100
8101         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8102         * faces.c (update_face_cachel_data): use it.
8103         * faces.c (add_face_cachel): use it. Complete background pixmap
8104         frobbing in face cache if `update_face_cachel_data' has not done so.
8105
8106 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8107
8108         * search.c (string_match_1): Don't set last_thing_searched
8109         when search failed.
8110
8111 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8112
8113         * buffer.c: Include casetab.h
8114         (common_init_complex_vars_of_buffer): Use new case-table object.
8115         * buffer.h: Include casetab.h
8116         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8117         (DOWNCASE_TABLE_OF): Ditto.
8118         * bufslots.h: Remove char-tables and add case-table.
8119         * casetab.c: Include casetab.h
8120         (CASE_TABLE_P): Removed.
8121         (mark_case_table): New function.
8122         (allocate_case_table): New function.
8123         (Fcase_table_p): Use new case-table.
8124         (case_table_char): New function.
8125         (Fget_case_table): Ditto.
8126         (Fput_case_table): Ditto.
8127         (Fput_case_table_pair): Ditto.
8128         (Fcopy_case_table): Ditto.
8129         (Fcurrent_case_table): Return case-table.
8130         (Fstandard_case_table): Return case-table.
8131         (Fset_case_table): Fix doc-string.
8132         (set_case_table): Use case-table
8133         (syms_of_casetab): DEFSUBR new functions.
8134         (complex_vars_of_casetab): Set up standard case-table.
8135         * casetab.h: New file.
8136         * editfns.c: Include casetab.h
8137         (Fcompare_buffer_substrings): Use case-table.
8138         * inline.c: Include casetab.h
8139         * lisp.h: Remove bogus extern.
8140         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8141         * search.c: Include casetab.h
8142         (TRANSLATE_ASCII): Removed.
8143         (TRANSLATE): Unconditionally translate character.
8144         (looking_at_1): Use case-table.
8145         (string_match_1): Ditto.
8146         (fast_string_match): Ditto.
8147         (search_command): Ditto.
8148         (search_buffer): Separate boyer_moore.  Check whether
8149         boyer_moore is possible.
8150         (simple_search): New function.
8151         (boyer_moore): Separated from search_buffer. Translate char.
8152
8153 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8154
8155         * regex.c (RE_TR_ASCII): Removed.
8156         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8157         (PATFETCH): Call PATFETCH_RAW.
8158         (PATFETCH_RAW): Fetch Emchar.
8159         (PATUNFETCH): Decrement charptr.
8160         (GET_BUFFER_SPACE): Rename b to buf_end.
8161         (BUF_PUSH): Ditto.
8162         (BUF_PUSH_2): Ditto.
8163         (BUF_PUSH_3): Ditto.
8164         (EXTEND_BUFFER): Ditto.
8165         (SET_LIST_BIT): Ditto.
8166         (regex_compile): Ditto.  Translate non ASCII char.
8167         (compile_range): Ditto.
8168         (re_search_2): Ditto.
8169         (re_match_2_internal): Compare Emchar.
8170         (bcmp_translate): Ditto.
8171
8172 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8173
8174         * lisp.h (basic char/int typedefs):  comment improvement.
8175
8176 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8177
8178         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8179         unstomp inhibit_site_lisp.  Improve comments.
8180
8181 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8182
8183         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8184
8185 2000-11-28  Andy Piper  <andy@xemacs.org>
8186
8187         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8188         clipped display for windows in the gutter also.
8189         (redisplay_display_boxes_in_window_p): change semantics of return
8190         codes to be more intuitive.
8191
8192         * gutter.h: declare display_boxes_in_gutter_p.
8193
8194         * gutter.c (display_boxes_in_gutter_p): new function for
8195         redisplay.
8196
8197 2000-11-22  Andy Piper  <andy@xemacs.org>
8198
8199         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8200         autodetect domain.
8201
8202 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8203
8204         * callproc.c (Fold_call_process_internal):
8205         * gpm.c (Freceive_gpm_event):
8206         (tty_get_foreign_selection): Might be just warning supression.
8207         * fileio.c (Fwrite_region_internal):
8208         (Fset_visited_file_modtime):
8209         * keymap.c (event_matches_key_specifier_p):
8210         Initialize GCPROed variable.
8211
8212         * menubar-x.c (command_builder_find_menu_accelerator):
8213         Initialize before use.
8214
8215 2000-11-23  Andy Piper  <andy@xemacs.org>
8216
8217         * unexcw.c (unexec): make the resulting executable executable.
8218
8219 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8220
8221         * doc.c (get_doc_string):
8222         Use size_t, not int, for result of XSTRING_LENGTH.
8223
8224         * cmds.c (Fdelete_char):
8225         * cmds.c (Fpoint_at_eol):
8226         * cmds.c (Fself_insert_command):
8227         Use EMACS_INT, not int, for result of XINT.
8228         Someday, someone will want to insert more than 2**31 identical characters.
8229
8230         * cmds.c (Fdelete_char):
8231         * cmds.c (Fdelete_backward_char):
8232         * syntax.c (Fforward_word):
8233         * syntax.c (Fforward_comment):
8234         Make COUNT argument optional, for consistency with forward-char et al.
8235
8236 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8237
8238         * lisp.h:
8239         * print.c (long_to_string):
8240         Return a useful value: the pointer at end of data written.
8241
8242         * doprnt.c:
8243         Use `static const char * const' for constant strings.
8244         (union printf_arg): Delete `i', `ui' members.
8245         (get_doprnt_args):
8246         (emacs_doprnt_1):
8247         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8248         Do all printf-ing via the `l' specifier.
8249         Use EMACS_INT instead of int.
8250         Optimize.
8251
8252 2000-11-20  Didier Verna  <didier@xemacs.org>
8253
8254         * faces.c (update_face_cachel_data): don't frob the background
8255         pixmap when the window is being created. The face is needed but
8256         does not exist yet.
8257
8258 2000-11-20  Andy Piper  <andy@xemacs.org>
8259
8260         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8261         messing with a debug environment.
8262
8263 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8264
8265         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8266
8267 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8268
8269         * casetab.c (Fcase_table_p): Fix compile error and crash.
8270
8271 2000-11-18  Philip Aston  <philipa@mail.com>
8272
8273         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8274
8275 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8276
8277         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8278         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8279
8280 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8281
8282         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8283         * unexelf.c: Use HAVE_ELF_H.
8284         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8285         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8286         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8287         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8288         for testing.
8289         So this is an unexelfsgi.c from a different line of development.
8290
8291 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8292
8293         * regex.c (RE_TR_ASCII): New function.
8294         (RE_TRANSLATE): Call it.
8295
8296 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8297
8298         * buffer.h (TRT_TABLE_OF): Remove assert.
8299         (IN_TRT_TABLE_DOMAIN): Removed.
8300
8301 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8302
8303         * free-hook.c (log_gcpro):
8304         (show_gcprohist): Add support for GCPRO5.
8305
8306 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8307
8308         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8309
8310 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8311
8312         * symeval.h: Declare flush_all_buffer_local_cache.
8313
8314         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8315         (flush_buffer_local_cache): Added.
8316         (flush_all_buffer_local_cache): Added.
8317
8318         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8319
8320         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8321         (pdump_dump_data): Ditto.
8322         (pdump_reloc_one): Ditto.
8323         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8324         before dumping.
8325
8326
8327 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8328
8329         * buffer.c: Remove if 0'ed entry.
8330         * buffer.h: Rewrite TRT to use char-table.
8331         * bufslots.h: Remove mirror tables.
8332         * casetab.c: Remove mirror tables.
8333         (CASE_TABLE_P): New macro.
8334         (Fcase_table_p): Element of a case table is string or char-table.
8335         (make_mirror_trt_table): Removed.
8336         (set_case_table): Setup char-table from strings for backward
8337         compatibility.
8338         * dired.c (Fdirectory_files):
8339         * dired-msw.c: (mswindows_get_files):
8340         * lisp.h: Change prototype of re_pattern_buffer.
8341         * regex.c: (RE_TRANSLATE): New macro.
8342         (TRANSLATE_P): Ditto.
8343         Change translate to type RE_TRANSLATE_TYPE.
8344         * regex.h: Define RE_TRANSLATE_TYPE
8345         * search.c (TRANSLATE): New macro.
8346         (TRANSLATE_ASCII): New macro.
8347         Translate table is changed to Lisp_Object.
8348         (signal_failure): Inhibit return.
8349
8350 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8351
8352         * device-msw.c:
8353         * eldap.c:
8354         * event-Xt.c:
8355         * event-stream.c:
8356         * print.c:
8357         Do UNGCPRO before return.
8358
8359 2000-11-14  Martin Buchholz <martin@xemacs.org>
8360
8361         * XEmacs 21.2.37 is released.
8362
8363 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8364
8365         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8366         Add comments about discarded return value.
8367
8368 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8369
8370         * callint.c:
8371         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8372
8373 2000-10-27  Andy Piper  <andy@xemacs.org>
8374
8375         * gutter.c (Fset_default_gutter_position): default left and right
8376         gutters to visible.
8377         (calculate_gutter_size): calculate resonable heuristic for left
8378         and right gutter sizes.
8379         (specifier_vars_of_gutter): change left and right gutter sizes to
8380         autodetect.
8381         (calculate_gutter_size_from_display_lines): new function.
8382         (output_gutter): check for resizing on left and right gutters.
8383         (clear_gutter): don't special case top and left gutters.
8384         (specifier_vars_of_gutter): use new signature for
8385         set_specifier_caching.
8386
8387         * glyphs-x.c (x_redisplay_widget): spelling fix.
8388         * glyphs.c (specifier_vars_of_glyphs):
8389         * menubar.c (specifier_vars_of_menubar):
8390         * redisplay.c (specifier_vars_of_redisplay):
8391         * toolbar.c (specifier_vars_of_toolbar):
8392         * window.c (specifier_vars_of_window):
8393         * scrollbar.c (specifier_vars_of_scrollbar):
8394         (complex_vars_of_scrollbar): use new signature for
8395         set_specifier_caching.
8396
8397         * specifier.c (set_specifier_caching): include recompute flag.
8398         (recompute_one_cached_specifier_in_window): always recompute if
8399         flag set.
8400         (recompute_one_cached_specifier_in_frame): ditto.
8401
8402         * specifier.h (struct specifier_caching): add recompute flag.
8403
8404 2000-10-24  Andy Piper  <andy@xemacs.org>
8405
8406         * unexcw.c (copy_executable_and_dump_data_section): add new
8407         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8408         5.0 happy.
8409
8410 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8411
8412         * console-x.h (x_device): New member modifier_release_time.
8413         * event-Xt.c (x_handle_sticky_modifiers):
8414         Bound interval modifier keys are sticky.
8415         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8416         * events.h: extern it.
8417
8418 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8419
8420         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8421
8422 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8423
8424         * event-stream.c (execute_command_event): Preserve current_events
8425         and the like when event is misc-user-event.
8426         Inhibit quit during the call to maybe_echo_keys.
8427
8428 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8429
8430         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8431         symlink when buffer is killed.
8432         (inhibit_clash_detection): New variable.
8433
8434 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8435
8436         * console.c (Fset_input_method): Trigger redisplay on tty.
8437
8438 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8439
8440         * process.c (Fprocess_status): Revert to previous behavior:
8441         (process-status "nosuchprocess") ==> nil
8442
8443 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8444
8445         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8446         Work around another GCC 2.95.2 optimizer bug.
8447
8448 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8449
8450         * process.c (Fget_process): Use LIST_LOOP_2.
8451         (kill_buffer_processes): Use LIST_LOOP_2.
8452
8453         * minibuf.c (Fall_completions):
8454         Delete old non-functional code for FSF fourth argument.
8455
8456         * frame.c (frame_matches_frame_spec):
8457         Renamed from `frame_matches_frametype'.  Update all callers.
8458         (device_matches_device_spec):
8459         Renamed from 'device_matches_console_spec'.  Update all callers.
8460
8461         * doc.c (Fsubstitute_command_keys):
8462         Remove buffer overflow crash.  Small code cleanups.
8463
8464         * casetab.c (check_case_table): Simpler code.
8465
8466         * window.c (Freplace_buffer_in_windows):
8467         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8468         (and similar implementation) as Fdelete_windows_on.
8469         Update all callers.
8470
8471         * alloc.c (Fmake_list):
8472         * alloc.c (make_vector):
8473         * alloc.c (Fmake_vector):
8474         * alloc.c (make_bit_vector):
8475         * alloc.c (Fmake_bit_vector):
8476         * alloc.c (Fbit_vector):
8477         * alloc.c (Fmake_string):
8478         * alloc.c (Fpurecopy):
8479         * alloc.c (Fmemory_limit):
8480         * buffer.c:
8481         * buffer.c (Fget_buffer):
8482         * buffer.c (Fkill_buffer):
8483         * buffer.c (complex_vars_of_buffer):
8484         * bytecode.c (Fcompiled_function_stack_depth):
8485         * callint.c (Fprefix_numeric_value):
8486         * event-stream.c:
8487         * event-stream.c (Fread_key_sequence):
8488         * casetab.c:
8489         * casetab.c (Fcase_table_p):
8490         * casetab.c (check_case_table):
8491         * casetab.c (Fset_case_table):
8492         * casetab.c (Fset_standard_case_table):
8493         * chartab.c:
8494         * chartab.c (Fchar_table_type):
8495         * chartab.c (Freset_char_table):
8496         * chartab.c (Fget_char_table):
8497         * chartab.c (Fget_range_char_table):
8498         * chartab.c (Fput_char_table):
8499         * chartab.c (Fmap_char_table):
8500         * chartab.c (Fcategory_table_p):
8501         * chartab.c (Fcheck_category_at):
8502         * chartab.c (Fchar_in_category_p):
8503         * chartab.c (Fcategory_table):
8504         * chartab.c (Fcopy_category_table):
8505         * chartab.c (Fset_category_table):
8506         * chartab.c (Fcategory_designator_p):
8507         * chartab.c (Fcategory_table_value_p):
8508         * cmds.c (Fdelete_char):
8509         * cmds.c (Fdelete_backward_char):
8510         * cmds.c (Fself_insert_command):
8511         * cmds.c (Fself_insert_internal):
8512         * console.c (Fvalid_console_type_p):
8513         * console.c (Fcdfw_console):
8514         * console.c (Fconsole_type):
8515         * console.c (Fconsole_name):
8516         * console.c (Fconsole_device_list):
8517         * console.c (Fconsole_on_window_system_p):
8518         * data.c:
8519         * data.c (Feq):
8520         * data.c (Fold_eq):
8521         * data.c (Fsubr_interactive):
8522         * data.c (Fchar_to_int):
8523         * data.c (Fint_to_char):
8524         * data.c (Fsetcar):
8525         * data.c (Fsetcdr):
8526         * data.c (Fnumber_to_string):
8527         * data.c (Fstring_to_number):
8528         * data.c (Frem):
8529         * database.c (mark_database):
8530         * database.c (finalize_database):
8531         * database.c (Fdatabase_live_p):
8532         * database.c (Fdatabasep):
8533         * device-x.c (Fx_get_resource):
8534         * device.c (Fdfw_device):
8535         * dired.c:
8536         * dired.c (Ffile_name_completion):
8537         * dired.c (Ffile_name_all_completions):
8538         * dired.c (Fuser_name_completion):
8539         * dired.c (Fuser_name_completion_1):
8540         * dired.c (Fuser_name_all_completions):
8541         * doc.c (Fdocumentation):
8542         * doc.c (Fdocumentation_property):
8543         * doc.c (Fsubstitute_command_keys):
8544         * editfns.c:
8545         * editfns.c (Fchar_to_string):
8546         * editfns.c (Fstring_to_char):
8547         * editfns.c (Ftemp_directory):
8548         * editfns.c (Finsert_char):
8549         * editfns.c (Fbuffer_substring_no_properties):
8550         * editfns.c (Fnarrow_to_region):
8551         * editfns.c (Fchar_equal):
8552         * editfns.c (Fchar_Equal):
8553         * editfns.c (Ftranspose_regions):
8554         * emacs.c (Fdump_emacs):
8555         * eval.c (Fthrow):
8556         * eval.c (Fcommand_execute):
8557         * eval.c (Fautoload):
8558         * eval.c (Fbacktrace):
8559         * eval.c (Fbacktrace_frame):
8560         * events.c:
8561         * events.c (Fcopy_event):
8562         * events.c (Fcharacter_to_event):
8563         * events.c (Fevent_button):
8564         * events.c (Fevent_process):
8565         * extents.c:
8566         * extents.c (Fnext_extent_change):
8567         * extents.c (Fextent_property):
8568         * faces.c (Ffacep):
8569         * faces.c (Fmake_face):
8570         * file-coding.c:
8571         * file-coding.c (Fencode_shift_jis_char):
8572         * file-coding.c (Fencode_big5_char):
8573         * fileio.c (Ffile_name_directory):
8574         * fileio.c (Ffile_name_nondirectory):
8575         * fileio.c (Ffile_name_as_directory):
8576         * fileio.c (Fdirectory_file_name):
8577         * fileio.c (Ffile_truename):
8578         * fileio.c (Fsubstitute_in_file_name):
8579         * fileio.c (Ffile_modes):
8580         * fileio.c (Fset_file_modes):
8581         * fileio.c (Fset_default_file_modes):
8582         * fileio.c (Fverify_visited_file_modtime):
8583         * floatfns.c (Facos):
8584         * floatfns.c (Fasin):
8585         * floatfns.c (Fatan):
8586         * floatfns.c (Fcos):
8587         * floatfns.c (Fsin):
8588         * floatfns.c (Ftan):
8589         * floatfns.c (Fbessel_j0):
8590         * floatfns.c (Fbessel_j1):
8591         * floatfns.c (Fbessel_jn):
8592         * floatfns.c (Fbessel_y0):
8593         * floatfns.c (Fbessel_y1):
8594         * floatfns.c (Fbessel_yn):
8595         * floatfns.c (Ferf):
8596         * floatfns.c (Ferfc):
8597         * floatfns.c (Flog_gamma):
8598         * floatfns.c (Fexp):
8599         * floatfns.c (Fexpt):
8600         * floatfns.c (Flog):
8601         * floatfns.c (Flog10):
8602         * floatfns.c (Fsqrt):
8603         * floatfns.c (Fcube_root):
8604         * floatfns.c (Facosh):
8605         * floatfns.c (Fasinh):
8606         * floatfns.c (Fatanh):
8607         * floatfns.c (Fcosh):
8608         * floatfns.c (Fsinh):
8609         * floatfns.c (Ftanh):
8610         * floatfns.c (Fabs):
8611         * floatfns.c (Ffloat):
8612         * floatfns.c (Flogb):
8613         * floatfns.c (Fceiling):
8614         * floatfns.c (Ffloor):
8615         * floatfns.c (Fround):
8616         * floatfns.c (Ftruncate):
8617         * floatfns.c (Ffceiling):
8618         * floatfns.c (Fffloor):
8619         * floatfns.c (Ffround):
8620         * floatfns.c (Fftruncate):
8621         * fns.c (Fstring_equal):
8622         * fns.c (Fstring_lessp):
8623         * fns.c (concat2):
8624         * fns.c (concat3):
8625         * fns.c (vconcat2):
8626         * fns.c (vconcat3):
8627         * fns.c (Fsubstring):
8628         * fns.c (Fassoc):
8629         * fns.c (Fold_assoc):
8630         * fns.c (assoc_no_quit):
8631         * fns.c (Fassq):
8632         * fns.c (Fold_assq):
8633         * fns.c (assq_no_quit):
8634         * fns.c (Frassoc):
8635         * fns.c (Fold_rassoc):
8636         * fns.c (Frassq):
8637         * fns.c (Fold_rassq):
8638         * fns.c (rassq_no_quit):
8639         * fns.c (Fremassoc):
8640         * fns.c (remassoc_no_quit):
8641         * fns.c (Fremassq):
8642         * fns.c (remassq_no_quit):
8643         * fns.c (Fremrassoc):
8644         * fns.c (Fremrassq):
8645         * fns.c (remrassq_no_quit):
8646         * fns.c (Fsort):
8647         * fns.c (Fplist_get):
8648         * fns.c (Fplist_put):
8649         * fns.c (Fplist_remprop):
8650         * fns.c (Fplist_member):
8651         * fns.c (Flax_plist_get):
8652         * fns.c (Flax_plist_put):
8653         * fns.c (Flax_plist_remprop):
8654         * fns.c (Flax_plist_member):
8655         * fns.c (Fequal):
8656         * fns.c (Fold_equal):
8657         * fns.c (Frequire):
8658         * fns.c (Fbase64_encode_region):
8659         * fns.c (Fbase64_encode_string):
8660         * fns.c (Fbase64_decode_region):
8661         * frame.c:
8662         * frame.c (frame_matches_frame_spec):
8663         * frame.c (device_matches_device_spec):
8664         * frame.c (next_frame):
8665         * frame.c (previous_frame):
8666         * frame.c (Fnext_frame):
8667         * frame.c (Fprevious_frame):
8668         * frame.c (Fframe_property):
8669         * frame.c (Fset_frame_height):
8670         * frame.c (Fset_frame_size):
8671         * frame.h:
8672         * glyphs.c:
8673         * glyphs.c (if):
8674         * glyphs.c (decode_error_behavior_flag):
8675         * glyphs.c (Fmake_image_instance):
8676         * indent.c (Findent_to):
8677         * intl.c (Fignore_defer_gettext):
8678         * keymap.c (Fkeymapp):
8679         * keymap.c (Flookup_key):
8680         * lread.c:
8681         * lread.c (Fload_internal):
8682         * lread.c (Feval_buffer):
8683         * lread.c (Feval_region):
8684         * macros.c (Fexecute_kbd_macro):
8685         * marker.c (set_marker_internal):
8686         * marker.c (Fset_marker):
8687         * marker.c (set_marker_restricted):
8688         * marker.c (Fcopy_marker):
8689         * marker.c (noseeum_copy_marker):
8690         * menubar.c:
8691         * menubar.c (Fpopup_menu):
8692         * minibuf.c:
8693         * mule-charset.c (Fcharset_name):
8694         * mule-charset.c (Fchar_charset):
8695         * mule-charset.c (Fchar_octet):
8696         * mule-charset.c (Fsplit_char):
8697         * mule-wnnfns.c (Fwnn_open):
8698         * mule-wnnfns.c (Fwnn_dict_comment):
8699         * mule-wnnfns.c (Fwnn_quit_henkan):
8700         * mule-wnnfns.c (Fwnn_word_toroku):
8701         * mule-wnnfns.c (Fwnn_word_sakujo):
8702         * mule-wnnfns.c (Fwnn_word_use):
8703         * mule-wnnfns.c (Fwnn_hindo_set):
8704         * objects.c:
8705         * objects.c (Fmake_color_instance):
8706         * objects.c (Fmake_font_instance):
8707         * print.c (Fwrite_char):
8708         * process.c:
8709         * process.c (mark_process):
8710         * process.c (print_process):
8711         * process.c (get_process_from_usid):
8712         * process.c (Fprocessp):
8713         * process.c (Fprocess_live_p):
8714         * process.c (Fget_process):
8715         * process.c (Fget_buffer_process):
8716         * process.c (get_process):
8717         * process.c (Fprocess_id):
8718         * process.c (Fprocess_name):
8719         * process.c (Fprocess_command):
8720         * process.c (init_process_io_handles):
8721         * process.c (start_process_unwind):
8722         * process.c (Fstart_process_internal):
8723         * process.c (Fopen_multicast_group_internal):
8724         * process.c (Fset_process_window_size):
8725         * process.c (read_process_output):
8726         * process.c (send_process):
8727         * process.c (Fprocess_tty_name):
8728         * process.c (Fset_process_buffer):
8729         * process.c (Fprocess_buffer):
8730         * process.c (Fprocess_mark):
8731         * process.c (set_process_filter):
8732         * process.c (Fset_process_filter):
8733         * process.c (Fprocess_filter):
8734         * process.c (Fprocess_send_region):
8735         * process.c (Fprocess_send_string):
8736         * process.c (exec_sentinel):
8737         * process.c (Fset_process_sentinel):
8738         * process.c (Fprocess_sentinel):
8739         * process.c (status_notify):
8740         * process.c (Fprocess_status):
8741         * process.c (Fprocess_exit_status):
8742         * process.c (process_send_signal):
8743         * process.c (Fprocess_send_eof):
8744         * process.c (deactivate_process):
8745         * process.c (remove_process):
8746         * process.c (Fdelete_process):
8747         * process.c (kill_buffer_processes):
8748         * process.c (Fprocess_kill_without_query):
8749         * process.c (Fprocess_kill_without_query_p):
8750         * rangetab.c:
8751         * rangetab.c (Fget_range_table):
8752         * rangetab.c (Fput_range_table):
8753         * rangetab.c (Fremove_range_table):
8754         * rangetab.c (Fclear_range_table):
8755         * search.c:
8756         * search.c (Fskip_chars_forward):
8757         * search.c (Fskip_chars_backward):
8758         * search.c (Fskip_syntax_forward):
8759         * search.c (Fskip_syntax_backward):
8760         * search.c (search_command):
8761         * search.c (Freplace_match):
8762         * search.c (Fregexp_quote):
8763         * select.c (Fown_selection_internal):
8764         * select.c (Fselection_owner_p):
8765         * select.c (Fselection_exists_p):
8766         * select.c (Fget_selection_internal):
8767         * specifier.c:
8768         * symbols.c:
8769         * symbols.c (Fintern):
8770         * symbols.c (Fintern_soft):
8771         * symbols.c (Funintern):
8772         * symbols.c (Fapropos_internal):
8773         * symbols.c (Fset_default):
8774         * syntax.c:
8775         * syntax.c (Fsyntax_table_p):
8776         * syntax.c (Fcopy_syntax_table):
8777         * syntax.c (Fset_syntax_table):
8778         * syntax.c (Fchar_syntax):
8779         * syntax.c (syntax_match):
8780         * syntax.c (Fmatching_paren):
8781         * syntax.c (Fforward_word):
8782         * syntax.c (scan_lists):
8783         * syntax.c (Fscan_lists):
8784         * syntax.c (Fscan_sexps):
8785         * syntax.c (Fparse_partial_sexp):
8786         * toolbar.c (Fcheck_toolbar_button_syntax):
8787         * tooltalk.doc:
8788         * window.c:
8789         * window.c (Fwindowp):
8790         * window.c (Fwindow_live_p):
8791         * window.c (Fwindow_point):
8792         * window.c (Fdelete_window):
8793         * window.c (Fnext_window):
8794         * window.c (Fprevious_window):
8795         * window.c (Fother_window):
8796         * window.c (window_loop):
8797         * window.c (Fget_lru_window):
8798         * window.c (Fsplit_window):
8799         * window.c (Fenlarge_window):
8800         * window.c (Fenlarge_window_pixels):
8801         * window.c (Fshrink_window):
8802         * window.c (Fshrink_window_pixels):
8803         * window.c (change_window_height):
8804         * window.c (Fwindow_configuration_p):
8805         * window.c (Fcurrent_window_configuration):
8806         * window.h:
8807         * casefiddle.c (casify_object):
8808         * casefiddle.c (Fupcase):
8809         * casefiddle.c (Fdowncase):
8810         * casefiddle.c (Fcapitalize):
8811         * casefiddle.c (Fupcase_initials):
8812         * casefiddle.c (casify_region_internal):
8813         * casefiddle.c (casify_region):
8814         * casefiddle.c (Fupcase_region):
8815         * casefiddle.c (Fdowncase_region):
8816         * casefiddle.c (Fcapitalize_region):
8817         * casefiddle.c (Fupcase_initials_region):
8818         * casefiddle.c (Fupcase_word):
8819         * casefiddle.c (Fdowncase_word):
8820         * casefiddle.c (Fcapitalize_word):
8821         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8822         Replace 0 with '\0' when working with bytes.
8823         Replace initial "(" with "\(" in docstrings.
8824
8825 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8826
8827         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8828
8829         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8830
8831 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8832
8833         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8834
8835 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8836
8837         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8838         correctly.
8839
8840 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8841
8842         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8843         (inhibit_auto_save_session): New variable.
8844         (vars_of_fileio): Declare and initialize them.
8845         * fileio.c (Fdo_auto_save): Don't create session file if
8846         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8847
8848 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8849
8850         * sgiplay.c (play_internal): C++ compilability.
8851         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8852         * callproc.c (Fold_call_process_internal):
8853         Remove unused vars `env', `first'.
8854         * scrollbar.c (update_scrollbar_instance):
8855         #### unused var `current_window'.
8856         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8857         etc. within #ifdef NOT_YET.
8858         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8859         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8860         * specifier.c (specifier_instance):
8861         #### unused var `tag'.
8862         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8863
8864 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8865
8866         * fns.c (Fbutlast):
8867         * fns.c (list_sort):
8868         * fns.c (Ffillarray):
8869         * fns.c (bytecode_nconc2):
8870         * fns.c (Fnconc):
8871         * fns.c (mapcar1):
8872         * fns.c (Fmapconcat):
8873         Be pedantically 64-bit correct.  For the time when someone will
8874         want to have a list with length > 2**32.
8875
8876         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8877         Work around MIPSpro compiler bug.
8878
8879         * process-unix.c (unix_kill_child_process): Add snarky comment.
8880         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8881
8882         * config.h.in: Oops, _getpt ==> _getpty
8883
8884 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8885
8886         * config.h.in:
8887         * regex.c:
8888         Use void*, not char*, as return type of alloca().
8889
8890         * alloc.c (free_marker): Side effect inside assert expression!
8891
8892 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8893
8894         * mule-charset.c (Fset_charset_ccl_program): To check
8895         if the given ccl program is valid, use setup_ccl_program()
8896         instead of CHECK_VECTOR().
8897         (Fmake_charset): Likewise.
8898
8899 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8900
8901         * faces.c (get_extent_fragment_face_cache_index):
8902         Fix cachel.merged_faces memory leak.
8903
8904 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8905
8906         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8907         Reset MSB of octets obtained by DECODE_SJIS
8908         because of the incompatibility with Emacs.
8909         (ccl_driver)<CCL_ENCODE_SJIS>:
8910         Set MSB of octets before passing them to
8911         ENCODE_SJIS because of the incompatibility
8912         with Emacs.
8913
8914 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8915
8916         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8917         (DECLARE_LRECORD): Undo the last change.
8918         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8919
8920 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8921
8922         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8923         the implementation to lrecord_implementations_table.
8924
8925 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8926
8927         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8928         initial value of `lrecord_type_##c_name' and
8929         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8930         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8931         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8932         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8933         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8934
8935 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8936
8937         * miscplay.c (sndcnv8S_2mono):
8938         (sndcnv2monounsigned):
8939         (sndcnvULaw_2linear):
8940         (sndcnv16swap):
8941         Remove implementation-defined behavior.
8942
8943 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8944
8945         * input-method-xlib.c: Warning suppression.
8946
8947 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8948
8949         * mule-ccl.c: Sync up with Emacs 21.0.90.
8950         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8951         Do nothing.
8952         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8953         Likewise.
8954         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8955         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8956         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8957         leading char belongs to official 2-dimensional charset.
8958         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8959         write the given character as is.  Otherwise,
8960         if it is a multibyte char, convert it by
8961         non_ascii_set_charptr_emchar, then write it.
8962         (CCL_WRITE_STRING): Likewise.
8963         (ccl_get_compiled_code): New function.
8964         (setup_ccl_program): When ccl_prog is invalid,
8965         return -1.
8966         (Fregister_code_conversion_map): New function.
8967         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8968
8969         * mule-ccl.h: Sync up with Emacs 21.0.90.
8970         (Fregister_ccl_program): export it.
8971
8972         * redisplay-msw.c (separate_textual_runs):
8973         If ccl program is not valid, don't do ccl conversion.
8974
8975         * redisplay-x.c (separate_textual_runs): Ditto.
8976
8977         * file-coding.c (Fmake_coding_system):
8978         When type is ccl and value is vector, register it
8979         with a proper symbol.  And checks whether the
8980         given ccl program is valid.
8981         (mule_decode): When calling ccl_driver, if src indicates
8982         NULL pointer, set an empty string instead.
8983         (mule_encode): Likewise.
8984
8985 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8986
8987         The following large batch of changes gets us back to a state of
8988         C++ compilability.  Extbyte is now a char, which means that
8989         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8990
8991         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8992
8993         * sound.c (Fplay_sound): Type correctness.
8994
8995         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8996         (x_get_window_property): Type correctness.
8997         (receive_incremental_selection): unsigned char ==> Extbyte
8998         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8999         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9000         (Fx_store_cutbuffer_internal): Type correctness.
9001
9002         * process-unix.c (try_to_initialize_subtty): Type correctness.
9003
9004         * objects-x.c (x_print_color_instance): Type correctness.
9005         (x_print_font_instance): Type correctness.
9006         (x_list_fonts): SExtbyte ==> Extbyte.
9007         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9008         (x_find_charset_font): SExtbyte ==> Extbyte.
9009         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9010         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9011         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9012         Use bufbyte_strcmp.
9013
9014         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9015         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9016         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9017         (BYTE_C0_P): Use bit ops for char-signedness safety.
9018         (BYTE_C1_P): Use bit ops for char-signedness safety.
9019         (CHARSET_BY_LEADING_BYTE):
9020         (CHARSET_BY_ATTRIBUTES):
9021         Always use inline function.
9022         Use type_checking_assert.
9023         Hide chlook.
9024
9025         * mule-charset.c (non_ascii_charptr_copy_char):
9026         Modify to work with both ASCII and non-ASCII characters.
9027         Improve docs and variable names.
9028         Replace over-clever fall-through switch with a simple loop.
9029         (Lstream_get_emchar_1):
9030         Replace over-clever fall-through switch with a simple loop.
9031
9032         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9033         Warning suppression.
9034
9035         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9036         the return value of Lstream_getc, which could be EOF as well.
9037
9038         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9039
9040         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9041         APIs can be used on Extbytes without casts.  Risky!
9042         (SExtbyte): Remove.
9043         (UExtbyte): Remove.
9044
9045         * input-method-xlib.c (XIM_init_device):
9046         Use Xlib.h instead of IntrinsicP.h.
9047         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9048         which will break in X11R7.
9049         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9050         to call XRegisterIMInstantiateCallback with correct types.
9051
9052         * gui-x.c (button_item_to_widget_value): Type correctness.
9053
9054         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9055
9056         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9057         (xbm_instantiate_1): Type correctness.
9058         (BUILD_GLYPH_INST):  Type correctness.
9059
9060         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9061
9062         * file-coding.c:
9063         (decode_coding_sjis):
9064         (decode_coding_big5):
9065         (decode_coding_ucs4):
9066         (decode_coding_utf8):
9067         (decode_coding_iso2022):
9068         (decode_coding_no_conversion):
9069         Make all decoding functions take an Extbyte * arg.
9070         (encode_coding_sjis):
9071         (encode_coding_big5):
9072         (encode_coding_ucs4):
9073         (encode_coding_utf8):
9074         (encode_coding_iso2022):
9075         (encode_coding_no_conversion):
9076         Make all encoding functions take a Bufbyte * arg.
9077         Use size_t instead of unsigned int for memory sizes.
9078         Only cast to unsigned char whenever dereferencing Extbyte *.
9079
9080         * doc.c (unparesseuxify_doc_string): Type correctness.
9081
9082         * console-x.c (split_up_display_spec):
9083         Rewrite without using details of internal string representation.
9084         (x_semi_canonicalize_device_connection): Type correctness.
9085
9086         * config.h.in:
9087         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9088         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9089         (HAVE_XFREE386): Removed.
9090
9091         * buffer.h (DEC_CHARPTR): `const' correctness.
9092         (bufbyte_strcmp): New.
9093         (bufbyte_memcmp): New.
9094
9095         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9096
9097         * buffer.h (XCHAR_OR_CHAR_INT):
9098         Always use inline function.
9099         Remove redundant type checking assert() - XINT will abort quite nicely.
9100
9101 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9102
9103         * search.c (Freplace_match): Set newtext to an empty string.
9104
9105 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9106
9107         * s/decosf1-3.h: Remove #include of stropts.h
9108         * s/ptx.h: Remove #include of stropts.h
9109         * s/usg5-4.h: Remove #include of stropts.h
9110         * sysproc.h:
9111         * config.h.in:
9112         Use stropts.h, not sys/stropts.h.
9113         Use strtio.h, not sys/strtio.h.
9114
9115 2000-10-04  Martin Buchholz <martin@xemacs.org>
9116
9117         * XEmacs 21.2.36 is released.
9118
9119 2000-09-21  Andy Piper  <andy@xemacs.org>
9120
9121         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9122         changes still involve copying the widget tree.
9123         (update_widget_face): make sure a change is register in the widget
9124         tree. Call update_tab_widget_face appropriately.
9125         (update_tab_widget_face): ditto.
9126         (x_tab_control_redisplay): make sure non-structural changes still
9127         involve copying the widget tree.
9128
9129 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9130
9131         * lread.c (locate_file): Check the path element is non-nil.
9132
9133 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9134
9135         * lisp.h: Warning suppression for SCO compilers.
9136
9137         * redisplay-tty.c (reset_tty_modes): Fix crash.
9138         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9139
9140 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9141
9142         Big signal/process handling overhaul.  Bugs fixed:
9143         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9144         M-x comint-kill-subjob should work for both values nil and t of
9145         process-connection-type. It was broken on most platforms.
9146         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9147         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9148         * process-unix.c: Signal/Process handling overhaul.
9149         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9150         (allocate_pty): Use all available modern methods of allocating
9151         ptys, falling back to old style BSD allocation as a last resort.
9152         Use allegedly more secure Unix98 pty allocation by default.
9153         (allocate_pty_the_old_fashioned_way): New. the last resort.
9154         (unix_create_process): Push ptem, ldterm, ttcompat where
9155         available.  Autoconfiscate.
9156         (try_to_initialize_subtty): New.
9157         (unix_kill_child_process): Proper signal handling for ptys on most
9158         platforms, using special knowledge of AIX, BSD, etc...
9159         (unix_create_process): Always disconnect_controlling_terminal() for
9160         subprocesses, whether using ptys or not.
9161         * process.h: Remove old getpt-dependent PTY code.
9162         * process.c (Fprocess_send_signal): New, obvious generic function.
9163         (decode_signal): New.
9164         (Finterrupt_process):
9165         (Fkill_process):
9166         (Fquit_process):
9167         (Fstop_process):
9168         (Fcontinue_process):
9169         (Fsignal_process): Use decode_signal.
9170         (process_send_signal):
9171         Many docstring corrections.
9172         Allow any signal to be sent to a process object.
9173         * config.h.in: Add symbols for big signal/process overhaul.
9174         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9175         * sysproc.h: Include process-related headers, where available:
9176         sys/stropts.h sys/strtio.h pty.h libutil.h
9177         * s/irix4-0.h:
9178         * s/irix5-0.h:
9179         * s/cygwin32.h:
9180         * s/gnu.h:
9181         * s/linux.h:
9182         * s/hpux.h:
9183         * s/aix3-1.h:
9184         Remove old S&M pty stuff.
9185         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9186         * systty.h: Simplify cpp hackery, improve comments.
9187         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9188
9189         * editfns.c (Fformat_time_string):
9190         Be a little more paranoid with the return value of ctime.
9191
9192         * fileio.c (check_executable):
9193         (check_writable):
9194         Use symbolic constants X_OK, W_OK.
9195
9196         * console-x.c (split_up_display_spec): Fix a warning.
9197
9198 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9199
9200         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9201         * ntproc.c (sys_spawnve): make_string ==> build_string
9202         Small clarity improvements.
9203
9204 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9205
9206         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9207
9208         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9209
9210         * config.h.in (HAVE_STRCASECMP): Remove.
9211
9212 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9213
9214         * redisplay-output.c (redisplay_output_pixmap):
9215         Cleaner and possibly more 64-bit correct code.
9216
9217 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9218
9219         * dumper.c (pdump_load_finish): move restoration of
9220         `noninteractive1' to emacs.c (main_1).
9221         * emacs.c (main_1): protect LISP-visible command-line flags
9222         from pdump_load().
9223
9224 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9225
9226         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9227         DUMP_TARGET instead of literal program names.
9228
9229 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9230
9231         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9232
9233 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9234
9235         * *: Spelling mega-patch
9236
9237 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9238
9239         * fns.c (bad_bad_turtle):
9240         Delete "Eek!" comment, since we fixed the bug to which it refers.
9241
9242 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9243
9244         * alloca.c: Replace REGISTER with register.
9245
9246 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9247
9248         * file-coding.c (ucs_to_char): Use countof.
9249
9250 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9251
9252         * file-coding.c: (ucs_to_char):
9253         (complex_vars_of_file_coding):
9254         Use countof instead of sizeof.
9255         Use CHECK_NATNUM instead of CHECK_INT.
9256
9257         * sysdep.c (strcasecmp): Remove.
9258         * device-x.c (ascii_strcasecmp): New.
9259         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9260         Avoid using non-standard non-portable strcasecmp.
9261
9262 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9263
9264         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9265         * font-lock.c: remove reference to emacsfns.h.
9266         * search.c: small doc improvement.
9267         * event-Xt.c: correct file names in comments.
9268         * console-x.h Correct file names in comments.
9269         * frame.c: Correct file names in comments.
9270         * event-stream.c: remove Energize from comments.
9271
9272 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9273
9274         * symeval.h (DEFERROR_STANDARD):
9275         (DEFERROR):
9276         (DEFSYMBOL):
9277         (DEFSYMBOL_NO_DUMP):
9278         (DEFSYMBOL_MULTIWORD_PREDICATE):
9279         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9280         (DEFKEYWORD):
9281         The construct &##name is not sensible C.
9282         Fixes compilation errors with Unixware native compiler.
9283
9284 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9285
9286         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9287         (next_frame_internal): Removed.  We now just have next_frame.
9288         (next_frame):
9289         Write a simpler and cleaner one-pass algorithm.
9290         Remove called_from_delete_device arg and #ifdefed-out code.
9291         (previous_frame):
9292         Renamed from prev_frame.  Update callers.
9293         Cleaned up to have an analogous implementation to next_frame.
9294         (other_visible_frames_internal): Remove the
9295         called_from_delete_device bogus arg, and hence, remove this
9296         function.  Just use other_visible_frames().
9297
9298         * window.c (Fnext_window):
9299         Prettify docstring.
9300         Since next_frame() is guaranteed to return a frame, remove check
9301         for nil inserted in previous patch.
9302         (Fprevious_window):
9303         Prettify docstring.
9304         Make code look more like Fnext_window.
9305         (window_loop):
9306         Respect the `console' arg when iterating through windows.
9307         Fixes bug: (get-buffer-window buffer t device) not respecting
9308         the `device' arg.
9309         This function needs more work, as others have pointed out.
9310
9311         * frame.h: Rename prev_frame to previous_frame.
9312         device_matches_console_spec no longer takes a `frame' arg.
9313
9314         * s/gnu.h:
9315         * s/linux.h:
9316         * s/hpux.h:
9317         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9318         From "Golubev I. N." <gin@mo.msk.ru>.
9319
9320         * make-src-depend: Fix typo.
9321
9322 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9323
9324         * window.c (Fnext_window):
9325         next_frame() might return nil, not a frame.
9326         Fixes this crash:
9327         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9328
9329         * frame.c (next_frame_internal):
9330         We've passed a frame if we've passed its device.
9331         Fixes this crash:
9332         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9333 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9334
9335 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9336
9337         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9338         Allow option to suppress accelerators in menu/dialog items.
9339         (populate_or_checksum_helper): Pass dialog title through above.
9340
9341 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9342
9343         * event-msw.c (mswindows_key_to_emacs_keysym):
9344         Add "pause" key, fix "menu" key.
9345
9346 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9347
9348         * eval.c (reinit_vars_of_eval):
9349         Increase max_lisp_eval_depth to 1000,
9350         required for thai-xtis.el to byte-compile under some circumstances.
9351
9352 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9353
9354         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9355         From Kenichi Handa.
9356
9357 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9358
9359         * make-src-depend: Make the generated Makefiles smaller.
9360
9361         * s/hpux.h (SETUP_SLAVE_PTY):
9362         Provide a %d in the format string for the errno argument.
9363
9364         * editfns.c (Ftemp_directory):
9365         Warning fix.
9366         Avoid buffer overrun on very long file name.
9367
9368         * input-method-xlib.c (XIM_init_device):
9369         6th parameter of XRegisterIMInstantiateCallback has different
9370         pointer types on different OSes, so simply cast to (void *).
9371
9372         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9373
9374         * sysdll.c (dll_open):
9375         shl_load will hang hard if passed a NULL filename.
9376         Simply return NULL for compatibility with dlopen.
9377         * sysdll.c: Conform to XEmacs coding standards.
9378
9379         * sysdep.c (get_pty_max_bytes):
9380         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9381
9382 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9383
9384         * tooltalk.c: Add #include <syssignal.h>
9385
9386 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9387
9388         * s/hpux.h: Don't use undefined function sigunblock().
9389
9390 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9391
9392         * config.h.in: Add HAVE_BALLOON_HELP.
9393         * emacs.c: Use HAVE_BALLOON_HELP.
9394         * Makefile.in.in (x_objs):
9395         Make Balloon Help conditional on finding shape.h.
9396
9397 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9398
9399         * syntax.c (regex_emacs_buffer_p): New variable.
9400         * syntax.h (regex_emacs_buffer_p): extern.
9401         * search.c (looking_at_1):
9402         (string_match_1):
9403         (fast_string_match):
9404         (search_buffer): Set regex_emacs_buffer_p.
9405         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9406         when before_dot, at_dot, after_dot.
9407
9408 2000-08-23  Andy Piper  <andy@xemacs.org>
9409
9410         * gui-x.c (popup_selection_callback): Only set action_occurred
9411         when we really have an image instance.
9412         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9413
9414 2000-08-23  Andy Piper  <andy@xemacs.org>
9415
9416         * gui-msw.c (mswindows_handle_gui_wm_command): set
9417         action_occurred.
9418         * gui-x.c (popup_selection_callback): ditto.
9419
9420         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9421         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9422         (struct Lisp_Image_Instance): add action_occurred flag.
9423
9424         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9425         (image_instance_changed): ditto.
9426         (reset_frame_subwindow_instance_cache): only unmap windows - do
9427         not remove them from the cache also.
9428
9429         * glyphs-widget.c (tab_control_update): better debug.
9430         (progress_gauge_update): ditto.
9431         (layout_update): ditto.
9432         (layout_instantiate): ditto.
9433         (tab_control_order_only_changed): cope with null pending items.
9434
9435         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9436         debug. Force selection of an item when an action occurred. Cope
9437         with null pending_items.
9438         (mswindows_progress_gauge_redisplay): better debug.
9439         * glyphs-x.c (x_tab_control_redisplay): ditto.
9440
9441         * redisplay.c (redisplay_frame): reset the frame cache if the
9442         frame is garbaged.
9443
9444         * window.c (Fset_window_configuration): potentially re-enable
9445         frame cache reset.
9446         (window_unmap_subwindows): need to finalize instances here since
9447         it is only used in mark_window_as_deleted.
9448
9449 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9450
9451         * nas.c (SndOpenDataForReading):
9452         nas.c (WaveOpenDataForReading):
9453         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9454         Somehow escaped from the 2000-08-14 patch.
9455
9456 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9457
9458         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9459         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9460
9461 2000-08-21  Andy Piper  <andy@xemacs.org>
9462
9463         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9464         window if it is not already displayed.
9465
9466         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9467         it is not already displayed.
9468
9469         * window.c (Fset_window_configuration): don't reset the frame
9470         cache.
9471
9472         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9473         instances from the frame cache if we are actually finalizing them.
9474         (reset_frame_subwindow_instance_cache): reset frame cache only
9475         after unmapping everything.
9476         (map_subwindow): set displayed flag after mapping.
9477
9478 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9479
9480         * data.c (indirect_function):
9481         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9482
9483         * eval.c (function_argcount):
9484         Use original function when signaling errors.
9485
9486 2000-08-18  Andy Piper  <andy@xemacs.org>
9487
9488         * frame.c (delete_frame_internal): use new
9489         free_frame_subwindow_instances name.
9490
9491         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9492         (add_tab_item): make return type correct.
9493         (mswindows_tab_control_instantiate): assert index of tab.
9494         (mswindows_tab_control_redisplay): Re-code to use
9495         gui_item_equal_sans_selected and gui_item_list_find_selected.
9496
9497         * glyphs-widget.c (tab_control_update): Correct comment.
9498
9499         * window.c (window_unmap_subwindows): use new
9500         unmap_subwindow_instance_cache_mapper.
9501         (window_unmap_subwindows_cache_mapper): deleted.
9502         (Fset_window_configuration): comparisons should now be with
9503         EQ. Preserve the subwindow instance cache across configuration
9504         changes.
9505         (allocate_window): ditto.
9506         (make_dummy_parent): ditto.
9507
9508         * glyphs.c (free_frame_subwindow_instances): rename from
9509         free_frame_subwindow_instance_cache. finalize all instances rather
9510         than just those in the display cache.
9511         (finalize_all_subwindow_instances): walk windows unmapping and
9512         finalizing subwindows.
9513         (unmap_subwindow_instance_cache_mapper): moved from
9514         window.c. Allow finalization as well as unmapping.
9515
9516         * gui.c (gui_item_list_find_selected): new function.
9517
9518         * gui.h (gui_item_list_find_selected): declare.
9519
9520         * glyphs-x.c (x_tab_control_redisplay): pick tab
9521         explicitly. Re-code to use gui_item_equal_sans_selected and
9522         gui_item_list_find_selected.
9523
9524         * glyphs-x.h: add lwlib-utils.h
9525
9526         * buffer.c (Frecord_buffer): undo previous change.
9527
9528 2000-08-09  Vin Shelton  <acs@xemacs.org>
9529
9530         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9531         possible.  Create temporary files more securely.  The patch was
9532         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9533         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9534         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9535         for details.
9536
9537 2000-08-07  Ben Wing  <ben@xemacs.org>
9538
9539         * getloadavg.c: remove duplicate (and windows-breaking)
9540         includes of fcntl.h and sys/file.h.
9541
9542         * nt.c: remove duplicate getloadavg() definition.
9543
9544         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9545         encodings.
9546
9547 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9548
9549         * eval.c (function_argcount): If function needs to be autoloaded
9550         actually use the loaded definition.
9551         GCPRO function.
9552
9553 2000-08-05  Ben Wing  <ben@xemacs.org>
9554
9555         * getloadavg.c: add prototype for getloadavg().  remove
9556         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9557         of the code).  remove duplicate header includes.
9558
9559         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9560
9561         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9562         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9563         useful load average.
9564
9565         * alloc.c (reinit_alloc_once_early): removed references to
9566         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9567         the lisp vars are the only things referencing the malloc_sbrk_*
9568         vars, and they were already if 0'd out.  these vars only exist
9569         in the older malloc.c, which is basically unused, and they're
9570         only for informational purposes.
9571
9572         * m\*.h: removed useless VIRT_ADDR_VARIES.
9573
9574         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9575
9576 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9577
9578         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9579         color if the image is a mono pixmap.
9580
9581 2000-07-30  Ben Wing  <ben@xemacs.org>
9582
9583         * Makefile.in.in (release):
9584         Remove stray @.
9585
9586         * buffer.c (directory_is_current_directory):
9587         * dired-msw.c (mswindows_get_files):
9588         * dired.c:
9589         * dired.c (Fdirectory_files):
9590         * dired.c (file_name_completion_stat):
9591         * dired.c (Ffile_attributes):
9592         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9593         preprocessor tricks, to avoid problems on some machines
9594         (e.g. SCO).
9595
9596         * callproc.c (egetenv): GC docs.
9597
9598         * console-msw.h:
9599         * console-msw.h (struct mswindows_dialog_id):
9600         * lrecord.h (lrecord_type):
9601         New object for use with MSW dialogs.
9602
9603         * console.h (struct console_methods):
9604         New enable/disable frame methods, for proper modal dialogs.
9605
9606         * device-msw.c (msprinter_default_printer): Fix to follow
9607         proper Mule conventions.
9608
9609         * device-msw.c:
9610         * device-msw.c (signal_open_printer_error):
9611         * device-msw.c (msprinter_init_device):
9612         * device-msw.c (ensure_not_printing):
9613         * device-msw.c (plist_get_margin):
9614         * device-msw.c (Fmsprinter_select_settings):
9615         * device-msw.c (finalize_devmode):
9616         * device-msw.c (Fmsprinter_settings_despecialize):
9617         * device-msw.c (signal_enum_priner_error):
9618         * extents.c (decode_extent):
9619         * extents.c (decode_map_extents_flags):
9620         * extents.c (decode_extent_at_flag):
9621         * extents.c (Fextent_at):
9622         * extents.c (Fextents_at):
9623         * extents.c (symbol_to_glyph_layout):
9624         [[[[2]]]] Use structured errors.
9625
9626         * dialog-msw.c:
9627         * dialog-msw.c (mswindows_is_dialog_msg):
9628         * dialog-msw.c (mark_mswindows_dialog_id):
9629         * dialog-msw.c (dialog_proc):
9630         * dialog-msw.c (handle_question_dialog_box):
9631         * dialog-msw.c (syms_of_dialog_mswindows):
9632         Define new object to clean up marking; use it as a dialog identifier.
9633         Call new delete-dialog-box-hook.
9634
9635         * dialog-x.c (dbox_selection_callback):
9636         * dialog-x.c (dbox_descriptor_to_widget_value):
9637         * dialog-x.c (x_make_dialog_box_internal):
9638         Call new delete-dialog-box-hook.
9639         Return an id.
9640
9641         * dialog.c:
9642         * dialog.c (syms_of_dialog):
9643         * dialog.c (vars_of_dialog):
9644         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9645
9646         * eval.c:
9647         * eval.c (signal_call_debugger):
9648         when noninteractive, output stack traces on the console instead
9649         of in a (never-seen) buffer.
9650
9651         * eval.c (signal_type_error):
9652         * eval.c (invalid_argument_2):
9653         * lisp.h:
9654         new funs for use w/structured errors.
9655
9656         * event-Xt.c:
9657         * event-Xt.c (x_to_emacs_keysym):
9658         * event-Xt.c (describe_event):
9659         * event-Xt.c (emacs_Xt_event_handler):
9660         * event-Xt.c (vars_of_event_Xt):
9661         * event-msw.c:
9662         * event-msw.c (mswindows_wnd_proc):
9663         * event-msw.c (vars_of_event_mswindows):
9664         rename {x,mswindows}-debug-events to debug-{}-events for
9665         consistency with other debug-foo variables.
9666
9667         * event-stream.c:
9668         document next-event more clearly.
9669
9670         * fileio.c (Ffile_name_directory):
9671         * fileio.c (Ffile_name_nondirectory):
9672         * fileio.c (Funhandled_file_name_directory):
9673         * fileio.c (file_name_as_directory):
9674         * fileio.c (Ffile_name_as_directory):
9675         * fileio.c (directory_file_name):
9676         * fileio.c (Fdirectory_file_name):
9677         * fileio.c (Fmake_temp_name):
9678         * fileio.c (Ffile_truename):
9679         * fileio.c (Fsubstitute_in_file_name):
9680         * fileio.c (expand_and_dir_to_file):
9681         * fileio.c (barf_or_query_if_file_exists):
9682         * fileio.c (check_executable):
9683         * fileio.c (Ffile_exists_p):
9684         * fileio.c (Ffile_writable_p):
9685         * fileio.c (Ffile_directory_p):
9686         * fileio.c (Ffile_regular_p):
9687         * fileio.c (Ffile_modes):
9688         * fileio.c (Ffile_newer_than_file_p):
9689         * fileio.c (Fverify_visited_file_modtime):
9690         * fileio.c (Fset_visited_file_modtime):
9691         * fileio.c (auto_save_1):
9692         (1). (2).
9693         fix up gcpro's.
9694
9695         * frame-msw.c:
9696         * frame-msw.c (mswindows_init_frame_1):
9697         * frame-msw.c (mswindows_enable_frame):
9698         * frame-msw.c (error_frame_unsizable):
9699         * frame-msw.c (msprinter_init_frame_1):
9700         * frame-msw.c (msprinter_init_frame_3):
9701         * frame-msw.c (console_type_create_frame_mswindows):
9702         (2).
9703         implement new enable/disable frame methods.
9704
9705         * frame-x.c:
9706         * frame-x.c (x_enable_frame):
9707         * frame-x.c (console_type_create_frame_x):
9708         implement new enable/disable frame methods.
9709
9710         * frame.c:
9711         * frame.c (Fdisable_frame):
9712         * frame.c (syms_of_frame):
9713         * frame.h (struct frame):
9714         implement new enable/disable frame methods/functions.
9715
9716         * general-slots.h:
9717         add initial-focus.
9718
9719         * glyphs-msw.c (mswindows_widget_instantiate):
9720         comment that initial-focus should be implemented.
9721
9722         * glyphs-widget.c:
9723         * glyphs-widget.c (check_valid_instantiator):
9724         * glyphs-widget.c (check_valid_orientation):
9725         * glyphs-widget.c (check_valid_tab_orientation):
9726         * glyphs-widget.c (check_valid_justification):
9727         * glyphs-widget.c (check_valid_border):
9728         * glyphs-widget.c (check_valid_callback):
9729         * glyphs-widget.c (check_valid_int_or_function):
9730         * glyphs-widget.c (check_valid_string_or_vector):
9731         * glyphs-widget.c (check_valid_item_list_1):
9732         * glyphs-widget.c (widget_validate):
9733         * glyphs-widget.c (combo_box_validate):
9734         * glyphs-widget.c (widget_instantiate):
9735         * glyphs-widget.c (syms_of_glyphs_widget):
9736         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9737         * glyphs-widget.c (image_instantiator_combo_box):
9738         * glyphs-widget.c (image_instantiator_scrollbar):
9739         * glyphs-widget.c (image_instantiator_tab_control):
9740         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9741         (2).
9742         support (unimplemented) keyword initial-focus.
9743         reindent long macros.
9744
9745         * glyphs-x.c (x_redisplay_widget):
9746         * glyphs-x.c (x_button_instantiate):
9747         * glyphs-x.c (x_button_redisplay):
9748         * glyphs-x.c (x_progress_gauge_instantiate):
9749         * glyphs-x.c (x_edit_field_instantiate):
9750         * glyphs-x.c (x_combo_box_instantiate):
9751         * glyphs-x.c (x_tab_control_instantiate):
9752         * glyphs-x.c (x_label_instantiate):
9753         * gui-x.c:
9754         * gui-x.c (button_item_to_widget_value):
9755         * gui-x.c (gui_items_to_widget_values_1):
9756         * gui-x.c (gui_item_children_to_widget_values):
9757         * gui-x.c (gui_items_to_widget_values):
9758         * gui-x.h:
9759         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9760         add new flag to gui-parsing routines to indicate whether
9761         accelerator specs should be supported.
9762
9763         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9764
9765         * glyphs.h (struct Lisp_Image_Instance):
9766         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9767         add initial-focus flag.
9768
9769         * gui.c:
9770         * gui.c (syms_of_gui):
9771         * gui.c (vars_of_gui):
9772         clean up menu-no-selection-hook.
9773
9774         * gui.h:
9775         support delete-dialog-box-hook.
9776
9777         * lread.c (Fload_internal):
9778         * lread.c (locate_file_in_directory_mapper):
9779         (1).
9780
9781         * lrecord.h:
9782         * lrecord.h (struct toolbar_button):
9783         * lrecord.h (syms_of_toolbar):
9784         document how to create a new object.
9785
9786         * menubar-msw.c (mswindows_char_is_accelerator):
9787         may be called on frames w/o menus.
9788
9789         * menubar.c (vars_of_menubar):
9790         clean up :filter docs.
9791
9792         * nt.c (readdir):
9793         * ntproc.c:
9794         (1).
9795
9796         * process-nt.c:
9797         * process-nt.c (validate_signal_number):
9798         * process-nt.c (signal_cannot_launch):
9799         * process-nt.c (nt_create_process):
9800         * process-nt.c (nt_send_process):
9801         * process-nt.c (nt_kill_child_process):
9802         * process-nt.c (nt_open_network_stream):
9803         * process-nt.c (syms_of_process_nt):
9804         (2).
9805         delete quote-handling.  call new lisp code that does it better.
9806
9807         * process-unix.c (connect_to_file_descriptor):
9808         * process-unix.c (allocate_pty):
9809         * process-unix.c (unix_send_process):
9810         * process-unix.c (unix_kill_child_process):
9811         * process-unix.c (unix_open_network_stream):
9812         * process-unix.c (unix_open_multicast_group):
9813         (1). (2).
9814
9815         * process.c:
9816         * process.c (Fstart_process_internal):
9817         (2).  need to canonicalize process path even if absolute.
9818
9819         * select-msw.c (symbol_to_ms_cf):
9820         * select-msw.c (ms_cf_to_symbol):
9821         * select-msw.c (cf_is_autofreed):
9822         * select-msw.c (mswindows_destroy_selection):
9823         * select.c:
9824         * select.c (syms_of_select):
9825         * select.h:
9826         support dibv5, fix bugs. (from Mike Alexander)
9827
9828         * select.c (Fget_selection_internal):
9829         * select.c (select_convert_out):
9830
9831         * sysdep.c:
9832         * sysdep.c (xemacs_stat):
9833         renamed.
9834
9835         * sysdep.c (mkdir):
9836         * sysdep.c (rmdir):
9837         but keep original stat() here because we provide encapsulation
9838         around these funs.
9839
9840         * sysfile.h:
9841         * sysfile.h (fstat):
9842         remove stat garbage.
9843
9844         * syswindows.h:
9845         fix X/MSW conflict.
9846         don't include tchar.h.  it's inappropriate because it makes
9847         compile-time distinctions when we want runtime distinctions.
9848         (we provide our own tchar replacements)
9849
9850         * toolbar.c:
9851         use default object printer for toolbar-button.
9852
9853         * unexcw.c:
9854         make sure we don't encapsulate.
9855
9856         * window.c (vars_of_window):
9857         emphasize that temp-buffer-show-hook is obsolete.
9858
9859 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9860
9861         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9862         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9863
9864         * events.c (Fevent_timestamp_lessp):
9865         Not 64-bit clean.  Use EMACS_INT, not int.
9866
9867 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9868
9869         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9870         unsigned int and changed the last enum to
9871         lrecord_type_last_built_in_type.
9872         (lrecord_implementations_table): changed prototype to know how
9873         long the array is supposed to be.
9874         (lrecord_type_count): new unsigned int to keep track of the
9875         current number of lisp lrecord types.
9876         (DEFINE_EXTERNAL_LRECORD):
9877         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9878         dynamic-modules to declare new lisp types. They are the same
9879         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9880         int for each new type, and increment lrecord_type_count by 1.
9881
9882         * alloc.c (lrecord_implementations_table): Changed to reference
9883         lrecord_type_last_built_in_type for the size of the array.
9884         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9885
9886 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9887
9888         * glyphs.h (check_valid_item_list): Renamed from
9889         check_valid_item_list_1.
9890
9891 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9892
9893         * select.c (Qselect_coerce): New.
9894         * select.c (Vselection_coercion_alist): New.
9895         * select.c (syms_of_select): Declare.
9896         * select.c (get-selection-internal): Use it.
9897         Use the new select-coerce functionality.
9898
9899         * select.c (select_coerce): New.
9900         * select.h (select_coerce): Declare.
9901         New function to coerce one type of data into another.
9902
9903 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9904
9905         * callproc.c (Fcall_process_internal):
9906         (Fcall_process_internal):
9907         * process-unix.c (unix_create_process):
9908         Save and restore the value of errno, so that error messages are accurate.
9909
9910 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9911
9912         * elhash.c (print_hash_table):
9913         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9914         Prettify docstrings and indentation.
9915
9916 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9917
9918         * window.c (Fwindow_pixel_edges): Subtract frame border and
9919         gutter size.
9920
9921 2000-07-31  Andy Piper  <andy@xemacs.org>
9922
9923         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9924         will acknowledge the change.
9925
9926         * glyphs.h: declare tab_control_order_only_changed.
9927
9928         * glyphs-x.c (x_tab_control_redisplay): use
9929         tab_control_order_only_changed.
9930
9931         * glyphs-widget.c (tab_control_order_only_changed): new function.
9932
9933         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9934         tab_control_order_only_changed.
9935
9936         * gui.c (gui_item_equal_sans_selected): new function.
9937         (gui_item_equal): use it.
9938
9939         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9940         :properties in favor of :items..
9941
9942         * glyphs-widget.c (check_valid_item_list): rename from
9943         check_valid_item_list_1.
9944         (check_valid_item_list_1): renamed.
9945         (combo_box_validate): deprecate :properties in favor of :items.
9946         (widget_instantiate): ditto.
9947         (tab_control_update): ditto.
9948         (image_instantiator_combo_box): ditto.
9949         (image_instantiator_tree_view): ditto.
9950         (image_instantiator_tab_control): ditto.
9951         (layout_post_instantiate): remove dead code.
9952
9953         * print.c (debug_print_no_newline): only write to debugger if in
9954         WIN32_NATIVE.
9955
9956         * elhash.c (Fmake_hash_table): update doc string.
9957
9958         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9959         messages whilst in GC. This at least stops XEmacs crashing but has
9960         the potential for wierd behaviour.
9961
9962 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9963
9964         * config.h.in:
9965         Make existence of s&m files optional.
9966
9967         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9968         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9969         * s/gnu.h: Remove HAVE_GETLOADAVG.
9970         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9971         * s/sol2.h: Remove HAVE_GETLOADAVG.
9972         * lisp.h: Remove getloadavg() declaration.
9973         * fns.c:
9974         Include <sys/loadavg.h> if available.
9975         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9976         * config.h.in:  Group together getloadavg()-related macros.
9977         Use only configure-time tests to detect getloadavg().
9978
9979 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9980
9981         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9982
9983 2000-07-25  Andy Piper  <andy@xemacs.org>
9984
9985         * syswindows.h: add tchar.h for native builds.
9986
9987         * frame.c (syms_of_frame): remove set-glyph-image.
9988
9989         * general-slots.h: add Qset_glyph_image.
9990
9991         * glyphs-widget.c (layout_update): add domain arg to
9992         set-glyph-image.
9993         (syms_of_glyphs_widget): remove set-glyph-image.
9994
9995 2000-07-23  Ben Wing  <ben@xemacs.org>
9996
9997         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9998         Vpopup_frame_list.
9999
10000 2000-07-22  Andy Piper  <andy@xemacs.org>
10001
10002         * symsinit.h: add syms_of_win32().
10003
10004         * gui-msw.c (syms_of_gui_mswindows): remove
10005         Fmswindows_shell_execute.
10006         (Fmswindows_shell_execute): moved to win32.c.
10007
10008         * emacs.c (main_1): add syms_of_win32 ().
10009
10010         * win32.c (init_potentially_nonexistent_functions): rewrite in
10011         compiler-friendly terms.
10012         (Fmswindows_shell_execute): move here from gui-msw.c.
10013         (syms_of_win32): new.
10014
10015         * device-msw.c (Fmswindows_printer_list): clean up args to
10016         EnumPrinters.
10017         Don't include tchar under cygwin or mingw.
10018         (msprinter_default_printer): make cygwin-friendly.
10019
10020 2000-07-21  Andy Piper  <andy@xemacs.org>
10021
10022         * glyphs-widget.c (image_instantiator_tree_view): use tab
10023         control's update function.
10024         (layout_property): new function. Retrieve items.
10025
10026         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10027         function. Re-populate the tree view from the pending items.
10028
10029         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10030         is designated the parent if the domain is an image instance. This
10031         is needed so that dirtiness can be cascade up the hierarchy and
10032         thus for layout children to be redisplayed correctly.
10033         (allocate_image_instance): rename glyph -> parent.
10034
10035         * redisplay.h: change redisplay_output_layout signature.
10036
10037         * redisplay-msw.c (mswindows_output_display_block): use domain
10038         arg.
10039
10040         * redisplay-x.c (x_output_display_block): use domain arg.
10041
10042 2000-07-10  Andy Piper  <andy@xemacs.org>
10043
10044         * window.c (Fset_window_configuration): add comment.
10045
10046         * redisplay-output.c (compare_runes):
10047         (redisplay_output_subwindow): redisplay rather than update subwindow.
10048         (redisplay_output_layout): ditto.
10049
10050         * redisplay-msw.c (mswindows_frame_output_end):
10051         (mswindows_frame_output_end): make defer window pos optional.
10052
10053         * lisp.h: add Flast.
10054
10055         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10056         normalize method. Change update method to be for changed
10057         instantiators. Add redisplay method. Change signature of layout
10058         method.
10059         (struct Lisp_Image_Instance): add instantiator.
10060         (IMAGE_INSTANCE_INSTANTIATOR): new.
10061         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10062         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10063         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10064
10065         * glyphs.c:
10066         (find_instantiator_differences): new function.
10067         (Fset_instantiator_property): new convenience function.
10068         (check_image_instance_structure): strictly check for vector
10069         instantiators.
10070         (normalize_image_instantiator): make non-static.
10071         (instantiate_image_instantiator): pass on dest_mask and use new
10072         signatures for image_instance_layout and friends.
10073         (mark_image_instance): mark the instantiator. Mark the subwindow
10074         face not the widget face.
10075         (image_instance_equal): add instantiator.
10076         (image_instance_hash): ditto.
10077         (allocate_image_instance): ditto.
10078         (Fset_image_instance_property): removed.
10079         (Fimage_instance_file_name): ditto.
10080         (Fcolorize_image_instance): ditto.
10081         (image_instance_layout): add offsets to be set.
10082         (update_image_instance): new function. update an image instance
10083         from its changed instantiator.
10084         (inherit_normalize): add dest_mask.
10085         (xbm_normalize): ditto.
10086         (xface_normalize): ditto.
10087         (xpm_normalize): ditto.
10088         (text_update): set_property -> update.
10089         (image_instantiate): use the glyph identity as a hash key, not the
10090         instantiator.
10091         (glyph_width): use new image_instance_layout signature.
10092         (glyph_ascent): ditto.
10093         (glyph_descent): ditto.
10094         (glyph_height): ditto.
10095         (glyph_query_geometry): ressurrect.
10096         (glyph_layout): ditto.
10097         (redisplay_subwindow): update -> redisplay.
10098         (syms_of_glyphs): add Fset_instantiator_property.
10099         (image_instantiator_format_create): set_property -> update.
10100
10101         * glyphs-x.c:
10102         (autodetect_normalize): add dest_maks to signature.
10103         (x_redisplay_subwindow): update -> redisplay.
10104         (x_redisplay_widget): ditto.
10105         (x_button_redisplay): ditto.
10106         (x_progress_gauge_redisplay): ditto.
10107         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10108         stacking order.
10109         (console_type_create_glyphs_x): update -> redisplay.
10110         (image_instantiator_format_create_glyphs_x): ditto.
10111
10112         * glyphs-widget.c:
10113         (check_valid_instantiator): disallow glyphs in the instantiator,
10114         they must now be vectors.
10115         (check_valid_instantiator_list): ditto.
10116         (glyph_instantiator_to_glyph): use internal symbol rather than
10117         intern.
10118         (widget_update): renamed from widget_set_property. Call cascaded
10119         update methods.
10120         (redisplay_widget): renamed from update_widget.
10121         (widget_layout): image_instance_layout now takes position as well
10122         as size.
10123         (widget_normalize): ditto.
10124         (widget_instantiate): ditto.
10125         (tab_control_query_geometry) ditto.:
10126         (tab_control_update): renamed from tab_control_set_property.
10127         (progress_gauge_update): set_property -> update.
10128         (layout_normalize): rewrite so that child instantiators are
10129         normalized also.
10130         (layout_update): new function. Create glyphs from the normalized
10131         children and cope with any other layout keywords. We do not
10132         instantiate children here that will be take care of by
10133         redisplay_output_layout.
10134         (layout_instantiate): call layout_update and not much else.
10135         (layout_post_instantiate): not sure whether this is needed
10136         anymore.
10137         (layout_query_geometry): query glyph geometry rather than
10138         image_instance geometry.
10139         (layout_layout): set offsets from pass in parameters. Use glyph
10140         geometry and layout functions rather than image instance ones.
10141         (native_layout_layout): ditto.
10142         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10143         (image_instantiator_widget): set_property -> update.
10144         (image_instantiator_buttons): ditto.
10145         (image_instantiator_progress_guage): ditto.
10146         (image_instantiator_tab_control): ditto.
10147         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10148         (image_instantiator_layout): add update method.
10149
10150         * glyphs-msw.c (bmp_normalize):
10151         (mswindows_resource_normalize): add dest_mask so that it can be
10152         proprogated by layout_normalize.
10153         (begin_defer_window_pos): make optional because it may not be the
10154         right thing to do and it introduces differences with X.
10155         (mswindows_unmap_subwindow): ditto.
10156         (mswindows_map_subwindow): ditto.
10157         (mswindows_redisplay_subwindow): renamed from
10158         mswindows_update_subwindow.
10159         (mswindows_redisplay_widget): ditto.
10160         (mswindows_button_redisplay): renamed from
10161         mswindows_button_update. Update is now what the instantiation
10162         function does for a changed instantiator.
10163         (mswindows_progress_gauge_instantiate): set the progress value
10164         here if appropriate.
10165         (mswindows_tab_control_redisplay): cope with re-ordering of the
10166         members of the tab widget by simply selecting the new top
10167         widget. This makes things appear ok if you click on a tab.
10168         (mswindows_combo_box_instantiate): image_instance_layout now takes
10169         position as well as size.
10170         (mswindows_progress_gauge_redisplay): renamed from
10171         mswindows_progress_gauge_update.
10172         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10173         (image_instantiator_format_create_glyphs_mswindows): ditto.
10174
10175         * glyphs-eimage.c (jpeg_normalize):
10176         (gif_normalize):
10177         (png_normalize):
10178         (tiff_normalize): add dest_mask so that it can be proprogated by
10179         layout_normalize.
10180
10181         * elhash.c:
10182         (print_hash_table):
10183         (hash_table_weakness_validate):
10184         (decode_hash_table_weakness):
10185         (Fhash_table_weakness):
10186         (Fhash_table_type):
10187         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10188
10189         * console.h (struct console_methods): move update_* to
10190         redisplay_*.
10191
10192 2000-07-20  Ben Wing  <ben@xemacs.org>
10193
10194         * *.[ch] (XSETOBJ): remove unused middle argument.
10195         lisp-disunion.h: correct wrap_object() to one argument.
10196
10197 2000-07-15  Ben Wing  <ben@xemacs.org>
10198
10199         * s/cygwin32.h:
10200         * s/cygwin32.h (CYGWIN_CONV_PATH):
10201         Add missing logb prototype for v1.1.
10202         Use post-b20 names and alias to pre-b20 names when pre-b20.
10203
10204         * s/windowsnt.h: [5].
10205
10206 2000-07-15  Ben Wing  <ben@xemacs.org>
10207
10208         * Makefile.in.in (x_objs):
10209         * Makefile.in.in (sheap_objs):
10210         * Makefile.in.in (objs):
10211         added win32.o, cosmetic cleanups.
10212
10213         * alloc.c (Fmake_byte_code):
10214         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10215         etc. macros which declare their own args now.
10216
10217         * alloc.c (syms_of_alloc):
10218         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10219
10220         * buffer.c:
10221         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10222
10223         * buffer.c (Fget_file_buffer):
10224         Fixed GCPRO problem.
10225
10226         * buffer.c (get_truename_buffer):
10227         Fixed comment about GC checking.
10228
10229         * buffer.c (syms_of_buffer):
10230         Undeclared those dedicated frame funs.
10231         [2].
10232
10233         * buffer.h:
10234         Define convenience macros for internal/external conversions.
10235         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10236         and Qenvironment_variable_encoding for cleaner code.
10237
10238         * bufslots.h:
10239         Remove dedicated-frame; in lisp.
10240
10241         * bytecode.c (funcall_compiled_function):
10242         [1].
10243
10244         * bytecode.c (syms_of_bytecode):
10245         [2].
10246
10247         * console-msw.c:
10248         * console-msw.c (mswindows_show_console): Rewrote.
10249
10250         * console-msw.c (Fmswindows_debugging_output): New.
10251         Sends to OutputDebugString (special MSWin debugger interface).
10252
10253         * console-msw.c (Fmswindows_message_box):
10254         Fixed stupid bugs so it works when called from kill-emacs.
10255
10256         * console-msw.c (syms_of_console_mswindows):
10257         Declare Fmswindows_debugging_output.
10258
10259         * console-msw.h:
10260         New MSWin prototypes.
10261
10262         * console-msw.h (struct mswindows_frame):
10263         New entry last-click-mods for improved button-modifier support.
10264
10265         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10266         New struct entry `popup' with corresponding accessor.
10267
10268         * console-x.c:
10269         * console-x.c (split_up_display_spec):
10270         * console-x.c (get_display_arg_connection):
10271         * console-x.c (x_semi_canonicalize_console_connection):
10272         * console-x.c (x_canonicalize_device_connection):
10273         [[[6]]]: Change char to more specific type.
10274         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10275
10276         * console-x.c (x_semi_canonicalize_console_connection):
10277         * console-x.c (x_canonicalize_device_connection):
10278         [[[9]]]: Fix up error signalling to use new structured error system.
10279
10280         * console-x.h:
10281         [[[4]]]: Define codesys aliases:
10282         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10283         Qx_color_name_encoding, Qx_display_name_encoding.
10284
10285         * console.h (struct console_methods):
10286         New method make_dialog_box_internal supersedes older
10287         popup_dialog_box method.
10288
10289         * data.c:
10290         Define many new errors, part of new structured errors.
10291
10292         * data.c (init_errors_once_early):
10293         * data.c (syms_of_data):
10294         [2].
10295
10296         * device-msw.c (mswindows_init_device):
10297         [[[5]]]: Cleanup to support NT 3.51.
10298
10299         * device-msw.c (decode_devmode): Cleanup.
10300
10301         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10302         * device-msw.c (mswindows_handle_print_dialog_box):
10303         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10304         * device-msw.c (syms_of_device_mswindows):
10305         Delete the dialog box primitives recently introduced by Kirill and
10306         instead interface to general dialog box interface.
10307
10308         * device-x.c:
10309         * device-x.c (compute_x_app_name):
10310         * device-x.c (x_init_device):
10311         * device-x.c (Fx_valid_keysym_name_p):
10312         * device-x.c (Fx_set_font_path):
10313         [6].
10314         [7].
10315
10316         * device.h (wrap_device): New.
10317         First of its kind; meant to replace XSETDEVICE.
10318
10319         * dialog-msw.c: Many file-dialog symbols.
10320
10321         * dialog-msw.c (mswindows_register_popup_frame): New.
10322         * dialog-msw.c (mswindows_is_dialog_msg): New.
10323         For supporting kbd traversal in dialog boxes.
10324
10325         * dialog-msw.c (dialog_proc):
10326         Support hitting ESC in dialogs.
10327
10328         * dialog-msw.c (struct):
10329         Common dialog box errors.
10330
10331         * dialog-msw.c (handle_file_dialog_box): New.
10332         Add file dialog code.
10333
10334         * dialog-msw.c (handle_question_dialog_box):
10335         Redo existing code to support new question dialog syntax.
10336
10337         * dialog-msw.c (console_type_create_dialog_mswindows):
10338         We support new dialog console method.
10339
10340         * dialog-msw.c (syms_of_dialog_mswindows):
10341         * dialog-msw.c (vars_of_dialog_mswindows):
10342         New file dialog symbols, vars.
10343
10344         * dialog-x.c:
10345         * dialog-x.c (maybe_run_dbox_text_callback):
10346         * dialog-x.c (dbox_descriptor_to_widget_value):
10347         * dialog-x.c (x_make_dialog_box_internal):
10348         * dialog-x.c (console_type_create_dialog_x):
10349         Mule-ize entire file.
10350         Redo to support question dialog syntax.
10351         [6].
10352
10353         * dialog.c:
10354         * dialog.c (Fmake_dialog_box_internal):
10355         * dialog.c (syms_of_dialog):
10356         Kill old popup-dialog-box, replace with new primitive.
10357         Just call device method or signal error.
10358
10359         * eldap.c (Fldap_open):
10360         * eldap.c (Fldap_search_basic):
10361         * eldap.c (Fldap_add):
10362         * eldap.c (Fldap_modify):
10363         [1].
10364         [7].
10365
10366         * emacs.c:
10367         * emacs.c (make_arg_list_1):
10368         * emacs.c (make_arg_list):
10369         Mule-ize call to dll_init().
10370         [6].
10371         [8].
10372
10373         * emacs.c (make_argc_argv):
10374         * emacs.c (free_argc_argv):
10375         * emacs.c (init_cmdargs):
10376         * emacs.c (main_1):
10377         * emacs.c (Fkill_emacs):
10378         * emacs.c (Fdump_emacs):
10379         Update comments about what can be used in syms_* etc.
10380         Call init_win32() when necessary.
10381         Fix up MS Win dialog box in kill-buffer to actually work right.
10382         [7].
10383
10384         * eval.c:
10385         * eval.c (For):
10386         * eval.c (Fand):
10387         * eval.c (Fprogn):
10388         * eval.c (Fprog1):
10389         * eval.c (Fprog2):
10390         * eval.c (FletX):
10391         * eval.c (Flet):
10392         * eval.c (condition_case_3):
10393         * eval.c (Feval):
10394         * eval.c (function_argcount):
10395         * eval.c (funcall_lambda):
10396         [1].
10397
10398         * eval.c (type_error): New.
10399         * eval.c (maybe_type_error): New.
10400         * eval.c (continuable_type_error): New.
10401         * eval.c (maybe_continuable_type_error): New.
10402         * eval.c (type_error_with_frob): New.
10403         * eval.c (maybe_type_error_with_frob): New.
10404         * eval.c (continuable_type_error_with_frob): New.
10405         * eval.c (maybe_continuable_type_error_with_frob): New.
10406         New functions for use with structured errors.
10407
10408         * event-Xt.c:
10409         * event-Xt.c (x_event_to_emacs_event):
10410         Buttons are now modifiers too.
10411
10412         * event-Xt.c (emacs_Xt_current_event_timestamp):
10413         Implement new event method.
10414         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10415
10416         * event-msw.c:
10417         * event-msw.c (ntpipe_shove_writer): [5].
10418         * event-msw.c (mswindows_enqueue_mouse_button_event):
10419         * event-msw.c (mswindows_drain_windows_queue):
10420         * event-msw.c (mswindows_wnd_proc): [7].
10421         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10422         * event-msw.c (mswindows_modifier_state):
10423         Throughout: support new button modifiers.
10424
10425         * event-msw.c (emacs_mswindows_current_event_timestamp):
10426         Implement new event method.
10427         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10428
10429         * event-stream.c:
10430         * event-stream.c (event_stream_current_event_timestamp): New.
10431         * event-stream.c (maybe_kbd_translate): New functionality.
10432         * event-stream.c (vars_of_event_stream):
10433         Document new kbd-translate-table functionality.
10434
10435         * event-stream.c (Fcurrent_event_timestamp): New.
10436         New primitive for use in fabricated events.
10437         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10438
10439         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10440
10441         * events.c:
10442         * events.c (Fmake_event):
10443         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10444         [1].
10445         [9].
10446
10447         * events.c (format_event_object): fix gcc warnings.
10448
10449         * events.c (Fevent_timestamp): Document new primitives.
10450
10451         * events.c (TIMESTAMP_HALFSPACE): New.
10452
10453         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10454         comparing timestamps correctly (half-space algorithm).
10455
10456         * events.c (Fevent_modifier_bits): Doc fix.
10457
10458         * events.c (Fevent_modifiers): Major doc addition.
10459         * events.c (event_x_y_pixel_internal): Typo fix.
10460         * events.c (syms_of_events): Declare new primitives.
10461
10462         * events.h:
10463         Update long comment for button modifiers, timestamps.
10464
10465         * events.h (struct event_stream):
10466         New current_event_timestamp method.
10467
10468         * extents.c:
10469         * extents.c (extent_in_region_p):
10470         * extents.c (decode_extent):
10471         * extents.c (Fset_extent_parent):
10472         * extents.c (decode_map_extents_flags):
10473         Fix gcc warnings.
10474         [9].
10475
10476         * extents.c (struct extent_at_arg):
10477         * extents.c (decode_extent_at_flag):
10478         * extents.c (extent_at_mapper):
10479         * extents.c (extent_at_bytind):
10480         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10481         * extents.c (Fextents_at): New primitive. [9].
10482         * extents.c (symbol_to_glyph_layout): [9].
10483         Support new primitive `extents-at'.
10484
10485
10486         * extents.c (get_text_property_bytind):
10487         extent_at_bytind has another arg.
10488         [9].
10489
10490         * extents.c (syms_of_extents): New primitive.
10491
10492         * file-coding.c (Fmake_coding_system): [1].
10493         * file-coding.c (subsidiary_coding_system): fix gcc warning
10494         * file-coding.c (syms_of_file_coding): [2].
10495
10496         * fileio.c (Fexpand_file_name):
10497         * fileio.c (Fsysnetunam):
10498         * fileio.c (Ffile_exists_p):
10499         * fileio.c (Ffile_executable_p):
10500         * fileio.c (Fverify_visited_file_modtime):
10501         Clean up GCPROing.
10502
10503         * fileio.c (syms_of_fileio): [2].
10504
10505         * filelock.c (lock_file_1):
10506         * filelock.c (current_lock_owner):
10507         * filelock.c (lock_if_free):
10508         * filelock.c (lock_file):
10509         * filelock.c (unlock_file):
10510         Clean up GCPROing.
10511
10512         * fns.c (concat): Fix gcc warning.
10513
10514         * fns.c (Fmember):
10515         * fns.c (Fold_member):
10516         * fns.c (Fmemq):
10517         * fns.c (Fold_memq):
10518         * fns.c (memq_no_quit):
10519         * fns.c (Fassoc):
10520         * fns.c (Fold_assoc):
10521         * fns.c (Fassq):
10522         * fns.c (Fold_assq):
10523         * fns.c (assq_no_quit):
10524         * fns.c (Frassoc):
10525         * fns.c (Fold_rassoc):
10526         * fns.c (Frassq):
10527         * fns.c (Fold_rassq):
10528         * fns.c (rassq_no_quit):
10529         * fns.c (Fdelete):
10530         * fns.c (Fold_delete):
10531         * fns.c (Fdelq):
10532         * fns.c (Fold_delq):
10533         * fns.c (delq_no_quit):
10534         * fns.c (Fremassoc):
10535         * fns.c (Fremassq):
10536         * fns.c (remassq_no_quit):
10537         * fns.c (Fremrassoc):
10538         * fns.c (Fremrassq):
10539         * fns.c (remrassq_no_quit):
10540         * fns.c (Freverse):
10541         * fns.c (mapcar1):
10542         [1].
10543
10544         * frame-msw.c (mswindows_init_frame_1):
10545         * frame-msw.c (mswindows_delete_frame):
10546         Register popups with dialog code so keyboard traversing works.
10547
10548         * frame-tty.c (tty_raise_frame_no_select): [1].
10549
10550         * frame-x.c:
10551         * frame-x.c (x_set_frame_text_value):
10552         * frame-x.c (x_set_frame_properties):
10553         * frame-x.c (x_create_widgets):
10554         [7].
10555
10556         * frame.c:
10557         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10558
10559         * frame.h (wrap_frame): New.
10560         Macro like wrap_device.
10561
10562         * general.c:
10563         * general.c (SYMBOL):
10564         * general.c (syms_of_general):
10565         Major reorg.  This is now just a wrapper and symbols themselves
10566         are listed in general-slots.h.
10567
10568         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10569         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10570
10571         * glyphs-msw.c (mswindows_native_layout_instantiate):
10572         Add DS_CONTROL so keyboard traversal will work.
10573
10574         * glyphs-widget.c:
10575         * glyphs-widget.c (syms_of_glyphs_widget):
10576         Move some symbols to general-slots.h.
10577
10578         * glyphs-x.c:
10579         * glyphs-x.c (xbm_instantiate_1):
10580         * glyphs-x.c (x_xbm_instantiate):
10581         * glyphs-x.c (x_xface_instantiate):
10582         * glyphs-x.c (autodetect_instantiate):
10583         * glyphs-x.c (cursor_font_instantiate):
10584         * glyphs-x.c (x_update_widget):
10585         * glyphs-x.c (x_widget_instantiate):
10586         * glyphs.c (bitmap_to_lisp_data):
10587         * glyphs.c (pixmap_to_lisp_data):
10588         [7].
10589
10590         * glyphs.c (syms_of_glyphs):
10591         [2].
10592
10593         * gui-x.c:
10594         * gui-x.c (print_widget_value):
10595         * gui-x.c (menu_separator_style_and_to_external):
10596         * gui-x.c (add_accel_and_to_external):
10597         * gui-x.c (button_item_to_widget_value):
10598         * gui-x.c (gui_items_to_widget_values_1):
10599         * gui-x.c (gui_items_to_widget_values):
10600         * gui-x.c (syms_of_gui_x):
10601         * gui-x.c (vars_of_gui_x):
10602         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10603         [9].
10604
10605         * gui-x.h:
10606         Muleize, prototype changes matching gui-x.c.
10607
10608         * gui.c:
10609         * gui.c (separator_string_p):
10610         * gui.c (gui_item_add_keyval_pair):
10611         * gui.c (make_gui_item_from_keywords_internal):
10612         * gui.c (signal_too_long_error):
10613         * gui.c (parse_gui_item_tree_item):
10614         * gui.c (syms_of_gui):
10615         * gui.c (vars_of_gui):
10616         * gui.h:
10617         menu-no-selection-hook moved here (used by MSWin).
10618         Move some symbols to general-slots.h.
10619         [6].
10620         [9].
10621
10622         * insdel.c (get_buffer_pos_char):
10623         * insdel.c (get_buffer_range_char):
10624         Add GC comments.
10625
10626         * keymap.c (keymap_lookup_directly):
10627         * keymap.c (keymap_store):
10628         * keymap.c (ensure_meta_prefix_char_keymapp):
10629         * keymap.c (describe_map):
10630         * keymap.h:
10631         Support new button modifiers.
10632
10633         * lisp-disunion.h (wrap_object):
10634         * lisp-disunion.h (XSETOBJ):
10635         Rename make_obj to wrap_object.
10636
10637         * lisp-union.h:
10638         * lisp-union.h (make_int):
10639         * lisp-union.h (make_char):
10640         Support wrap_object.
10641
10642         * lisp.h:
10643         * lisp.h (LIST_LOOP):
10644         * lisp.h (EXTERNAL_LIST_LOOP):
10645         * lisp.h (LIST_LOOP_2):
10646         * lisp.h (EXTERNAL_LIST_LOOP_1):
10647         * lisp.h (EXTERNAL_LIST_LOOP_2):
10648         * lisp.h (EXTERNAL_LIST_LOOP_3):
10649         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10650         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10651         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10652         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10653         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10654         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10655         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10656         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10657         * lisp.h (struct Lisp_Symbol):
10658         * lisp.h (maybe_continuable_error_with_frob):
10659         Fix up section comments.
10660         Add new types for char to indicate usage.
10661         Delete symbols auto-generated from general-slots.h.
10662         Add prototypes for structured error functions.
10663         Add long comments describing looping macros and change interface
10664         so that lvalues are automatically declared.
10665         Add NO_DECLARE macro in case callers want to declare lvalues
10666         themselves.
10667
10668         * lread.c (read_syntax_error):
10669         * lread.c (continuable_read_syntax_error):
10670         * lread.c (read_structure):
10671         * lread.c (sequence_reader):
10672         * lread.c (read_list_conser):
10673         * lread.c (read_compiled_function):
10674         Rename syntax_error and continuable_syntax_error to avoid clash
10675         with same-named structured error functions.
10676
10677         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10678         * menubar-msw.c (populate_menu_add_item):
10679         * menubar-msw.c (populate_or_checksum_helper):
10680         [5].
10681         [9].
10682
10683         * menubar-x.c:
10684         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10685         Mule-ize whole file.
10686
10687         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10688
10689         * mule-charset.c (Fmake_charset):
10690         * mule-wnnfns.c (Fwnn_set_param):
10691         [1].
10692
10693         * ntproc.c (create_child):
10694         * ntproc.c (Fwin32_set_current_locale):
10695         Add comments portending doom.
10696
10697         * objects-msw.c:
10698         * objects-msw.c (old_font_enum_callback_2):
10699         * objects-msw.c (font_enum_callback_1):
10700         * objects-msw.c (mswindows_enumerate_fonts):
10701         [5].
10702
10703         * objects-x.c:
10704         * objects-x.c (allocate_nearest_color):
10705         * objects-x.c (x_parse_nearest_color):
10706         * objects-x.c (x_initialize_color_instance):
10707         * objects-x.c (x_print_color_instance):
10708         * objects-x.c (x_finalize_color_instance):
10709         * objects-x.c (x_valid_color_name_p):
10710         * objects-x.c (x_initialize_font_instance):
10711         * objects-x.c (x_print_font_instance):
10712         * objects-x.c (valid_x_font_name_p):
10713         * objects-x.c (truename_via_FONT_prop):
10714         * objects-x.c (truename_via_random_props):
10715         * objects-x.c (truename_via_XListFonts):
10716         * objects-x.c (x_font_truename):
10717         * objects-x.c (x_font_instance_truename):
10718         * objects-x.c (x_font_instance_properties):
10719         * objects-x.c (x_list_fonts):
10720         * objects-x.c (x_find_charset_font):
10721         Mule-ize entire file.
10722         [7].
10723
10724         * objects-x.h:
10725         Mule-verify.
10726
10727         * print.c:
10728         * print.c (std_handle_out_external):
10729         * print.c (debug_print_no_newline):
10730         * print.c (syms_of_print):
10731         Output to all debugger kinds in debug-print.
10732         Fix console-output code under MSWin to actually work.
10733
10734         * process-nt.c (send_signal):
10735         * process-nt.c (nt_create_process):
10736         Use newer Unicode macros.
10737
10738         * process-unix.c (unix_create_process):
10739         * process-unix.c (unix_canonicalize_host_name):
10740         * process-unix.c (unix_open_network_stream):
10741         [7].
10742
10743         * scrollbar-x.c:
10744         Mule-verify.
10745
10746         * search.c (syms_of_search):
10747         [2].
10748
10749         * select-msw.c (mswindows_destroy_selection):
10750         Use LIST_LOOP_2.
10751
10752         * select-x.c (symbol_to_x_atom):
10753         [7].
10754
10755         * select.c (syms_of_select):
10756         [2].
10757
10758         * sound.c (Fplay_sound_file):
10759         [7].
10760
10761         * specifier.c:
10762         * specifier.c (decode_specifier_type):
10763         * specifier.c (Fvalid_specifier_locale_type_p):
10764         * specifier.c (check_valid_locale_or_locale_type):
10765         * specifier.c (decode_locale):
10766         * specifier.c (decode_locale_type):
10767         * specifier.c (decode_locale_list):
10768         * specifier.c (check_valid_domain):
10769         * specifier.c (decode_specifier_tag_set):
10770         * specifier.c (Fcanonicalize_tag_set):
10771         * specifier.c (Fdefine_specifier_tag):
10772         * specifier.c (Fspecifier_tag_predicate):
10773         * specifier.c (check_valid_inst_list):
10774         * specifier.c (check_valid_spec_list):
10775         * specifier.c (decode_how_to_add_specification):
10776         * specifier.c (check_modifiable_specifier):
10777         * specifier.c (specifier_add_spec):
10778         * specifier.c (boolean_validate):
10779         * specifier.c (display_table_validate):
10780         [9].
10781
10782         * specifier.c (syms_of_specifier):
10783         Move some symbols to general-slots.h.
10784         [2].
10785
10786         * symbols.c:
10787         * symbols.c (Fmapatoms):
10788         * symbols.c (Fapropos_internal):
10789         Add GCPROs.
10790
10791         * symbols.c (set_default_buffer_slot_variable):
10792         * symbols.c (set_default_console_slot_variable):
10793         [1].
10794
10795         * symbols.c (defsymbol_massage_name_1):
10796         * symbols.c (defkeyword_massage_name):
10797         * symbols.c (deferror_1):
10798         * symbols.c (deferror):
10799         * symbols.c (deferror_massage_name_and_message):
10800         * symeval.h:
10801         * symeval.h (DEFSYMBOL):
10802         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10803
10804         * symbols.c (syms_of_symbols):
10805         [2].
10806
10807         * symsinit.h:
10808         * symsinit.h (init_win32): New.
10809         Also new is syms_of_dialog_mswindows.
10810
10811         * syswindows.h:
10812         Add new Unicode macros, missing Cygwin wide-char functions,
10813         convenience conversion macros for Qmswindows_tstr, macros for
10814         encapsulating required MSWin <-> Cygwin filename conversions,
10815         prototype for dynamically-extracted (not in NT 3.51) functions.
10816
10817         * toolbar-x.c:
10818         Mule-verify.
10819
10820         * tooltalk.c (Fadd_tooltalk_message_arg):
10821         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10822         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10823         [7].
10824
10825         * tooltalk.c (syms_of_tooltalk):
10826         [2].
10827
10828         * unexnt.c:
10829         * unexnt.c (unexec):
10830         Fix up headers, declaration of unexec() to be more standard.
10831
10832 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10833
10834         * offix.h: Revert change to guard macros - they're used in offix.c!
10835
10836 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10837
10838         * lisp.h: Defsubred Fdelete.
10839
10840         * console-msw.h:  (msprinter_default_printer): Added.
10841
10842         * console-msw.c (msprinter_canonicalize_console_connection):
10843         (msprinter_canonicalize_device_connection): Added.
10844
10845         * device-msw.c (msprinter_default_printer):
10846         (Fmswingows_get_default_printer):
10847         (signal_enum_priner_error):
10848         (Fmswingows_printer_list): Added.
10849
10850 2000-07-19  Martin Buchholz <martin@xemacs.org>
10851
10852         * XEmacs 21.2.35 is released.
10853
10854 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10855
10856         * select-x.c (x_handle_selection_request):
10857         Text selected in xemacs and pasted into xterm failed to appear.
10858         Spelling fixes and cosmetic changes.
10859
10860 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10861
10862         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10863         XEmacs frame (fix for doubling chars in dialog boxes).
10864
10865 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10866
10867         * select.c (select_convert_in, select_convert_out):
10868         Don't call intern() every time.
10869
10870         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10871         * select.c (vars_of_select): Initialise them.
10872
10873 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10874
10875         * select.c (selection-coercible-types): New.
10876
10877         * select.c (own-selection-internal):
10878         * select.c (get-selection-internal):
10879         MULE bug fix - these should default to COMPOUND_TEXT and not
10880         STRING for MULE. I think.
10881
10882         * select.c (select_convert_out): Use selection-coercible-types
10883         to find types that we can attempt to perform coercions on.
10884
10885 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10886
10887         * mule-wnnfns.c:
10888         * mule-canna.c:
10889         Add coding: cookie to identify encoding.
10890
10891         * mule-canna.c (CANNA_mode_keys): make static.
10892         Use proper prototypes, even for functions of no arguments.
10893         Remove external prototype for Fding().
10894
10895         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10896
10897         * select.c (syms_of_select): Add missing DEFSUBR.
10898
10899 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10900
10901         * select.c (get_selection_internal, own_selection_internal):
10902         Make the type default to STRING, rather than placing a nil type
10903         into Vselection_alist.
10904
10905 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10906
10907         * gpmevent.c (tty_selection_exists_p):
10908         * gpmevent.c (tty_own_selection):
10909         Updated parameter lists.
10910
10911 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10912
10913         * select.h (selection-alist): Removed declaration.
10914
10915         * select.h (get_local_selection):
10916         * select.c (get_local_selection):
10917         Made static.
10918
10919         * select.h (convert_selection): Removed declaration.
10920         * select.c (convert_selection): Removed.
10921         This function belongs in Lisp.
10922
10923         * select.h (select_convert_in): Declare.
10924         * select.h (select_convert_out): Declare.
10925         * select.c (select_convert_in): New.
10926         * select.c (select_convert_out): New.
10927         New conversion functions for other files to call.
10928
10929         * select.h (select_notify_buffer_kill): Declare.
10930         * select.c (select_notify_buffer_kill): New.
10931         New functions that get called from kill-buffer.
10932
10933         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10934         X-specific lisp code.
10935
10936         * select.h: Declare some of the lisp-visible functions for
10937         external use.
10938
10939         * select.c (clean_local_selection_data): Removed. This was
10940         a disgusting function, and previously should have been in
10941         select-x.c in any case. The functionality is now provided
10942         in select-convert-from-integer (select.el).
10943
10944         * select.c (available-selection-types): Fixed stupidity where
10945         INTEGER and ATOM got added twice. Also add STRING when we see an
10946         extent.
10947
10948         * select.c (get-selection-internal): Removed symbol stripping. No
10949         longer causes conversion when data comes from the internal cache.
10950
10951         * select.c (syms_of_select): Added new functions.
10952
10953         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10954         error checking - previously this called abort!
10955
10956         * select-x.c (x_own_selection): Changed comment.
10957
10958         * select-x.c (x_handle_selection_request): Use select_convert_out.
10959         Don't mess with selection-alist; it's an internal variable of select.c.
10960
10961         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10962
10963         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10964         rather than messing with selection-alist.
10965
10966         * select-msw.c (mswindows_get_foreign_selection):
10967         Use TO_INTERNAL_FORMAT rather than hacking.
10968
10969 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10970
10971         * process-unix.c (unix_open_multicast_group):
10972         (unix_open_multicast_group): Remove useless casts.
10973
10974 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10975
10976         * sound.c (Fplay_sound): Fix `unused variable' warning.
10977
10978         * emacs.c (main): Use correct type for _environ on SCO5.
10979
10980 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10981
10982         * console.h (own_selection_method):
10983         * console.h (selection_exists_p_method):
10984         * console.h (available_selection_types_method): New.
10985         * console.h (register_selection_data_type_method): New.
10986         * console.h (selection_data_type_name): New.
10987
10988         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10989         function & alist to track GlobalAlloc()'d handles that need
10990         releasing when the clipboard data gets replaced or emptied.
10991
10992         * event-msw.c (mswindows_wnd_proc): Call it.
10993
10994         * lisp.h, general.c (Qappend): New symbol representing a
10995         `how-to-add' mode.
10996
10997         * select.c (own-selection-internal):
10998         * select.c (selection-exists-p):
10999         * select.c (available-selection-types): New.
11000         * select.c (register-selection-data-type): New.
11001         * select.c (selection-data-type-name): New.  New functions to deal
11002         with device-specific selection data formats.
11003         * select.c (selection-converter-out-alist): Renamed.
11004         * select.c (selection-converter-in-alist): New.
11005         * select.c (selection-appender-alist): New.  Added new alists.
11006         * select.c (syms_of_select, vars_of_select): Added new symbols &
11007         variables.
11008         * select.c (get_local_selection): Split.
11009         * select.c: Removed spurious type checking - selections may now be
11010         of any type, not just strings.
11011         * select.c (own-selection-internal):
11012
11013         * select.h, select.c (convert_selection): New. Created
11014         convert_selection() function based on get_local_selection().
11015         * select.h, select.c (QCF_*): New symbols representing mswindows
11016         clipboard formats.
11017         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11018         symbols representing `how-to-add' modes.
11019
11020         * select-msw.c (x_sym_p): New.
11021         * select-msw.c (symbol_to_ms_cf): New.
11022         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11023         symbols & clipboard formats. Can also handle string names.
11024         * select-msw.c (mswindows_own_selection):
11025         * select-msw.c (mswindows_selection_exists_p):
11026         Added `data-type' parameter. Use it.
11027         * select-msw.c (mswindows_available_selection_types): New.
11028         * select-msw.c (mswindows_register_selection_data_type): New.
11029         * select-msw.c (mswindows_selection_data_type_name): New.
11030         * select-msw.c (mswindows_own_selection):
11031         * select-msw.c (mswindows_get_foreign_selection):
11032         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11033         * select-msw.c (console_create_select_mswindows): Added new methods.
11034         * select-msw.c (mswindows_destroy_selection): New.
11035         * select-msw.c (Vhandle_alist): New list.
11036         * select-msw.c (mswindows_own_selection):
11037
11038         * select-x.c (x_own_selection):
11039         * select-x.c (x_selection_exists_p):
11040         * select-x.c: Added some comments about maybe using new
11041         functionality.
11042         * select-x.c (x_own_selection):
11043
11044         * specifier.c: Remove definition of Qappend (now in general.c)
11045         * specifier.c (syms_of_specifier): Remove Qappend.
11046
11047 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11048
11049         * config.h.in: Add socklen_t.
11050
11051         * s/decosf4-0.h: No special compiler flags needed or desired.
11052         In particular, undefine _BSD for DEC OSF 4.0.
11053
11054 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11055
11056         * redisplay-msw.c (msprinter_frame_output_end): Added.
11057         (console_type_create_redisplay_mswindows): Referred the above.
11058
11059         * frame.c (setup_frame_without_minibuffer): Do not create a
11060         default minibuffer frame on a printer device.
11061
11062         * frame-msw.c (apply_dc_geometry): Added.
11063         (msprinter_start_page):
11064         (msprinter_init_frame_3):
11065         (msprinter_eject_page): Use it.
11066
11067         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11068         and removed residual duplex and orientation properties.
11069
11070 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11071
11072         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11073
11074         * unexalpha.c: Remove system prototypes from C sources!
11075
11076 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11077
11078         * eval.c: Remove references to M-x edit-options in DEFUNs for
11079         `defvar' and `defconst'.
11080
11081 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11082
11083         * config.h.in: Remove SMART_INCLUDE hackery.
11084
11085         PostgreSQL hacking:
11086         * config.h.in: Don't use SMART_INCLUDE.
11087
11088         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11089         * inline.c: Simply #include "postgresql.h"
11090         * postgresql.c:
11091         - Don't use SMART_INCLUDE
11092         - Use simply "const".
11093         - Use standard doc string conventions.
11094         - Use correct type for result of PQstatus.
11095
11096 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11097
11098         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11099
11100         C++ compilation changes.
11101         * config.h.in (EXTERN_C): Define.
11102         * config.h.in (not): This is also a C++ keyword.
11103         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11104         * cm.c: Use EXTERN_C.
11105         * redisplay-tty.c: Use EXTERN_C.
11106         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11107
11108 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11109
11110         * general.c: Remove duplicate definition for Qfunction.
11111
11112 2000-07-08  Ben Wing  <ben@xemacs.org>
11113
11114         * device-msw.c (msprinter_init_device):
11115         * device-msw.c (sync_printer_with_devmode):
11116         * device-msw.c (handle_devmode_changes):
11117         * device-msw.c (print_dialog_worker):
11118         * device-msw.c (Fmsprinter_apply_settings):
11119         * device-msw.c (hash_devmode):
11120         * device-msw.c (Fmsprinter_settings_despecialize):
11121         use Qmswindows_tstr, not Qctext.
11122
11123         * vm-limit.c (check_memory_limits):
11124         avoid infinite loop printing warning messages.
11125
11126 2000-07-05  Craig Lanning  <lanning@scra.org>
11127
11128         * Makefile.in.in: Add support for including the Windows resources
11129         when building with the cygwin and mingw targets.
11130
11131         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11132         not set or not correct.
11133         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11134         (init_initial_directory): Don't try to use $PWD on the
11135         WIN32_NATIVE target.
11136
11137         * s\cygwin32.h:
11138         [[Add -mwindows to eliminate console window.]] not required --ben
11139         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11140         (MAIL_USE_POP): removed; now handled by configure.
11141
11142         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11143         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11144         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11145         (MAIL_USE_POP): removed; now handled by configure.
11146         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11147         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11148         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11149         constant string.
11150         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11151         up from <winsock.h> via systime.h.
11152         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11153         (getpagesize): from Dan Holmsand, added.
11154         Added #endif which was left dangling by Ben's mega patch; added
11155         comment to help prevent this in the future.
11156
11157         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11158
11159 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11160
11161         * console-msw.h (struct mswindows_device): Removed unnecessary
11162         cached device geometry values.
11163         Added update_tick and an accessor macro.
11164         (Lisp_Devmode): Added lrecord declaration.
11165         (struct msprinter_device): Contain devmode as a Lisp object.
11166         Added mswindows_get_selected_frame_hwnd();
11167
11168         * console.h (struct console_methods): Indentation nitpicking.
11169
11170         * device-msw.c (mswindows_init_device): Do not initialize geometry
11171         cache. Initialize update tick.
11172         (mswindows_device_system_metrics): Ask the device for its geometry.
11173         (global_free_2_maybe):
11174         (devmode_to_hglobal):
11175         (handle_printer_changes):
11176         (ensure_not_printing):
11177         (print_dialog_worker):
11178         (Fmsprinter_print_setup_dialog):
11179         (Fmsprinter_print_dialog):
11180         (plist_get_margin):
11181         (plist_set_margin):
11182         (Fmsprinter_page_setup_dialog): Added functions.
11183         (sync_printer_with_devmode):
11184         (handle_devmode_changes):
11185         (Fmsprinter_get_settings):
11186         (Fmsprinter_select_settings):
11187         (Fmsprinter_apply_settings):
11188         (allocate_devmode):
11189         (Fmsprinter_settings_copy):
11190         (Fmsprinter_settings_despecialize):
11191         (print_devmode):
11192         (finalize_devmode):
11193         (equal_devmode):
11194         (hash_devmode): Added functions
11195         (syms_of_device_mswindows): Init devmode lrecord class.
11196
11197         * device.h: Added an exfun for find-device.
11198
11199         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11200         geometry; although, recreate the device compatible DC.
11201
11202         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11203         (msprinter_init_frame_3):
11204         (msprinter_frame_property):
11205         (msprinter_internal_frame_property_p):
11206         (msprinter_frame_properties):
11207         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11208         print job properties (will move to device settings).
11209
11210         * lisp.h: Added symbols.
11211
11212         * general.c (syms_of_general): Declared them.
11213
11214         * hash.c (string_hash): Added.
11215
11216         * lrecord.h (lrecord_type): Added devmode lrecord type.
11217
11218 2000-07-02  Mike Sperber <mike@xemacs.org>
11219
11220         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11221         FreeBSD 4.0.
11222
11223 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11224
11225         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11226         integer.
11227
11228 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11229
11230         * data.c (Fstring_to_number): Don't recognize floating point if
11231         base is not 10.
11232
11233 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11234
11235         * glyphs-widget.c (tab_control_query_geometry):
11236         (widget_query_geometry):
11237         (button_query_geometry):
11238         * glyphs.c (text_query_geometry):
11239         Enforce type correctness.
11240
11241 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11242
11243         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11244         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11245
11246 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11247
11248         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11249         conflicts with gcc's fixincluded version of FOO.h.
11250
11251         * glyphs.h (image_instance_geometry): Remove trailing `,'
11252
11253 2000-06-08  Mike Alexander  <mta@arbortext.com>
11254
11255         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11256         (shove_thread): Don't write the same output twice
11257         (make_ntpipe_output_stream): Increase priority of shove thread
11258         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11259         chance to run
11260         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11261         it.
11262
11263 2000-06-12  Ben Wing  <ben@xemacs.org>
11264
11265         * s\mingw32.h (sigset):
11266         * s\windowsnt.h (sigset):
11267         rename msw_ to mswindows_ for consistency with general convention.
11268
11269 2000-06-12  Ben Wing  <ben@xemacs.org>
11270
11271         * console-msw.c:
11272         * console-msw.c (mswindows_get_console_hwnd):
11273         * console-msw.c (mswindows_ensure_console_allocated):
11274         * console-msw.c (mswindows_hide_console):
11275         * console-msw.c (mswindows_show_console):
11276         * console-msw.c (mswindows_ensure_console_buffered):
11277         * console-msw.c (mswindows_output_console_string):
11278         * console-msw.c (mswindows_windows9x_p):
11279         * console-msw.h:
11280         * device-msw.c (mswindows_get_workspace_coords):
11281         * device-msw.c (mswindows_device_system_metrics):
11282         * dialog-msw.c (mswindows_popup_dialog_box):
11283         * event-msw.c (mswindows_wnd_proc):
11284         * frame-msw.c (mswindows_size_frame_internal):
11285         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11286         * menubar-msw.c (displayable_menu_item):
11287         * menubar-msw.c (mswindows_char_is_accelerator):
11288         * nt.c:
11289         * nt.c (mswindows_sigset):
11290         * nt.c (mswindows_sigrelse):
11291         * nt.c (mswindows_sigpause):
11292         * nt.c (mswindows_raise):
11293         * nt.c (timer_proc):
11294         * ntproc.c:
11295         * ntproc.c (find_child_console):
11296         * ntproc.c (sys_kill):
11297         * print.c:
11298         * print.c (std_handle_out_external):
11299         * process-nt.c (find_child_console):
11300         * process-nt.c (send_signal_the_95_way):
11301         * process-nt.c (ensure_console_window_exists):
11302         * process-nt.c (nt_create_process):
11303         * syssignal.h:
11304         rename msw_ to mswindows_ for consistency with general convention.
11305
11306         * emacs.c:
11307         * dumper.c:
11308         include nt.h, not syswindows.h.
11309
11310         * nt.c (mswindows_fstat):
11311         * nt.c (mswindows_stat):
11312         prefix mswindows_ instead of attempting to directly override the
11313         library functions.  fix declarations.
11314
11315         * nt.h:
11316         include syswindows.h.  move some sysdep.h stuff here.
11317
11318         * ntheap.h:
11319         include syswindows.h, not <windows.h>.
11320
11321         * ntplay.c:
11322         clean up headers.
11323
11324         * sysdep.c:
11325         clean up headers.
11326
11327         * sysdep.c (sys_fstat):
11328         * sysdep.c (sys_stat):
11329         call mswindows versions when appropriate.
11330
11331         * sysdep.h:
11332         move mswin decls to nt.h.
11333
11334         * syswindows.h:
11335         add long comment describing appropriate use of the various windows
11336         headers.
11337
11338 2000-06-11  Ben Wing  <ben@xemacs.org>
11339
11340         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11341
11342 2000-06-10  Ben Wing  <ben@xemacs.org>
11343
11344         * Makefile.in.in (release):
11345         Correction to make sure xemacs.exe always dumped when correct.
11346
11347         * alloca.c:
11348         * balloon_help.c:
11349         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11350
11351         * buffer.c (set_buffer_internal):
11352         [[[[2]]]]: Remove HAVE_FEP code.
11353
11354         * buffer.c (init_initial_directory):
11355         [3].
11356
11357         * bytecode.c:
11358         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11359         individual files.
11360
11361         * callproc.c:
11362         * callproc.c (call_process_cleanup):
11363         * callproc.c (Fold_call_process_internal):
11364         * callproc.c (child_setup):
11365         * callproc.c (getenv_internal):
11366         * callproc.c (init_callproc):
11367         * callproc.c (vars_of_callproc):
11368         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11369         __CYGWIN32__ -> CYGWIN.
11370         DOS_NT -> WIN32_NATIVE.
11371         Remove MSDOS support/references, converting to WIN32_NATIVE
11372           where correct.
11373         __MINGW32__ -> MINGW.
11374         Fix windows.h includes.
11375         Remove bogus HAVE_NTGUI.
11376
11377         * config.h.in:
11378         [2].
11379
11380         * console-msw.c:
11381         mswindows_message_outputted added for use in allowing startup
11382         errors on the console to be seen.
11383
11384         * console-msw.c (msw_ensure_console_allocated):
11385         * console-msw.c (msw_output_console_string):
11386         * console-msw.c (DHEADER):
11387         * console-msw.c (DOPAQUE_DATA):
11388         * console-msw.c (DEVENT):
11389         * console-msw.c (DCONS):
11390         * console-msw.c (DCONSCDR):
11391         * console-msw.c (DSTRING):
11392         * console-msw.c (DVECTOR):
11393         * console-msw.c (DSYMBOL):
11394         * console-msw.c (DSYMNAME):
11395         Fix warnings.
11396
11397         * console-stream.c (stream_init_console):
11398         Fix text/binary problems.
11399
11400         * device-msw.c:
11401         * device-msw.c (mswindows_finish_init_device):
11402         * device-msw.c (mswindows_delete_device):
11403         [1].
11404
11405         * device.c (handle_asynch_device_change):
11406         [3].
11407
11408         * dgif_lib.c:
11409         * dgif_lib.c (DGifOpenFileName):
11410         * dgif_lib.c (DGifOpenFileHandle):
11411         * dgif_lib.c (DGifGetLine):
11412         * dgif_lib.c (DGifGetPixel):
11413         Added config.h/lisp.h, fix up includes.
11414         [1].
11415
11416         * dired-msw.c:
11417         [4].
11418
11419         * dired.c:
11420         * dired.c (file_name_completion):
11421         * dired.c (Ffile_attributes):
11422         * dired.c (syms_of_dired):
11423         [1].
11424
11425         * dumper.c:
11426         * dumper.c (pdump_file_unmap):
11427         * dumper.c (pdump_load):
11428         [1].
11429
11430         * editfns.c:
11431         * editfns.c (Ftemp_directory):
11432         * editfns.c (user_login_name):
11433         * editfns.c (Fuser_real_login_name):
11434         * editfns.c (get_home_directory):
11435         [1].
11436
11437         * elhash.c (finish_marking_weak_hash_tables):
11438         [[[[5]]]]: Fix GCC warnings.
11439
11440         * emacs.c:
11441         * emacs.c (mswindows_handle_hardware_exceptions):
11442         * emacs.c (make_arg_list_1):
11443         * emacs.c (main_1):
11444         * emacs.c (Fkill_emacs):
11445         * emacs.c (Fdump_emacs):
11446         [1].
11447         Fix problems with nested crashes, add long comment.
11448
11449         * event-Xt.c (init_event_Xt_late):
11450         [1].
11451
11452         * event-msw.c:
11453         * event-msw.c (mswindows_dde_callback):
11454         * event-msw.c (mswindows_handle_sticky_modifiers):
11455         * event-msw.c (mswindows_wnd_proc):
11456         [1].
11457         [5].
11458
11459         * events.c (character_to_event):
11460         [1].
11461
11462         * fileio.c:
11463         * fileio.c (Ffile_name_directory):
11464         * fileio.c (Ffile_name_nondirectory):
11465         * fileio.c (directory_file_name):
11466         * fileio.c (Fexpand_file_name):
11467         * fileio.c (Fsubstitute_in_file_name):
11468         * fileio.c (Ffile_name_absolute_p):
11469         * fileio.c (check_executable):
11470         * fileio.c (Ffile_readable_p):
11471         * fileio.c (Ffile_accessible_directory_p):
11472         * fileio.c (Ffile_modes):
11473         * fileio.c (Funix_sync):
11474         * fileio.c (vars_of_fileio):
11475         [1]. [4].
11476
11477         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11478
11479         Expand getdefdir defn.
11480         Fix bogus rename() comment.
11481
11482         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11483         to use standard XEmacs include files, e.g. sysfile.h, rather
11484         than system-specific includes.
11485
11486         * fns.c:
11487         * fns.c (Fsubseq):
11488         [5]. [6].
11489
11490         * frame.c (vars_of_frame):
11491         [1].
11492
11493         * getloadavg.c:
11494         * getloadavg.c (getloadavg):
11495         [1]. [6].
11496         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11497         (We don't use it elsewhere in the code; just add a comment.)
11498
11499         * gif_io.c:
11500         [6].
11501         Add config.h.
11502
11503         * glyphs-msw.c:
11504         * glyphs-msw.c (mswindows_resource_instantiate):
11505         [1].
11506
11507         * glyphs-x.c (x_native_layout_instantiate):
11508         [5].
11509
11510         * gui-msw.c (Fmswindows_shell_execute):
11511         [1].
11512
11513         * insdel.c:
11514         [4].
11515
11516         * lisp.h:
11517         [4]. [5].
11518
11519         * lread.c (locate_file_in_directory_mapper):
11520         [1].
11521
11522         * lstream.c:
11523         [4].
11524
11525         * mem-limits.h:
11526         * mem-limits.h (get_lim_data):
11527         [1].
11528
11529         * menubar-msw.c:
11530         [4].
11531
11532         * ndir.h:
11533         [1].
11534
11535         * nt.c:
11536         * nt.c (getwd):
11537         * nt.c (closedir):
11538         * nt.c (rva_to_section):
11539         * nt.c (mswindows_executable_type):
11540         [1]. [6].
11541         Fix closedir() defn.
11542
11543         * nt.h:
11544         [[[[8]]]]: *_OK defs moved to sysfile.h.
11545
11546         * ntproc.c:
11547         [6]. [7].
11548
11549         * objects-x.c:
11550         [4].
11551
11552         * print.c:
11553         * print.c (std_handle_out_external):
11554         [1]. [4].
11555
11556         * process-nt.c:
11557         * process-nt.c (nt_create_process):
11558         [6].
11559         try to fix process quoting somewhat.
11560
11561         * process-unix.c (unix_create_process):
11562         [1].
11563
11564         * process.c:
11565         * process.c (vars_of_process):
11566         Add Vnull_device.
11567
11568         * process.h:
11569         [1].
11570
11571         * realpath.c:
11572         * realpath.c (xrealpath):
11573         [1].
11574
11575         * redisplay-tty.c (init_tty_for_redisplay):
11576         [3].
11577
11578         * redisplay.c:
11579         [4]. [6].
11580
11581         * scrollbar-msw.c:
11582         [4].
11583
11584         * sheap.c:
11585         * sheap.c (more_static_core):
11586         * sheap.c (report_sheap_usage):
11587         [5]. [6].
11588
11589         * signal.c:
11590         * signal.c (alarm_signal):
11591         [1]. [6].
11592
11593         * sound.c:
11594         [6].
11595
11596         * strftime.c:
11597         * strftime.c (zone_name):
11598         [1]. [5].
11599
11600         * symsinit.h (init_sunpro):
11601         [1].
11602
11603         * syscommctrl.h:
11604         commctrl.h not in Cygwin b20.1.
11605
11606         * sysdep.c:
11607         * sysdep.c (endif):
11608         * sysdep.c (sys_subshell):
11609         * sysdep.c (init_baud_rate):
11610         * sysdep.c (emacs_get_tty):
11611         * sysdep.c (emacs_set_tty):
11612         * sysdep.c (tty_init_sys_modes_on_device):
11613         * sysdep.c (init_system_name):
11614         * sysdep.c (sys_open):
11615         * sysdep.c (interruptible_open):
11616         * sysdep.c (sys_fopen):
11617         * sysdep.c (sys_mkdir):
11618         * sysdep.c (sys_rename):
11619         * sysdep.c (get_process_times_1):
11620         [1]. [6].
11621
11622         * sysdep.h:
11623         [1].
11624
11625         * sysdir.h:
11626         * sysdir.h (DIRENTRY_NONEMPTY):
11627         [1]. [6].
11628
11629         * sysdll.c (dll_init):
11630         * sysdll.h:
11631         [1].
11632
11633         * sysfile.h:
11634         [1]. [6]. [8].
11635         added text/binary defs.
11636
11637         * sysfloat.h:
11638         [1].
11639
11640         * sysproc.h:
11641         * sysproc.h (EDESTADDRREQ):
11642         * sysproc.h (poll_fds_for_input):
11643         [1]. [6].
11644
11645         * syspwd.h:
11646         [6].
11647
11648         * syssignal.h:
11649         [1].
11650
11651         * systime.h:
11652         [1]. [6].
11653
11654         * systty.h:
11655         [1].
11656
11657         * syswindows.h:
11658         [1].
11659         Always define WIN32_LEAN_AND_MEAN.
11660
11661         * unexcw.c (unexec):
11662         [5].
11663
11664         * unexec.c:
11665         * unexec.c (copy_text_and_data):
11666         * unexec.c (adjust_lnnoptrs):
11667         [1].
11668
11669         * unexnt.c:
11670         * unexnt.c (_start):
11671         [1].
11672
11673 2000-06-07  Ben Wing  <ben@xemacs.org>
11674
11675         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11676         was used only as a model.  We've long since extracted any useful
11677         logic or code out of this. (I just did an exhaustive search.)
11678
11679         * s\msdos.h: Removed.
11680
11681         * s\windows95.h: Removed.
11682
11683 2000-06-10  Ben Wing  <ben@xemacs.org>
11684
11685         * s\cygwin32.h:
11686         [1]. [5].
11687         Don't use extern with fun defs.
11688
11689         * s\mingw32.h:
11690         [1]. [7].
11691         Remove nt\inc include.
11692         Remove getdisk, getdefdir. (The former is unused, the latter
11693         expanded in fileio.h.)
11694
11695         * s\windowsnt.h:
11696         * s\windowsnt.h (WIN32_NATIVE):
11697         * s\windowsnt.h (HAVE_STRCASECMP):
11698         [1]. [7].
11699         Add long comment about preprocessor changes.
11700         Remove getdisk, getdefdir. (The former is unused, the latter
11701         expanded in fileio.h.)
11702
11703 2000-06-10  Ben Wing  <ben@xemacs.org>
11704
11705         * m\arm.h:
11706         * m\delta.h:
11707         * m\intel386.h:
11708         * m\sequent.h:
11709         * m\template.h:
11710         * m\windowsnt.h:
11711         [1].
11712         Remove bogus/unused NO_SOCK_SIGIO.
11713
11714 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11715
11716         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11717         not an Emchar.
11718
11719 2000-06-04  Mike Sperber <mike@xemacs.org>
11720
11721         * casetab.c (set_case_table): For `set-standard-case-table',
11722         actually deposit the new case tables where the rest of XEmacs can
11723         see them.
11724
11725 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11726
11727         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11728
11729 2000-06-05  Ben Wing  <ben@xemacs.org>
11730
11731         * callproc.c (child_setup): Don't do close_load_descs() under
11732         MS Windows.  Put in a comment explaining why.
11733
11734 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11735
11736         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11737         Toolkit shell" which breaks `kill-compilation' on Windows NT
11738         native, retaining STDERR handling improvements.
11739
11740 2000-06-01  Andreas Jaeger  <aj@suse.de>
11741
11742         * s/s390.h: Support for S390, based on a patch by Martin
11743         Schwidefsky <schwidefsky@de.ibm.com>.
11744
11745 2000-05-30  Andy Piper  <andy@xemacs.org>
11746
11747         * window.c (allocate_window):
11748         (make_dummy_parent):
11749         (Fset_window_configuration): use new hashtable type.
11750
11751         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11752         (struct image_instantiator_methods):
11753         (struct Lisp_Image_Instance): make instance geometry signed.
11754
11755         * glyphs.c (instantiate_image_instantiator):
11756         (image_instance_query_geometry):
11757         (image_instance_layout):
11758         (image_instance_layout):
11759         (query_string_geometry):
11760         (text_query_geometry):
11761         (image_instantiate):
11762         (image_instantiate):
11763         (cache_subwindow_instance_in_frame_maybe):
11764         (subwindow_query_geometry): make instance geometry signed.
11765
11766         * glyphs-widget.c (widget_query_geometry):
11767         (widget_layout):
11768         (button_query_geometry):
11769         (tree_view_query_geometry):
11770         (tab_control_query_geometry):
11771         (layout_query_geometry):
11772         (layout_layout):
11773         (native_layout_layout): make instance geometry signed.
11774
11775 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11776
11777         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11778         constant.
11779
11780         * general.c (syms_of_general): Add Qfull_assoc symbol.
11781
11782         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11783         correctly.
11784         (decode_weak_list_type): Decode full-assoc type.
11785         (encode_weak_list_type): Encode full-assoc type.
11786         (Fmake_weak_list): Update doc string.
11787
11788 2000-05-30  Andy Piper  <andy@xemacs.org>
11789
11790         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11791
11792         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11793         (decode_hash_table_weakness): ditto.
11794         (Fhash_table_weakness): ditto.
11795         (Fhash_table_type): ditto.
11796         (finish_marking_weak_hash_tables): ditto.
11797         (hash_table_weakness_validate): ditto.
11798         (syms_of_elhash): ditto.
11799
11800 2000-05-28  Martin Buchholz <martin@xemacs.org>
11801
11802         * XEmacs 21.2.34 is released.
11803
11804 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11805
11806         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11807         start cache.
11808         (updating_line_start_cache): Gone.
11809         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11810         generic code to force a minimum of 1 line laid out in the
11811         CMOTION_DISP case.
11812
11813 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11814
11815         * glyphs.c (instantiate_image_instantiator): Check for initialized
11816         height & width no longer special cases IMAGE_NOTHING.
11817         (nothing_instantiate): Set height and width of instance.
11818
11819 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11820
11821         * unexelf.c (unexec): Search for ".data" section.
11822         Initialize new_data2_offset from old_data_index.
11823         Remove redundant check for ElfW.
11824
11825 2000-05-23  Andy Piper  <andy@xemacs.org>
11826
11827         * glyphs.c (get_image_instantiator_governing_domain): allow more
11828         specific domains as the governing domain rather than expecting an
11829         exact match. This fixes problems with layouts.
11830
11831 2000-05-22  Andy Piper  <andy@xemacs.org>
11832
11833         * redisplay-output.c (compare_runes): check for non-images
11834
11835         * glyphs.c (set_glyph_dirty_p): ditto.
11836         (update_glyph_cachel_data): ditto.
11837
11838         * glyphs-widget.c (layout_post_instantiate): ditto.
11839         (layout_post_instantiate): ditto.
11840
11841         * event-msw.c (mswindows_wnd_proc): warning removal.
11842
11843 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11844
11845         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11846
11847         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11848
11849         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11850
11851         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11852         (mswindows_executable_type): mingw32 now has enough headers for
11853         this to work.
11854
11855 2000-05-20  Andy Piper  <andy@xemacs.org>
11856
11857         * console-msw.c (mswindows_output_last_error): ; -> ,
11858
11859 2000-05-12  Andy Piper  <andy@xemacs.org>
11860
11861         * console-msw.c (FROB): compare ints with ints.
11862
11863 2000-05-11  Andy Piper  <andy@xemacs.org>
11864
11865         * glyphs-x.c (x_finalize_image_instance): make minimal build
11866         happy.
11867
11868 2000-05-20  Ben Wing  <ben@xemacs.org>
11869
11870         * event-Xt.c:
11871         * event-Xt.c (vars_of_event_Xt):
11872         move modifier-keys-are-sticky to event-stream.c.
11873
11874         * event-msw.c:
11875         * event-msw.c (mswindows_enqueue_mouse_button_event):
11876         * event-msw.c (key_needs_default_processing_p):
11877         * event-msw.c (XEMSW_LCONTROL):
11878         * event-msw.c (mswindows_handle_sticky_modifiers):
11879         * event-msw.c (FROB):
11880         * event-msw.c (clear_sticky_modifiers):
11881         * event-msw.c (output_modifier_keyboard_state):
11882         * event-msw.c (output_alt_keyboard_state):
11883         * event-msw.c (mswindows_wnd_proc):
11884         * event-msw.c (mswindows_modifier_state):
11885         * event-msw.c (emacs_mswindows_handle_magic_event):
11886         implement sticky modifiers.
11887
11888         * event-stream.c:
11889         * event-stream.c (vars_of_event_stream):
11890         move modifier-keys-are-sticky here.
11891
11892         * lisp.h:
11893         add CHECK_FUNCTION.
11894
11895         * rangetab.c:
11896         implement map-range-table.
11897
11898
11899 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11900
11901         * redisplay-tty.c (reset_tty_modes):
11902         (tty_redisplay_shutdown): Adjust argument type to
11903         tty_frame_output_end.
11904
11905 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11906
11907         * eval.c (Fbacktrace): Don't output a line with only right
11908         parenthesis.
11909
11910 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11911
11912         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11913         (Fpq_reset_poll): Ditto.
11914
11915 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11916
11917         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11918
11919 2000-05-16  Ben Wing  <ben@xemacs.org>
11920
11921         * buffer.c:
11922         * buffer.c (dfc_convert_to/from_internal_format):
11923         * buffer.c (reinit_vars_of_buffer):
11924         Fix conversion functions to allow reentrancy.
11925
11926         * console-msw.c:
11927         * console-msw.c (mswindows_output_last_error):
11928         New fun, generally useful -- output a human-readable
11929         version of GetLastError() on the console.
11930
11931         * console-msw.h:
11932         * console-msw.h (struct mswindows_frame):
11933         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11934
11935         * console-stream.c (stream_output_begin):
11936         * console-stream.c (stream_output_end):
11937         * console-stream.c (stream_output_vertical_divider):
11938         * console-stream.c (stream_clear_region):
11939         * console-stream.c (stream_flash):
11940         * console-stream.c (console_type_create_stream):
11941         Delete blank stream methods, not needed.
11942
11943         * console.h (struct console_methods):
11944         Split begin/end methods into window and frame.
11945
11946         * event-msw.c:
11947         * event-msw.c (mswindows_handle_paint):
11948         * event-msw.c (output_alt_keyboard_state):
11949         * event-msw.c (mswindows_wnd_proc):
11950         * event-msw.c (vars_of_event_mswindows):
11951         Comment about problems with ignored-expose.
11952         Define mswindows-debug-events; not really implemented.
11953
11954         * frame-msw.c (mswindows_init_frame_1):
11955         random cleanups.
11956
11957         * glyphs-msw.c:
11958         * glyphs-msw.c (begin_defer_window_pos):
11959         * glyphs-msw.c (mswindows_unmap_subwindow):
11960         * glyphs-msw.c (mswindows_map_subwindow):
11961         * glyphs-msw.c (mswindows_resize_subwindow):
11962         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11963
11964         * glyphs.c (make_image_instance_1):
11965         Fix crash.
11966
11967         * gutter.c (Fredisplay_gutter_area):
11968         Use new begin/end methods.
11969
11970         * lisp.h (Dynarr_new2):
11971         New creation fun.
11972
11973         * redisplay-msw.c:
11974         * redisplay-msw.c (mswindows_frame_output_begin):
11975         * redisplay-msw.c (mswindows_frame_output_end):
11976         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11977         New begin/end methods -- handle DeferWindowPos.
11978
11979         * redisplay-output.c (redisplay_move_cursor):
11980         * redisplay-output.c (redraw_cursor_in_window):
11981         * redisplay-output.c (redisplay_update_line):
11982         * redisplay-output.c (redisplay_output_window):
11983         New begin/end methods.
11984
11985         * redisplay-tty.c:
11986         * redisplay-tty.c (tty_frame_output_begin):
11987         * redisplay-tty.c (tty_frame_output_end):
11988         * redisplay-tty.c (console_type_create_redisplay_tty):
11989         New begin/end methods.
11990
11991         * redisplay-x.c:
11992         * redisplay-x.c (x_window_output_begin):
11993         * redisplay-x.c (x_window_output_end):
11994         * redisplay-x.c (console_type_create_redisplay_x):
11995         New begin/end methods.
11996
11997         * redisplay.c (redisplay_frame):
11998         * redisplay.c (Fredisplay_echo_area):
11999         New begin/end methods.
12000         use MAYBE_DEVMETH for clear_frame; it may not exist.
12001
12002         * window.h (WINDOW_XFRAME):
12003         WINDOW_XFOO macros -- get locale and decode struct pointer.
12004
12005
12006 2000-05-12  Ben Wing  <ben@xemacs.org>
12007
12008         * emacs.c:
12009         * emacs.c (ensure_no_quitting_from_now_on):
12010         * emacs.c (fatal_error_signal):
12011         * emacs.c (mswindows_handle_hardware_exceptions):
12012         * emacs.c (main):
12013         * emacs.c (Fkill_emacs):
12014         * emacs.c (shut_down_emacs):
12015         * emacs.c (assert_failed):
12016         various improvements in fatal error handling.
12017
12018         * eval.c:
12019         move preparing_for_armageddon to emacs.c.
12020
12021         * lisp.h:
12022         declare fatal_error_in_progress.
12023
12024         * print.c:
12025         * print.c (std_handle_out_external):
12026         * print.c (std_handle_out_va):
12027         * print.c (stderr_out):
12028         * print.c (stdout_out):
12029         use console under mswin when no standard output.
12030         don't do code conversion during fatal error.
12031
12032         * scrollbar.c (Fscrollbar_page_up):
12033         * scrollbar.c (Fscrollbar_page_down):
12034         fix missing else.  reindent.
12035
12036 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12037
12038         Emergency fix.
12039
12040         * glyphs.h (GLYPH_CACHEL_DESCENT):
12041         (GLYPH_CACHEL_DESCENT):
12042         (GLYPH_CACHEL_DESCENT):
12043         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12044         used in case these are inline functions.
12045         Use more absurd values to error check.
12046
12047         include window.h for error check functions.
12048
12049 2000-05-11  Ben Wing  <ben@xemacs.org>
12050
12051         * cmdloop.c (Freally_early_error_handler):
12052         Display message box under windows; otherwise, message will disappear
12053         before it can be viewed.
12054
12055         * console-msw.c:
12056         * console-msw.c (Fmswindows_message_box):
12057         * console-msw.c (FROB):
12058         * console-msw.c (syms_of_console_mswindows):
12059         Define new fun `mswindows-message-box'.
12060         #### I will merge this into `popup-dialog-box'; just give me
12061         a bit of time.
12062
12063         * general.c:
12064         * general.c (syms_of_general):
12065         Some new symbols used in `mswindows-message-box'.
12066
12067         * glyphs.c:
12068         * glyphs.c (Fset_image_instance_property):
12069         put warning in this fun.
12070
12071         * glyphs.h:
12072         * glyphs.h (GLYPH_CACHEL_WIDTH):
12073         * glyphs.h (GLYPH_CACHEL_ASCENT):
12074         * glyphs.h (GLYPH_CACHEL):
12075         * glyphs.h (GLYPH_CACHEL_GLYPH):
12076         define error-checking versions to try to catch a bug i've seen --
12077         redisplay gets in an infinite loop because the glyph width of the
12078         continuation glyph is 65535.
12079
12080         * lisp.h:
12081         Extern message-box stuff.
12082
12083         * window.c (allocate_window):
12084         * window.c (make_dummy_parent):
12085         * window.c (Fset_window_configuration):
12086         Use EQUAL not EQ for subwindow caches to make them work a bit
12087         better. (Something is still very broken.)
12088
12089
12090 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12091
12092         * glyphs.c (image_instantiate): Suppress gcc warnings.
12093         (Fmake_image_instance): Fix doc string.
12094         * specifier.c (Fmake_specifier): Ditto.
12095
12096 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12097
12098         * paths.h.in (PATH_LOCK): Removed.
12099         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12100         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12101
12102 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12103
12104         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12105         Document (featurep '(and xemacs 21.02)).
12106
12107 2000-05-09  Ben Wing  <ben@xemacs.org>
12108
12109         * buffer.c (complex_vars_of_buffer):
12110         update modeline-format doc.
12111
12112         * device.h:
12113         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12114
12115         * emacs.c:
12116         timeline of all released versions of Emacs, for use in creating
12117         authorship comments and in synching up.
12118
12119         * glyphs-widget.c (image_instantiator_buttons):
12120         * glyphs-widget.c (image_instantiator_edit_fields):
12121         * glyphs-widget.c (image_instantiator_combo_box):
12122         * glyphs-widget.c (image_instantiator_scrollbar):
12123         * glyphs-widget.c (image_instantiator_progress_guage):
12124         * glyphs-widget.c (image_instantiator_tree_view):
12125         * glyphs-widget.c (image_instantiator_tab_control):
12126         * glyphs-widget.c (image_instantiator_labels):
12127         * glyphs-widget.c (image_instantiator_layout):
12128         * glyphs-widget.c (image_instantiator_native_layout):
12129         rename decode_domain method to governing_domain.
12130
12131         * glyphs.c:
12132         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12133         * glyphs.c (add_entry_to_device_ii_format_list):
12134         make sure we don't put an entry more than once into the list.
12135         * glyphs.c (check_instance_cache_mapper):
12136         *************************************************************
12137         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12138         HAVE BEEN GETTING.
12139         *************************************************************
12140         * glyphs.c (get_image_instantiator_governing_domain):
12141         clean up, expand on new concept of governing domain.
12142         * glyphs.c (instantiate_image_instantiator):
12143         * glyphs.c (allocate_image_instance):
12144         use governing_domain instead of cache_domain in naming.
12145         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12146         * glyphs.c (make_image_instance_1):
12147         * glyphs.c (Fmake_image_instance):
12148         allow for any domain (not just device), and process the
12149         governing domain correctly.  very big doc fix.
12150         * glyphs.c (Fimage_instance_domain):
12151         new primitive, to retrieve the governing domain of an image instance.
12152         * glyphs.c (image_instantiate):
12153         use new governing_domain stuff.  this fixes a crash you could get
12154         by instantiating certain widget glyphs in frame locales. (should
12155         signal an error instead of crashing.)
12156         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12157         * glyphs.c (Fglyphp): clean up doc.
12158         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12159         * glyphs.c (syms_of_glyphs):
12160         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12161         * glyphs.c (image_instantiator_format_create): add some comments about
12162         bogus code.
12163         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12164         for current-display-table. (Apparently Hrjove implemented in 1998 a
12165         design I wrote up in 1996, but didn't update the doc string.)
12166
12167         * glyphs.h: clean up a doc string.
12168         * glyphs.h (governing_domain):
12169         * glyphs.h (struct image_instantiator_methods):
12170         changes for governing_domain stuff.
12171
12172         * gutter.c:
12173         * gutter.c (Fgutter_specifier_p):
12174         * gutter.c (Fgutter_size_specifier_p):
12175         * gutter.c (Fgutter_visible_specifier_p):
12176         * objects.c:
12177         * objects.c (Fcolor_specifier_p):
12178         * objects.c (Ffont_specifier_p):
12179         * objects.c (Fface_boolean_specifier_p):
12180         doc strings moved to make-*-specifier.
12181
12182         * redisplay.c (add_disp_table_entry_runes_1):
12183         * redisplay.c (generate_fstring_runes):
12184         * redisplay.c (screen):
12185         add random comments and doc strings.
12186
12187         * specifier.c:
12188         * specifier.c (Fmake_specifier):
12189         major overhaul of this doc string.
12190
12191         * specifier.c (Fvalid_specifier_domain_p):
12192         comment about the bogosity of image instances being domains.
12193         * specifier.c (decode_domain):
12194         now non-static, used in glyphs.c.
12195         * specifier.c (specifier_instance):
12196         comment about the bogosity of image instances being domains.
12197         * specifier.c (Fgeneric_specifier_p):
12198         move doc string to make-generic-specifier.
12199         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12200         rebackslashify.
12201
12202         * specifier.h:
12203         * specifier.h (DOMAIN_FRAME):
12204         * specifier.h (DOMAIN_LIVE_P):
12205         * specifier.h (DOMAIN_XDEVICE):
12206         rebackslashify.
12207         add comments about problems with these macros.
12208         prototype for decode_domain.
12209
12210         * toolbar.c:
12211         * toolbar.c (Ftoolbar_specifier_p):
12212         move doc string to `make-toolbar-specifier'.
12213
12214         * window.c (window_unmap_subwindows_cache_mapper):
12215         *************************************************************
12216         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12217         HAVE BEEN GETTING.
12218         *************************************************************
12219
12220 2000-05-09  Andy Piper  <andy@xemacs.org>
12221
12222         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12223
12224         * window.c (Fset_window_configuration): reset the frame subwindow
12225         cache and re-initialize the window subwindow caches.
12226
12227         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12228
12229 2000-05-09  Ben Wing  <ben@xemacs.org>
12230
12231         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12232         DWORD.
12233
12234 2000-04-26  Mike Woolley  <mike@bulsara.com>
12235
12236         * ntheap.c: Changed recreate_heap to limit the amount reserved
12237         for the heap to that which is actually available. Also now
12238         displays a message box (with some dignostics) in the event that
12239         it still can't start.
12240
12241 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12242
12243         * callproc.c (Fold_call_process_internal): GCPRO path
12244
12245 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12246
12247         Patch by Bill Perry.
12248
12249         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12250         back data instead of #ifdef.
12251         (Fscrollbar_page_down): ditto.
12252
12253 2000-05-07  Ben Wing  <ben@xemacs.org>
12254
12255         * buffer.h:
12256         Kludge for defining Qmswindows_tstr.
12257
12258         * nt.c:
12259         * nt.c (open_input_file):
12260         * nt.c (open_output_file):
12261         * nt.c (rva_to_section):
12262         * nt.c (mswindows_executable_type):
12263         Move all memory-mapped-file routines here (some were in unexnt.c,
12264         which is bad because they are used by process-nt.c, and unexnt
12265         won't be around when portable dumping).  Synched the above routines
12266         with FSF 20.6.
12267
12268         * nt.h:
12269         Removed ifdef'd out bogus code.
12270         Fixed some prototypes.
12271
12272         * nt.h (file_data):
12273         * nt.h (OFFSET_TO_RVA):
12274         * nt.h (RVA_TO_OFFSET):
12275         * nt.h (RVA_TO_PTR):
12276         Moved the memory-mapped-file structures, macros and prototypes
12277         here, to parallel nt.c.  ntheap.h should really be removed
12278         entirely, and it's a non-portable-dumper specific file.
12279
12280         * ntheap.h (round_to_next):
12281         Moved the memory-mapped-file structures, macros and prototypes
12282         to nt.h.
12283
12284         * ntproc.c (compare_env):
12285         Moved rva_to_section and mswindows_executable_type to nt.c.
12286         Moved compare_env to process-nt.c.
12287         ntproc.c will die, one day.
12288
12289         * ntproc.c (sys_spawnve):
12290         Account for win32_ -> mswindows_.
12291
12292         * process-nt.c:
12293         * process-nt.c (struct nt_process_data):
12294         * process-nt.c (ensure_console_window_exists):
12295         * process-nt.c (compare_env):
12296         * process-nt.c (nt_create_process):
12297         * process-nt.c (nt_kill_process_by_pid):
12298         * process-nt.c (syms_of_process_nt):
12299         * process-nt.c (vars_of_process_nt):
12300         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12301         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12302         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12303         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12304         Move compare_env here from ntproc.c.
12305
12306         * process.c (Fprocess_send_region):
12307         Takes an optional fourth argument, BUFFER, which should fix some
12308         problems with call-process.
12309
12310         * syscommctrl.h:
12311         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12312
12313         * syswindows.h:
12314         Move ICC_BAR_CLASSES to syscommctrl.h.
12315         Add preliminary macros for MSWindows/Mule.  More to come.
12316
12317         * unexnt.c:
12318         * unexnt.c (unexec):
12319         open_output_file moved to nt.c.
12320
12321
12322 2000-05-05  Andy Piper  <andy@xemacs.org>
12323
12324         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12325         instance from the frame cache also since GC may catch up too late
12326         to make frame deletion sane.
12327
12328 2000-05-04  Andy Piper  <andy@xemacs.org>
12329
12330         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12331         (x_finalize_image_instance): ungcpro on deletion.
12332
12333         * glyphs.c (image_instantiator_format_create): give pointers a
12334         query geometry method so that the geometry is at least set.
12335
12336         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12337         initialize layouts if using widgets.
12338
12339 2000-05-03  Andy Piper  <andy@xemacs.org>
12340
12341         * nt.c: remove bogus reference to sysmmsystem.h
12342
12343         * gui-x.c (popup_selection_callback): fix no selection abort.
12344
12345 2000-05-02  Andy Piper  <andy@xemacs.org>
12346
12347         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12348         (mswindows_widget_instantiate): ditto.
12349
12350         * glyphs-widget.c (initialize_widget_image_instance): initialize
12351         children correctly.
12352         (widget_instantiate): cope with children and items in the same
12353         instance.
12354
12355         * glyphs.c (mark_image_instance): cope with children as a first
12356         class member.
12357         (image_instance_equal): ditto.
12358         (image_instance_hash): ditto.
12359         (image_instance_changed): ditto.
12360
12361 2000-04-30  Andy Piper  <andy@xemacs.org>
12362
12363         * glyphs.c (subwindow_query_geometry): new function. Return some
12364         defaults.
12365         (subwindow_instantiate): don't assign dimensions if none have been
12366         given.
12367         (image_instantiator_format_create): add subwindow_query_geometry.
12368         (print_image_instance): cope with layouts as widgets.
12369
12370 2000-04-29  Andy Piper  <andy@xemacs.org>
12371
12372         * frame.c (delete_frame_internal): call
12373         free_frame_subwindow_instance_cache so that all subwindows are
12374         finalized before their parent.
12375         (mark_frame): remove subwindow_cachels.
12376         (Fmake_frame): remove subwindow_cachel manipulation.
12377         (allocate_frame_core): subwindow_instance_cache is a weak list.
12378         (delete_frame_internal): set subwindow_instance_cache to nil.
12379
12380         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12381         finalization safe.
12382         (mswindows_finalize_image_instance): use the device
12383         not the domain as the domain may have died already.
12384
12385         * glyphs-x.c (x_finalize_image_instance): ditto.
12386         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12387         HEIGHT.
12388
12389         * redisplay-output.c (redisplay_unmap_subwindows): update for
12390         subwindow instance cache as a weak list.
12391         (redisplay_unmap_subwindows_maybe): ditto.
12392         (redisplay_unmap_subwindows_except_us): ditto.
12393
12394         * glyphs.c (unmap_subwindow): error checking will check the domain
12395         so don't deal with it here. Don't use cachels anymore.
12396         (map_subwindow): ditto.
12397         (update_subwindow_cachel_data): remove old accessor names.
12398         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12399         (Fresize_subwindow): don't update cachel.
12400         (mark_subwindow_cachels):
12401         (update_subwindow_cachel_data):
12402         (add_subwindow_cachel):
12403         (get_subwindow_cachel_index):
12404         (update_subwindow_cachel):
12405         (reset_subwindow_cachels):
12406         (mark_subwindow_cachels_as_not_updated): deleted.
12407         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12408         subwindow instance to the frame cache.
12409         (find_matching_subwindow): update for subwindow instance cache as
12410         a weak list.
12411         (update_widget_instances): ditto.
12412         (image_instance_type_to_mask):inlined.
12413         (free_frame_subwindow_instance_cache): new function. finalize all
12414         subwindows that are instantiated.
12415
12416         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12417         of cachel information.
12418         (IMAGE_INSTANCE_DISPLAY_X):
12419         (IMAGE_INSTANCE_DISPLAY_Y):
12420         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12421         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12422         (XIMAGE_INSTANCE_DISPLAY_X):
12423         (XIMAGE_INSTANCE_DISPLAY_Y):
12424         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12425         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12426         remove subwindow_cachel structure and function references.
12427         (image_instance_type_to_mask): inline from glyphs.c
12428
12429         * redisplay.c (redisplay_frame): remove subwindow_cachel
12430         references.
12431
12432         * frame.h (struct frame): remove subwindow_cachels.
12433         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12434
12435         * frameslots.h: add subwindow_instance_cache.
12436
12437         * window.c (replace_window): check subwindow cache of replacement.
12438         (window_unmap_subwindows_cache_mapper):
12439         (window_unmap_subwindows): new functions. Unmap all subwindows
12440         cached on this window.
12441         (mark_window_as_deleted): unmap all subwindows.
12442
12443 2000-04-27  Andy Piper  <andy@xemacs.org>
12444
12445         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12446
12447         * glyphs-widget.c (widget_layout): return something.
12448         (layout_layout): return something. Fail if not initialized.
12449         (layout_query_geometry): ditto.
12450         (image_instantiator_native_layout): new function. Initialized the
12451         native layout type.
12452         (widget_instantiate): don't do layout stuff here.
12453
12454         * glyphs.c (instantiate_image_instantiator): reorded calling or
12455         instantiate and post_instantiate with layout in between.
12456         (image_instance_layout): be more selective about deciding whether
12457         the layout has been done or not.
12458
12459         * glyphs.h (struct image_instantiator_methods): return a value
12460         from layout_method.
12461
12462 2000-04-26  Andy Piper  <andy@xemacs.org>
12463
12464         * glyphs.c (allocate_image_instance): make initial width and
12465         height unspecified. Set initialized to 0.
12466
12467         * syscommctrl.h new file. Encapsulates commctrl.h.
12468
12469         * syswindows.h new file. Encapsulates windows.h.
12470
12471         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12472         * nt.c: ditto.
12473         * console-msw.h: ditto.
12474
12475         * redisplay-tty.c (tty_output_display_block): remove layout references.
12476
12477         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12478         window handle rather than just the frame.
12479
12480         * glyphs.c (mark_image_instance): remove layout references.
12481         (print_image_instance): ditto.
12482         (image_instance_equal): ditto.
12483         (image_instance_hash): ditto.
12484         (decode_image_instance_type): ditto.
12485         (encode_image_instance_type): ditto.
12486         (image_instantiate): ditto.
12487         (allocate_glyph): ditto.
12488         (Fimage_instance_height): ditto.
12489         (Fimage_instance_width): ditto.
12490         (update_subwindow): ditto.
12491
12492         * redisplay-x.c (x_output_display_block): recode for layouts as
12493         widgets.
12494
12495         * redisplay-output.c (redisplay_output_layout): recode for layouts
12496         as widgets.
12497         (compare_runes): remove layout references.
12498
12499         * redisplay-msw.c (mswindows_output_display_block): recode for
12500         layouts as widgets.
12501
12502         * glyphs-widget.c (image_instantiator_layout): remove
12503         layout_possible_dest_types.
12504         (layout_possible_dest_types): deleted.
12505
12506         * glyphs.h (image_instance_type): remove layout references.
12507         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12508         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12509         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12510
12511 2000-04-25  Andy Piper  <andy@xemacs.org>
12512
12513         * glyphs-widget.c (image_instantiator_buttons):
12514         (image_instantiator_edit_fields):
12515         (image_instantiator_combo_box):
12516         (image_instantiator_scrollbar):
12517         (image_instantiator_progress_guage):
12518         (image_instantiator_tree_view):
12519         (image_instantiator_tab_control):
12520         (image_instantiator_labels):
12521         (image_instantiator_layout): call default post_instantiate method.
12522         (widget_post_instantiate): new function. Simply lays out the
12523         widgets.
12524
12525         * glyphs.h (struct image_instantiator_methods): add
12526         post_instantiate method.
12527
12528         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12529         method calls.
12530
12531 2000-04-23  Andy Piper  <andy@xemacs.org>
12532
12533         * glyphs.h (struct image_instantiator_methods): add
12534         decode_domain_method.
12535         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12536         derived from the domain.
12537         (IMAGE_INSTANCE_FRAME): new accessor.
12538         (XIMAGE_INSTANCE_FRAME): ditto.
12539
12540         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12541         instead of _SUBWINDOW_FRAME.
12542         (finalize_image_instance): ditto.
12543         (Fimage_instance_foreground): ditto.
12544         (Fimage_instance_background): ditto.
12545         (image_instantiate): ditto.
12546         (update_subwindow_cachel): ditto.
12547         (update_subwindow): ditto.
12548         (unmap_subwindow): ditto.
12549         (map_subwindow): ditto
12550         (subwindow_instantiate): ditto.
12551         * glyphs-msw.c (mswindows_update_widget): ditto.
12552         (mswindows_progress_gauge_instantiate): ditto.
12553         (mswindows_tab_control_update): ditto.
12554         * glyphs-x.c (x_update_widget): ditto.
12555         (x_widget_instantiate): ditto.
12556         (x_tab_control_instantiate): ditto.
12557         (x_tab_control_update): ditto.
12558         * event-msw.c (mswindows_wnd_proc): ditto
12559
12560         * glyphs-widget.c (image_instantiator_layout): use
12561         subwindow_decode_domain.
12562         (image_instantiator_buttons): ditto.
12563         (image_instantiator_edit_fields): ditto.
12564         (image_instantiator_combo_box): ditto.
12565         (image_instantiator_scrollbar): ditto.
12566         (image_instantiator_progress_guage): ditto.
12567         (image_instantiator_tree_view): ditto.
12568         (image_instantiator_tab_control): ditto.
12569         (image_instantiator_labels): ditto.
12570         (image_instantiator_layout): ditto.
12571
12572         * glyphs.c: add instance error checking to many functions.
12573         (instantiate_image_instantiator): decode device from cache_domain.
12574         (image_instantiate): partially rewrite by using
12575         decode_image_instantiator_domain to determine what domain the
12576         instance needs to be cached in.
12577         (decode_image_instantiator_domain): new function. Determine what
12578         domain the image needs to be cached in.
12579         (check_window_subwindow_cache): new error checking function.
12580         (check_instance_cache_mapper): ditto.
12581         (check_image_instance_structure): ditto.
12582         (subwindow_decode_domain): new function. Encodes a window as a
12583         subwindow's cache domain.
12584         (image_instantiator_format_create): use it for text and
12585         subwindows.
12586
12587 2000-04-21  Andy Piper  <andy@xemacs.org>
12588
12589         * glyphs.c (image_instance_device): new function.
12590         (image_instance_frame): new function.
12591         (image_instance_window): new function.
12592         (image_instance_live_p): new function.
12593
12594         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12595         cache to nil.
12596
12597         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12598         (IMAGE_INSTANCE_DOMAIN): new accessor.
12599         (XIMAGE_INSTANCE_DOMAIN): ditto.
12600
12601         * glyphs-x.c (x_finalize_image_instance): device->domain.
12602
12603         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12604         (mswindows_finalize_image_instance): ditto.
12605
12606         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12607         (gif_instantiate): ditto.
12608         (png_instantiate): ditto.
12609         (tiff_instantiate): ditto.
12610
12611         * glyphs.c (instantiate_image_instantiator): use domain rather
12612         than device.
12613         (mark_image_instance): device -> domain.
12614         (print_image_instance): ditto.
12615         (finalize_image_instance): ditto.
12616         (image_instance_equal): ditto.
12617         (allocate_image_instance): ditto.
12618         (Fcolorize_image_instance): ditto.
12619         (query_string_geometry): ditto.
12620         (image_instantiate): ditto
12621         (query_string_font): ditto.
12622         (image_instantiate): ditto.
12623         (update_subwindow): ditto.
12624         (unmap_subwindow): ditto.
12625         (map_subwindow): ditto.
12626         (subwindow_instantiate): ditto.
12627
12628         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12629         (DOMAIN_FRAME): ditto.
12630         (DOMAIN_WINDOW): ditto.
12631         (DOMAIN_LIVE_P): ditto.
12632         (XDOMAIN_DEVICE): ditto.
12633         (XDOMAIN_FRAME): ditto.
12634         (XDOMAIN_WINDOW): ditto.
12635
12636         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12637         a valid specifier domain.
12638
12639 2000-04-19  Andy Piper  <andy@xemacs.org>
12640
12641         * glyphs-widget.c (syms_of_glyphs_widget): remove
12642         widget-callback-current-channel.
12643         (vars_of_glyphs_widget): ditto.
12644         * glyphs.h: ditto
12645
12646         * gui.c (get_gui_callback): revert to previous behaviour.
12647
12648 2000-04-18  Andy Piper  <andy@xemacs.org>
12649
12650         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12651         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12652         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12653
12654         * glyphs.c (image_instance_equal): add margin_width.
12655         (image_instance_hash): ditto.
12656
12657         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12658         (layout_query_geometry): ditto.
12659         (layout_layout): ditto.
12660         (syms_of_glyphs_widget): add margin-width.
12661         (image_instantiator_layout): allow margin-width.
12662
12663         * glyphs.c (update_widget_instances): make a normal function.
12664         (syms_of_glyphs): remove Qupdate_widget_instances.
12665         * glyphs.h: ditto.
12666
12667         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12668         so that we don't corrupt ideas about the last event or
12669         command. Remove widget-callback-current-channel fiddling.
12670         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12671
12672 2000-05-01  Martin Buchholz <martin@xemacs.org>
12673
12674         * XEmacs 21.2.33 is released.
12675
12676 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12677
12678         * make-src-depend: Allow dots in header file name.
12679
12680 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12681
12682         * mule-charset.h (struct charset_lookup): Add
12683         next_allocated_1_byte_leading_byte and
12684         next_allocated_2_byte_leading_byte.
12685         * mule-charset.c: Move above two variables so that those values
12686         will be dumped.
12687
12688 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12689
12690         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12691         when string length is zero.
12692         (find_charsets_in_emchar_string): Ditto.
12693
12694 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12695
12696         * lisp.h: extern Qdialog and Qmenubar.
12697
12698         * gui-x.c: added events.h.
12699                 also fixed typo which made the file uncompilable.
12700
12701         * general.c: Added Qmenubar and Qdialog
12702
12703 2000-04-28  Ben Wing  <ben@xemacs.org>
12704
12705         * frame-msw.c (mswindows_init_frame_1):
12706         * frame-msw.c (mswindows_mark_frame):
12707         * event-msw.c (mswindows_enqueue_dispatch_event):
12708         * console-msw.h:
12709         * console-msw.h (struct mswindows_frame):
12710         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12711         there are now three hash tables for callbacks.
12712         mswindows_enqueue_dispatch_event is no longer static.
12713
12714         * dialog-x.c (maybe_run_dbox_text_callback):
12715         * dialog-x.c (dbox_descriptor_to_widget_value):
12716         switch to new cons3 form for callbacks.
12717
12718         * glyphs-msw.c (mswindows_register_gui_item):
12719         * glyphs-msw.c (mswindows_widget_instantiate):
12720         * glyphs-msw.c (add_tree_item):
12721         * glyphs-msw.c (add_tab_item):
12722         new image instance parameter, so it can be passed to callback-ex.
12723         respect :callback-ex as well as :callback.
12724
12725         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12726         add :callback-ex.
12727
12728         * glyphs.c (print_image_instance):
12729         prettify, e.g. now prints widget type.
12730
12731         * gui-x.h:
12732         certain funs have new image instance parameter.
12733
12734         * gui.c:
12735         * gui.c (get_gui_callback):
12736         * gui.c (gui_item_add_keyval_pair):
12737         * gui.c (gui_item_init):
12738         * gui.c (gui_add_item_keywords_to_plist):
12739         * gui.c (mark_gui_item):
12740         * gui.c (gui_item_hash):
12741         * gui.c (gui_item_equal):
12742         * gui.c (copy_gui_item):
12743         * gui.c (syms_of_gui):
12744         recognize callback-ex in a number of places.
12745         also, fix the annoying "can't get out of yes-no dialog" bug.
12746
12747         * gui.h:
12748         * gui.h (struct Lisp_Gui_Item):
12749         recognize callback-ex in a number of places.
12750
12751         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12752         new parameter in button_item_to_widget_value.
12753
12754         * glyphs-x.c (x_update_widget):
12755         * glyphs-x.c (x_button_instantiate):
12756         * glyphs-x.c (x_button_update):
12757         * glyphs-x.c (x_progress_gauge_instantiate):
12758         * glyphs-x.c (x_edit_field_instantiate):
12759         * glyphs-x.c (x_combo_box_instantiate):
12760         * glyphs-x.c (x_tab_control_instantiate):
12761         * glyphs-x.c (x_label_instantiate):
12762         new image instance parameter in various places.
12763
12764         * event-Xt.c:
12765         * event-Xt.c (enqueue_Xt_dispatch_event):
12766         this fun gets exported.
12767
12768         * gui-msw.c:
12769         * gui-msw.c (mswindows_handle_gui_wm_command):
12770         handle both :callback and :callback-ex, and generate our own
12771         event because it's one of the callback-ex arguments.
12772
12773         * gui-x.c:
12774         * gui-x.c (popup_selection_callback):
12775         handle both :callback and :callback-ex, and generate our own
12776         event because it's one of the callback-ex arguments.
12777         * gui-x.c (button_item_to_widget_value):
12778         * gui-x.c (gui_items_to_widget_values_1):
12779         * gui-x.c (gui_item_children_to_widget_values):
12780         * gui-x.c (gui_items_to_widget_values):
12781         new image instance parameter in various places.
12782
12783         * fns.c (Freplace_list):
12784         fix small typo in doc string.
12785
12786         * lisp.h:
12787         declare enqueue_Xt_dispatch_event.
12788
12789 2000-04-28  Ben Wing  <ben@xemacs.org>
12790
12791         * buffer.c:
12792         * buffer.c (Frecord_buffer):
12793         * buffer.c (syms_of_buffer):
12794         delete record-buffer-hook.
12795
12796         * fns.c:
12797         * fns.c (Freplace_list):
12798         * fns.c (syms_of_fns):
12799         new primitive replace-list.
12800
12801         * frameslots.h:
12802         slot for old buffer-alist.
12803
12804         * lisp.h:
12805         exfun replace-list.
12806
12807         * redisplay.c:
12808         * redisplay.c (redisplay_frame):
12809         * redisplay.c (syms_of_redisplay):
12810         * redisplay.c (vars_of_redisplay):
12811         new hook buffer-list-changed-hook.
12812         call it.
12813
12814 2000-04-27  Ben Wing  <ben@xemacs.org>
12815
12816         * extents.h: extern in_modeline_generation.
12817
12818         * redisplay.c (generate_formatted_string_db): set
12819         in_modeline_generation.
12820
12821         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12822         flags if in modeline generation.  otherwise frame-modified-tick
12823         is ticked far too often.
12824         Declare in_modeline_generation.
12825
12826 2000-04-26  Ben Wing  <ben@xemacs.org>
12827
12828         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12829         option.
12830         (vars_of_emacs): add quick-build as an error-checking option.
12831         A bit kludgy, but there doesn't seem much point in creating
12832         a real var for this.
12833
12834         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12835
12836 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12837
12838         * redisplay.h (struct display_line): Add a new variable,
12839         line_continuation.
12840
12841         * redisplay.c (create_text_block): Set dl->line_continuation if
12842         the line continues.
12843         (create_string_text_block): Ditto.
12844         (regenerate_window_incrementally): Use line_continuation instead
12845         of searching continuation glyph.
12846         (add_margin_runes): Call add_glyph_rune.
12847         (add_glyph_rune): Handle margin glyph.
12848
12849 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12850
12851         * filelock.c (fill_in_lock_file_name):
12852         ANSIfy.
12853         Check for IS_ANY_SEP instead of '/'.
12854         (lock_file_1):
12855         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12856         Never check errno without first seeing that system call failed.
12857         (unlock_file): Add GCPRO.
12858         (Flock_buffer): Fix docstring.
12859         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12860
12861 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12862
12863         * sysdep.c (get_pty_max_bytes):
12864         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12865         strings longer than 252 bytes.
12866
12867         * md5.c: Unconditionally include ANSI header <limits.h>
12868
12869         * glyphs-x.c (convert_EImage_to_XImage):
12870         * lisp-union.h (union Lisp_Object):
12871         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12872
12873 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12874
12875         * filelock.c (current_lock_owner): Remove unused variable o, p.
12876
12877 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12878
12879         * callint.c: Remove multiply defined symbol Qlet
12880         (syms_of_callint): ditto.
12881
12882 2000-04-14  Andy Piper  <andy@xemacs.org>
12883
12884         * general.c (syms_of_general): add last-command, this-command, let
12885         and funcall.
12886
12887         * lisp.h: declare various symbols.
12888
12889         * glyphs.h: declare Qwidget_callback_current_channel;
12890
12891         * glyphs-widget.c (syms_of_glyphs_widget): add
12892         Qgui_callback_current_channel.
12893         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12894
12895         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12896         widget-callback-current-channel when invoking the interactive
12897         arg. Also bind last-command and next-command when invoking the
12898         widget updates.
12899         * gui-x.c (popup_selection_callback): ditto.
12900
12901         * gui.c (get_gui_callback): massage args so that we are always
12902         calling eval. This allows us to add our own variable bindings
12903         outside.
12904
12905         * glyphs-x.c (x_button_instantiate): use
12906         gui_items_to_widget_values since this is GC safe.
12907         (x_progress_gauge_instantiate): ditto.
12908         (x_edit_field_instantiate): ditto.
12909         (x_label_instantiate): ditto.
12910
12911         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12912         (emacs_Xt_event_widget_focus_out): new function
12913         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12914         focus.
12915         (emacs_Xt_event_add_widget_actions): new function. add focus
12916         functions as actions.
12917         (init_event_Xt_late): use it.
12918
12919 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12920
12921         * event-stream.c (Fdispatch_event): Doc fix.
12922
12923 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12924
12925         * postgresql.c: Remove all references to PQsetenv*.
12926
12927         * postgresql.h: Remove references to PGsetenvHandler object.
12928         * lrecord.h (lrecord_type): Ditto.
12929
12930 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12931
12932         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12933         real_heigh and real_width members, and accessor macros for these.
12934
12935         * glyphs-msw.c (init_image_instance_geometry): New function.
12936         (init_image_instance_from_dibitmap): Use it.
12937         (mswindows_resource_instantiate): Use it.
12938         (init_image_instance_from_xbm_inline): Use it.
12939         (mswindows_initialize_image_instance_mask): Use real bitmap
12940         geometry.
12941         (mswindows_create_resized_bitmap): Ditto.
12942         (mswindows_create_resized_mask): Ditto.
12943
12944         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12945         and bitmap to their surface size.
12946
12947 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12948
12949         * process-unix.c (unix_send_process): Guard against process MIA
12950         after Faccept_process_output.
12951
12952 2000-04-11  Ben Wing  <ben@xemacs.org>
12953
12954         * eval.c (unbind_to_hairy): fix brokenness introduced by
12955         nanosecond speed improvements.
12956
12957 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12958
12959         * sunplay.c (init_device): To play sounds correctly, the device
12960         apparently needs to be initialized at least once by XEmacs.  Make
12961         it so.
12962
12963 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12964
12965         * redisplay.c (add_margin_runes): Add text image glyph
12966           handling.
12967
12968 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12969
12970         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12971         gcc is newer than 2.5.
12972
12973 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12974
12975         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12976
12977         * fns.c (size_bit_vector):
12978         * alloc.c (size_vector):
12979         (make_vector_internal):
12980         (make_bit_vector_internal):
12981         (sweep_bit_vectors_1):
12982         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12983
12984 2000-04-06  Andy Piper  <andy@xemacs.org>
12985
12986         * gmalloc.c (malloc): undo previous change.
12987         (malloc): ditto.
12988         (free): ditto.
12989         (realloc): ditto.
12990
12991 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12992
12993         * line-number.c (buffer_line_number): Revert to former version.
12994
12995 2000-04-06  Andy Piper  <andy@xemacs.org>
12996
12997         * gmalloc.c (malloc): add error checking.
12998         (malloc): ditto.
12999         (free): ditto.
13000         (realloc): ditto.
13001
13002         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13003         button_item_to_widget_value arg.
13004
13005         * glyphs-x.c (x_button_instantiate): add extra
13006         button_item_to_widget_value arg.
13007         (x_progress_gauge_instantiate): ditto.
13008         (x_edit_field_instantiate): ditto.
13009         (x_label_instantiate): ditto.
13010
13011         * gui-x.c (gui_items_to_widget_values_1): add extra
13012         button_item_to_widget_value arg.
13013         (button_item_to_widget_value): add extra menu_item_p arg.
13014
13015         * gui-x.h: change signature of button_item_to_widget_value.
13016
13017         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13018         button_item_to_widget_value arg.
13019
13020 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13021
13022         * buffer.h (struct buffer): auto_save_modified should be long.
13023
13024 2000-04-05  Andy Piper  <andy@xemacs.org>
13025
13026         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13027         type.
13028         (button_query_geometry): give a little more room so that athena
13029         buttons fit.
13030
13031 2000-04-05  Andy Piper  <andy@xemacs.org>
13032
13033         * faces.c (complex_vars_of_faces): The widget face should inherit
13034         the font of the gui-element face.
13035
13036 2000-04-04  Andy Piper  <andy@xemacs.org>
13037
13038         * glyphs-x.c (x_button_update): new function. unconditionally
13039         update a button's state when the instance is dirty.
13040         (image_instantiator_format_create_glyphs_x): add x_button_update.
13041         (x_widget_instantiate): remove old resize cruft.
13042
13043 2000-04-02  Andy Piper  <andy@xemacs.org>
13044
13045         * frame.c (change_frame_size_1): The introduction of gutters means
13046         that we need to allow 0 as a potential frame dimension.
13047
13048 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13049
13050         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13051         image glyph if allow_cursor.
13052         (add_hscroll_rune): Don't allow cursor to border glyph.
13053         (create_text_block): Ditto.
13054
13055         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13056         text not in buffer.
13057         (redisplay_output_layout): Call ensure_face_cachel_complete for
13058         text image glyph.
13059
13060
13061 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13062
13063         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13064
13065         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13066         not in buffer
13067
13068         * redisplay-tty.c (tty_output_display_block): Delete the routine
13069         for text image glyph
13070         * redisplay-x.c (x_output_display_block): ditto
13071         * redisplay-msw.c (mswindows_output_display_block): ditto
13072
13073 2000-02-02  Mike Alexander  <mta@arbortext.com>
13074
13075         Note: Some of these were committed by accident as part of other
13076         patches.
13077
13078         * regex.c (regex_compile): Avoid compiler warnings.
13079
13080         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13081
13082         * nt.h: Declare term_ntproc correctly.
13083
13084         * nt.c: Remove incorrect declaration of get_home_directory which
13085         is declared correctly in lisp.h.
13086
13087         * keymap.c (get_keyelt): Avoid compiler warnings.
13088         (raw_lookup_key_mapper): Avoid compiler warnings.
13089
13090         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13091
13092         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13093
13094         * filemode.c (mode_string): Avoid compiler warnings.
13095
13096         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13097         avoid warning.
13098
13099         * events-mod.h: Undef some things that winuser.h defines differently.
13100
13101         * data.c (Faset): Avoid compiler warnings.
13102
13103         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13104
13105 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13106
13107         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13108         Fall through to simple beep on error.
13109         Replace "extern" by real header file.
13110
13111         * linuxplay.c: Use nativesound.h
13112         (play_sound_data): Return error code. Be less verbose on error.
13113
13114         * sunplay.c: Use nativesound.h
13115         (play_sound_data): Return error code. Be less verbose on error.
13116
13117         * ntplay.c: Use nativesound.h
13118         (play_sound_data): Return fake error code
13119
13120         * sgiplay.c: Use nativesound.h
13121         (play_sound_data): Return error code
13122
13123         * hpplay.c: Use nativesound.h, partially implement
13124         new error code. Break compilation until finished.
13125         (play_sound_data): error code.
13126
13127         * nativesound.h (play_sound_file):
13128           (play_sound_data): Prototype in new header.
13129
13130 2000-03-31  Andy Piper  <andy@xemacs.org>
13131
13132         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13133         for toggle and radio buttons.
13134         (image_instantiator_buttons): use it.
13135
13136 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13137
13138         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13139         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13140         found. Scrollbar event probably belonged to some old config.
13141
13142 2000-03-31  Andy Piper  <andy@xemacs.org>
13143
13144         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13145         than 1.
13146         (initialize_widget_image_instance): default layout to
13147         LAYOUT_HORIZONTAL rather than 0.
13148         (widget_instantiate): reverse the item list at the end rather than
13149         every iteration.
13150         (layout_layout): re-code for the border text at the front of the
13151         item list rather than at the end.
13152         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13153         provided by the user.
13154         (widget_query_geometry): comment.
13155
13156 2000-03-30  Andy Piper  <andy@xemacs.org>
13157
13158         * glyphs-widget.c (image_instantiator_layout): allow standard
13159         widget keywords in layouts.
13160
13161         * gutter.c (output_gutter): cope with nil gutter contents.
13162
13163         * frame.c (Fset_frame_properties): add gutter docs.
13164
13165 2000-03-29  Andy Piper  <andy@xemacs.org>
13166
13167         * toolbar-msw.c (TBSTYLE_FLAT): add.
13168         (mswindows_output_toolbar): minor fiddling.
13169
13170 2000-03-29  Andy Piper  <andy@xemacs.org>
13171
13172         * gutter.c (output_gutter): force gutter size recalculation if
13173         what we are trying to display won't fit.
13174         (update_gutter_geometry): new function. A per-gutter version of
13175         update_frame_gutter_geometry.
13176         (update_frame_gutter_geometry): use it.
13177         (redraw_exposed_gutter): add extra debugging output.
13178
13179 2000-03-28  Mike Alexander  <mta@arbortext.com>
13180
13181         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13182         (pdump_file_unmap): Implement it on Windows
13183         (pdump_file_get): Save alocated handles for pdump_file_unmap
13184
13185 2000-03-28  Andy Piper  <andy@xemacs.org>
13186
13187         * gui.c (get_gui_callback): treat Quit specially.
13188
13189 2000-03-27  Andy Piper  <andy@xemacs.org>
13190
13191         * glyphs.c (image_instantiate): be careful to check in the same
13192         way we assigned.
13193
13194 2000-03-27  Didier Verna  <didier@xemacs.org>
13195
13196         * config.h.in: define the proper SMART_INCLUDE macro.
13197         handle renaming of `foo_h_path' to `foo_h_file'.
13198
13199         * database.c: ditto.
13200
13201         * emacs.c: ditto.
13202
13203         * linuxplay.c: ditto.
13204
13205         * terminfo.c: ditto.
13206
13207         * tooltalk.h: ditto.
13208
13209 2000-03-27  Andy Piper  <andy@xemacs.org>
13210
13211         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13212         gets updated whenever the face might have changed.
13213
13214 2000-03-26  Mike Alexander  <mta@arbortext.com>
13215
13216         * dumper.c (pdump_resource_free): Fix the comment.
13217
13218 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13219
13220         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13221
13222 2000-03-22  Mike Alexander  <mta@arbortext.com>
13223
13224         * dumper.c: Include Windows headers on Windows
13225         (pdump_resource_free): Add a body to the function
13226         (pdump_load): exe_name -> exe_path and add some comments.
13227
13228 2000-03-25  Mike Alexander  <mta@arbortext.com>
13229
13230         * gui.c (copy_gui_item_tree): Return a value in all cases
13231
13232 2000-03-21  Didier Verna  <didier@xemacs.org>
13233
13234         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13235         lwlib/config.h.in.
13236         (SMART_INCLUDE): new macro.
13237         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13238         the proper location.
13239
13240         * postgresql.c: use it.
13241
13242         * inline.c: ditto.
13243
13244 2000-03-24  Andy Piper  <andy@xemacs.org>
13245
13246         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13247         do this.
13248
13249 2000-03-24  Andy Piper  <andy@xemacs.org>
13250
13251         * redisplay-output.c (compare_runes): use image_instance_changed
13252         to detect changes. Do not depend on glyphs_changed, only depend on
13253         dirtiness.
13254          (redisplay_output_layout): add debug messages.
13255         (compare_runes): ditto.
13256
13257         * glyphs.h: declare new functions.
13258         (struct Lisp_Image_Instance): remove percent and associated
13259         accessors.
13260
13261         * gui.h: declare new copying functions.
13262
13263         * gui.c (copy_gui_item_tree): new function.
13264         (copy_gui_item): new function.
13265         (gui_item_id_hash): revert to standard hash.
13266         (gui_item_hash): ditto.
13267         (gui_item_hash_internal): deleted.
13268         (mark_gui_item): mark value.
13269         (gui_item_add_keyval_pair): add value.
13270         (gui_item_init): ditto.
13271         (gui_add_item_keywords_to_plist): ditto.
13272         (gui_item_equal): ditto.
13273         (syms_of_gui): add Q_value.
13274
13275         * glyphs-x.c (x_progress_gauge_update): use pending items and
13276         value for setting the state.
13277         (x_update_widget): don't set items from pending here.
13278
13279         * glyphs-widget.c (update_widget): update items here.
13280         (progress_gauge_set_property): use items for storing value. Put
13281         new value in pending items.
13282
13283         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13284         items for new value. Convert percent -> value.
13285         (mswindows_tab_control_update): don't update items here.
13286
13287         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13288         (update_subwindow): ditto.
13289         (image_instance_changed): new function. Compare hash values and
13290         past and present widget items.
13291         (image_instantiate): We more careful about where we instantiate
13292         things.
13293         (image_instantiate): add error checking.
13294
13295         * gutter.c (syms_of_gutter): use -hook.
13296
13297 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13298
13299         * console-tty.c (Fset_console_tty_input_coding_system): Use
13300         Qkeyboard.
13301         (Fset_console_tty_output_coding_system): Use Qterminal.
13302         (tty_init_console): Use Qkeyboard and Qterminal.
13303
13304 2000-03-21  Ben Wing  <ben@xemacs.org>
13305
13306         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13307         From Mike Alexander <mta@arbortext.com>.
13308
13309 2000-03-21  Ben Wing  <ben@xemacs.org>
13310
13311         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13312         process brokenness.  Proper implementation to come.
13313         * callproc.c:
13314         Rename call-process-internal to old-call-process-internal.
13315         New impl. in process.el.
13316
13317 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13318
13319         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13320
13321 2000-03-20  Andy Piper  <andy@xemacs.org>
13322
13323         * glyphs.c (full_list_hash): make hashes of the same elements in
13324         different orders return different values.
13325
13326 2000-03-20  Martin Buchholz <martin@xemacs.org>
13327
13328         * XEmacs 21.2.32 is released.
13329
13330 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13331
13332         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13333         (DFC_MALLOC_USE_CONVERTED_DATA):
13334         Add aliasing-safe casts to allow use with char* or unsigned char*
13335         lvalues.
13336
13337         * eldap.c (Fldap_open):
13338         (Fldap_search_basic):
13339         (Fldap_add):
13340         (Fldap_modify):
13341         Make C++-compilable.
13342         Make sure GCPRO'ed variables are initialized.
13343         Use temp variables to avoid repeated calls to Flength.
13344
13345 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13346
13347         * sysfile.h:
13348         Make sure PATH_MAX is always defined.
13349         Include limits.h for PATH_MAX.
13350         Deprecate use of MAXPATHLEN.
13351
13352 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13353
13354         * emacs.c: Add reinit_vars_of_fileio.
13355         * symsinit.h: Add reinit_vars_of_fileio.
13356         * fileio.c (reinit_vars_of_fileio): New.
13357         * fileio.c (Fmake_temp_name):
13358         Initialize temp_name random number from microseconds to make
13359         collisions even less likely.  Initialize always at process startup
13360         time.  (make-temp-name) used to return the same file name twice in
13361         a row when PDUMP.
13362         Random stylistic fiddling.
13363         Comment fixes.
13364
13365 2000-03-20  Andy Piper  <andy@xemacs.org>
13366
13367         * glyphs.c (image_instantiate): allow text glyphs to be
13368         instantiated in the minibuffer window.
13369
13370 2000-03-19  Andy Piper  <andy@xemacs.org>
13371
13372         * glyphs.c (image_instance_hash): be careful about which items we
13373         hash on.
13374
13375         * glyphs-widget.c (tab_control_set_property): record into pending
13376         items rather than the actual items.
13377
13378         * glyphs-x.c (x_update_widget): use pending items to update with.
13379
13380         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13381         to update with.
13382
13383         * glyphs.c (mark_image_instance): mark pending items.
13384
13385         * window.c (Fset_window_configuration): record the buffer.
13386         (Fselect_window): totally revert previous change which breaks many
13387         things.
13388
13389 2000-03-18  Andy Piper  <andy@xemacs.org>
13390
13391         * glyphs-msw.c (mswindows_tab_control_update): force selected
13392         item.
13393
13394         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13395         window domain cache, otherwise we get inconsistencies at
13396         startup. There is something fishy at startup which can lead to the
13397         minibuffer being the selected window when the gutter content is
13398         instantiated.
13399
13400         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13401         gcpros.
13402         (parse_gui_item_tree_children): ditto.
13403         (parse_gui_item_tree_item): ditto.
13404
13405         * glyphs.c (Fupdate_widget_instances): return something.
13406
13407 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13408
13409         * window.c (Fselect_window): Undo 2000-03-17 change.
13410
13411 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13412
13413         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13414         against v7.0 libraries.  Insta-coredump city until the postgres
13415         folks fix it.
13416
13417 2000-03-17  Andy Piper  <andy@xemacs.org>
13418
13419         * faces.c (complex_vars_of_faces): don't give the widget face an
13420         inherited background pixmap.
13421
13422         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13423         selected item.
13424
13425         * event-stream.c (Fdispatch_non_command_events): return something.
13426
13427         * gutter.c (output_gutter): use widget face.
13428         (clear_gutter): ditto.
13429
13430         * NEWS: adjust again.
13431
13432         * window.c (Fselect_window): make sure this runs to completion to
13433         avoid oddities with Fset_window_configuration.
13434         (Fcurrent_window_configuration): in general do not save the
13435         minibuffer as the selected window.
13436
13437         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13438
13439 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13440
13441         * emacs.c (Frunning_temacs_p): Revert previous patch.
13442         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13443
13444 2000-03-16  Andy Piper  <andy@xemacs.org>
13445
13446         * glyphs-x.c (x_tab_control_update): if no widget values then
13447         return.
13448
13449         * NEWS: update for new features.
13450
13451         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13452         synthetic event to the native system.
13453         (reinit_vars_of_event_Xt): set force_event_pending to
13454         emacs_Xt_force_event_pending.
13455
13456         * events.h (struct event_stream): add force_event_pending.
13457
13458         * specifier.c (recompute_one_cached_specifier_in_window): add
13459         comment.
13460
13461         * redisplay.c (redisplay_frame): don't call
13462         update_frame_subwindows. Reset subwindow cachels when
13463         subwindows_changed, removing this was an optimization too far.
13464
13465         * redisplay-output.c (compare_runes): reorganize so that we catch
13466         glyph changes when we want them. Set optimize_output when this
13467         would help layouts.
13468         (redisplay_output_layout): remove frame_really_changed, use
13469         optimize_output instead.
13470
13471         * redisplay-msw.c (mswindows_output_display_block): reset
13472         optimize_output after outputting a glyph.
13473         * redisplay-x.c (x_output_display_block): ditto.
13474         * redisplay-tty.c (tty_output_display_block): ditto.
13475
13476         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13477         functions.
13478         (gutter_specs_changed): do specific gutter positions.
13479         (top_gutter_specs_changed): new function. Only update the
13480         specified gutter specs.
13481         (bottom_gutter_specs_changed): ditto.
13482         (left_gutter_specs_changed): ditto.
13483         (right_gutter_specs_changed): ditto.
13484
13485         * gui.c (gui_item_hash_internal): new function, does a real hash.
13486         (gui_item_id_hash): use it.
13487         (gui_item_hash): hash the eval'ed gui_item.
13488
13489         * gui-x.c (popup_selection_callback): send an eval event to call
13490         Fupdate_widget_instances.
13491
13492         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13493         to call Fupdate_widget_instances.
13494
13495         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13496         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13497
13498         * glyphs.c: (update_frame_subwindows): deleted.
13499         (Fupdate_widget_instances): new function for updating the dirty
13500         state of widgets that might have changed.
13501         (syms_of_glyphs): add Qupdate_widget_instances.
13502         (full_list_hash): hash a list completely.
13503         (image_instance_hash): use it for items and properties.
13504
13505         * frame-msw.c (mswindows_size_frame_internal): remove unused
13506         variable.
13507
13508         * faces.h (struct face_cachel): fix comment.
13509
13510         * event-stream.c (Fdispatch_non_command_events): new
13511         function. Process non-command events, forcing an event cycle
13512         beforehand.
13513         (syms_of_event_stream): declare.
13514         (event_stream_force_event_pending): new function. Force an event
13515         on the native event queue so that an event cycle will occur next
13516         time we check.
13517
13518         * event-msw.c:
13519         (struct ntpipe_shove_stream):
13520         (mswindows_enqueue_dispatch_event):
13521         (mswindows_dequeue_dispatch_event):
13522         (mswindows_cancel_dispatch_event):
13523         (mswindows_pump_outstanding_events):
13524         (mswindows_drain_windows_queue):
13525         (mswindows_handle_paint):
13526         (mswindows_wnd_proc):
13527         (mswindows_key_to_emacs_keysym):
13528         (get_process_input_waitable):
13529         (emacs_mswindows_delete_stream_pair): re-indent file.
13530         (mswindows_need_event): do not process further fds if the windows
13531         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13532         fixes the 100% cpu problem.
13533         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13534
13535 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13536
13537         * alloc.h: New.
13538         * dumper.h: New.
13539         * dumper.c: New.
13540
13541         * emacs.c: Moved dump file searching to dumper.c.
13542         (Frunning_temacs_p): Fixed.
13543
13544         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13545         last_lrecord_type_index_assigned.
13546
13547 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13548
13549         * symsinit.h: Added reinit parameter to init_console_stream
13550         declaration.
13551
13552         * lisp.h: Added file parameter to pdump_load declaration.
13553
13554         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13555         support.  Added dump file searching.
13556
13557         * config.h.in: Added EMACS_PROGNAME.
13558
13559         * console-stream.c (init_console_stream): Fix reinitialisation
13560         when running from temacs.
13561
13562         * alloc.c (pdump): Add id support.
13563         (pdump_load): Add file parameter and signature/id support.
13564
13565         * Makefile.in.in: Add full pdump support.
13566
13567 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13568
13569         * postgresql.c: Update documentation to reflect latest code
13570         status.
13571         (print_result): Show tuple counts in printed representation when
13572         appropriate.
13573         (Fpq_put_nbytes): MULE-ize.
13574         (Fpq_get_line_async): Ditto.
13575
13576 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13577
13578         * postgresql.c (Fpq_lo_import): Fix return value.
13579         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13580
13581 2000-03-13  Ben Wing  <ben@xemacs.org>
13582
13583         * alloc.c (pdump_load):
13584         Fix compile warning under mswin.
13585
13586 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13587
13588         * postgresql.c: Mule-ization, bug fixes.
13589         Use PG_CODING to encapsulate coding system name changes.
13590         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13591         (pg-coding-system): Create.
13592
13593         (Fpq_conn_defaults): Mule-ize.
13594         (Fpq_connectdb): Mule-ize & bug fix.
13595         (Fpq_connect_start): Mule-ize.
13596         (Fpq_set_client_encoding): Mule-ize.
13597         (Fpq_finish): Document `DEAD' connection status.
13598         (Fpq_clear): Ditto.
13599         (Fpq_pgconn): Mule-ize.
13600         (Fpq_exec): Mule-ize & bug fix.
13601         (Fpq_send_query): Ditto.
13602         (Fpq_get_result): Ditto.
13603         (Fpq_res_status): Mule-ize.
13604         (Fpq_result_error_message): Mule-ize.
13605         (Fpq_ntuples): fix comments.
13606         (Fpq_fname): Mule-ize.
13607         (Fpq_fnumber): Mule-ize.
13608         (Fpq_ftype): fix comments.
13609         (Fpq_get_value): Mule-ize.
13610         (Fpq_cmd_status): Ditto.
13611         (Fpq_cmd_tuples): Ditto.
13612         (Fpq_oid_value): Ditto.
13613         (Fpq_notifies): Ditto.
13614         (Fpq_lo_import): Ditto.
13615         (Fpq_lo_export): Ditto.
13616         (Fpq_get_line): Ditto.
13617         (Fpq_put_line): Mule-ize and bug fix.
13618         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13619
13620 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13621
13622         * postgresql.c (vars_of_postgresql): Mule-ize.
13623         (Fpq_conn_defaults): Ditto.
13624
13625 2000-03-12  Ben Wing  <ben@xemacs.org>
13626
13627         * alloc.c (Fmake_byte_code):
13628         * alloc.c (debug_string_purity_print):
13629         * alloc.c (pdump_backtrace):
13630         * alloc.c (pdump_get_indirect_count):
13631         * alloc.c (pdump_register_sub):
13632         * alloc.c (pdump_register_object):
13633         * alloc.c (pdump_register_struct):
13634         * alloc.c (pdump_dump_data):
13635         * alloc.c (pdump_reloc_one):
13636         Minor cleanups.
13637
13638         * console-msw.c:
13639         * console-msw.c (GetConsoleHwnd):
13640         * console-msw.c (msw_hide_console):
13641         * console-msw.c (msw_show_console):
13642         * console-msw.c (msw_ensure_console_buffered):
13643         * console-msw.c (msw_output_console_string):
13644         * console-msw.c (console_type_create_mswindows):
13645
13646         a) Added functions to manipulate the console window for use with
13647         shell support.
13648
13649         b) Added support for writing text to the console, which is now
13650         used under Windows when xemacs is not being run non-interactively,
13651         to write text that would otherwise be destined for stdout because
13652         under these circumstances, text written to stdout tends to
13653         disappear and not be seen.
13654
13655         * console-msw.h:
13656         * event-Xt.c:
13657         * event-Xt.c (x_event_to_emacs_event):
13658         * event-Xt.c (describe_event_window):
13659         * events-mod.h (XEMACS_MOD_CONTROL):
13660         * events.c:
13661         * events.c (Fmake_event):
13662         * events.c (character_to_event):
13663         * events.c (event_to_character):
13664         * events.c (format_event_object):
13665         * events.c (Fevent_modifiers):
13666         * events.h:
13667         * events.h (struct key_data):
13668         * events.h (struct button_data):
13669         * events.h (struct misc_user_data):
13670         * frame-x.c (Fcde_start_drag_internal):
13671         * frame-x.c (Foffix_start_drag_internal):
13672         * gpmevent.c (Freceive_gpm_event):
13673         * keymap.c:
13674         * keymap.c (bucky_sym_to_bucky_bit):
13675         * keymap.c (control_meta_superify):
13676         * keymap.c (make_key_description):
13677         * keymap.c (keymap_lookup_directly):
13678         * keymap.c (create_bucky_submap):
13679         * keymap.c (keymap_store):
13680         * keymap.c (define_key_check_and_coerce_keysym):
13681         * keymap.c (define_key_parser):
13682         * keymap.c (define_key_alternate_name):
13683         * keymap.c (Fdefine_key):
13684         * keymap.c (raw_lookup_key_mapper):
13685         * keymap.c (struct map_keymap_unsorted_closure):
13686         * keymap.c (map_keymap_unsorted_mapper):
13687         * keymap.c (map_keymap_sort_predicate):
13688         * keymap.c (map_keymap_sorted):
13689         * keymap.c (accessible_keymaps_mapper_1):
13690         * keymap.c (where_is_recursive_mapper):
13691         * keymap.c (describe_map_mapper):
13692         * keymap.c (describe_map_sort_predicate):
13693         * keymap.c (describe_map):
13694         * keymap.c (complex_vars_of_keymap):
13695         And a number of other files, the key modifier preprocessor
13696         constants that xemacs uses have names that conflict with constants
13697         defined under MS Windows for other purposes, so they were renamed
13698         to begin with the prefix XEMACS_. The variables that hold such
13699         modifiers were changed to consistently be of type int to fix
13700         various compile warnings.
13701
13702         * console.c (complex_vars_of_console):
13703         * device.c:
13704         * device-msw.c:
13705         * device-msw.c (mswindows_finish_init_device):
13706         * device-msw.c (msw_get_workspace_coords):
13707         * device-msw.c (mswindows_device_system_metrics):
13708         and various other files, added support for a new
13709         device property called offset-workspace which returns the position
13710         of the upper left corner of the workspace area and goes along with
13711         the existing size-workspace property.
13712
13713         * dialog-msw.c:
13714         * dialog-msw.c (push_bufbyte_string_as_unicode):
13715         * dialog-msw.c (mswindows_popup_dialog_box):
13716         Added support for XEmacs-style accelerator specifications in
13717         button text.  Note: I didn't add support for this under X Windows,
13718         and somebody needs to do this.
13719
13720         * dialog.c:
13721         * dialog.c (Fpopup_dialog_box):
13722         Documented the support for accelerators that was just mentioned.
13723
13724         editfns.c (get_home_directory): Changed behavior under Windows
13725         when HOME not defined; former behavior was irretrievably broken.
13726
13727         * emacs.c:
13728         * emacs.c (main_1):
13729         * emacs.c (main):
13730         * minibuf.c (clear_echo_area_internal):
13731         * minibuf.c (echo_area_append):
13732         * print.c:
13733         * print.c (std_handle_out_external):
13734         * print.c (std_handle_out_va):
13735         * print.c (fatal):
13736         * print.c (write_string_to_stdio_stream):
13737         * print.c (output_string):
13738         * print.c (debug_print):
13739         * print.c (debug_backtrace):
13740         * print.c (debug_short_backtrace):
13741         Cleaned up the code that prints text to stdout so that this can be
13742         changed to output into a console window instead under MS Windows,
13743         as described above.
13744
13745         * eval.c:
13746         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13747         * eval.c (internal_catch):
13748         * eval.c (unwind_to_catch):
13749         * eval.c (throw_or_bomb_out):
13750         * eval.c (condition_case_1):
13751         * eval.c (signal_1):
13752         * eval.c (check_error_state_sanity):
13753         * eval.c (call_with_suspended_errors_1):
13754         * eval.c (call_with_suspended_errors):
13755         * eval.c (reinit_vars_of_eval):
13756         Added code to catch throw loops and check for a pesky bug that may
13757         be gone now.
13758
13759         * event-msw.c:
13760         * event-msw.c (key_needs_default_processing_p):
13761         * event-msw.c (mswindows_wnd_proc):
13762         * event-msw.c (mswindows_modifier_state):
13763         * event-msw.c (emacs_mswindows_quit_p):
13764         * event-msw.c (vars_of_event_mswindows):
13765         a) Added support for using the alt key to select menu items as is
13766         standard under MS Windows.  This is controlled using the variable
13767         menu-accelerator-enabled, just like under X Windows.  There is an
13768         option on the options menu to turn this support on.  I really
13769         think that it should be on by default under Windows, but I'm not
13770         going to make this change yet.
13771
13772         b)  Added support for dynamic display size changes under Windows.
13773
13774         * event-stream.c:
13775         * event-stream.c (maybe_echo_keys):
13776         * event-stream.c (Fnext_event):
13777         * event-stream.c (command_builder_find_leaf):
13778         * event-stream.c (lookup_command_event):
13779         * event-stream.c (execute_command_event):
13780         * event-stream.c (pre_command_hook):
13781         * event-stream.c (post_command_hook):
13782         * event-stream.c (syms_of_event_stream):
13783         * event-stream.c (vars_of_event_stream):
13784         * event-stream.c (complex_vars_of_event_stream):
13785         * events.h (struct command_builder):
13786
13787         a) Tried to clean up a little bit the horribly written x-specific
13788         accelerator code that crept into this file.  I moved this code
13789         into menubar-x.c where it belongs. I also needed to move the
13790         command builder structure into the file events.h because it is
13791         accessed directly by this accelerator code.  What I didn't do, but
13792         which should be done at some point, is to properly abstract this
13793         code using device methods instead of the kludgy way that it
13794         currently hooks into the event code.
13795
13796         b) Added the lisp variables this-command-properties and
13797         last-command- properties, which should be used to synchronize two
13798         adjacent commands in preference to playing games with the variable
13799         this-command, which is typically what happens.
13800
13801         c) Added some slightly nasty code to hook into the lisp support
13802         for shifted- motion-key selection.  This is actually necessary for
13803         somewhat complicated reasons, which are described in
13804         simple.el. (NB: I think the proper thing would be to have the code
13805         that calls the pre and post command hooks also call out to generic
13806         lisp functions in simple.el, where all built-in stuff could be
13807         added.  I will think about this more.)
13808
13809         * event-unixoid.c (poll_fds_for_input):
13810         * lread.c (readchar):
13811         * redisplay-tty.c (tty_clear_frame):
13812         * redisplay-x.c (x_get_gc):
13813         * signal.c (interrupt_signal):
13814         And a whole bunch of other files: fixed up places that printed
13815         directly to stderr to instead call the function stderr_out so that
13816         the changes I made under Windows work correctly.
13817
13818         * filemode.c (mode_string):
13819         Warning fixes.
13820
13821         * frame-msw.c:
13822         * frame-msw.c (mswindows_size_frame_internal):
13823         Fixed the computation of frame size and position to keep the frame
13824         within the workspace area, rather than within the physical
13825         dimensions of the screen, so that the frame doesn't overlap window
13826         manager decorations, such as the start menu and toolbar, typically
13827         at the bottom of the screen.
13828
13829         * frame.c (vars_of_frame):
13830         Changed the default frame title format under MS Windows to consist
13831         of buffername-XEmacs, which is standard under MS Windows.  I think
13832         it might be a good idea to change this everywhere because I think
13833         it is superior to the current frame title format, but this is the
13834         kind of change that is likely to cause some people to get annoyed,
13835         so I'm not making it.
13836
13837         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13838
13839         * gui-msw.c (mswindows_handle_gui_wm_command):
13840         Fixed compile warnings.
13841
13842         * gui-x.c:
13843         * gui-x.c (strdup_and_add_accel):
13844         * gui-x.c (button_item_to_widget_value):
13845         * gui-x.h:
13846         Added code to automatically put an accelerator onto the beginning
13847         of menu items that don't have one as is now the standard, and is
13848         described more later.  Also fixed things so that the menu item
13849         name can be an evaluated expression, again a new standard.
13850
13851         * gui.c:
13852         * gui.c (gui_item_add_keyval_pair):
13853         * gui.c (make_gui_item_from_keywords_internal):
13854         * gui.c (gui_add_item_keywords_to_plist):
13855         * gui.c (gui_item_accelerator):
13856         * gui.c (gui_name_accelerator):
13857         * gui.c (gui_item_included_p):
13858         * gui.c (gui_item_display_flush_left):
13859         * gui.c (gui_item_display_flush_right):
13860         * gui.c (parse_gui_item_tree_item):
13861         * gui.c (parse_gui_item_tree_children):
13862         * gui.c (parse_gui_item_tree_list):
13863         Mule-ized.  Cleanup.  GCPRO addition.
13864
13865         * line-number.c (buffer_line_number):
13866         * lisp.h:
13867         * lisp.h (EMACS_INT_MAX):
13868         Added the manifest constant EMACS_INT_MIN corresponding to the
13869         existing constant EMACS_INT_MAX.  This is partially to fix compile
13870         warnings under Windows, and partly for cleanliness.
13871
13872         * menubar-msw.c:
13873         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13874         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13875         * menubar-msw.c (displayable_menu_item):
13876         * menubar-msw.c (populate_menu_add_item):
13877         * menubar-msw.c (populate_or_checksum_helper):
13878         * menubar-msw.c (populate_menu):
13879         * menubar-msw.c (update_frame_menubar_maybe):
13880         * menubar-msw.c (prune_menubar):
13881         * menubar-msw.c (msw_char_is_accelerator):
13882         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13883         * menubar-msw.c (mswindows_handle_wm_command):
13884         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13885         * menubar-msw.c (mswindows_handle_wm_initmenu):
13886         * menubar-msw.c (mswindows_update_frame_menubars):
13887         * menubar-msw.c (mswindows_free_frame_menubars):
13888         * menubar-msw.c (mswindows_popup_menu):
13889         Fixed a bug in handling accelerators where an extra character
13890         would be displayed in the menu item.  Also generalized the
13891         function displayable_menu_item because it is now used by the
13892         dialog box code as well.  And finally, added code in the functions
13893         that create the menubar to extract a list of accelerators for the
13894         top level menubar, which is used in the event code to determine
13895         whether a particular alt-key combination should be used to invoke
13896         a menu item, or should be passed through to access the standard
13897         XEmacs keymap binding for this key combination.
13898
13899         Much needed GCPROing.
13900
13901         * menubar-x.c:
13902         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13903         * menubar-x.c (menu_item_descriptor_to_widget_value):
13904         * menubar-x.c (restore_in_menu_callback):
13905         * menubar-x.c (x_popup_menu):
13906         * menubar-x.c (menu_move_up):
13907         * menubar-x.c (menu_move_down):
13908         * menubar-x.c (menu_move_left):
13909         * menubar-x.c (menu_move_right):
13910         * menubar-x.c (menu_select_item):
13911         * menubar-x.c (command_builder_operate_menu_accelerator):
13912         * menubar-x.c (menu_accelerator_junk_on_error):
13913         * menubar-x.c (command_builder_find_menu_accelerator):
13914         * menubar-x.c (Faccelerate_menu):
13915         * menubar.h:
13916         Moved a whole bunch of code here that was previously in
13917         event-stream.c as described above.  There is also code connected
13918         to the new standard of adding an accelerator to the beginning of
13919         menu items that don't have one as described above and below.
13920
13921         * menubar.c:
13922         * menubar.c (menu_parse_submenu_keywords):
13923         * menubar.c (Fmenu_find_real_submenu):
13924         * menubar.c (Fnormalize_menu_item_name):
13925         * menubar.c (syms_of_menubar):
13926         * menubar.c (vars_of_menubar):
13927         * menubar.c (complex_vars_of_menubar):
13928
13929         a) Cleaned up a bunch of documentation and improved it.
13930
13931         b) XEmacs now automatically adds an accelerator onto the beginning
13932         of any menu items that don't have one.  I did this because there
13933         will inevitably be some menu items on the main menubar that don't
13934         have accelerators on them because the package that adds that
13935         particular menu item hasn't yet been fixed up to have accelerators
13936         in them and it looked rather strange to have some items with and
13937         some items without accelerators, especially since even in items
13938         without accelerators, you can, at least under windows, still
13939         access the item through an accelerator corresponding to the first
13940         character in the item's name.  If people don't like this behavior,
13941         I can add a variable to turn it off optionally, but I'm not sure
13942         this is a good idea because we really do need to have accelerators
13943         on all of the menu items, and if a package doesn't like the
13944         accelerators being put on the first character, then it should put
13945         the accelerators where they belong.
13946
13947         c) I made a behavior change, which is that the descriptor that
13948         specifies the text of the menu item, which formerly was just a
13949         string, can now also be an evaluated expression.  This makes this
13950         descriptor parallel with all of the others, which could also be
13951         evaluated expressions.  This also obviates the need for the
13952         keyword :label, which was previously listed in the documentation
13953         as unimplemented, and which was for the same purpose.
13954
13955         d) GCPROing.
13956
13957         * ntproc.c:
13958         * ntproc.c (new_child):
13959         * ntproc.c (sys_spawnve):
13960         * ntproc.c (find_child_console):
13961         * ntproc.c (sys_kill):
13962         Fixed compile warnings.  By the way, this file should really go
13963         away entirely, and this will happen as soon as Kirill makes his
13964         final round of process cleanups, which affect the function
13965         call-process.
13966
13967         * process-nt.c:
13968         * process-nt.c (struct nt_process_data):
13969         * process-nt.c (find_process_from_pid):
13970         * process-nt.c (send_signal_the_nt_way):
13971         * process-nt.c (enable_child_signals):
13972         * process-nt.c (find_child_console):
13973         * process-nt.c (send_signal_the_95_way):
13974         * process-nt.c (nt_finalize_process_data):
13975         * process-nt.c (ensure_console_window_exists):
13976         * process-nt.c (nt_create_process):
13977         * process-nt.c (nt_kill_child_process):
13978         * process-nt.c (nt_kill_process_by_pid):
13979         * process-nt.c (nt_open_network_stream):
13980         * process-nt.c (vars_of_process_nt):
13981         Copied over code from Emacs 20.5 to correctly send signals to sub-
13982         processes under Windows 95.  Also added code to automatically
13983         create and hide console window when a sub-process is created under
13984         Windows 95, which obviates the need for the separate runemacs.exe
13985         executable, and finally implemented some variables that were
13986         implemented in Emacs 20.5, but previously not in XEmacs.  These
13987         include mswindows- start-process-share-console and
13988         mswindows-start-process-inherit-error-mode. (Both of these only
13989         apply to Windows 95.)
13990
13991         * regex.c (regex_compile): Fixed a compile warning.
13992
13993         * select-msw.c:
13994         * select-msw.c (mswindows_own_selection):
13995         * select-msw.c (mswindows_get_foreign_selection):
13996         * select-msw.c (mswindows_disown_selection):
13997         * select-msw.c (console_type_create_select_mswindows):
13998         * select-msw.c (syms_of_select_mswindows):
13999         Cleaned up the file and implemented the device method
14000         selection_exists_p, which had accidentally been left out.  Also
14001         removed four lisp functions that were remnants from before the
14002         time when the selection code was properly device abstracted.
14003         These functions are no longer needed because there are generic
14004         equivalents, and because they were added recently and don't exist
14005         in FSF Emacs, I don't think there's any problem with just deleting
14006         them.
14007
14008         * sysdep.c:
14009         * sysdep.c (sys_subshell):
14010         Fixed a compile warning, although in this case there's probably
14011         something wrong with this code, and it ought to be looked into
14012         more thoroughly by somebody who understands it.
14013
14014         * window.c:
14015         * window.c (Fwindow_text_area_height):
14016         * window.c (Fwindow_width):
14017         * window.c (Fwindow_full_width):
14018         * window.c (Fwindow_pixel_width):
14019         * window.c (debug_print_window):
14020         * window.c (syms_of_window):
14021         Added functions window-text-area-height and window-full-width,
14022         which are functions for returning various width and height
14023         characteristics of a window. (One of these functions is necessary
14024         for making the file dialog box work correctly, and the other one
14025         was added for completeness.)  Also added a table to the
14026         documentation for window-height which describes the entire scheme
14027         for accessing width and height characteristics of a window.
14028
14029 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14030
14031         * nt.c (fstat): Added a comment for another problem with
14032         non-encapsulated [f]stat(), reported by Adrian Aichner
14033         <aichner@ecf.teradyne.com>.
14034
14035 2000-03-11  Andy Piper  <andy@xemacs.org>
14036
14037         * window.c (make_dummy_parent): initialize subwindow instance
14038         cache.
14039         (Fset_window_configuration): zero extent_modiff.
14040
14041 2000-03-10  Andy Piper  <andy@xemacs.org>
14042
14043         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14044         more changes can be triggered.
14045         (Fredisplay_frame): ditto.
14046         (Fredraw_device): ditto.
14047         (Fredisplay_device): ditto.
14048         (redisplay_frame): make non-static.
14049         (redisplay_frame): call update_frame_gutter_geometry outside of
14050         display proper.
14051
14052         * gutter.h: declare update_frame_gutter_geometry.
14053
14054         * redisplay.h: declare redisplay_frame.
14055
14056         * gutter.c (update_frame_gutter_geometry): move geometry changes
14057         in update_frame_gutters here. Geometry changes can only occur
14058         outside of redisplay.
14059         (update_frame_gutters): remove geometry change code.
14060         (Fredisplay_gutter_area): make sure that we are in display when we
14061         update and that we have flushed any size changes.
14062
14063 2000-03-11  Andy Piper  <andy@xemacs.org>
14064
14065         * alloc.c (pdump_dump_data): remove i & count shadows.
14066
14067 2000-02-27  Mike Alexander  <mta@arbortext.com>
14068
14069         * sysdep.h: Declare pdump_read_file
14070
14071         * sysdep.c (pdump_read_file): New function
14072
14073         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14074         dump data
14075
14076 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14077
14078         * lrecord.h: add `lrecord_type_pgsetenv'.
14079
14080 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14081
14082         * symsinit.h: declare (vars|syms)_of* functions.
14083         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14084
14085 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14086
14087         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14088
14089         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14090         GCCs.
14091
14092         * emacs.c (main_1): Call postgres initialization code.
14093
14094         * postgresql.h: New file.  PostgreSQL RDBMS support.
14095         * postgresql.c: New file.
14096
14097 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14098
14099         * redisplay-output.c (redisplay_output_display_block): Disable
14100         redundant code.
14101
14102 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14103
14104         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14105         (Fcanna_henkan_next): Ditto.
14106         (Fcanna_bunsetu_henkou): Ditto.
14107         (Fcanna_henkan_kakutei): Ditto.
14108         (Fcanna_henkan_end): Ditto.
14109         (Fcanna_henkan_quit): Ditto.
14110         (Fcanna_henkan_next): Set retun value correctly.
14111         (c2mu): Use unsigned char instead of signed char.
14112
14113 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14114
14115         * emacs.c (main_1): Always call syms_of_gui.
14116         * inline.c: include gui.h
14117
14118 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14119
14120         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14121         converted to Lisp_Object.
14122         (Qtop_bottom): New variable.
14123         (syms_of_redisplay): Initialize it.
14124         * redisplay.h (Vvisible_bell): Ditto.
14125         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14126         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14127         only flash top and bottom.
14128
14129 2000-03-08  Andy Piper  <andy@xemacs.org>
14130
14131         * buffer.c (Frename_buffer): record new buffer name the right way.
14132
14133 2000-03-08  Andy Piper  <andy@xemacs.org>
14134
14135         * glyphs.c (update_subwindow): increase hash depth so that widget
14136         items get picked up properly.
14137
14138         * redisplay-output.c (compare_runes): increase hash depth so that
14139         widget items get picked up properly.
14140
14141 2000-03-08  Andy Piper  <andy@xemacs.org>
14142
14143         * gutter.c (output_gutter): add some debug.
14144
14145         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14146         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14147         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14148
14149         * redisplay-output.c (compare_runes): use display_hash to
14150         determine if glyphs really are not the same.
14151
14152         * glyphs.c (update_subwindow): check display_hash to see if
14153         anything really needs to be updated. If not then do
14154         nothing. Record the display_hash after updating.
14155         (image_instance_equal): compare the image_instance face also.
14156
14157 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14158
14159         * redisplay.h: Fix comment style.
14160
14161 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14162
14163         * consle-msw.h (struct mswindows_frame):
14164         Added new member paint_pending to indicate whether a WM_PAINT
14165         magic event has been queued for this frame.
14166
14167         * event-msw.c (mswindows_drain_windows_queue):
14168         Don't queue a WM_PAINT magic event if one is already queued.
14169         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14170
14171         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14172
14173 2000-03-07  Didier Verna  <didier@xemacs.org>
14174
14175         * dired.c: #include `regex.h' after `sysfile.h'.
14176
14177 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14178
14179         * sound.c (init_nas_sound): Fix compiler warning.
14180
14181         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14182         (FREE_STRUCT_P):
14183         (MARK_STRUCT_AS_FREE):
14184         (MARK_STRUCT_AS_NOT_FREE):
14185         Make `gcc -fstrict-aliasing' work properly.
14186
14187 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14188
14189         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14190         (mswindows_delete_device): Call CoUnnitialize().
14191
14192         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14193
14194 2000-02-25    <CraigL@DyCon.com>
14195
14196         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14197         <errno.h>.
14198
14199         * sysdep.c: This extern declaration for environ prevents MinGW
14200         from finding the variable in CRTDLL.DLL.
14201
14202         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14203         windows headers.
14204         (SHGFI_EXETYPE): ..
14205         (WM_MOUSEWHEEL): ..
14206         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14207         definitions.
14208         (MMRESULT): Removed, now defined in cygwin's windows headers.
14209         (TIMECAPS): ..
14210         (uid_t,gid_t,pid_t,ssize_t): ..
14211         (_timeb): Removed, MinGW defines both _timeb and timeb.
14212         (HAVE_H_ERRNO): Added.
14213         (HAVE_TZNAME): Added, configure is not detecting this.
14214
14215 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14216
14217         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14218         * syntax.c (syntax_match): Use it.
14219
14220         * cmds.c: Import auto-fill-chars from FSF Emacs.
14221         (Vauto_fill_chars): New variables.
14222         (internal_self_insert): Check Vauto_fill_chars.
14223         (vars_of_cmds):
14224         Declare auto-fill-chars as a Lisp variable and initialize it.
14225
14226 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14227
14228         * fileio.c (Fmake_symbolic_link):
14229         (Ffile_symlink_p):
14230         Run handlers even if local machine doesn't have symlinks.
14231
14232 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14233
14234         * event-msw.c (mswindows_drain_windows_queue):
14235         Don't generate paint magic events for non-XEmacs frames.
14236
14237 2000-03-05  Andy Piper  <andy@xemacs.org>
14238
14239         * redisplay.c (redisplay_frame): generate_displayable_area and
14240         friends assumes that we are not in GC, we therefore have to make
14241         sure that this doesn't happen.
14242
14243         * gutter.c (calculate_gutter_size): generate_displayable_area
14244         assumes that we are not in GC, we therefore have to make sure that
14245         this doesn't happen.
14246
14247 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14248
14249         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14250
14251 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14252
14253         * redisplay.c (regenerate_window): Make sure we set a sane value
14254         for end_pos even if we jump out of the loop.
14255         (regenerate_window): Answer Ben's question :-).
14256         (start_end_of_last_line): Add may_error argument.
14257         (start_of_last_line):
14258         (end_of_last_line): Pass may_error = 0.
14259         (end_of_last_line_may_error): New function.
14260         (pixel_to_glyph_translation): Use it, so we don't crash in
14261         event_to_glyph.
14262
14263 2000-03-04  Andy Piper  <andy@xemacs.org>
14264
14265         * window.h (struct window): add gutter_extent_modiff.
14266
14267         * window.c (allocate_window): zero out gutter_extent_modiff.
14268
14269         * redisplay.h: declare sync_display_line_structs.
14270
14271         * redisplay.c (add_glyph_rune): add a better comment.
14272
14273         * redisplay-output.c (sync_display_line_structs): made non-static.
14274         (compare_runes): remove unneccesary glyph cachel access.
14275
14276         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14277
14278         * gutter.c (output_gutter): don't output the gutter if extent
14279         changes only involve extents in buffers. use 4 sets of display
14280         lines.
14281         (gutter_extent_signal_changed_region_maybe): new function. Mark
14282         extents in gutters as changed.
14283         (update_frame_gutters): use 4 sets of display lines.
14284         (reset_gutter_display_lines): ditto.
14285         (free_frame_gutters): ditto.
14286         (redraw_exposed_gutter): force output of gutters.
14287
14288         * frame.h (struct frame): add 4 sets of gutter display lines.
14289
14290         * extents.c: (extent_changed_for_redisplay): signal changes to
14291         extents in strings in the gutter as well as extents in buffers.
14292
14293 2000-03-02  Andy Piper  <andy@xemacs.org>
14294
14295         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14296
14297         * frame.c (Fmake_frame): make sure the gutters get initialized
14298         after the frame is visible.
14299         (set_frame_selected_window): re-arrange compilation macros a
14300         little.
14301         (change_frame_size_1): mark gutters changed.
14302
14303         * device.c (Fset_device_class): mark gutters changed.
14304
14305 2000-03-01  Andy Piper  <andy@xemacs.org>
14306
14307         * window.c (window_top_frame_gutter_height): deleted.
14308         (window_bottom_frame_gutter_height): ditto.
14309         (window_left_frame_gutter_height): ditto.
14310         (window_right_frame_gutter_height): ditto.
14311         (window_top_gutter_height): don't use them.
14312         (window_bottom_gutter_height): ditto.
14313         (window_left_gutter_width): ditto.
14314         (window_right_gutter_width): ditto.
14315         (Fsplit_window): ditto.
14316         (Fwindow_pixel_edges): don't use border dimensions here.
14317
14318         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14319         (update_scrollbar_instance): ditto.
14320
14321         * redisplay.c (generate_modeline): don't take gutters into account.
14322         (generate_modeline): ditto.
14323         (redisplay_frame): small gutter display optimization.
14324
14325         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14326
14327         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14328         gutters into account.
14329
14330         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14331         for window position and type.
14332
14333         * gutter.c (get_gutter_coords): fix for frame gutters.
14334         (update_frame_gutters): update frame geometry if the gutters have
14335         changed.
14336         (init_frame_gutters): record current gutter geometries.
14337
14338         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14339         var.
14340         (mswindows_widget_instantiate): ditto.
14341
14342         * frame.h (struct frame): add current_gutter_bounds.
14343
14344         * frame.c (change_frame_size_1): position window and minibuffer
14345         appropriately taking into account the frame gutters.
14346
14347         * frame-x.c: (x_initialize_frame_size): take into account the
14348         frame gutters.
14349
14350 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14351
14352         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14353
14354 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14355
14356         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14357
14358 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14359
14360         * file-coding.c (reset_decoding_stream): Clear previous
14361         detection state when autodetect.
14362
14363 2000-02-29  Didier Verna  <didier@xemacs.org>
14364
14365         * extents.c (set_extent_glyph_1): don't require extents to be
14366         attached.
14367
14368 2000-02-27  Andy Piper  <andy@xemacs.org>
14369
14370         * gutter.c (Fset_default_gutter_position): don't default left and
14371         right gutter visibility to t.
14372         (Fset_default_gutter_position): run
14373         default-gutter-position-changed-hook.
14374         (syms_of_gutter): add default-gutter-position-changed-hook.
14375
14376 2000-02-26  Andy Piper  <andy@xemacs.org>
14377
14378         * specifier.c (Fmake_specifier): add gutter references.
14379
14380         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14381
14382         * lisp.h: declare Fvalid_plist_p.
14383
14384         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14385         as changed.
14386         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14387         well as its visibility so that it gets reconstructed.
14388         (construct_window_gutter_spec): new function. Construct a string
14389         to be displayed in the gutter from a plist of strings. Take care
14390         to only use elements that are declared as visible.
14391         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14392         WINDOW_GUTTER.
14393         (gutter_validate): allow plists of strings in the specifier.
14394         (gutter_specs_changed): construct the real_gutter from the gutter
14395         specs using construct_window_gutter_spec.
14396         (gutter_visible_validate): gutter-visible is a new specifier type.
14397         (Fgutter_visible_specifier_p): new function for the new specifier.
14398         (syms_of_gutter): declare gutter-visible and
14399         Fgutter_visible_specifier_p.
14400         (specifier_type_create_gutter): intitalize new gutter-visible
14401         specifier.
14402         (reinit_specifier_type_create_gutter): ditto.
14403         (specifier_vars_of_gutter): use new specifier type for gutter
14404         visibility.
14405         (init_frame_gutters): construct real_gutter correctly.
14406         (Fgutter_specifier_p): beef up documentation.
14407         (Fgutter_size_specifier_p): ditto.
14408
14409         * winslots.h: add real_gutter slots.
14410
14411 2000-02-25  Andy Piper  <andy@xemacs.org>
14412
14413         * device-msw.c: Be kind to older cygwin versions. From Raymond
14414         Toy <toy@rtp.ericsson.se>.
14415
14416         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14417         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14418
14419 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14420
14421         * elhash.c (MARK_OBJ): Practice macro hygiene.
14422
14423 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14424
14425         * miscplay.c: s/__inline__/inline/g;
14426         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14427         (get_device_compdc): INLINE ==> static inline
14428         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14429         find -name '*.h' | \
14430         xargs global-replace \
14431         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14432
14433 2000-02-25  Andy Piper  <andy@xemacs.org>
14434
14435         * window.c (window_top_frame_gutter_height): new function.
14436         (window_top_window_gutter_height): ditto.
14437         (window_top_gutter_height): use them.
14438         (window_bottom_frame_gutter_height): new function.
14439         (window_bottom_window_gutter_height): ditto.
14440         (window_bottom_gutter_height): use them.
14441         (window_left_window_gutter_width): new function.
14442         (window_left_frame_gutter_width): ditto.
14443         (window_left_gutter_width): use them.
14444         (window_right_window_gutter_width): new function.
14445         (window_right_frame_gutter_width): ditto.
14446         (window_right_gutter_width): use them.
14447         (window_pixel_height): new function. calulate window pixel height
14448         with frame gutter involvement.
14449         (Fsplit_window): calculate new sizes taking frame gutters into
14450         account.
14451         (window_char_height_to_pixel_height): don't include frame gutters.
14452         (window_char_height): use window_pixel_height.
14453         (window_pixheight): rename from window_pixel_height.
14454         (change_window_height): use it.
14455         (window_pixel_height_to_char_height): don't include frame gutters.
14456         (window_char_width_to_pixel_width): ditto.
14457
14458 2000-02-25  Andy Piper  <andy@xemacs.org>
14459
14460         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14461         if it is.
14462
14463 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14464
14465         * alloc.c (staticpro):
14466         (staticpro_nodump):
14467         (dumpstruct):
14468         (dumpopaque):
14469         (pdump_wire):
14470         (pdump_wire_list):
14471         (compact_string_chars):
14472         (pdump_dump_wired):
14473         Convert:  if (foo) abort();  ==>  assert (! foo);
14474
14475         * eldap.c (Fldap_search_basic):
14476         (Fldap_add):
14477         (Fldap_modify):
14478         (Fldap_delete):
14479         Fix compiler warnings, and possible crashes if (random) return
14480         value were to be used.
14481
14482 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14483
14484         * device-msw.c: Workaround ResetDC failure.
14485
14486         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14487         applying a devmode.
14488
14489         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14490         (mswindows_text_width): Do not start printer page.
14491
14492         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14493
14494         * glyphs-msw.c: Added image methods to msprinter console and
14495         msprinter-specific image instantiation.
14496
14497 2000-02-20  Mike Alexander  <mta@arbortext.com>
14498
14499         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14500         to avoid crashes when selection-sets-clipboard is on
14501         (mswindows_own_selection): ditto
14502
14503 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14504
14505         * glyphs-msw.c:
14506         * redisplay-msw.c (get_frame_dc):
14507         (get_frame_compdc):
14508         * console-msw.h:
14509         * device-msw.c (mswindows_init_device):
14510         (mswindows_delete_device):
14511         (msprinter_init_device):
14512         (msprinter_delete_device):
14513         * frame-msw.c (mswindows_init_frame_1):
14514         (mswindows_delete_frame):
14515         (msprinter_init_frame_3):
14516         (msprinter_delete_frame): Move compatible DC to device object from
14517         frame object, for both mswindows and msprinter. Only one at a time
14518         is needed, it is a real waste to have one per frame!
14519
14520 2000-02-23  Andy Piper  <andy@xemacs.org>
14521
14522         * glyphs.c: add dynamic width and height elements.
14523         (image_instance_equal): ditto.
14524
14525         * glyphs-widget.c (widget_query_geometry): calculate width and
14526         height dynamically if required.
14527         (initialize_widget_image_instance): initialize dynamic dimensions.
14528         (widget_instantiate): pick-up dynamic dimensions.
14529
14530         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14531         dynamic determination. Add appropriate macros.
14532
14533         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14534         dimensions safe.
14535         (WINDOW_GUTTER_SIZE): ditto.
14536         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14537
14538         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14539         inline.
14540         (get_frame_dc): ditto.
14541
14542         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14543         here.
14544
14545 2000-02-23  Martin Buchholz <martin@xemacs.org>
14546
14547         * XEmacs 21.2.31 is released.
14548
14549 2000-02-22  Ben Wing <ben@xemacs.org>
14550
14551         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14552
14553 2000-02-22  Andy Piper  <andy@xemacs.org>
14554
14555         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14556
14557 2000-02-21  Mike Sperber <mike@xemacs.org>
14558
14559         * .dbxrc:
14560         * .gdbinit:
14561         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14562         variables.
14563
14564 2000-02-21  Mike Sperber <mike@xemacs.org>
14565
14566         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14567
14568 2000-02-21  Martin Buchholz <martin@xemacs.org>
14569
14570         * XEmacs 21.2.30 is released.
14571
14572 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14573
14574         Performance hacking.
14575         * *.c (syms_of_*):
14576         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14577         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14578         * emacs.c (main_1):
14579         * lisp.h (DEFUN):
14580         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14581         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14582         * symeval.h (DEFVAR_SYMVAL_FWD):
14583         * symbols.c (guts_of_unbound_marker):
14584         Make all c_readonly objects also lisp_readonly and marked for life.
14585         * lrecord.h (struct lrecord_implementation):
14586         Document flags better.
14587         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14588         * lrecord.h (DECLARE_LRECORD):
14589         * lrecord.h (XSETRECORD):
14590         * lrecord.h (RECORDP):
14591         * lrecord.h (RECORD_TYPEP):
14592         * lrecord.h (RECORD_MARKER): New.
14593         * lrecord.h (error_check_*):
14594         * lrecord.h (CONCHECK_NONRECORD):
14595         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14596         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14597         * lrecord.h (set_lheader_implementation):
14598         * lrecord.h (enum lrecord_type): New.
14599         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14600         * alloc.c (disksave_object_finalization_1):
14601         * alloc.c (mark_object):
14602         * alloc.c (lrecord_type_index):
14603         * alloc.c (tick_lcrecord_stats):
14604         * alloc.c (Fgarbage_collect):
14605         * alloc.c (init_alloc_once_early):
14606         * alloc.c (pdump_load):
14607         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14608         * alloc.c (lrecord_type_index): Delete.
14609         Make lisp object type indexes be constant.
14610           Makes (byte-compile) 5% faster.
14611         Put all marker functions into their own array.
14612           Makes (garbage-collect) 5% faster.
14613         Optimize SYMBOL_VALUE_MAGIC_P.
14614           Makes (byte-compile) 2-3% faster.
14615         * config.h.in (gc_checking_assert): New.
14616         * alloc.c: Use gc_checking_assert().
14617         * .dbxrc: Make compatible with new object type implementation.
14618         * .gdbinit: Make compatible with new object type implementation.
14619         * alloc.c: Delete all symbols defined only for debugging, such as
14620         Lisp_Type_Vector and lrecord_charset.
14621
14622 2000-02-21  Andy Piper  <andy@xemacs.org>
14623
14624         * gui-msw.c (Fmswindows_shell_execute): fix file location
14625         problems.
14626
14627         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14628         unshowing so that set_window_buffer doesn't undo
14629         kill_buffer_hook's hard work.
14630
14631         * glyphs-widget.c (tab_control_query_geometry): don't count the
14632         first item when calculating geometry.
14633
14634         * glyphs.c (map_subwindow): remove redundant code.
14635         (update_frame_subwindows): be more circumspect about when to
14636         update subwindows.
14637
14638         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14639         when items haven't changed. Update faces if faces have changed as
14640         well as just the widget face.
14641         (x_tab_control_update): Update faces if faces have changed as well
14642         as just the widget face.
14643
14644 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14645
14646         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14647         registration.
14648         (build_syscolor_string): Use mswindows_color_to_string to try to
14649         get a named color.
14650         (mswindows_device_system_metrics): Reverse the foreground and
14651         background colors so that they match the documentation.
14652
14653         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14654         they match the default Windows palette.
14655         (mswindows_color_to_string): New function.
14656
14657 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14658
14659         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14660
14661 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14662
14663         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14664         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14665
14666         * symbols.c (init_symbols_once_early): Removed obsolete
14667         DATA_SEG_BITS related kludge.
14668         (defvar_magic): Ditto.
14669
14670         * malloc.c: Removed obsolete DATA_SEG_BITS
14671         * ralloc.c: Ditto.
14672         * mem-limits.h: Ditto.
14673
14674         * Makefile.in.in: Removed obsolete HAVE_SHM
14675         * emacs.c: Ditto.
14676
14677 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14678
14679         *  device-msw.c (mswindows_delete_device): Free DDE string
14680         handles.
14681
14682 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14683
14684         * keymap.c (get_keyelt):
14685         * unexnt.c (unexec):
14686         * vm-limit.c (memory_warnings):
14687         * ntheap.c (recreate_heap):
14688         * ntheap.h (UNINIT_PTR):
14689         * select-msw.c (Fmswindows_get_clipboard):
14690         (Fmswindows_set_clipboard):
14691         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14692         * objects-msw.c:
14693         * menubar-msw.c (displayable_menu_item):
14694         * glyphs-msw.c:
14695         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14696         * sysdep.c (sys_subshell):
14697         * process-nt.c (nt_create_process):
14698         * nt.c (normalize_filename):
14699         (dostounix_filename):
14700         (unixtodos_filename):
14701         * ntproc.c (win32_executable_type):
14702         * ntplay.c (play_sound_data_1):
14703         (play_sound_file):
14704         * editfns.c (get_home_directory):
14705         * event-msw.c (struct winsock_stream):
14706         (mswindows_dde_callback):
14707         * device-msw.c (msprinter_init_device):
14708         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14709
14710         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14711         mswindows_clear_toolbar were swapped!
14712
14713         * objects-msw.c:(colormap_t):
14714         (fontmap_t):
14715         * emacs.c (struct standard_args): Fixed const jumble.
14716
14717         * glyphs-widget.c (update_widget): Fixed comparison notation.
14718
14719         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14720
14721         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14722         __declspec(noreturn) syntax.
14723
14724 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14725
14726         * eldap.c (Fldap_open):
14727         (Fldap_search_basic):
14728         (Fldap_add):
14729         (Fldap_modify):
14730         Use new coding system conversion macros.
14731
14732 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14733
14734         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14735
14736 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14737
14738         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14739         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14740
14741         * eldap.c (Qadd, Qreplace): New constant symbols
14742         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14743         interruptions by XEmacs signals
14744         Remove unnecessary calls to slow_down_interrupts and
14745         speed_up_interrupts
14746         (Fldap_search_basic): Renamed from Fldap_search_internal
14747         Added new optional parameter VERBOSE that triggers the
14748         display of progress messages
14749         Remove unnecessary calls to slow_down_interrupts and
14750         speed_up_interrupts
14751         LDAP result code analysis rewritten
14752         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14753         (syms_of_eldap): Define the new symbols and functions
14754
14755
14756 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14757
14758         * realpath.c: Determine PATH_MAX maximally portably.
14759
14760         * insdel.c (bytecount_to_charcount): Optimize.
14761         The function used to be optimized for entirely ASCII sequences.
14762         Now it is optimized for successive characters from the same
14763         charset.  This also wins big for _mostly_ ASCII sequences.
14764
14765         * fileio.c (Ffile_truename): convert return from realpath() using
14766         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14767         - Rewrite GCPROing slightly.
14768
14769         * sysdep.c (sys_open): Do filename conversion, like all other
14770         sys_* functions.  Fixes bug:
14771         (let ((file-name-coding-system 'iso-8859-2))
14772            (write-region x y latin2-name))
14773         ==> writes filename using internal encoding.
14774
14775 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14776
14777         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14778         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14779         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14780         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14781         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14782         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14783         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14784         (CONST_IF_NOT_DEBUG): Delete.
14785         * alloc.c (this_one_is_unmarkable): Delete.
14786         (mark_object): Don't check for this_one_is_unmarkable. Use the
14787         c_readonly flag instead.
14788         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14789
14790 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14791
14792         * event-msw.c (mswindows_drain_windows_queue):
14793         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14794         away redundant repaint events.
14795
14796 2000-02-17  Andy Piper  <andy@xemacs.org>
14797
14798         * redisplay.h: declare mark_redisplay_structs.
14799
14800         * redisplay.c (redisplay_window):
14801         (redisplay_frame): don't check subwindows_state_changed.
14802         (mark_redisplay): mark gutters here.
14803
14804         * glyphs.c: (instantiate_image_instantiator): always layout if we
14805         haven't done so already.
14806         (allocate_image_instance): don't mark as dirty.
14807         (update_subwindow): bind inhibit_quit.
14808
14809         * gutter.c (mark_gutters): new function.
14810
14811         * glyphs-x.c (x_update_widget): Always resize to get round a
14812         widget bug.
14813
14814         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14815         breaking absolutely everything.
14816
14817         * gutter.h: declare mark_gutters.
14818
14819 2000-02-16  Martin Buchholz <martin@xemacs.org>
14820
14821         * XEmacs 21.2.29 is released.
14822
14823 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14824
14825         * fns.c (size_bit_vector): Fix computation of the size.
14826
14827 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14828
14829         * *.[ch]: Change CONST to const globally.
14830         find -name '*.[ch]' | \
14831         xargs global-replace \
14832         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14833         - Remove vestigial references to CONST_IS_LOSING
14834
14835 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14836
14837         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14838         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14839         events instead of dispatching them directly.
14840         (mswindows_handle_paint): New function to do repainting.
14841         (mswindows_wnd_proc):
14842         (emacs_mswindows_handle_magic_event): Call above function.
14843
14844 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14845
14846         * objects-msw.c (mswindows_create_font_variant): Return the new
14847         font handle.
14848         (initialize_font_instance): Get font metrics from the underlined
14849         variant of the font to cope with the case where the underlined
14850         font has a bigger descent.
14851
14852 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14853
14854         * gui.c (gui_item_accelerator): Return the first underlined
14855         character in item name.
14856
14857 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14858
14859         * lisp.h: Added Qprinter.
14860
14861         * general.c (syms_of_general): Initialized it.
14862
14863         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14864         (get_frame_dc):
14865         (get_frame_compdc): Made inline.
14866
14867         * console.h (struct console_methods): Added eject_page method.
14868
14869         * frame.h: Added FRAME_DISPLAY_P and friends.
14870         Aligned backslahes in many macros in more readable fashion.
14871         Added page_number to struct frame, and an accessor macro
14872         for it.
14873
14874         * defice.h: Added DEVICE_DISPLAY_P and friends.
14875
14876         * device.c (Fdevice_printer_p): Used these.
14877
14878         * frame.c (allocate_frame_core): Initialize page number.
14879         (Fprint_job_page_number):
14880         (Fprint_job_eject_page): Implemented.
14881
14882         * frame-msw.c (msprinter_eject_page): Added method.
14883         (msprinter_start_page): Added.
14884
14885         * window.c (Fwindow_truncated_p): Fixed docstring.
14886         (Fwindow_last_line_visible_height): Implemented.
14887
14888 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14889
14890         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14891
14892 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14893
14894         * syntax.c (scan_words): Always advance at least one character.
14895
14896 2000-02-13  Andy Piper  <andy@xemacs.org>
14897
14898         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14899         to make sure the glyph is in the cachels.
14900
14901         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14902         global image instance flag.
14903         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14904         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14905
14906         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14907         (Fset_image_instance_property): mark layout as changed.
14908         (invalidate_glyph_geometry_maybe): mark layout as changed.
14909         (glyph_width): use new NEEDS_LAYOUT macro.
14910         (glyph_ascent): ditto.
14911         (glyph_descent): ditto.
14912         (glyph_height): ditto.
14913         (image_instance_layout): mark layout as clean after laying out.
14914         (update_subwindow): don't mark layout as clean here.
14915
14916         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14917         should no longer be needed.
14918
14919         * glyphs-x.c (x_update_widget): sanitize asserts.
14920         (x_finalize_image_instance): sanitize assignment to widgets.
14921
14922         * glyphs-widget.c (widget_instantiate): don't need to clear the
14923         layout flag here.
14924
14925 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14926
14927         * sysdep.c (getcwd): Use standard prototype.
14928         * sysdep.h (getcwd): Use standard prototype.
14929
14930         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14931         (sequence, start, end).
14932         Remove redundant type checking.
14933         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14934         view of `caller-protects') to avoid a crash where the real fix was
14935         found elsewhere.
14936
14937 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14938
14939         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14940
14941         * s/sol2.h: Remove feature macro initialization.
14942
14943         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14944         (vector_hash): New.  Code from internal_hash.
14945         * lrecord.h:
14946         Fix up allocation subsystem comments.
14947
14948         * config.h.in: Add __EXTENSIONS__ for Solaris.
14949
14950         * systime.h (EMACS_GETTIMEOFDAY): New.
14951         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14952         Remove Solaris-specific code.
14953         Use void* for the (ignored) second arg for gettimeofday().
14954
14955         * elhash.c (hash_table_hash): Implement it, finally.
14956         * elhash.c:  Use hashcode_t.
14957
14958         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14959         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14960
14961         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14962         * fns.c (size_bit_vector):
14963         * alloc.c (size_vector):
14964         (make_vector_internal):
14965         (make_bit_vector_internal):
14966         (sweep_bit_vectors_1):
14967         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14968
14969 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14970
14971         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14972         Include strings.h to avoid warnings for bzero and strcasecmp.
14973
14974 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14975
14976         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14977         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14978
14979         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14980         sequence.
14981
14982 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14983
14984         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14985         use a value field instead.
14986         (symbol_value_forward_forward): Use value field.
14987         (DEFVAR_SYMVAL_FWD): Use value field.
14988         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14989         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14990         (DEFVAR_CONST_INT): Ditto.
14991         (DEFVAR_BOOL): Ditto.
14992         (DEFVAR_CONST_BOOL): Ditto.
14993         (DEFVAR_INT_MAGIC): Ditto.
14994         (DEFVAR_BOOL_MAGIC): Ditto.
14995
14996         * symbols.c (guts_of_unbound_marker): Use value field.
14997         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14998         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14999
15000         * lisp.h: Declare dumpopaque and noninteractive1.
15001
15002         * alloc.c (dumpopaque): Added.
15003         (pdump_dump_opaquevec): Added.
15004         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15005         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15006         noninteractive.
15007
15008 2000-02-10  Andy Piper  <andy@xemacs.org>
15009
15010         * glyphs.c (image_instance_layout): if the size changes, mark it
15011         as such.
15012
15013         * redisplay-output.c (redisplay_output_layout): Update the
15014         subwindow here.
15015         (redisplay_output_subwindow): ditto.
15016
15017         * glyphs.c (update_subwindow): make sure we reset flags for
15018         layouts as well as everything else.
15019
15020         * glyphs-widget.c (layout_layout): don't need to set the instances
15021         dimensions here.
15022
15023 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15024
15025         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15026         not HAVE_DLOPEN, which is a lower-level thing.
15027
15028         * .cvsignore: Ignore gmon.out
15029
15030 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15031
15032         * .cvsignore: Ignore portable dumper xemacs.dmp file
15033
15034 2000-02-09  Andy Piper  <andy@xemacs.org>
15035
15036         * redisplay-output.c (redisplay_output_layout): be more clever
15037         about when we output based on the changed flags.
15038
15039         * glyphs.h (struct image_instantiator_methods): add update_method.
15040         (struct Lisp_Image_Instance): add changed flags. Declare new
15041         macros for manipulating them.
15042
15043         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15044         (image_instance_parent_glyph): find an image_instance's parent
15045         glyph or image_instance.
15046         (image_instance_layout): mark the size as changed.
15047         (set_image_instance_dirty_p): new function. mark an image
15048         instance, plus all of its parents, as dirty.
15049         (Fset_image_instance_property): use it.
15050         (Fglyph_animated_timeout_handler): use it.
15051         (update_subwindow): call update_widget and device methods for
15052         update_subwindow. Mark all changed flags as clean.
15053         (Fresize_subwindow): mark size as changed.
15054
15055         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15056         failures.
15057         (x_update_subwindow): only resize subwindows here.
15058         (x_update_widget): new function. Update all changed properties of
15059         a widget.
15060         (x_resize_subwindow): deleted.
15061         (x_widget_set_property): deleted.
15062         (x_progress_gauge_set_property): deleted.
15063         (x_progress_gauge_update): new function. Implement recorded
15064         changes.
15065         (x_tab_control_update): ditto.
15066         (x_tab_control_set_property): deleted.
15067         (console_type_create_glyphs_x): declare new functions.
15068         (image_instantiator_format_create_glyphs_x): ditto.
15069
15070         * glyphs-widget.c (widget_set_property): mark text changed.
15071         (update_widget): new function. Update properties of a widget.
15072         (widget_instantiate): for layouts make sure we set their
15073         children's parent correctly.
15074         (tab_control_set_property): new function. Record changes that will
15075         take place under redisplay's control.
15076         (progress_gauge_set_property): ditto.
15077         (image_instantiator_progress_guage): declare new functions.
15078         (image_instantiator_tab_control): ditto.
15079
15080         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15081         now.
15082         (mswindows_update_widget): new function. Update all properties on
15083         a widget that have changed.
15084         (mswindows_button_update): new function. Update a button's set
15085         state.
15086         (mswindows_tab_control_update): new function. Update the items in
15087         a tab.
15088         (mswindows_tab_control_set_property): deleted.
15089         (mswindows_progress_gauge_update): new function. Update the
15090         progress gauge's progress.
15091         (mswindows_widget_set_property): deleted. This is all done
15092         asynchronously now.
15093         (mswindows_progress_gauge_set_property): ditto.
15094         (console_type_create_glyphs_mswindows): declare new methods.
15095         (image_instantiator_format_create_glyphs_mswindows): ditto.
15096
15097         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15098         (msprinter_set_frame_properties): ditto.
15099
15100         * console.h (struct console_methods): Add update_widget_method.
15101
15102 2000-02-09  Andy Piper  <andy@xemacs.org>
15103
15104         * gui-msw.c (Fmswindows_shell_execute): Make
15105         mswindows-shell-execute industrial strength.
15106
15107 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15108
15109         * lrecord.h: Make macro argument `props' match member function `plist'.
15110         * fns.c (Fget):
15111         * fns.c (Fput):
15112         * fns.c (Fremprop):
15113         * fns.c (Fobject_plist):
15114         * alloc.c:
15115         * symbols.c:
15116         Object property list frobbing cleanup.
15117         - Allow any lisp object (compared with `eq'), not just symbols, as
15118           keys in object plists.
15119         - Move symbol plist frobbing into symbols.c, where it belongs.
15120         - Move string plist frobbing into alloc.c, where it belongs.
15121         - Everything's an lrecord now, so no need to test for symbolp, etc.
15122         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15123
15124         * extents.c: Reorder code to remove declarations.
15125
15126         * frame.h (store_in_alist): Remove useless declaration.
15127
15128 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15129
15130         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15131         * config.h.in: Add HAVE_XCONVERTCASE.
15132
15133 2000-02-07  Andy Piper  <andy@xemacs.org>
15134
15135         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15136         it breaks many things.
15137
15138 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15139
15140         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15141         actually can start a common comment type.
15142         * src/syntax.h (SYNTAX_END_P): ditto for end.
15143
15144 2000-02-07  Martin Buchholz <martin@xemacs.org>
15145
15146         * XEmacs 21.2.28 is released.
15147
15148 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15149
15150         * event-Xt.c (x_keysym_to_character): New.
15151         (maybe_define_x_key_as_self_inserting_character): New.
15152         (x_has_keysym): New.
15153         Auto-define all keys on the keyboard as self-insert-key.
15154
15155 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15156
15157         * menubar.c (vars_of_menubar): A small code simplification.
15158
15159         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15160
15161         * ExternalShell.c:
15162         * ExternalClient.c:
15163         * EmacsShell-sub.c:
15164         * EmacsManager.c:
15165         * EmacsFrame.c:
15166         Use consistent style for specifying X resources.
15167
15168         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15169         This makes (dontusethis-set-symbol-value-handler) actually usable.
15170
15171         * lrecord.h (lrecord_decription_type):
15172         * alloc.c (pdump_register_sub):
15173         (pdump_dump_data):
15174         (pdump_reloc_one):
15175         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15176         Comply with XEmacs coding style.
15177         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15178         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15179
15180         * keymap.c (Faccessible_keymaps):
15181         Make (accessible-keymaps map "\C-h") do the Right Thing.
15182         Make (accessible-keymaps map []) do the Right Thing.
15183         Make (accessible-keymaps map "") do the Right Thing.
15184         (check_keymap_definition_loop): New function.
15185         (keymap_store_internal): Keep luser from shooting self in foot,
15186           via (define-key ctl-x-4-map "p" global-map).
15187         Remove fullness slot from struct Lisp_Keymap, since hash tables
15188         are now reliable.
15189         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15190
15191 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15192
15193         * redisplay.c (init_redisplay): Fix small memory leak.
15194         * elhash.h:
15195         * elhash.c (pdump_reorganize_hash_table):
15196         Rename from reorganize_hash_table. Change prototype.
15197         Reuse the original memory for hentries.  Save 100k.
15198         * alloc.c (PDUMP_READ): new macro.
15199         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15200         * alloc.c: No need to #ifndef before #undef.
15201
15202         * print.c: Allow debug_print() to print readably by modifying
15203         debug_print_readably.  Use consistent variable names.
15204
15205         * .dbxrc: Try to get things to work even if stopped in a function
15206         without source available by explicitly specifying source files.
15207 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15208
15209         * unexnt.c (_start): Removed bogus code which caused loading heap
15210         from differrent executable file.
15211         Removed bogus assignment to _fmode, which caused inconsistencies.
15212
15213 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15214
15215         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15216         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15217         Do not preliminary `#define signal sigset'.
15218
15219         * systime.h: Do not prototype environ on windows nt and cygwin,
15220         this conflicts with system header.
15221
15222         * syssignal.h: Use correct define for WINDOWSNT
15223
15224         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15225         with system header.
15226
15227         * sysdep.c (near start of file): Fixed commentary and rearranged
15228         ifdefs in readable order.
15229         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15230         (start_of_text):
15231         (end_of_text):
15232         (end_of_data): Do not compile in if using PDUMP.
15233
15234         * symsinit.h: Prototyped vars_of_nt().
15235
15236         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15237         (find_child_console): Use it.
15238         (sys_kill): Use it.
15239
15240         * ntheap.h: Do not extern os_subtype.
15241
15242         * ntheap.c (cache_system_info): Do not cache unneeded:
15243         nt_major_version, nt_minor_version and os_subtype.
15244         (recreate_heap): Do not compile in when PDUMPing.
15245
15246         * nt.c (geteuid and friends): Use the new varibale
15247         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15248         (init_user_info): Removed the above mentioned hackery.
15249         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15250         stat has been fixed in the C runtime.
15251         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15252
15253         * file-coding.c (struct file_coding_dump): Do not define
15254         ucs_to_mule_table in the struct if not MULE.
15255         (struct struct lrecord_description fcd_description_1): Do not dump
15256         the above.
15257
15258         * emacs.c (main_1): Call vars_of_nt().
15259         (right before Fdump_emacs_data): Don't need lastfile if using both
15260         portabe dumper and system malloc.
15261
15262         * alloc.c (Fmemory_limit): Conditionalized out.
15263         (pdump): Use OPEN_BINARY for the portable dump file.
15264         (pdump_load): Ditto.
15265
15266 2000-02-02  Mike Alexander  <mta@arbortext.com>
15267
15268         * nt.c (convert_time): Set tm_isdst before calling mktime and
15269         avoid calling it at all if the compiler supports 64 bit integers.
15270         Also initialize utc_base_ft before using it.
15271
15272 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15273
15274         * frame.c (change_frame_size_1): Take f->internal_border_width
15275         into consideration when calculating the width of the frame.
15276
15277 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15278
15279         * window.c (frame_min_height):
15280         (frame_size_valid_p):
15281         (frame_pixsize_valid_p): Added.
15282         (check_frame_size): Generalized.
15283
15284         * window.h: Prototyped the above.
15285
15286         * lisp.h:
15287         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15288         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15289         Deleted Vwin32_* and Vbinary_process_* unused variables.
15290
15291         * device-msw.c (msprinter_init_device): Do not get printer font
15292         list; Added DEVMODE functions.
15293
15294         * frame-msw.c: Added lots of printer code.
15295
15296         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15297         general.c.
15298
15299         * console-msw.h: Added more msprinter device private slots.
15300
15301 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15302
15303         * event-msw.c (key_needs_default_processing_p): Added.
15304         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15305
15306 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15307
15308         * glyphs.c (image_instance_layout): Mark image instance as clean
15309         after layout.
15310         (glyph_dirty_p): Removed redundant function.
15311         (invalidate_glyph_geometry_maybe): Added.
15312         (update_glyph_cachel_data): Call it.
15313
15314         * glyphs.h: Prototyped it.
15315
15316         * redisplay.c (add_glyph_rune): Call it.
15317         (redisplay_window): Reset glyphs cachels when frame faces have
15318         changed, thus forcing recomputation of built-in border glyphs.
15319
15320 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15321
15322         * Makefile.in.in: Make portable dumper and purify play well together.
15323         Add imperfect, but better than nothing, support for pdump.
15324         Remove xemacs.dmp when temacs is re-generated.
15325         Don't ignore errors when dumping xemacs.
15326
15327         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15328
15329 2000-01-28  Andy Piper  <andy@xemacs.org>
15330
15331         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15332         (setup_normal_frame): ditto.
15333         (setup_frame_without_minibuffer): ditto.
15334         (setup_minibuffer_frame): ditto.
15335         (delete_frame_internal): ditto.
15336         (Fmake_frame_invisible): ditto.
15337         (Ficonify_frame): ditto.
15338
15339         * window.h: change Fset_window_buffer signature.
15340
15341         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15342         (Fset_window_buffer): allow recording of buffer if the window is
15343         the selected window.
15344         (window_loop): Use new Fset_window signature.
15345
15346 2000-01-23  Daniel Pittman  <daniel@danann.net>
15347
15348         * config.h.in: Added template for `HAVE_ATHENA_3D'
15349
15350 2000-01-29  Andy Piper  <andy@xemacs.org>
15351
15352         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15353
15354         * gutter.c (output_gutter): Don't output if the window isn't live.
15355
15356 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15357
15358         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15359         of 01/12/00: Moved SetFocus back here where it belongs.
15360
15361 2000-01-23  Andy Piper  <andy@xemacs.org>
15362
15363         * s/cygwin32.h: declare printer things.
15364
15365 2000-01-26  Andy Piper  <andy@xemacs.org>
15366
15367         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15368         Alexander.
15369
15370 2000-01-24  Andy Piper  <andy@xemacs.org>
15371
15372         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15373         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15374
15375         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15376
15377         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15378
15379         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15380
15381         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15382         (mswindows_output_display_block): Avoid local shadows.
15383
15384         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15385         (mswindows_enqueue_mouse_button_event): ditto.
15386         (mswindows_handle_gui_wm_command): remove declaration.
15387
15388         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15389         warnings.
15390
15391         * console-msw.h: Avoid shadows.
15392         (mswindows_get_toolbar_button_text):
15393         (emacs_mswindows_create_stream_pair):
15394         (emacs_mswindows_delete_stream_pair):
15395         (mswindows_handle_toolbar_wm_command): declare.
15396
15397         * device-msw.c (build_syscolor_string): Avoid shadows.
15398
15399 2000-01-23  Andy Piper  <andy@xemacs.org>
15400
15401         * glyphs-widget.c (widget_instantiate): reverse the items for
15402         layouts so that children are in the expected order.
15403
15404 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15405
15406         * ralloc.c: safe_bcopy ==> memmove
15407         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15408         * s/msdos.h: Remove BCOPY macros.
15409         * insdel.c (gap_right): Remove BCOPY conditional code.
15410         * insdel.c (gap_left): Remove BCOPY conditional code.
15411         XEmacs demands a working ANSI C compiler - hence memmove.
15412
15413         * regex.c (regex_compile): Remove accidental use of trigraphs.
15414
15415 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15416
15417         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15418         event timestamp.
15419
15420 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15421
15422         * event-msw.c (mswindows_drain_windows_queue): Added the
15423         parameter.
15424         (mswindows_need_event): Commented the call to
15425         mswindows_drain_windows_queue().
15426         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15427         only.
15428
15429         * console-msw.h: Moved a few function prototypes here from
15430         event-msw.c.
15431
15432         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15433         parameter from unsigned short to unsigned long.
15434         (Fmswindows_shell_execute): Added return value.
15435
15436 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15437
15438         * sysdep.c (init_system_name):
15439           process-unix.c (unix_canonicalized_host_name):
15440         Don't call freeaddrinfo() if getaddrinfo() fails.
15441
15442         * process-unix.c (unix_open_unix_network_stream):
15443         Moved the code to get a port # into address loop.
15444
15445 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15446
15447         * buffer.c (reinit_vars_of_buffer):
15448         The right place to initialize conversion_in_dynarr and
15449         conversion_out_dynarr.
15450
15451         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15452
15453         * process-unix.c (unix_canonicalize_host_name): Muleize.
15454         (unix_open_network_stream): Muleize.
15455
15456         * buffer.h: Fix up prototypes for ralloc.c functions.
15457
15458 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15459         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15460         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15461                 instead of gethostbyname()
15462         * process-unix.c: In unix_canonicalize_host_name() and
15463                 unix_open_network_stream(), add code to use getaddrinfo()
15464                 instead of gethostbyname().
15465
15466 2000-01-27  Daniel Pittman <daniel@danann.net>
15467
15468         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15469         libs when built with flat Athena.
15470
15471 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15472
15473         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15474         Use coding standards for function prototypes.
15475
15476 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15477
15478         * dialog-msw.c (push_lisp_string_as_unicode):
15479         * doc.c (unparesseuxify_doc_string):
15480         * dired.c (Fuser_name_completion_1):
15481         * dired.c (Fuser_name_all_completions):
15482         * dired.c (free_user_cache):
15483         * dired.c (user_name_completion):
15484         * console-x.c (get_display_arg_connection):
15485         * minibuf.c (clear_echo_area_internal):
15486         * minibuf.c (echo_area_append):
15487         * eldap.c (Fldap_open):
15488         * eldap.c (Fldap_search_internal):
15489         * frame-x.c (x_set_frame_text_value):
15490         * frame-x.c (x_set_frame_properties):
15491         * frame-x.c (x_create_widgets):
15492         * redisplay-tty.c (term_get_fkeys_1):
15493         * objects-x.c (x_parse_nearest_color):
15494         * objects-x.c (x_valid_color_name_p):
15495         * objects-x.c (x_initialize_font_instance):
15496         * objects-x.c (x_list_fonts):
15497         * objects-x.c (x_find_charset_font):
15498         * tooltalk.c (Fadd_tooltalk_message_arg):
15499         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15500         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15501         * process-unix.c (unix_create_process):
15502         * ntproc.c (sys_spawnve):
15503         * sound.c (Fplay_sound_file):
15504         * sound.c (Fplay_sound):
15505         * buffer.c (init_initial_directory):
15506         * buffer.c (init_buffer):
15507         * editfns.c (init_editfns):
15508         * editfns.c (Ftemp_directory):
15509         * editfns.c (Fuser_full_name):
15510         * editfns.c (uncache_home_directory):
15511         * editfns.c (get_home_directory):
15512         * editfns.c (Fuser_home_directory):
15513         * editfns.c (Fformat_time_string):
15514         * editfns.c (Fcurrent_time_string):
15515         * gui-x.c (button_item_to_widget_value):
15516         * database.c (Fopen_database):
15517         * event-Xt.c (x_to_emacs_keysym):
15518         * event-Xt.c (x_event_to_emacs_event):
15519         * event-Xt.c (describe_event_window):
15520         * event-msw.c (mswindows_wnd_proc):
15521         * glyphs-eimage.c (jpeg_instantiate):
15522         * glyphs-eimage.c (gif_instantiate):
15523         * glyphs-eimage.c (png_instantiate):
15524         * glyphs-eimage.c (tiff_instantiate):
15525         * glyphs-x.c (xbm_instantiate_1):
15526         * glyphs-x.c (x_xbm_instantiate):
15527         * glyphs-x.c (x_xface_instantiate):
15528         * glyphs-x.c (autodetect_instantiate):
15529         * glyphs-x.c (cursor_font_instantiate):
15530         * glyphs-x.c (x_widget_instantiate):
15531         * glyphs-x.c (x_widget_set_property):
15532         * glyphs-x.c (x_widget_property):
15533         * glyphs-x.c (BUILD_GLYPH_INST):
15534         * print.c (write_string_to_stdio_stream):
15535         * print.c (output_string):
15536         * print.c (Falternate_debugging_output):
15537         * print.c (Fexternal_debugging_output):
15538         * glyphs-msw.c (extract_xpm_color_names):
15539         * glyphs-msw.c (mswindows_xpm_instantiate):
15540         * glyphs-msw.c (bmp_instantiate):
15541         * glyphs-msw.c (resource_name_to_resource):
15542         * glyphs-msw.c (mswindows_resource_instantiate):
15543         * glyphs-msw.c (xbm_instantiate_1):
15544         * glyphs-msw.c (mswindows_xbm_instantiate):
15545         * glyphs-msw.c (mswindows_xface_instantiate):
15546         * glyphs-msw.c (mswindows_widget_instantiate):
15547         * glyphs-msw.c (add_tree_item):
15548         * glyphs-msw.c (add_tab_item):
15549         * glyphs-msw.c (mswindows_combo_box_instantiate):
15550         * glyphs-msw.c (mswindows_widget_property):
15551         * glyphs-msw.c (mswindows_combo_box_property):
15552         * glyphs-msw.c (mswindows_widget_set_property):
15553         * console.c (stuff_buffered_input):
15554         * objects-msw.c (mswindows_initialize_color_instance):
15555         * objects-msw.c (mswindows_valid_color_name_p):
15556         * objects-msw.c (mswindows_list_fonts):
15557         * objects-msw.c (mswindows_font_instance_truename):
15558         * bytecode.c (optimize_compiled_function):
15559         * select-x.c (symbol_to_x_atom):
15560         * select-x.c (x_atom_to_symbol):
15561         * select-x.c (hack_motif_clipboard_selection):
15562         * select-x.c (selection_data_to_lisp_data):
15563         * select-x.c (lisp_data_to_selection_data):
15564         * select-x.c (Fx_get_cutbuffer_internal):
15565         * select-x.c (Fx_store_cutbuffer_internal):
15566         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15567         * buffer.h (TO_INTERNAL_FORMAT): New function.
15568         * emacs.c (make_arg_list_1):
15569         * emacs.c (make_argc_argv):
15570         * emacs.c (main_1):
15571         * emacs.c (Fdump_emacs):
15572         * emacs.c (split_string_by_emchar_1):
15573         * file-coding.h:
15574         * lisp.h:
15575         * lstream.h:
15576         * symsinit.h:
15577         * device-x.c (x_init_device):
15578         * device-x.c (Fx_valid_keysym_name_p):
15579         * device-x.c (Fx_get_font_path):
15580         * device-x.c (Fx_set_font_path):
15581         * glyphs.c (bitmap_to_lisp_data):
15582         * glyphs.c (pixmap_to_lisp_data):
15583         * alloc.c (make_ext_string): Use coding system arguments.  Update
15584         all callers.
15585         * alloc.c (build_string):
15586         * callproc.c (child_setup):
15587         * callproc.c (init_callproc):
15588         * fileio.c (lisp_strerror):
15589         * fileio.c (directory_file_name):
15590         * fileio.c (Fexpand_file_name):
15591         * fileio.c (Ffile_truename):
15592         * fileio.c (Fsysnetunam):
15593         * fileio.c (Fdo_auto_save):
15594         * sysdep.c (sys_readdir):
15595         * tests.c: New file.  Allow adding C tests.
15596         Replace GET_* macros with a more comprehensible and flexible
15597         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15598         Modify all calls.
15599         Any coding system can be used to do format conversion.
15600         Eliminate enum external_data_format.
15601         Eliminate convert_to_external_format.
15602         Eliminate convert_to_internal_format.
15603         Make sure file-name, keyboard, terminal, and ctext are always
15604         defined as coding systems or aliases.  Make
15605         file-name-coding-system, terminal-coding-system, and
15606         keyboard-coding-system magical variables that are equivalent to
15607         defining the corresponding coding system aliases.
15608
15609         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15610         * file-coding.c (Fcoding_system_alias_p): New function.
15611         * file-coding.c (Fcoding_system_aliasee): New function.
15612         * file-coding.c (append_suffix_to_symbol): New function.
15613         * file-coding.c (dangling_coding_system_alias_p): New function.
15614         * file-coding.c (Ffind_coding_system):
15615         * file-coding.c (Fcopy_coding_system):
15616         * file-coding.c (encode_coding_no_conversion):
15617         * file-coding.c (syms_of_file_coding):
15618         * file-coding.c (vars_of_file_coding):
15619         Rewrite coding system alias code.
15620         Allow nested aliases, like symbolic links.
15621         Allow redefinition of coding system aliases.
15622         Prevent existence of dangling coding system aliases.
15623
15624         * dired.c (Fuser_name_completion_1):
15625         * dired.c (Fuser_name_all_completions):
15626         A crash would happen if user did QUIT in the middle of building
15627         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15628
15629         * lisp.h:
15630         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15631
15632         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15633         an unsigned char *.  Update all callers.
15634
15635 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15636
15637         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15638
15639 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15640
15641         * elhash.c (hentry_description): Use more portable definition.
15642         (resize_hash_table): Initialize new hentries using
15643         xnew_array_and_zero, thereby simplifying the code.
15644
15645         * mule-charset.c (make_charset): Make sure entire object is
15646         initialized, to avoid Purify warnings.
15647
15648         * alloc.c (resize_string): Fix unlikely crash with big strings.
15649
15650 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15651
15652         * realpath.c (xrealpath):
15653         Don't call getwd().
15654
15655 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15656
15657         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15658
15659 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15660
15661         * unexelfsgi.c (unexec): Change the way we decide which segment
15662         should be extended.
15663
15664         Assumption that .bss section should be outside the PT_LOADable
15665         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15666         it's present) is inside the 'data' segment. This would fail the
15667         test which was used to find a segment to grow and cover new
15668         heap. Instead of this assumption, I created another one - on IRIX
15669         the segment to grow should start below .bss and it's address
15670         should extent above the end of .bss. Once this segment is
15671         identified, it's grown to accommodate the new heap and new
15672         zero-length .bss section is added at the end of .data2.
15673
15674 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15675
15676         * eval.c (Feval): Wrong number of arguments should use original
15677         function, not the indirect_function version of it.
15678
15679 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15680
15681         * glyphs-x.c (x_button_instantiate): Don't add image if
15682         it is not a pixmap.
15683         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15684         is relative.
15685
15686 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15687
15688         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15689         declaration.
15690         (DEFVAR_INT_MAGIC): Ditto.
15691         (DEFVAR_BOOL_MAGIC): Ditto.
15692         * glyphs.h: Reindent backslash.
15693
15694 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15695
15696         * glyphs-widget.c (layout_query_geometry):
15697         (layout_layout): Use correct types for gheight, gwidth.
15698
15699 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15700
15701         * EmacsManager.c (QueryGeometry): Purified.
15702
15703 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15704
15705         * alloc.c (make_float): Make sure entire object is initialized, to
15706         avoid Purify warnings.
15707         (pdump_register_sub): Remove useless assignment.
15708         (pdump): Use xmalloc, not malloc.
15709         (pdump_load): Use xmalloc, not malloc.
15710
15711 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15712
15713         * callproc.c:
15714         * dired-msw.c:
15715         * fileio.c:
15716         * process-nt.c:
15717         * redisplay-msw.c:
15718         * sysdep.c: Removed redundant #include <windows.h>
15719
15720 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15721
15722         * frame.c (delete_frame_internal): Do not delete device when its
15723         implementation so declares.
15724         (delete_frame_internal): Set device selected frame to nil when
15725         last frame goes away.
15726
15727         * device-msw.c (msprinter_device_system_metrics): Implemented.
15728         (mswindows_device_system_metrics): Added 'device-dpi property.
15729
15730         * device.c: (Fdevice_printer_p): Added.
15731         Added 'offset-workspace device metric.
15732
15733         * console.h (device_metrics): Declared DM_offset_workspace.
15734
15735 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15736
15737         * fileio.c (Ffile_truename): Remove pointless and confusing
15738         initialization of elen.
15739
15740         * glyphs-widget.c: Compiler warning fixes.
15741
15742 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15743
15744         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15745         instead of a Lisp_Object as argument to make it consistent with
15746         the other LIVE_P macros.
15747         (CHECK_LIVE_PROCESS): New macro.
15748
15749         * process.c: Declare Qprocess_live_p.
15750         (Fprocess_live_p): New function.
15751         (create_process): Use PROCESS_LIVE_P.
15752         (read_process_output): Ditto.
15753         (set_process_filter): Ditto.
15754         (Fdelete_process): Ditto.
15755         (kill_buffer_processes): Ditto
15756         (process_send_signal): Use CHECK_LIVE_PROCESS.
15757         (Fprocess_input_coding_system): Check whether process is still
15758         alive (fix PR#1061).
15759         (Fprocess_output_coding_system): Ditto.
15760         (Fprocess_coding_system): Ditto.
15761         (Fset_process_input_coding_system): Ditto.
15762         (Fset_process_output_coding_system): Ditto.
15763
15764 2000-01-23  Andy Piper  <andy@xemacs.org>
15765
15766         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15767         layout and widget.
15768
15769         * glyphs.c (mark_image_instance): take into account changed
15770         image_instance format.
15771         (image_instance_equal): ditto.
15772         (image_instance_hash): ditto.
15773
15774         * glyphs-widget.c (widget_instantiate): Incorporate layout
15775         instantiation here. Delay layout of the layout until later.
15776         (layout_instantiate): deleted.
15777         (layout_query_geometry): new function. get the geometry of a
15778         layout.
15779         (layout_layout): layout a layout dynamically.
15780         (image_instantiator_widget): New function - splitting up
15781         image_instantiator_format_create_glyphs_widget for netwinder
15782         compilation.
15783         (image_instantiator_buttons):
15784         (image_instantiator_edit_fields):
15785         (image_instantiator_combo_box):
15786         (image_instantiator_scrollbar):
15787         (image_instantiator_progress_guage):
15788         (image_instantiator_tree_view):
15789         (image_instantiator_tab_control):
15790         (image_instantiator_labels):
15791         (image_instantiator_layout): ditto.
15792         (image_instantiator_format_create_glyphs_widget): Call preceding
15793         functions.
15794
15795 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15796
15797         * process.c (Fset_process_coding_system):
15798         * device-x.c (Fx_keysym_hash_table):
15799         Docstring fixes.
15800
15801         * lstream.c (Lstream_write): Return documented value, not 0.
15802
15803         * fileio.c (directory_file_name):
15804         (Fsubstitute_in_file_name):
15805         (Fsubstitute_insert_file_contents_internal):
15806         (Fwrite_region_internal):
15807         * emacs.c:
15808         * sysdep.c:
15809         * getloadavg.c:
15810         * systty.h:
15811         Remove vestigial APOLLO-conditional code.
15812
15813 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15814
15815         * getpagesize.h: Add guard macros.
15816         * libsst.h: Add guard macros.
15817         * libst.h: Add guard macros.
15818         * line-number.h: Add guard macros.
15819         * ndir.h: Add guard macros.
15820         * sysfloat.h: Add guard macros.
15821         * sysfile.h: Add guard macros.
15822         * sysproc.h: Add guard macros.
15823         * syswait.h: Add guard macros.
15824         * xintrinsic.h: Add guard macros.
15825         * xintrinsicp.h: Add guard macros.
15826         * xmmanager.h: Add guard macros.
15827         * xmmanagerp.h: Add guard macros.
15828         * xmprimitive.h: Add guard macros.
15829         * xmu.h: Add guard macros.
15830         * gpmevent.h: Add copyright statement. Add guard macros.
15831         * miscplay.h: Add guard macros.
15832         * *.h: Use consistent C-standards-approved guard macro names.
15833
15834         * opaque.c (make_opaque): Switch parameter order.
15835         * opaque.h (make_opaque): Switch parameter order.
15836         Update all callers.
15837         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15838
15839         * config.h.in (type_checking_assert): Added.
15840         (bufpos_checking_assert): Added.
15841
15842 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15843
15844         * alloc.c: Harmless pdump changes.
15845         - Use countof().
15846         - spell alignment correctly.
15847         * sysdep.c: Use countof()
15848
15849 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15850
15851         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15852         initially_selected_for_input() console method, default to 0.
15853         (semi_canonicalize_console_connection): Try to delegate to
15854         canonicalize_console_connection if no such console method.
15855         (canonicalize_console_connection): Vice versa.
15856         (print_console): Do not print nil connection.
15857
15858         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15859         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15860         (XDEVIMPF_FRAMELESS_OK): Added.
15861         (CONSOLE_INHERITS_METHOD): Added.
15862
15863         * console-msw.c (mswindows_canonicalize_console_connection):
15864         Added.
15865         (mswindows_canonicalize_device_connection): Added.
15866
15867         * console-msw.h (struct msprinter_device): Added this struct and
15868         accessor macros.
15869         (mswindows_device): Made fontlist a lisp object.
15870
15871         * device.c (semi_canonicalize_device_connection):  Try to delegate
15872         to canonicalize_device_connection if no such console method.
15873         (canonicalize_device_connection): Vice versa.
15874         (print_device): Do not print nil connection.
15875
15876         * device-msw.c (mswindows_init_device): Call InitCommonControls
15877         when have widgets.
15878         (mswindows_delete_device): Removed fontlist deallocation.
15879         (mswindows_mark_device): Added.
15880
15881         * events.c (event_equal): Added abort() at unreached code.
15882         (event_hash): Ditto.
15883
15884         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15885         fallback tags of Windows devices.
15886
15887         * general.c (syms_of_general): Initialized Qmsprinter.
15888
15889         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15890         of fallback tags of Windows devices.
15891
15892         * lisp.h: Declared Qmsprinter.
15893
15894         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15895         of strings.
15896         (mswindows_list_fonts): Ditto.
15897         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15898         that it can be used by both mswindows and msprinter devices.
15899         (initialize_font_instance): Added.
15900         (mswindows_initialize_font_instance): Use it.
15901         (msprinter_initialize_font_instance): Added.
15902
15903         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15904         and implementation flags check.
15905         (redisplay_without_hooks): Changed the call to the above.
15906         (Fredraw_device): Ditto.
15907         (Fredisplay_device): Ditto.
15908
15909         * redisplay-msw.c (get_frame_dc): Implemented.
15910         (get_frame_compdc): Implemented.
15911         (many functions): Use the two functions above to get device
15912         contexts, ether for a window or a printer.
15913
15914 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15915
15916         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15917         initialization here.
15918         (init_symbols_once_early): Call it.
15919         * emacs.c (main_1): Call it.
15920         * symsinit.h: Declare it.
15921
15922 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15923
15924         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15925         Lisp_Object.
15926         (pdump_backtrace): Ditto.
15927         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15928         (pdump_get_entry): Abort if trying to register a null pointer.
15929         (pdump_dump_data): Cleanup types when relocating.
15930         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15931         (pdump_dump_rtables): Remove bad casts.
15932         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15933         Lisp_Object instead of a EMACS_INT for the hashtable
15934         reorganization.
15935
15936 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15937
15938         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15939
15940         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15941
15942         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15943
15944         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15945
15946 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15947
15948         * faces.h (FACE_STRIKETHRU_P): Added.
15949
15950         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15951         of font variants.
15952
15953         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15954         (mswindows_set_dc_font): New function, aware of font variants,
15955         separated from mswindows_update_dc.
15956
15957         * objects-msw.h (struct mswindows_font_instance_data): Added
15958         definition.
15959
15960         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15961         cached fonts and the data structure.
15962         (mswindows_initialize_font_instance): Added creation of font data
15963         structure.
15964         (mswindows_print_font_instance): Print at least something.
15965         (mswindows_create_font_variant): Implemented.
15966         (mswindows_get_hfont): Implemented.
15967
15968 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15969
15970         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15971         prototyping problem with msvc.
15972
15973         * emacs.c (main_1): added syms_of_gui_mswindows() call
15974
15975         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15976         syms_of_gui_mswindows() function
15977
15978         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15979
15980 2000-01-18  Martin Buchholz <martin@xemacs.org>
15981
15982         * XEmacs 21.2.27 is released.
15983
15984 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15985
15986         * glyphs-eimage.c (struct tiff_error_struct):
15987         (tiff_error_func):
15988         (tiff_warning_func):
15989         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15990
15991         * unexmips.c:
15992         * unexhp9k3.c:
15993         * unexfreebsd.c:
15994         * unexec.c: Remove vestigial Lucid C code.
15995         * unexalpha.c:
15996         * unexaix.c:
15997         * termcap.c:
15998         * libsst.c: Ansify.
15999         Remove declarations of errno and strerror().
16000
16001         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16002
16003         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16004
16005 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16006
16007         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16008         Optimize.
16009
16010 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16011
16012         * md5.c:
16013         * file-coding.c:
16014         * file-coding.h:
16015         Change enum eol_type to eol_type_t.
16016
16017 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16018
16019         * gui.c (get_gui_callback): Check cons before accessing car.
16020
16021 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16022
16023         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16024         (XSETSPECIFIER_TYPE): Ditto.
16025
16026 2000-01-17  Didier Verna  <didier@xemacs.org>
16027
16028         * redisplay.c (generate_fstring_runes): compute string size in
16029         characters, not bytes.
16030
16031 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16032
16033         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16034
16035 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16036
16037         * print.c (print_error_message): Call print_prepare().
16038
16039 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16040
16041         * .dbxrc: Renamed from dbxrc.
16042
16043         * events.c (event_to_character):
16044         Use `assert (foo)' instead of `if (!foo) abort()'
16045
16046         * .gdbinit (xtype): Add documentation.
16047         * .gdbinit (check-temacs): New function.
16048         * .gdbinit (check-xemacs): New function.
16049         * dbxrc (check-xemacs): New function.
16050         * dbxrc (check-xemacs): New function.
16051
16052 2000-01-14  Andy Piper  <andy@xemacs.org>
16053
16054         * glyphs-widget.c (widget_query_geometry): Make sure that we
16055         calculate default dimensions correctly.
16056
16057 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16058
16059         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16060
16061         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16062         pdump_wire'd variable.
16063
16064         * emacs.c: (main_1): Conditionalized calls to
16065         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16066
16067 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16068
16069         * window.c (Fset_window_configuration):
16070         * sysdep.c (_start):
16071         * input-method-motif.c (res):
16072         * event-Xt.c (Xt_process_to_emacs_event):
16073         Simple compiler warning fixes.
16074
16075         * bytecode.c (funcall_compiled_function): Use the original
16076         function symbol on the backtrace list in preference to the
16077         compiled_function object in error messages.
16078
16079 2000-01-13  Andy Piper  <andy@xemacs.org>
16080
16081         * glyphs-x.c (update_widget_face): Make sure we update the widget
16082         background as well as foreground.
16083
16084 2000-01-13  Andy Piper  <andy@xemacs.org>
16085
16086         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16087         fields to subwindow.
16088         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16089         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16090         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16091         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16092
16093         * glyphs-widget.c (check_valid_tab_orientation): new function.
16094         (initialize_widget_image_instance): zero orientation and
16095         justification.
16096         (widget_instantiate): pick up orientation.
16097         (tab_control_query_geometry): return appropriate values for
16098         vertical tabs.
16099
16100         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16101         appropriate creation flags for left, right and bottom tabs.
16102
16103         * s/cygwin32.h: add tab definitions.
16104
16105 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16106
16107         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16108         frame upon hiding a subwindow.
16109         (mswindows_button_instantiate): Changed the push button style to
16110         BS_PUSHBUTTON.
16111         (mswindows_button_instantiate): Removed button BS_NOTIFY
16112         style.
16113         (mswindows_button_instantiate): Removed redundant check for
16114         a disabled gui item.
16115         (mswindows_button_instantiate): Made use of WS_TABSTOP
16116         consistent: "operable" controls (edit, button, tree, scroll) have
16117         this style, "display-only" ones (static, progress gauge) do
16118         not. This style is currently ignored by XEmacs though. Also,
16119         removed the WS_EX_CONTROLPARENT style - it is not for children,
16120         it is for their parents!
16121         (mswindows_edit_field_instantiate): Ditto.
16122         (mswindows_progress_gauge_instantiate): Ditto.
16123         (mswindows_tree_view_instantiate): Ditto.
16124         (mswindows_tab_control_instantiate): Ditto.
16125         (mswindows_scrollbar_instantiate): Ditto.
16126         (mswindows_combo_box_instantiate): Ditto.
16127         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16128         style to the "clip" window.
16129         (mswindows_button_instantiate): Removed compilation warning by
16130         equally typing terms of the ?: operator.
16131
16132 2000-01-12  Didier Verna  <didier@xemacs.org>
16133
16134         * redisplay.c (generate_fstring_runes): new parameter holding the
16135         last modeline-format extent.
16136         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16137         extent, fill the glyph block with it.
16138         (generate_fstring_runes): handle these parameters.
16139         (generate_formatted_string_db): ditto.
16140
16141         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16142         glyphs'extents in the modeline.
16143
16144 1999-01-11  Mike Woolley  <mike@bulsara.com>
16145
16146         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16147         256Mb, as a workaround for the non-starting problem many people
16148         have experienced.
16149
16150 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16151
16152         * console-tty.c (Fset_console_tty_output_coding_system):
16153         Force redrawing tty frame.
16154
16155 2000-01-10  Didier Verna  <didier@xemacs.org>
16156
16157         * redisplay.c (generate_fstring_runes): fix size computation bug.
16158
16159 2000-01-09  William M. Perry <wmperry@aventail.com>
16160
16161         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16162
16163 2000-01-09  Andy Piper  <andy@xemacs.org>
16164
16165         * glyphs-msw.c: index -> i to avoid shadows.
16166         (xbm_create_bitmap_from_data): make static.
16167         (check_valid_string_or_int): deleted.
16168         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16169
16170         * glyphs-x.c (x_update_subwindow): remove unused args.
16171
16172         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16173         back pointer - this is done in allocate_image_instance.
16174         (query_string_font): return Qnil to make the compiler happy.
16175         (unmap_subwindow): set to ~0 to make the compiler happy.
16176         (glyph_query_geometry): comment out until used.
16177         (glyph_layout): ditto.
16178
16179 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16180
16181         * insdel.c (signal_after_change): Remove extraneous unbind_to().